From e33500c45789ece6f5f3b29d37a127bdc767dde0 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Mon, 4 May 2020 12:14:05 -0700 Subject: [PATCH] feat: add DateTime/TimeOfDay protos (#1) --- .gitignore | 2 +- grpc-google-common-protos/pom.xml | 20 +- .../google/longrunning/OperationsGrpc.java | 764 +- pom.xml | 9 +- proto-google-common-protos/pom.xml | 4 +- .../src/main/java/com/google/api/Advice.java | 440 +- .../java/com/google/api/AdviceOrBuilder.java | 31 +- .../java/com/google/api/AnnotationsProto.java | 91 +- .../main/java/com/google/api/AuthProto.java | 187 +- .../java/com/google/api/AuthProvider.java | 1702 +- .../com/google/api/AuthProviderOrBuilder.java | 199 +- .../java/com/google/api/AuthRequirement.java | 568 +- .../google/api/AuthRequirementOrBuilder.java | 44 +- .../java/com/google/api/Authentication.java | 659 +- .../google/api/AuthenticationOrBuilder.java | 60 +- .../com/google/api/AuthenticationRule.java | 798 +- .../api/AuthenticationRuleOrBuilder.java | 70 +- .../src/main/java/com/google/api/Backend.java | 476 +- .../java/com/google/api/BackendOrBuilder.java | 39 +- .../java/com/google/api/BackendProto.java | 126 +- .../main/java/com/google/api/BackendRule.java | 1546 +- .../com/google/api/BackendRuleOrBuilder.java | 188 +- .../src/main/java/com/google/api/Billing.java | 1128 +- .../java/com/google/api/BillingOrBuilder.java | 38 +- .../java/com/google/api/BillingProto.java | 111 +- .../main/java/com/google/api/ChangeType.java | 99 +- .../main/java/com/google/api/ClientProto.java | 123 +- .../java/com/google/api/ConfigChange.java | 934 +- .../com/google/api/ConfigChangeOrBuilder.java | 88 +- .../com/google/api/ConfigChangeProto.java | 110 +- .../java/com/google/api/ConsumerProto.java | 107 +- .../src/main/java/com/google/api/Context.java | 476 +- .../java/com/google/api/ContextOrBuilder.java | 39 +- .../java/com/google/api/ContextProto.java | 110 +- .../main/java/com/google/api/ContextRule.java | 1067 +- .../com/google/api/ContextRuleOrBuilder.java | 135 +- .../src/main/java/com/google/api/Control.java | 440 +- .../java/com/google/api/ControlOrBuilder.java | 31 +- .../java/com/google/api/ControlProto.java | 80 +- .../com/google/api/CustomHttpPattern.java | 572 +- .../api/CustomHttpPatternOrBuilder.java | 44 +- .../java/com/google/api/Distribution.java | 4455 +++-- .../com/google/api/DistributionOrBuilder.java | 93 +- .../com/google/api/DistributionProto.java | 240 +- .../java/com/google/api/Documentation.java | 1041 +- .../google/api/DocumentationOrBuilder.java | 99 +- .../com/google/api/DocumentationProto.java | 131 +- .../com/google/api/DocumentationRule.java | 694 +- .../api/DocumentationRuleOrBuilder.java | 57 +- .../main/java/com/google/api/Endpoint.java | 928 +- .../com/google/api/EndpointOrBuilder.java | 106 +- .../java/com/google/api/EndpointProto.java | 84 +- .../java/com/google/api/FieldBehavior.java | 113 +- .../com/google/api/FieldBehaviorProto.java | 94 +- .../src/main/java/com/google/api/Http.java | 522 +- .../main/java/com/google/api/HttpBody.java | 657 +- .../com/google/api/HttpBodyOrBuilder.java | 54 +- .../java/com/google/api/HttpBodyProto.java | 88 +- .../java/com/google/api/HttpOrBuilder.java | 43 +- .../main/java/com/google/api/HttpProto.java | 143 +- .../main/java/com/google/api/HttpRule.java | 1664 +- .../com/google/api/HttpRuleOrBuilder.java | 157 +- .../main/java/com/google/api/JwtLocation.java | 1149 ++ .../com/google/api/JwtLocationOrBuilder.java | 114 + .../java/com/google/api/LabelDescriptor.java | 712 +- .../google/api/LabelDescriptorOrBuilder.java | 54 +- .../main/java/com/google/api/LabelProto.java | 85 +- .../main/java/com/google/api/LaunchStage.java | 113 +- .../java/com/google/api/LaunchStageProto.java | 65 +- .../java/com/google/api/LogDescriptor.java | 861 +- .../google/api/LogDescriptorOrBuilder.java | 78 +- .../main/java/com/google/api/LogProto.java | 90 +- .../src/main/java/com/google/api/Logging.java | 1293 +- .../java/com/google/api/LoggingOrBuilder.java | 58 +- .../java/com/google/api/LoggingProto.java | 107 +- .../src/main/java/com/google/api/Metric.java | 729 +- .../java/com/google/api/MetricDescriptor.java | 2955 ++-- .../google/api/MetricDescriptorOrBuilder.java | 336 +- .../java/com/google/api/MetricOrBuilder.java | 65 +- .../main/java/com/google/api/MetricProto.java | 196 +- .../main/java/com/google/api/MetricRule.java | 728 +- .../com/google/api/MetricRuleOrBuilder.java | 65 +- .../com/google/api/MonitoredResource.java | 748 +- .../api/MonitoredResourceDescriptor.java | 1077 +- .../MonitoredResourceDescriptorOrBuilder.java | 101 +- .../google/api/MonitoredResourceMetadata.java | 734 +- .../MonitoredResourceMetadataOrBuilder.java | 62 +- .../api/MonitoredResourceOrBuilder.java | 65 +- .../google/api/MonitoredResourceProto.java | 191 +- .../main/java/com/google/api/Monitoring.java | 1309 +- .../com/google/api/MonitoringOrBuilder.java | 56 +- .../java/com/google/api/MonitoringProto.java | 109 +- .../com/google/api/OAuthRequirements.java | 454 +- .../api/OAuthRequirementsOrBuilder.java | 31 +- .../src/main/java/com/google/api/Page.java | 742 +- .../java/com/google/api/PageOrBuilder.java | 65 +- .../com/google/api/ProjectProperties.java | 508 +- .../api/ProjectPropertiesOrBuilder.java | 39 +- .../main/java/com/google/api/Property.java | 716 +- .../com/google/api/PropertyOrBuilder.java | 54 +- .../src/main/java/com/google/api/Quota.java | 631 +- .../main/java/com/google/api/QuotaLimit.java | 1442 +- .../com/google/api/QuotaLimitOrBuilder.java | 142 +- .../java/com/google/api/QuotaOrBuilder.java | 60 +- .../main/java/com/google/api/QuotaProto.java | 183 +- .../com/google/api/ResourceDescriptor.java | 1133 +- .../api/ResourceDescriptorOrBuilder.java | 106 +- .../java/com/google/api/ResourceProto.java | 184 +- .../com/google/api/ResourceReference.java | 643 +- .../api/ResourceReferenceOrBuilder.java | 64 +- .../src/main/java/com/google/api/Service.java | 3447 ++-- .../java/com/google/api/ServiceOrBuilder.java | 388 +- .../java/com/google/api/ServiceProto.java | 256 +- .../main/java/com/google/api/SourceInfo.java | 477 +- .../com/google/api/SourceInfoOrBuilder.java | 37 +- .../java/com/google/api/SourceInfoProto.java | 88 +- .../java/com/google/api/SystemParameter.java | 691 +- .../google/api/SystemParameterOrBuilder.java | 57 +- .../com/google/api/SystemParameterProto.java | 125 +- .../com/google/api/SystemParameterRule.java | 650 +- .../api/SystemParameterRuleOrBuilder.java | 52 +- .../java/com/google/api/SystemParameters.java | 494 +- .../google/api/SystemParametersOrBuilder.java | 39 +- .../src/main/java/com/google/api/Usage.java | 737 +- .../java/com/google/api/UsageOrBuilder.java | 78 +- .../main/java/com/google/api/UsageProto.java | 106 +- .../main/java/com/google/api/UsageRule.java | 524 +- .../com/google/api/UsageRuleOrBuilder.java | 39 +- .../java/com/google/cloud/audit/AuditLog.java | 1469 +- .../google/cloud/audit/AuditLogOrBuilder.java | 141 +- .../com/google/cloud/audit/AuditLogProto.java | 188 +- .../cloud/audit/AuthenticationInfo.java | 462 +- .../audit/AuthenticationInfoOrBuilder.java | 31 +- .../google/cloud/audit/AuthorizationInfo.java | 621 +- .../audit/AuthorizationInfoOrBuilder.java | 48 +- .../google/cloud/audit/RequestMetadata.java | 577 +- .../cloud/audit/RequestMetadataOrBuilder.java | 44 +- .../java/com/google/geo/type/Viewport.java | 507 +- .../google/geo/type/ViewportOrBuilder.java | 38 +- .../com/google/geo/type/ViewportProto.java | 88 +- .../com/google/logging/type/HttpRequest.java | 1558 +- .../logging/type/HttpRequestOrBuilder.java | 147 +- .../google/logging/type/HttpRequestProto.java | 123 +- .../com/google/logging/type/LogSeverity.java | 134 +- .../google/logging/type/LogSeverityProto.java | 75 +- .../longrunning/CancelOperationRequest.java | 462 +- .../CancelOperationRequestOrBuilder.java | 31 +- .../longrunning/DeleteOperationRequest.java | 462 +- .../DeleteOperationRequestOrBuilder.java | 31 +- .../longrunning/GetOperationRequest.java | 462 +- .../GetOperationRequestOrBuilder.java | 31 +- .../longrunning/ListOperationsRequest.java | 737 +- .../ListOperationsRequestOrBuilder.java | 61 +- .../longrunning/ListOperationsResponse.java | 635 +- .../ListOperationsResponseOrBuilder.java | 52 +- .../com/google/longrunning/Operation.java | 874 +- .../com/google/longrunning/OperationInfo.java | 577 +- .../longrunning/OperationInfoOrBuilder.java | 44 +- .../longrunning/OperationOrBuilder.java | 71 +- .../google/longrunning/OperationsProto.java | 317 +- .../longrunning/WaitOperationRequest.java | 554 +- .../WaitOperationRequestOrBuilder.java | 41 +- .../main/java/com/google/rpc/BadRequest.java | 1084 +- .../com/google/rpc/BadRequestOrBuilder.java | 38 +- .../src/main/java/com/google/rpc/Code.java | 196 +- .../main/java/com/google/rpc/CodeProto.java | 75 +- .../main/java/com/google/rpc/DebugInfo.java | 582 +- .../com/google/rpc/DebugInfoOrBuilder.java | 57 +- .../com/google/rpc/ErrorDetailsProto.java | 363 +- .../main/java/com/google/rpc/ErrorInfo.java | 1269 ++ .../com/google/rpc/ErrorInfoOrBuilder.java | 173 + .../src/main/java/com/google/rpc/Help.java | 1068 +- .../java/com/google/rpc/HelpOrBuilder.java | 39 +- .../java/com/google/rpc/LocalizedMessage.java | 572 +- .../google/rpc/LocalizedMessageOrBuilder.java | 44 +- .../com/google/rpc/PreconditionFailure.java | 1291 +- .../rpc/PreconditionFailureOrBuilder.java | 38 +- .../java/com/google/rpc/QuotaFailure.java | 1095 +- .../com/google/rpc/QuotaFailureOrBuilder.java | 38 +- .../main/java/com/google/rpc/RequestInfo.java | 564 +- .../com/google/rpc/RequestInfoOrBuilder.java | 44 +- .../java/com/google/rpc/ResourceInfo.java | 823 +- .../com/google/rpc/ResourceInfoOrBuilder.java | 76 +- .../main/java/com/google/rpc/RetryInfo.java | 430 +- .../com/google/rpc/RetryInfoOrBuilder.java | 28 +- .../src/main/java/com/google/rpc/Status.java | 771 +- .../java/com/google/rpc/StatusOrBuilder.java | 63 +- .../main/java/com/google/rpc/StatusProto.java | 88 +- .../google/rpc/context/AttributeContext.java | 13904 ++++++++++++++++ .../context/AttributeContextOrBuilder.java | 294 + .../rpc/context/AttributeContextProto.java | 249 + .../java/com/google/type/CalendarPeriod.java | 127 +- .../com/google/type/CalendarPeriodProto.java | 67 +- .../src/main/java/com/google/type/Color.java | 547 +- .../java/com/google/type/ColorOrBuilder.java | 40 +- .../main/java/com/google/type/ColorProto.java | 88 +- .../src/main/java/com/google/type/Date.java | 440 +- .../java/com/google/type/DateOrBuilder.java | 30 +- .../main/java/com/google/type/DateProto.java | 80 +- .../main/java/com/google/type/DateTime.java | 1791 ++ .../com/google/type/DateTimeOrBuilder.java | 200 + .../java/com/google/type/DateTimeProto.java | 93 + .../main/java/com/google/type/DayOfWeek.java | 127 +- .../java/com/google/type/DayOfWeekProto.java | 67 +- .../src/main/java/com/google/type/Expr.java | 796 +- .../java/com/google/type/ExprOrBuilder.java | 70 +- .../main/java/com/google/type/ExprProto.java | 82 +- .../main/java/com/google/type/Fraction.java | 407 +- .../com/google/type/FractionOrBuilder.java | 26 +- .../java/com/google/type/FractionProto.java | 82 +- .../src/main/java/com/google/type/LatLng.java | 417 +- .../java/com/google/type/LatLngOrBuilder.java | 26 +- .../java/com/google/type/LatLngProto.java | 80 +- .../src/main/java/com/google/type/Money.java | 521 +- .../java/com/google/type/MoneyOrBuilder.java | 39 +- .../main/java/com/google/type/MoneyProto.java | 82 +- .../java/com/google/type/PostalAddress.java | 1638 +- .../google/type/PostalAddressOrBuilder.java | 181 +- .../com/google/type/PostalAddressProto.java | 102 +- .../main/java/com/google/type/Quaternion.java | 576 +- .../com/google/type/QuaternionOrBuilder.java | 34 +- .../java/com/google/type/QuaternionProto.java | 82 +- .../main/java/com/google/type/TimeOfDay.java | 479 +- .../com/google/type/TimeOfDayOrBuilder.java | 34 +- .../java/com/google/type/TimeOfDayProto.java | 82 +- .../main/java/com/google/type/TimeZone.java | 801 + .../com/google/type/TimeZoneOrBuilder.java | 75 + .../src/main/proto/google/api/auth.proto | 43 +- .../src/main/proto/google/api/backend.proto | 62 +- .../src/main/proto/google/api/metric.proto | 101 +- .../src/main/proto/google/api/resource.proto | 22 +- .../google/logging/type/http_request.proto | 3 +- .../google/logging/type/log_severity.proto | 3 +- .../proto/google/longrunning/operations.proto | 10 +- .../src/main/proto/google/rpc/code.proto | 7 +- .../rpc/context/attribute_context.proto | 287 + .../main/proto/google/rpc/error_details.proto | 62 +- .../src/main/proto/google/rpc/status.proto | 63 +- .../proto/google/type/calendar_period.proto | 1 - .../src/main/proto/google/type/color.proto | 1 - .../src/main/proto/google/type/date.proto | 1 - .../src/main/proto/google/type/datetime.proto | 97 + .../main/proto/google/type/dayofweek.proto | 1 - .../src/main/proto/google/type/expr.proto | 1 - .../src/main/proto/google/type/fraction.proto | 1 - .../src/main/proto/google/type/latlng.proto | 4 +- .../src/main/proto/google/type/money.proto | 1 - .../proto/google/type/postal_address.proto | 8 +- .../main/proto/google/type/quaternion.proto | 34 +- .../main/proto/google/type/timeofday.proto | 1 - synth.metadata | 4 +- 251 files changed, 70662 insertions(+), 32619 deletions(-) create mode 100644 proto-google-common-protos/src/main/java/com/google/api/JwtLocation.java create mode 100644 proto-google-common-protos/src/main/java/com/google/api/JwtLocationOrBuilder.java create mode 100644 proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfo.java create mode 100644 proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfoOrBuilder.java create mode 100644 proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContext.java create mode 100644 proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContextOrBuilder.java create mode 100644 proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContextProto.java create mode 100644 proto-google-common-protos/src/main/java/com/google/type/DateTime.java create mode 100644 proto-google-common-protos/src/main/java/com/google/type/DateTimeOrBuilder.java create mode 100644 proto-google-common-protos/src/main/java/com/google/type/DateTimeProto.java create mode 100644 proto-google-common-protos/src/main/java/com/google/type/TimeZone.java create mode 100644 proto-google-common-protos/src/main/java/com/google/type/TimeZoneOrBuilder.java create mode 100644 proto-google-common-protos/src/main/proto/google/rpc/context/attribute_context.proto create mode 100644 proto-google-common-protos/src/main/proto/google/type/datetime.proto diff --git a/.gitignore b/.gitignore index 33a2ef58..cc0bc34a 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,4 @@ target/ *.pyc __pycache__ -.flattenend-pom.xml \ No newline at end of file +.flattened-pom.xml \ No newline at end of file diff --git a/grpc-google-common-protos/pom.xml b/grpc-google-common-protos/pom.xml index 332920fc..8ff0b780 100644 --- a/grpc-google-common-protos/pom.xml +++ b/grpc-google-common-protos/pom.xml @@ -8,8 +8,8 @@ grpc-google-common-protos GRPC library for grpc-google-common-protos - com.google.cloud - google-iam-parent + com.google.api.grpc + google-common-protos-parent 1.17.1-SNAPSHOT @@ -47,4 +47,20 @@ + + + + java9 + + [9,) + + + + javax.annotation + javax.annotation-api + 1.3.2 + + + + \ No newline at end of file diff --git a/grpc-google-common-protos/src/main/java/com/google/longrunning/OperationsGrpc.java b/grpc-google-common-protos/src/main/java/com/google/longrunning/OperationsGrpc.java index a2857e34..715314a0 100644 --- a/grpc-google-common-protos/src/main/java/com/google/longrunning/OperationsGrpc.java +++ b/grpc-google-common-protos/src/main/java/com/google/longrunning/OperationsGrpc.java @@ -1,21 +1,30 @@ +/* + * 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; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; import static io.grpc.stub.ClientCalls.blockingUnaryCall; import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** + * + * *
  * Manages long-running operations with an API service.
  * When an API method normally takes long time to complete, it can be designed
@@ -28,7 +37,7 @@
  * 
*/ @javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.10.0)", + value = "by gRPC proto compiler", comments = "Source: google/longrunning/operations.proto") public final class OperationsGrpc { @@ -37,216 +46,257 @@ private OperationsGrpc() {} public static final String SERVICE_NAME = "google.longrunning.Operations"; // Static method descriptors that strictly reflect the proto. - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @Deprecated // Use {@link #getListOperationsMethod()} instead. - public static final io.grpc.MethodDescriptor METHOD_LIST_OPERATIONS = getListOperationsMethodHelper(); - - private static volatile io.grpc.MethodDescriptor getListOperationsMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor getListOperationsMethod() { - return getListOperationsMethodHelper(); - } - - private static io.grpc.MethodDescriptor getListOperationsMethodHelper() { - io.grpc.MethodDescriptor getListOperationsMethod; + 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< + 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( - "google.longrunning.Operations", "ListOperations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ListOperationsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - 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; - } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @Deprecated // Use {@link #getGetOperationMethod()} instead. - public static final io.grpc.MethodDescriptor METHOD_GET_OPERATION = getGetOperationMethodHelper(); - - private static volatile io.grpc.MethodDescriptor getGetOperationMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor getGetOperationMethod() { - return getGetOperationMethodHelper(); + } + } + return getListOperationsMethod; } - private static io.grpc.MethodDescriptor getGetOperationMethodHelper() { - 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< + 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( - "google.longrunning.Operations", "GetOperation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - GetOperationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - 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; - } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @Deprecated // Use {@link #getDeleteOperationMethod()} instead. - public static final io.grpc.MethodDescriptor METHOD_DELETE_OPERATION = getDeleteOperationMethodHelper(); - - private static volatile io.grpc.MethodDescriptor getDeleteOperationMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor getDeleteOperationMethod() { - return getDeleteOperationMethodHelper(); + } + } + return getGetOperationMethod; } - private static io.grpc.MethodDescriptor getDeleteOperationMethodHelper() { - 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< + 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( - "google.longrunning.Operations", "DeleteOperation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - 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; - } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @Deprecated // Use {@link #getCancelOperationMethod()} instead. - public static final io.grpc.MethodDescriptor METHOD_CANCEL_OPERATION = getCancelOperationMethodHelper(); - - private static volatile io.grpc.MethodDescriptor getCancelOperationMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor getCancelOperationMethod() { - return getCancelOperationMethodHelper(); + } + } + return getDeleteOperationMethod; } - private static io.grpc.MethodDescriptor getCancelOperationMethodHelper() { - 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< + 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( - "google.longrunning.Operations", "CancelOperation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - 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; - } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @Deprecated // Use {@link #getWaitOperationMethod()} instead. - public static final io.grpc.MethodDescriptor METHOD_WAIT_OPERATION = getWaitOperationMethodHelper(); - - private static volatile io.grpc.MethodDescriptor getWaitOperationMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor getWaitOperationMethod() { - return getWaitOperationMethodHelper(); + } + } + return getCancelOperationMethod; } - private static io.grpc.MethodDescriptor getWaitOperationMethodHelper() { - 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< + 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( - "google.longrunning.Operations", "WaitOperation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.WaitOperationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - 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; + } + } + 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) { - return new OperationsStub(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); + } + }; + 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) { - return new OperationsBlockingStub(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); + } + }; + 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) { - return new OperationsFutureStub(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); + } + }; + 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
@@ -258,9 +308,11 @@ public static OperationsFutureStub newFutureStub(
    * so developers can have a consistent client experience.
    * 
*/ - public static abstract class OperationsImplBase implements io.grpc.BindableService { + public abstract static class OperationsImplBase implements io.grpc.BindableService { /** + * + * *
      * Lists operations that match the specified filter in the request. If the
      * server doesn't support this method, it returns `UNIMPLEMENTED`.
@@ -273,24 +325,31 @@ public static abstract class OperationsImplBase implements io.grpc.BindableServi
      * is the parent resource, without the operations collection id.
      * 
*/ - public void listOperations(ListOperationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListOperationsMethodHelper(), responseObserver); + public void listOperations( + com.google.longrunning.ListOperationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + 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.
      * 
*/ - public void getOperation(GetOperationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetOperationMethodHelper(), responseObserver); + public void getOperation( + com.google.longrunning.GetOperationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + 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
@@ -298,12 +357,15 @@ public void getOperation(GetOperationRequest request,
      * `google.rpc.Code.UNIMPLEMENTED`.
      * 
*/ - public void deleteOperation(DeleteOperationRequest request, + public void deleteOperation( + com.google.longrunning.DeleteOperationRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteOperationMethodHelper(), responseObserver); + 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
@@ -317,12 +379,15 @@ public void deleteOperation(DeleteOperationRequest request,
      * corresponding to `Code.CANCELLED`.
      * 
*/ - public void cancelOperation(CancelOperationRequest request, + public void cancelOperation( + com.google.longrunning.CancelOperationRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCancelOperationMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getCancelOperationMethod(), responseObserver); } /** + * + * *
      * Waits for the specified long-running operation until it is done or reaches
      * at most a specified timeout, returning the latest state.  If the operation
@@ -335,53 +400,53 @@ public void cancelOperation(CancelOperationRequest request,
      * immediate response is no guarantee that the operation is done.
      * 
*/ - public void waitOperation(com.google.longrunning.WaitOperationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getWaitOperationMethodHelper(), responseObserver); + public void waitOperation( + com.google.longrunning.WaitOperationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getWaitOperationMethod(), responseObserver); } - @Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListOperationsMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - ListOperationsRequest, - ListOperationsResponse>( - this, METHODID_LIST_OPERATIONS))) + getListOperationsMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.longrunning.ListOperationsRequest, + com.google.longrunning.ListOperationsResponse>( + this, METHODID_LIST_OPERATIONS))) .addMethod( - getGetOperationMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - GetOperationRequest, - Operation>( - this, METHODID_GET_OPERATION))) + getGetOperationMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.longrunning.GetOperationRequest, com.google.longrunning.Operation>( + this, METHODID_GET_OPERATION))) .addMethod( - getDeleteOperationMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - DeleteOperationRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_OPERATION))) + getDeleteOperationMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.longrunning.DeleteOperationRequest, com.google.protobuf.Empty>( + this, METHODID_DELETE_OPERATION))) .addMethod( - getCancelOperationMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - CancelOperationRequest, - com.google.protobuf.Empty>( - this, METHODID_CANCEL_OPERATION))) + getCancelOperationMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.longrunning.CancelOperationRequest, com.google.protobuf.Empty>( + this, METHODID_CANCEL_OPERATION))) .addMethod( - getWaitOperationMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.longrunning.WaitOperationRequest, - Operation>( - this, METHODID_WAIT_OPERATION))) + getWaitOperationMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.longrunning.WaitOperationRequest, + com.google.longrunning.Operation>(this, METHODID_WAIT_OPERATION))) .build(); } } /** + * + * *
    * Manages long-running operations with an API service.
    * When an API method normally takes long time to complete, it can be designed
@@ -393,23 +458,19 @@ public void waitOperation(com.google.longrunning.WaitOperationRequest request,
    * so developers can have a consistent client experience.
    * 
*/ - public static final class OperationsStub extends io.grpc.stub.AbstractStub { - private OperationsStub(io.grpc.Channel channel) { - super(channel); - } - - 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); } - @Override - protected OperationsStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { + @java.lang.Override + 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`.
@@ -422,26 +483,37 @@ protected OperationsStub build(io.grpc.Channel channel,
      * is the parent resource, without the operations collection id.
      * 
*/ - public void listOperations(ListOperationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listOperations( + com.google.longrunning.ListOperationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { asyncUnaryCall( - getChannel().newCall(getListOperationsMethodHelper(), 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(GetOperationRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void getOperation( + com.google.longrunning.GetOperationRequest request, + io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getGetOperationMethodHelper(), 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
@@ -449,13 +521,18 @@ public void getOperation(GetOperationRequest request,
      * `google.rpc.Code.UNIMPLEMENTED`.
      * 
*/ - public void deleteOperation(DeleteOperationRequest request, + public void deleteOperation( + com.google.longrunning.DeleteOperationRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getDeleteOperationMethodHelper(), 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
@@ -469,13 +546,18 @@ public void deleteOperation(DeleteOperationRequest request,
      * corresponding to `Code.CANCELLED`.
      * 
*/ - public void cancelOperation(CancelOperationRequest request, + public void cancelOperation( + com.google.longrunning.CancelOperationRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getCancelOperationMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCancelOperationMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Waits for the specified long-running operation until it is done or reaches
      * at most a specified timeout, returning the latest state.  If the operation
@@ -488,14 +570,19 @@ public void cancelOperation(CancelOperationRequest request,
      * immediate response is no guarantee that the operation is done.
      * 
*/ - public void waitOperation(com.google.longrunning.WaitOperationRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void waitOperation( + com.google.longrunning.WaitOperationRequest request, + io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getWaitOperationMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getWaitOperationMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
    * Manages long-running operations with an API service.
    * When an API method normally takes long time to complete, it can be designed
@@ -507,23 +594,21 @@ public void waitOperation(com.google.longrunning.WaitOperationRequest request,
    * so developers can have a consistent client experience.
    * 
*/ - public static final class OperationsBlockingStub extends io.grpc.stub.AbstractStub { - private OperationsBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private OperationsBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { + public static final class OperationsBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private OperationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } - @Override - protected OperationsBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { + @java.lang.Override + protected OperationsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new OperationsBlockingStub(channel, callOptions); } /** + * + * *
      * Lists operations that match the specified filter in the request. If the
      * server doesn't support this method, it returns `UNIMPLEMENTED`.
@@ -536,24 +621,28 @@ protected OperationsBlockingStub build(io.grpc.Channel channel,
      * is the parent resource, without the operations collection id.
      * 
*/ - public ListOperationsResponse listOperations(ListOperationsRequest request) { - return blockingUnaryCall( - getChannel(), getListOperationsMethodHelper(), getCallOptions(), request); + public com.google.longrunning.ListOperationsResponse listOperations( + com.google.longrunning.ListOperationsRequest request) { + return 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 Operation getOperation(GetOperationRequest request) { - return blockingUnaryCall( - getChannel(), getGetOperationMethodHelper(), getCallOptions(), request); + public com.google.longrunning.Operation getOperation( + com.google.longrunning.GetOperationRequest request) { + return 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
@@ -561,12 +650,14 @@ public Operation getOperation(GetOperationRequest request) {
      * `google.rpc.Code.UNIMPLEMENTED`.
      * 
*/ - public com.google.protobuf.Empty deleteOperation(DeleteOperationRequest request) { - return blockingUnaryCall( - getChannel(), getDeleteOperationMethodHelper(), getCallOptions(), request); + public com.google.protobuf.Empty deleteOperation( + com.google.longrunning.DeleteOperationRequest request) { + return 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
@@ -580,12 +671,14 @@ public com.google.protobuf.Empty deleteOperation(DeleteOperationRequest request)
      * corresponding to `Code.CANCELLED`.
      * 
*/ - public com.google.protobuf.Empty cancelOperation(CancelOperationRequest request) { - return blockingUnaryCall( - getChannel(), getCancelOperationMethodHelper(), getCallOptions(), request); + public com.google.protobuf.Empty cancelOperation( + com.google.longrunning.CancelOperationRequest request) { + return blockingUnaryCall(getChannel(), getCancelOperationMethod(), getCallOptions(), request); } /** + * + * *
      * Waits for the specified long-running operation until it is done or reaches
      * at most a specified timeout, returning the latest state.  If the operation
@@ -598,13 +691,15 @@ public com.google.protobuf.Empty cancelOperation(CancelOperationRequest request)
      * immediate response is no guarantee that the operation is done.
      * 
*/ - public Operation waitOperation(com.google.longrunning.WaitOperationRequest request) { - return blockingUnaryCall( - getChannel(), getWaitOperationMethodHelper(), getCallOptions(), request); + public com.google.longrunning.Operation waitOperation( + com.google.longrunning.WaitOperationRequest request) { + return blockingUnaryCall(getChannel(), getWaitOperationMethod(), getCallOptions(), request); } } /** + * + * *
    * Manages long-running operations with an API service.
    * When an API method normally takes long time to complete, it can be designed
@@ -616,23 +711,20 @@ public Operation waitOperation(com.google.longrunning.WaitOperationRequest reque
    * so developers can have a consistent client experience.
    * 
*/ - public static final class OperationsFutureStub extends io.grpc.stub.AbstractStub { - private OperationsFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private OperationsFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { + public static final class OperationsFutureStub + extends io.grpc.stub.AbstractFutureStub { + private OperationsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } - @Override - protected OperationsFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { + @java.lang.Override + 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`.
@@ -645,26 +737,31 @@ protected OperationsFutureStub build(io.grpc.Channel channel,
      * is the parent resource, without the operations collection id.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listOperations( - ListOperationsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.longrunning.ListOperationsResponse> + listOperations(com.google.longrunning.ListOperationsRequest request) { return futureUnaryCall( - getChannel().newCall(getListOperationsMethodHelper(), getCallOptions()), request); + 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.ListenableFuture getOperation( - GetOperationRequest request) { + public com.google.common.util.concurrent.ListenableFuture + getOperation(com.google.longrunning.GetOperationRequest request) { return futureUnaryCall( - getChannel().newCall(getGetOperationMethodHelper(), getCallOptions()), request); + 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
@@ -672,13 +769,15 @@ public com.google.common.util.concurrent.ListenableFuture getOperatio
      * `google.rpc.Code.UNIMPLEMENTED`.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture deleteOperation( - DeleteOperationRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteOperation(com.google.longrunning.DeleteOperationRequest request) { return futureUnaryCall( - getChannel().newCall(getDeleteOperationMethodHelper(), getCallOptions()), request); + 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
@@ -692,13 +791,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture cancelOperation(
-        CancelOperationRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        cancelOperation(com.google.longrunning.CancelOperationRequest request) {
       return futureUnaryCall(
-          getChannel().newCall(getCancelOperationMethodHelper(), getCallOptions()), request);
+          getChannel().newCall(getCancelOperationMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Waits for the specified long-running operation until it is done or reaches
      * at most a specified timeout, returning the latest state.  If the operation
@@ -711,10 +812,10 @@ 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 futureUnaryCall(
-          getChannel().newCall(getWaitOperationMethodHelper(), getCallOptions()), request);
+          getChannel().newCall(getWaitOperationMethod(), getCallOptions()), request);
     }
   }
 
@@ -724,11 +825,11 @@ public com.google.common.util.concurrent.ListenableFuture waitOperati
   private static final int METHODID_CANCEL_OPERATION = 3;
   private static final int METHODID_WAIT_OPERATION = 4;
 
-  private static final class MethodHandlers implements
-      io.grpc.stub.ServerCalls.UnaryMethod,
-      io.grpc.stub.ServerCalls.ServerStreamingMethod,
-      io.grpc.stub.ServerCalls.ClientStreamingMethod,
-      io.grpc.stub.ServerCalls.BidiStreamingMethod {
+  private static final class MethodHandlers
+      implements io.grpc.stub.ServerCalls.UnaryMethod,
+          io.grpc.stub.ServerCalls.ServerStreamingMethod,
+          io.grpc.stub.ServerCalls.ClientStreamingMethod,
+          io.grpc.stub.ServerCalls.BidiStreamingMethod {
     private final OperationsImplBase serviceImpl;
     private final int methodId;
 
@@ -737,37 +838,43 @@ private static final class MethodHandlers implements
       this.methodId = methodId;
     }
 
-    @Override
-    @SuppressWarnings("unchecked")
+    @java.lang.Override
+    @java.lang.SuppressWarnings("unchecked")
     public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
         case METHODID_LIST_OPERATIONS:
-          serviceImpl.listOperations((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((GetOperationRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.getOperation(
+              (com.google.longrunning.GetOperationRequest) request,
+              (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_DELETE_OPERATION:
-          serviceImpl.deleteOperation((DeleteOperationRequest) request,
+          serviceImpl.deleteOperation(
+              (com.google.longrunning.DeleteOperationRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_CANCEL_OPERATION:
-          serviceImpl.cancelOperation((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,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.waitOperation(
+              (com.google.longrunning.WaitOperationRequest) request,
+              (io.grpc.stub.StreamObserver) responseObserver);
           break;
         default:
           throw new AssertionError();
       }
     }
 
-    @Override
-    @SuppressWarnings("unchecked")
+    @java.lang.Override
+    @java.lang.SuppressWarnings("unchecked")
     public io.grpc.stub.StreamObserver invoke(
         io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
@@ -777,16 +884,17 @@ public io.grpc.stub.StreamObserver invoke(
     }
   }
 
-  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() {}
 
-    @Override
+    @java.lang.Override
     public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
-      return OperationsProto.getDescriptor();
+      return com.google.longrunning.OperationsProto.getDescriptor();
     }
 
-    @Override
+    @java.lang.Override
     public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
       return getFileDescriptor().findServiceByName("Operations");
     }
@@ -806,7 +914,7 @@ private static final class OperationsMethodDescriptorSupplier
       this.methodName = methodName;
     }
 
-    @Override
+    @java.lang.Override
     public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
       return getServiceDescriptor().findMethodByName(methodName);
     }
@@ -820,14 +928,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(getListOperationsMethodHelper())
-              .addMethod(getGetOperationMethodHelper())
-              .addMethod(getDeleteOperationMethodHelper())
-              .addMethod(getCancelOperationMethodHelper())
-              .addMethod(getWaitOperationMethodHelper())
-              .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/pom.xml b/pom.xml
index 804140ff..ee10a207 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,8 +1,8 @@
 
 
   4.0.0
-  com.google.cloud
-  google-iam-parent
+  com.google.api.grpc
+  google-common-protos-parent
   pom
   1.17.1-SNAPSHOT
   Google Common Protos Parent
@@ -96,6 +96,11 @@
         guava
         ${guava.version}
       
+      
+        javax.annotation
+        javax.annotation-api
+        1.3.2
+      
 
       
         junit
diff --git a/proto-google-common-protos/pom.xml b/proto-google-common-protos/pom.xml
index 12901e7a..99994e1f 100644
--- a/proto-google-common-protos/pom.xml
+++ b/proto-google-common-protos/pom.xml
@@ -8,8 +8,8 @@
   proto-google-common-protos
   PROTO library for proto-google-common-protos
   
-    com.google.cloud
-    google-iam-parent
+    com.google.api.grpc
+    google-common-protos-parent
     1.17.1-SNAPSHOT
   
   
diff --git a/proto-google-common-protos/src/main/java/com/google/api/Advice.java b/proto-google-common-protos/src/main/java/com/google/api/Advice.java
index 70c2dbf6..a1194c32 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/Advice.java
+++ b/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,33 +28,39 @@
  *
  * 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_ = "";
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new Advice();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Advice(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
-    int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
         com.google.protobuf.UnknownFieldSet.newBuilder();
     try {
@@ -48,81 +71,86 @@ private Advice(
           case 0:
             done = true;
             break;
-          case 18: {
-            String s = input.readStringRequireUtf8();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            description_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              description_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.ConfigChangeProto.internal_static_google_api_Advice_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return com.google.api.ConfigChangeProto.internal_static_google_api_Advice_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            Advice.class, Builder.class);
+            com.google.api.Advice.class, com.google.api.Advice.Builder.class);
   }
 
   public static final int DESCRIPTION_FIELD_NUMBER = 2;
-  private volatile Object description_;
+  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. */ - public String getDescription() { - Object ref = description_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + 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); description_ = b; return b; } else { @@ -131,7 +159,8 @@ public String getDescription() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -141,16 +170,15 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -164,23 +192,22 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof Advice)) { + if (!(obj instanceof com.google.api.Advice)) { return super.equals(obj); } - Advice other = (Advice) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -194,97 +221,103 @@ public int hashCode() { return hash; } - public static 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 Advice parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Advice parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static 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 Advice parseFrom( + + 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 Advice parseFrom(byte[] data) + + public static com.google.api.Advice parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Advice parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Advice parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Advice parseFrom(java.io.InputStream input) + + 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 Advice parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Advice parseFrom( + 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 Advice parseDelimitedFrom(java.io.InputStream input) + + 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 Advice parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Advice parseDelimitedFrom( + 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 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 Advice parseFrom( + + 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(Advice prototype) { + + public static Builder newBuilder(com.google.api.Advice prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + 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.
@@ -292,21 +325,20 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.Advice}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.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;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return com.google.api.ConfigChangeProto.internal_static_google_api_Advice_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              Advice.class, Builder.class);
+              com.google.api.Advice.class, com.google.api.Advice.Builder.class);
     }
 
     // Construct using com.google.api.Advice.newBuilder()
@@ -314,17 +346,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       description_ = "";
@@ -332,78 +363,78 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.api.ConfigChangeProto.internal_static_google_api_Advice_descriptor;
     }
 
-    @Override
-    public Advice getDefaultInstanceForType() {
-      return Advice.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.Advice getDefaultInstanceForType() {
+      return com.google.api.Advice.getDefaultInstance();
     }
 
-    @Override
-    public Advice build() {
-      Advice result = buildPartial();
+    @java.lang.Override
+    public com.google.api.Advice build() {
+      com.google.api.Advice result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public Advice buildPartial() {
-      Advice result = new Advice(this);
+    @java.lang.Override
+    public com.google.api.Advice buildPartial() {
+      com.google.api.Advice result = new com.google.api.Advice(this);
       result.description_ = description_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof Advice) {
-        return mergeFrom((Advice)other);
+      if (other instanceof com.google.api.Advice) {
+        return mergeFrom((com.google.api.Advice) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(Advice other) {
-      if (other == Advice.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.Advice other) {
+      if (other == com.google.api.Advice.getDefaultInstance()) return this;
       if (!other.getDescription().isEmpty()) {
         description_ = other.description_;
         onChanged();
@@ -413,21 +444,21 @@ public Builder mergeFrom(Advice other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      Advice parsedMessage = null;
+      com.google.api.Advice parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (Advice) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.Advice) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -437,42 +468,47 @@ public Builder mergeFrom(
       return this;
     }
 
-    private Object description_ = "";
+    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 String getDescription() { - Object ref = description_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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; + java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * 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() { - Object ref = description_; + 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( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -480,106 +516,116 @@ public 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( - String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; 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() { - + description_ = getDefaultInstance().getDescription(); 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; + * + * @param value The bytes for description to set. + * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.Advice) } // @@protoc_insertion_point(class_scope:google.api.Advice) - private static final Advice DEFAULT_INSTANCE; + private static final com.google.api.Advice DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new Advice(); + DEFAULT_INSTANCE = new com.google.api.Advice(); } - public static Advice getDefaultInstance() { + public static com.google.api.Advice getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public Advice parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Advice(input, extensionRegistry); - } - }; + 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 { + return new Advice(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public Advice getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.Advice getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/AdviceOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/AdviceOrBuilder.java index aa5b14ae..313e6ff8 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/AdviceOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/AdviceOrBuilder.java @@ -1,29 +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. */ - String getDescription(); + 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/proto-google-common-protos/src/main/java/com/google/api/AnnotationsProto.java b/proto-google-common-protos/src/main/java/com/google/api/AnnotationsProto.java index 77218ace..fb7f8ed5 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/AnnotationsProto.java +++ b/proto-google-common-protos/src/main/java/com/google/api/AnnotationsProto.java @@ -1,3 +1,18 @@ +/* + * 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 @@ -5,65 +20,57 @@ public final class AnnotationsProto { private AnnotationsProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - registry.add(AnnotationsProto.http); + + 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 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, - HttpRule> http = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - HttpRule.class, - HttpRule.getDefaultInstance()); + 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() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { - 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" + 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" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - HttpProto.getDescriptor(), - com.google.protobuf.DescriptorProtos.getDescriptor(), - }, assigner); + 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)); - HttpProto.getDescriptor(); + com.google.api.HttpProto.getDescriptor(); com.google.protobuf.DescriptorProtos.getDescriptor(); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/AuthProto.java b/proto-google-common-protos/src/main/java/com/google/api/AuthProto.java index 793d7e1a..cb30bf70 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/AuthProto.java +++ b/proto-google-common-protos/src/main/java/com/google/api/AuthProto.java @@ -1,3 +1,18 @@ +/* + * 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 @@ -5,109 +20,115 @@ 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); + 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_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_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_AuthProvider_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_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_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_api_AuthRequirement_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { - 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\"j\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\taudiences\030\004 \001(\t\022\031" + - "\n\021authorization_url\030\005 \001(\t\"-\n\021OAuthRequir" + - "ements\022\030\n\020canonical_scopes\030\001 \001(\t\"9\n\017Auth" + - "Requirement\022\023\n\013provider_id\030\001 \001(\t\022\021\n\taudi" + - "ences\030\002 \001(\tBk\n\016com.google.apiB\tAuthProto" + - "P\001ZEgoogle.golang.org/genproto/googleapi" + - "s/api/serviceconfig;serviceconfig\242\002\004GAPI" + - "b\006proto3" + 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\"L\n" + + "\013JwtLocation\022\020\n\006header\030\001 \001(\tH\000\022\017\n\005query\030" + + "\002 \001(\tH\000\022\024\n\014value_prefix\030\003 \001(\tB\004\n\002in\"\232\001\n\014" + + "AuthProvider\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\taudiences\030\004 \001(\t\022\031\n" + + "\021authorization_url\030\005 \001(\t\022.\n\rjwt_location" + + "s\030\006 \003(\0132\027.google.api.JwtLocation\"-\n\021OAut" + + "hRequirements\022\030\n\020canonical_scopes\030\001 \001(\t\"" + + "9\n\017AuthRequirement\022\023\n\013provider_id\030\001 \001(\t\022" + + "\021\n\taudiences\030\002 \001(\tBk\n\016com.google.apiB\tAu" + + "thProtoP\001ZEgoogle.golang.org/genproto/go" + + "ogleapis/api/serviceconfig;serviceconfig" + + "\242\002\004GAPIb\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - 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 String[] { "Rules", "Providers", }); + 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 String[] { "Selector", "Oauth", "AllowWithoutCredential", "Requirements", }); - internal_static_google_api_AuthProvider_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_api_AuthProvider_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_AuthProvider_descriptor, - new String[] { "Id", "Issuer", "JwksUri", "Audiences", "AuthorizationUrl", }); + 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", "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(3); - internal_static_google_api_OAuthRequirements_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_OAuthRequirements_descriptor, - new String[] { "CanonicalScopes", }); + 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(4); - internal_static_google_api_AuthRequirement_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_AuthRequirement_descriptor, - new String[] { "ProviderId", "Audiences", }); + 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/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java b/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java index 8c7e46cf..a9eae78e 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java +++ b/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,35 +29,43 @@
  *
  * 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_ = "";
     jwksUri_ = "";
     audiences_ = "";
     authorizationUrl_ = "";
+    jwtLocations_ = java.util.Collections.emptyList();
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new AuthProvider();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private AuthProvider(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -53,71 +78,90 @@ private AuthProvider(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            id_ = s;
-            break;
-          }
-          case 18: {
-            String s = input.readStringRequireUtf8();
+              id_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            issuer_ = s;
-            break;
-          }
-          case 26: {
-            String s = input.readStringRequireUtf8();
+              issuer_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            jwksUri_ = s;
-            break;
-          }
-          case 34: {
-            String s = input.readStringRequireUtf8();
+              jwksUri_ = s;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            audiences_ = s;
-            break;
-          }
-          case 42: {
-            String s = input.readStringRequireUtf8();
+              audiences_ = s;
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            authorizationUrl_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              authorizationUrl_ = s;
+              break;
+            }
+          case 50:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                jwtLocations_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              jwtLocations_.add(
+                  input.readMessage(com.google.api.JwtLocation.parser(), extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
+      if (((mutable_bitField0_ & 0x00000001) != 0)) {
+        jwtLocations_ = java.util.Collections.unmodifiableList(jwtLocations_);
+      }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return AuthProto.internal_static_google_api_AuthProvider_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.api.AuthProto.internal_static_google_api_AuthProvider_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return AuthProto.internal_static_google_api_AuthProvider_fieldAccessorTable
+    return com.google.api.AuthProto.internal_static_google_api_AuthProvider_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            AuthProvider.class, Builder.class);
+            com.google.api.AuthProvider.class, com.google.api.AuthProvider.Builder.class);
   }
 
   public static final int ID_FIELD_NUMBER = 1;
-  private volatile Object id_;
+  private volatile java.lang.Object id_;
   /**
+   *
+   *
    * 
    * The unique identifier of the auth provider. It will be referred to by
    * `AuthRequirement.provider_id`.
@@ -125,20 +169,23 @@ private AuthProvider(
    * 
* * string id = 1; + * + * @return The id. */ - public String getId() { - Object ref = id_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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`.
@@ -146,14 +193,14 @@ public String getId() {
    * 
* * string id = 1; + * + * @return The bytes for id. */ - public com.google.protobuf.ByteString - getIdBytes() { - Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + 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); id_ = b; return b; } else { @@ -162,8 +209,10 @@ public String getId() { } public static final int ISSUER_FIELD_NUMBER = 2; - private volatile Object issuer_; + 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
@@ -173,20 +222,23 @@ public String getId() {
    * 
* * string issuer = 2; + * + * @return The issuer. */ - public String getIssuer() { - Object ref = issuer_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getIssuer() { + java.lang.Object ref = issuer_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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
@@ -196,14 +248,14 @@ public String getIssuer() {
    * 
* * string issuer = 2; + * + * @return The bytes for issuer. */ - public com.google.protobuf.ByteString - getIssuerBytes() { - Object ref = issuer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + 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); issuer_ = b; return b; } else { @@ -212,8 +264,10 @@ public String getIssuer() { } public static final int JWKS_URI_FIELD_NUMBER = 3; - private volatile Object jwksUri_; + private volatile java.lang.Object jwksUri_; /** + * + * *
    * URL of the provider's public key set to validate signature of the JWT. See
    * [OpenID
@@ -229,20 +283,23 @@ public String getIssuer() {
    * 
* * string jwks_uri = 3; + * + * @return The jwksUri. */ - public String getJwksUri() { - Object ref = jwksUri_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getJwksUri() { + java.lang.Object ref = jwksUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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
@@ -258,14 +315,14 @@ public String getJwksUri() {
    * 
* * string jwks_uri = 3; + * + * @return The bytes for jwksUri. */ - public com.google.protobuf.ByteString - getJwksUriBytes() { - Object ref = jwksUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + 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); jwksUri_ = b; return b; } else { @@ -274,8 +331,10 @@ public String getJwksUri() { } public static final int AUDIENCES_FIELD_NUMBER = 4; - private volatile Object audiences_; + 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).
@@ -291,20 +350,23 @@ public String getJwksUri() {
    * 
* * string audiences = 4; + * + * @return The audiences. */ - public String getAudiences() { - Object ref = audiences_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getAudiences() { + java.lang.Object ref = audiences_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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).
@@ -320,14 +382,14 @@ public String getAudiences() {
    * 
* * string audiences = 4; + * + * @return The bytes for audiences. */ - public com.google.protobuf.ByteString - getAudiencesBytes() { - Object ref = audiences_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + 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); audiences_ = b; return b; } else { @@ -336,42 +398,47 @@ public String getAudiences() { } public static final int AUTHORIZATION_URL_FIELD_NUMBER = 5; - private volatile Object authorizationUrl_; + 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. */ - public String getAuthorizationUrl() { - Object ref = authorizationUrl_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getAuthorizationUrl() { + java.lang.Object ref = authorizationUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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. */ - public com.google.protobuf.ByteString - getAuthorizationUrlBytes() { - Object ref = authorizationUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + 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); authorizationUrl_ = b; return b; } else { @@ -379,8 +446,138 @@ public String getAuthorizationUrl() { } } + public static final int JWT_LOCATIONS_FIELD_NUMBER = 6; + private java.util.List jwtLocations_; + /** + * + * + *
+   * Defines the locations to extract the JWT.
+   * JWT locations can be either from HTTP headers or URL query parameters.
+   * The rule is that the first match wins. The checking order is: checking
+   * all headers first, then URL query parameters.
+   * If not specified,  default to use following 3 locations:
+   *    1) Authorization: Bearer
+   *    2) x-goog-iap-jwt-assertion
+   *    3) access_token query parameter
+   * Default locations can be specified as followings:
+   *    jwt_locations:
+   *    - header: Authorization
+   *      value_prefix: "Bearer "
+   *    - header: x-goog-iap-jwt-assertion
+   *    - query: access_token
+   * 
+ * + * repeated .google.api.JwtLocation jwt_locations = 6; + */ + public java.util.List getJwtLocationsList() { + return jwtLocations_; + } + /** + * + * + *
+   * Defines the locations to extract the JWT.
+   * JWT locations can be either from HTTP headers or URL query parameters.
+   * The rule is that the first match wins. The checking order is: checking
+   * all headers first, then URL query parameters.
+   * If not specified,  default to use following 3 locations:
+   *    1) Authorization: Bearer
+   *    2) x-goog-iap-jwt-assertion
+   *    3) access_token query parameter
+   * Default locations can be specified as followings:
+   *    jwt_locations:
+   *    - header: Authorization
+   *      value_prefix: "Bearer "
+   *    - header: x-goog-iap-jwt-assertion
+   *    - query: access_token
+   * 
+ * + * repeated .google.api.JwtLocation jwt_locations = 6; + */ + public java.util.List + getJwtLocationsOrBuilderList() { + return jwtLocations_; + } + /** + * + * + *
+   * Defines the locations to extract the JWT.
+   * JWT locations can be either from HTTP headers or URL query parameters.
+   * The rule is that the first match wins. The checking order is: checking
+   * all headers first, then URL query parameters.
+   * If not specified,  default to use following 3 locations:
+   *    1) Authorization: Bearer
+   *    2) x-goog-iap-jwt-assertion
+   *    3) access_token query parameter
+   * Default locations can be specified as followings:
+   *    jwt_locations:
+   *    - header: Authorization
+   *      value_prefix: "Bearer "
+   *    - header: x-goog-iap-jwt-assertion
+   *    - query: access_token
+   * 
+ * + * repeated .google.api.JwtLocation jwt_locations = 6; + */ + public int getJwtLocationsCount() { + return jwtLocations_.size(); + } + /** + * + * + *
+   * Defines the locations to extract the JWT.
+   * JWT locations can be either from HTTP headers or URL query parameters.
+   * The rule is that the first match wins. The checking order is: checking
+   * all headers first, then URL query parameters.
+   * If not specified,  default to use following 3 locations:
+   *    1) Authorization: Bearer
+   *    2) x-goog-iap-jwt-assertion
+   *    3) access_token query parameter
+   * Default locations can be specified as followings:
+   *    jwt_locations:
+   *    - header: Authorization
+   *      value_prefix: "Bearer "
+   *    - header: x-goog-iap-jwt-assertion
+   *    - query: access_token
+   * 
+ * + * repeated .google.api.JwtLocation jwt_locations = 6; + */ + public com.google.api.JwtLocation getJwtLocations(int index) { + return jwtLocations_.get(index); + } + /** + * + * + *
+   * Defines the locations to extract the JWT.
+   * JWT locations can be either from HTTP headers or URL query parameters.
+   * The rule is that the first match wins. The checking order is: checking
+   * all headers first, then URL query parameters.
+   * If not specified,  default to use following 3 locations:
+   *    1) Authorization: Bearer
+   *    2) x-goog-iap-jwt-assertion
+   *    3) access_token query parameter
+   * Default locations can be specified as followings:
+   *    jwt_locations:
+   *    - header: Authorization
+   *      value_prefix: "Bearer "
+   *    - header: x-goog-iap-jwt-assertion
+   *    - query: access_token
+   * 
+ * + * repeated .google.api.JwtLocation jwt_locations = 6; + */ + public com.google.api.JwtLocationOrBuilder getJwtLocationsOrBuilder(int index) { + return jwtLocations_.get(index); + } + private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -390,9 +587,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -408,10 +604,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getAuthorizationUrlBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, authorizationUrl_); } + for (int i = 0; i < jwtLocations_.size(); i++) { + output.writeMessage(6, jwtLocations_.get(i)); + } unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -432,36 +631,35 @@ public int getSerializedSize() { if (!getAuthorizationUrlBytes().isEmpty()) { 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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof AuthProvider)) { + if (!(obj instanceof com.google.api.AuthProvider)) { return super.equals(obj); } - AuthProvider other = (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; + 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -478,102 +676,112 @@ public int hashCode() { hash = (53 * hash) + getAudiences().hashCode(); hash = (37 * hash) + AUTHORIZATION_URL_FIELD_NUMBER; hash = (53 * hash) + getAuthorizationUrl().hashCode(); + if (getJwtLocationsCount() > 0) { + hash = (37 * hash) + JWT_LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getJwtLocationsList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static 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 AuthProvider parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.AuthProvider parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static 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 AuthProvider parseFrom( + + 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 AuthProvider parseFrom(byte[] data) + + public static com.google.api.AuthProvider parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static AuthProvider parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.AuthProvider parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static AuthProvider parseFrom(java.io.InputStream input) + + 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 AuthProvider parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.AuthProvider parseFrom( + 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 AuthProvider parseDelimitedFrom(java.io.InputStream input) + + 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 AuthProvider parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.AuthProvider parseDelimitedFrom( + 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 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 AuthProvider parseFrom( + + 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(AuthProvider prototype) { + + public static Builder newBuilder(com.google.api.AuthProvider prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + 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
@@ -582,21 +790,20 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.AuthProvider}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.AuthProvider)
       com.google.api.AuthProviderOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return AuthProto.internal_static_google_api_AuthProvider_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.api.AuthProto.internal_static_google_api_AuthProvider_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return AuthProto.internal_static_google_api_AuthProvider_fieldAccessorTable
+      return com.google.api.AuthProto.internal_static_google_api_AuthProvider_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              AuthProvider.class, Builder.class);
+              com.google.api.AuthProvider.class, com.google.api.AuthProvider.Builder.class);
     }
 
     // Construct using com.google.api.AuthProvider.newBuilder()
@@ -604,17 +811,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+        getJwtLocationsFieldBuilder();
       }
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       id_ = "";
@@ -627,85 +835,101 @@ public Builder clear() {
 
       authorizationUrl_ = "";
 
+      if (jwtLocationsBuilder_ == null) {
+        jwtLocations_ = java.util.Collections.emptyList();
+        bitField0_ = (bitField0_ & ~0x00000001);
+      } else {
+        jwtLocationsBuilder_.clear();
+      }
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return AuthProto.internal_static_google_api_AuthProvider_descriptor;
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.api.AuthProto.internal_static_google_api_AuthProvider_descriptor;
     }
 
-    @Override
-    public AuthProvider getDefaultInstanceForType() {
-      return AuthProvider.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.AuthProvider getDefaultInstanceForType() {
+      return com.google.api.AuthProvider.getDefaultInstance();
     }
 
-    @Override
-    public AuthProvider build() {
-      AuthProvider result = buildPartial();
+    @java.lang.Override
+    public com.google.api.AuthProvider build() {
+      com.google.api.AuthProvider result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public AuthProvider buildPartial() {
-      AuthProvider result = new AuthProvider(this);
+    @java.lang.Override
+    public com.google.api.AuthProvider buildPartial() {
+      com.google.api.AuthProvider result = new com.google.api.AuthProvider(this);
+      int from_bitField0_ = bitField0_;
       result.id_ = id_;
       result.issuer_ = issuer_;
       result.jwksUri_ = jwksUri_;
       result.audiences_ = audiences_;
       result.authorizationUrl_ = authorizationUrl_;
+      if (jwtLocationsBuilder_ == null) {
+        if (((bitField0_ & 0x00000001) != 0)) {
+          jwtLocations_ = java.util.Collections.unmodifiableList(jwtLocations_);
+          bitField0_ = (bitField0_ & ~0x00000001);
+        }
+        result.jwtLocations_ = jwtLocations_;
+      } else {
+        result.jwtLocations_ = jwtLocationsBuilder_.build();
+      }
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof AuthProvider) {
-        return mergeFrom((AuthProvider)other);
+      if (other instanceof com.google.api.AuthProvider) {
+        return mergeFrom((com.google.api.AuthProvider) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(AuthProvider other) {
-      if (other == AuthProvider.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.AuthProvider other) {
+      if (other == com.google.api.AuthProvider.getDefaultInstance()) return this;
       if (!other.getId().isEmpty()) {
         id_ = other.id_;
         onChanged();
@@ -726,26 +950,53 @@ public Builder mergeFrom(AuthProvider other) {
         authorizationUrl_ = other.authorizationUrl_;
         onChanged();
       }
+      if (jwtLocationsBuilder_ == null) {
+        if (!other.jwtLocations_.isEmpty()) {
+          if (jwtLocations_.isEmpty()) {
+            jwtLocations_ = other.jwtLocations_;
+            bitField0_ = (bitField0_ & ~0x00000001);
+          } else {
+            ensureJwtLocationsIsMutable();
+            jwtLocations_.addAll(other.jwtLocations_);
+          }
+          onChanged();
+        }
+      } else {
+        if (!other.jwtLocations_.isEmpty()) {
+          if (jwtLocationsBuilder_.isEmpty()) {
+            jwtLocationsBuilder_.dispose();
+            jwtLocationsBuilder_ = null;
+            jwtLocations_ = other.jwtLocations_;
+            bitField0_ = (bitField0_ & ~0x00000001);
+            jwtLocationsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getJwtLocationsFieldBuilder()
+                    : null;
+          } else {
+            jwtLocationsBuilder_.addAllMessages(other.jwtLocations_);
+          }
+        }
+      }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      AuthProvider parsedMessage = null;
+      com.google.api.AuthProvider parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (AuthProvider) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.AuthProvider) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -755,8 +1006,12 @@ public Builder mergeFrom(
       return this;
     }
 
-    private Object id_ = "";
+    private int bitField0_;
+
+    private java.lang.Object id_ = "";
     /**
+     *
+     *
      * 
      * The unique identifier of the auth provider. It will be referred to by
      * `AuthRequirement.provider_id`.
@@ -764,20 +1019,23 @@ public Builder mergeFrom(
      * 
* * string id = 1; + * + * @return The id. */ - public String getId() { - Object ref = id_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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; + java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The unique identifier of the auth provider. It will be referred to by
      * `AuthRequirement.provider_id`.
@@ -785,14 +1043,14 @@ public String getId() {
      * 
* * string id = 1; + * + * @return The bytes for id. */ - public com.google.protobuf.ByteString - getIdBytes() { - Object ref = id_; + 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( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -800,6 +1058,8 @@ public String getId() { } } /** + * + * *
      * The unique identifier of the auth provider. It will be referred to by
      * `AuthRequirement.provider_id`.
@@ -807,18 +1067,22 @@ public String getId() {
      * 
* * string id = 1; + * + * @param value The id to set. + * @return This builder for chaining. */ - public Builder setId( - String value) { + public Builder setId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** + * + * *
      * The unique identifier of the auth provider. It will be referred to by
      * `AuthRequirement.provider_id`.
@@ -826,14 +1090,18 @@ public Builder setId(
      * 
* * string id = 1; + * + * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
      * The unique identifier of the auth provider. It will be referred to by
      * `AuthRequirement.provider_id`.
@@ -841,21 +1109,25 @@ 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) { + public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; } - private Object issuer_ = ""; + 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
@@ -865,20 +1137,23 @@ public Builder setIdBytes(
      * 
* * string issuer = 2; + * + * @return The issuer. */ - public String getIssuer() { - Object ref = issuer_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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; + java.lang.String s = bs.toStringUtf8(); issuer_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Identifies the principal that issued the JWT. See
      * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
@@ -888,14 +1163,14 @@ public String getIssuer() {
      * 
* * string issuer = 2; + * + * @return The bytes for issuer. */ - public com.google.protobuf.ByteString - getIssuerBytes() { - Object ref = issuer_; + 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( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); issuer_ = b; return b; } else { @@ -903,6 +1178,8 @@ public 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
@@ -912,18 +1189,22 @@ public String getIssuer() {
      * 
* * string issuer = 2; + * + * @param value The issuer to set. + * @return This builder for chaining. */ - public Builder setIssuer( - String value) { + public Builder setIssuer(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + issuer_ = value; 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
@@ -933,14 +1214,18 @@ public Builder setIssuer(
      * 
* * string issuer = 2; + * + * @return This builder for chaining. */ public Builder clearIssuer() { - + issuer_ = getDefaultInstance().getIssuer(); 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
@@ -950,21 +1235,25 @@ 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) { + public Builder setIssuerBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + issuer_ = value; onChanged(); return this; } - private Object jwksUri_ = ""; + private java.lang.Object jwksUri_ = ""; /** + * + * *
      * URL of the provider's public key set to validate signature of the JWT. See
      * [OpenID
@@ -980,20 +1269,23 @@ public Builder setIssuerBytes(
      * 
* * string jwks_uri = 3; + * + * @return The jwksUri. */ - public String getJwksUri() { - Object ref = jwksUri_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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; + java.lang.String s = bs.toStringUtf8(); jwksUri_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * URL of the provider's public key set to validate signature of the JWT. See
      * [OpenID
@@ -1009,14 +1301,14 @@ public String getJwksUri() {
      * 
* * string jwks_uri = 3; + * + * @return The bytes for jwksUri. */ - public com.google.protobuf.ByteString - getJwksUriBytes() { - Object ref = jwksUri_; + 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( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jwksUri_ = b; return b; } else { @@ -1024,6 +1316,8 @@ public String getJwksUri() { } } /** + * + * *
      * URL of the provider's public key set to validate signature of the JWT. See
      * [OpenID
@@ -1039,18 +1333,22 @@ public String getJwksUri() {
      * 
* * string jwks_uri = 3; + * + * @param value The jwksUri to set. + * @return This builder for chaining. */ - public Builder setJwksUri( - String value) { + public Builder setJwksUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + jwksUri_ = value; onChanged(); return this; } /** + * + * *
      * URL of the provider's public key set to validate signature of the JWT. See
      * [OpenID
@@ -1066,14 +1364,18 @@ public Builder setJwksUri(
      * 
* * string jwks_uri = 3; + * + * @return This builder for chaining. */ public Builder clearJwksUri() { - + jwksUri_ = getDefaultInstance().getJwksUri(); onChanged(); return this; } /** + * + * *
      * URL of the provider's public key set to validate signature of the JWT. See
      * [OpenID
@@ -1089,21 +1391,25 @@ 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) { + public Builder setJwksUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + jwksUri_ = value; onChanged(); return this; } - private Object audiences_ = ""; + 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).
@@ -1119,20 +1425,23 @@ public Builder setJwksUriBytes(
      * 
* * string audiences = 4; + * + * @return The audiences. */ - public String getAudiences() { - Object ref = audiences_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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; + java.lang.String s = bs.toStringUtf8(); audiences_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The list of JWT
      * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
@@ -1148,14 +1457,14 @@ public String getAudiences() {
      * 
* * string audiences = 4; + * + * @return The bytes for audiences. */ - public com.google.protobuf.ByteString - getAudiencesBytes() { - Object ref = audiences_; + 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( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); audiences_ = b; return b; } else { @@ -1163,6 +1472,8 @@ public String getAudiences() { } } /** + * + * *
      * The list of JWT
      * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
@@ -1178,18 +1489,22 @@ public String getAudiences() {
      * 
* * string audiences = 4; + * + * @param value The audiences to set. + * @return This builder for chaining. */ - public Builder setAudiences( - String value) { + public Builder setAudiences(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + audiences_ = value; onChanged(); return this; } /** + * + * *
      * The list of JWT
      * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
@@ -1205,14 +1520,18 @@ public Builder setAudiences(
      * 
* * string audiences = 4; + * + * @return This builder for chaining. */ public Builder clearAudiences() { - + audiences_ = getDefaultInstance().getAudiences(); onChanged(); return this; } /** + * + * *
      * The list of JWT
      * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
@@ -1228,55 +1547,62 @@ 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) { + public Builder setAudiencesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + audiences_ = value; onChanged(); return this; } - private Object authorizationUrl_ = ""; + 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 String getAuthorizationUrl() { - Object ref = authorizationUrl_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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; + java.lang.String s = bs.toStringUtf8(); authorizationUrl_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * 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() { - Object ref = authorizationUrl_; + 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( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); authorizationUrl_ = b; return b; } else { @@ -1284,106 +1610,696 @@ public 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( - String value) { + public Builder setAuthorizationUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + authorizationUrl_ = value; 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() { - + authorizationUrl_ = getDefaultInstance().getAuthorizationUrl(); 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; + * + * @param value The bytes for authorizationUrl to set. + * @return This builder for chaining. */ - public Builder setAuthorizationUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setAuthorizationUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authorizationUrl_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + private java.util.List jwtLocations_ = + java.util.Collections.emptyList(); + + private void ensureJwtLocationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + jwtLocations_ = new java.util.ArrayList(jwtLocations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.api.JwtLocation, + com.google.api.JwtLocation.Builder, + com.google.api.JwtLocationOrBuilder> + jwtLocationsBuilder_; + + /** + * + * + *
+     * Defines the locations to extract the JWT.
+     * JWT locations can be either from HTTP headers or URL query parameters.
+     * The rule is that the first match wins. The checking order is: checking
+     * all headers first, then URL query parameters.
+     * If not specified,  default to use following 3 locations:
+     *    1) Authorization: Bearer
+     *    2) x-goog-iap-jwt-assertion
+     *    3) access_token query parameter
+     * Default locations can be specified as followings:
+     *    jwt_locations:
+     *    - header: Authorization
+     *      value_prefix: "Bearer "
+     *    - header: x-goog-iap-jwt-assertion
+     *    - query: access_token
+     * 
+ * + * repeated .google.api.JwtLocation jwt_locations = 6; + */ + public java.util.List getJwtLocationsList() { + if (jwtLocationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(jwtLocations_); + } else { + return jwtLocationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Defines the locations to extract the JWT.
+     * JWT locations can be either from HTTP headers or URL query parameters.
+     * The rule is that the first match wins. The checking order is: checking
+     * all headers first, then URL query parameters.
+     * If not specified,  default to use following 3 locations:
+     *    1) Authorization: Bearer
+     *    2) x-goog-iap-jwt-assertion
+     *    3) access_token query parameter
+     * Default locations can be specified as followings:
+     *    jwt_locations:
+     *    - header: Authorization
+     *      value_prefix: "Bearer "
+     *    - header: x-goog-iap-jwt-assertion
+     *    - query: access_token
+     * 
+ * + * repeated .google.api.JwtLocation jwt_locations = 6; + */ + public int getJwtLocationsCount() { + if (jwtLocationsBuilder_ == null) { + return jwtLocations_.size(); + } else { + return jwtLocationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Defines the locations to extract the JWT.
+     * JWT locations can be either from HTTP headers or URL query parameters.
+     * The rule is that the first match wins. The checking order is: checking
+     * all headers first, then URL query parameters.
+     * If not specified,  default to use following 3 locations:
+     *    1) Authorization: Bearer
+     *    2) x-goog-iap-jwt-assertion
+     *    3) access_token query parameter
+     * Default locations can be specified as followings:
+     *    jwt_locations:
+     *    - header: Authorization
+     *      value_prefix: "Bearer "
+     *    - header: x-goog-iap-jwt-assertion
+     *    - query: access_token
+     * 
+ * + * repeated .google.api.JwtLocation jwt_locations = 6; + */ + public com.google.api.JwtLocation getJwtLocations(int index) { + if (jwtLocationsBuilder_ == null) { + return jwtLocations_.get(index); + } else { + return jwtLocationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Defines the locations to extract the JWT.
+     * JWT locations can be either from HTTP headers or URL query parameters.
+     * The rule is that the first match wins. The checking order is: checking
+     * all headers first, then URL query parameters.
+     * If not specified,  default to use following 3 locations:
+     *    1) Authorization: Bearer
+     *    2) x-goog-iap-jwt-assertion
+     *    3) access_token query parameter
+     * Default locations can be specified as followings:
+     *    jwt_locations:
+     *    - header: Authorization
+     *      value_prefix: "Bearer "
+     *    - header: x-goog-iap-jwt-assertion
+     *    - query: access_token
+     * 
+ * + * repeated .google.api.JwtLocation jwt_locations = 6; + */ + public Builder setJwtLocations(int index, com.google.api.JwtLocation value) { + if (jwtLocationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJwtLocationsIsMutable(); + jwtLocations_.set(index, value); + onChanged(); + } else { + jwtLocationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Defines the locations to extract the JWT.
+     * JWT locations can be either from HTTP headers or URL query parameters.
+     * The rule is that the first match wins. The checking order is: checking
+     * all headers first, then URL query parameters.
+     * If not specified,  default to use following 3 locations:
+     *    1) Authorization: Bearer
+     *    2) x-goog-iap-jwt-assertion
+     *    3) access_token query parameter
+     * Default locations can be specified as followings:
+     *    jwt_locations:
+     *    - header: Authorization
+     *      value_prefix: "Bearer "
+     *    - header: x-goog-iap-jwt-assertion
+     *    - query: access_token
+     * 
+ * + * repeated .google.api.JwtLocation jwt_locations = 6; + */ + public Builder setJwtLocations(int index, com.google.api.JwtLocation.Builder builderForValue) { + if (jwtLocationsBuilder_ == null) { + ensureJwtLocationsIsMutable(); + jwtLocations_.set(index, builderForValue.build()); + onChanged(); + } else { + jwtLocationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Defines the locations to extract the JWT.
+     * JWT locations can be either from HTTP headers or URL query parameters.
+     * The rule is that the first match wins. The checking order is: checking
+     * all headers first, then URL query parameters.
+     * If not specified,  default to use following 3 locations:
+     *    1) Authorization: Bearer
+     *    2) x-goog-iap-jwt-assertion
+     *    3) access_token query parameter
+     * Default locations can be specified as followings:
+     *    jwt_locations:
+     *    - header: Authorization
+     *      value_prefix: "Bearer "
+     *    - header: x-goog-iap-jwt-assertion
+     *    - query: access_token
+     * 
+ * + * repeated .google.api.JwtLocation jwt_locations = 6; + */ + public Builder addJwtLocations(com.google.api.JwtLocation value) { + if (jwtLocationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJwtLocationsIsMutable(); + jwtLocations_.add(value); + onChanged(); + } else { + jwtLocationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Defines the locations to extract the JWT.
+     * JWT locations can be either from HTTP headers or URL query parameters.
+     * The rule is that the first match wins. The checking order is: checking
+     * all headers first, then URL query parameters.
+     * If not specified,  default to use following 3 locations:
+     *    1) Authorization: Bearer
+     *    2) x-goog-iap-jwt-assertion
+     *    3) access_token query parameter
+     * Default locations can be specified as followings:
+     *    jwt_locations:
+     *    - header: Authorization
+     *      value_prefix: "Bearer "
+     *    - header: x-goog-iap-jwt-assertion
+     *    - query: access_token
+     * 
+ * + * repeated .google.api.JwtLocation jwt_locations = 6; + */ + public Builder addJwtLocations(int index, com.google.api.JwtLocation value) { + if (jwtLocationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJwtLocationsIsMutable(); + jwtLocations_.add(index, value); + onChanged(); + } else { + jwtLocationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Defines the locations to extract the JWT.
+     * JWT locations can be either from HTTP headers or URL query parameters.
+     * The rule is that the first match wins. The checking order is: checking
+     * all headers first, then URL query parameters.
+     * If not specified,  default to use following 3 locations:
+     *    1) Authorization: Bearer
+     *    2) x-goog-iap-jwt-assertion
+     *    3) access_token query parameter
+     * Default locations can be specified as followings:
+     *    jwt_locations:
+     *    - header: Authorization
+     *      value_prefix: "Bearer "
+     *    - header: x-goog-iap-jwt-assertion
+     *    - query: access_token
+     * 
+ * + * repeated .google.api.JwtLocation jwt_locations = 6; + */ + public Builder addJwtLocations(com.google.api.JwtLocation.Builder builderForValue) { + if (jwtLocationsBuilder_ == null) { + ensureJwtLocationsIsMutable(); + jwtLocations_.add(builderForValue.build()); + onChanged(); + } else { + jwtLocationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Defines the locations to extract the JWT.
+     * JWT locations can be either from HTTP headers or URL query parameters.
+     * The rule is that the first match wins. The checking order is: checking
+     * all headers first, then URL query parameters.
+     * If not specified,  default to use following 3 locations:
+     *    1) Authorization: Bearer
+     *    2) x-goog-iap-jwt-assertion
+     *    3) access_token query parameter
+     * Default locations can be specified as followings:
+     *    jwt_locations:
+     *    - header: Authorization
+     *      value_prefix: "Bearer "
+     *    - header: x-goog-iap-jwt-assertion
+     *    - query: access_token
+     * 
+ * + * repeated .google.api.JwtLocation jwt_locations = 6; + */ + public Builder addJwtLocations(int index, com.google.api.JwtLocation.Builder builderForValue) { + if (jwtLocationsBuilder_ == null) { + ensureJwtLocationsIsMutable(); + jwtLocations_.add(index, builderForValue.build()); + onChanged(); + } else { + jwtLocationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Defines the locations to extract the JWT.
+     * JWT locations can be either from HTTP headers or URL query parameters.
+     * The rule is that the first match wins. The checking order is: checking
+     * all headers first, then URL query parameters.
+     * If not specified,  default to use following 3 locations:
+     *    1) Authorization: Bearer
+     *    2) x-goog-iap-jwt-assertion
+     *    3) access_token query parameter
+     * Default locations can be specified as followings:
+     *    jwt_locations:
+     *    - header: Authorization
+     *      value_prefix: "Bearer "
+     *    - header: x-goog-iap-jwt-assertion
+     *    - query: access_token
+     * 
+ * + * repeated .google.api.JwtLocation jwt_locations = 6; + */ + public Builder addAllJwtLocations( + java.lang.Iterable values) { + if (jwtLocationsBuilder_ == null) { + ensureJwtLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jwtLocations_); + onChanged(); + } else { + jwtLocationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Defines the locations to extract the JWT.
+     * JWT locations can be either from HTTP headers or URL query parameters.
+     * The rule is that the first match wins. The checking order is: checking
+     * all headers first, then URL query parameters.
+     * If not specified,  default to use following 3 locations:
+     *    1) Authorization: Bearer
+     *    2) x-goog-iap-jwt-assertion
+     *    3) access_token query parameter
+     * Default locations can be specified as followings:
+     *    jwt_locations:
+     *    - header: Authorization
+     *      value_prefix: "Bearer "
+     *    - header: x-goog-iap-jwt-assertion
+     *    - query: access_token
+     * 
+ * + * repeated .google.api.JwtLocation jwt_locations = 6; + */ + public Builder clearJwtLocations() { + if (jwtLocationsBuilder_ == null) { + jwtLocations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + jwtLocationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Defines the locations to extract the JWT.
+     * JWT locations can be either from HTTP headers or URL query parameters.
+     * The rule is that the first match wins. The checking order is: checking
+     * all headers first, then URL query parameters.
+     * If not specified,  default to use following 3 locations:
+     *    1) Authorization: Bearer
+     *    2) x-goog-iap-jwt-assertion
+     *    3) access_token query parameter
+     * Default locations can be specified as followings:
+     *    jwt_locations:
+     *    - header: Authorization
+     *      value_prefix: "Bearer "
+     *    - header: x-goog-iap-jwt-assertion
+     *    - query: access_token
+     * 
+ * + * repeated .google.api.JwtLocation jwt_locations = 6; + */ + public Builder removeJwtLocations(int index) { + if (jwtLocationsBuilder_ == null) { + ensureJwtLocationsIsMutable(); + jwtLocations_.remove(index); + onChanged(); + } else { + jwtLocationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Defines the locations to extract the JWT.
+     * JWT locations can be either from HTTP headers or URL query parameters.
+     * The rule is that the first match wins. The checking order is: checking
+     * all headers first, then URL query parameters.
+     * If not specified,  default to use following 3 locations:
+     *    1) Authorization: Bearer
+     *    2) x-goog-iap-jwt-assertion
+     *    3) access_token query parameter
+     * Default locations can be specified as followings:
+     *    jwt_locations:
+     *    - header: Authorization
+     *      value_prefix: "Bearer "
+     *    - header: x-goog-iap-jwt-assertion
+     *    - query: access_token
+     * 
+ * + * repeated .google.api.JwtLocation jwt_locations = 6; + */ + public com.google.api.JwtLocation.Builder getJwtLocationsBuilder(int index) { + return getJwtLocationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Defines the locations to extract the JWT.
+     * JWT locations can be either from HTTP headers or URL query parameters.
+     * The rule is that the first match wins. The checking order is: checking
+     * all headers first, then URL query parameters.
+     * If not specified,  default to use following 3 locations:
+     *    1) Authorization: Bearer
+     *    2) x-goog-iap-jwt-assertion
+     *    3) access_token query parameter
+     * Default locations can be specified as followings:
+     *    jwt_locations:
+     *    - header: Authorization
+     *      value_prefix: "Bearer "
+     *    - header: x-goog-iap-jwt-assertion
+     *    - query: access_token
+     * 
+ * + * repeated .google.api.JwtLocation jwt_locations = 6; + */ + public com.google.api.JwtLocationOrBuilder getJwtLocationsOrBuilder(int index) { + if (jwtLocationsBuilder_ == null) { + return jwtLocations_.get(index); + } else { + return jwtLocationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Defines the locations to extract the JWT.
+     * JWT locations can be either from HTTP headers or URL query parameters.
+     * The rule is that the first match wins. The checking order is: checking
+     * all headers first, then URL query parameters.
+     * If not specified,  default to use following 3 locations:
+     *    1) Authorization: Bearer
+     *    2) x-goog-iap-jwt-assertion
+     *    3) access_token query parameter
+     * Default locations can be specified as followings:
+     *    jwt_locations:
+     *    - header: Authorization
+     *      value_prefix: "Bearer "
+     *    - header: x-goog-iap-jwt-assertion
+     *    - query: access_token
+     * 
+ * + * repeated .google.api.JwtLocation jwt_locations = 6; + */ + public java.util.List + getJwtLocationsOrBuilderList() { + if (jwtLocationsBuilder_ != null) { + return jwtLocationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(jwtLocations_); + } + } + /** + * + * + *
+     * Defines the locations to extract the JWT.
+     * JWT locations can be either from HTTP headers or URL query parameters.
+     * The rule is that the first match wins. The checking order is: checking
+     * all headers first, then URL query parameters.
+     * If not specified,  default to use following 3 locations:
+     *    1) Authorization: Bearer
+     *    2) x-goog-iap-jwt-assertion
+     *    3) access_token query parameter
+     * Default locations can be specified as followings:
+     *    jwt_locations:
+     *    - header: Authorization
+     *      value_prefix: "Bearer "
+     *    - header: x-goog-iap-jwt-assertion
+     *    - query: access_token
+     * 
+ * + * repeated .google.api.JwtLocation jwt_locations = 6; + */ + public com.google.api.JwtLocation.Builder addJwtLocationsBuilder() { + return getJwtLocationsFieldBuilder() + .addBuilder(com.google.api.JwtLocation.getDefaultInstance()); + } + /** + * + * + *
+     * Defines the locations to extract the JWT.
+     * JWT locations can be either from HTTP headers or URL query parameters.
+     * The rule is that the first match wins. The checking order is: checking
+     * all headers first, then URL query parameters.
+     * If not specified,  default to use following 3 locations:
+     *    1) Authorization: Bearer
+     *    2) x-goog-iap-jwt-assertion
+     *    3) access_token query parameter
+     * Default locations can be specified as followings:
+     *    jwt_locations:
+     *    - header: Authorization
+     *      value_prefix: "Bearer "
+     *    - header: x-goog-iap-jwt-assertion
+     *    - query: access_token
+     * 
+ * + * 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()); + } + /** + * + * + *
+     * Defines the locations to extract the JWT.
+     * JWT locations can be either from HTTP headers or URL query parameters.
+     * The rule is that the first match wins. The checking order is: checking
+     * all headers first, then URL query parameters.
+     * If not specified,  default to use following 3 locations:
+     *    1) Authorization: Bearer
+     *    2) x-goog-iap-jwt-assertion
+     *    3) access_token query parameter
+     * Default locations can be specified as followings:
+     *    jwt_locations:
+     *    - header: Authorization
+     *      value_prefix: "Bearer "
+     *    - header: x-goog-iap-jwt-assertion
+     *    - query: access_token
+     * 
+ * + * repeated .google.api.JwtLocation jwt_locations = 6; + */ + 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> + 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_ & 0x00000001) != 0), getParentForChildren(), isClean()); + jwtLocations_ = null; + } + return jwtLocationsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.AuthProvider) } // @@protoc_insertion_point(class_scope:google.api.AuthProvider) - private static final AuthProvider DEFAULT_INSTANCE; + private static final com.google.api.AuthProvider DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new AuthProvider(); + DEFAULT_INSTANCE = new com.google.api.AuthProvider(); } - public static AuthProvider getDefaultInstance() { + public static com.google.api.AuthProvider getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public AuthProvider parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AuthProvider(input, extensionRegistry); - } - }; + 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 { + return new AuthProvider(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public AuthProvider getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.AuthProvider getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java index b24c56f0..e285ada7 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java +++ b/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`.
@@ -15,9 +33,13 @@ public interface AuthProviderOrBuilder extends
    * 
* * string id = 1; + * + * @return The id. */ - String getId(); + java.lang.String getId(); /** + * + * *
    * The unique identifier of the auth provider. It will be referred to by
    * `AuthRequirement.provider_id`.
@@ -25,11 +47,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
@@ -39,9 +64,13 @@ public interface AuthProviderOrBuilder extends
    * 
* * string issuer = 2; + * + * @return The issuer. */ - String getIssuer(); + 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
@@ -51,11 +80,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
@@ -71,9 +103,13 @@ public interface AuthProviderOrBuilder extends
    * 
* * string jwks_uri = 3; + * + * @return The jwksUri. */ - String getJwksUri(); + java.lang.String getJwksUri(); /** + * + * *
    * URL of the provider's public key set to validate signature of the JWT. See
    * [OpenID
@@ -89,11 +125,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).
@@ -109,9 +148,13 @@ public interface AuthProviderOrBuilder extends
    * 
* * string audiences = 4; + * + * @return The audiences. */ - String getAudiences(); + 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).
@@ -127,27 +170,151 @@ 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. */ - String getAuthorizationUrl(); + 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(); + + /** + * + * + *
+   * Defines the locations to extract the JWT.
+   * JWT locations can be either from HTTP headers or URL query parameters.
+   * The rule is that the first match wins. The checking order is: checking
+   * all headers first, then URL query parameters.
+   * If not specified,  default to use following 3 locations:
+   *    1) Authorization: Bearer
+   *    2) x-goog-iap-jwt-assertion
+   *    3) access_token query parameter
+   * Default locations can be specified as followings:
+   *    jwt_locations:
+   *    - header: Authorization
+   *      value_prefix: "Bearer "
+   *    - header: x-goog-iap-jwt-assertion
+   *    - query: access_token
+   * 
+ * + * repeated .google.api.JwtLocation jwt_locations = 6; + */ + java.util.List getJwtLocationsList(); + /** + * + * + *
+   * Defines the locations to extract the JWT.
+   * JWT locations can be either from HTTP headers or URL query parameters.
+   * The rule is that the first match wins. The checking order is: checking
+   * all headers first, then URL query parameters.
+   * If not specified,  default to use following 3 locations:
+   *    1) Authorization: Bearer
+   *    2) x-goog-iap-jwt-assertion
+   *    3) access_token query parameter
+   * Default locations can be specified as followings:
+   *    jwt_locations:
+   *    - header: Authorization
+   *      value_prefix: "Bearer "
+   *    - header: x-goog-iap-jwt-assertion
+   *    - query: access_token
+   * 
+ * + * repeated .google.api.JwtLocation jwt_locations = 6; + */ + com.google.api.JwtLocation getJwtLocations(int index); + /** + * + * + *
+   * Defines the locations to extract the JWT.
+   * JWT locations can be either from HTTP headers or URL query parameters.
+   * The rule is that the first match wins. The checking order is: checking
+   * all headers first, then URL query parameters.
+   * If not specified,  default to use following 3 locations:
+   *    1) Authorization: Bearer
+   *    2) x-goog-iap-jwt-assertion
+   *    3) access_token query parameter
+   * Default locations can be specified as followings:
+   *    jwt_locations:
+   *    - header: Authorization
+   *      value_prefix: "Bearer "
+   *    - header: x-goog-iap-jwt-assertion
+   *    - query: access_token
+   * 
+ * + * repeated .google.api.JwtLocation jwt_locations = 6; + */ + int getJwtLocationsCount(); + /** + * + * + *
+   * Defines the locations to extract the JWT.
+   * JWT locations can be either from HTTP headers or URL query parameters.
+   * The rule is that the first match wins. The checking order is: checking
+   * all headers first, then URL query parameters.
+   * If not specified,  default to use following 3 locations:
+   *    1) Authorization: Bearer
+   *    2) x-goog-iap-jwt-assertion
+   *    3) access_token query parameter
+   * Default locations can be specified as followings:
+   *    jwt_locations:
+   *    - header: Authorization
+   *      value_prefix: "Bearer "
+   *    - header: x-goog-iap-jwt-assertion
+   *    - query: access_token
+   * 
+ * + * repeated .google.api.JwtLocation jwt_locations = 6; + */ + java.util.List getJwtLocationsOrBuilderList(); + /** + * + * + *
+   * Defines the locations to extract the JWT.
+   * JWT locations can be either from HTTP headers or URL query parameters.
+   * The rule is that the first match wins. The checking order is: checking
+   * all headers first, then URL query parameters.
+   * If not specified,  default to use following 3 locations:
+   *    1) Authorization: Bearer
+   *    2) x-goog-iap-jwt-assertion
+   *    3) access_token query parameter
+   * Default locations can be specified as followings:
+   *    jwt_locations:
+   *    - header: Authorization
+   *      value_prefix: "Bearer "
+   *    - header: x-goog-iap-jwt-assertion
+   *    - query: access_token
+   * 
+ * + * repeated .google.api.JwtLocation jwt_locations = 6; */ - com.google.protobuf.ByteString - getAuthorizationUrlBytes(); + com.google.api.JwtLocationOrBuilder getJwtLocationsOrBuilder(int index); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java b/proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java index 3b16541f..4c2f5840 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java +++ b/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,34 +29,40 @@
  *
  * 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_ = "";
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new AuthRequirement();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private AuthRequirement(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
-    int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
         com.google.protobuf.UnknownFieldSet.newBuilder();
     try {
@@ -50,53 +73,56 @@ private AuthRequirement(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            providerId_ = s;
-            break;
-          }
-          case 18: {
-            String s = input.readStringRequireUtf8();
+              providerId_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            audiences_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              audiences_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return AuthProto.internal_static_google_api_AuthRequirement_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.api.AuthProto.internal_static_google_api_AuthRequirement_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return AuthProto.internal_static_google_api_AuthRequirement_fieldAccessorTable
+    return com.google.api.AuthProto.internal_static_google_api_AuthRequirement_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            AuthRequirement.class, Builder.class);
+            com.google.api.AuthRequirement.class, com.google.api.AuthRequirement.Builder.class);
   }
 
   public static final int PROVIDER_ID_FIELD_NUMBER = 1;
-  private volatile Object providerId_;
+  private volatile java.lang.Object providerId_;
   /**
+   *
+   *
    * 
    * [id][google.api.AuthProvider.id] from authentication provider.
    * Example:
@@ -104,20 +130,23 @@ private AuthRequirement(
    * 
* * string provider_id = 1; + * + * @return The providerId. */ - public String getProviderId() { - Object ref = providerId_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getProviderId() { + java.lang.Object ref = providerId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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.
    * Example:
@@ -125,14 +154,14 @@ public String getProviderId() {
    * 
* * string provider_id = 1; + * + * @return The bytes for providerId. */ - public com.google.protobuf.ByteString - getProviderIdBytes() { - Object ref = providerId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + 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); providerId_ = b; return b; } else { @@ -141,8 +170,10 @@ public String getProviderId() { } public static final int AUDIENCES_FIELD_NUMBER = 2; - private volatile Object audiences_; + private volatile java.lang.Object audiences_; /** + * + * *
    * NOTE: This will be deprecated soon, once AuthProvider.audiences is
    * implemented and accepted in all the runtime components.
@@ -160,20 +191,23 @@ public String getProviderId() {
    * 
* * string audiences = 2; + * + * @return The audiences. */ - public String getAudiences() { - Object ref = audiences_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getAudiences() { + java.lang.Object ref = audiences_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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.
@@ -191,14 +225,14 @@ public String getAudiences() {
    * 
* * string audiences = 2; + * + * @return The bytes for audiences. */ - public com.google.protobuf.ByteString - getAudiencesBytes() { - Object ref = audiences_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + 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); audiences_ = b; return b; } else { @@ -207,7 +241,8 @@ public String getAudiences() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -217,9 +252,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getProviderIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, providerId_); } @@ -229,7 +263,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -246,25 +280,23 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof AuthRequirement)) { + if (!(obj instanceof com.google.api.AuthRequirement)) { return super.equals(obj); } - AuthRequirement other = (AuthRequirement) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -280,97 +312,103 @@ public int hashCode() { return hash; } - public static 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 AuthRequirement parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.AuthRequirement parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static 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 AuthRequirement parseFrom( + + 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 AuthRequirement parseFrom(byte[] data) + + public static com.google.api.AuthRequirement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static AuthRequirement parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.AuthRequirement parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static AuthRequirement parseFrom(java.io.InputStream input) + + 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 AuthRequirement parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.AuthRequirement parseFrom( + 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 AuthRequirement parseDelimitedFrom(java.io.InputStream input) + + 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 AuthRequirement parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.AuthRequirement parseDelimitedFrom( + 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 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 AuthRequirement parseFrom( + + 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(AuthRequirement prototype) { + + public static Builder newBuilder(com.google.api.AuthRequirement prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + 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
@@ -379,21 +417,20 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.AuthRequirement}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.AuthRequirement)
       com.google.api.AuthRequirementOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return AuthProto.internal_static_google_api_AuthRequirement_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.api.AuthProto.internal_static_google_api_AuthRequirement_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return AuthProto.internal_static_google_api_AuthRequirement_fieldAccessorTable
+      return com.google.api.AuthProto.internal_static_google_api_AuthRequirement_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              AuthRequirement.class, Builder.class);
+              com.google.api.AuthRequirement.class, com.google.api.AuthRequirement.Builder.class);
     }
 
     // Construct using com.google.api.AuthRequirement.newBuilder()
@@ -401,17 +438,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       providerId_ = "";
@@ -421,79 +457,79 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return AuthProto.internal_static_google_api_AuthRequirement_descriptor;
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.api.AuthProto.internal_static_google_api_AuthRequirement_descriptor;
     }
 
-    @Override
-    public AuthRequirement getDefaultInstanceForType() {
-      return AuthRequirement.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.AuthRequirement getDefaultInstanceForType() {
+      return com.google.api.AuthRequirement.getDefaultInstance();
     }
 
-    @Override
-    public AuthRequirement build() {
-      AuthRequirement result = buildPartial();
+    @java.lang.Override
+    public com.google.api.AuthRequirement build() {
+      com.google.api.AuthRequirement result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public AuthRequirement buildPartial() {
-      AuthRequirement result = new AuthRequirement(this);
+    @java.lang.Override
+    public com.google.api.AuthRequirement buildPartial() {
+      com.google.api.AuthRequirement result = new com.google.api.AuthRequirement(this);
       result.providerId_ = providerId_;
       result.audiences_ = audiences_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof AuthRequirement) {
-        return mergeFrom((AuthRequirement)other);
+      if (other instanceof com.google.api.AuthRequirement) {
+        return mergeFrom((com.google.api.AuthRequirement) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(AuthRequirement other) {
-      if (other == AuthRequirement.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.AuthRequirement other) {
+      if (other == com.google.api.AuthRequirement.getDefaultInstance()) return this;
       if (!other.getProviderId().isEmpty()) {
         providerId_ = other.providerId_;
         onChanged();
@@ -507,21 +543,21 @@ public Builder mergeFrom(AuthRequirement other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      AuthRequirement parsedMessage = null;
+      com.google.api.AuthRequirement parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (AuthRequirement) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.AuthRequirement) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -531,8 +567,10 @@ public Builder mergeFrom(
       return this;
     }
 
-    private Object providerId_ = "";
+    private java.lang.Object providerId_ = "";
     /**
+     *
+     *
      * 
      * [id][google.api.AuthProvider.id] from authentication provider.
      * Example:
@@ -540,20 +578,23 @@ public Builder mergeFrom(
      * 
* * string provider_id = 1; + * + * @return The providerId. */ - public String getProviderId() { - Object ref = providerId_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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; + java.lang.String s = bs.toStringUtf8(); providerId_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * [id][google.api.AuthProvider.id] from authentication provider.
      * Example:
@@ -561,14 +602,14 @@ public String getProviderId() {
      * 
* * string provider_id = 1; + * + * @return The bytes for providerId. */ - public com.google.protobuf.ByteString - getProviderIdBytes() { - Object ref = providerId_; + 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( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); providerId_ = b; return b; } else { @@ -576,6 +617,8 @@ public String getProviderId() { } } /** + * + * *
      * [id][google.api.AuthProvider.id] from authentication provider.
      * Example:
@@ -583,18 +626,22 @@ public String getProviderId() {
      * 
* * string provider_id = 1; + * + * @param value The providerId to set. + * @return This builder for chaining. */ - public Builder setProviderId( - String value) { + public Builder setProviderId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + providerId_ = value; onChanged(); return this; } /** + * + * *
      * [id][google.api.AuthProvider.id] from authentication provider.
      * Example:
@@ -602,14 +649,18 @@ public Builder setProviderId(
      * 
* * string provider_id = 1; + * + * @return This builder for chaining. */ public Builder clearProviderId() { - + providerId_ = getDefaultInstance().getProviderId(); onChanged(); return this; } /** + * + * *
      * [id][google.api.AuthProvider.id] from authentication provider.
      * Example:
@@ -617,21 +668,25 @@ 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) { + public Builder setProviderIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + providerId_ = value; onChanged(); return this; } - private Object audiences_ = ""; + private java.lang.Object audiences_ = ""; /** + * + * *
      * NOTE: This will be deprecated soon, once AuthProvider.audiences is
      * implemented and accepted in all the runtime components.
@@ -649,20 +704,23 @@ public Builder setProviderIdBytes(
      * 
* * string audiences = 2; + * + * @return The audiences. */ - public String getAudiences() { - Object ref = audiences_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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; + java.lang.String s = bs.toStringUtf8(); audiences_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * NOTE: This will be deprecated soon, once AuthProvider.audiences is
      * implemented and accepted in all the runtime components.
@@ -680,14 +738,14 @@ public String getAudiences() {
      * 
* * string audiences = 2; + * + * @return The bytes for audiences. */ - public com.google.protobuf.ByteString - getAudiencesBytes() { - Object ref = audiences_; + 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( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); audiences_ = b; return b; } else { @@ -695,6 +753,8 @@ public String getAudiences() { } } /** + * + * *
      * NOTE: This will be deprecated soon, once AuthProvider.audiences is
      * implemented and accepted in all the runtime components.
@@ -712,18 +772,22 @@ public String getAudiences() {
      * 
* * string audiences = 2; + * + * @param value The audiences to set. + * @return This builder for chaining. */ - public Builder setAudiences( - String value) { + public Builder setAudiences(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + audiences_ = value; onChanged(); return this; } /** + * + * *
      * NOTE: This will be deprecated soon, once AuthProvider.audiences is
      * implemented and accepted in all the runtime components.
@@ -741,14 +805,18 @@ public Builder setAudiences(
      * 
* * string audiences = 2; + * + * @return This builder for chaining. */ public Builder clearAudiences() { - + audiences_ = getDefaultInstance().getAudiences(); onChanged(); return this; } /** + * + * *
      * NOTE: This will be deprecated soon, once AuthProvider.audiences is
      * implemented and accepted in all the runtime components.
@@ -766,68 +834,68 @@ 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) { + public Builder setAudiencesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + audiences_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.AuthRequirement) } // @@protoc_insertion_point(class_scope:google.api.AuthRequirement) - private static final AuthRequirement DEFAULT_INSTANCE; + private static final com.google.api.AuthRequirement DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new AuthRequirement(); + DEFAULT_INSTANCE = new com.google.api.AuthRequirement(); } - public static AuthRequirement getDefaultInstance() { + public static com.google.api.AuthRequirement getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public AuthRequirement parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AuthRequirement(input, extensionRegistry); - } - }; + 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 { + return new AuthRequirement(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public AuthRequirement getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.AuthRequirement getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/AuthRequirementOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/AuthRequirementOrBuilder.java index 81eb4fcd..da45b4a9 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/AuthRequirementOrBuilder.java +++ b/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.
    * Example:
@@ -15,9 +33,13 @@ public interface AuthRequirementOrBuilder extends
    * 
* * string provider_id = 1; + * + * @return The providerId. */ - String getProviderId(); + java.lang.String getProviderId(); /** + * + * *
    * [id][google.api.AuthProvider.id] from authentication provider.
    * Example:
@@ -25,11 +47,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.
@@ -47,9 +72,13 @@ public interface AuthRequirementOrBuilder extends
    * 
* * string audiences = 2; + * + * @return The audiences. */ - String getAudiences(); + java.lang.String getAudiences(); /** + * + * *
    * NOTE: This will be deprecated soon, once AuthProvider.audiences is
    * implemented and accepted in all the runtime components.
@@ -67,7 +96,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/proto-google-common-protos/src/main/java/com/google/api/Authentication.java b/proto-google-common-protos/src/main/java/com/google/api/Authentication.java index 35144dce..45c50a31 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/Authentication.java +++ b/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 an API.
  * Example for an API targeted for external use:
@@ -21,32 +38,39 @@
  *
  * 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();
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new Authentication();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Authentication(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -59,38 +83,39 @@ private Authentication(
           case 0:
             done = true;
             break;
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              rules_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                rules_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              rules_.add(
+                  input.readMessage(com.google.api.AuthenticationRule.parser(), extensionRegistry));
+              break;
             }
-            rules_.add(
-                input.readMessage(com.google.api.AuthenticationRule.parser(), extensionRegistry));
-            break;
-          }
-          case 34: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              providers_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
+          case 34:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                providers_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              providers_.add(
+                  input.readMessage(com.google.api.AuthProvider.parser(), extensionRegistry));
+              break;
             }
-            providers_.add(
-                input.readMessage(AuthProvider.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         rules_ = java.util.Collections.unmodifiableList(rules_);
@@ -102,22 +127,24 @@ private Authentication(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return AuthProto.internal_static_google_api_Authentication_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.api.AuthProto.internal_static_google_api_Authentication_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return AuthProto.internal_static_google_api_Authentication_fieldAccessorTable
+    return com.google.api.AuthProto.internal_static_google_api_Authentication_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            Authentication.class, Builder.class);
+            com.google.api.Authentication.class, com.google.api.Authentication.Builder.class);
   }
 
   public static final int RULES_FIELD_NUMBER = 3;
   private java.util.List rules_;
   /**
+   *
+   *
    * 
    * A list of authentication rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -129,6 +156,8 @@ public java.util.List getRulesList() {
     return rules_;
   }
   /**
+   *
+   *
    * 
    * A list of authentication rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -136,11 +165,13 @@ public java.util.List getRulesList() {
    *
    * repeated .google.api.AuthenticationRule rules = 3;
    */
-  public java.util.List 
+  public java.util.List
       getRulesOrBuilderList() {
     return rules_;
   }
   /**
+   *
+   *
    * 
    * A list of authentication rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -152,6 +183,8 @@ public int getRulesCount() {
     return rules_.size();
   }
   /**
+   *
+   *
    * 
    * A list of authentication rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -163,6 +196,8 @@ public com.google.api.AuthenticationRule getRules(int index) {
     return rules_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of authentication rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -170,35 +205,40 @@ public com.google.api.AuthenticationRule getRules(int index) {
    *
    * repeated .google.api.AuthenticationRule rules = 3;
    */
-  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;
-  private java.util.List providers_;
+  private java.util.List providers_;
   /**
+   *
+   *
    * 
    * Defines a set of authentication providers that a service supports.
    * 
* * repeated .google.api.AuthProvider providers = 4; */ - public java.util.List getProvidersList() { + public java.util.List getProvidersList() { return providers_; } /** + * + * *
    * Defines a set of authentication providers that a service supports.
    * 
* * repeated .google.api.AuthProvider providers = 4; */ - public java.util.List + public java.util.List getProvidersOrBuilderList() { return providers_; } /** + * + * *
    * Defines a set of authentication providers that a service supports.
    * 
@@ -209,29 +249,33 @@ public int getProvidersCount() { return providers_.size(); } /** + * + * *
    * Defines a set of authentication providers that a service supports.
    * 
* * repeated .google.api.AuthProvider providers = 4; */ - public AuthProvider getProviders(int index) { + public com.google.api.AuthProvider getProviders(int index) { return providers_.get(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) { return providers_.get(index); } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -241,9 +285,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + 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)); } @@ -253,44 +296,40 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; 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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof Authentication)) { + if (!(obj instanceof com.google.api.Authentication)) { return super.equals(obj); } - Authentication other = (Authentication) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -310,97 +349,103 @@ public int hashCode() { return hash; } - public static 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 Authentication parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Authentication parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static 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 Authentication parseFrom( + + 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 Authentication parseFrom(byte[] data) + + public static com.google.api.Authentication parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Authentication parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Authentication parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Authentication parseFrom(java.io.InputStream input) + + 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 Authentication parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Authentication parseFrom( + 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 Authentication parseDelimitedFrom(java.io.InputStream input) + + 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 Authentication parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Authentication parseDelimitedFrom( + 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 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 Authentication parseFrom( + + 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(Authentication prototype) { + + public static Builder newBuilder(com.google.api.Authentication prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * `Authentication` defines the authentication configuration for an API.
    * Example for an API targeted for external use:
@@ -418,21 +463,20 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.Authentication}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.Authentication)
       com.google.api.AuthenticationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return AuthProto.internal_static_google_api_Authentication_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.api.AuthProto.internal_static_google_api_Authentication_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return AuthProto.internal_static_google_api_Authentication_fieldAccessorTable
+      return com.google.api.AuthProto.internal_static_google_api_Authentication_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              Authentication.class, Builder.class);
+              com.google.api.Authentication.class, com.google.api.Authentication.Builder.class);
     }
 
     // Construct using com.google.api.Authentication.newBuilder()
@@ -440,19 +484,19 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getRulesFieldBuilder();
         getProvidersFieldBuilder();
       }
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       if (rulesBuilder_ == null) {
@@ -470,29 +514,28 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return AuthProto.internal_static_google_api_Authentication_descriptor;
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.api.AuthProto.internal_static_google_api_Authentication_descriptor;
     }
 
-    @Override
-    public Authentication getDefaultInstanceForType() {
-      return Authentication.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.Authentication getDefaultInstanceForType() {
+      return com.google.api.Authentication.getDefaultInstance();
     }
 
-    @Override
-    public Authentication build() {
-      Authentication result = buildPartial();
+    @java.lang.Override
+    public com.google.api.Authentication build() {
+      com.google.api.Authentication result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public Authentication buildPartial() {
-      Authentication result = new Authentication(this);
+    @java.lang.Override
+    public com.google.api.Authentication buildPartial() {
+      com.google.api.Authentication result = new com.google.api.Authentication(this);
       int from_bitField0_ = bitField0_;
       if (rulesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -516,50 +559,51 @@ public Authentication buildPartial() {
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof Authentication) {
-        return mergeFrom((Authentication)other);
+      if (other instanceof com.google.api.Authentication) {
+        return mergeFrom((com.google.api.Authentication) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(Authentication other) {
-      if (other == Authentication.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.Authentication other) {
+      if (other == com.google.api.Authentication.getDefaultInstance()) return this;
       if (rulesBuilder_ == null) {
         if (!other.rules_.isEmpty()) {
           if (rules_.isEmpty()) {
@@ -578,9 +622,10 @@ public Builder mergeFrom(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_);
           }
@@ -604,9 +649,10 @@ public Builder mergeFrom(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_);
           }
@@ -617,21 +663,21 @@ public Builder mergeFrom(Authentication other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      Authentication parsedMessage = null;
+      com.google.api.Authentication parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (Authentication) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.Authentication) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -640,21 +686,28 @@ public Builder mergeFrom(
       }
       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.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -670,6 +723,8 @@ public java.util.List getRulesList() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of authentication rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -685,6 +740,8 @@ public int getRulesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of authentication rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -700,6 +757,8 @@ public com.google.api.AuthenticationRule getRules(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of authentication rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -707,8 +766,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();
@@ -722,6 +780,8 @@ public Builder setRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of authentication rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -729,8 +789,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());
@@ -741,6 +800,8 @@ public Builder setRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of authentication rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -762,6 +823,8 @@ public Builder addRules(com.google.api.AuthenticationRule value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of authentication rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -769,8 +832,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();
@@ -784,6 +846,8 @@ public Builder addRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of authentication rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -791,8 +855,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());
@@ -803,6 +866,8 @@ public Builder addRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of authentication rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -810,8 +875,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());
@@ -822,6 +886,8 @@ public Builder addRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of authentication rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -830,11 +896,10 @@ public Builder addRules(
      * repeated .google.api.AuthenticationRule rules = 3;
      */
     public Builder addAllRules(
-        Iterable values) {
+        java.lang.Iterable 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);
@@ -842,6 +907,8 @@ public Builder addAllRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of authentication rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -860,6 +927,8 @@ public Builder clearRules() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of authentication rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -878,6 +947,8 @@ public Builder removeRules(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of authentication rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -885,11 +956,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.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -897,14 +969,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.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -912,8 +986,8 @@ public com.google.api.AuthenticationRuleOrBuilder getRulesOrBuilder(
      *
      * repeated .google.api.AuthenticationRule rules = 3;
      */
-    public java.util.List 
-         getRulesOrBuilderList() {
+    public java.util.List
+        getRulesOrBuilderList() {
       if (rulesBuilder_ != null) {
         return rulesBuilder_.getMessageOrBuilderList();
       } else {
@@ -921,6 +995,8 @@ public com.google.api.AuthenticationRuleOrBuilder getRulesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * A list of authentication rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -929,10 +1005,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.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -940,12 +1018,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.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -953,45 +1032,53 @@ 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();
+    private java.util.List providers_ =
+        java.util.Collections.emptyList();
+
     private void ensureProvidersIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        providers_ = new java.util.ArrayList(providers_);
+        providers_ = new java.util.ArrayList(providers_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        AuthProvider, 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.
      * 
* * repeated .google.api.AuthProvider providers = 4; */ - public java.util.List getProvidersList() { + public java.util.List getProvidersList() { if (providersBuilder_ == null) { return java.util.Collections.unmodifiableList(providers_); } else { @@ -999,6 +1086,8 @@ public java.util.List getProvidersList() { } } /** + * + * *
      * Defines a set of authentication providers that a service supports.
      * 
@@ -1013,13 +1102,15 @@ public int getProvidersCount() { } } /** + * + * *
      * Defines a set of authentication providers that a service supports.
      * 
* * repeated .google.api.AuthProvider providers = 4; */ - public AuthProvider getProviders(int index) { + public com.google.api.AuthProvider getProviders(int index) { if (providersBuilder_ == null) { return providers_.get(index); } else { @@ -1027,14 +1118,15 @@ public 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, AuthProvider value) { + public Builder setProviders(int index, com.google.api.AuthProvider value) { if (providersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1048,14 +1140,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, AuthProvider.Builder builderForValue) { + public Builder setProviders(int index, com.google.api.AuthProvider.Builder builderForValue) { if (providersBuilder_ == null) { ensureProvidersIsMutable(); providers_.set(index, builderForValue.build()); @@ -1066,13 +1159,15 @@ public Builder setProviders( return this; } /** + * + * *
      * Defines a set of authentication providers that a service supports.
      * 
* * repeated .google.api.AuthProvider providers = 4; */ - public Builder addProviders(AuthProvider value) { + public Builder addProviders(com.google.api.AuthProvider value) { if (providersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1086,14 +1181,15 @@ public Builder addProviders(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, AuthProvider value) { + public Builder addProviders(int index, com.google.api.AuthProvider value) { if (providersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1107,14 +1203,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( - AuthProvider.Builder builderForValue) { + public Builder addProviders(com.google.api.AuthProvider.Builder builderForValue) { if (providersBuilder_ == null) { ensureProvidersIsMutable(); providers_.add(builderForValue.build()); @@ -1125,14 +1222,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, AuthProvider.Builder builderForValue) { + public Builder addProviders(int index, com.google.api.AuthProvider.Builder builderForValue) { if (providersBuilder_ == null) { ensureProvidersIsMutable(); providers_.add(index, builderForValue.build()); @@ -1143,6 +1241,8 @@ public Builder addProviders( return this; } /** + * + * *
      * Defines a set of authentication providers that a service supports.
      * 
@@ -1150,11 +1250,10 @@ public Builder addProviders( * repeated .google.api.AuthProvider providers = 4; */ public Builder addAllProviders( - Iterable values) { + java.lang.Iterable 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); @@ -1162,6 +1261,8 @@ public Builder addAllProviders( return this; } /** + * + * *
      * Defines a set of authentication providers that a service supports.
      * 
@@ -1179,6 +1280,8 @@ public Builder clearProviders() { return this; } /** + * + * *
      * Defines a set of authentication providers that a service supports.
      * 
@@ -1196,39 +1299,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 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 - getProvidersOrBuilderList() { + public java.util.List + getProvidersOrBuilderList() { if (providersBuilder_ != null) { return providersBuilder_.getMessageOrBuilderList(); } else { @@ -1236,103 +1344,108 @@ public com.google.api.AuthProviderOrBuilder getProvidersOrBuilder( } } /** + * + * *
      * Defines a set of authentication providers that a service supports.
      * 
* * repeated .google.api.AuthProvider providers = 4; */ - public AuthProvider.Builder addProvidersBuilder() { - return getProvidersFieldBuilder().addBuilder( - AuthProvider.getDefaultInstance()); + public com.google.api.AuthProvider.Builder addProvidersBuilder() { + 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 AuthProvider.Builder addProvidersBuilder( - int index) { - return getProvidersFieldBuilder().addBuilder( - index, 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< - AuthProvider, 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< - AuthProvider, 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_; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.Authentication) } // @@protoc_insertion_point(class_scope:google.api.Authentication) - private static final Authentication DEFAULT_INSTANCE; + private static final com.google.api.Authentication DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new Authentication(); + DEFAULT_INSTANCE = new com.google.api.Authentication(); } - public static Authentication getDefaultInstance() { + public static com.google.api.Authentication getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public Authentication parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Authentication(input, extensionRegistry); - } - }; + 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 { + return new Authentication(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public Authentication getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.Authentication getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/AuthenticationOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/AuthenticationOrBuilder.java index 355246b5..d7dd35ee 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/AuthenticationOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/AuthenticationOrBuilder.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 AuthenticationOrBuilder extends +public interface AuthenticationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.Authentication) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of authentication rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -15,9 +33,10 @@ public interface AuthenticationOrBuilder extends
    *
    * repeated .google.api.AuthenticationRule rules = 3;
    */
-  java.util.List
-      getRulesList();
+  java.util.List getRulesList();
   /**
+   *
+   *
    * 
    * A list of authentication rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -25,8 +44,10 @@ public interface AuthenticationOrBuilder extends
    *
    * repeated .google.api.AuthenticationRule rules = 3;
    */
-  AuthenticationRule getRules(int index);
+  com.google.api.AuthenticationRule getRules(int index);
   /**
+   *
+   *
    * 
    * A list of authentication rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -36,6 +57,8 @@ public interface AuthenticationOrBuilder extends
    */
   int getRulesCount();
   /**
+   *
+   *
    * 
    * A list of authentication rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -43,9 +66,10 @@ public interface AuthenticationOrBuilder extends
    *
    * repeated .google.api.AuthenticationRule rules = 3;
    */
-  java.util.List 
-      getRulesOrBuilderList();
+  java.util.List getRulesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of authentication rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -53,27 +77,31 @@ public interface AuthenticationOrBuilder extends
    *
    * repeated .google.api.AuthenticationRule rules = 3;
    */
-  com.google.api.AuthenticationRuleOrBuilder getRulesOrBuilder(
-      int index);
+  com.google.api.AuthenticationRuleOrBuilder getRulesOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Defines a set of authentication providers that a service supports.
    * 
* * repeated .google.api.AuthProvider providers = 4; */ - java.util.List - getProvidersList(); + java.util.List getProvidersList(); /** + * + * *
    * Defines a set of authentication providers that a service supports.
    * 
* * repeated .google.api.AuthProvider providers = 4; */ - AuthProvider getProviders(int index); + com.google.api.AuthProvider getProviders(int index); /** + * + * *
    * Defines a set of authentication providers that a service supports.
    * 
@@ -82,21 +110,23 @@ com.google.api.AuthenticationRuleOrBuilder getRulesOrBuilder( */ int getProvidersCount(); /** + * + * *
    * Defines a set of authentication providers that a service supports.
    * 
* * repeated .google.api.AuthProvider providers = 4; */ - java.util.List - getProvidersOrBuilderList(); + java.util.List getProvidersOrBuilderList(); /** + * + * *
    * Defines a set of authentication providers that a service supports.
    * 
* * repeated .google.api.AuthProvider providers = 4; */ - AuthProviderOrBuilder getProvidersOrBuilder( - int index); + com.google.api.AuthProviderOrBuilder getProvidersOrBuilder(int index); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRule.java b/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRule.java index fa724799..40f29098 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRule.java +++ b/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRule.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 rules for the service.
  * By default, if a method has any authentication requirements, every request
@@ -16,32 +33,39 @@
  *
  * Protobuf type {@code google.api.AuthenticationRule}
  */
-public  final class AuthenticationRule extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AuthenticationRule extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.AuthenticationRule)
     AuthenticationRuleOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AuthenticationRule.newBuilder() to construct.
   private AuthenticationRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AuthenticationRule() {
     selector_ = "";
     requirements_ = java.util.Collections.emptyList();
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new AuthenticationRule();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private AuthenticationRule(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -54,112 +78,120 @@ private AuthenticationRule(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            selector_ = s;
-            break;
-          }
-          case 18: {
-            OAuthRequirements.Builder subBuilder = null;
-            if (oauth_ != null) {
-              subBuilder = oauth_.toBuilder();
-            }
-            oauth_ = input.readMessage(OAuthRequirements.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(oauth_);
-              oauth_ = subBuilder.buildPartial();
+              selector_ = s;
+              break;
             }
+          case 18:
+            {
+              com.google.api.OAuthRequirements.Builder subBuilder = null;
+              if (oauth_ != null) {
+                subBuilder = oauth_.toBuilder();
+              }
+              oauth_ =
+                  input.readMessage(com.google.api.OAuthRequirements.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(oauth_);
+                oauth_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 40: {
-
-            allowWithoutCredential_ = input.readBool();
-            break;
-          }
-          case 58: {
-            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
-              requirements_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000008;
+              break;
             }
-            requirements_.add(
-                input.readMessage(AuthRequirement.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 40:
+            {
+              allowWithoutCredential_ = input.readBool();
+              break;
+            }
+          case 58:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                requirements_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              requirements_.add(
+                  input.readMessage(com.google.api.AuthRequirement.parser(), extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
-      if (((mutable_bitField0_ & 0x00000008) != 0)) {
+      if (((mutable_bitField0_ & 0x00000001) != 0)) {
         requirements_ = java.util.Collections.unmodifiableList(requirements_);
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return AuthProto.internal_static_google_api_AuthenticationRule_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.api.AuthProto.internal_static_google_api_AuthenticationRule_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return AuthProto.internal_static_google_api_AuthenticationRule_fieldAccessorTable
+    return com.google.api.AuthProto.internal_static_google_api_AuthenticationRule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            AuthenticationRule.class, Builder.class);
+            com.google.api.AuthenticationRule.class,
+            com.google.api.AuthenticationRule.Builder.class);
   }
 
-  private int bitField0_;
   public static final int SELECTOR_FIELD_NUMBER = 1;
-  private volatile Object selector_;
+  private volatile java.lang.Object selector_;
   /**
+   *
+   *
    * 
    * Selects the methods to which this rule applies.
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
    * 
* * string selector = 1; + * + * @return The selector. */ - public String getSelector() { - Object ref = selector_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getSelector() { + java.lang.Object ref = selector_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); selector_ = s; return s; } } /** + * + * *
    * Selects the methods to which this rule applies.
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
    * 
* * string selector = 1; + * + * @return The bytes for selector. */ - public com.google.protobuf.ByteString - getSelectorBytes() { - Object ref = selector_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getSelectorBytes() { + java.lang.Object ref = selector_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); selector_ = b; return b; } else { @@ -168,28 +200,38 @@ public String getSelector() { } public static final int OAUTH_FIELD_NUMBER = 2; - private OAuthRequirements oauth_; + private com.google.api.OAuthRequirements oauth_; /** + * + * *
    * The requirements for OAuth credentials.
    * 
* * .google.api.OAuthRequirements oauth = 2; + * + * @return Whether the oauth field is set. */ public boolean hasOauth() { return oauth_ != null; } /** + * + * *
    * The requirements for OAuth credentials.
    * 
* * .google.api.OAuthRequirements oauth = 2; + * + * @return The oauth. */ - public OAuthRequirements getOauth() { - return oauth_ == null ? OAuthRequirements.getDefaultInstance() : oauth_; + public com.google.api.OAuthRequirements getOauth() { + return oauth_ == null ? com.google.api.OAuthRequirements.getDefaultInstance() : oauth_; } /** + * + * *
    * The requirements for OAuth credentials.
    * 
@@ -203,40 +245,50 @@ public com.google.api.OAuthRequirementsOrBuilder getOauthOrBuilder() { public static final int ALLOW_WITHOUT_CREDENTIAL_FIELD_NUMBER = 5; private boolean allowWithoutCredential_; /** + * + * *
    * If true, the service accepts API keys without any other credential.
    * 
* * bool allow_without_credential = 5; + * + * @return The allowWithoutCredential. */ public boolean getAllowWithoutCredential() { return allowWithoutCredential_; } public static final int REQUIREMENTS_FIELD_NUMBER = 7; - private java.util.List requirements_; + private java.util.List requirements_; /** + * + * *
    * Requirements for additional authentication providers.
    * 
* * repeated .google.api.AuthRequirement requirements = 7; */ - public java.util.List getRequirementsList() { + public java.util.List getRequirementsList() { return requirements_; } /** + * + * *
    * Requirements for additional authentication providers.
    * 
* * repeated .google.api.AuthRequirement requirements = 7; */ - public java.util.List + public java.util.List getRequirementsOrBuilderList() { return requirements_; } /** + * + * *
    * Requirements for additional authentication providers.
    * 
@@ -247,29 +299,33 @@ public int getRequirementsCount() { return requirements_.size(); } /** + * + * *
    * Requirements for additional authentication providers.
    * 
* * repeated .google.api.AuthRequirement requirements = 7; */ - public AuthRequirement getRequirements(int index) { + public com.google.api.AuthRequirement getRequirements(int index) { return requirements_.get(index); } /** + * + * *
    * Requirements for additional authentication providers.
    * 
* * repeated .google.api.AuthRequirement requirements = 7; */ - public com.google.api.AuthRequirementOrBuilder getRequirementsOrBuilder( - int index) { + public com.google.api.AuthRequirementOrBuilder getRequirementsOrBuilder(int index) { return requirements_.get(index); } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -279,9 +335,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSelectorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selector_); } @@ -297,7 +352,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -307,48 +362,41 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, selector_); } if (oauth_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOauth()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOauth()); } if (allowWithoutCredential_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, allowWithoutCredential_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, allowWithoutCredential_); } for (int i = 0; i < requirements_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, requirements_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, requirements_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof AuthenticationRule)) { + if (!(obj instanceof com.google.api.AuthenticationRule)) { return super.equals(obj); } - AuthenticationRule other = (AuthenticationRule) obj; + com.google.api.AuthenticationRule other = (com.google.api.AuthenticationRule) obj; - if (!getSelector() - .equals(other.getSelector())) return false; + if (!getSelector().equals(other.getSelector())) return false; if (hasOauth() != other.hasOauth()) return false; if (hasOauth()) { - if (!getOauth() - .equals(other.getOauth())) return false; + if (!getOauth().equals(other.getOauth())) return false; } - if (getAllowWithoutCredential() - != other.getAllowWithoutCredential()) return false; - if (!getRequirementsList() - .equals(other.getRequirementsList())) return false; + if (getAllowWithoutCredential() != other.getAllowWithoutCredential()) return false; + if (!getRequirementsList().equals(other.getRequirementsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -362,8 +410,7 @@ public int hashCode() { hash = (53 * hash) + getOauth().hashCode(); } hash = (37 * hash) + ALLOW_WITHOUT_CREDENTIAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowWithoutCredential()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowWithoutCredential()); if (getRequirementsCount() > 0) { hash = (37 * hash) + REQUIREMENTS_FIELD_NUMBER; hash = (53 * hash) + getRequirementsList().hashCode(); @@ -373,97 +420,103 @@ public int hashCode() { return hash; } - public static AuthenticationRule parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.AuthenticationRule parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static AuthenticationRule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.AuthenticationRule parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static AuthenticationRule parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.api.AuthenticationRule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static AuthenticationRule parseFrom( + + public static com.google.api.AuthenticationRule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static AuthenticationRule parseFrom(byte[] data) + + public static com.google.api.AuthenticationRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static AuthenticationRule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.AuthenticationRule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static AuthenticationRule parseFrom(java.io.InputStream input) + + public static com.google.api.AuthenticationRule 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 AuthenticationRule parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.AuthenticationRule parseFrom( + 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 AuthenticationRule parseDelimitedFrom(java.io.InputStream input) + + public static com.google.api.AuthenticationRule 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 AuthenticationRule parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.AuthenticationRule parseDelimitedFrom( + 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 AuthenticationRule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.api.AuthenticationRule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static AuthenticationRule parseFrom( + + public static com.google.api.AuthenticationRule 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(AuthenticationRule prototype) { + + public static Builder newBuilder(com.google.api.AuthenticationRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Authentication rules for the service.
    * By default, if a method has any authentication requirements, every request
@@ -476,21 +529,22 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.AuthenticationRule}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.AuthenticationRule)
       com.google.api.AuthenticationRuleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return AuthProto.internal_static_google_api_AuthenticationRule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.api.AuthProto.internal_static_google_api_AuthenticationRule_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return AuthProto.internal_static_google_api_AuthenticationRule_fieldAccessorTable
+      return com.google.api.AuthProto
+          .internal_static_google_api_AuthenticationRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              AuthenticationRule.class, Builder.class);
+              com.google.api.AuthenticationRule.class,
+              com.google.api.AuthenticationRule.Builder.class);
     }
 
     // Construct using com.google.api.AuthenticationRule.newBuilder()
@@ -498,18 +552,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getRequirementsFieldBuilder();
       }
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       selector_ = "";
@@ -524,38 +578,36 @@ public Builder clear() {
 
       if (requirementsBuilder_ == null) {
         requirements_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000008);
+        bitField0_ = (bitField0_ & ~0x00000001);
       } else {
         requirementsBuilder_.clear();
       }
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return AuthProto.internal_static_google_api_AuthenticationRule_descriptor;
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.api.AuthProto.internal_static_google_api_AuthenticationRule_descriptor;
     }
 
-    @Override
-    public AuthenticationRule getDefaultInstanceForType() {
-      return AuthenticationRule.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.AuthenticationRule getDefaultInstanceForType() {
+      return com.google.api.AuthenticationRule.getDefaultInstance();
     }
 
-    @Override
-    public AuthenticationRule build() {
-      AuthenticationRule result = buildPartial();
+    @java.lang.Override
+    public com.google.api.AuthenticationRule build() {
+      com.google.api.AuthenticationRule result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public AuthenticationRule buildPartial() {
-      AuthenticationRule result = new AuthenticationRule(this);
+    @java.lang.Override
+    public com.google.api.AuthenticationRule buildPartial() {
+      com.google.api.AuthenticationRule result = new com.google.api.AuthenticationRule(this);
       int from_bitField0_ = bitField0_;
-      int to_bitField0_ = 0;
       result.selector_ = selector_;
       if (oauthBuilder_ == null) {
         result.oauth_ = oauth_;
@@ -564,63 +616,63 @@ public AuthenticationRule buildPartial() {
       }
       result.allowWithoutCredential_ = allowWithoutCredential_;
       if (requirementsBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)) {
+        if (((bitField0_ & 0x00000001) != 0)) {
           requirements_ = java.util.Collections.unmodifiableList(requirements_);
-          bitField0_ = (bitField0_ & ~0x00000008);
+          bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.requirements_ = requirements_;
       } else {
         result.requirements_ = requirementsBuilder_.build();
       }
-      result.bitField0_ = to_bitField0_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof AuthenticationRule) {
-        return mergeFrom((AuthenticationRule)other);
+      if (other instanceof com.google.api.AuthenticationRule) {
+        return mergeFrom((com.google.api.AuthenticationRule) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(AuthenticationRule other) {
-      if (other == AuthenticationRule.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.AuthenticationRule other) {
+      if (other == com.google.api.AuthenticationRule.getDefaultInstance()) return this;
       if (!other.getSelector().isEmpty()) {
         selector_ = other.selector_;
         onChanged();
@@ -635,7 +687,7 @@ public Builder mergeFrom(AuthenticationRule other) {
         if (!other.requirements_.isEmpty()) {
           if (requirements_.isEmpty()) {
             requirements_ = other.requirements_;
-            bitField0_ = (bitField0_ & ~0x00000008);
+            bitField0_ = (bitField0_ & ~0x00000001);
           } else {
             ensureRequirementsIsMutable();
             requirements_.addAll(other.requirements_);
@@ -648,10 +700,11 @@ public Builder mergeFrom(AuthenticationRule other) {
             requirementsBuilder_.dispose();
             requirementsBuilder_ = null;
             requirements_ = other.requirements_;
-            bitField0_ = (bitField0_ & ~0x00000008);
-            requirementsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getRequirementsFieldBuilder() : null;
+            bitField0_ = (bitField0_ & ~0x00000001);
+            requirementsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getRequirementsFieldBuilder()
+                    : null;
           } else {
             requirementsBuilder_.addAllMessages(other.requirements_);
           }
@@ -662,21 +715,21 @@ public Builder mergeFrom(AuthenticationRule other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      AuthenticationRule parsedMessage = null;
+      com.google.api.AuthenticationRule parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (AuthenticationRule) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.AuthenticationRule) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -685,44 +738,50 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private Object selector_ = "";
+    private java.lang.Object selector_ = "";
     /**
+     *
+     *
      * 
      * Selects the methods to which this rule applies.
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
      * 
* * string selector = 1; + * + * @return The selector. */ - public String getSelector() { - Object ref = selector_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getSelector() { + java.lang.Object ref = selector_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); selector_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Selects the methods to which this rule applies.
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
      * 
* * string selector = 1; + * + * @return The bytes for selector. */ - public com.google.protobuf.ByteString - getSelectorBytes() { - Object ref = selector_; + public com.google.protobuf.ByteString getSelectorBytes() { + java.lang.Object ref = selector_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); selector_ = b; return b; } else { @@ -730,92 +789,117 @@ public String getSelector() { } } /** + * + * *
      * Selects the methods to which this rule applies.
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
      * 
* * string selector = 1; + * + * @param value The selector to set. + * @return This builder for chaining. */ - public Builder setSelector( - String value) { + public Builder setSelector(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + selector_ = value; onChanged(); return this; } /** + * + * *
      * Selects the methods to which this rule applies.
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
      * 
* * string selector = 1; + * + * @return This builder for chaining. */ public Builder clearSelector() { - + selector_ = getDefaultInstance().getSelector(); onChanged(); return this; } /** + * + * *
      * Selects the methods to which this rule applies.
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
      * 
* * string selector = 1; + * + * @param value The bytes for selector to set. + * @return This builder for chaining. */ - public Builder setSelectorBytes( - com.google.protobuf.ByteString value) { + public Builder setSelectorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + selector_ = value; onChanged(); return this; } - private OAuthRequirements oauth_; + private com.google.api.OAuthRequirements oauth_; private com.google.protobuf.SingleFieldBuilderV3< - OAuthRequirements, OAuthRequirements.Builder, com.google.api.OAuthRequirementsOrBuilder> oauthBuilder_; + com.google.api.OAuthRequirements, + com.google.api.OAuthRequirements.Builder, + com.google.api.OAuthRequirementsOrBuilder> + oauthBuilder_; /** + * + * *
      * The requirements for OAuth credentials.
      * 
* * .google.api.OAuthRequirements oauth = 2; + * + * @return Whether the oauth field is set. */ public boolean hasOauth() { return oauthBuilder_ != null || oauth_ != null; } /** + * + * *
      * The requirements for OAuth credentials.
      * 
* * .google.api.OAuthRequirements oauth = 2; + * + * @return The oauth. */ - public OAuthRequirements getOauth() { + public com.google.api.OAuthRequirements getOauth() { if (oauthBuilder_ == null) { - return oauth_ == null ? OAuthRequirements.getDefaultInstance() : oauth_; + return oauth_ == null ? com.google.api.OAuthRequirements.getDefaultInstance() : oauth_; } else { return oauthBuilder_.getMessage(); } } /** + * + * *
      * The requirements for OAuth credentials.
      * 
* * .google.api.OAuthRequirements oauth = 2; */ - public Builder setOauth(OAuthRequirements value) { + public Builder setOauth(com.google.api.OAuthRequirements value) { if (oauthBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -829,14 +913,15 @@ public Builder setOauth(OAuthRequirements value) { return this; } /** + * + * *
      * The requirements for OAuth credentials.
      * 
* * .google.api.OAuthRequirements oauth = 2; */ - public Builder setOauth( - OAuthRequirements.Builder builderForValue) { + public Builder setOauth(com.google.api.OAuthRequirements.Builder builderForValue) { if (oauthBuilder_ == null) { oauth_ = builderForValue.build(); onChanged(); @@ -847,17 +932,19 @@ public Builder setOauth( return this; } /** + * + * *
      * The requirements for OAuth credentials.
      * 
* * .google.api.OAuthRequirements oauth = 2; */ - public Builder mergeOauth(OAuthRequirements value) { + public Builder mergeOauth(com.google.api.OAuthRequirements value) { if (oauthBuilder_ == null) { if (oauth_ != null) { oauth_ = - OAuthRequirements.newBuilder(oauth_).mergeFrom(value).buildPartial(); + com.google.api.OAuthRequirements.newBuilder(oauth_).mergeFrom(value).buildPartial(); } else { oauth_ = value; } @@ -869,6 +956,8 @@ public Builder mergeOauth(OAuthRequirements value) { return this; } /** + * + * *
      * The requirements for OAuth credentials.
      * 
@@ -887,18 +976,22 @@ public Builder clearOauth() { return this; } /** + * + * *
      * The requirements for OAuth credentials.
      * 
* * .google.api.OAuthRequirements oauth = 2; */ - public OAuthRequirements.Builder getOauthBuilder() { - + public com.google.api.OAuthRequirements.Builder getOauthBuilder() { + onChanged(); return getOauthFieldBuilder().getBuilder(); } /** + * + * *
      * The requirements for OAuth credentials.
      * 
@@ -909,11 +1002,12 @@ public com.google.api.OAuthRequirementsOrBuilder getOauthOrBuilder() { if (oauthBuilder_ != null) { return oauthBuilder_.getMessageOrBuilder(); } else { - return oauth_ == null ? - OAuthRequirements.getDefaultInstance() : oauth_; + return oauth_ == null ? com.google.api.OAuthRequirements.getDefaultInstance() : oauth_; } } /** + * + * *
      * The requirements for OAuth credentials.
      * 
@@ -921,77 +1015,99 @@ public com.google.api.OAuthRequirementsOrBuilder getOauthOrBuilder() { * .google.api.OAuthRequirements oauth = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - OAuthRequirements, OAuthRequirements.Builder, com.google.api.OAuthRequirementsOrBuilder> + com.google.api.OAuthRequirements, + com.google.api.OAuthRequirements.Builder, + com.google.api.OAuthRequirementsOrBuilder> getOauthFieldBuilder() { if (oauthBuilder_ == null) { - oauthBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - OAuthRequirements, OAuthRequirements.Builder, com.google.api.OAuthRequirementsOrBuilder>( - getOauth(), - getParentForChildren(), - isClean()); + oauthBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.OAuthRequirements, + com.google.api.OAuthRequirements.Builder, + com.google.api.OAuthRequirementsOrBuilder>( + getOauth(), getParentForChildren(), isClean()); oauth_ = null; } return oauthBuilder_; } - private boolean allowWithoutCredential_ ; + private boolean allowWithoutCredential_; /** + * + * *
      * If true, the service accepts API keys without any other credential.
      * 
* * bool allow_without_credential = 5; + * + * @return The allowWithoutCredential. */ public boolean getAllowWithoutCredential() { return allowWithoutCredential_; } /** + * + * *
      * If true, the service accepts API keys without any other credential.
      * 
* * bool allow_without_credential = 5; + * + * @param value The allowWithoutCredential to set. + * @return This builder for chaining. */ public Builder setAllowWithoutCredential(boolean value) { - + allowWithoutCredential_ = value; onChanged(); return this; } /** + * + * *
      * If true, the service accepts API keys without any other credential.
      * 
* * bool allow_without_credential = 5; + * + * @return This builder for chaining. */ public Builder clearAllowWithoutCredential() { - + allowWithoutCredential_ = false; onChanged(); return this; } - private java.util.List requirements_ = - java.util.Collections.emptyList(); + private java.util.List requirements_ = + java.util.Collections.emptyList(); + private void ensureRequirementsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - requirements_ = new java.util.ArrayList(requirements_); - bitField0_ |= 0x00000008; - } + if (!((bitField0_ & 0x00000001) != 0)) { + requirements_ = new java.util.ArrayList(requirements_); + bitField0_ |= 0x00000001; + } } private com.google.protobuf.RepeatedFieldBuilderV3< - AuthRequirement, AuthRequirement.Builder, com.google.api.AuthRequirementOrBuilder> requirementsBuilder_; + com.google.api.AuthRequirement, + com.google.api.AuthRequirement.Builder, + com.google.api.AuthRequirementOrBuilder> + requirementsBuilder_; /** + * + * *
      * Requirements for additional authentication providers.
      * 
* * repeated .google.api.AuthRequirement requirements = 7; */ - public java.util.List getRequirementsList() { + public java.util.List getRequirementsList() { if (requirementsBuilder_ == null) { return java.util.Collections.unmodifiableList(requirements_); } else { @@ -999,6 +1115,8 @@ public java.util.List getRequirementsList() { } } /** + * + * *
      * Requirements for additional authentication providers.
      * 
@@ -1013,13 +1131,15 @@ public int getRequirementsCount() { } } /** + * + * *
      * Requirements for additional authentication providers.
      * 
* * repeated .google.api.AuthRequirement requirements = 7; */ - public AuthRequirement getRequirements(int index) { + public com.google.api.AuthRequirement getRequirements(int index) { if (requirementsBuilder_ == null) { return requirements_.get(index); } else { @@ -1027,14 +1147,15 @@ public AuthRequirement getRequirements(int index) { } } /** + * + * *
      * Requirements for additional authentication providers.
      * 
* * repeated .google.api.AuthRequirement requirements = 7; */ - public Builder setRequirements( - int index, AuthRequirement value) { + public Builder setRequirements(int index, com.google.api.AuthRequirement value) { if (requirementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1048,6 +1169,8 @@ public Builder setRequirements( return this; } /** + * + * *
      * Requirements for additional authentication providers.
      * 
@@ -1055,7 +1178,7 @@ public Builder setRequirements( * repeated .google.api.AuthRequirement requirements = 7; */ public Builder setRequirements( - int index, AuthRequirement.Builder builderForValue) { + int index, com.google.api.AuthRequirement.Builder builderForValue) { if (requirementsBuilder_ == null) { ensureRequirementsIsMutable(); requirements_.set(index, builderForValue.build()); @@ -1066,13 +1189,15 @@ public Builder setRequirements( return this; } /** + * + * *
      * Requirements for additional authentication providers.
      * 
* * repeated .google.api.AuthRequirement requirements = 7; */ - public Builder addRequirements(AuthRequirement value) { + public Builder addRequirements(com.google.api.AuthRequirement value) { if (requirementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1086,14 +1211,15 @@ public Builder addRequirements(AuthRequirement value) { return this; } /** + * + * *
      * Requirements for additional authentication providers.
      * 
* * repeated .google.api.AuthRequirement requirements = 7; */ - public Builder addRequirements( - int index, AuthRequirement value) { + public Builder addRequirements(int index, com.google.api.AuthRequirement value) { if (requirementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1107,14 +1233,15 @@ public Builder addRequirements( return this; } /** + * + * *
      * Requirements for additional authentication providers.
      * 
* * repeated .google.api.AuthRequirement requirements = 7; */ - public Builder addRequirements( - AuthRequirement.Builder builderForValue) { + public Builder addRequirements(com.google.api.AuthRequirement.Builder builderForValue) { if (requirementsBuilder_ == null) { ensureRequirementsIsMutable(); requirements_.add(builderForValue.build()); @@ -1125,6 +1252,8 @@ public Builder addRequirements( return this; } /** + * + * *
      * Requirements for additional authentication providers.
      * 
@@ -1132,7 +1261,7 @@ public Builder addRequirements( * repeated .google.api.AuthRequirement requirements = 7; */ public Builder addRequirements( - int index, AuthRequirement.Builder builderForValue) { + int index, com.google.api.AuthRequirement.Builder builderForValue) { if (requirementsBuilder_ == null) { ensureRequirementsIsMutable(); requirements_.add(index, builderForValue.build()); @@ -1143,6 +1272,8 @@ public Builder addRequirements( return this; } /** + * + * *
      * Requirements for additional authentication providers.
      * 
@@ -1150,11 +1281,10 @@ public Builder addRequirements( * repeated .google.api.AuthRequirement requirements = 7; */ public Builder addAllRequirements( - Iterable values) { + java.lang.Iterable values) { if (requirementsBuilder_ == null) { ensureRequirementsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requirements_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requirements_); onChanged(); } else { requirementsBuilder_.addAllMessages(values); @@ -1162,6 +1292,8 @@ public Builder addAllRequirements( return this; } /** + * + * *
      * Requirements for additional authentication providers.
      * 
@@ -1171,7 +1303,7 @@ public Builder addAllRequirements( public Builder clearRequirements() { if (requirementsBuilder_ == null) { requirements_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { requirementsBuilder_.clear(); @@ -1179,6 +1311,8 @@ public Builder clearRequirements() { return this; } /** + * + * *
      * Requirements for additional authentication providers.
      * 
@@ -1196,39 +1330,44 @@ public Builder removeRequirements(int index) { return this; } /** + * + * *
      * Requirements for additional authentication providers.
      * 
* * repeated .google.api.AuthRequirement requirements = 7; */ - public AuthRequirement.Builder getRequirementsBuilder( - int index) { + public com.google.api.AuthRequirement.Builder getRequirementsBuilder(int index) { return getRequirementsFieldBuilder().getBuilder(index); } /** + * + * *
      * Requirements for additional authentication providers.
      * 
* * repeated .google.api.AuthRequirement requirements = 7; */ - public com.google.api.AuthRequirementOrBuilder getRequirementsOrBuilder( - int index) { + public com.google.api.AuthRequirementOrBuilder getRequirementsOrBuilder(int index) { if (requirementsBuilder_ == null) { - return requirements_.get(index); } else { + return requirements_.get(index); + } else { return requirementsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Requirements for additional authentication providers.
      * 
* * repeated .google.api.AuthRequirement requirements = 7; */ - public java.util.List - getRequirementsOrBuilderList() { + public java.util.List + getRequirementsOrBuilderList() { if (requirementsBuilder_ != null) { return requirementsBuilder_.getMessageOrBuilderList(); } else { @@ -1236,103 +1375,108 @@ public com.google.api.AuthRequirementOrBuilder getRequirementsOrBuilder( } } /** + * + * *
      * Requirements for additional authentication providers.
      * 
* * repeated .google.api.AuthRequirement requirements = 7; */ - public AuthRequirement.Builder addRequirementsBuilder() { - return getRequirementsFieldBuilder().addBuilder( - AuthRequirement.getDefaultInstance()); + public com.google.api.AuthRequirement.Builder addRequirementsBuilder() { + return getRequirementsFieldBuilder() + .addBuilder(com.google.api.AuthRequirement.getDefaultInstance()); } /** + * + * *
      * Requirements for additional authentication providers.
      * 
* * repeated .google.api.AuthRequirement requirements = 7; */ - public AuthRequirement.Builder addRequirementsBuilder( - int index) { - return getRequirementsFieldBuilder().addBuilder( - index, AuthRequirement.getDefaultInstance()); + public com.google.api.AuthRequirement.Builder addRequirementsBuilder(int index) { + return getRequirementsFieldBuilder() + .addBuilder(index, com.google.api.AuthRequirement.getDefaultInstance()); } /** + * + * *
      * Requirements for additional authentication providers.
      * 
* * repeated .google.api.AuthRequirement requirements = 7; */ - public java.util.List - getRequirementsBuilderList() { + public java.util.List getRequirementsBuilderList() { return getRequirementsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - AuthRequirement, AuthRequirement.Builder, com.google.api.AuthRequirementOrBuilder> + com.google.api.AuthRequirement, + com.google.api.AuthRequirement.Builder, + com.google.api.AuthRequirementOrBuilder> getRequirementsFieldBuilder() { if (requirementsBuilder_ == null) { - requirementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - AuthRequirement, AuthRequirement.Builder, com.google.api.AuthRequirementOrBuilder>( - requirements_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); + requirementsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.api.AuthRequirement, + com.google.api.AuthRequirement.Builder, + com.google.api.AuthRequirementOrBuilder>( + requirements_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); requirements_ = null; } return requirementsBuilder_; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.AuthenticationRule) } // @@protoc_insertion_point(class_scope:google.api.AuthenticationRule) - private static final AuthenticationRule DEFAULT_INSTANCE; + private static final com.google.api.AuthenticationRule DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new AuthenticationRule(); + DEFAULT_INSTANCE = new com.google.api.AuthenticationRule(); } - public static AuthenticationRule getDefaultInstance() { + public static com.google.api.AuthenticationRule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public AuthenticationRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AuthenticationRule(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthenticationRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthenticationRule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public AuthenticationRule getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.AuthenticationRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRuleOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRuleOrBuilder.java index 9d649340..a8e7aafc 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRuleOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRuleOrBuilder.java @@ -1,84 +1,126 @@ +/* + * 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 AuthenticationRuleOrBuilder extends +public interface AuthenticationRuleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.AuthenticationRule) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Selects the methods to which this rule applies.
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
    * 
* * string selector = 1; + * + * @return The selector. */ - String getSelector(); + java.lang.String getSelector(); /** + * + * *
    * Selects the methods to which this rule applies.
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
    * 
* * string selector = 1; + * + * @return The bytes for selector. */ - com.google.protobuf.ByteString - getSelectorBytes(); + com.google.protobuf.ByteString getSelectorBytes(); /** + * + * *
    * The requirements for OAuth credentials.
    * 
* * .google.api.OAuthRequirements oauth = 2; + * + * @return Whether the oauth field is set. */ boolean hasOauth(); /** + * + * *
    * The requirements for OAuth credentials.
    * 
* * .google.api.OAuthRequirements oauth = 2; + * + * @return The oauth. */ - OAuthRequirements getOauth(); + com.google.api.OAuthRequirements getOauth(); /** + * + * *
    * The requirements for OAuth credentials.
    * 
* * .google.api.OAuthRequirements oauth = 2; */ - OAuthRequirementsOrBuilder getOauthOrBuilder(); + com.google.api.OAuthRequirementsOrBuilder getOauthOrBuilder(); /** + * + * *
    * If true, the service accepts API keys without any other credential.
    * 
* * bool allow_without_credential = 5; + * + * @return The allowWithoutCredential. */ boolean getAllowWithoutCredential(); /** + * + * *
    * Requirements for additional authentication providers.
    * 
* * repeated .google.api.AuthRequirement requirements = 7; */ - java.util.List - getRequirementsList(); + java.util.List getRequirementsList(); /** + * + * *
    * Requirements for additional authentication providers.
    * 
* * repeated .google.api.AuthRequirement requirements = 7; */ - AuthRequirement getRequirements(int index); + com.google.api.AuthRequirement getRequirements(int index); /** + * + * *
    * Requirements for additional authentication providers.
    * 
@@ -87,21 +129,23 @@ public interface AuthenticationRuleOrBuilder extends */ int getRequirementsCount(); /** + * + * *
    * Requirements for additional authentication providers.
    * 
* * repeated .google.api.AuthRequirement requirements = 7; */ - java.util.List - getRequirementsOrBuilderList(); + java.util.List getRequirementsOrBuilderList(); /** + * + * *
    * Requirements for additional authentication providers.
    * 
* * repeated .google.api.AuthRequirement requirements = 7; */ - AuthRequirementOrBuilder getRequirementsOrBuilder( - int index); + com.google.api.AuthRequirementOrBuilder getRequirementsOrBuilder(int index); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/Backend.java b/proto-google-common-protos/src/main/java/com/google/api/Backend.java index 9a43a598..63cb6d81 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/Backend.java +++ b/proto-google-common-protos/src/main/java/com/google/api/Backend.java @@ -1,40 +1,64 @@ +/* + * 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/backend.proto package com.google.api; /** + * + * *
  * `Backend` defines the backend configuration for a service.
  * 
* * Protobuf type {@code google.api.Backend} */ -public final class Backend extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Backend extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.api.Backend) BackendOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Backend.newBuilder() to construct. private Backend(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Backend() { rules_ = java.util.Collections.emptyList(); } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Backend(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Backend( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = @@ -47,29 +71,28 @@ private Backend( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - rules_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + rules_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + rules_.add(input.readMessage(com.google.api.BackendRule.parser(), extensionRegistry)); + break; } - rules_.add( - input.readMessage(com.google.api.BackendRule.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { rules_ = java.util.Collections.unmodifiableList(rules_); @@ -78,22 +101,24 @@ private Backend( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.BackendProto.internal_static_google_api_Backend_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.BackendProto.internal_static_google_api_Backend_fieldAccessorTable .ensureFieldAccessorsInitialized( - Backend.class, Builder.class); + com.google.api.Backend.class, com.google.api.Backend.Builder.class); } public static final int RULES_FIELD_NUMBER = 1; private java.util.List rules_; /** + * + * *
    * A list of API backend rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -105,6 +130,8 @@ public java.util.List getRulesList() {
     return rules_;
   }
   /**
+   *
+   *
    * 
    * A list of API backend rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -112,11 +139,12 @@ public java.util.List getRulesList() {
    *
    * repeated .google.api.BackendRule rules = 1;
    */
-  public java.util.List 
-      getRulesOrBuilderList() {
+  public java.util.List getRulesOrBuilderList() {
     return rules_;
   }
   /**
+   *
+   *
    * 
    * A list of API backend rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -128,6 +156,8 @@ public int getRulesCount() {
     return rules_.size();
   }
   /**
+   *
+   *
    * 
    * A list of API backend rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -139,6 +169,8 @@ public com.google.api.BackendRule getRules(int index) {
     return rules_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of API backend rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -146,13 +178,13 @@ public com.google.api.BackendRule getRules(int index) {
    *
    * repeated .google.api.BackendRule rules = 1;
    */
-  public com.google.api.BackendRuleOrBuilder getRulesOrBuilder(
-      int index) {
+  public com.google.api.BackendRuleOrBuilder getRulesOrBuilder(int index) {
     return rules_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-  @Override
+
+  @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
     if (isInitialized == 1) return true;
@@ -162,47 +194,44 @@ public final boolean isInitialized() {
     return true;
   }
 
-  @Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  @java.lang.Override
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < rules_.size(); i++) {
       output.writeMessage(1, rules_.get(i));
     }
     unknownFields.writeTo(output);
   }
 
-  @Override
+  @java.lang.Override
   public int getSerializedSize() {
     int size = memoizedSize;
     if (size != -1) return size;
 
     size = 0;
     for (int i = 0; i < rules_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, rules_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, rules_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
     return size;
   }
 
-  @Override
-  public boolean equals(final Object obj) {
+  @java.lang.Override
+  public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
-    if (!(obj instanceof Backend)) {
+    if (!(obj instanceof com.google.api.Backend)) {
       return super.equals(obj);
     }
-    Backend other = (Backend) obj;
+    com.google.api.Backend other = (com.google.api.Backend) obj;
 
-    if (!getRulesList()
-        .equals(other.getRulesList())) return false;
+    if (!getRulesList().equals(other.getRulesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
 
-  @Override
+  @java.lang.Override
   public int hashCode() {
     if (memoizedHashCode != 0) {
       return memoizedHashCode;
@@ -218,118 +247,123 @@ public int hashCode() {
     return hash;
   }
 
-  public static Backend parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.api.Backend parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Backend parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Backend parseFrom(
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Backend parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.api.Backend parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Backend parseFrom(
+
+  public static com.google.api.Backend parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Backend parseFrom(byte[] data)
+
+  public static com.google.api.Backend parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Backend parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Backend parseFrom(
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Backend parseFrom(java.io.InputStream input)
+
+  public static com.google.api.Backend 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 Backend parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Backend parseFrom(
+      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 Backend parseDelimitedFrom(java.io.InputStream input)
+
+  public static com.google.api.Backend 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 Backend parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Backend parseDelimitedFrom(
+      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 Backend parseFrom(
-      com.google.protobuf.CodedInputStream input)
+
+  public static com.google.api.Backend 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 Backend parseFrom(
+
+  public static com.google.api.Backend 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();
   }
 
-  @Override
-  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(Backend prototype) {
+
+  public static Builder newBuilder(com.google.api.Backend prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-  @Override
+
+  @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);
   }
 
-  @Override
-  protected Builder newBuilderForType(
-      BuilderParent parent) {
+  @java.lang.Override
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * `Backend` defines the backend configuration for a service.
    * 
* * Protobuf type {@code google.api.Backend} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.api.Backend) com.google.api.BackendOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.BackendProto.internal_static_google_api_Backend_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.BackendProto.internal_static_google_api_Backend_fieldAccessorTable .ensureFieldAccessorsInitialized( - Backend.class, Builder.class); + com.google.api.Backend.class, com.google.api.Backend.Builder.class); } // Construct using com.google.api.Backend.newBuilder() @@ -337,18 +371,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRulesFieldBuilder(); } } - @Override + + @java.lang.Override public Builder clear() { super.clear(); if (rulesBuilder_ == null) { @@ -360,29 +394,28 @@ public Builder clear() { return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.api.BackendProto.internal_static_google_api_Backend_descriptor; } - @Override - public Backend getDefaultInstanceForType() { - return Backend.getDefaultInstance(); + @java.lang.Override + public com.google.api.Backend getDefaultInstanceForType() { + return com.google.api.Backend.getDefaultInstance(); } - @Override - public Backend build() { - Backend result = buildPartial(); + @java.lang.Override + public com.google.api.Backend build() { + com.google.api.Backend result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public Backend buildPartial() { - Backend result = new Backend(this); + @java.lang.Override + public com.google.api.Backend buildPartial() { + com.google.api.Backend result = new com.google.api.Backend(this); int from_bitField0_ = bitField0_; if (rulesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -397,50 +430,51 @@ public Backend buildPartial() { return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof Backend) { - return mergeFrom((Backend)other); + if (other instanceof com.google.api.Backend) { + return mergeFrom((com.google.api.Backend) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(Backend other) { - if (other == Backend.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.api.Backend other) { + if (other == com.google.api.Backend.getDefaultInstance()) return this; if (rulesBuilder_ == null) { if (!other.rules_.isEmpty()) { if (rules_.isEmpty()) { @@ -459,9 +493,10 @@ public Builder mergeFrom(Backend 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_); } @@ -472,21 +507,21 @@ public Builder mergeFrom(Backend other) { return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Backend parsedMessage = null; + com.google.api.Backend parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Backend) e.getUnfinishedMessage(); + parsedMessage = (com.google.api.Backend) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -495,21 +530,27 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List rules_ = - java.util.Collections.emptyList(); + private java.util.List rules_ = 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.BackendRule, com.google.api.BackendRule.Builder, com.google.api.BackendRuleOrBuilder> rulesBuilder_; + com.google.api.BackendRule, + com.google.api.BackendRule.Builder, + com.google.api.BackendRuleOrBuilder> + rulesBuilder_; /** + * + * *
      * A list of API backend rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -525,6 +566,8 @@ public java.util.List getRulesList() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of API backend rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -540,6 +583,8 @@ public int getRulesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of API backend rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -555,6 +600,8 @@ public com.google.api.BackendRule getRules(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of API backend rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -562,8 +609,7 @@ public com.google.api.BackendRule getRules(int index) {
      *
      * repeated .google.api.BackendRule rules = 1;
      */
-    public Builder setRules(
-        int index, com.google.api.BackendRule value) {
+    public Builder setRules(int index, com.google.api.BackendRule value) {
       if (rulesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -577,6 +623,8 @@ public Builder setRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of API backend rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -584,8 +632,7 @@ public Builder setRules(
      *
      * repeated .google.api.BackendRule rules = 1;
      */
-    public Builder setRules(
-        int index, com.google.api.BackendRule.Builder builderForValue) {
+    public Builder setRules(int index, com.google.api.BackendRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.set(index, builderForValue.build());
@@ -596,6 +643,8 @@ public Builder setRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of API backend rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -617,6 +666,8 @@ public Builder addRules(com.google.api.BackendRule value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of API backend rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -624,8 +675,7 @@ public Builder addRules(com.google.api.BackendRule value) {
      *
      * repeated .google.api.BackendRule rules = 1;
      */
-    public Builder addRules(
-        int index, com.google.api.BackendRule value) {
+    public Builder addRules(int index, com.google.api.BackendRule value) {
       if (rulesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -639,6 +689,8 @@ public Builder addRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of API backend rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -646,8 +698,7 @@ public Builder addRules(
      *
      * repeated .google.api.BackendRule rules = 1;
      */
-    public Builder addRules(
-        com.google.api.BackendRule.Builder builderForValue) {
+    public Builder addRules(com.google.api.BackendRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.add(builderForValue.build());
@@ -658,6 +709,8 @@ public Builder addRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of API backend rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -665,8 +718,7 @@ public Builder addRules(
      *
      * repeated .google.api.BackendRule rules = 1;
      */
-    public Builder addRules(
-        int index, com.google.api.BackendRule.Builder builderForValue) {
+    public Builder addRules(int index, com.google.api.BackendRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.add(index, builderForValue.build());
@@ -677,6 +729,8 @@ public Builder addRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of API backend rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -684,12 +738,10 @@ public Builder addRules(
      *
      * repeated .google.api.BackendRule rules = 1;
      */
-    public Builder addAllRules(
-        Iterable values) {
+    public Builder addAllRules(java.lang.Iterable 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);
@@ -697,6 +749,8 @@ public Builder addAllRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of API backend rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -715,6 +769,8 @@ public Builder clearRules() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of API backend rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -733,6 +789,8 @@ public Builder removeRules(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of API backend rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -740,11 +798,12 @@ public Builder removeRules(int index) {
      *
      * repeated .google.api.BackendRule rules = 1;
      */
-    public com.google.api.BackendRule.Builder getRulesBuilder(
-        int index) {
+    public com.google.api.BackendRule.Builder getRulesBuilder(int index) {
       return getRulesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of API backend rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -752,14 +811,16 @@ public com.google.api.BackendRule.Builder getRulesBuilder(
      *
      * repeated .google.api.BackendRule rules = 1;
      */
-    public com.google.api.BackendRuleOrBuilder getRulesOrBuilder(
-        int index) {
+    public com.google.api.BackendRuleOrBuilder getRulesOrBuilder(int index) {
       if (rulesBuilder_ == null) {
-        return rules_.get(index);  } else {
+        return rules_.get(index);
+      } else {
         return rulesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of API backend rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -767,8 +828,7 @@ public com.google.api.BackendRuleOrBuilder getRulesOrBuilder(
      *
      * repeated .google.api.BackendRule rules = 1;
      */
-    public java.util.List 
-         getRulesOrBuilderList() {
+    public java.util.List getRulesOrBuilderList() {
       if (rulesBuilder_ != null) {
         return rulesBuilder_.getMessageOrBuilderList();
       } else {
@@ -776,6 +836,8 @@ public com.google.api.BackendRuleOrBuilder getRulesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * A list of API backend rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -784,10 +846,11 @@ public com.google.api.BackendRuleOrBuilder getRulesOrBuilder(
      * repeated .google.api.BackendRule rules = 1;
      */
     public com.google.api.BackendRule.Builder addRulesBuilder() {
-      return getRulesFieldBuilder().addBuilder(
-          com.google.api.BackendRule.getDefaultInstance());
+      return getRulesFieldBuilder().addBuilder(com.google.api.BackendRule.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of API backend rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -795,12 +858,13 @@ public com.google.api.BackendRule.Builder addRulesBuilder() {
      *
      * repeated .google.api.BackendRule rules = 1;
      */
-    public com.google.api.BackendRule.Builder addRulesBuilder(
-        int index) {
-      return getRulesFieldBuilder().addBuilder(
-          index, com.google.api.BackendRule.getDefaultInstance());
+    public com.google.api.BackendRule.Builder addRulesBuilder(int index) {
+      return getRulesFieldBuilder()
+          .addBuilder(index, com.google.api.BackendRule.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of API backend rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -808,74 +872,74 @@ public com.google.api.BackendRule.Builder addRulesBuilder(
      *
      * repeated .google.api.BackendRule rules = 1;
      */
-    public java.util.List 
-         getRulesBuilderList() {
+    public java.util.List getRulesBuilderList() {
       return getRulesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.api.BackendRule, com.google.api.BackendRule.Builder, com.google.api.BackendRuleOrBuilder> 
+            com.google.api.BackendRule,
+            com.google.api.BackendRule.Builder,
+            com.google.api.BackendRuleOrBuilder>
         getRulesFieldBuilder() {
       if (rulesBuilder_ == null) {
-        rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.api.BackendRule, com.google.api.BackendRule.Builder, com.google.api.BackendRuleOrBuilder>(
-                rules_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        rulesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.api.BackendRule,
+                com.google.api.BackendRule.Builder,
+                com.google.api.BackendRuleOrBuilder>(
+                rules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         rules_ = null;
       }
       return rulesBuilder_;
     }
-    @Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+
+    @java.lang.Override
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
-    @Override
+    @java.lang.Override
     public final Builder mergeUnknownFields(
         final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.api.Backend)
   }
 
   // @@protoc_insertion_point(class_scope:google.api.Backend)
-  private static final Backend DEFAULT_INSTANCE;
+  private static final com.google.api.Backend DEFAULT_INSTANCE;
+
   static {
-    DEFAULT_INSTANCE = new Backend();
+    DEFAULT_INSTANCE = new com.google.api.Backend();
   }
 
-  public static Backend getDefaultInstance() {
+  public static com.google.api.Backend getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @Override
-    public Backend parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Backend(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Backend parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Backend(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
   }
 
-  @Override
+  @java.lang.Override
   public com.google.protobuf.Parser getParserForType() {
     return PARSER;
   }
 
-  @Override
-  public Backend getDefaultInstanceForType() {
+  @java.lang.Override
+  public com.google.api.Backend getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-common-protos/src/main/java/com/google/api/BackendOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/BackendOrBuilder.java
index 1390dbc2..807191b5 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/BackendOrBuilder.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/BackendOrBuilder.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/backend.proto
 
 package com.google.api;
 
-public interface BackendOrBuilder extends
+public interface BackendOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.api.Backend)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A list of API backend rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -15,9 +33,10 @@ public interface BackendOrBuilder extends
    *
    * repeated .google.api.BackendRule rules = 1;
    */
-  java.util.List
-      getRulesList();
+  java.util.List getRulesList();
   /**
+   *
+   *
    * 
    * A list of API backend rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -25,8 +44,10 @@ public interface BackendOrBuilder extends
    *
    * repeated .google.api.BackendRule rules = 1;
    */
-  BackendRule getRules(int index);
+  com.google.api.BackendRule getRules(int index);
   /**
+   *
+   *
    * 
    * A list of API backend rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -36,6 +57,8 @@ public interface BackendOrBuilder extends
    */
   int getRulesCount();
   /**
+   *
+   *
    * 
    * A list of API backend rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -43,9 +66,10 @@ public interface BackendOrBuilder extends
    *
    * repeated .google.api.BackendRule rules = 1;
    */
-  java.util.List 
-      getRulesOrBuilderList();
+  java.util.List getRulesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of API backend rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -53,6 +77,5 @@ public interface BackendOrBuilder extends
    *
    * repeated .google.api.BackendRule rules = 1;
    */
-  com.google.api.BackendRuleOrBuilder getRulesOrBuilder(
-      int index);
+  com.google.api.BackendRuleOrBuilder getRulesOrBuilder(int index);
 }
diff --git a/proto-google-common-protos/src/main/java/com/google/api/BackendProto.java b/proto-google-common-protos/src/main/java/com/google/api/BackendProto.java
index c7d684fe..8978c495 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/BackendProto.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/BackendProto.java
@@ -1,3 +1,18 @@
+/*
+ * 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/backend.proto
 
@@ -5,73 +20,72 @@
 
 public final class BackendProto {
   private BackendProto() {}
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistryLite registry) {
-  }
 
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions(
-        (com.google.protobuf.ExtensionRegistryLite) registry);
+  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_Backend_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_Backend_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_Backend_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_api_BackendRule_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_BackendRule_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_BackendRule_fieldAccessorTable;
 
-  public static com.google.protobuf.Descriptors.FileDescriptor
-      getDescriptor() {
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     return descriptor;
   }
-  private static  com.google.protobuf.Descriptors.FileDescriptor
-      descriptor;
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
   static {
-    String[] descriptorData = {
-      "\n\030google/api/backend.proto\022\ngoogle.api\"1" +
-      "\n\007Backend\022&\n\005rules\030\001 \003(\0132\027.google.api.Ba" +
-      "ckendRule\"\310\002\n\013BackendRule\022\020\n\010selector\030\001 " +
-      "\001(\t\022\017\n\007address\030\002 \001(\t\022\020\n\010deadline\030\003 \001(\001\022\024" +
-      "\n\014min_deadline\030\004 \001(\001\022\032\n\022operation_deadli" +
-      "ne\030\005 \001(\001\022A\n\020path_translation\030\006 \001(\0162\'.goo" +
-      "gle.api.BackendRule.PathTranslation\022\026\n\014j" +
-      "wt_audience\030\007 \001(\tH\000\"e\n\017PathTranslation\022 " +
-      "\n\034PATH_TRANSLATION_UNSPECIFIED\020\000\022\024\n\020CONS" +
-      "TANT_ADDRESS\020\001\022\032\n\026APPEND_PATH_TO_ADDRESS" +
-      "\020\002B\020\n\016authenticationBn\n\016com.google.apiB\014" +
-      "BackendProtoP\001ZEgoogle.golang.org/genpro" +
-      "to/googleapis/api/serviceconfig;servicec" +
-      "onfig\242\002\004GAPIb\006proto3"
+    java.lang.String[] descriptorData = {
+      "\n\030google/api/backend.proto\022\ngoogle.api\"1"
+          + "\n\007Backend\022&\n\005rules\030\001 \003(\0132\027.google.api.Ba"
+          + "ckendRule\"\362\002\n\013BackendRule\022\020\n\010selector\030\001 "
+          + "\001(\t\022\017\n\007address\030\002 \001(\t\022\020\n\010deadline\030\003 \001(\001\022\024"
+          + "\n\014min_deadline\030\004 \001(\001\022\032\n\022operation_deadli"
+          + "ne\030\005 \001(\001\022A\n\020path_translation\030\006 \001(\0162\'.goo"
+          + "gle.api.BackendRule.PathTranslation\022\026\n\014j"
+          + "wt_audience\030\007 \001(\tH\000\022\026\n\014disable_auth\030\010 \001("
+          + "\010H\000\022\020\n\010protocol\030\t \001(\t\"e\n\017PathTranslation"
+          + "\022 \n\034PATH_TRANSLATION_UNSPECIFIED\020\000\022\024\n\020CO"
+          + "NSTANT_ADDRESS\020\001\022\032\n\026APPEND_PATH_TO_ADDRE"
+          + "SS\020\002B\020\n\016authenticationBn\n\016com.google.api"
+          + "B\014BackendProtoP\001ZEgoogle.golang.org/genp"
+          + "roto/googleapis/api/serviceconfig;servic"
+          + "econfig\242\002\004GAPIb\006proto3"
     };
-    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
-        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
-          public com.google.protobuf.ExtensionRegistry assignDescriptors(
-              com.google.protobuf.Descriptors.FileDescriptor root) {
-            descriptor = root;
-            return null;
-          }
-        };
-    com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-        }, assigner);
-    internal_static_google_api_Backend_descriptor =
-      getDescriptor().getMessageTypes().get(0);
-    internal_static_google_api_Backend_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_Backend_descriptor,
-        new String[] { "Rules", });
-    internal_static_google_api_BackendRule_descriptor =
-      getDescriptor().getMessageTypes().get(1);
-    internal_static_google_api_BackendRule_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_BackendRule_descriptor,
-        new String[] { "Selector", "Address", "Deadline", "MinDeadline", "OperationDeadline", "PathTranslation", "JwtAudience", "Authentication", });
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
+    internal_static_google_api_Backend_descriptor = getDescriptor().getMessageTypes().get(0);
+    internal_static_google_api_Backend_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_Backend_descriptor,
+            new java.lang.String[] {
+              "Rules",
+            });
+    internal_static_google_api_BackendRule_descriptor = getDescriptor().getMessageTypes().get(1);
+    internal_static_google_api_BackendRule_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_BackendRule_descriptor,
+            new java.lang.String[] {
+              "Selector",
+              "Address",
+              "Deadline",
+              "MinDeadline",
+              "OperationDeadline",
+              "PathTranslation",
+              "JwtAudience",
+              "DisableAuth",
+              "Protocol",
+              "Authentication",
+            });
   }
 
   // @@protoc_insertion_point(outer_class_scope)
diff --git a/proto-google-common-protos/src/main/java/com/google/api/BackendRule.java b/proto-google-common-protos/src/main/java/com/google/api/BackendRule.java
index c272dbc0..1fdc453f 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/BackendRule.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/BackendRule.java
@@ -1,44 +1,68 @@
+/*
+ * 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/backend.proto
 
 package com.google.api;
 
 /**
+ *
+ *
  * 
  * A backend rule provides configuration for an individual API element.
  * 
* * Protobuf type {@code google.api.BackendRule} */ -public final class BackendRule extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BackendRule extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.api.BackendRule) BackendRuleOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BackendRule.newBuilder() to construct. private BackendRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BackendRule() { selector_ = ""; address_ = ""; pathTranslation_ = 0; + protocol_ = ""; } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BackendRule(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BackendRule( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -49,78 +73,96 @@ private BackendRule( case 0: done = true; break; - case 10: { - String s = input.readStringRequireUtf8(); - - selector_ = s; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - address_ = s; - break; - } - case 25: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - deadline_ = input.readDouble(); - break; - } - case 33: { + selector_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - minDeadline_ = input.readDouble(); - break; - } - case 41: { + address_ = s; + break; + } + case 25: + { + deadline_ = input.readDouble(); + break; + } + case 33: + { + minDeadline_ = input.readDouble(); + break; + } + case 41: + { + operationDeadline_ = input.readDouble(); + break; + } + case 48: + { + int rawValue = input.readEnum(); - operationDeadline_ = input.readDouble(); - break; - } - case 48: { - int rawValue = input.readEnum(); + pathTranslation_ = rawValue; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + authenticationCase_ = 7; + authentication_ = s; + break; + } + case 64: + { + authenticationCase_ = 8; + authentication_ = input.readBool(); + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); - pathTranslation_ = rawValue; - break; - } - case 58: { - String s = input.readStringRequireUtf8(); - authenticationCase_ = 7; - authentication_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + protocol_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.BackendProto.internal_static_google_api_BackendRule_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.BackendProto.internal_static_google_api_BackendRule_fieldAccessorTable .ensureFieldAccessorsInitialized( - BackendRule.class, Builder.class); + com.google.api.BackendRule.class, com.google.api.BackendRule.Builder.class); } /** + * + * *
    * Path Translation specifies how to combine the backend address with the
    * request path in order to produce the appropriate forwarding URL for the
@@ -132,13 +174,12 @@ private BackendRule(
    *
    * Protobuf enum {@code google.api.BackendRule.PathTranslation}
    */
-  public enum PathTranslation
-      implements com.google.protobuf.ProtocolMessageEnum {
-    /**
-     * PATH_TRANSLATION_UNSPECIFIED = 0;
-     */
+  public enum PathTranslation implements com.google.protobuf.ProtocolMessageEnum {
+    /** PATH_TRANSLATION_UNSPECIFIED = 0; */
     PATH_TRANSLATION_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * Use the backend address as-is, with no modification to the path. If the
      * URL pattern contains variables, the variable names and values will be
@@ -163,6 +204,8 @@ public enum PathTranslation
      */
     CONSTANT_ADDRESS(1),
     /**
+     *
+     *
      * 
      * The request path will be appended to the backend address.
      * # Examples
@@ -185,11 +228,11 @@ public enum PathTranslation
     UNRECOGNIZED(-1),
     ;
 
-    /**
-     * PATH_TRANSLATION_UNSPECIFIED = 0;
-     */
+    /** PATH_TRANSLATION_UNSPECIFIED = 0; */
     public static final int PATH_TRANSLATION_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * Use the backend address as-is, with no modification to the path. If the
      * URL pattern contains variables, the variable names and values will be
@@ -214,6 +257,8 @@ public enum PathTranslation
      */
     public static final int CONSTANT_ADDRESS_VALUE = 1;
     /**
+     *
+     *
      * 
      * The request path will be appended to the backend address.
      * # Examples
@@ -234,55 +279,63 @@ public enum PathTranslation
      */
     public static final int APPEND_PATH_TO_ADDRESS_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
-        throw new IllegalArgumentException(
+        throw new java.lang.IllegalArgumentException(
             "Can't get the number of an unknown enum value.");
       }
       return value;
     }
 
     /**
+     * @param value The numeric wire value of the corresponding enum entry.
+     * @return The enum associated with the given numeric wire value.
      * @deprecated Use {@link #forNumber(int)} instead.
      */
-    @Deprecated
+    @java.lang.Deprecated
     public static PathTranslation valueOf(int value) {
       return forNumber(value);
     }
 
+    /**
+     * @param value The numeric wire value of the corresponding enum entry.
+     * @return The enum associated with the given numeric wire value.
+     */
     public static PathTranslation forNumber(int value) {
       switch (value) {
-        case 0: return PATH_TRANSLATION_UNSPECIFIED;
-        case 1: return CONSTANT_ADDRESS;
-        case 2: return APPEND_PATH_TO_ADDRESS;
-        default: return null;
+        case 0:
+          return PATH_TRANSLATION_UNSPECIFIED;
+        case 1:
+          return CONSTANT_ADDRESS;
+        case 2:
+          return APPEND_PATH_TO_ADDRESS;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        PathTranslation> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public PathTranslation findValueByNumber(int number) {
-              return PathTranslation.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap
+        internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public PathTranslation findValueByNumber(int number) {
+                return PathTranslation.forNumber(number);
+              }
+            };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return BackendRule.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.api.BackendRule.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final PathTranslation[] VALUES = values();
@@ -290,8 +343,7 @@ public PathTranslation findValueByNumber(int number) {
     public static PathTranslation valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -309,78 +361,94 @@ private PathTranslation(int value) {
   }
 
   private int authenticationCase_ = 0;
-  private Object authentication_;
+  private java.lang.Object authentication_;
+
   public enum AuthenticationCase
-      implements com.google.protobuf.Internal.EnumLite {
+      implements
+          com.google.protobuf.Internal.EnumLite,
+          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     JWT_AUDIENCE(7),
+    DISABLE_AUTH(8),
     AUTHENTICATION_NOT_SET(0);
     private final int value;
+
     private AuthenticationCase(int value) {
       this.value = value;
     }
     /**
+     * @param value The number of the enum to look for.
+     * @return The enum associated with the given number.
      * @deprecated Use {@link #forNumber(int)} instead.
      */
-    @Deprecated
+    @java.lang.Deprecated
     public static AuthenticationCase valueOf(int value) {
       return forNumber(value);
     }
 
     public static AuthenticationCase forNumber(int value) {
       switch (value) {
-        case 7: return JWT_AUDIENCE;
-        case 0: return AUTHENTICATION_NOT_SET;
-        default: return null;
+        case 7:
+          return JWT_AUDIENCE;
+        case 8:
+          return DISABLE_AUTH;
+        case 0:
+          return AUTHENTICATION_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public AuthenticationCase
-  getAuthenticationCase() {
-    return AuthenticationCase.forNumber(
-        authenticationCase_);
+  public AuthenticationCase getAuthenticationCase() {
+    return AuthenticationCase.forNumber(authenticationCase_);
   }
 
   public static final int SELECTOR_FIELD_NUMBER = 1;
-  private volatile Object selector_;
+  private volatile java.lang.Object selector_;
   /**
+   *
+   *
    * 
    * Selects the methods to which this rule applies.
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
    * 
* * string selector = 1; + * + * @return The selector. */ - public String getSelector() { - Object ref = selector_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getSelector() { + java.lang.Object ref = selector_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); selector_ = s; return s; } } /** + * + * *
    * Selects the methods to which this rule applies.
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
    * 
* * string selector = 1; + * + * @return The bytes for selector. */ - public com.google.protobuf.ByteString - getSelectorBytes() { - Object ref = selector_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getSelectorBytes() { + java.lang.Object ref = selector_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); selector_ = b; return b; } else { @@ -389,40 +457,73 @@ public String getSelector() { } public static final int ADDRESS_FIELD_NUMBER = 2; - private volatile Object address_; + private volatile java.lang.Object address_; /** + * + * *
    * The address of the API backend.
+   * The scheme is used to determine the backend protocol and security.
+   * The following schemes are accepted:
+   *    SCHEME        PROTOCOL    SECURITY
+   *    http://       HTTP        None
+   *    https://      HTTP        TLS
+   *    grpc://       gRPC        None
+   *    grpcs://      gRPC        TLS
+   * It is recommended to explicitly include a scheme. Leaving out the scheme
+   * may cause constrasting behaviors across platforms.
+   * If the port is unspecified, the default is:
+   * - 80 for schemes without TLS
+   * - 443 for schemes with TLS
+   * For HTTP backends, use [protocol][google.api.BackendRule.protocol]
+   * to specify the protocol version.
    * 
* * string address = 2; + * + * @return The address. */ - public String getAddress() { - Object ref = address_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } } /** + * + * *
    * The address of the API backend.
+   * The scheme is used to determine the backend protocol and security.
+   * The following schemes are accepted:
+   *    SCHEME        PROTOCOL    SECURITY
+   *    http://       HTTP        None
+   *    https://      HTTP        TLS
+   *    grpc://       gRPC        None
+   *    grpcs://      gRPC        TLS
+   * It is recommended to explicitly include a scheme. Leaving out the scheme
+   * may cause constrasting behaviors across platforms.
+   * If the port is unspecified, the default is:
+   * - 80 for schemes without TLS
+   * - 443 for schemes with TLS
+   * For HTTP backends, use [protocol][google.api.BackendRule.protocol]
+   * to specify the protocol version.
    * 
* * string address = 2; + * + * @return The bytes for address. */ - public com.google.protobuf.ByteString - getAddressBytes() { - Object ref = address_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); address_ = b; return b; } else { @@ -433,12 +534,16 @@ public String getAddress() { public static final int DEADLINE_FIELD_NUMBER = 3; private double deadline_; /** + * + * *
-   * The number of seconds to wait for a response from a request.  The default
-   * deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds.
+   * The number of seconds to wait for a response from a request. The default
+   * varies based on the request protocol and deployment environment.
    * 
* * double deadline = 3; + * + * @return The deadline. */ public double getDeadline() { return deadline_; @@ -447,12 +552,16 @@ public double getDeadline() { public static final int MIN_DEADLINE_FIELD_NUMBER = 4; private double minDeadline_; /** + * + * *
    * Minimum deadline in seconds needed for this method. Calls having deadline
    * value lower than this will be rejected.
    * 
* * double min_deadline = 4; + * + * @return The minDeadline. */ public double getMinDeadline() { return minDeadline_; @@ -461,12 +570,16 @@ public double getMinDeadline() { public static final int OPERATION_DEADLINE_FIELD_NUMBER = 5; private double operationDeadline_; /** + * + * *
    * The number of seconds to wait for the completion of a long running
    * operation. The default is no deadline.
    * 
* * double operation_deadline = 5; + * + * @return The operationDeadline. */ public double getOperationDeadline() { return operationDeadline_; @@ -476,38 +589,48 @@ public double getOperationDeadline() { private int pathTranslation_; /** * .google.api.BackendRule.PathTranslation path_translation = 6; + * + * @return The enum numeric value on the wire for pathTranslation. */ public int getPathTranslationValue() { return pathTranslation_; } /** * .google.api.BackendRule.PathTranslation path_translation = 6; + * + * @return The pathTranslation. */ - public PathTranslation getPathTranslation() { + public com.google.api.BackendRule.PathTranslation getPathTranslation() { @SuppressWarnings("deprecation") - PathTranslation result = PathTranslation.valueOf(pathTranslation_); - return result == null ? PathTranslation.UNRECOGNIZED : result; + com.google.api.BackendRule.PathTranslation result = + com.google.api.BackendRule.PathTranslation.valueOf(pathTranslation_); + return result == null ? com.google.api.BackendRule.PathTranslation.UNRECOGNIZED : result; } public static final int JWT_AUDIENCE_FIELD_NUMBER = 7; /** + * + * *
-   * The JWT audience is used when generating a JWT id token for the backend.
+   * The JWT audience is used when generating a JWT ID token for the backend.
+   * This ID token will be added in the HTTP "authorization" header, and sent
+   * to the backend.
    * 
* * string jwt_audience = 7; + * + * @return The jwtAudience. */ - public String getJwtAudience() { - Object ref = ""; + public java.lang.String getJwtAudience() { + java.lang.Object ref = ""; if (authenticationCase_ == 7) { ref = authentication_; } - if (ref instanceof String) { - return (String) ref; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); if (authenticationCase_ == 7) { authentication_ = s; } @@ -515,22 +638,26 @@ public String getJwtAudience() { } } /** + * + * *
-   * The JWT audience is used when generating a JWT id token for the backend.
+   * The JWT audience is used when generating a JWT ID token for the backend.
+   * This ID token will be added in the HTTP "authorization" header, and sent
+   * to the backend.
    * 
* * string jwt_audience = 7; + * + * @return The bytes for jwtAudience. */ - public com.google.protobuf.ByteString - getJwtAudienceBytes() { - Object ref = ""; + public com.google.protobuf.ByteString getJwtAudienceBytes() { + java.lang.Object ref = ""; if (authenticationCase_ == 7) { ref = authentication_; } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (authenticationCase_ == 7) { authentication_ = b; } @@ -540,8 +667,108 @@ public String getJwtAudience() { } } + public static final int DISABLE_AUTH_FIELD_NUMBER = 8; + /** + * + * + *
+   * When disable_auth is true, a JWT ID token won't be generated and the
+   * original "Authorization" HTTP header will be preserved. If the header is
+   * used to carry the original token and is expected by the backend, this
+   * field must be set to true to preserve the header.
+   * 
+ * + * bool disable_auth = 8; + * + * @return The disableAuth. + */ + public boolean getDisableAuth() { + if (authenticationCase_ == 8) { + return (java.lang.Boolean) authentication_; + } + return false; + } + + public static final int PROTOCOL_FIELD_NUMBER = 9; + private volatile java.lang.Object protocol_; + /** + * + * + *
+   * The protocol used for sending a request to the backend.
+   * The supported values are "http/1.1" and "h2".
+   * The default value is inferred from the scheme in the
+   * [address][google.api.BackendRule.address] field:
+   *    SCHEME        PROTOCOL
+   *    http://       http/1.1
+   *    https://      http/1.1
+   *    grpc://       h2
+   *    grpcs://      h2
+   * For secure HTTP backends (https://) that support HTTP/2, set this field
+   * to "h2" for improved performance.
+   * Configuring this field to non-default values is only supported for secure
+   * HTTP backends. This field will be ignored for all other backends.
+   * See
+   * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
+   * for more details on the supported values.
+   * 
+ * + * string protocol = 9; + * + * @return The protocol. + */ + public java.lang.String getProtocol() { + java.lang.Object ref = protocol_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + protocol_ = s; + return s; + } + } + /** + * + * + *
+   * The protocol used for sending a request to the backend.
+   * The supported values are "http/1.1" and "h2".
+   * The default value is inferred from the scheme in the
+   * [address][google.api.BackendRule.address] field:
+   *    SCHEME        PROTOCOL
+   *    http://       http/1.1
+   *    https://      http/1.1
+   *    grpc://       h2
+   *    grpcs://      h2
+   * For secure HTTP backends (https://) that support HTTP/2, set this field
+   * to "h2" for improved performance.
+   * Configuring this field to non-default values is only supported for secure
+   * HTTP backends. This field will be ignored for all other backends.
+   * See
+   * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
+   * for more details on the supported values.
+   * 
+ * + * string protocol = 9; + * + * @return The bytes for protocol. + */ + public com.google.protobuf.ByteString getProtocolBytes() { + java.lang.Object ref = protocol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + protocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -551,9 +778,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSelectorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selector_); } @@ -569,16 +795,23 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (operationDeadline_ != 0D) { output.writeDouble(5, operationDeadline_); } - if (pathTranslation_ != PathTranslation.PATH_TRANSLATION_UNSPECIFIED.getNumber()) { + if (pathTranslation_ + != com.google.api.BackendRule.PathTranslation.PATH_TRANSLATION_UNSPECIFIED.getNumber()) { output.writeEnum(6, pathTranslation_); } if (authenticationCase_ == 7) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, authentication_); } + if (authenticationCase_ == 8) { + output.writeBool(8, (boolean) ((java.lang.Boolean) authentication_)); + } + if (!getProtocolBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, protocol_); + } unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -591,58 +824,61 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, address_); } if (deadline_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, deadline_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, deadline_); } if (minDeadline_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(4, minDeadline_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, minDeadline_); } if (operationDeadline_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(5, operationDeadline_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, operationDeadline_); } - if (pathTranslation_ != PathTranslation.PATH_TRANSLATION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, pathTranslation_); + if (pathTranslation_ + != com.google.api.BackendRule.PathTranslation.PATH_TRANSLATION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, pathTranslation_); } if (authenticationCase_ == 7) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, authentication_); } + if (authenticationCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 8, (boolean) ((java.lang.Boolean) authentication_)); + } + if (!getProtocolBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, protocol_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof BackendRule)) { + if (!(obj instanceof com.google.api.BackendRule)) { return super.equals(obj); } - BackendRule other = (BackendRule) obj; - - if (!getSelector() - .equals(other.getSelector())) return false; - if (!getAddress() - .equals(other.getAddress())) return false; - if (Double.doubleToLongBits(getDeadline()) - != Double.doubleToLongBits( - other.getDeadline())) return false; - if (Double.doubleToLongBits(getMinDeadline()) - != Double.doubleToLongBits( - other.getMinDeadline())) return false; - if (Double.doubleToLongBits(getOperationDeadline()) - != Double.doubleToLongBits( - other.getOperationDeadline())) return false; + com.google.api.BackendRule other = (com.google.api.BackendRule) obj; + + if (!getSelector().equals(other.getSelector())) return false; + if (!getAddress().equals(other.getAddress())) return false; + if (java.lang.Double.doubleToLongBits(getDeadline()) + != java.lang.Double.doubleToLongBits(other.getDeadline())) return false; + if (java.lang.Double.doubleToLongBits(getMinDeadline()) + != java.lang.Double.doubleToLongBits(other.getMinDeadline())) return false; + if (java.lang.Double.doubleToLongBits(getOperationDeadline()) + != java.lang.Double.doubleToLongBits(other.getOperationDeadline())) return false; if (pathTranslation_ != other.pathTranslation_) return false; + if (!getProtocol().equals(other.getProtocol())) return false; if (!getAuthenticationCase().equals(other.getAuthenticationCase())) return false; switch (authenticationCase_) { case 7: - if (!getJwtAudience() - .equals(other.getJwtAudience())) return false; + if (!getJwtAudience().equals(other.getJwtAudience())) return false; + break; + case 8: + if (getDisableAuth() != other.getDisableAuth()) return false; break; case 0: default: @@ -651,7 +887,7 @@ public boolean equals(final Object obj) { return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -663,21 +899,33 @@ public int hashCode() { hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); hash = (37 * hash) + DEADLINE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - Double.doubleToLongBits(getDeadline())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDeadline())); hash = (37 * hash) + MIN_DEADLINE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - Double.doubleToLongBits(getMinDeadline())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMinDeadline())); hash = (37 * hash) + OPERATION_DEADLINE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - Double.doubleToLongBits(getOperationDeadline())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getOperationDeadline())); hash = (37 * hash) + PATH_TRANSLATION_FIELD_NUMBER; hash = (53 * hash) + pathTranslation_; + hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; + hash = (53 * hash) + getProtocol().hashCode(); switch (authenticationCase_) { case 7: hash = (37 * hash) + JWT_AUDIENCE_FIELD_NUMBER; hash = (53 * hash) + getJwtAudience().hashCode(); break; + case 8: + hash = (37 * hash) + DISABLE_AUTH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableAuth()); + break; case 0: default: } @@ -686,118 +934,123 @@ public int hashCode() { return hash; } - public static BackendRule parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.BackendRule parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static BackendRule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.BackendRule parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static BackendRule parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.api.BackendRule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static BackendRule parseFrom( + + public static com.google.api.BackendRule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static BackendRule parseFrom(byte[] data) + + public static com.google.api.BackendRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static BackendRule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.BackendRule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static BackendRule parseFrom(java.io.InputStream input) + + public static com.google.api.BackendRule 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 BackendRule parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.BackendRule parseFrom( + 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 BackendRule parseDelimitedFrom(java.io.InputStream input) + + public static com.google.api.BackendRule 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 BackendRule parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.BackendRule parseDelimitedFrom( + 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 BackendRule parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.api.BackendRule 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 BackendRule parseFrom( + + public static com.google.api.BackendRule 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(BackendRule prototype) { + + public static Builder newBuilder(com.google.api.BackendRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A backend rule provides configuration for an individual API element.
    * 
* * Protobuf type {@code google.api.BackendRule} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.api.BackendRule) com.google.api.BackendRuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.BackendProto.internal_static_google_api_BackendRule_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.BackendProto.internal_static_google_api_BackendRule_fieldAccessorTable .ensureFieldAccessorsInitialized( - BackendRule.class, Builder.class); + com.google.api.BackendRule.class, com.google.api.BackendRule.Builder.class); } // Construct using com.google.api.BackendRule.newBuilder() @@ -805,17 +1058,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @Override + + @java.lang.Override public Builder clear() { super.clear(); selector_ = ""; @@ -830,34 +1082,35 @@ public Builder clear() { pathTranslation_ = 0; + protocol_ = ""; + authenticationCase_ = 0; authentication_ = null; return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.api.BackendProto.internal_static_google_api_BackendRule_descriptor; } - @Override - public BackendRule getDefaultInstanceForType() { - return BackendRule.getDefaultInstance(); + @java.lang.Override + public com.google.api.BackendRule getDefaultInstanceForType() { + return com.google.api.BackendRule.getDefaultInstance(); } - @Override - public BackendRule build() { - BackendRule result = buildPartial(); + @java.lang.Override + public com.google.api.BackendRule build() { + com.google.api.BackendRule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public BackendRule buildPartial() { - BackendRule result = new BackendRule(this); + @java.lang.Override + public com.google.api.BackendRule buildPartial() { + com.google.api.BackendRule result = new com.google.api.BackendRule(this); result.selector_ = selector_; result.address_ = address_; result.deadline_ = deadline_; @@ -867,55 +1120,60 @@ public BackendRule buildPartial() { if (authenticationCase_ == 7) { result.authentication_ = authentication_; } + if (authenticationCase_ == 8) { + result.authentication_ = authentication_; + } + result.protocol_ = protocol_; result.authenticationCase_ = authenticationCase_; onBuilt(); return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof BackendRule) { - return mergeFrom((BackendRule)other); + if (other instanceof com.google.api.BackendRule) { + return mergeFrom((com.google.api.BackendRule) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(BackendRule other) { - if (other == BackendRule.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.api.BackendRule other) { + if (other == com.google.api.BackendRule.getDefaultInstance()) return this; if (!other.getSelector().isEmpty()) { selector_ = other.selector_; onChanged(); @@ -936,37 +1194,48 @@ public Builder mergeFrom(BackendRule other) { if (other.pathTranslation_ != 0) { setPathTranslationValue(other.getPathTranslationValue()); } + if (!other.getProtocol().isEmpty()) { + protocol_ = other.protocol_; + onChanged(); + } switch (other.getAuthenticationCase()) { - case JWT_AUDIENCE: { - authenticationCase_ = 7; - authentication_ = other.authentication_; - onChanged(); - break; - } - case AUTHENTICATION_NOT_SET: { - break; - } + case JWT_AUDIENCE: + { + authenticationCase_ = 7; + authentication_ = other.authentication_; + onChanged(); + break; + } + case DISABLE_AUTH: + { + setDisableAuth(other.getDisableAuth()); + break; + } + case AUTHENTICATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - BackendRule parsedMessage = null; + com.google.api.BackendRule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (BackendRule) e.getUnfinishedMessage(); + parsedMessage = (com.google.api.BackendRule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -975,12 +1244,12 @@ public Builder mergeFrom( } return this; } + private int authenticationCase_ = 0; - private Object authentication_; - public AuthenticationCase - getAuthenticationCase() { - return AuthenticationCase.forNumber( - authenticationCase_); + private java.lang.Object authentication_; + + public AuthenticationCase getAuthenticationCase() { + return AuthenticationCase.forNumber(authenticationCase_); } public Builder clearAuthentication() { @@ -990,43 +1259,47 @@ public Builder clearAuthentication() { return this; } - - private Object selector_ = ""; + private java.lang.Object selector_ = ""; /** + * + * *
      * Selects the methods to which this rule applies.
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
      * 
* * string selector = 1; + * + * @return The selector. */ - public String getSelector() { - Object ref = selector_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getSelector() { + java.lang.Object ref = selector_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); selector_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Selects the methods to which this rule applies.
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
      * 
* * string selector = 1; + * + * @return The bytes for selector. */ - public com.google.protobuf.ByteString - getSelectorBytes() { - Object ref = selector_; + public com.google.protobuf.ByteString getSelectorBytes() { + java.lang.Object ref = selector_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); selector_ = b; return b; } else { @@ -1034,91 +1307,136 @@ public String getSelector() { } } /** + * + * *
      * Selects the methods to which this rule applies.
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
      * 
* * string selector = 1; + * + * @param value The selector to set. + * @return This builder for chaining. */ - public Builder setSelector( - String value) { + public Builder setSelector(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + selector_ = value; onChanged(); return this; } /** + * + * *
      * Selects the methods to which this rule applies.
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
      * 
* * string selector = 1; + * + * @return This builder for chaining. */ public Builder clearSelector() { - + selector_ = getDefaultInstance().getSelector(); onChanged(); return this; } /** + * + * *
      * Selects the methods to which this rule applies.
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
      * 
* * string selector = 1; + * + * @param value The bytes for selector to set. + * @return This builder for chaining. */ - public Builder setSelectorBytes( - com.google.protobuf.ByteString value) { + public Builder setSelectorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + selector_ = value; onChanged(); return this; } - private Object address_ = ""; + private java.lang.Object address_ = ""; /** + * + * *
      * The address of the API backend.
+     * The scheme is used to determine the backend protocol and security.
+     * The following schemes are accepted:
+     *    SCHEME        PROTOCOL    SECURITY
+     *    http://       HTTP        None
+     *    https://      HTTP        TLS
+     *    grpc://       gRPC        None
+     *    grpcs://      gRPC        TLS
+     * It is recommended to explicitly include a scheme. Leaving out the scheme
+     * may cause constrasting behaviors across platforms.
+     * If the port is unspecified, the default is:
+     * - 80 for schemes without TLS
+     * - 443 for schemes with TLS
+     * For HTTP backends, use [protocol][google.api.BackendRule.protocol]
+     * to specify the protocol version.
      * 
* * string address = 2; + * + * @return The address. */ - public String getAddress() { - Object ref = address_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The address of the API backend.
+     * The scheme is used to determine the backend protocol and security.
+     * The following schemes are accepted:
+     *    SCHEME        PROTOCOL    SECURITY
+     *    http://       HTTP        None
+     *    https://      HTTP        TLS
+     *    grpc://       gRPC        None
+     *    grpcs://      gRPC        TLS
+     * It is recommended to explicitly include a scheme. Leaving out the scheme
+     * may cause constrasting behaviors across platforms.
+     * If the port is unspecified, the default is:
+     * - 80 for schemes without TLS
+     * - 443 for schemes with TLS
+     * For HTTP backends, use [protocol][google.api.BackendRule.protocol]
+     * to specify the protocol version.
      * 
* * string address = 2; + * + * @return The bytes for address. */ - public com.google.protobuf.ByteString - getAddressBytes() { - Object ref = address_; + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); address_ = b; return b; } else { @@ -1126,172 +1444,265 @@ public String getAddress() { } } /** + * + * *
      * The address of the API backend.
+     * The scheme is used to determine the backend protocol and security.
+     * The following schemes are accepted:
+     *    SCHEME        PROTOCOL    SECURITY
+     *    http://       HTTP        None
+     *    https://      HTTP        TLS
+     *    grpc://       gRPC        None
+     *    grpcs://      gRPC        TLS
+     * It is recommended to explicitly include a scheme. Leaving out the scheme
+     * may cause constrasting behaviors across platforms.
+     * If the port is unspecified, the default is:
+     * - 80 for schemes without TLS
+     * - 443 for schemes with TLS
+     * For HTTP backends, use [protocol][google.api.BackendRule.protocol]
+     * to specify the protocol version.
      * 
* * string address = 2; + * + * @param value The address to set. + * @return This builder for chaining. */ - public Builder setAddress( - String value) { + public Builder setAddress(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + address_ = value; onChanged(); return this; } /** + * + * *
      * The address of the API backend.
+     * The scheme is used to determine the backend protocol and security.
+     * The following schemes are accepted:
+     *    SCHEME        PROTOCOL    SECURITY
+     *    http://       HTTP        None
+     *    https://      HTTP        TLS
+     *    grpc://       gRPC        None
+     *    grpcs://      gRPC        TLS
+     * It is recommended to explicitly include a scheme. Leaving out the scheme
+     * may cause constrasting behaviors across platforms.
+     * If the port is unspecified, the default is:
+     * - 80 for schemes without TLS
+     * - 443 for schemes with TLS
+     * For HTTP backends, use [protocol][google.api.BackendRule.protocol]
+     * to specify the protocol version.
      * 
* * string address = 2; + * + * @return This builder for chaining. */ public Builder clearAddress() { - + address_ = getDefaultInstance().getAddress(); onChanged(); return this; } /** + * + * *
      * The address of the API backend.
+     * The scheme is used to determine the backend protocol and security.
+     * The following schemes are accepted:
+     *    SCHEME        PROTOCOL    SECURITY
+     *    http://       HTTP        None
+     *    https://      HTTP        TLS
+     *    grpc://       gRPC        None
+     *    grpcs://      gRPC        TLS
+     * It is recommended to explicitly include a scheme. Leaving out the scheme
+     * may cause constrasting behaviors across platforms.
+     * If the port is unspecified, the default is:
+     * - 80 for schemes without TLS
+     * - 443 for schemes with TLS
+     * For HTTP backends, use [protocol][google.api.BackendRule.protocol]
+     * to specify the protocol version.
      * 
* * string address = 2; + * + * @param value The bytes for address to set. + * @return This builder for chaining. */ - public Builder setAddressBytes( - com.google.protobuf.ByteString value) { + public Builder setAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + address_ = value; onChanged(); return this; } - private double deadline_ ; + private double deadline_; /** + * + * *
-     * The number of seconds to wait for a response from a request.  The default
-     * deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds.
+     * The number of seconds to wait for a response from a request. The default
+     * varies based on the request protocol and deployment environment.
      * 
* * double deadline = 3; + * + * @return The deadline. */ public double getDeadline() { return deadline_; } /** + * + * *
-     * The number of seconds to wait for a response from a request.  The default
-     * deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds.
+     * The number of seconds to wait for a response from a request. The default
+     * varies based on the request protocol and deployment environment.
      * 
* * double deadline = 3; + * + * @param value The deadline to set. + * @return This builder for chaining. */ public Builder setDeadline(double value) { - + deadline_ = value; onChanged(); return this; } /** + * + * *
-     * The number of seconds to wait for a response from a request.  The default
-     * deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds.
+     * The number of seconds to wait for a response from a request. The default
+     * varies based on the request protocol and deployment environment.
      * 
* * double deadline = 3; + * + * @return This builder for chaining. */ public Builder clearDeadline() { - + deadline_ = 0D; onChanged(); return this; } - private double minDeadline_ ; + private double minDeadline_; /** + * + * *
      * Minimum deadline in seconds needed for this method. Calls having deadline
      * value lower than this will be rejected.
      * 
* * double min_deadline = 4; + * + * @return The minDeadline. */ public double getMinDeadline() { return minDeadline_; } /** + * + * *
      * Minimum deadline in seconds needed for this method. Calls having deadline
      * value lower than this will be rejected.
      * 
* * double min_deadline = 4; + * + * @param value The minDeadline to set. + * @return This builder for chaining. */ public Builder setMinDeadline(double value) { - + minDeadline_ = value; onChanged(); return this; } /** + * + * *
      * Minimum deadline in seconds needed for this method. Calls having deadline
      * value lower than this will be rejected.
      * 
* * double min_deadline = 4; + * + * @return This builder for chaining. */ public Builder clearMinDeadline() { - + minDeadline_ = 0D; onChanged(); return this; } - private double operationDeadline_ ; + private double operationDeadline_; /** + * + * *
      * The number of seconds to wait for the completion of a long running
      * operation. The default is no deadline.
      * 
* * double operation_deadline = 5; + * + * @return The operationDeadline. */ public double getOperationDeadline() { return operationDeadline_; } /** + * + * *
      * The number of seconds to wait for the completion of a long running
      * operation. The default is no deadline.
      * 
* * double operation_deadline = 5; + * + * @param value The operationDeadline to set. + * @return This builder for chaining. */ public Builder setOperationDeadline(double value) { - + operationDeadline_ = value; onChanged(); return this; } /** + * + * *
      * The number of seconds to wait for the completion of a long running
      * operation. The default is no deadline.
      * 
* * double operation_deadline = 5; + * + * @return This builder for chaining. */ public Builder clearOperationDeadline() { - + operationDeadline_ = 0D; onChanged(); return this; @@ -1300,12 +1711,17 @@ public Builder clearOperationDeadline() { private int pathTranslation_ = 0; /** * .google.api.BackendRule.PathTranslation path_translation = 6; + * + * @return The enum numeric value on the wire for pathTranslation. */ public int getPathTranslationValue() { return pathTranslation_; } /** * .google.api.BackendRule.PathTranslation path_translation = 6; + * + * @param value The enum numeric value on the wire for pathTranslation to set. + * @return This builder for chaining. */ public Builder setPathTranslationValue(int value) { pathTranslation_ = value; @@ -1314,75 +1730,92 @@ public Builder setPathTranslationValue(int value) { } /** * .google.api.BackendRule.PathTranslation path_translation = 6; + * + * @return The pathTranslation. */ - public PathTranslation getPathTranslation() { + public com.google.api.BackendRule.PathTranslation getPathTranslation() { @SuppressWarnings("deprecation") - PathTranslation result = PathTranslation.valueOf(pathTranslation_); - return result == null ? PathTranslation.UNRECOGNIZED : result; + com.google.api.BackendRule.PathTranslation result = + com.google.api.BackendRule.PathTranslation.valueOf(pathTranslation_); + return result == null ? com.google.api.BackendRule.PathTranslation.UNRECOGNIZED : result; } /** * .google.api.BackendRule.PathTranslation path_translation = 6; + * + * @param value The pathTranslation to set. + * @return This builder for chaining. */ - public Builder setPathTranslation(PathTranslation value) { + public Builder setPathTranslation(com.google.api.BackendRule.PathTranslation value) { if (value == null) { throw new NullPointerException(); } - + pathTranslation_ = value.getNumber(); onChanged(); return this; } /** * .google.api.BackendRule.PathTranslation path_translation = 6; + * + * @return This builder for chaining. */ public Builder clearPathTranslation() { - + pathTranslation_ = 0; onChanged(); return this; } /** + * + * *
-     * The JWT audience is used when generating a JWT id token for the backend.
+     * The JWT audience is used when generating a JWT ID token for the backend.
+     * This ID token will be added in the HTTP "authorization" header, and sent
+     * to the backend.
      * 
* * string jwt_audience = 7; + * + * @return The jwtAudience. */ - public String getJwtAudience() { - Object ref = ""; + public java.lang.String getJwtAudience() { + java.lang.Object ref = ""; if (authenticationCase_ == 7) { ref = authentication_; } - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); if (authenticationCase_ == 7) { authentication_ = s; } return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
-     * The JWT audience is used when generating a JWT id token for the backend.
+     * The JWT audience is used when generating a JWT ID token for the backend.
+     * This ID token will be added in the HTTP "authorization" header, and sent
+     * to the backend.
      * 
* * string jwt_audience = 7; + * + * @return The bytes for jwtAudience. */ - public com.google.protobuf.ByteString - getJwtAudienceBytes() { - Object ref = ""; + public com.google.protobuf.ByteString getJwtAudienceBytes() { + java.lang.Object ref = ""; if (authenticationCase_ == 7) { ref = authentication_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (authenticationCase_ == 7) { authentication_ = b; } @@ -1392,28 +1825,40 @@ public String getJwtAudience() { } } /** + * + * *
-     * The JWT audience is used when generating a JWT id token for the backend.
+     * The JWT audience is used when generating a JWT ID token for the backend.
+     * This ID token will be added in the HTTP "authorization" header, and sent
+     * to the backend.
      * 
* * string jwt_audience = 7; + * + * @param value The jwtAudience to set. + * @return This builder for chaining. */ - public Builder setJwtAudience( - String value) { + public Builder setJwtAudience(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - authenticationCase_ = 7; + throw new NullPointerException(); + } + authenticationCase_ = 7; authentication_ = value; onChanged(); return this; } /** + * + * *
-     * The JWT audience is used when generating a JWT id token for the backend.
+     * The JWT audience is used when generating a JWT ID token for the backend.
+     * This ID token will be added in the HTTP "authorization" header, and sent
+     * to the backend.
      * 
* * string jwt_audience = 7; + * + * @return This builder for chaining. */ public Builder clearJwtAudience() { if (authenticationCase_ == 7) { @@ -1424,73 +1869,322 @@ public Builder clearJwtAudience() { return this; } /** + * + * *
-     * The JWT audience is used when generating a JWT id token for the backend.
+     * The JWT audience is used when generating a JWT ID token for the backend.
+     * This ID token will be added in the HTTP "authorization" header, and sent
+     * to the backend.
      * 
* * string jwt_audience = 7; + * + * @param value The bytes for jwtAudience to set. + * @return This builder for chaining. */ - public Builder setJwtAudienceBytes( - com.google.protobuf.ByteString value) { + public Builder setJwtAudienceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); authenticationCase_ = 7; authentication_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + /** + * + * + *
+     * When disable_auth is true, a JWT ID token won't be generated and the
+     * original "Authorization" HTTP header will be preserved. If the header is
+     * used to carry the original token and is expected by the backend, this
+     * field must be set to true to preserve the header.
+     * 
+ * + * bool disable_auth = 8; + * + * @return The disableAuth. + */ + public boolean getDisableAuth() { + if (authenticationCase_ == 8) { + return (java.lang.Boolean) authentication_; + } + return false; + } + /** + * + * + *
+     * When disable_auth is true, a JWT ID token won't be generated and the
+     * original "Authorization" HTTP header will be preserved. If the header is
+     * used to carry the original token and is expected by the backend, this
+     * field must be set to true to preserve the header.
+     * 
+ * + * bool disable_auth = 8; + * + * @param value The disableAuth to set. + * @return This builder for chaining. + */ + public Builder setDisableAuth(boolean value) { + authenticationCase_ = 8; + authentication_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * When disable_auth is true, a JWT ID token won't be generated and the
+     * original "Authorization" HTTP header will be preserved. If the header is
+     * used to carry the original token and is expected by the backend, this
+     * field must be set to true to preserve the header.
+     * 
+ * + * bool disable_auth = 8; + * + * @return This builder for chaining. + */ + public Builder clearDisableAuth() { + if (authenticationCase_ == 8) { + authenticationCase_ = 0; + authentication_ = null; + onChanged(); + } + return this; + } + + private java.lang.Object protocol_ = ""; + /** + * + * + *
+     * The protocol used for sending a request to the backend.
+     * The supported values are "http/1.1" and "h2".
+     * The default value is inferred from the scheme in the
+     * [address][google.api.BackendRule.address] field:
+     *    SCHEME        PROTOCOL
+     *    http://       http/1.1
+     *    https://      http/1.1
+     *    grpc://       h2
+     *    grpcs://      h2
+     * For secure HTTP backends (https://) that support HTTP/2, set this field
+     * to "h2" for improved performance.
+     * Configuring this field to non-default values is only supported for secure
+     * HTTP backends. This field will be ignored for all other backends.
+     * See
+     * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
+     * for more details on the supported values.
+     * 
+ * + * string protocol = 9; + * + * @return The protocol. + */ + public java.lang.String getProtocol() { + java.lang.Object ref = protocol_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + protocol_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The protocol used for sending a request to the backend.
+     * The supported values are "http/1.1" and "h2".
+     * The default value is inferred from the scheme in the
+     * [address][google.api.BackendRule.address] field:
+     *    SCHEME        PROTOCOL
+     *    http://       http/1.1
+     *    https://      http/1.1
+     *    grpc://       h2
+     *    grpcs://      h2
+     * For secure HTTP backends (https://) that support HTTP/2, set this field
+     * to "h2" for improved performance.
+     * Configuring this field to non-default values is only supported for secure
+     * HTTP backends. This field will be ignored for all other backends.
+     * See
+     * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
+     * for more details on the supported values.
+     * 
+ * + * string protocol = 9; + * + * @return The bytes for protocol. + */ + public com.google.protobuf.ByteString getProtocolBytes() { + java.lang.Object ref = protocol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + protocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The protocol used for sending a request to the backend.
+     * The supported values are "http/1.1" and "h2".
+     * The default value is inferred from the scheme in the
+     * [address][google.api.BackendRule.address] field:
+     *    SCHEME        PROTOCOL
+     *    http://       http/1.1
+     *    https://      http/1.1
+     *    grpc://       h2
+     *    grpcs://      h2
+     * For secure HTTP backends (https://) that support HTTP/2, set this field
+     * to "h2" for improved performance.
+     * Configuring this field to non-default values is only supported for secure
+     * HTTP backends. This field will be ignored for all other backends.
+     * See
+     * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
+     * for more details on the supported values.
+     * 
+ * + * string protocol = 9; + * + * @param value The protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocol(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + protocol_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The protocol used for sending a request to the backend.
+     * The supported values are "http/1.1" and "h2".
+     * The default value is inferred from the scheme in the
+     * [address][google.api.BackendRule.address] field:
+     *    SCHEME        PROTOCOL
+     *    http://       http/1.1
+     *    https://      http/1.1
+     *    grpc://       h2
+     *    grpcs://      h2
+     * For secure HTTP backends (https://) that support HTTP/2, set this field
+     * to "h2" for improved performance.
+     * Configuring this field to non-default values is only supported for secure
+     * HTTP backends. This field will be ignored for all other backends.
+     * See
+     * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
+     * for more details on the supported values.
+     * 
+ * + * string protocol = 9; + * + * @return This builder for chaining. + */ + public Builder clearProtocol() { + + protocol_ = getDefaultInstance().getProtocol(); + onChanged(); + return this; + } + /** + * + * + *
+     * The protocol used for sending a request to the backend.
+     * The supported values are "http/1.1" and "h2".
+     * The default value is inferred from the scheme in the
+     * [address][google.api.BackendRule.address] field:
+     *    SCHEME        PROTOCOL
+     *    http://       http/1.1
+     *    https://      http/1.1
+     *    grpc://       h2
+     *    grpcs://      h2
+     * For secure HTTP backends (https://) that support HTTP/2, set this field
+     * to "h2" for improved performance.
+     * Configuring this field to non-default values is only supported for secure
+     * HTTP backends. This field will be ignored for all other backends.
+     * See
+     * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
+     * for more details on the supported values.
+     * 
+ * + * string protocol = 9; + * + * @param value The bytes for protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + protocol_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.BackendRule) } // @@protoc_insertion_point(class_scope:google.api.BackendRule) - private static final BackendRule DEFAULT_INSTANCE; + private static final com.google.api.BackendRule DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new BackendRule(); + DEFAULT_INSTANCE = new com.google.api.BackendRule(); } - public static BackendRule getDefaultInstance() { + public static com.google.api.BackendRule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public BackendRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BackendRule(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackendRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BackendRule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public BackendRule getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.BackendRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/BackendRuleOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/BackendRuleOrBuilder.java index 679c4188..f58d859c 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/BackendRuleOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/BackendRuleOrBuilder.java @@ -1,106 +1,262 @@ +/* + * 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/backend.proto package com.google.api; -public interface BackendRuleOrBuilder extends +public interface BackendRuleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.BackendRule) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Selects the methods to which this rule applies.
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
    * 
* * string selector = 1; + * + * @return The selector. */ - String getSelector(); + java.lang.String getSelector(); /** + * + * *
    * Selects the methods to which this rule applies.
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
    * 
* * string selector = 1; + * + * @return The bytes for selector. */ - com.google.protobuf.ByteString - getSelectorBytes(); + com.google.protobuf.ByteString getSelectorBytes(); /** + * + * *
    * The address of the API backend.
+   * The scheme is used to determine the backend protocol and security.
+   * The following schemes are accepted:
+   *    SCHEME        PROTOCOL    SECURITY
+   *    http://       HTTP        None
+   *    https://      HTTP        TLS
+   *    grpc://       gRPC        None
+   *    grpcs://      gRPC        TLS
+   * It is recommended to explicitly include a scheme. Leaving out the scheme
+   * may cause constrasting behaviors across platforms.
+   * If the port is unspecified, the default is:
+   * - 80 for schemes without TLS
+   * - 443 for schemes with TLS
+   * For HTTP backends, use [protocol][google.api.BackendRule.protocol]
+   * to specify the protocol version.
    * 
* * string address = 2; + * + * @return The address. */ - String getAddress(); + java.lang.String getAddress(); /** + * + * *
    * The address of the API backend.
+   * The scheme is used to determine the backend protocol and security.
+   * The following schemes are accepted:
+   *    SCHEME        PROTOCOL    SECURITY
+   *    http://       HTTP        None
+   *    https://      HTTP        TLS
+   *    grpc://       gRPC        None
+   *    grpcs://      gRPC        TLS
+   * It is recommended to explicitly include a scheme. Leaving out the scheme
+   * may cause constrasting behaviors across platforms.
+   * If the port is unspecified, the default is:
+   * - 80 for schemes without TLS
+   * - 443 for schemes with TLS
+   * For HTTP backends, use [protocol][google.api.BackendRule.protocol]
+   * to specify the protocol version.
    * 
* * string address = 2; + * + * @return The bytes for address. */ - com.google.protobuf.ByteString - getAddressBytes(); + com.google.protobuf.ByteString getAddressBytes(); /** + * + * *
-   * The number of seconds to wait for a response from a request.  The default
-   * deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds.
+   * The number of seconds to wait for a response from a request. The default
+   * varies based on the request protocol and deployment environment.
    * 
* * double deadline = 3; + * + * @return The deadline. */ double getDeadline(); /** + * + * *
    * Minimum deadline in seconds needed for this method. Calls having deadline
    * value lower than this will be rejected.
    * 
* * double min_deadline = 4; + * + * @return The minDeadline. */ double getMinDeadline(); /** + * + * *
    * The number of seconds to wait for the completion of a long running
    * operation. The default is no deadline.
    * 
* * double operation_deadline = 5; + * + * @return The operationDeadline. */ double getOperationDeadline(); /** * .google.api.BackendRule.PathTranslation path_translation = 6; + * + * @return The enum numeric value on the wire for pathTranslation. */ int getPathTranslationValue(); /** * .google.api.BackendRule.PathTranslation path_translation = 6; + * + * @return The pathTranslation. */ - BackendRule.PathTranslation getPathTranslation(); + com.google.api.BackendRule.PathTranslation getPathTranslation(); /** + * + * *
-   * The JWT audience is used when generating a JWT id token for the backend.
+   * The JWT audience is used when generating a JWT ID token for the backend.
+   * This ID token will be added in the HTTP "authorization" header, and sent
+   * to the backend.
    * 
* * string jwt_audience = 7; + * + * @return The jwtAudience. */ - String getJwtAudience(); + java.lang.String getJwtAudience(); /** + * + * *
-   * The JWT audience is used when generating a JWT id token for the backend.
+   * The JWT audience is used when generating a JWT ID token for the backend.
+   * This ID token will be added in the HTTP "authorization" header, and sent
+   * to the backend.
    * 
* * string jwt_audience = 7; + * + * @return The bytes for jwtAudience. + */ + com.google.protobuf.ByteString getJwtAudienceBytes(); + + /** + * + * + *
+   * When disable_auth is true, a JWT ID token won't be generated and the
+   * original "Authorization" HTTP header will be preserved. If the header is
+   * used to carry the original token and is expected by the backend, this
+   * field must be set to true to preserve the header.
+   * 
+ * + * bool disable_auth = 8; + * + * @return The disableAuth. + */ + boolean getDisableAuth(); + + /** + * + * + *
+   * The protocol used for sending a request to the backend.
+   * The supported values are "http/1.1" and "h2".
+   * The default value is inferred from the scheme in the
+   * [address][google.api.BackendRule.address] field:
+   *    SCHEME        PROTOCOL
+   *    http://       http/1.1
+   *    https://      http/1.1
+   *    grpc://       h2
+   *    grpcs://      h2
+   * For secure HTTP backends (https://) that support HTTP/2, set this field
+   * to "h2" for improved performance.
+   * Configuring this field to non-default values is only supported for secure
+   * HTTP backends. This field will be ignored for all other backends.
+   * See
+   * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
+   * for more details on the supported values.
+   * 
+ * + * string protocol = 9; + * + * @return The protocol. + */ + java.lang.String getProtocol(); + /** + * + * + *
+   * The protocol used for sending a request to the backend.
+   * The supported values are "http/1.1" and "h2".
+   * The default value is inferred from the scheme in the
+   * [address][google.api.BackendRule.address] field:
+   *    SCHEME        PROTOCOL
+   *    http://       http/1.1
+   *    https://      http/1.1
+   *    grpc://       h2
+   *    grpcs://      h2
+   * For secure HTTP backends (https://) that support HTTP/2, set this field
+   * to "h2" for improved performance.
+   * Configuring this field to non-default values is only supported for secure
+   * HTTP backends. This field will be ignored for all other backends.
+   * See
+   * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
+   * for more details on the supported values.
+   * 
+ * + * string protocol = 9; + * + * @return The bytes for protocol. */ - com.google.protobuf.ByteString - getJwtAudienceBytes(); + com.google.protobuf.ByteString getProtocolBytes(); - public BackendRule.AuthenticationCase getAuthenticationCase(); + public com.google.api.BackendRule.AuthenticationCase getAuthenticationCase(); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/Billing.java b/proto-google-common-protos/src/main/java/com/google/api/Billing.java index e9921bd5..c6780988 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/Billing.java +++ b/proto-google-common-protos/src/main/java/com/google/api/Billing.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/billing.proto package com.google.api; /** + * + * *
  * Billing related configuration of the service.
  * The following example shows how to configure monitored resources and metrics
@@ -28,31 +45,38 @@
  *
  * Protobuf type {@code google.api.Billing}
  */
-public  final class Billing extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Billing extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.Billing)
     BillingOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Billing.newBuilder() to construct.
   private Billing(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Billing() {
     consumerDestinations_ = java.util.Collections.emptyList();
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new Billing();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Billing(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -65,29 +89,31 @@ private Billing(
           case 0:
             done = true;
             break;
-          case 66: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              consumerDestinations_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 66:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                consumerDestinations_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              consumerDestinations_.add(
+                  input.readMessage(
+                      com.google.api.Billing.BillingDestination.parser(), extensionRegistry));
+              break;
             }
-            consumerDestinations_.add(
-                input.readMessage(BillingDestination.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         consumerDestinations_ = java.util.Collections.unmodifiableList(consumerDestinations_);
@@ -96,83 +122,109 @@ private Billing(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.BillingProto.internal_static_google_api_Billing_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return com.google.api.BillingProto.internal_static_google_api_Billing_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            Billing.class, Builder.class);
+            com.google.api.Billing.class, com.google.api.Billing.Builder.class);
   }
 
-  public interface BillingDestinationOrBuilder extends
+  public interface BillingDestinationOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.api.Billing.BillingDestination)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The monitored resource type. The type must be defined in
      * [Service.monitored_resources][google.api.Service.monitored_resources] section.
      * 
* * string monitored_resource = 1; + * + * @return The monitoredResource. */ - String getMonitoredResource(); + java.lang.String getMonitoredResource(); /** + * + * *
      * The monitored resource type. The type must be defined in
      * [Service.monitored_resources][google.api.Service.monitored_resources] section.
      * 
* * string monitored_resource = 1; + * + * @return The bytes for monitoredResource. */ - com.google.protobuf.ByteString - getMonitoredResourceBytes(); + com.google.protobuf.ByteString getMonitoredResourceBytes(); /** + * + * *
      * Names of the metrics to report to this billing destination.
      * Each name must be defined in [Service.metrics][google.api.Service.metrics] section.
      * 
* * repeated string metrics = 2; + * + * @return A list containing the metrics. */ - java.util.List - getMetricsList(); + java.util.List getMetricsList(); /** + * + * *
      * Names of the metrics to report to this billing destination.
      * Each name must be defined in [Service.metrics][google.api.Service.metrics] section.
      * 
* * repeated string metrics = 2; + * + * @return The count of metrics. */ int getMetricsCount(); /** + * + * *
      * Names of the metrics to report to this billing destination.
      * Each name must be defined in [Service.metrics][google.api.Service.metrics] section.
      * 
* * repeated string metrics = 2; + * + * @param index The index of the element to return. + * @return The metrics at the given index. */ - String getMetrics(int index); + java.lang.String getMetrics(int index); /** + * + * *
      * Names of the metrics to report to this billing destination.
      * Each name must be defined in [Service.metrics][google.api.Service.metrics] section.
      * 
* * repeated string metrics = 2; + * + * @param index The index of the value to return. + * @return The bytes of the metrics at the given index. */ - com.google.protobuf.ByteString - getMetricsBytes(int index); + com.google.protobuf.ByteString getMetricsBytes(int index); } /** + * + * *
    * Configuration of a specific billing destination (Currently only support
    * bill against consumer project).
@@ -180,32 +232,39 @@ public interface BillingDestinationOrBuilder extends
    *
    * Protobuf type {@code google.api.Billing.BillingDestination}
    */
-  public  static final class BillingDestination extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class BillingDestination extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.api.Billing.BillingDestination)
       BillingDestinationOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use BillingDestination.newBuilder() to construct.
     private BillingDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private BillingDestination() {
       monitoredResource_ = "";
       metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     }
 
-    @Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    @java.lang.Override
+    @SuppressWarnings({"unused"})
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+      return new BillingDestination();
+    }
+
+    @java.lang.Override
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private BillingDestination(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       this();
       if (extensionRegistry == null) {
-        throw new NullPointerException();
+        throw new java.lang.NullPointerException();
       }
       int mutable_bitField0_ = 0;
       com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -218,94 +277,102 @@ private BillingDestination(
             case 0:
               done = true;
               break;
-            case 10: {
-              String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              monitoredResource_ = s;
-              break;
-            }
-            case 18: {
-              String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                metrics_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000002;
+                monitoredResource_ = s;
+                break;
               }
-              metrics_.add(s);
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                  metrics_ = new com.google.protobuf.LazyStringArrayList();
+                  mutable_bitField0_ |= 0x00000001;
+                }
+                metrics_.add(s);
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
-        if (((mutable_bitField0_ & 0x00000002) != 0)) {
+        if (((mutable_bitField0_ & 0x00000001) != 0)) {
           metrics_ = metrics_.getUnmodifiableView();
         }
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.api.BillingProto.internal_static_google_api_Billing_BillingDestination_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.api.BillingProto
+          .internal_static_google_api_Billing_BillingDestination_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.api.BillingProto.internal_static_google_api_Billing_BillingDestination_fieldAccessorTable
+      return com.google.api.BillingProto
+          .internal_static_google_api_Billing_BillingDestination_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              BillingDestination.class, Builder.class);
+              com.google.api.Billing.BillingDestination.class,
+              com.google.api.Billing.BillingDestination.Builder.class);
     }
 
-    private int bitField0_;
     public static final int MONITORED_RESOURCE_FIELD_NUMBER = 1;
-    private volatile Object monitoredResource_;
+    private volatile java.lang.Object monitoredResource_;
     /**
+     *
+     *
      * 
      * The monitored resource type. The type must be defined in
      * [Service.monitored_resources][google.api.Service.monitored_resources] section.
      * 
* * string monitored_resource = 1; + * + * @return The monitoredResource. */ - public String getMonitoredResource() { - Object ref = monitoredResource_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getMonitoredResource() { + java.lang.Object ref = monitoredResource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); monitoredResource_ = s; return s; } } /** + * + * *
      * The monitored resource type. The type must be defined in
      * [Service.monitored_resources][google.api.Service.monitored_resources] section.
      * 
* * string monitored_resource = 1; + * + * @return The bytes for monitoredResource. */ - public com.google.protobuf.ByteString - getMonitoredResourceBytes() { - Object ref = monitoredResource_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getMonitoredResourceBytes() { + java.lang.Object ref = monitoredResource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); monitoredResource_ = b; return b; } else { @@ -316,54 +383,71 @@ public String getMonitoredResource() { public static final int METRICS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList metrics_; /** + * + * *
      * Names of the metrics to report to this billing destination.
      * Each name must be defined in [Service.metrics][google.api.Service.metrics] section.
      * 
* * repeated string metrics = 2; + * + * @return A list containing the metrics. */ - public com.google.protobuf.ProtocolStringList - getMetricsList() { + public com.google.protobuf.ProtocolStringList getMetricsList() { return metrics_; } /** + * + * *
      * Names of the metrics to report to this billing destination.
      * Each name must be defined in [Service.metrics][google.api.Service.metrics] section.
      * 
* * repeated string metrics = 2; + * + * @return The count of metrics. */ public int getMetricsCount() { return metrics_.size(); } /** + * + * *
      * Names of the metrics to report to this billing destination.
      * Each name must be defined in [Service.metrics][google.api.Service.metrics] section.
      * 
* * repeated string metrics = 2; + * + * @param index The index of the element to return. + * @return The metrics at the given index. */ - public String getMetrics(int index) { + public java.lang.String getMetrics(int index) { return metrics_.get(index); } /** + * + * *
      * Names of the metrics to report to this billing destination.
      * Each name must be defined in [Service.metrics][google.api.Service.metrics] section.
      * 
* * repeated string metrics = 2; + * + * @param index The index of the value to return. + * @return The bytes of the metrics at the given index. */ - public com.google.protobuf.ByteString - getMetricsBytes(int index) { + public com.google.protobuf.ByteString getMetricsBytes(int index) { return metrics_.getByteString(index); } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -373,9 +457,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getMonitoredResourceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, monitoredResource_); } @@ -385,7 +468,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -407,25 +490,24 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof BillingDestination)) { + if (!(obj instanceof com.google.api.Billing.BillingDestination)) { return super.equals(obj); } - BillingDestination other = (BillingDestination) obj; + com.google.api.Billing.BillingDestination other = + (com.google.api.Billing.BillingDestination) obj; - if (!getMonitoredResource() - .equals(other.getMonitoredResource())) return false; - if (!getMetricsList() - .equals(other.getMetricsList())) return false; + if (!getMonitoredResource().equals(other.getMonitoredResource())) return false; + if (!getMetricsList().equals(other.getMetricsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -443,97 +525,105 @@ public int hashCode() { return hash; } - public static BillingDestination parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.Billing.BillingDestination parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static BillingDestination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Billing.BillingDestination parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static BillingDestination parseFrom( + + public static com.google.api.Billing.BillingDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static BillingDestination parseFrom( + + public static com.google.api.Billing.BillingDestination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static BillingDestination parseFrom(byte[] data) + + public static com.google.api.Billing.BillingDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static BillingDestination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Billing.BillingDestination parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static BillingDestination parseFrom(java.io.InputStream input) + + public static com.google.api.Billing.BillingDestination 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 BillingDestination parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Billing.BillingDestination parseFrom( + 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 BillingDestination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.api.Billing.BillingDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static BillingDestination parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Billing.BillingDestination parseDelimitedFrom( + 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 BillingDestination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.api.Billing.BillingDestination parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static BillingDestination parseFrom( + + public static com.google.api.Billing.BillingDestination 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(BillingDestination prototype) { + + public static Builder newBuilder(com.google.api.Billing.BillingDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
      * Configuration of a specific billing destination (Currently only support
      * bill against consumer project).
@@ -541,21 +631,24 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.api.Billing.BillingDestination}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.api.Billing.BillingDestination)
-        BillingDestinationOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.api.BillingProto.internal_static_google_api_Billing_BillingDestination_descriptor;
+        com.google.api.Billing.BillingDestinationOrBuilder {
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.api.BillingProto
+            .internal_static_google_api_Billing_BillingDestination_descriptor;
       }
 
-      @Override
-      protected FieldAccessorTable
+      @java.lang.Override
+      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.api.BillingProto.internal_static_google_api_Billing_BillingDestination_fieldAccessorTable
+        return com.google.api.BillingProto
+            .internal_static_google_api_Billing_BillingDestination_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                BillingDestination.class, Builder.class);
+                com.google.api.Billing.BillingDestination.class,
+                com.google.api.Billing.BillingDestination.Builder.class);
       }
 
       // Construct using com.google.api.Billing.BillingDestination.newBuilder()
@@ -563,106 +656,107 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
-      @Override
+
+      @java.lang.Override
       public Builder clear() {
         super.clear();
         monitoredResource_ = "";
 
         metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-        bitField0_ = (bitField0_ & ~0x00000002);
+        bitField0_ = (bitField0_ & ~0x00000001);
         return this;
       }
 
-      @Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.api.BillingProto.internal_static_google_api_Billing_BillingDestination_descriptor;
+      @java.lang.Override
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.api.BillingProto
+            .internal_static_google_api_Billing_BillingDestination_descriptor;
       }
 
-      @Override
-      public BillingDestination getDefaultInstanceForType() {
-        return BillingDestination.getDefaultInstance();
+      @java.lang.Override
+      public com.google.api.Billing.BillingDestination getDefaultInstanceForType() {
+        return com.google.api.Billing.BillingDestination.getDefaultInstance();
       }
 
-      @Override
-      public BillingDestination build() {
-        BillingDestination result = buildPartial();
+      @java.lang.Override
+      public com.google.api.Billing.BillingDestination build() {
+        com.google.api.Billing.BillingDestination result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
         return result;
       }
 
-      @Override
-      public BillingDestination buildPartial() {
-        BillingDestination result = new BillingDestination(this);
+      @java.lang.Override
+      public com.google.api.Billing.BillingDestination buildPartial() {
+        com.google.api.Billing.BillingDestination result =
+            new com.google.api.Billing.BillingDestination(this);
         int from_bitField0_ = bitField0_;
-        int to_bitField0_ = 0;
         result.monitoredResource_ = monitoredResource_;
-        if (((bitField0_ & 0x00000002) != 0)) {
+        if (((bitField0_ & 0x00000001) != 0)) {
           metrics_ = metrics_.getUnmodifiableView();
-          bitField0_ = (bitField0_ & ~0x00000002);
+          bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.metrics_ = metrics_;
-        result.bitField0_ = to_bitField0_;
         onBuilt();
         return result;
       }
 
-      @Override
+      @java.lang.Override
       public Builder clone() {
         return super.clone();
       }
-      @Override
+
+      @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
-      @Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+      @java.lang.Override
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-      @Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+      @java.lang.Override
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-      @Override
+
+      @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-      @Override
+
+      @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-      @Override
+
+      @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof BillingDestination) {
-          return mergeFrom((BillingDestination)other);
+        if (other instanceof com.google.api.Billing.BillingDestination) {
+          return mergeFrom((com.google.api.Billing.BillingDestination) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(BillingDestination other) {
-        if (other == BillingDestination.getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.api.Billing.BillingDestination other) {
+        if (other == com.google.api.Billing.BillingDestination.getDefaultInstance()) return this;
         if (!other.getMonitoredResource().isEmpty()) {
           monitoredResource_ = other.monitoredResource_;
           onChanged();
@@ -670,7 +764,7 @@ public Builder mergeFrom(BillingDestination other) {
         if (!other.metrics_.isEmpty()) {
           if (metrics_.isEmpty()) {
             metrics_ = other.metrics_;
-            bitField0_ = (bitField0_ & ~0x00000002);
+            bitField0_ = (bitField0_ & ~0x00000001);
           } else {
             ensureMetricsIsMutable();
             metrics_.addAll(other.metrics_);
@@ -682,21 +776,21 @@ public Builder mergeFrom(BillingDestination other) {
         return this;
       }
 
-      @Override
+      @java.lang.Override
       public final boolean isInitialized() {
         return true;
       }
 
-      @Override
+      @java.lang.Override
       public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        BillingDestination parsedMessage = null;
+        com.google.api.Billing.BillingDestination parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (BillingDestination) e.getUnfinishedMessage();
+          parsedMessage = (com.google.api.Billing.BillingDestination) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -705,44 +799,50 @@ public Builder mergeFrom(
         }
         return this;
       }
+
       private int bitField0_;
 
-      private Object monitoredResource_ = "";
+      private java.lang.Object monitoredResource_ = "";
       /**
+       *
+       *
        * 
        * The monitored resource type. The type must be defined in
        * [Service.monitored_resources][google.api.Service.monitored_resources] section.
        * 
* * string monitored_resource = 1; + * + * @return The monitoredResource. */ - public String getMonitoredResource() { - Object ref = monitoredResource_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getMonitoredResource() { + java.lang.Object ref = monitoredResource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); monitoredResource_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
        * The monitored resource type. The type must be defined in
        * [Service.monitored_resources][google.api.Service.monitored_resources] section.
        * 
* * string monitored_resource = 1; + * + * @return The bytes for monitoredResource. */ - public com.google.protobuf.ByteString - getMonitoredResourceBytes() { - Object ref = monitoredResource_; + public com.google.protobuf.ByteString getMonitoredResourceBytes() { + java.lang.Object ref = monitoredResource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); monitoredResource_ = b; return b; } else { @@ -750,251 +850,303 @@ public String getMonitoredResource() { } } /** + * + * *
        * The monitored resource type. The type must be defined in
        * [Service.monitored_resources][google.api.Service.monitored_resources] section.
        * 
* * string monitored_resource = 1; + * + * @param value The monitoredResource to set. + * @return This builder for chaining. */ - public Builder setMonitoredResource( - String value) { + public Builder setMonitoredResource(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + monitoredResource_ = value; onChanged(); return this; } /** + * + * *
        * The monitored resource type. The type must be defined in
        * [Service.monitored_resources][google.api.Service.monitored_resources] section.
        * 
* * string monitored_resource = 1; + * + * @return This builder for chaining. */ public Builder clearMonitoredResource() { - + monitoredResource_ = getDefaultInstance().getMonitoredResource(); onChanged(); return this; } /** + * + * *
        * The monitored resource type. The type must be defined in
        * [Service.monitored_resources][google.api.Service.monitored_resources] section.
        * 
* * string monitored_resource = 1; + * + * @param value The bytes for monitoredResource to set. + * @return This builder for chaining. */ - public Builder setMonitoredResourceBytes( - com.google.protobuf.ByteString value) { + public Builder setMonitoredResourceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + monitoredResource_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList metrics_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureMetricsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { metrics_ = new com.google.protobuf.LazyStringArrayList(metrics_); - bitField0_ |= 0x00000002; - } + bitField0_ |= 0x00000001; + } } /** + * + * *
        * Names of the metrics to report to this billing destination.
        * Each name must be defined in [Service.metrics][google.api.Service.metrics] section.
        * 
* * repeated string metrics = 2; + * + * @return A list containing the metrics. */ - public com.google.protobuf.ProtocolStringList - getMetricsList() { + public com.google.protobuf.ProtocolStringList getMetricsList() { return metrics_.getUnmodifiableView(); } /** + * + * *
        * Names of the metrics to report to this billing destination.
        * Each name must be defined in [Service.metrics][google.api.Service.metrics] section.
        * 
* * repeated string metrics = 2; + * + * @return The count of metrics. */ public int getMetricsCount() { return metrics_.size(); } /** + * + * *
        * Names of the metrics to report to this billing destination.
        * Each name must be defined in [Service.metrics][google.api.Service.metrics] section.
        * 
* * repeated string metrics = 2; + * + * @param index The index of the element to return. + * @return The metrics at the given index. */ - public String getMetrics(int index) { + public java.lang.String getMetrics(int index) { return metrics_.get(index); } /** + * + * *
        * Names of the metrics to report to this billing destination.
        * Each name must be defined in [Service.metrics][google.api.Service.metrics] section.
        * 
* * repeated string metrics = 2; + * + * @param index The index of the value to return. + * @return The bytes of the metrics at the given index. */ - public com.google.protobuf.ByteString - getMetricsBytes(int index) { + public com.google.protobuf.ByteString getMetricsBytes(int index) { return metrics_.getByteString(index); } /** + * + * *
        * Names of the metrics to report to this billing destination.
        * Each name must be defined in [Service.metrics][google.api.Service.metrics] section.
        * 
* * repeated string metrics = 2; + * + * @param index The index to set the value at. + * @param value The metrics to set. + * @return This builder for chaining. */ - public Builder setMetrics( - int index, String value) { + public Builder setMetrics(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); + throw new NullPointerException(); + } + ensureMetricsIsMutable(); metrics_.set(index, value); onChanged(); return this; } /** + * + * *
        * Names of the metrics to report to this billing destination.
        * Each name must be defined in [Service.metrics][google.api.Service.metrics] section.
        * 
* * repeated string metrics = 2; + * + * @param value The metrics to add. + * @return This builder for chaining. */ - public Builder addMetrics( - String value) { + public Builder addMetrics(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); + throw new NullPointerException(); + } + ensureMetricsIsMutable(); metrics_.add(value); onChanged(); return this; } /** + * + * *
        * Names of the metrics to report to this billing destination.
        * Each name must be defined in [Service.metrics][google.api.Service.metrics] section.
        * 
* * repeated string metrics = 2; + * + * @param values The metrics to add. + * @return This builder for chaining. */ - public Builder addAllMetrics( - Iterable values) { + public Builder addAllMetrics(java.lang.Iterable values) { ensureMetricsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, metrics_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); onChanged(); return this; } /** + * + * *
        * Names of the metrics to report to this billing destination.
        * Each name must be defined in [Service.metrics][google.api.Service.metrics] section.
        * 
* * repeated string metrics = 2; + * + * @return This builder for chaining. */ public Builder clearMetrics() { metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** + * + * *
        * Names of the metrics to report to this billing destination.
        * Each name must be defined in [Service.metrics][google.api.Service.metrics] section.
        * 
* * repeated string metrics = 2; + * + * @param value The bytes of the metrics to add. + * @return This builder for chaining. */ - public Builder addMetricsBytes( - com.google.protobuf.ByteString value) { + public Builder addMetricsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureMetricsIsMutable(); metrics_.add(value); onChanged(); return this; } - @Override + + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.Billing.BillingDestination) } // @@protoc_insertion_point(class_scope:google.api.Billing.BillingDestination) - private static final BillingDestination DEFAULT_INSTANCE; + private static final com.google.api.Billing.BillingDestination DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new BillingDestination(); + DEFAULT_INSTANCE = new com.google.api.Billing.BillingDestination(); } - public static BillingDestination getDefaultInstance() { + public static com.google.api.Billing.BillingDestination getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public BillingDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BillingDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BillingDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BillingDestination(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public BillingDestination getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.Billing.BillingDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int CONSUMER_DESTINATIONS_FIELD_NUMBER = 8; - private java.util.List consumerDestinations_; + private java.util.List consumerDestinations_; /** + * + * *
    * Billing configurations for sending metrics to the consumer project.
    * There can be multiple consumer destinations per service, each one must have
@@ -1004,10 +1156,12 @@ public BillingDestination getDefaultInstanceForType() {
    *
    * repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
    */
-  public java.util.List getConsumerDestinationsList() {
+  public java.util.List getConsumerDestinationsList() {
     return consumerDestinations_;
   }
   /**
+   *
+   *
    * 
    * Billing configurations for sending metrics to the consumer project.
    * There can be multiple consumer destinations per service, each one must have
@@ -1017,11 +1171,13 @@ public java.util.List getConsumerDestinationsList() {
    *
    * repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
    */
-  public java.util.List
+  public java.util.List
       getConsumerDestinationsOrBuilderList() {
     return consumerDestinations_;
   }
   /**
+   *
+   *
    * 
    * Billing configurations for sending metrics to the consumer project.
    * There can be multiple consumer destinations per service, each one must have
@@ -1035,6 +1191,8 @@ public int getConsumerDestinationsCount() {
     return consumerDestinations_.size();
   }
   /**
+   *
+   *
    * 
    * Billing configurations for sending metrics to the consumer project.
    * There can be multiple consumer destinations per service, each one must have
@@ -1044,10 +1202,12 @@ public int getConsumerDestinationsCount() {
    *
    * repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
    */
-  public BillingDestination getConsumerDestinations(int index) {
+  public com.google.api.Billing.BillingDestination getConsumerDestinations(int index) {
     return consumerDestinations_.get(index);
   }
   /**
+   *
+   *
    * 
    * Billing configurations for sending metrics to the consumer project.
    * There can be multiple consumer destinations per service, each one must have
@@ -1057,13 +1217,14 @@ public BillingDestination getConsumerDestinations(int index) {
    *
    * repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
    */
-  public BillingDestinationOrBuilder getConsumerDestinationsOrBuilder(
+  public com.google.api.Billing.BillingDestinationOrBuilder getConsumerDestinationsOrBuilder(
       int index) {
     return consumerDestinations_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-  @Override
+
+  @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
     if (isInitialized == 1) return true;
@@ -1073,47 +1234,45 @@ public final boolean isInitialized() {
     return true;
   }
 
-  @Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  @java.lang.Override
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < consumerDestinations_.size(); i++) {
       output.writeMessage(8, consumerDestinations_.get(i));
     }
     unknownFields.writeTo(output);
   }
 
-  @Override
+  @java.lang.Override
   public int getSerializedSize() {
     int size = memoizedSize;
     if (size != -1) return size;
 
     size = 0;
     for (int i = 0; i < consumerDestinations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, consumerDestinations_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(8, consumerDestinations_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
     return size;
   }
 
-  @Override
-  public boolean equals(final Object obj) {
+  @java.lang.Override
+  public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
-    if (!(obj instanceof Billing)) {
+    if (!(obj instanceof com.google.api.Billing)) {
       return super.equals(obj);
     }
-    Billing other = (Billing) obj;
+    com.google.api.Billing other = (com.google.api.Billing) obj;
 
-    if (!getConsumerDestinationsList()
-        .equals(other.getConsumerDestinationsList())) return false;
+    if (!getConsumerDestinationsList().equals(other.getConsumerDestinationsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
 
-  @Override
+  @java.lang.Override
   public int hashCode() {
     if (memoizedHashCode != 0) {
       return memoizedHashCode;
@@ -1129,97 +1288,103 @@ public int hashCode() {
     return hash;
   }
 
-  public static Billing parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.api.Billing parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Billing parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Billing parseFrom(
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Billing parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.api.Billing parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Billing parseFrom(
+
+  public static com.google.api.Billing parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Billing parseFrom(byte[] data)
+
+  public static com.google.api.Billing parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Billing parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Billing parseFrom(
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Billing parseFrom(java.io.InputStream input)
+
+  public static com.google.api.Billing 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 Billing parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Billing parseFrom(
+      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 Billing parseDelimitedFrom(java.io.InputStream input)
+
+  public static com.google.api.Billing 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 Billing parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Billing parseDelimitedFrom(
+      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 Billing parseFrom(
-      com.google.protobuf.CodedInputStream input)
+
+  public static com.google.api.Billing 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 Billing parseFrom(
+
+  public static com.google.api.Billing 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();
   }
 
-  @Override
-  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(Billing prototype) {
+
+  public static Builder newBuilder(com.google.api.Billing prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-  @Override
+
+  @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);
   }
 
-  @Override
-  protected Builder newBuilderForType(
-      BuilderParent parent) {
+  @java.lang.Override
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Billing related configuration of the service.
    * The following example shows how to configure monitored resources and metrics
@@ -1244,21 +1409,20 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.Billing}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.Billing)
       com.google.api.BillingOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.api.BillingProto.internal_static_google_api_Billing_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return com.google.api.BillingProto.internal_static_google_api_Billing_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              Billing.class, Builder.class);
+              com.google.api.Billing.class, com.google.api.Billing.Builder.class);
     }
 
     // Construct using com.google.api.Billing.newBuilder()
@@ -1266,18 +1430,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getConsumerDestinationsFieldBuilder();
       }
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       if (consumerDestinationsBuilder_ == null) {
@@ -1289,29 +1453,28 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.api.BillingProto.internal_static_google_api_Billing_descriptor;
     }
 
-    @Override
-    public Billing getDefaultInstanceForType() {
-      return Billing.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.Billing getDefaultInstanceForType() {
+      return com.google.api.Billing.getDefaultInstance();
     }
 
-    @Override
-    public Billing build() {
-      Billing result = buildPartial();
+    @java.lang.Override
+    public com.google.api.Billing build() {
+      com.google.api.Billing result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public Billing buildPartial() {
-      Billing result = new Billing(this);
+    @java.lang.Override
+    public com.google.api.Billing buildPartial() {
+      com.google.api.Billing result = new com.google.api.Billing(this);
       int from_bitField0_ = bitField0_;
       if (consumerDestinationsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -1326,50 +1489,51 @@ public Billing buildPartial() {
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof Billing) {
-        return mergeFrom((Billing)other);
+      if (other instanceof com.google.api.Billing) {
+        return mergeFrom((com.google.api.Billing) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(Billing other) {
-      if (other == Billing.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.Billing other) {
+      if (other == com.google.api.Billing.getDefaultInstance()) return this;
       if (consumerDestinationsBuilder_ == null) {
         if (!other.consumerDestinations_.isEmpty()) {
           if (consumerDestinations_.isEmpty()) {
@@ -1388,9 +1552,10 @@ public Builder mergeFrom(Billing other) {
             consumerDestinationsBuilder_ = null;
             consumerDestinations_ = other.consumerDestinations_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            consumerDestinationsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getConsumerDestinationsFieldBuilder() : null;
+            consumerDestinationsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getConsumerDestinationsFieldBuilder()
+                    : null;
           } else {
             consumerDestinationsBuilder_.addAllMessages(other.consumerDestinations_);
           }
@@ -1401,21 +1566,21 @@ public Builder mergeFrom(Billing other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      Billing parsedMessage = null;
+      com.google.api.Billing parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (Billing) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.Billing) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1424,21 +1589,30 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List consumerDestinations_ =
-      java.util.Collections.emptyList();
+    private java.util.List consumerDestinations_ =
+        java.util.Collections.emptyList();
+
     private void ensureConsumerDestinationsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        consumerDestinations_ = new java.util.ArrayList(consumerDestinations_);
+        consumerDestinations_ =
+            new java.util.ArrayList(
+                consumerDestinations_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        BillingDestination, BillingDestination.Builder, BillingDestinationOrBuilder> consumerDestinationsBuilder_;
+            com.google.api.Billing.BillingDestination,
+            com.google.api.Billing.BillingDestination.Builder,
+            com.google.api.Billing.BillingDestinationOrBuilder>
+        consumerDestinationsBuilder_;
 
     /**
+     *
+     *
      * 
      * Billing configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations per service, each one must have
@@ -1448,7 +1622,7 @@ private void ensureConsumerDestinationsIsMutable() {
      *
      * repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
      */
-    public java.util.List getConsumerDestinationsList() {
+    public java.util.List getConsumerDestinationsList() {
       if (consumerDestinationsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(consumerDestinations_);
       } else {
@@ -1456,6 +1630,8 @@ public java.util.List getConsumerDestinationsList() {
       }
     }
     /**
+     *
+     *
      * 
      * Billing configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations per service, each one must have
@@ -1473,6 +1649,8 @@ public int getConsumerDestinationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Billing configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations per service, each one must have
@@ -1482,7 +1660,7 @@ public int getConsumerDestinationsCount() {
      *
      * repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
      */
-    public BillingDestination getConsumerDestinations(int index) {
+    public com.google.api.Billing.BillingDestination getConsumerDestinations(int index) {
       if (consumerDestinationsBuilder_ == null) {
         return consumerDestinations_.get(index);
       } else {
@@ -1490,6 +1668,8 @@ public BillingDestination getConsumerDestinations(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Billing configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations per service, each one must have
@@ -1500,7 +1680,7 @@ public BillingDestination getConsumerDestinations(int index) {
      * repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
      */
     public Builder setConsumerDestinations(
-        int index, BillingDestination value) {
+        int index, com.google.api.Billing.BillingDestination value) {
       if (consumerDestinationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1514,6 +1694,8 @@ public Builder setConsumerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Billing configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations per service, each one must have
@@ -1524,7 +1706,7 @@ public Builder setConsumerDestinations(
      * repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
      */
     public Builder setConsumerDestinations(
-        int index, BillingDestination.Builder builderForValue) {
+        int index, com.google.api.Billing.BillingDestination.Builder builderForValue) {
       if (consumerDestinationsBuilder_ == null) {
         ensureConsumerDestinationsIsMutable();
         consumerDestinations_.set(index, builderForValue.build());
@@ -1535,6 +1717,8 @@ public Builder setConsumerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Billing configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations per service, each one must have
@@ -1544,7 +1728,7 @@ public Builder setConsumerDestinations(
      *
      * repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
      */
-    public Builder addConsumerDestinations(BillingDestination value) {
+    public Builder addConsumerDestinations(com.google.api.Billing.BillingDestination value) {
       if (consumerDestinationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1558,6 +1742,8 @@ public Builder addConsumerDestinations(BillingDestination value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Billing configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations per service, each one must have
@@ -1568,7 +1754,7 @@ public Builder addConsumerDestinations(BillingDestination value) {
      * repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
      */
     public Builder addConsumerDestinations(
-        int index, BillingDestination value) {
+        int index, com.google.api.Billing.BillingDestination value) {
       if (consumerDestinationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1582,6 +1768,8 @@ public Builder addConsumerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Billing configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations per service, each one must have
@@ -1592,7 +1780,7 @@ public Builder addConsumerDestinations(
      * repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
      */
     public Builder addConsumerDestinations(
-        BillingDestination.Builder builderForValue) {
+        com.google.api.Billing.BillingDestination.Builder builderForValue) {
       if (consumerDestinationsBuilder_ == null) {
         ensureConsumerDestinationsIsMutable();
         consumerDestinations_.add(builderForValue.build());
@@ -1603,6 +1791,8 @@ public Builder addConsumerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Billing configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations per service, each one must have
@@ -1613,7 +1803,7 @@ public Builder addConsumerDestinations(
      * repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
      */
     public Builder addConsumerDestinations(
-        int index, BillingDestination.Builder builderForValue) {
+        int index, com.google.api.Billing.BillingDestination.Builder builderForValue) {
       if (consumerDestinationsBuilder_ == null) {
         ensureConsumerDestinationsIsMutable();
         consumerDestinations_.add(index, builderForValue.build());
@@ -1624,6 +1814,8 @@ public Builder addConsumerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Billing configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations per service, each one must have
@@ -1634,11 +1826,10 @@ public Builder addConsumerDestinations(
      * repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
      */
     public Builder addAllConsumerDestinations(
-        Iterable values) {
+        java.lang.Iterable values) {
       if (consumerDestinationsBuilder_ == null) {
         ensureConsumerDestinationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, consumerDestinations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, consumerDestinations_);
         onChanged();
       } else {
         consumerDestinationsBuilder_.addAllMessages(values);
@@ -1646,6 +1837,8 @@ public Builder addAllConsumerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Billing configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations per service, each one must have
@@ -1666,6 +1859,8 @@ public Builder clearConsumerDestinations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Billing configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations per service, each one must have
@@ -1686,6 +1881,8 @@ public Builder removeConsumerDestinations(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Billing configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations per service, each one must have
@@ -1695,11 +1892,13 @@ public Builder removeConsumerDestinations(int index) {
      *
      * repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
      */
-    public BillingDestination.Builder getConsumerDestinationsBuilder(
+    public com.google.api.Billing.BillingDestination.Builder getConsumerDestinationsBuilder(
         int index) {
       return getConsumerDestinationsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Billing configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations per service, each one must have
@@ -1709,14 +1908,17 @@ public BillingDestination.Builder getConsumerDestinationsBuilder(
      *
      * repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
      */
-    public BillingDestinationOrBuilder getConsumerDestinationsOrBuilder(
+    public com.google.api.Billing.BillingDestinationOrBuilder getConsumerDestinationsOrBuilder(
         int index) {
       if (consumerDestinationsBuilder_ == null) {
-        return consumerDestinations_.get(index);  } else {
+        return consumerDestinations_.get(index);
+      } else {
         return consumerDestinationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Billing configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations per service, each one must have
@@ -1726,8 +1928,8 @@ public BillingDestinationOrBuilder getConsumerDestinationsOrBuilder(
      *
      * repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
      */
-    public java.util.List
-         getConsumerDestinationsOrBuilderList() {
+    public java.util.List
+        getConsumerDestinationsOrBuilderList() {
       if (consumerDestinationsBuilder_ != null) {
         return consumerDestinationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1735,6 +1937,8 @@ public BillingDestinationOrBuilder getConsumerDestinationsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Billing configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations per service, each one must have
@@ -1744,11 +1948,13 @@ public BillingDestinationOrBuilder getConsumerDestinationsOrBuilder(
      *
      * repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
      */
-    public BillingDestination.Builder addConsumerDestinationsBuilder() {
-      return getConsumerDestinationsFieldBuilder().addBuilder(
-          BillingDestination.getDefaultInstance());
+    public com.google.api.Billing.BillingDestination.Builder addConsumerDestinationsBuilder() {
+      return getConsumerDestinationsFieldBuilder()
+          .addBuilder(com.google.api.Billing.BillingDestination.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Billing configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations per service, each one must have
@@ -1758,12 +1964,14 @@ public BillingDestination.Builder addConsumerDestinationsBuilder() {
      *
      * repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
      */
-    public BillingDestination.Builder addConsumerDestinationsBuilder(
+    public com.google.api.Billing.BillingDestination.Builder addConsumerDestinationsBuilder(
         int index) {
-      return getConsumerDestinationsFieldBuilder().addBuilder(
-          index, BillingDestination.getDefaultInstance());
+      return getConsumerDestinationsFieldBuilder()
+          .addBuilder(index, com.google.api.Billing.BillingDestination.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Billing configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations per service, each one must have
@@ -1773,16 +1981,22 @@ public BillingDestination.Builder addConsumerDestinationsBuilder(
      *
      * repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
      */
-    public java.util.List
-         getConsumerDestinationsBuilderList() {
+    public java.util.List
+        getConsumerDestinationsBuilderList() {
       return getConsumerDestinationsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        BillingDestination, BillingDestination.Builder, BillingDestinationOrBuilder>
+            com.google.api.Billing.BillingDestination,
+            com.google.api.Billing.BillingDestination.Builder,
+            com.google.api.Billing.BillingDestinationOrBuilder>
         getConsumerDestinationsFieldBuilder() {
       if (consumerDestinationsBuilder_ == null) {
-        consumerDestinationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            BillingDestination, BillingDestination.Builder, BillingDestinationOrBuilder>(
+        consumerDestinationsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.api.Billing.BillingDestination,
+                com.google.api.Billing.BillingDestination.Builder,
+                com.google.api.Billing.BillingDestinationOrBuilder>(
                 consumerDestinations_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -1791,56 +2005,54 @@ public BillingDestination.Builder addConsumerDestinationsBuilder(
       }
       return consumerDestinationsBuilder_;
     }
-    @Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+
+    @java.lang.Override
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
-    @Override
+    @java.lang.Override
     public final Builder mergeUnknownFields(
         final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.api.Billing)
   }
 
   // @@protoc_insertion_point(class_scope:google.api.Billing)
-  private static final Billing DEFAULT_INSTANCE;
+  private static final com.google.api.Billing DEFAULT_INSTANCE;
+
   static {
-    DEFAULT_INSTANCE = new Billing();
+    DEFAULT_INSTANCE = new com.google.api.Billing();
   }
 
-  public static Billing getDefaultInstance() {
+  public static com.google.api.Billing getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @Override
-    public Billing parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Billing(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Billing parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Billing(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
   }
 
-  @Override
+  @java.lang.Override
   public com.google.protobuf.Parser getParserForType() {
     return PARSER;
   }
 
-  @Override
-  public Billing getDefaultInstanceForType() {
+  @java.lang.Override
+  public com.google.api.Billing getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-common-protos/src/main/java/com/google/api/BillingOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/BillingOrBuilder.java
index 8c2c4d88..2828912e 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/BillingOrBuilder.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/BillingOrBuilder.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/billing.proto
 
 package com.google.api;
 
-public interface BillingOrBuilder extends
+public interface BillingOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.api.Billing)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Billing configurations for sending metrics to the consumer project.
    * There can be multiple consumer destinations per service, each one must have
@@ -17,9 +35,10 @@ public interface BillingOrBuilder extends
    *
    * repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
    */
-  java.util.List
-      getConsumerDestinationsList();
+  java.util.List getConsumerDestinationsList();
   /**
+   *
+   *
    * 
    * Billing configurations for sending metrics to the consumer project.
    * There can be multiple consumer destinations per service, each one must have
@@ -29,8 +48,10 @@ public interface BillingOrBuilder extends
    *
    * repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
    */
-  Billing.BillingDestination getConsumerDestinations(int index);
+  com.google.api.Billing.BillingDestination getConsumerDestinations(int index);
   /**
+   *
+   *
    * 
    * Billing configurations for sending metrics to the consumer project.
    * There can be multiple consumer destinations per service, each one must have
@@ -42,6 +63,8 @@ public interface BillingOrBuilder extends
    */
   int getConsumerDestinationsCount();
   /**
+   *
+   *
    * 
    * Billing configurations for sending metrics to the consumer project.
    * There can be multiple consumer destinations per service, each one must have
@@ -51,9 +74,11 @@ public interface BillingOrBuilder extends
    *
    * repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
    */
-  java.util.List
+  java.util.List
       getConsumerDestinationsOrBuilderList();
   /**
+   *
+   *
    * 
    * Billing configurations for sending metrics to the consumer project.
    * There can be multiple consumer destinations per service, each one must have
@@ -63,6 +88,5 @@ public interface BillingOrBuilder extends
    *
    * repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
    */
-  Billing.BillingDestinationOrBuilder getConsumerDestinationsOrBuilder(
-      int index);
+  com.google.api.Billing.BillingDestinationOrBuilder getConsumerDestinationsOrBuilder(int index);
 }
diff --git a/proto-google-common-protos/src/main/java/com/google/api/BillingProto.java b/proto-google-common-protos/src/main/java/com/google/api/BillingProto.java
index f92d8efd..12a5d61d 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/BillingProto.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/BillingProto.java
@@ -1,3 +1,18 @@
+/*
+ * 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/billing.proto
 
@@ -5,70 +20,62 @@
 
 public final class BillingProto {
   private BillingProto() {}
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistryLite registry) {
-  }
 
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions(
-        (com.google.protobuf.ExtensionRegistryLite) registry);
+  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_Billing_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_Billing_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_Billing_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_api_Billing_BillingDestination_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_Billing_BillingDestination_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_Billing_BillingDestination_fieldAccessorTable;
 
-  public static com.google.protobuf.Descriptors.FileDescriptor
-      getDescriptor() {
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     return descriptor;
   }
-  private static  com.google.protobuf.Descriptors.FileDescriptor
-      descriptor;
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
   static {
-    String[] descriptorData = {
-      "\n\030google/api/billing.proto\022\ngoogle.api\032\027" +
-      "google/api/metric.proto\"\223\001\n\007Billing\022E\n\025c" +
-      "onsumer_destinations\030\010 \003(\0132&.google.api." +
-      "Billing.BillingDestination\032A\n\022BillingDes" +
-      "tination\022\032\n\022monitored_resource\030\001 \001(\t\022\017\n\007" +
-      "metrics\030\002 \003(\tBn\n\016com.google.apiB\014Billing" +
-      "ProtoP\001ZEgoogle.golang.org/genproto/goog" +
-      "leapis/api/serviceconfig;serviceconfig\242\002" +
-      "\004GAPIb\006proto3"
+    java.lang.String[] descriptorData = {
+      "\n\030google/api/billing.proto\022\ngoogle.api\032\027"
+          + "google/api/metric.proto\"\223\001\n\007Billing\022E\n\025c"
+          + "onsumer_destinations\030\010 \003(\0132&.google.api."
+          + "Billing.BillingDestination\032A\n\022BillingDes"
+          + "tination\022\032\n\022monitored_resource\030\001 \001(\t\022\017\n\007"
+          + "metrics\030\002 \003(\tBn\n\016com.google.apiB\014Billing"
+          + "ProtoP\001ZEgoogle.golang.org/genproto/goog"
+          + "leapis/api/serviceconfig;serviceconfig\242\002"
+          + "\004GAPIb\006proto3"
     };
-    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
-        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
-          public com.google.protobuf.ExtensionRegistry assignDescriptors(
-              com.google.protobuf.Descriptors.FileDescriptor root) {
-            descriptor = root;
-            return null;
-          }
-        };
-    com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-          MetricProto.getDescriptor(),
-        }, assigner);
-    internal_static_google_api_Billing_descriptor =
-      getDescriptor().getMessageTypes().get(0);
-    internal_static_google_api_Billing_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_Billing_descriptor,
-        new String[] { "ConsumerDestinations", });
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.MetricProto.getDescriptor(),
+            });
+    internal_static_google_api_Billing_descriptor = getDescriptor().getMessageTypes().get(0);
+    internal_static_google_api_Billing_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_Billing_descriptor,
+            new java.lang.String[] {
+              "ConsumerDestinations",
+            });
     internal_static_google_api_Billing_BillingDestination_descriptor =
-      internal_static_google_api_Billing_descriptor.getNestedTypes().get(0);
-    internal_static_google_api_Billing_BillingDestination_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_Billing_BillingDestination_descriptor,
-        new String[] { "MonitoredResource", "Metrics", });
-    MetricProto.getDescriptor();
+        internal_static_google_api_Billing_descriptor.getNestedTypes().get(0);
+    internal_static_google_api_Billing_BillingDestination_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_Billing_BillingDestination_descriptor,
+            new java.lang.String[] {
+              "MonitoredResource", "Metrics",
+            });
+    com.google.api.MetricProto.getDescriptor();
   }
 
   // @@protoc_insertion_point(outer_class_scope)
diff --git a/proto-google-common-protos/src/main/java/com/google/api/ChangeType.java b/proto-google-common-protos/src/main/java/com/google/api/ChangeType.java
index 4db50878..bc2db848 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/ChangeType.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/ChangeType.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;
 
 /**
+ *
+ *
  * 
  * Classifies set of possible modifications to an object in the service
  * configuration.
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.api.ChangeType}
  */
-public enum ChangeType
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum ChangeType implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * No value was provided.
    * 
@@ -22,6 +40,8 @@ public enum ChangeType */ CHANGE_TYPE_UNSPECIFIED(0), /** + * + * *
    * The changed object exists in the 'new' service configuration, but not
    * in the 'old' service configuration.
@@ -31,6 +51,8 @@ public enum ChangeType
    */
   ADDED(1),
   /**
+   *
+   *
    * 
    * The changed object exists in the 'old' service configuration, but not
    * in the 'new' service configuration.
@@ -40,6 +62,8 @@ public enum ChangeType
    */
   REMOVED(2),
   /**
+   *
+   *
    * 
    * The changed object exists in both service configurations, but its value
    * is different.
@@ -52,6 +76,8 @@ public enum ChangeType
   ;
 
   /**
+   *
+   *
    * 
    * No value was provided.
    * 
@@ -60,6 +86,8 @@ public enum ChangeType */ public static final int CHANGE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * The changed object exists in the 'new' service configuration, but not
    * in the 'old' service configuration.
@@ -69,6 +97,8 @@ public enum ChangeType
    */
   public static final int ADDED_VALUE = 1;
   /**
+   *
+   *
    * 
    * The changed object exists in the 'old' service configuration, but not
    * in the 'new' service configuration.
@@ -78,6 +108,8 @@ public enum ChangeType
    */
   public static final int REMOVED_VALUE = 2;
   /**
+   *
+   *
    * 
    * The changed object exists in both service configurations, but its value
    * is different.
@@ -87,65 +119,71 @@ public enum ChangeType
    */
   public static final int MODIFIED_VALUE = 3;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
-      throw new IllegalArgumentException(
+      throw new java.lang.IllegalArgumentException(
           "Can't get the number of an unknown enum value.");
     }
     return value;
   }
 
   /**
+   * @param value The numeric wire value of the corresponding enum entry.
+   * @return The enum associated with the given numeric wire value.
    * @deprecated Use {@link #forNumber(int)} instead.
    */
-  @Deprecated
+  @java.lang.Deprecated
   public static ChangeType valueOf(int value) {
     return forNumber(value);
   }
 
+  /**
+   * @param value The numeric wire value of the corresponding enum entry.
+   * @return The enum associated with the given numeric wire value.
+   */
   public static ChangeType forNumber(int value) {
     switch (value) {
-      case 0: return CHANGE_TYPE_UNSPECIFIED;
-      case 1: return ADDED;
-      case 2: return REMOVED;
-      case 3: return MODIFIED;
-      default: return null;
+      case 0:
+        return CHANGE_TYPE_UNSPECIFIED;
+      case 1:
+        return ADDED;
+      case 2:
+        return REMOVED;
+      case 3:
+        return MODIFIED;
+      default:
+        return null;
     }
   }
 
-  public static com.google.protobuf.Internal.EnumLiteMap
-      internalGetValueMap() {
+  public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
     return internalValueMap;
   }
-  private static final com.google.protobuf.Internal.EnumLiteMap<
-      ChangeType> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public ChangeType findValueByNumber(int number) {
-            return ChangeType.forNumber(number);
-          }
-        };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor
-      getValueDescriptor() {
+
+  private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+      new com.google.protobuf.Internal.EnumLiteMap() {
+        public ChangeType findValueByNumber(int number) {
+          return ChangeType.forNumber(number);
+        }
+      };
+
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
     return getDescriptor().getValues().get(ordinal());
   }
-  public final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptorForType() {
+
+  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
     return getDescriptor();
   }
-  public static final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
     return com.google.api.ConfigChangeProto.getDescriptor().getEnumTypes().get(0);
   }
 
   private static final ChangeType[] VALUES = values();
 
-  public static ChangeType valueOf(
-      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static ChangeType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
     if (desc.getType() != getDescriptor()) {
-      throw new IllegalArgumentException(
-        "EnumValueDescriptor is not for this type.");
+      throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
     }
     if (desc.getIndex() == -1) {
       return UNRECOGNIZED;
@@ -161,4 +199,3 @@ private ChangeType(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.api.ChangeType)
 }
-
diff --git a/proto-google-common-protos/src/main/java/com/google/api/ClientProto.java b/proto-google-common-protos/src/main/java/com/google/api/ClientProto.java
index 002f7412..e79e36d1 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/ClientProto.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/ClientProto.java
@@ -1,3 +1,18 @@
+/*
+ * 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/client.proto
 
@@ -5,20 +20,21 @@
 
 public final class ClientProto {
   private ClientProto() {}
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistryLite registry) {
-    registry.add(ClientProto.methodSignature);
-    registry.add(ClientProto.defaultHost);
-    registry.add(ClientProto.oauthScopes);
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
+    registry.add(com.google.api.ClientProto.methodSignature);
+    registry.add(com.google.api.ClientProto.defaultHost);
+    registry.add(com.google.api.ClientProto.oauthScopes);
   }
 
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions(
-        (com.google.protobuf.ExtensionRegistryLite) registry);
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
   }
+
   public static final int METHOD_SIGNATURE_FIELD_NUMBER = 1051;
   /**
+   *
+   *
    * 
    * A definition of a client library method signature.
    * In client libraries, each proto RPC corresponds to one or more methods
@@ -51,15 +67,16 @@ public static void registerAllExtensions(
    *
    * extend .google.protobuf.MethodOptions { ... }
    */
-  public static final
-    com.google.protobuf.GeneratedMessage.GeneratedExtension<
-      com.google.protobuf.DescriptorProtos.MethodOptions,
-      java.util.List> methodSignature = com.google.protobuf.GeneratedMessage
-          .newFileScopedGeneratedExtension(
-        String.class,
-        null);
+  public static final com.google.protobuf.GeneratedMessage.GeneratedExtension<
+          com.google.protobuf.DescriptorProtos.MethodOptions, java.util.List>
+      methodSignature =
+          com.google.protobuf.GeneratedMessage.newFileScopedGeneratedExtension(
+              java.lang.String.class, null);
+
   public static final int DEFAULT_HOST_FIELD_NUMBER = 1049;
   /**
+   *
+   *
    * 
    * The hostname for this service.
    * This should be specified with no prefix or protocol.
@@ -72,15 +89,16 @@ public static void registerAllExtensions(
    *
    * extend .google.protobuf.ServiceOptions { ... }
    */
-  public static final
-    com.google.protobuf.GeneratedMessage.GeneratedExtension<
-      com.google.protobuf.DescriptorProtos.ServiceOptions,
-      String> defaultHost = com.google.protobuf.GeneratedMessage
-          .newFileScopedGeneratedExtension(
-        String.class,
-        null);
+  public static final com.google.protobuf.GeneratedMessage.GeneratedExtension<
+          com.google.protobuf.DescriptorProtos.ServiceOptions, java.lang.String>
+      defaultHost =
+          com.google.protobuf.GeneratedMessage.newFileScopedGeneratedExtension(
+              java.lang.String.class, null);
+
   public static final int OAUTH_SCOPES_FIELD_NUMBER = 1050;
   /**
+   *
+   *
    * 
    * OAuth scopes needed for the client.
    * Example:
@@ -101,45 +119,36 @@ public static void registerAllExtensions(
    *
    * extend .google.protobuf.ServiceOptions { ... }
    */
-  public static final
-    com.google.protobuf.GeneratedMessage.GeneratedExtension<
-      com.google.protobuf.DescriptorProtos.ServiceOptions,
-      String> oauthScopes = com.google.protobuf.GeneratedMessage
-          .newFileScopedGeneratedExtension(
-        String.class,
-        null);
+  public static final com.google.protobuf.GeneratedMessage.GeneratedExtension<
+          com.google.protobuf.DescriptorProtos.ServiceOptions, java.lang.String>
+      oauthScopes =
+          com.google.protobuf.GeneratedMessage.newFileScopedGeneratedExtension(
+              java.lang.String.class, null);
 
-  public static com.google.protobuf.Descriptors.FileDescriptor
-      getDescriptor() {
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     return descriptor;
   }
-  private static  com.google.protobuf.Descriptors.FileDescriptor
-      descriptor;
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
   static {
-    String[] descriptorData = {
-      "\n\027google/api/client.proto\022\ngoogle.api\032 g" +
-      "oogle/protobuf/descriptor.proto:9\n\020metho" +
-      "d_signature\022\036.google.protobuf.MethodOpti" +
-      "ons\030\233\010 \003(\t:6\n\014default_host\022\037.google.prot" +
-      "obuf.ServiceOptions\030\231\010 \001(\t:6\n\014oauth_scop" +
-      "es\022\037.google.protobuf.ServiceOptions\030\232\010 \001" +
-      "(\tBi\n\016com.google.apiB\013ClientProtoP\001ZAgoo" +
-      "gle.golang.org/genproto/googleapis/api/a" +
-      "nnotations;annotations\242\002\004GAPIb\006proto3"
+    java.lang.String[] descriptorData = {
+      "\n\027google/api/client.proto\022\ngoogle.api\032 g"
+          + "oogle/protobuf/descriptor.proto:9\n\020metho"
+          + "d_signature\022\036.google.protobuf.MethodOpti"
+          + "ons\030\233\010 \003(\t:6\n\014default_host\022\037.google.prot"
+          + "obuf.ServiceOptions\030\231\010 \001(\t:6\n\014oauth_scop"
+          + "es\022\037.google.protobuf.ServiceOptions\030\232\010 \001"
+          + "(\tBi\n\016com.google.apiB\013ClientProtoP\001ZAgoo"
+          + "gle.golang.org/genproto/googleapis/api/a"
+          + "nnotations;annotations\242\002\004GAPIb\006proto3"
     };
-    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
-        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
-          public com.google.protobuf.ExtensionRegistry assignDescriptors(
-              com.google.protobuf.Descriptors.FileDescriptor root) {
-            descriptor = root;
-            return null;
-          }
-        };
-    com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-          com.google.protobuf.DescriptorProtos.getDescriptor(),
-        }, assigner);
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.protobuf.DescriptorProtos.getDescriptor(),
+            });
     methodSignature.internalInit(descriptor.getExtensions().get(0));
     defaultHost.internalInit(descriptor.getExtensions().get(1));
     oauthScopes.internalInit(descriptor.getExtensions().get(2));
diff --git a/proto-google-common-protos/src/main/java/com/google/api/ConfigChange.java b/proto-google-common-protos/src/main/java/com/google/api/ConfigChange.java
index 9c45c00e..ba8cf308 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/ConfigChange.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/ConfigChange.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;
 
 /**
+ *
+ *
  * 
  * Output generated from semantically comparing two versions of a service
  * configuration.
@@ -14,15 +31,16 @@
  *
  * Protobuf type {@code google.api.ConfigChange}
  */
-public  final class ConfigChange extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ConfigChange extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.ConfigChange)
     ConfigChangeOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ConfigChange.newBuilder() to construct.
   private ConfigChange(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ConfigChange() {
     element_ = "";
     oldValue_ = "";
@@ -31,18 +49,24 @@ private ConfigChange() {
     advices_ = java.util.Collections.emptyList();
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new ConfigChange();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ConfigChange(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -55,78 +79,83 @@ private ConfigChange(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            element_ = s;
-            break;
-          }
-          case 18: {
-            String s = input.readStringRequireUtf8();
+              element_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            oldValue_ = s;
-            break;
-          }
-          case 26: {
-            String s = input.readStringRequireUtf8();
+              oldValue_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            newValue_ = s;
-            break;
-          }
-          case 32: {
-            int rawValue = input.readEnum();
+              newValue_ = s;
+              break;
+            }
+          case 32:
+            {
+              int rawValue = input.readEnum();
 
-            changeType_ = rawValue;
-            break;
-          }
-          case 42: {
-            if (!((mutable_bitField0_ & 0x00000010) != 0)) {
-              advices_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000010;
+              changeType_ = rawValue;
+              break;
             }
-            advices_.add(
-                input.readMessage(Advice.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 42:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                advices_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              advices_.add(input.readMessage(com.google.api.Advice.parser(), extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
-      if (((mutable_bitField0_ & 0x00000010) != 0)) {
+      if (((mutable_bitField0_ & 0x00000001) != 0)) {
         advices_ = java.util.Collections.unmodifiableList(advices_);
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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_ConfigChange_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.api.ConfigChangeProto.internal_static_google_api_ConfigChange_fieldAccessorTable
+    return com.google.api.ConfigChangeProto
+        .internal_static_google_api_ConfigChange_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            ConfigChange.class, Builder.class);
+            com.google.api.ConfigChange.class, com.google.api.ConfigChange.Builder.class);
   }
 
-  private int bitField0_;
   public static final int ELEMENT_FIELD_NUMBER = 1;
-  private volatile Object element_;
+  private volatile java.lang.Object element_;
   /**
+   *
+   *
    * 
    * Object hierarchy path to the change, with levels separated by a '.'
    * character. For repeated fields, an applicable unique identifier field is
@@ -140,20 +169,23 @@ private ConfigChange(
    * 
* * string element = 1; + * + * @return The element. */ - public String getElement() { - Object ref = element_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getElement() { + java.lang.Object ref = element_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); element_ = s; return s; } } /** + * + * *
    * Object hierarchy path to the change, with levels separated by a '.'
    * character. For repeated fields, an applicable unique identifier field is
@@ -167,14 +199,14 @@ public String getElement() {
    * 
* * string element = 1; + * + * @return The bytes for element. */ - public com.google.protobuf.ByteString - getElementBytes() { - Object ref = element_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getElementBytes() { + java.lang.Object ref = element_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); element_ = b; return b; } else { @@ -183,42 +215,47 @@ public String getElement() { } public static final int OLD_VALUE_FIELD_NUMBER = 2; - private volatile Object oldValue_; + private volatile java.lang.Object oldValue_; /** + * + * *
    * Value of the changed object in the old Service configuration,
    * in JSON format. This field will not be populated if ChangeType == ADDED.
    * 
* * string old_value = 2; + * + * @return The oldValue. */ - public String getOldValue() { - Object ref = oldValue_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getOldValue() { + java.lang.Object ref = oldValue_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); oldValue_ = s; return s; } } /** + * + * *
    * Value of the changed object in the old Service configuration,
    * in JSON format. This field will not be populated if ChangeType == ADDED.
    * 
* * string old_value = 2; + * + * @return The bytes for oldValue. */ - public com.google.protobuf.ByteString - getOldValueBytes() { - Object ref = oldValue_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getOldValueBytes() { + java.lang.Object ref = oldValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); oldValue_ = b; return b; } else { @@ -227,42 +264,47 @@ public String getOldValue() { } public static final int NEW_VALUE_FIELD_NUMBER = 3; - private volatile Object newValue_; + private volatile java.lang.Object newValue_; /** + * + * *
    * Value of the changed object in the new Service configuration,
    * in JSON format. This field will not be populated if ChangeType == REMOVED.
    * 
* * string new_value = 3; + * + * @return The newValue. */ - public String getNewValue() { - Object ref = newValue_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getNewValue() { + java.lang.Object ref = newValue_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); newValue_ = s; return s; } } /** + * + * *
    * Value of the changed object in the new Service configuration,
    * in JSON format. This field will not be populated if ChangeType == REMOVED.
    * 
* * string new_value = 3; + * + * @return The bytes for newValue. */ - public com.google.protobuf.ByteString - getNewValueBytes() { - Object ref = newValue_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getNewValueBytes() { + java.lang.Object ref = newValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); newValue_ = b; return b; } else { @@ -273,31 +315,41 @@ public String getNewValue() { public static final int CHANGE_TYPE_FIELD_NUMBER = 4; private int changeType_; /** + * + * *
    * The type for this change, either ADDED, REMOVED, or MODIFIED.
    * 
* * .google.api.ChangeType change_type = 4; + * + * @return The enum numeric value on the wire for changeType. */ public int getChangeTypeValue() { return changeType_; } /** + * + * *
    * The type for this change, either ADDED, REMOVED, or MODIFIED.
    * 
* * .google.api.ChangeType change_type = 4; + * + * @return The changeType. */ - public ChangeType getChangeType() { + public com.google.api.ChangeType getChangeType() { @SuppressWarnings("deprecation") - ChangeType result = ChangeType.valueOf(changeType_); - return result == null ? ChangeType.UNRECOGNIZED : result; + com.google.api.ChangeType result = com.google.api.ChangeType.valueOf(changeType_); + return result == null ? com.google.api.ChangeType.UNRECOGNIZED : result; } public static final int ADVICES_FIELD_NUMBER = 5; - private java.util.List advices_; + private java.util.List advices_; /** + * + * *
    * Collection of advice provided for this change, useful for determining the
    * possible impact of this change.
@@ -305,10 +357,12 @@ public ChangeType getChangeType() {
    *
    * repeated .google.api.Advice advices = 5;
    */
-  public java.util.List getAdvicesList() {
+  public java.util.List getAdvicesList() {
     return advices_;
   }
   /**
+   *
+   *
    * 
    * Collection of advice provided for this change, useful for determining the
    * possible impact of this change.
@@ -316,11 +370,12 @@ public java.util.List getAdvicesList() {
    *
    * repeated .google.api.Advice advices = 5;
    */
-  public java.util.List 
-      getAdvicesOrBuilderList() {
+  public java.util.List getAdvicesOrBuilderList() {
     return advices_;
   }
   /**
+   *
+   *
    * 
    * Collection of advice provided for this change, useful for determining the
    * possible impact of this change.
@@ -332,6 +387,8 @@ public int getAdvicesCount() {
     return advices_.size();
   }
   /**
+   *
+   *
    * 
    * Collection of advice provided for this change, useful for determining the
    * possible impact of this change.
@@ -339,10 +396,12 @@ public int getAdvicesCount() {
    *
    * repeated .google.api.Advice advices = 5;
    */
-  public Advice getAdvices(int index) {
+  public com.google.api.Advice getAdvices(int index) {
     return advices_.get(index);
   }
   /**
+   *
+   *
    * 
    * Collection of advice provided for this change, useful for determining the
    * possible impact of this change.
@@ -350,13 +409,13 @@ public Advice getAdvices(int index) {
    *
    * repeated .google.api.Advice advices = 5;
    */
-  public com.google.api.AdviceOrBuilder getAdvicesOrBuilder(
-      int index) {
+  public com.google.api.AdviceOrBuilder getAdvicesOrBuilder(int index) {
     return advices_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-  @Override
+
+  @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
     if (isInitialized == 1) return true;
@@ -366,9 +425,8 @@ public final boolean isInitialized() {
     return true;
   }
 
-  @Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  @java.lang.Override
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!getElementBytes().isEmpty()) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, element_);
     }
@@ -378,7 +436,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (!getNewValueBytes().isEmpty()) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, newValue_);
     }
-    if (changeType_ != ChangeType.CHANGE_TYPE_UNSPECIFIED.getNumber()) {
+    if (changeType_ != com.google.api.ChangeType.CHANGE_TYPE_UNSPECIFIED.getNumber()) {
       output.writeEnum(4, changeType_);
     }
     for (int i = 0; i < advices_.size(); i++) {
@@ -387,7 +445,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     unknownFields.writeTo(output);
   }
 
-  @Override
+  @java.lang.Override
   public int getSerializedSize() {
     int size = memoizedSize;
     if (size != -1) return size;
@@ -402,43 +460,37 @@ public int getSerializedSize() {
     if (!getNewValueBytes().isEmpty()) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, newValue_);
     }
-    if (changeType_ != ChangeType.CHANGE_TYPE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(4, changeType_);
+    if (changeType_ != com.google.api.ChangeType.CHANGE_TYPE_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, changeType_);
     }
     for (int i = 0; i < advices_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, advices_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, advices_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
     return size;
   }
 
-  @Override
-  public boolean equals(final Object obj) {
+  @java.lang.Override
+  public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
-    if (!(obj instanceof ConfigChange)) {
+    if (!(obj instanceof com.google.api.ConfigChange)) {
       return super.equals(obj);
     }
-    ConfigChange other = (ConfigChange) obj;
+    com.google.api.ConfigChange other = (com.google.api.ConfigChange) obj;
 
-    if (!getElement()
-        .equals(other.getElement())) return false;
-    if (!getOldValue()
-        .equals(other.getOldValue())) return false;
-    if (!getNewValue()
-        .equals(other.getNewValue())) return false;
+    if (!getElement().equals(other.getElement())) return false;
+    if (!getOldValue().equals(other.getOldValue())) return false;
+    if (!getNewValue().equals(other.getNewValue())) return false;
     if (changeType_ != other.changeType_) return false;
-    if (!getAdvicesList()
-        .equals(other.getAdvicesList())) return false;
+    if (!getAdvicesList().equals(other.getAdvicesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
 
-  @Override
+  @java.lang.Override
   public int hashCode() {
     if (memoizedHashCode != 0) {
       return memoizedHashCode;
@@ -462,97 +514,103 @@ public int hashCode() {
     return hash;
   }
 
-  public static ConfigChange parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.api.ConfigChange parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static ConfigChange parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.ConfigChange parseFrom(
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static ConfigChange parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.api.ConfigChange parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static ConfigChange parseFrom(
+
+  public static com.google.api.ConfigChange parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static ConfigChange parseFrom(byte[] data)
+
+  public static com.google.api.ConfigChange parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static ConfigChange parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.ConfigChange parseFrom(
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static ConfigChange parseFrom(java.io.InputStream input)
+
+  public static com.google.api.ConfigChange 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 ConfigChange parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.ConfigChange parseFrom(
+      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 ConfigChange parseDelimitedFrom(java.io.InputStream input)
+
+  public static com.google.api.ConfigChange 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 ConfigChange parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.ConfigChange parseDelimitedFrom(
+      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 ConfigChange parseFrom(
-      com.google.protobuf.CodedInputStream input)
+
+  public static com.google.api.ConfigChange 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 ConfigChange parseFrom(
+
+  public static com.google.api.ConfigChange 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();
   }
 
-  @Override
-  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(ConfigChange prototype) {
+
+  public static Builder newBuilder(com.google.api.ConfigChange prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-  @Override
+
+  @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);
   }
 
-  @Override
-  protected Builder newBuilderForType(
-      BuilderParent parent) {
+  @java.lang.Override
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Output generated from semantically comparing two versions of a service
    * configuration.
@@ -563,21 +621,21 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.ConfigChange}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.ConfigChange)
       com.google.api.ConfigChangeOrBuilder {
-    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_ConfigChange_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.api.ConfigChangeProto.internal_static_google_api_ConfigChange_fieldAccessorTable
+      return com.google.api.ConfigChangeProto
+          .internal_static_google_api_ConfigChange_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              ConfigChange.class, Builder.class);
+              com.google.api.ConfigChange.class, com.google.api.ConfigChange.Builder.class);
     }
 
     // Construct using com.google.api.ConfigChange.newBuilder()
@@ -585,18 +643,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getAdvicesFieldBuilder();
       }
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       element_ = "";
@@ -609,100 +667,98 @@ public Builder clear() {
 
       if (advicesBuilder_ == null) {
         advices_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000010);
+        bitField0_ = (bitField0_ & ~0x00000001);
       } else {
         advicesBuilder_.clear();
       }
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.api.ConfigChangeProto.internal_static_google_api_ConfigChange_descriptor;
     }
 
-    @Override
-    public ConfigChange getDefaultInstanceForType() {
-      return ConfigChange.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.ConfigChange getDefaultInstanceForType() {
+      return com.google.api.ConfigChange.getDefaultInstance();
     }
 
-    @Override
-    public ConfigChange build() {
-      ConfigChange result = buildPartial();
+    @java.lang.Override
+    public com.google.api.ConfigChange build() {
+      com.google.api.ConfigChange result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public ConfigChange buildPartial() {
-      ConfigChange result = new ConfigChange(this);
+    @java.lang.Override
+    public com.google.api.ConfigChange buildPartial() {
+      com.google.api.ConfigChange result = new com.google.api.ConfigChange(this);
       int from_bitField0_ = bitField0_;
-      int to_bitField0_ = 0;
       result.element_ = element_;
       result.oldValue_ = oldValue_;
       result.newValue_ = newValue_;
       result.changeType_ = changeType_;
       if (advicesBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0)) {
+        if (((bitField0_ & 0x00000001) != 0)) {
           advices_ = java.util.Collections.unmodifiableList(advices_);
-          bitField0_ = (bitField0_ & ~0x00000010);
+          bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.advices_ = advices_;
       } else {
         result.advices_ = advicesBuilder_.build();
       }
-      result.bitField0_ = to_bitField0_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof ConfigChange) {
-        return mergeFrom((ConfigChange)other);
+      if (other instanceof com.google.api.ConfigChange) {
+        return mergeFrom((com.google.api.ConfigChange) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(ConfigChange other) {
-      if (other == ConfigChange.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.ConfigChange other) {
+      if (other == com.google.api.ConfigChange.getDefaultInstance()) return this;
       if (!other.getElement().isEmpty()) {
         element_ = other.element_;
         onChanged();
@@ -722,7 +778,7 @@ public Builder mergeFrom(ConfigChange other) {
         if (!other.advices_.isEmpty()) {
           if (advices_.isEmpty()) {
             advices_ = other.advices_;
-            bitField0_ = (bitField0_ & ~0x00000010);
+            bitField0_ = (bitField0_ & ~0x00000001);
           } else {
             ensureAdvicesIsMutable();
             advices_.addAll(other.advices_);
@@ -735,10 +791,11 @@ public Builder mergeFrom(ConfigChange other) {
             advicesBuilder_.dispose();
             advicesBuilder_ = null;
             advices_ = other.advices_;
-            bitField0_ = (bitField0_ & ~0x00000010);
-            advicesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getAdvicesFieldBuilder() : null;
+            bitField0_ = (bitField0_ & ~0x00000001);
+            advicesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getAdvicesFieldBuilder()
+                    : null;
           } else {
             advicesBuilder_.addAllMessages(other.advices_);
           }
@@ -749,21 +806,21 @@ public Builder mergeFrom(ConfigChange other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      ConfigChange parsedMessage = null;
+      com.google.api.ConfigChange parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (ConfigChange) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.ConfigChange) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -772,10 +829,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private Object element_ = "";
+    private java.lang.Object element_ = "";
     /**
+     *
+     *
      * 
      * Object hierarchy path to the change, with levels separated by a '.'
      * character. For repeated fields, an applicable unique identifier field is
@@ -789,20 +849,23 @@ public Builder mergeFrom(
      * 
* * string element = 1; + * + * @return The element. */ - public String getElement() { - Object ref = element_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getElement() { + java.lang.Object ref = element_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); element_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Object hierarchy path to the change, with levels separated by a '.'
      * character. For repeated fields, an applicable unique identifier field is
@@ -816,14 +879,14 @@ public String getElement() {
      * 
* * string element = 1; + * + * @return The bytes for element. */ - public com.google.protobuf.ByteString - getElementBytes() { - Object ref = element_; + public com.google.protobuf.ByteString getElementBytes() { + java.lang.Object ref = element_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); element_ = b; return b; } else { @@ -831,6 +894,8 @@ public String getElement() { } } /** + * + * *
      * Object hierarchy path to the change, with levels separated by a '.'
      * character. For repeated fields, an applicable unique identifier field is
@@ -844,18 +909,22 @@ public String getElement() {
      * 
* * string element = 1; + * + * @param value The element to set. + * @return This builder for chaining. */ - public Builder setElement( - String value) { + public Builder setElement(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + element_ = value; onChanged(); return this; } /** + * + * *
      * Object hierarchy path to the change, with levels separated by a '.'
      * character. For repeated fields, an applicable unique identifier field is
@@ -869,14 +938,18 @@ public Builder setElement(
      * 
* * string element = 1; + * + * @return This builder for chaining. */ public Builder clearElement() { - + element_ = getDefaultInstance().getElement(); onChanged(); return this; } /** + * + * *
      * Object hierarchy path to the change, with levels separated by a '.'
      * character. For repeated fields, an applicable unique identifier field is
@@ -890,55 +963,62 @@ public Builder clearElement() {
      * 
* * string element = 1; + * + * @param value The bytes for element to set. + * @return This builder for chaining. */ - public Builder setElementBytes( - com.google.protobuf.ByteString value) { + public Builder setElementBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + element_ = value; onChanged(); return this; } - private Object oldValue_ = ""; + private java.lang.Object oldValue_ = ""; /** + * + * *
      * Value of the changed object in the old Service configuration,
      * in JSON format. This field will not be populated if ChangeType == ADDED.
      * 
* * string old_value = 2; + * + * @return The oldValue. */ - public String getOldValue() { - Object ref = oldValue_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getOldValue() { + java.lang.Object ref = oldValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); oldValue_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Value of the changed object in the old Service configuration,
      * in JSON format. This field will not be populated if ChangeType == ADDED.
      * 
* * string old_value = 2; + * + * @return The bytes for oldValue. */ - public com.google.protobuf.ByteString - getOldValueBytes() { - Object ref = oldValue_; + public com.google.protobuf.ByteString getOldValueBytes() { + java.lang.Object ref = oldValue_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); oldValue_ = b; return b; } else { @@ -946,93 +1026,110 @@ public String getOldValue() { } } /** + * + * *
      * Value of the changed object in the old Service configuration,
      * in JSON format. This field will not be populated if ChangeType == ADDED.
      * 
* * string old_value = 2; + * + * @param value The oldValue to set. + * @return This builder for chaining. */ - public Builder setOldValue( - String value) { + public Builder setOldValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + oldValue_ = value; onChanged(); return this; } /** + * + * *
      * Value of the changed object in the old Service configuration,
      * in JSON format. This field will not be populated if ChangeType == ADDED.
      * 
* * string old_value = 2; + * + * @return This builder for chaining. */ public Builder clearOldValue() { - + oldValue_ = getDefaultInstance().getOldValue(); onChanged(); return this; } /** + * + * *
      * Value of the changed object in the old Service configuration,
      * in JSON format. This field will not be populated if ChangeType == ADDED.
      * 
* * string old_value = 2; + * + * @param value The bytes for oldValue to set. + * @return This builder for chaining. */ - public Builder setOldValueBytes( - com.google.protobuf.ByteString value) { + public Builder setOldValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + oldValue_ = value; onChanged(); return this; } - private Object newValue_ = ""; + private java.lang.Object newValue_ = ""; /** + * + * *
      * Value of the changed object in the new Service configuration,
      * in JSON format. This field will not be populated if ChangeType == REMOVED.
      * 
* * string new_value = 3; + * + * @return The newValue. */ - public String getNewValue() { - Object ref = newValue_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getNewValue() { + java.lang.Object ref = newValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); newValue_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Value of the changed object in the new Service configuration,
      * in JSON format. This field will not be populated if ChangeType == REMOVED.
      * 
* * string new_value = 3; + * + * @return The bytes for newValue. */ - public com.google.protobuf.ByteString - getNewValueBytes() { - Object ref = newValue_; + public com.google.protobuf.ByteString getNewValueBytes() { + java.lang.Object ref = newValue_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); newValue_ = b; return b; } else { @@ -1040,52 +1137,64 @@ public String getNewValue() { } } /** + * + * *
      * Value of the changed object in the new Service configuration,
      * in JSON format. This field will not be populated if ChangeType == REMOVED.
      * 
* * string new_value = 3; + * + * @param value The newValue to set. + * @return This builder for chaining. */ - public Builder setNewValue( - String value) { + public Builder setNewValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + newValue_ = value; onChanged(); return this; } /** + * + * *
      * Value of the changed object in the new Service configuration,
      * in JSON format. This field will not be populated if ChangeType == REMOVED.
      * 
* * string new_value = 3; + * + * @return This builder for chaining. */ public Builder clearNewValue() { - + newValue_ = getDefaultInstance().getNewValue(); onChanged(); return this; } /** + * + * *
      * Value of the changed object in the new Service configuration,
      * in JSON format. This field will not be populated if ChangeType == REMOVED.
      * 
* * string new_value = 3; + * + * @param value The bytes for newValue to set. + * @return This builder for chaining. */ - public Builder setNewValueBytes( - com.google.protobuf.ByteString value) { + public Builder setNewValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + newValue_ = value; onChanged(); return this; @@ -1093,21 +1202,30 @@ public Builder setNewValueBytes( private int changeType_ = 0; /** + * + * *
      * The type for this change, either ADDED, REMOVED, or MODIFIED.
      * 
* * .google.api.ChangeType change_type = 4; + * + * @return The enum numeric value on the wire for changeType. */ public int getChangeTypeValue() { return changeType_; } /** + * + * *
      * The type for this change, either ADDED, REMOVED, or MODIFIED.
      * 
* * .google.api.ChangeType change_type = 4; + * + * @param value The enum numeric value on the wire for changeType to set. + * @return This builder for chaining. */ public Builder setChangeTypeValue(int value) { changeType_ = value; @@ -1115,60 +1233,76 @@ public Builder setChangeTypeValue(int value) { return this; } /** + * + * *
      * The type for this change, either ADDED, REMOVED, or MODIFIED.
      * 
* * .google.api.ChangeType change_type = 4; + * + * @return The changeType. */ - public ChangeType getChangeType() { + public com.google.api.ChangeType getChangeType() { @SuppressWarnings("deprecation") - ChangeType result = ChangeType.valueOf(changeType_); - return result == null ? ChangeType.UNRECOGNIZED : result; + com.google.api.ChangeType result = com.google.api.ChangeType.valueOf(changeType_); + return result == null ? com.google.api.ChangeType.UNRECOGNIZED : result; } /** + * + * *
      * The type for this change, either ADDED, REMOVED, or MODIFIED.
      * 
* * .google.api.ChangeType change_type = 4; + * + * @param value The changeType to set. + * @return This builder for chaining. */ - public Builder setChangeType(ChangeType value) { + public Builder setChangeType(com.google.api.ChangeType value) { if (value == null) { throw new NullPointerException(); } - + changeType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The type for this change, either ADDED, REMOVED, or MODIFIED.
      * 
* * .google.api.ChangeType change_type = 4; + * + * @return This builder for chaining. */ public Builder clearChangeType() { - + changeType_ = 0; onChanged(); return this; } - private java.util.List advices_ = - java.util.Collections.emptyList(); + private java.util.List advices_ = java.util.Collections.emptyList(); + private void ensureAdvicesIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - advices_ = new java.util.ArrayList(advices_); - bitField0_ |= 0x00000010; - } + if (!((bitField0_ & 0x00000001) != 0)) { + advices_ = new java.util.ArrayList(advices_); + bitField0_ |= 0x00000001; + } } private com.google.protobuf.RepeatedFieldBuilderV3< - Advice, Advice.Builder, com.google.api.AdviceOrBuilder> advicesBuilder_; + com.google.api.Advice, com.google.api.Advice.Builder, com.google.api.AdviceOrBuilder> + advicesBuilder_; /** + * + * *
      * Collection of advice provided for this change, useful for determining the
      * possible impact of this change.
@@ -1176,7 +1310,7 @@ private void ensureAdvicesIsMutable() {
      *
      * repeated .google.api.Advice advices = 5;
      */
-    public java.util.List getAdvicesList() {
+    public java.util.List getAdvicesList() {
       if (advicesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(advices_);
       } else {
@@ -1184,6 +1318,8 @@ public java.util.List getAdvicesList() {
       }
     }
     /**
+     *
+     *
      * 
      * Collection of advice provided for this change, useful for determining the
      * possible impact of this change.
@@ -1199,6 +1335,8 @@ public int getAdvicesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Collection of advice provided for this change, useful for determining the
      * possible impact of this change.
@@ -1206,7 +1344,7 @@ public int getAdvicesCount() {
      *
      * repeated .google.api.Advice advices = 5;
      */
-    public Advice getAdvices(int index) {
+    public com.google.api.Advice getAdvices(int index) {
       if (advicesBuilder_ == null) {
         return advices_.get(index);
       } else {
@@ -1214,6 +1352,8 @@ public Advice getAdvices(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Collection of advice provided for this change, useful for determining the
      * possible impact of this change.
@@ -1221,8 +1361,7 @@ public Advice getAdvices(int index) {
      *
      * repeated .google.api.Advice advices = 5;
      */
-    public Builder setAdvices(
-        int index, Advice value) {
+    public Builder setAdvices(int index, com.google.api.Advice value) {
       if (advicesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1236,6 +1375,8 @@ public Builder setAdvices(
       return this;
     }
     /**
+     *
+     *
      * 
      * Collection of advice provided for this change, useful for determining the
      * possible impact of this change.
@@ -1243,8 +1384,7 @@ public Builder setAdvices(
      *
      * repeated .google.api.Advice advices = 5;
      */
-    public Builder setAdvices(
-        int index, Advice.Builder builderForValue) {
+    public Builder setAdvices(int index, com.google.api.Advice.Builder builderForValue) {
       if (advicesBuilder_ == null) {
         ensureAdvicesIsMutable();
         advices_.set(index, builderForValue.build());
@@ -1255,6 +1395,8 @@ public Builder setAdvices(
       return this;
     }
     /**
+     *
+     *
      * 
      * Collection of advice provided for this change, useful for determining the
      * possible impact of this change.
@@ -1262,7 +1404,7 @@ public Builder setAdvices(
      *
      * repeated .google.api.Advice advices = 5;
      */
-    public Builder addAdvices(Advice value) {
+    public Builder addAdvices(com.google.api.Advice value) {
       if (advicesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1276,6 +1418,8 @@ public Builder addAdvices(Advice value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Collection of advice provided for this change, useful for determining the
      * possible impact of this change.
@@ -1283,8 +1427,7 @@ public Builder addAdvices(Advice value) {
      *
      * repeated .google.api.Advice advices = 5;
      */
-    public Builder addAdvices(
-        int index, Advice value) {
+    public Builder addAdvices(int index, com.google.api.Advice value) {
       if (advicesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1298,6 +1441,8 @@ public Builder addAdvices(
       return this;
     }
     /**
+     *
+     *
      * 
      * Collection of advice provided for this change, useful for determining the
      * possible impact of this change.
@@ -1305,8 +1450,7 @@ public Builder addAdvices(
      *
      * repeated .google.api.Advice advices = 5;
      */
-    public Builder addAdvices(
-        Advice.Builder builderForValue) {
+    public Builder addAdvices(com.google.api.Advice.Builder builderForValue) {
       if (advicesBuilder_ == null) {
         ensureAdvicesIsMutable();
         advices_.add(builderForValue.build());
@@ -1317,6 +1461,8 @@ public Builder addAdvices(
       return this;
     }
     /**
+     *
+     *
      * 
      * Collection of advice provided for this change, useful for determining the
      * possible impact of this change.
@@ -1324,8 +1470,7 @@ public Builder addAdvices(
      *
      * repeated .google.api.Advice advices = 5;
      */
-    public Builder addAdvices(
-        int index, Advice.Builder builderForValue) {
+    public Builder addAdvices(int index, com.google.api.Advice.Builder builderForValue) {
       if (advicesBuilder_ == null) {
         ensureAdvicesIsMutable();
         advices_.add(index, builderForValue.build());
@@ -1336,6 +1481,8 @@ public Builder addAdvices(
       return this;
     }
     /**
+     *
+     *
      * 
      * Collection of advice provided for this change, useful for determining the
      * possible impact of this change.
@@ -1343,12 +1490,10 @@ public Builder addAdvices(
      *
      * repeated .google.api.Advice advices = 5;
      */
-    public Builder addAllAdvices(
-        Iterable values) {
+    public Builder addAllAdvices(java.lang.Iterable values) {
       if (advicesBuilder_ == null) {
         ensureAdvicesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, advices_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, advices_);
         onChanged();
       } else {
         advicesBuilder_.addAllMessages(values);
@@ -1356,6 +1501,8 @@ public Builder addAllAdvices(
       return this;
     }
     /**
+     *
+     *
      * 
      * Collection of advice provided for this change, useful for determining the
      * possible impact of this change.
@@ -1366,7 +1513,7 @@ public Builder addAllAdvices(
     public Builder clearAdvices() {
       if (advicesBuilder_ == null) {
         advices_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000010);
+        bitField0_ = (bitField0_ & ~0x00000001);
         onChanged();
       } else {
         advicesBuilder_.clear();
@@ -1374,6 +1521,8 @@ public Builder clearAdvices() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Collection of advice provided for this change, useful for determining the
      * possible impact of this change.
@@ -1392,6 +1541,8 @@ public Builder removeAdvices(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Collection of advice provided for this change, useful for determining the
      * possible impact of this change.
@@ -1399,11 +1550,12 @@ public Builder removeAdvices(int index) {
      *
      * repeated .google.api.Advice advices = 5;
      */
-    public Advice.Builder getAdvicesBuilder(
-        int index) {
+    public com.google.api.Advice.Builder getAdvicesBuilder(int index) {
       return getAdvicesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Collection of advice provided for this change, useful for determining the
      * possible impact of this change.
@@ -1411,14 +1563,16 @@ public Advice.Builder getAdvicesBuilder(
      *
      * repeated .google.api.Advice advices = 5;
      */
-    public com.google.api.AdviceOrBuilder getAdvicesOrBuilder(
-        int index) {
+    public com.google.api.AdviceOrBuilder getAdvicesOrBuilder(int index) {
       if (advicesBuilder_ == null) {
-        return advices_.get(index);  } else {
+        return advices_.get(index);
+      } else {
         return advicesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Collection of advice provided for this change, useful for determining the
      * possible impact of this change.
@@ -1426,8 +1580,7 @@ public com.google.api.AdviceOrBuilder getAdvicesOrBuilder(
      *
      * repeated .google.api.Advice advices = 5;
      */
-    public java.util.List 
-         getAdvicesOrBuilderList() {
+    public java.util.List getAdvicesOrBuilderList() {
       if (advicesBuilder_ != null) {
         return advicesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1435,6 +1588,8 @@ public com.google.api.AdviceOrBuilder getAdvicesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Collection of advice provided for this change, useful for determining the
      * possible impact of this change.
@@ -1442,11 +1597,12 @@ public com.google.api.AdviceOrBuilder getAdvicesOrBuilder(
      *
      * repeated .google.api.Advice advices = 5;
      */
-    public Advice.Builder addAdvicesBuilder() {
-      return getAdvicesFieldBuilder().addBuilder(
-          Advice.getDefaultInstance());
+    public com.google.api.Advice.Builder addAdvicesBuilder() {
+      return getAdvicesFieldBuilder().addBuilder(com.google.api.Advice.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Collection of advice provided for this change, useful for determining the
      * possible impact of this change.
@@ -1454,12 +1610,12 @@ public Advice.Builder addAdvicesBuilder() {
      *
      * repeated .google.api.Advice advices = 5;
      */
-    public Advice.Builder addAdvicesBuilder(
-        int index) {
-      return getAdvicesFieldBuilder().addBuilder(
-          index, Advice.getDefaultInstance());
+    public com.google.api.Advice.Builder addAdvicesBuilder(int index) {
+      return getAdvicesFieldBuilder().addBuilder(index, com.google.api.Advice.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Collection of advice provided for this change, useful for determining the
      * possible impact of this change.
@@ -1467,74 +1623,72 @@ public Advice.Builder addAdvicesBuilder(
      *
      * repeated .google.api.Advice advices = 5;
      */
-    public java.util.List
-         getAdvicesBuilderList() {
+    public java.util.List getAdvicesBuilderList() {
       return getAdvicesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        Advice, Advice.Builder, com.google.api.AdviceOrBuilder>
+            com.google.api.Advice, com.google.api.Advice.Builder, com.google.api.AdviceOrBuilder>
         getAdvicesFieldBuilder() {
       if (advicesBuilder_ == null) {
-        advicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            Advice, Advice.Builder, com.google.api.AdviceOrBuilder>(
-                advices_,
-                ((bitField0_ & 0x00000010) != 0),
-                getParentForChildren(),
-                isClean());
+        advicesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.api.Advice,
+                com.google.api.Advice.Builder,
+                com.google.api.AdviceOrBuilder>(
+                advices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         advices_ = null;
       }
       return advicesBuilder_;
     }
-    @Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+
+    @java.lang.Override
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
-    @Override
+    @java.lang.Override
     public final Builder mergeUnknownFields(
         final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.api.ConfigChange)
   }
 
   // @@protoc_insertion_point(class_scope:google.api.ConfigChange)
-  private static final ConfigChange DEFAULT_INSTANCE;
+  private static final com.google.api.ConfigChange DEFAULT_INSTANCE;
+
   static {
-    DEFAULT_INSTANCE = new ConfigChange();
+    DEFAULT_INSTANCE = new com.google.api.ConfigChange();
   }
 
-  public static ConfigChange getDefaultInstance() {
+  public static com.google.api.ConfigChange getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @Override
-    public ConfigChange parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new ConfigChange(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ConfigChange parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new ConfigChange(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
   }
 
-  @Override
+  @java.lang.Override
   public com.google.protobuf.Parser getParserForType() {
     return PARSER;
   }
 
-  @Override
-  public ConfigChange getDefaultInstanceForType() {
+  @java.lang.Override
+  public com.google.api.ConfigChange getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-common-protos/src/main/java/com/google/api/ConfigChangeOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/ConfigChangeOrBuilder.java
index ce78524e..3d2f557d 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/ConfigChangeOrBuilder.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/ConfigChangeOrBuilder.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/config_change.proto
 
 package com.google.api;
 
-public interface ConfigChangeOrBuilder extends
+public interface ConfigChangeOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.api.ConfigChange)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Object hierarchy path to the change, with levels separated by a '.'
    * character. For repeated fields, an applicable unique identifier field is
@@ -21,9 +39,13 @@ public interface ConfigChangeOrBuilder extends
    * 
* * string element = 1; + * + * @return The element. */ - String getElement(); + java.lang.String getElement(); /** + * + * *
    * Object hierarchy path to the change, with levels separated by a '.'
    * character. For repeated fields, an applicable unique identifier field is
@@ -37,68 +59,93 @@ public interface ConfigChangeOrBuilder extends
    * 
* * string element = 1; + * + * @return The bytes for element. */ - com.google.protobuf.ByteString - getElementBytes(); + com.google.protobuf.ByteString getElementBytes(); /** + * + * *
    * Value of the changed object in the old Service configuration,
    * in JSON format. This field will not be populated if ChangeType == ADDED.
    * 
* * string old_value = 2; + * + * @return The oldValue. */ - String getOldValue(); + java.lang.String getOldValue(); /** + * + * *
    * Value of the changed object in the old Service configuration,
    * in JSON format. This field will not be populated if ChangeType == ADDED.
    * 
* * string old_value = 2; + * + * @return The bytes for oldValue. */ - com.google.protobuf.ByteString - getOldValueBytes(); + com.google.protobuf.ByteString getOldValueBytes(); /** + * + * *
    * Value of the changed object in the new Service configuration,
    * in JSON format. This field will not be populated if ChangeType == REMOVED.
    * 
* * string new_value = 3; + * + * @return The newValue. */ - String getNewValue(); + java.lang.String getNewValue(); /** + * + * *
    * Value of the changed object in the new Service configuration,
    * in JSON format. This field will not be populated if ChangeType == REMOVED.
    * 
* * string new_value = 3; + * + * @return The bytes for newValue. */ - com.google.protobuf.ByteString - getNewValueBytes(); + com.google.protobuf.ByteString getNewValueBytes(); /** + * + * *
    * The type for this change, either ADDED, REMOVED, or MODIFIED.
    * 
* * .google.api.ChangeType change_type = 4; + * + * @return The enum numeric value on the wire for changeType. */ int getChangeTypeValue(); /** + * + * *
    * The type for this change, either ADDED, REMOVED, or MODIFIED.
    * 
* * .google.api.ChangeType change_type = 4; + * + * @return The changeType. */ - ChangeType getChangeType(); + com.google.api.ChangeType getChangeType(); /** + * + * *
    * Collection of advice provided for this change, useful for determining the
    * possible impact of this change.
@@ -106,9 +153,10 @@ public interface ConfigChangeOrBuilder extends
    *
    * repeated .google.api.Advice advices = 5;
    */
-  java.util.List
-      getAdvicesList();
+  java.util.List getAdvicesList();
   /**
+   *
+   *
    * 
    * Collection of advice provided for this change, useful for determining the
    * possible impact of this change.
@@ -116,8 +164,10 @@ public interface ConfigChangeOrBuilder extends
    *
    * repeated .google.api.Advice advices = 5;
    */
-  Advice getAdvices(int index);
+  com.google.api.Advice getAdvices(int index);
   /**
+   *
+   *
    * 
    * Collection of advice provided for this change, useful for determining the
    * possible impact of this change.
@@ -127,6 +177,8 @@ public interface ConfigChangeOrBuilder extends
    */
   int getAdvicesCount();
   /**
+   *
+   *
    * 
    * Collection of advice provided for this change, useful for determining the
    * possible impact of this change.
@@ -134,9 +186,10 @@ public interface ConfigChangeOrBuilder extends
    *
    * repeated .google.api.Advice advices = 5;
    */
-  java.util.List
-      getAdvicesOrBuilderList();
+  java.util.List getAdvicesOrBuilderList();
   /**
+   *
+   *
    * 
    * Collection of advice provided for this change, useful for determining the
    * possible impact of this change.
@@ -144,6 +197,5 @@ public interface ConfigChangeOrBuilder extends
    *
    * repeated .google.api.Advice advices = 5;
    */
-  AdviceOrBuilder getAdvicesOrBuilder(
-      int index);
+  com.google.api.AdviceOrBuilder getAdvicesOrBuilder(int index);
 }
diff --git a/proto-google-common-protos/src/main/java/com/google/api/ConfigChangeProto.java b/proto-google-common-protos/src/main/java/com/google/api/ConfigChangeProto.java
index e6cf2846..d9573bcd 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/ConfigChangeProto.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/ConfigChangeProto.java
@@ -1,3 +1,18 @@
+/*
+ * 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
 
@@ -5,70 +20,59 @@
 
 public final class ConfigChangeProto {
   private ConfigChangeProto() {}
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistryLite registry) {
-  }
 
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions(
-        (com.google.protobuf.ExtensionRegistryLite) registry);
+  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_ConfigChange_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_ConfigChange_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_ConfigChange_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_api_Advice_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_Advice_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_Advice_fieldAccessorTable;
 
-  public static com.google.protobuf.Descriptors.FileDescriptor
-      getDescriptor() {
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     return descriptor;
   }
-  private static  com.google.protobuf.Descriptors.FileDescriptor
-      descriptor;
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
   static {
-    String[] descriptorData = {
-      "\n\036google/api/config_change.proto\022\ngoogle" +
-      ".api\"\227\001\n\014ConfigChange\022\017\n\007element\030\001 \001(\t\022\021" +
-      "\n\told_value\030\002 \001(\t\022\021\n\tnew_value\030\003 \001(\t\022+\n\013" +
-      "change_type\030\004 \001(\0162\026.google.api.ChangeTyp" +
-      "e\022#\n\007advices\030\005 \003(\0132\022.google.api.Advice\"\035" +
-      "\n\006Advice\022\023\n\013description\030\002 \001(\t*O\n\nChangeT" +
-      "ype\022\033\n\027CHANGE_TYPE_UNSPECIFIED\020\000\022\t\n\005ADDE" +
-      "D\020\001\022\013\n\007REMOVED\020\002\022\014\n\010MODIFIED\020\003Bq\n\016com.go" +
-      "ogle.apiB\021ConfigChangeProtoP\001ZCgoogle.go" +
-      "lang.org/genproto/googleapis/api/configc" +
-      "hange;configchange\242\002\004GAPIb\006proto3"
+    java.lang.String[] descriptorData = {
+      "\n\036google/api/config_change.proto\022\ngoogle"
+          + ".api\"\227\001\n\014ConfigChange\022\017\n\007element\030\001 \001(\t\022\021"
+          + "\n\told_value\030\002 \001(\t\022\021\n\tnew_value\030\003 \001(\t\022+\n\013"
+          + "change_type\030\004 \001(\0162\026.google.api.ChangeTyp"
+          + "e\022#\n\007advices\030\005 \003(\0132\022.google.api.Advice\"\035"
+          + "\n\006Advice\022\023\n\013description\030\002 \001(\t*O\n\nChangeT"
+          + "ype\022\033\n\027CHANGE_TYPE_UNSPECIFIED\020\000\022\t\n\005ADDE"
+          + "D\020\001\022\013\n\007REMOVED\020\002\022\014\n\010MODIFIED\020\003Bq\n\016com.go"
+          + "ogle.apiB\021ConfigChangeProtoP\001ZCgoogle.go"
+          + "lang.org/genproto/googleapis/api/configc"
+          + "hange;configchange\242\002\004GAPIb\006proto3"
     };
-    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
-        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
-          public com.google.protobuf.ExtensionRegistry assignDescriptors(
-              com.google.protobuf.Descriptors.FileDescriptor root) {
-            descriptor = root;
-            return null;
-          }
-        };
-    com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-        }, assigner);
-    internal_static_google_api_ConfigChange_descriptor =
-      getDescriptor().getMessageTypes().get(0);
-    internal_static_google_api_ConfigChange_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_ConfigChange_descriptor,
-        new String[] { "Element", "OldValue", "NewValue", "ChangeType", "Advices", });
-    internal_static_google_api_Advice_descriptor =
-      getDescriptor().getMessageTypes().get(1);
-    internal_static_google_api_Advice_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_Advice_descriptor,
-        new String[] { "Description", });
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
+    internal_static_google_api_ConfigChange_descriptor = getDescriptor().getMessageTypes().get(0);
+    internal_static_google_api_ConfigChange_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_ConfigChange_descriptor,
+            new java.lang.String[] {
+              "Element", "OldValue", "NewValue", "ChangeType", "Advices",
+            });
+    internal_static_google_api_Advice_descriptor = getDescriptor().getMessageTypes().get(1);
+    internal_static_google_api_Advice_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_Advice_descriptor,
+            new java.lang.String[] {
+              "Description",
+            });
   }
 
   // @@protoc_insertion_point(outer_class_scope)
diff --git a/proto-google-common-protos/src/main/java/com/google/api/ConsumerProto.java b/proto-google-common-protos/src/main/java/com/google/api/ConsumerProto.java
index c4070c17..474e1830 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/ConsumerProto.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/ConsumerProto.java
@@ -1,3 +1,18 @@
+/*
+ * 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/consumer.proto
 
@@ -5,69 +20,59 @@
 
 public final class ConsumerProto {
   private ConsumerProto() {}
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistryLite registry) {
-  }
 
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions(
-        (com.google.protobuf.ExtensionRegistryLite) registry);
+  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_ProjectProperties_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_ProjectProperties_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_ProjectProperties_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_api_Property_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_Property_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_Property_fieldAccessorTable;
 
-  public static com.google.protobuf.Descriptors.FileDescriptor
-      getDescriptor() {
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     return descriptor;
   }
-  private static  com.google.protobuf.Descriptors.FileDescriptor
-      descriptor;
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
   static {
-    String[] descriptorData = {
-      "\n\031google/api/consumer.proto\022\ngoogle.api\"" +
-      "=\n\021ProjectProperties\022(\n\nproperties\030\001 \003(\013" +
-      "2\024.google.api.Property\"\254\001\n\010Property\022\014\n\004n" +
-      "ame\030\001 \001(\t\022/\n\004type\030\002 \001(\0162!.google.api.Pro" +
-      "perty.PropertyType\022\023\n\013description\030\003 \001(\t\"" +
-      "L\n\014PropertyType\022\017\n\013UNSPECIFIED\020\000\022\t\n\005INT6" +
-      "4\020\001\022\010\n\004BOOL\020\002\022\n\n\006STRING\020\003\022\n\n\006DOUBLE\020\004Bh\n" +
-      "\016com.google.apiB\rConsumerProtoP\001ZEgoogle" +
-      ".golang.org/genproto/googleapis/api/serv" +
-      "iceconfig;serviceconfigb\006proto3"
+    java.lang.String[] descriptorData = {
+      "\n\031google/api/consumer.proto\022\ngoogle.api\""
+          + "=\n\021ProjectProperties\022(\n\nproperties\030\001 \003(\013"
+          + "2\024.google.api.Property\"\254\001\n\010Property\022\014\n\004n"
+          + "ame\030\001 \001(\t\022/\n\004type\030\002 \001(\0162!.google.api.Pro"
+          + "perty.PropertyType\022\023\n\013description\030\003 \001(\t\""
+          + "L\n\014PropertyType\022\017\n\013UNSPECIFIED\020\000\022\t\n\005INT6"
+          + "4\020\001\022\010\n\004BOOL\020\002\022\n\n\006STRING\020\003\022\n\n\006DOUBLE\020\004Bh\n"
+          + "\016com.google.apiB\rConsumerProtoP\001ZEgoogle"
+          + ".golang.org/genproto/googleapis/api/serv"
+          + "iceconfig;serviceconfigb\006proto3"
     };
-    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
-        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
-          public com.google.protobuf.ExtensionRegistry assignDescriptors(
-              com.google.protobuf.Descriptors.FileDescriptor root) {
-            descriptor = root;
-            return null;
-          }
-        };
-    com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-        }, assigner);
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
     internal_static_google_api_ProjectProperties_descriptor =
-      getDescriptor().getMessageTypes().get(0);
-    internal_static_google_api_ProjectProperties_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_ProjectProperties_descriptor,
-        new String[] { "Properties", });
-    internal_static_google_api_Property_descriptor =
-      getDescriptor().getMessageTypes().get(1);
-    internal_static_google_api_Property_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_Property_descriptor,
-        new String[] { "Name", "Type", "Description", });
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_api_ProjectProperties_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_ProjectProperties_descriptor,
+            new java.lang.String[] {
+              "Properties",
+            });
+    internal_static_google_api_Property_descriptor = getDescriptor().getMessageTypes().get(1);
+    internal_static_google_api_Property_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_Property_descriptor,
+            new java.lang.String[] {
+              "Name", "Type", "Description",
+            });
   }
 
   // @@protoc_insertion_point(outer_class_scope)
diff --git a/proto-google-common-protos/src/main/java/com/google/api/Context.java b/proto-google-common-protos/src/main/java/com/google/api/Context.java
index 712b1986..333602f1 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/Context.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/Context.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/context.proto
 
 package com.google.api;
 
 /**
+ *
+ *
  * 
  * `Context` defines which contexts an API requests.
  * Example:
@@ -37,31 +54,38 @@
  *
  * Protobuf type {@code google.api.Context}
  */
-public  final class Context extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Context extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.Context)
     ContextOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Context.newBuilder() to construct.
   private Context(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Context() {
     rules_ = java.util.Collections.emptyList();
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new Context();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Context(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -74,29 +98,28 @@ private Context(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              rules_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                rules_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              rules_.add(input.readMessage(com.google.api.ContextRule.parser(), extensionRegistry));
+              break;
             }
-            rules_.add(
-                input.readMessage(com.google.api.ContextRule.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         rules_ = java.util.Collections.unmodifiableList(rules_);
@@ -105,22 +128,24 @@ private Context(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.ContextProto.internal_static_google_api_Context_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return com.google.api.ContextProto.internal_static_google_api_Context_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            Context.class, Builder.class);
+            com.google.api.Context.class, com.google.api.Context.Builder.class);
   }
 
   public static final int RULES_FIELD_NUMBER = 1;
   private java.util.List rules_;
   /**
+   *
+   *
    * 
    * A list of RPC context rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -132,6 +157,8 @@ public java.util.List getRulesList() {
     return rules_;
   }
   /**
+   *
+   *
    * 
    * A list of RPC context rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -139,11 +166,12 @@ public java.util.List getRulesList() {
    *
    * repeated .google.api.ContextRule rules = 1;
    */
-  public java.util.List 
-      getRulesOrBuilderList() {
+  public java.util.List getRulesOrBuilderList() {
     return rules_;
   }
   /**
+   *
+   *
    * 
    * A list of RPC context rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -155,6 +183,8 @@ public int getRulesCount() {
     return rules_.size();
   }
   /**
+   *
+   *
    * 
    * A list of RPC context rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -166,6 +196,8 @@ public com.google.api.ContextRule getRules(int index) {
     return rules_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of RPC context rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -173,13 +205,13 @@ public com.google.api.ContextRule getRules(int index) {
    *
    * repeated .google.api.ContextRule rules = 1;
    */
-  public com.google.api.ContextRuleOrBuilder getRulesOrBuilder(
-      int index) {
+  public com.google.api.ContextRuleOrBuilder getRulesOrBuilder(int index) {
     return rules_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-  @Override
+
+  @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
     if (isInitialized == 1) return true;
@@ -189,47 +221,44 @@ public final boolean isInitialized() {
     return true;
   }
 
-  @Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  @java.lang.Override
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < rules_.size(); i++) {
       output.writeMessage(1, rules_.get(i));
     }
     unknownFields.writeTo(output);
   }
 
-  @Override
+  @java.lang.Override
   public int getSerializedSize() {
     int size = memoizedSize;
     if (size != -1) return size;
 
     size = 0;
     for (int i = 0; i < rules_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, rules_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, rules_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
     return size;
   }
 
-  @Override
-  public boolean equals(final Object obj) {
+  @java.lang.Override
+  public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
-    if (!(obj instanceof Context)) {
+    if (!(obj instanceof com.google.api.Context)) {
       return super.equals(obj);
     }
-    Context other = (Context) obj;
+    com.google.api.Context other = (com.google.api.Context) obj;
 
-    if (!getRulesList()
-        .equals(other.getRulesList())) return false;
+    if (!getRulesList().equals(other.getRulesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
 
-  @Override
+  @java.lang.Override
   public int hashCode() {
     if (memoizedHashCode != 0) {
       return memoizedHashCode;
@@ -245,97 +274,103 @@ public int hashCode() {
     return hash;
   }
 
-  public static Context parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.api.Context parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Context parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Context parseFrom(
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Context parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.api.Context parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Context parseFrom(
+
+  public static com.google.api.Context parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Context parseFrom(byte[] data)
+
+  public static com.google.api.Context parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Context parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Context parseFrom(
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Context parseFrom(java.io.InputStream input)
+
+  public static com.google.api.Context 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 Context parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Context parseFrom(
+      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 Context parseDelimitedFrom(java.io.InputStream input)
+
+  public static com.google.api.Context 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 Context parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Context parseDelimitedFrom(
+      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 Context parseFrom(
-      com.google.protobuf.CodedInputStream input)
+
+  public static com.google.api.Context 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 Context parseFrom(
+
+  public static com.google.api.Context 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();
   }
 
-  @Override
-  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(Context prototype) {
+
+  public static Builder newBuilder(com.google.api.Context prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-  @Override
+
+  @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);
   }
 
-  @Override
-  protected Builder newBuilderForType(
-      BuilderParent parent) {
+  @java.lang.Override
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * `Context` defines which contexts an API requests.
    * Example:
@@ -369,21 +404,20 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.Context}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.Context)
       com.google.api.ContextOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.api.ContextProto.internal_static_google_api_Context_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return com.google.api.ContextProto.internal_static_google_api_Context_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              Context.class, Builder.class);
+              com.google.api.Context.class, com.google.api.Context.Builder.class);
     }
 
     // Construct using com.google.api.Context.newBuilder()
@@ -391,18 +425,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getRulesFieldBuilder();
       }
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       if (rulesBuilder_ == null) {
@@ -414,29 +448,28 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.api.ContextProto.internal_static_google_api_Context_descriptor;
     }
 
-    @Override
-    public Context getDefaultInstanceForType() {
-      return Context.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.Context getDefaultInstanceForType() {
+      return com.google.api.Context.getDefaultInstance();
     }
 
-    @Override
-    public Context build() {
-      Context result = buildPartial();
+    @java.lang.Override
+    public com.google.api.Context build() {
+      com.google.api.Context result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public Context buildPartial() {
-      Context result = new Context(this);
+    @java.lang.Override
+    public com.google.api.Context buildPartial() {
+      com.google.api.Context result = new com.google.api.Context(this);
       int from_bitField0_ = bitField0_;
       if (rulesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -451,50 +484,51 @@ public Context buildPartial() {
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof Context) {
-        return mergeFrom((Context)other);
+      if (other instanceof com.google.api.Context) {
+        return mergeFrom((com.google.api.Context) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(Context other) {
-      if (other == Context.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.Context other) {
+      if (other == com.google.api.Context.getDefaultInstance()) return this;
       if (rulesBuilder_ == null) {
         if (!other.rules_.isEmpty()) {
           if (rules_.isEmpty()) {
@@ -513,9 +547,10 @@ public Builder mergeFrom(Context 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_);
           }
@@ -526,21 +561,21 @@ public Builder mergeFrom(Context other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      Context parsedMessage = null;
+      com.google.api.Context parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (Context) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.Context) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -549,21 +584,27 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List rules_ =
-      java.util.Collections.emptyList();
+    private java.util.List rules_ = 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.ContextRule, com.google.api.ContextRule.Builder, com.google.api.ContextRuleOrBuilder> rulesBuilder_;
+            com.google.api.ContextRule,
+            com.google.api.ContextRule.Builder,
+            com.google.api.ContextRuleOrBuilder>
+        rulesBuilder_;
 
     /**
+     *
+     *
      * 
      * A list of RPC context rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -579,6 +620,8 @@ public java.util.List getRulesList() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of RPC context rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -594,6 +637,8 @@ public int getRulesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of RPC context rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -609,6 +654,8 @@ public com.google.api.ContextRule getRules(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of RPC context rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -616,8 +663,7 @@ public com.google.api.ContextRule getRules(int index) {
      *
      * repeated .google.api.ContextRule rules = 1;
      */
-    public Builder setRules(
-        int index, com.google.api.ContextRule value) {
+    public Builder setRules(int index, com.google.api.ContextRule value) {
       if (rulesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -631,6 +677,8 @@ public Builder setRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of RPC context rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -638,8 +686,7 @@ public Builder setRules(
      *
      * repeated .google.api.ContextRule rules = 1;
      */
-    public Builder setRules(
-        int index, com.google.api.ContextRule.Builder builderForValue) {
+    public Builder setRules(int index, com.google.api.ContextRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.set(index, builderForValue.build());
@@ -650,6 +697,8 @@ public Builder setRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of RPC context rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -671,6 +720,8 @@ public Builder addRules(com.google.api.ContextRule value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of RPC context rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -678,8 +729,7 @@ public Builder addRules(com.google.api.ContextRule value) {
      *
      * repeated .google.api.ContextRule rules = 1;
      */
-    public Builder addRules(
-        int index, com.google.api.ContextRule value) {
+    public Builder addRules(int index, com.google.api.ContextRule value) {
       if (rulesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -693,6 +743,8 @@ public Builder addRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of RPC context rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -700,8 +752,7 @@ public Builder addRules(
      *
      * repeated .google.api.ContextRule rules = 1;
      */
-    public Builder addRules(
-        com.google.api.ContextRule.Builder builderForValue) {
+    public Builder addRules(com.google.api.ContextRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.add(builderForValue.build());
@@ -712,6 +763,8 @@ public Builder addRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of RPC context rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -719,8 +772,7 @@ public Builder addRules(
      *
      * repeated .google.api.ContextRule rules = 1;
      */
-    public Builder addRules(
-        int index, com.google.api.ContextRule.Builder builderForValue) {
+    public Builder addRules(int index, com.google.api.ContextRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.add(index, builderForValue.build());
@@ -731,6 +783,8 @@ public Builder addRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of RPC context rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -738,12 +792,10 @@ public Builder addRules(
      *
      * repeated .google.api.ContextRule rules = 1;
      */
-    public Builder addAllRules(
-        Iterable values) {
+    public Builder addAllRules(java.lang.Iterable 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);
@@ -751,6 +803,8 @@ public Builder addAllRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of RPC context rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -769,6 +823,8 @@ public Builder clearRules() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of RPC context rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -787,6 +843,8 @@ public Builder removeRules(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of RPC context rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -794,11 +852,12 @@ public Builder removeRules(int index) {
      *
      * repeated .google.api.ContextRule rules = 1;
      */
-    public com.google.api.ContextRule.Builder getRulesBuilder(
-        int index) {
+    public com.google.api.ContextRule.Builder getRulesBuilder(int index) {
       return getRulesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of RPC context rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -806,14 +865,16 @@ public com.google.api.ContextRule.Builder getRulesBuilder(
      *
      * repeated .google.api.ContextRule rules = 1;
      */
-    public com.google.api.ContextRuleOrBuilder getRulesOrBuilder(
-        int index) {
+    public com.google.api.ContextRuleOrBuilder getRulesOrBuilder(int index) {
       if (rulesBuilder_ == null) {
-        return rules_.get(index);  } else {
+        return rules_.get(index);
+      } else {
         return rulesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of RPC context rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -821,8 +882,7 @@ public com.google.api.ContextRuleOrBuilder getRulesOrBuilder(
      *
      * repeated .google.api.ContextRule rules = 1;
      */
-    public java.util.List 
-         getRulesOrBuilderList() {
+    public java.util.List getRulesOrBuilderList() {
       if (rulesBuilder_ != null) {
         return rulesBuilder_.getMessageOrBuilderList();
       } else {
@@ -830,6 +890,8 @@ public com.google.api.ContextRuleOrBuilder getRulesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * A list of RPC context rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -838,10 +900,11 @@ public com.google.api.ContextRuleOrBuilder getRulesOrBuilder(
      * repeated .google.api.ContextRule rules = 1;
      */
     public com.google.api.ContextRule.Builder addRulesBuilder() {
-      return getRulesFieldBuilder().addBuilder(
-          com.google.api.ContextRule.getDefaultInstance());
+      return getRulesFieldBuilder().addBuilder(com.google.api.ContextRule.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of RPC context rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -849,12 +912,13 @@ public com.google.api.ContextRule.Builder addRulesBuilder() {
      *
      * repeated .google.api.ContextRule rules = 1;
      */
-    public com.google.api.ContextRule.Builder addRulesBuilder(
-        int index) {
-      return getRulesFieldBuilder().addBuilder(
-          index, com.google.api.ContextRule.getDefaultInstance());
+    public com.google.api.ContextRule.Builder addRulesBuilder(int index) {
+      return getRulesFieldBuilder()
+          .addBuilder(index, com.google.api.ContextRule.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of RPC context rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -862,74 +926,74 @@ public com.google.api.ContextRule.Builder addRulesBuilder(
      *
      * repeated .google.api.ContextRule rules = 1;
      */
-    public java.util.List 
-         getRulesBuilderList() {
+    public java.util.List getRulesBuilderList() {
       return getRulesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.api.ContextRule, com.google.api.ContextRule.Builder, com.google.api.ContextRuleOrBuilder> 
+            com.google.api.ContextRule,
+            com.google.api.ContextRule.Builder,
+            com.google.api.ContextRuleOrBuilder>
         getRulesFieldBuilder() {
       if (rulesBuilder_ == null) {
-        rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.api.ContextRule, com.google.api.ContextRule.Builder, com.google.api.ContextRuleOrBuilder>(
-                rules_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        rulesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.api.ContextRule,
+                com.google.api.ContextRule.Builder,
+                com.google.api.ContextRuleOrBuilder>(
+                rules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         rules_ = null;
       }
       return rulesBuilder_;
     }
-    @Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+
+    @java.lang.Override
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
-    @Override
+    @java.lang.Override
     public final Builder mergeUnknownFields(
         final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.api.Context)
   }
 
   // @@protoc_insertion_point(class_scope:google.api.Context)
-  private static final Context DEFAULT_INSTANCE;
+  private static final com.google.api.Context DEFAULT_INSTANCE;
+
   static {
-    DEFAULT_INSTANCE = new Context();
+    DEFAULT_INSTANCE = new com.google.api.Context();
   }
 
-  public static Context getDefaultInstance() {
+  public static com.google.api.Context getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @Override
-    public Context parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Context(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Context parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Context(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
   }
 
-  @Override
+  @java.lang.Override
   public com.google.protobuf.Parser getParserForType() {
     return PARSER;
   }
 
-  @Override
-  public Context getDefaultInstanceForType() {
+  @java.lang.Override
+  public com.google.api.Context getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-common-protos/src/main/java/com/google/api/ContextOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/ContextOrBuilder.java
index 34ce0370..f7018ada 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/ContextOrBuilder.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/ContextOrBuilder.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/context.proto
 
 package com.google.api;
 
-public interface ContextOrBuilder extends
+public interface ContextOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.api.Context)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A list of RPC context rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -15,9 +33,10 @@ public interface ContextOrBuilder extends
    *
    * repeated .google.api.ContextRule rules = 1;
    */
-  java.util.List
-      getRulesList();
+  java.util.List getRulesList();
   /**
+   *
+   *
    * 
    * A list of RPC context rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -25,8 +44,10 @@ public interface ContextOrBuilder extends
    *
    * repeated .google.api.ContextRule rules = 1;
    */
-  ContextRule getRules(int index);
+  com.google.api.ContextRule getRules(int index);
   /**
+   *
+   *
    * 
    * A list of RPC context rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -36,6 +57,8 @@ public interface ContextOrBuilder extends
    */
   int getRulesCount();
   /**
+   *
+   *
    * 
    * A list of RPC context rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -43,9 +66,10 @@ public interface ContextOrBuilder extends
    *
    * repeated .google.api.ContextRule rules = 1;
    */
-  java.util.List 
-      getRulesOrBuilderList();
+  java.util.List getRulesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of RPC context rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -53,6 +77,5 @@ public interface ContextOrBuilder extends
    *
    * repeated .google.api.ContextRule rules = 1;
    */
-  com.google.api.ContextRuleOrBuilder getRulesOrBuilder(
-      int index);
+  com.google.api.ContextRuleOrBuilder getRulesOrBuilder(int index);
 }
diff --git a/proto-google-common-protos/src/main/java/com/google/api/ContextProto.java b/proto-google-common-protos/src/main/java/com/google/api/ContextProto.java
index 9d44b348..c06990e8 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/ContextProto.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/ContextProto.java
@@ -1,3 +1,18 @@
+/*
+ * 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/context.proto
 
@@ -5,68 +20,61 @@
 
 public final class ContextProto {
   private ContextProto() {}
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistryLite registry) {
-  }
 
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions(
-        (com.google.protobuf.ExtensionRegistryLite) registry);
+  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_Context_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_Context_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_Context_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_api_ContextRule_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_ContextRule_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_ContextRule_fieldAccessorTable;
 
-  public static com.google.protobuf.Descriptors.FileDescriptor
-      getDescriptor() {
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     return descriptor;
   }
-  private static  com.google.protobuf.Descriptors.FileDescriptor
-      descriptor;
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
   static {
-    String[] descriptorData = {
-      "\n\030google/api/context.proto\022\ngoogle.api\"1" +
-      "\n\007Context\022&\n\005rules\030\001 \003(\0132\027.google.api.Co" +
-      "ntextRule\"\215\001\n\013ContextRule\022\020\n\010selector\030\001 " +
-      "\001(\t\022\021\n\trequested\030\002 \003(\t\022\020\n\010provided\030\003 \003(\t" +
-      "\022\"\n\032allowed_request_extensions\030\004 \003(\t\022#\n\033" +
-      "allowed_response_extensions\030\005 \003(\tBn\n\016com" +
-      ".google.apiB\014ContextProtoP\001ZEgoogle.gola" +
-      "ng.org/genproto/googleapis/api/serviceco" +
-      "nfig;serviceconfig\242\002\004GAPIb\006proto3"
+    java.lang.String[] descriptorData = {
+      "\n\030google/api/context.proto\022\ngoogle.api\"1"
+          + "\n\007Context\022&\n\005rules\030\001 \003(\0132\027.google.api.Co"
+          + "ntextRule\"\215\001\n\013ContextRule\022\020\n\010selector\030\001 "
+          + "\001(\t\022\021\n\trequested\030\002 \003(\t\022\020\n\010provided\030\003 \003(\t"
+          + "\022\"\n\032allowed_request_extensions\030\004 \003(\t\022#\n\033"
+          + "allowed_response_extensions\030\005 \003(\tBn\n\016com"
+          + ".google.apiB\014ContextProtoP\001ZEgoogle.gola"
+          + "ng.org/genproto/googleapis/api/serviceco"
+          + "nfig;serviceconfig\242\002\004GAPIb\006proto3"
     };
-    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
-        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
-          public com.google.protobuf.ExtensionRegistry assignDescriptors(
-              com.google.protobuf.Descriptors.FileDescriptor root) {
-            descriptor = root;
-            return null;
-          }
-        };
-    com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-        }, assigner);
-    internal_static_google_api_Context_descriptor =
-      getDescriptor().getMessageTypes().get(0);
-    internal_static_google_api_Context_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_Context_descriptor,
-        new String[] { "Rules", });
-    internal_static_google_api_ContextRule_descriptor =
-      getDescriptor().getMessageTypes().get(1);
-    internal_static_google_api_ContextRule_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_ContextRule_descriptor,
-        new String[] { "Selector", "Requested", "Provided", "AllowedRequestExtensions", "AllowedResponseExtensions", });
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
+    internal_static_google_api_Context_descriptor = getDescriptor().getMessageTypes().get(0);
+    internal_static_google_api_Context_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_Context_descriptor,
+            new java.lang.String[] {
+              "Rules",
+            });
+    internal_static_google_api_ContextRule_descriptor = getDescriptor().getMessageTypes().get(1);
+    internal_static_google_api_ContextRule_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_ContextRule_descriptor,
+            new java.lang.String[] {
+              "Selector",
+              "Requested",
+              "Provided",
+              "AllowedRequestExtensions",
+              "AllowedResponseExtensions",
+            });
   }
 
   // @@protoc_insertion_point(outer_class_scope)
diff --git a/proto-google-common-protos/src/main/java/com/google/api/ContextRule.java b/proto-google-common-protos/src/main/java/com/google/api/ContextRule.java
index 25a858fb..bdff4d41 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/ContextRule.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/ContextRule.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/context.proto
 
 package com.google.api;
 
 /**
+ *
+ *
  * 
  * A context rule provides information about the context for an individual API
  * element.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.api.ContextRule}
  */
-public  final class ContextRule extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ContextRule extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.ContextRule)
     ContextRuleOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ContextRule.newBuilder() to construct.
   private ContextRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ContextRule() {
     selector_ = "";
     requested_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -28,18 +46,24 @@ private ContextRule() {
     allowedResponseExtensions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new ContextRule();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ContextRule(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -52,130 +76,138 @@ private ContextRule(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            selector_ = s;
-            break;
-          }
-          case 18: {
-            String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              requested_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000002;
+              selector_ = s;
+              break;
             }
-            requested_.add(s);
-            break;
-          }
-          case 26: {
-            String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              provided_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000004;
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                requested_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              requested_.add(s);
+              break;
             }
-            provided_.add(s);
-            break;
-          }
-          case 34: {
-            String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
-              allowedRequestExtensions_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000008;
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                provided_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              provided_.add(s);
+              break;
             }
-            allowedRequestExtensions_.add(s);
-            break;
-          }
-          case 42: {
-            String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000010) != 0)) {
-              allowedResponseExtensions_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000010;
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+                allowedRequestExtensions_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000004;
+              }
+              allowedRequestExtensions_.add(s);
+              break;
             }
-            allowedResponseExtensions_.add(s);
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000008) != 0)) {
+                allowedResponseExtensions_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000008;
+              }
+              allowedResponseExtensions_.add(s);
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
-      if (((mutable_bitField0_ & 0x00000002) != 0)) {
+      if (((mutable_bitField0_ & 0x00000001) != 0)) {
         requested_ = requested_.getUnmodifiableView();
       }
-      if (((mutable_bitField0_ & 0x00000004) != 0)) {
+      if (((mutable_bitField0_ & 0x00000002) != 0)) {
         provided_ = provided_.getUnmodifiableView();
       }
-      if (((mutable_bitField0_ & 0x00000008) != 0)) {
+      if (((mutable_bitField0_ & 0x00000004) != 0)) {
         allowedRequestExtensions_ = allowedRequestExtensions_.getUnmodifiableView();
       }
-      if (((mutable_bitField0_ & 0x00000010) != 0)) {
+      if (((mutable_bitField0_ & 0x00000008) != 0)) {
         allowedResponseExtensions_ = allowedResponseExtensions_.getUnmodifiableView();
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.ContextProto.internal_static_google_api_ContextRule_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return com.google.api.ContextProto.internal_static_google_api_ContextRule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            ContextRule.class, Builder.class);
+            com.google.api.ContextRule.class, com.google.api.ContextRule.Builder.class);
   }
 
-  private int bitField0_;
   public static final int SELECTOR_FIELD_NUMBER = 1;
-  private volatile Object selector_;
+  private volatile java.lang.Object selector_;
   /**
+   *
+   *
    * 
    * Selects the methods to which this rule applies.
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
    * 
* * string selector = 1; + * + * @return The selector. */ - public String getSelector() { - Object ref = selector_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getSelector() { + java.lang.Object ref = selector_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); selector_ = s; return s; } } /** + * + * *
    * Selects the methods to which this rule applies.
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
    * 
* * string selector = 1; + * + * @return The bytes for selector. */ - public com.google.protobuf.ByteString - getSelectorBytes() { - Object ref = selector_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getSelectorBytes() { + java.lang.Object ref = selector_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); selector_ = b; return b; } else { @@ -186,193 +218,258 @@ public String getSelector() { public static final int REQUESTED_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList requested_; /** + * + * *
    * A list of full type names of requested contexts.
    * 
* * repeated string requested = 2; + * + * @return A list containing the requested. */ - public com.google.protobuf.ProtocolStringList - getRequestedList() { + public com.google.protobuf.ProtocolStringList getRequestedList() { return requested_; } /** + * + * *
    * A list of full type names of requested contexts.
    * 
* * repeated string requested = 2; + * + * @return The count of requested. */ public int getRequestedCount() { return requested_.size(); } /** + * + * *
    * A list of full type names of requested contexts.
    * 
* * repeated string requested = 2; + * + * @param index The index of the element to return. + * @return The requested at the given index. */ - public String getRequested(int index) { + public java.lang.String getRequested(int index) { return requested_.get(index); } /** + * + * *
    * A list of full type names of requested contexts.
    * 
* * repeated string requested = 2; + * + * @param index The index of the value to return. + * @return The bytes of the requested at the given index. */ - public com.google.protobuf.ByteString - getRequestedBytes(int index) { + public com.google.protobuf.ByteString getRequestedBytes(int index) { return requested_.getByteString(index); } public static final int PROVIDED_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList provided_; /** + * + * *
    * A list of full type names of provided contexts.
    * 
* * repeated string provided = 3; + * + * @return A list containing the provided. */ - public com.google.protobuf.ProtocolStringList - getProvidedList() { + public com.google.protobuf.ProtocolStringList getProvidedList() { return provided_; } /** + * + * *
    * A list of full type names of provided contexts.
    * 
* * repeated string provided = 3; + * + * @return The count of provided. */ public int getProvidedCount() { return provided_.size(); } /** + * + * *
    * A list of full type names of provided contexts.
    * 
* * repeated string provided = 3; + * + * @param index The index of the element to return. + * @return The provided at the given index. */ - public String getProvided(int index) { + public java.lang.String getProvided(int index) { return provided_.get(index); } /** + * + * *
    * A list of full type names of provided contexts.
    * 
* * repeated string provided = 3; + * + * @param index The index of the value to return. + * @return The bytes of the provided at the given index. */ - public com.google.protobuf.ByteString - getProvidedBytes(int index) { + public com.google.protobuf.ByteString getProvidedBytes(int index) { return provided_.getByteString(index); } public static final int ALLOWED_REQUEST_EXTENSIONS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList allowedRequestExtensions_; /** + * + * *
    * A list of full type names or extension IDs of extensions allowed in grpc
    * side channel from client to backend.
    * 
* * repeated string allowed_request_extensions = 4; + * + * @return A list containing the allowedRequestExtensions. */ - public com.google.protobuf.ProtocolStringList - getAllowedRequestExtensionsList() { + public com.google.protobuf.ProtocolStringList getAllowedRequestExtensionsList() { return allowedRequestExtensions_; } /** + * + * *
    * A list of full type names or extension IDs of extensions allowed in grpc
    * side channel from client to backend.
    * 
* * repeated string allowed_request_extensions = 4; + * + * @return The count of allowedRequestExtensions. */ public int getAllowedRequestExtensionsCount() { return allowedRequestExtensions_.size(); } /** + * + * *
    * A list of full type names or extension IDs of extensions allowed in grpc
    * side channel from client to backend.
    * 
* * repeated string allowed_request_extensions = 4; + * + * @param index The index of the element to return. + * @return The allowedRequestExtensions at the given index. */ - public String getAllowedRequestExtensions(int index) { + public java.lang.String getAllowedRequestExtensions(int index) { return allowedRequestExtensions_.get(index); } /** + * + * *
    * A list of full type names or extension IDs of extensions allowed in grpc
    * side channel from client to backend.
    * 
* * repeated string allowed_request_extensions = 4; + * + * @param index The index of the value to return. + * @return The bytes of the allowedRequestExtensions at the given index. */ - public com.google.protobuf.ByteString - getAllowedRequestExtensionsBytes(int index) { + public com.google.protobuf.ByteString getAllowedRequestExtensionsBytes(int index) { return allowedRequestExtensions_.getByteString(index); } public static final int ALLOWED_RESPONSE_EXTENSIONS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList allowedResponseExtensions_; /** + * + * *
    * A list of full type names or extension IDs of extensions allowed in grpc
    * side channel from backend to client.
    * 
* * repeated string allowed_response_extensions = 5; + * + * @return A list containing the allowedResponseExtensions. */ - public com.google.protobuf.ProtocolStringList - getAllowedResponseExtensionsList() { + public com.google.protobuf.ProtocolStringList getAllowedResponseExtensionsList() { return allowedResponseExtensions_; } /** + * + * *
    * A list of full type names or extension IDs of extensions allowed in grpc
    * side channel from backend to client.
    * 
* * repeated string allowed_response_extensions = 5; + * + * @return The count of allowedResponseExtensions. */ public int getAllowedResponseExtensionsCount() { return allowedResponseExtensions_.size(); } /** + * + * *
    * A list of full type names or extension IDs of extensions allowed in grpc
    * side channel from backend to client.
    * 
* * repeated string allowed_response_extensions = 5; + * + * @param index The index of the element to return. + * @return The allowedResponseExtensions at the given index. */ - public String getAllowedResponseExtensions(int index) { + public java.lang.String getAllowedResponseExtensions(int index) { return allowedResponseExtensions_.get(index); } /** + * + * *
    * A list of full type names or extension IDs of extensions allowed in grpc
    * side channel from backend to client.
    * 
* * repeated string allowed_response_extensions = 5; + * + * @param index The index of the value to return. + * @return The bytes of the allowedResponseExtensions at the given index. */ - public com.google.protobuf.ByteString - getAllowedResponseExtensionsBytes(int index) { + public com.google.protobuf.ByteString getAllowedResponseExtensionsBytes(int index) { return allowedResponseExtensions_.getByteString(index); } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -382,9 +479,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSelectorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selector_); } @@ -395,15 +491,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 3, provided_.getRaw(i)); } for (int i = 0; i < allowedRequestExtensions_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, allowedRequestExtensions_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 4, allowedRequestExtensions_.getRaw(i)); } for (int i = 0; i < allowedResponseExtensions_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, allowedResponseExtensions_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 5, allowedResponseExtensions_.getRaw(i)); } unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -449,31 +547,28 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof ContextRule)) { + if (!(obj instanceof com.google.api.ContextRule)) { return super.equals(obj); } - ContextRule other = (ContextRule) obj; - - if (!getSelector() - .equals(other.getSelector())) return false; - if (!getRequestedList() - .equals(other.getRequestedList())) return false; - if (!getProvidedList() - .equals(other.getProvidedList())) return false; - if (!getAllowedRequestExtensionsList() - .equals(other.getAllowedRequestExtensionsList())) return false; - if (!getAllowedResponseExtensionsList() - .equals(other.getAllowedResponseExtensionsList())) return false; + com.google.api.ContextRule other = (com.google.api.ContextRule) obj; + + if (!getSelector().equals(other.getSelector())) return false; + if (!getRequestedList().equals(other.getRequestedList())) return false; + if (!getProvidedList().equals(other.getProvidedList())) return false; + if (!getAllowedRequestExtensionsList().equals(other.getAllowedRequestExtensionsList())) + return false; + if (!getAllowedResponseExtensionsList().equals(other.getAllowedResponseExtensionsList())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -503,97 +598,103 @@ public int hashCode() { return hash; } - public static ContextRule parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.ContextRule parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static ContextRule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.ContextRule parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static ContextRule parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.api.ContextRule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static ContextRule parseFrom( + + public static com.google.api.ContextRule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static ContextRule parseFrom(byte[] data) + + public static com.google.api.ContextRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static ContextRule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.ContextRule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static ContextRule parseFrom(java.io.InputStream input) + + public static com.google.api.ContextRule 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 ContextRule parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.ContextRule parseFrom( + 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 ContextRule parseDelimitedFrom(java.io.InputStream input) + + public static com.google.api.ContextRule 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 ContextRule parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.ContextRule parseDelimitedFrom( + 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 ContextRule parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.api.ContextRule 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 ContextRule parseFrom( + + public static com.google.api.ContextRule 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(ContextRule prototype) { + + public static Builder newBuilder(com.google.api.ContextRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A context rule provides information about the context for an individual API
    * element.
@@ -601,21 +702,20 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.ContextRule}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.ContextRule)
       com.google.api.ContextRuleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.api.ContextProto.internal_static_google_api_ContextRule_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return com.google.api.ContextProto.internal_static_google_api_ContextRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              ContextRule.class, Builder.class);
+              com.google.api.ContextRule.class, com.google.api.ContextRule.Builder.class);
     }
 
     // Construct using com.google.api.ContextRule.newBuilder()
@@ -623,127 +723,124 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       selector_ = "";
 
       requested_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-      bitField0_ = (bitField0_ & ~0x00000002);
+      bitField0_ = (bitField0_ & ~0x00000001);
       provided_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-      bitField0_ = (bitField0_ & ~0x00000004);
+      bitField0_ = (bitField0_ & ~0x00000002);
       allowedRequestExtensions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-      bitField0_ = (bitField0_ & ~0x00000008);
+      bitField0_ = (bitField0_ & ~0x00000004);
       allowedResponseExtensions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-      bitField0_ = (bitField0_ & ~0x00000010);
+      bitField0_ = (bitField0_ & ~0x00000008);
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.api.ContextProto.internal_static_google_api_ContextRule_descriptor;
     }
 
-    @Override
-    public ContextRule getDefaultInstanceForType() {
-      return ContextRule.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.ContextRule getDefaultInstanceForType() {
+      return com.google.api.ContextRule.getDefaultInstance();
     }
 
-    @Override
-    public ContextRule build() {
-      ContextRule result = buildPartial();
+    @java.lang.Override
+    public com.google.api.ContextRule build() {
+      com.google.api.ContextRule result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public ContextRule buildPartial() {
-      ContextRule result = new ContextRule(this);
+    @java.lang.Override
+    public com.google.api.ContextRule buildPartial() {
+      com.google.api.ContextRule result = new com.google.api.ContextRule(this);
       int from_bitField0_ = bitField0_;
-      int to_bitField0_ = 0;
       result.selector_ = selector_;
-      if (((bitField0_ & 0x00000002) != 0)) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         requested_ = requested_.getUnmodifiableView();
-        bitField0_ = (bitField0_ & ~0x00000002);
+        bitField0_ = (bitField0_ & ~0x00000001);
       }
       result.requested_ = requested_;
-      if (((bitField0_ & 0x00000004) != 0)) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         provided_ = provided_.getUnmodifiableView();
-        bitField0_ = (bitField0_ & ~0x00000004);
+        bitField0_ = (bitField0_ & ~0x00000002);
       }
       result.provided_ = provided_;
-      if (((bitField0_ & 0x00000008) != 0)) {
+      if (((bitField0_ & 0x00000004) != 0)) {
         allowedRequestExtensions_ = allowedRequestExtensions_.getUnmodifiableView();
-        bitField0_ = (bitField0_ & ~0x00000008);
+        bitField0_ = (bitField0_ & ~0x00000004);
       }
       result.allowedRequestExtensions_ = allowedRequestExtensions_;
-      if (((bitField0_ & 0x00000010) != 0)) {
+      if (((bitField0_ & 0x00000008) != 0)) {
         allowedResponseExtensions_ = allowedResponseExtensions_.getUnmodifiableView();
-        bitField0_ = (bitField0_ & ~0x00000010);
+        bitField0_ = (bitField0_ & ~0x00000008);
       }
       result.allowedResponseExtensions_ = allowedResponseExtensions_;
-      result.bitField0_ = to_bitField0_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof ContextRule) {
-        return mergeFrom((ContextRule)other);
+      if (other instanceof com.google.api.ContextRule) {
+        return mergeFrom((com.google.api.ContextRule) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(ContextRule other) {
-      if (other == ContextRule.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.ContextRule other) {
+      if (other == com.google.api.ContextRule.getDefaultInstance()) return this;
       if (!other.getSelector().isEmpty()) {
         selector_ = other.selector_;
         onChanged();
@@ -751,7 +848,7 @@ public Builder mergeFrom(ContextRule other) {
       if (!other.requested_.isEmpty()) {
         if (requested_.isEmpty()) {
           requested_ = other.requested_;
-          bitField0_ = (bitField0_ & ~0x00000002);
+          bitField0_ = (bitField0_ & ~0x00000001);
         } else {
           ensureRequestedIsMutable();
           requested_.addAll(other.requested_);
@@ -761,7 +858,7 @@ public Builder mergeFrom(ContextRule other) {
       if (!other.provided_.isEmpty()) {
         if (provided_.isEmpty()) {
           provided_ = other.provided_;
-          bitField0_ = (bitField0_ & ~0x00000004);
+          bitField0_ = (bitField0_ & ~0x00000002);
         } else {
           ensureProvidedIsMutable();
           provided_.addAll(other.provided_);
@@ -771,7 +868,7 @@ public Builder mergeFrom(ContextRule other) {
       if (!other.allowedRequestExtensions_.isEmpty()) {
         if (allowedRequestExtensions_.isEmpty()) {
           allowedRequestExtensions_ = other.allowedRequestExtensions_;
-          bitField0_ = (bitField0_ & ~0x00000008);
+          bitField0_ = (bitField0_ & ~0x00000004);
         } else {
           ensureAllowedRequestExtensionsIsMutable();
           allowedRequestExtensions_.addAll(other.allowedRequestExtensions_);
@@ -781,7 +878,7 @@ public Builder mergeFrom(ContextRule other) {
       if (!other.allowedResponseExtensions_.isEmpty()) {
         if (allowedResponseExtensions_.isEmpty()) {
           allowedResponseExtensions_ = other.allowedResponseExtensions_;
-          bitField0_ = (bitField0_ & ~0x00000010);
+          bitField0_ = (bitField0_ & ~0x00000008);
         } else {
           ensureAllowedResponseExtensionsIsMutable();
           allowedResponseExtensions_.addAll(other.allowedResponseExtensions_);
@@ -793,21 +890,21 @@ public Builder mergeFrom(ContextRule other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      ContextRule parsedMessage = null;
+      com.google.api.ContextRule parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (ContextRule) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.ContextRule) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -816,44 +913,50 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private Object selector_ = "";
+    private java.lang.Object selector_ = "";
     /**
+     *
+     *
      * 
      * Selects the methods to which this rule applies.
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
      * 
* * string selector = 1; + * + * @return The selector. */ - public String getSelector() { - Object ref = selector_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getSelector() { + java.lang.Object ref = selector_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); selector_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Selects the methods to which this rule applies.
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
      * 
* * string selector = 1; + * + * @return The bytes for selector. */ - public com.google.protobuf.ByteString - getSelectorBytes() { - Object ref = selector_; + public com.google.protobuf.ByteString getSelectorBytes() { + java.lang.Object ref = selector_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); selector_ = b; return b; } else { @@ -861,644 +964,808 @@ public String getSelector() { } } /** + * + * *
      * Selects the methods to which this rule applies.
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
      * 
* * string selector = 1; + * + * @param value The selector to set. + * @return This builder for chaining. */ - public Builder setSelector( - String value) { + public Builder setSelector(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + selector_ = value; onChanged(); return this; } /** + * + * *
      * Selects the methods to which this rule applies.
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
      * 
* * string selector = 1; + * + * @return This builder for chaining. */ public Builder clearSelector() { - + selector_ = getDefaultInstance().getSelector(); onChanged(); return this; } /** + * + * *
      * Selects the methods to which this rule applies.
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
      * 
* * string selector = 1; + * + * @param value The bytes for selector to set. + * @return This builder for chaining. */ - public Builder setSelectorBytes( - com.google.protobuf.ByteString value) { + public Builder setSelectorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + selector_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList requested_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList requested_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRequestedIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { requested_ = new com.google.protobuf.LazyStringArrayList(requested_); - bitField0_ |= 0x00000002; - } + bitField0_ |= 0x00000001; + } } /** + * + * *
      * A list of full type names of requested contexts.
      * 
* * repeated string requested = 2; + * + * @return A list containing the requested. */ - public com.google.protobuf.ProtocolStringList - getRequestedList() { + public com.google.protobuf.ProtocolStringList getRequestedList() { return requested_.getUnmodifiableView(); } /** + * + * *
      * A list of full type names of requested contexts.
      * 
* * repeated string requested = 2; + * + * @return The count of requested. */ public int getRequestedCount() { return requested_.size(); } /** + * + * *
      * A list of full type names of requested contexts.
      * 
* * repeated string requested = 2; + * + * @param index The index of the element to return. + * @return The requested at the given index. */ - public String getRequested(int index) { + public java.lang.String getRequested(int index) { return requested_.get(index); } /** + * + * *
      * A list of full type names of requested contexts.
      * 
* * repeated string requested = 2; + * + * @param index The index of the value to return. + * @return The bytes of the requested at the given index. */ - public com.google.protobuf.ByteString - getRequestedBytes(int index) { + public com.google.protobuf.ByteString getRequestedBytes(int index) { return requested_.getByteString(index); } /** + * + * *
      * A list of full type names of requested contexts.
      * 
* * repeated string requested = 2; + * + * @param index The index to set the value at. + * @param value The requested to set. + * @return This builder for chaining. */ - public Builder setRequested( - int index, String value) { + public Builder setRequested(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRequestedIsMutable(); + throw new NullPointerException(); + } + ensureRequestedIsMutable(); requested_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of full type names of requested contexts.
      * 
* * repeated string requested = 2; + * + * @param value The requested to add. + * @return This builder for chaining. */ - public Builder addRequested( - String value) { + public Builder addRequested(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRequestedIsMutable(); + throw new NullPointerException(); + } + ensureRequestedIsMutable(); requested_.add(value); onChanged(); return this; } /** + * + * *
      * A list of full type names of requested contexts.
      * 
* * repeated string requested = 2; + * + * @param values The requested to add. + * @return This builder for chaining. */ - public Builder addAllRequested( - Iterable values) { + public Builder addAllRequested(java.lang.Iterable values) { ensureRequestedIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requested_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requested_); onChanged(); return this; } /** + * + * *
      * A list of full type names of requested contexts.
      * 
* * repeated string requested = 2; + * + * @return This builder for chaining. */ public Builder clearRequested() { requested_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** + * + * *
      * A list of full type names of requested contexts.
      * 
* * repeated string requested = 2; + * + * @param value The bytes of the requested to add. + * @return This builder for chaining. */ - public Builder addRequestedBytes( - com.google.protobuf.ByteString value) { + public Builder addRequestedBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureRequestedIsMutable(); requested_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList provided_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList provided_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureProvidedIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { provided_ = new com.google.protobuf.LazyStringArrayList(provided_); - bitField0_ |= 0x00000004; - } + bitField0_ |= 0x00000002; + } } /** + * + * *
      * A list of full type names of provided contexts.
      * 
* * repeated string provided = 3; + * + * @return A list containing the provided. */ - public com.google.protobuf.ProtocolStringList - getProvidedList() { + public com.google.protobuf.ProtocolStringList getProvidedList() { return provided_.getUnmodifiableView(); } /** + * + * *
      * A list of full type names of provided contexts.
      * 
* * repeated string provided = 3; + * + * @return The count of provided. */ public int getProvidedCount() { return provided_.size(); } /** + * + * *
      * A list of full type names of provided contexts.
      * 
* * repeated string provided = 3; + * + * @param index The index of the element to return. + * @return The provided at the given index. */ - public String getProvided(int index) { + public java.lang.String getProvided(int index) { return provided_.get(index); } /** + * + * *
      * A list of full type names of provided contexts.
      * 
* * repeated string provided = 3; + * + * @param index The index of the value to return. + * @return The bytes of the provided at the given index. */ - public com.google.protobuf.ByteString - getProvidedBytes(int index) { + public com.google.protobuf.ByteString getProvidedBytes(int index) { return provided_.getByteString(index); } /** + * + * *
      * A list of full type names of provided contexts.
      * 
* * repeated string provided = 3; + * + * @param index The index to set the value at. + * @param value The provided to set. + * @return This builder for chaining. */ - public Builder setProvided( - int index, String value) { + public Builder setProvided(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProvidedIsMutable(); + throw new NullPointerException(); + } + ensureProvidedIsMutable(); provided_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of full type names of provided contexts.
      * 
* * repeated string provided = 3; + * + * @param value The provided to add. + * @return This builder for chaining. */ - public Builder addProvided( - String value) { + public Builder addProvided(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProvidedIsMutable(); + throw new NullPointerException(); + } + ensureProvidedIsMutable(); provided_.add(value); onChanged(); return this; } /** + * + * *
      * A list of full type names of provided contexts.
      * 
* * repeated string provided = 3; + * + * @param values The provided to add. + * @return This builder for chaining. */ - public Builder addAllProvided( - Iterable values) { + public Builder addAllProvided(java.lang.Iterable values) { ensureProvidedIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, provided_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, provided_); onChanged(); return this; } /** + * + * *
      * A list of full type names of provided contexts.
      * 
* * repeated string provided = 3; + * + * @return This builder for chaining. */ public Builder clearProvided() { provided_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** + * + * *
      * A list of full type names of provided contexts.
      * 
* * repeated string provided = 3; + * + * @param value The bytes of the provided to add. + * @return This builder for chaining. */ - public Builder addProvidedBytes( - com.google.protobuf.ByteString value) { + public Builder addProvidedBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureProvidedIsMutable(); provided_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList allowedRequestExtensions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList allowedRequestExtensions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAllowedRequestExtensionsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - allowedRequestExtensions_ = new com.google.protobuf.LazyStringArrayList(allowedRequestExtensions_); - bitField0_ |= 0x00000008; - } + if (!((bitField0_ & 0x00000004) != 0)) { + allowedRequestExtensions_ = + new com.google.protobuf.LazyStringArrayList(allowedRequestExtensions_); + bitField0_ |= 0x00000004; + } } /** + * + * *
      * A list of full type names or extension IDs of extensions allowed in grpc
      * side channel from client to backend.
      * 
* * repeated string allowed_request_extensions = 4; + * + * @return A list containing the allowedRequestExtensions. */ - public com.google.protobuf.ProtocolStringList - getAllowedRequestExtensionsList() { + public com.google.protobuf.ProtocolStringList getAllowedRequestExtensionsList() { return allowedRequestExtensions_.getUnmodifiableView(); } /** + * + * *
      * A list of full type names or extension IDs of extensions allowed in grpc
      * side channel from client to backend.
      * 
* * repeated string allowed_request_extensions = 4; + * + * @return The count of allowedRequestExtensions. */ public int getAllowedRequestExtensionsCount() { return allowedRequestExtensions_.size(); } /** + * + * *
      * A list of full type names or extension IDs of extensions allowed in grpc
      * side channel from client to backend.
      * 
* * repeated string allowed_request_extensions = 4; + * + * @param index The index of the element to return. + * @return The allowedRequestExtensions at the given index. */ - public String getAllowedRequestExtensions(int index) { + public java.lang.String getAllowedRequestExtensions(int index) { return allowedRequestExtensions_.get(index); } /** + * + * *
      * A list of full type names or extension IDs of extensions allowed in grpc
      * side channel from client to backend.
      * 
* * repeated string allowed_request_extensions = 4; + * + * @param index The index of the value to return. + * @return The bytes of the allowedRequestExtensions at the given index. */ - public com.google.protobuf.ByteString - getAllowedRequestExtensionsBytes(int index) { + public com.google.protobuf.ByteString getAllowedRequestExtensionsBytes(int index) { return allowedRequestExtensions_.getByteString(index); } /** + * + * *
      * A list of full type names or extension IDs of extensions allowed in grpc
      * side channel from client to backend.
      * 
* * repeated string allowed_request_extensions = 4; + * + * @param index The index to set the value at. + * @param value The allowedRequestExtensions to set. + * @return This builder for chaining. */ - public Builder setAllowedRequestExtensions( - int index, String value) { + public Builder setAllowedRequestExtensions(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedRequestExtensionsIsMutable(); + throw new NullPointerException(); + } + ensureAllowedRequestExtensionsIsMutable(); allowedRequestExtensions_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of full type names or extension IDs of extensions allowed in grpc
      * side channel from client to backend.
      * 
* * repeated string allowed_request_extensions = 4; + * + * @param value The allowedRequestExtensions to add. + * @return This builder for chaining. */ - public Builder addAllowedRequestExtensions( - String value) { + public Builder addAllowedRequestExtensions(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedRequestExtensionsIsMutable(); + throw new NullPointerException(); + } + ensureAllowedRequestExtensionsIsMutable(); allowedRequestExtensions_.add(value); onChanged(); return this; } /** + * + * *
      * A list of full type names or extension IDs of extensions allowed in grpc
      * side channel from client to backend.
      * 
* * repeated string allowed_request_extensions = 4; + * + * @param values The allowedRequestExtensions to add. + * @return This builder for chaining. */ - public Builder addAllAllowedRequestExtensions( - Iterable values) { + public Builder addAllAllowedRequestExtensions(java.lang.Iterable values) { ensureAllowedRequestExtensionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, allowedRequestExtensions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedRequestExtensions_); onChanged(); return this; } /** + * + * *
      * A list of full type names or extension IDs of extensions allowed in grpc
      * side channel from client to backend.
      * 
* * repeated string allowed_request_extensions = 4; + * + * @return This builder for chaining. */ public Builder clearAllowedRequestExtensions() { allowedRequestExtensions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** + * + * *
      * A list of full type names or extension IDs of extensions allowed in grpc
      * side channel from client to backend.
      * 
* * repeated string allowed_request_extensions = 4; + * + * @param value The bytes of the allowedRequestExtensions to add. + * @return This builder for chaining. */ - public Builder addAllowedRequestExtensionsBytes( - com.google.protobuf.ByteString value) { + public Builder addAllowedRequestExtensionsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAllowedRequestExtensionsIsMutable(); allowedRequestExtensions_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList allowedResponseExtensions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList allowedResponseExtensions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAllowedResponseExtensionsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - allowedResponseExtensions_ = new com.google.protobuf.LazyStringArrayList(allowedResponseExtensions_); - bitField0_ |= 0x00000010; - } + if (!((bitField0_ & 0x00000008) != 0)) { + allowedResponseExtensions_ = + new com.google.protobuf.LazyStringArrayList(allowedResponseExtensions_); + bitField0_ |= 0x00000008; + } } /** + * + * *
      * A list of full type names or extension IDs of extensions allowed in grpc
      * side channel from backend to client.
      * 
* * repeated string allowed_response_extensions = 5; + * + * @return A list containing the allowedResponseExtensions. */ - public com.google.protobuf.ProtocolStringList - getAllowedResponseExtensionsList() { + public com.google.protobuf.ProtocolStringList getAllowedResponseExtensionsList() { return allowedResponseExtensions_.getUnmodifiableView(); } /** + * + * *
      * A list of full type names or extension IDs of extensions allowed in grpc
      * side channel from backend to client.
      * 
* * repeated string allowed_response_extensions = 5; + * + * @return The count of allowedResponseExtensions. */ public int getAllowedResponseExtensionsCount() { return allowedResponseExtensions_.size(); } /** + * + * *
      * A list of full type names or extension IDs of extensions allowed in grpc
      * side channel from backend to client.
      * 
* * repeated string allowed_response_extensions = 5; + * + * @param index The index of the element to return. + * @return The allowedResponseExtensions at the given index. */ - public String getAllowedResponseExtensions(int index) { + public java.lang.String getAllowedResponseExtensions(int index) { return allowedResponseExtensions_.get(index); } /** + * + * *
      * A list of full type names or extension IDs of extensions allowed in grpc
      * side channel from backend to client.
      * 
* * repeated string allowed_response_extensions = 5; + * + * @param index The index of the value to return. + * @return The bytes of the allowedResponseExtensions at the given index. */ - public com.google.protobuf.ByteString - getAllowedResponseExtensionsBytes(int index) { + public com.google.protobuf.ByteString getAllowedResponseExtensionsBytes(int index) { return allowedResponseExtensions_.getByteString(index); } /** + * + * *
      * A list of full type names or extension IDs of extensions allowed in grpc
      * side channel from backend to client.
      * 
* * repeated string allowed_response_extensions = 5; + * + * @param index The index to set the value at. + * @param value The allowedResponseExtensions to set. + * @return This builder for chaining. */ - public Builder setAllowedResponseExtensions( - int index, String value) { + public Builder setAllowedResponseExtensions(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedResponseExtensionsIsMutable(); + throw new NullPointerException(); + } + ensureAllowedResponseExtensionsIsMutable(); allowedResponseExtensions_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of full type names or extension IDs of extensions allowed in grpc
      * side channel from backend to client.
      * 
* * repeated string allowed_response_extensions = 5; + * + * @param value The allowedResponseExtensions to add. + * @return This builder for chaining. */ - public Builder addAllowedResponseExtensions( - String value) { + public Builder addAllowedResponseExtensions(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedResponseExtensionsIsMutable(); + throw new NullPointerException(); + } + ensureAllowedResponseExtensionsIsMutable(); allowedResponseExtensions_.add(value); onChanged(); return this; } /** + * + * *
      * A list of full type names or extension IDs of extensions allowed in grpc
      * side channel from backend to client.
      * 
* * repeated string allowed_response_extensions = 5; + * + * @param values The allowedResponseExtensions to add. + * @return This builder for chaining. */ - public Builder addAllAllowedResponseExtensions( - Iterable values) { + public Builder addAllAllowedResponseExtensions(java.lang.Iterable values) { ensureAllowedResponseExtensionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, allowedResponseExtensions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedResponseExtensions_); onChanged(); return this; } /** + * + * *
      * A list of full type names or extension IDs of extensions allowed in grpc
      * side channel from backend to client.
      * 
* * repeated string allowed_response_extensions = 5; + * + * @return This builder for chaining. */ public Builder clearAllowedResponseExtensions() { allowedResponseExtensions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** + * + * *
      * A list of full type names or extension IDs of extensions allowed in grpc
      * side channel from backend to client.
      * 
* * repeated string allowed_response_extensions = 5; + * + * @param value The bytes of the allowedResponseExtensions to add. + * @return This builder for chaining. */ - public Builder addAllowedResponseExtensionsBytes( - com.google.protobuf.ByteString value) { + public Builder addAllowedResponseExtensionsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAllowedResponseExtensionsIsMutable(); allowedResponseExtensions_.add(value); onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.ContextRule) } // @@protoc_insertion_point(class_scope:google.api.ContextRule) - private static final ContextRule DEFAULT_INSTANCE; + private static final com.google.api.ContextRule DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new ContextRule(); + DEFAULT_INSTANCE = new com.google.api.ContextRule(); } - public static ContextRule getDefaultInstance() { + public static com.google.api.ContextRule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public ContextRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ContextRule(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContextRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ContextRule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public ContextRule getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.ContextRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/ContextRuleOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/ContextRuleOrBuilder.java index 868e6c5e..a0df1267 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/ContextRuleOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/ContextRuleOrBuilder.java @@ -1,177 +1,264 @@ +/* + * 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/context.proto package com.google.api; -public interface ContextRuleOrBuilder extends +public interface ContextRuleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.ContextRule) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Selects the methods to which this rule applies.
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
    * 
* * string selector = 1; + * + * @return The selector. */ - String getSelector(); + java.lang.String getSelector(); /** + * + * *
    * Selects the methods to which this rule applies.
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
    * 
* * string selector = 1; + * + * @return The bytes for selector. */ - com.google.protobuf.ByteString - getSelectorBytes(); + com.google.protobuf.ByteString getSelectorBytes(); /** + * + * *
    * A list of full type names of requested contexts.
    * 
* * repeated string requested = 2; + * + * @return A list containing the requested. */ - java.util.List - getRequestedList(); + java.util.List getRequestedList(); /** + * + * *
    * A list of full type names of requested contexts.
    * 
* * repeated string requested = 2; + * + * @return The count of requested. */ int getRequestedCount(); /** + * + * *
    * A list of full type names of requested contexts.
    * 
* * repeated string requested = 2; + * + * @param index The index of the element to return. + * @return The requested at the given index. */ - String getRequested(int index); + java.lang.String getRequested(int index); /** + * + * *
    * A list of full type names of requested contexts.
    * 
* * repeated string requested = 2; + * + * @param index The index of the value to return. + * @return The bytes of the requested at the given index. */ - com.google.protobuf.ByteString - getRequestedBytes(int index); + com.google.protobuf.ByteString getRequestedBytes(int index); /** + * + * *
    * A list of full type names of provided contexts.
    * 
* * repeated string provided = 3; + * + * @return A list containing the provided. */ - java.util.List - getProvidedList(); + java.util.List getProvidedList(); /** + * + * *
    * A list of full type names of provided contexts.
    * 
* * repeated string provided = 3; + * + * @return The count of provided. */ int getProvidedCount(); /** + * + * *
    * A list of full type names of provided contexts.
    * 
* * repeated string provided = 3; + * + * @param index The index of the element to return. + * @return The provided at the given index. */ - String getProvided(int index); + java.lang.String getProvided(int index); /** + * + * *
    * A list of full type names of provided contexts.
    * 
* * repeated string provided = 3; + * + * @param index The index of the value to return. + * @return The bytes of the provided at the given index. */ - com.google.protobuf.ByteString - getProvidedBytes(int index); + com.google.protobuf.ByteString getProvidedBytes(int index); /** + * + * *
    * A list of full type names or extension IDs of extensions allowed in grpc
    * side channel from client to backend.
    * 
* * repeated string allowed_request_extensions = 4; + * + * @return A list containing the allowedRequestExtensions. */ - java.util.List - getAllowedRequestExtensionsList(); + java.util.List getAllowedRequestExtensionsList(); /** + * + * *
    * A list of full type names or extension IDs of extensions allowed in grpc
    * side channel from client to backend.
    * 
* * repeated string allowed_request_extensions = 4; + * + * @return The count of allowedRequestExtensions. */ int getAllowedRequestExtensionsCount(); /** + * + * *
    * A list of full type names or extension IDs of extensions allowed in grpc
    * side channel from client to backend.
    * 
* * repeated string allowed_request_extensions = 4; + * + * @param index The index of the element to return. + * @return The allowedRequestExtensions at the given index. */ - String getAllowedRequestExtensions(int index); + java.lang.String getAllowedRequestExtensions(int index); /** + * + * *
    * A list of full type names or extension IDs of extensions allowed in grpc
    * side channel from client to backend.
    * 
* * repeated string allowed_request_extensions = 4; + * + * @param index The index of the value to return. + * @return The bytes of the allowedRequestExtensions at the given index. */ - com.google.protobuf.ByteString - getAllowedRequestExtensionsBytes(int index); + com.google.protobuf.ByteString getAllowedRequestExtensionsBytes(int index); /** + * + * *
    * A list of full type names or extension IDs of extensions allowed in grpc
    * side channel from backend to client.
    * 
* * repeated string allowed_response_extensions = 5; + * + * @return A list containing the allowedResponseExtensions. */ - java.util.List - getAllowedResponseExtensionsList(); + java.util.List getAllowedResponseExtensionsList(); /** + * + * *
    * A list of full type names or extension IDs of extensions allowed in grpc
    * side channel from backend to client.
    * 
* * repeated string allowed_response_extensions = 5; + * + * @return The count of allowedResponseExtensions. */ int getAllowedResponseExtensionsCount(); /** + * + * *
    * A list of full type names or extension IDs of extensions allowed in grpc
    * side channel from backend to client.
    * 
* * repeated string allowed_response_extensions = 5; + * + * @param index The index of the element to return. + * @return The allowedResponseExtensions at the given index. */ - String getAllowedResponseExtensions(int index); + java.lang.String getAllowedResponseExtensions(int index); /** + * + * *
    * A list of full type names or extension IDs of extensions allowed in grpc
    * side channel from backend to client.
    * 
* * repeated string allowed_response_extensions = 5; + * + * @param index The index of the value to return. + * @return The bytes of the allowedResponseExtensions at the given index. */ - com.google.protobuf.ByteString - getAllowedResponseExtensionsBytes(int index); + com.google.protobuf.ByteString getAllowedResponseExtensionsBytes(int index); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/Control.java b/proto-google-common-protos/src/main/java/com/google/api/Control.java index ee5f8525..2b5b2545 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/Control.java +++ b/proto-google-common-protos/src/main/java/com/google/api/Control.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/control.proto package com.google.api; /** + * + * *
  * Selects and configures the service controller used by the service.  The
  * service controller handles features like abuse, quota, billing, logging,
@@ -12,33 +29,39 @@
  *
  * Protobuf type {@code google.api.Control}
  */
-public  final class Control extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Control extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.Control)
     ControlOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Control.newBuilder() to construct.
   private Control(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Control() {
     environment_ = "";
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new Control();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Control(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
-    int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
         com.google.protobuf.UnknownFieldSet.newBuilder();
     try {
@@ -49,81 +72,86 @@ private Control(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            environment_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              environment_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.ControlProto.internal_static_google_api_Control_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return com.google.api.ControlProto.internal_static_google_api_Control_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            Control.class, Builder.class);
+            com.google.api.Control.class, com.google.api.Control.Builder.class);
   }
 
   public static final int ENVIRONMENT_FIELD_NUMBER = 1;
-  private volatile Object environment_;
+  private volatile java.lang.Object environment_;
   /**
+   *
+   *
    * 
    * The service control environment to use. If empty, no control plane
    * feature (like quota and billing) will be enabled.
    * 
* * string environment = 1; + * + * @return The environment. */ - public String getEnvironment() { - Object ref = environment_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getEnvironment() { + java.lang.Object ref = environment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); environment_ = s; return s; } } /** + * + * *
    * The service control environment to use. If empty, no control plane
    * feature (like quota and billing) will be enabled.
    * 
* * string environment = 1; + * + * @return The bytes for environment. */ - public com.google.protobuf.ByteString - getEnvironmentBytes() { - Object ref = environment_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getEnvironmentBytes() { + java.lang.Object ref = environment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); environment_ = b; return b; } else { @@ -132,7 +160,8 @@ public String getEnvironment() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -142,16 +171,15 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getEnvironmentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, environment_); } unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -165,23 +193,22 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof Control)) { + if (!(obj instanceof com.google.api.Control)) { return super.equals(obj); } - Control other = (Control) obj; + com.google.api.Control other = (com.google.api.Control) obj; - if (!getEnvironment() - .equals(other.getEnvironment())) return false; + if (!getEnvironment().equals(other.getEnvironment())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -195,97 +222,103 @@ public int hashCode() { return hash; } - public static Control parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.Control parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Control parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Control parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Control parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.api.Control parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Control parseFrom( + + public static com.google.api.Control parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Control parseFrom(byte[] data) + + public static com.google.api.Control parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Control parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Control parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Control parseFrom(java.io.InputStream input) + + public static com.google.api.Control 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 Control parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Control parseFrom( + 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 Control parseDelimitedFrom(java.io.InputStream input) + + public static com.google.api.Control 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 Control parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Control parseDelimitedFrom( + 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 Control parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.api.Control 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 Control parseFrom( + + public static com.google.api.Control 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(Control prototype) { + + public static Builder newBuilder(com.google.api.Control prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Selects and configures the service controller used by the service.  The
    * service controller handles features like abuse, quota, billing, logging,
@@ -294,21 +327,20 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.Control}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.Control)
       com.google.api.ControlOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.api.ControlProto.internal_static_google_api_Control_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return com.google.api.ControlProto.internal_static_google_api_Control_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              Control.class, Builder.class);
+              com.google.api.Control.class, com.google.api.Control.Builder.class);
     }
 
     // Construct using com.google.api.Control.newBuilder()
@@ -316,17 +348,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       environment_ = "";
@@ -334,78 +365,78 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.api.ControlProto.internal_static_google_api_Control_descriptor;
     }
 
-    @Override
-    public Control getDefaultInstanceForType() {
-      return Control.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.Control getDefaultInstanceForType() {
+      return com.google.api.Control.getDefaultInstance();
     }
 
-    @Override
-    public Control build() {
-      Control result = buildPartial();
+    @java.lang.Override
+    public com.google.api.Control build() {
+      com.google.api.Control result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public Control buildPartial() {
-      Control result = new Control(this);
+    @java.lang.Override
+    public com.google.api.Control buildPartial() {
+      com.google.api.Control result = new com.google.api.Control(this);
       result.environment_ = environment_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof Control) {
-        return mergeFrom((Control)other);
+      if (other instanceof com.google.api.Control) {
+        return mergeFrom((com.google.api.Control) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(Control other) {
-      if (other == Control.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.Control other) {
+      if (other == com.google.api.Control.getDefaultInstance()) return this;
       if (!other.getEnvironment().isEmpty()) {
         environment_ = other.environment_;
         onChanged();
@@ -415,21 +446,21 @@ public Builder mergeFrom(Control other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      Control parsedMessage = null;
+      com.google.api.Control parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (Control) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.Control) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -439,42 +470,47 @@ public Builder mergeFrom(
       return this;
     }
 
-    private Object environment_ = "";
+    private java.lang.Object environment_ = "";
     /**
+     *
+     *
      * 
      * The service control environment to use. If empty, no control plane
      * feature (like quota and billing) will be enabled.
      * 
* * string environment = 1; + * + * @return The environment. */ - public String getEnvironment() { - Object ref = environment_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getEnvironment() { + java.lang.Object ref = environment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); environment_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The service control environment to use. If empty, no control plane
      * feature (like quota and billing) will be enabled.
      * 
* * string environment = 1; + * + * @return The bytes for environment. */ - public com.google.protobuf.ByteString - getEnvironmentBytes() { - Object ref = environment_; + public com.google.protobuf.ByteString getEnvironmentBytes() { + java.lang.Object ref = environment_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); environment_ = b; return b; } else { @@ -482,106 +518,116 @@ public String getEnvironment() { } } /** + * + * *
      * The service control environment to use. If empty, no control plane
      * feature (like quota and billing) will be enabled.
      * 
* * string environment = 1; + * + * @param value The environment to set. + * @return This builder for chaining. */ - public Builder setEnvironment( - String value) { + public Builder setEnvironment(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + environment_ = value; onChanged(); return this; } /** + * + * *
      * The service control environment to use. If empty, no control plane
      * feature (like quota and billing) will be enabled.
      * 
* * string environment = 1; + * + * @return This builder for chaining. */ public Builder clearEnvironment() { - + environment_ = getDefaultInstance().getEnvironment(); onChanged(); return this; } /** + * + * *
      * The service control environment to use. If empty, no control plane
      * feature (like quota and billing) will be enabled.
      * 
* * string environment = 1; + * + * @param value The bytes for environment to set. + * @return This builder for chaining. */ - public Builder setEnvironmentBytes( - com.google.protobuf.ByteString value) { + public Builder setEnvironmentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + environment_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.Control) } // @@protoc_insertion_point(class_scope:google.api.Control) - private static final Control DEFAULT_INSTANCE; + private static final com.google.api.Control DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new Control(); + DEFAULT_INSTANCE = new com.google.api.Control(); } - public static Control getDefaultInstance() { + public static com.google.api.Control getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public Control parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Control(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Control parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Control(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public Control getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.Control getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/ControlOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/ControlOrBuilder.java index 71154352..5742ed58 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/ControlOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/ControlOrBuilder.java @@ -1,29 +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/control.proto package com.google.api; -public interface ControlOrBuilder extends +public interface ControlOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.Control) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The service control environment to use. If empty, no control plane
    * feature (like quota and billing) will be enabled.
    * 
* * string environment = 1; + * + * @return The environment. */ - String getEnvironment(); + java.lang.String getEnvironment(); /** + * + * *
    * The service control environment to use. If empty, no control plane
    * feature (like quota and billing) will be enabled.
    * 
* * string environment = 1; + * + * @return The bytes for environment. */ - com.google.protobuf.ByteString - getEnvironmentBytes(); + com.google.protobuf.ByteString getEnvironmentBytes(); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/ControlProto.java b/proto-google-common-protos/src/main/java/com/google/api/ControlProto.java index 4be92bd5..f315b5dd 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/ControlProto.java +++ b/proto-google-common-protos/src/main/java/com/google/api/ControlProto.java @@ -1,3 +1,18 @@ +/* + * 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/control.proto @@ -5,53 +20,42 @@ public final class ControlProto { private ControlProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + 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_Control_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_Control_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_api_Control_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { - String[] descriptorData = { - "\n\030google/api/control.proto\022\ngoogle.api\"\036" + - "\n\007Control\022\023\n\013environment\030\001 \001(\tBn\n\016com.go" + - "ogle.apiB\014ControlProtoP\001ZEgoogle.golang." + - "org/genproto/googleapis/api/serviceconfi" + - "g;serviceconfig\242\002\004GAPIb\006proto3" + java.lang.String[] descriptorData = { + "\n\030google/api/control.proto\022\ngoogle.api\"\036" + + "\n\007Control\022\023\n\013environment\030\001 \001(\tBn\n\016com.go" + + "ogle.apiB\014ControlProtoP\001ZEgoogle.golang." + + "org/genproto/googleapis/api/serviceconfi" + + "g;serviceconfig\242\002\004GAPIb\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_google_api_Control_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_api_Control_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_Control_descriptor, - new String[] { "Environment", }); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_api_Control_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_api_Control_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_Control_descriptor, + new java.lang.String[] { + "Environment", + }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPattern.java b/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPattern.java index 6208dcf9..32b92641 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPattern.java +++ b/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPattern.java @@ -1,43 +1,66 @@ +/* + * 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/http.proto package com.google.api; /** + * + * *
  * A custom pattern is used for defining custom HTTP verb.
  * 
* * Protobuf type {@code google.api.CustomHttpPattern} */ -public final class CustomHttpPattern extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CustomHttpPattern extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.api.CustomHttpPattern) CustomHttpPatternOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CustomHttpPattern.newBuilder() to construct. private CustomHttpPattern(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CustomHttpPattern() { kind_ = ""; path_ = ""; } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomHttpPattern(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CustomHttpPattern( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -48,85 +71,91 @@ private CustomHttpPattern( case 0: done = true; break; - case 10: { - String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - kind_ = s; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); + kind_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - path_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + path_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return HttpProto.internal_static_google_api_CustomHttpPattern_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.api.HttpProto.internal_static_google_api_CustomHttpPattern_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return HttpProto.internal_static_google_api_CustomHttpPattern_fieldAccessorTable + return com.google.api.HttpProto.internal_static_google_api_CustomHttpPattern_fieldAccessorTable .ensureFieldAccessorsInitialized( - CustomHttpPattern.class, Builder.class); + com.google.api.CustomHttpPattern.class, com.google.api.CustomHttpPattern.Builder.class); } public static final int KIND_FIELD_NUMBER = 1; - private volatile Object kind_; + private volatile java.lang.Object kind_; /** + * + * *
    * The name of this custom HTTP verb.
    * 
* * string kind = 1; + * + * @return The kind. */ - public String getKind() { - Object ref = kind_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getKind() { + java.lang.Object ref = kind_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } } /** + * + * *
    * The name of this custom HTTP verb.
    * 
* * string kind = 1; + * + * @return The bytes for kind. */ - public com.google.protobuf.ByteString - getKindBytes() { - Object ref = kind_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { @@ -135,40 +164,45 @@ public String getKind() { } public static final int PATH_FIELD_NUMBER = 2; - private volatile Object path_; + private volatile java.lang.Object path_; /** + * + * *
    * The path matched by this custom verb.
    * 
* * string path = 2; + * + * @return The path. */ - public String getPath() { - Object ref = path_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } } /** + * + * *
    * The path matched by this custom verb.
    * 
* * string path = 2; + * + * @return The bytes for path. */ - public com.google.protobuf.ByteString - getPathBytes() { - Object ref = path_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { @@ -177,7 +211,8 @@ public String getPath() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -187,9 +222,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getKindBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kind_); } @@ -199,7 +233,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -216,25 +250,23 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof CustomHttpPattern)) { + if (!(obj instanceof com.google.api.CustomHttpPattern)) { return super.equals(obj); } - CustomHttpPattern other = (CustomHttpPattern) obj; + com.google.api.CustomHttpPattern other = (com.google.api.CustomHttpPattern) obj; - if (!getKind() - .equals(other.getKind())) return false; - if (!getPath() - .equals(other.getPath())) return false; + if (!getKind().equals(other.getKind())) return false; + if (!getPath().equals(other.getPath())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -250,118 +282,125 @@ public int hashCode() { return hash; } - public static CustomHttpPattern parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.CustomHttpPattern parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static CustomHttpPattern parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.CustomHttpPattern parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static CustomHttpPattern parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.api.CustomHttpPattern parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static CustomHttpPattern parseFrom( + + public static com.google.api.CustomHttpPattern parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static CustomHttpPattern parseFrom(byte[] data) + + public static com.google.api.CustomHttpPattern parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static CustomHttpPattern parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.CustomHttpPattern parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static CustomHttpPattern parseFrom(java.io.InputStream input) + + public static com.google.api.CustomHttpPattern 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 CustomHttpPattern parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.CustomHttpPattern parseFrom( + 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 CustomHttpPattern parseDelimitedFrom(java.io.InputStream input) + + public static com.google.api.CustomHttpPattern 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 CustomHttpPattern parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.CustomHttpPattern parseDelimitedFrom( + 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 CustomHttpPattern parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.api.CustomHttpPattern parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static CustomHttpPattern parseFrom( + + public static com.google.api.CustomHttpPattern 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(CustomHttpPattern prototype) { + + public static Builder newBuilder(com.google.api.CustomHttpPattern prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A custom pattern is used for defining custom HTTP verb.
    * 
* * Protobuf type {@code google.api.CustomHttpPattern} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.api.CustomHttpPattern) com.google.api.CustomHttpPatternOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return HttpProto.internal_static_google_api_CustomHttpPattern_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.api.HttpProto.internal_static_google_api_CustomHttpPattern_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return HttpProto.internal_static_google_api_CustomHttpPattern_fieldAccessorTable + return com.google.api.HttpProto + .internal_static_google_api_CustomHttpPattern_fieldAccessorTable .ensureFieldAccessorsInitialized( - CustomHttpPattern.class, Builder.class); + com.google.api.CustomHttpPattern.class, + com.google.api.CustomHttpPattern.Builder.class); } // Construct using com.google.api.CustomHttpPattern.newBuilder() @@ -369,17 +408,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @Override + + @java.lang.Override public Builder clear() { super.clear(); kind_ = ""; @@ -389,79 +427,79 @@ public Builder clear() { return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return HttpProto.internal_static_google_api_CustomHttpPattern_descriptor; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.api.HttpProto.internal_static_google_api_CustomHttpPattern_descriptor; } - @Override - public CustomHttpPattern getDefaultInstanceForType() { - return CustomHttpPattern.getDefaultInstance(); + @java.lang.Override + public com.google.api.CustomHttpPattern getDefaultInstanceForType() { + return com.google.api.CustomHttpPattern.getDefaultInstance(); } - @Override - public CustomHttpPattern build() { - CustomHttpPattern result = buildPartial(); + @java.lang.Override + public com.google.api.CustomHttpPattern build() { + com.google.api.CustomHttpPattern result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public CustomHttpPattern buildPartial() { - CustomHttpPattern result = new CustomHttpPattern(this); + @java.lang.Override + public com.google.api.CustomHttpPattern buildPartial() { + com.google.api.CustomHttpPattern result = new com.google.api.CustomHttpPattern(this); result.kind_ = kind_; result.path_ = path_; onBuilt(); return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof CustomHttpPattern) { - return mergeFrom((CustomHttpPattern)other); + if (other instanceof com.google.api.CustomHttpPattern) { + return mergeFrom((com.google.api.CustomHttpPattern) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(CustomHttpPattern other) { - if (other == CustomHttpPattern.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.api.CustomHttpPattern other) { + if (other == com.google.api.CustomHttpPattern.getDefaultInstance()) return this; if (!other.getKind().isEmpty()) { kind_ = other.kind_; onChanged(); @@ -475,21 +513,21 @@ public Builder mergeFrom(CustomHttpPattern other) { return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - CustomHttpPattern parsedMessage = null; + com.google.api.CustomHttpPattern parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (CustomHttpPattern) e.getUnfinishedMessage(); + parsedMessage = (com.google.api.CustomHttpPattern) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -499,40 +537,45 @@ public Builder mergeFrom( return this; } - private Object kind_ = ""; + private java.lang.Object kind_ = ""; /** + * + * *
      * The name of this custom HTTP verb.
      * 
* * string kind = 1; + * + * @return The kind. */ - public String getKind() { - Object ref = kind_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getKind() { + java.lang.Object ref = kind_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The name of this custom HTTP verb.
      * 
* * string kind = 1; + * + * @return The bytes for kind. */ - public com.google.protobuf.ByteString - getKindBytes() { - Object ref = kind_; + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { @@ -540,88 +583,105 @@ public String getKind() { } } /** + * + * *
      * The name of this custom HTTP verb.
      * 
* * string kind = 1; + * + * @param value The kind to set. + * @return This builder for chaining. */ - public Builder setKind( - String value) { + public Builder setKind(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kind_ = value; onChanged(); return this; } /** + * + * *
      * The name of this custom HTTP verb.
      * 
* * string kind = 1; + * + * @return This builder for chaining. */ public Builder clearKind() { - + kind_ = getDefaultInstance().getKind(); onChanged(); return this; } /** + * + * *
      * The name of this custom HTTP verb.
      * 
* * string kind = 1; + * + * @param value The bytes for kind to set. + * @return This builder for chaining. */ - public Builder setKindBytes( - com.google.protobuf.ByteString value) { + public Builder setKindBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; onChanged(); return this; } - private Object path_ = ""; + private java.lang.Object path_ = ""; /** + * + * *
      * The path matched by this custom verb.
      * 
* * string path = 2; + * + * @return The path. */ - public String getPath() { - Object ref = path_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The path matched by this custom verb.
      * 
* * string path = 2; + * + * @return The bytes for path. */ - public com.google.protobuf.ByteString - getPathBytes() { - Object ref = path_; + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { @@ -629,103 +689,113 @@ public String getPath() { } } /** + * + * *
      * The path matched by this custom verb.
      * 
* * string path = 2; + * + * @param value The path to set. + * @return This builder for chaining. */ - public Builder setPath( - String value) { + public Builder setPath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + path_ = value; onChanged(); return this; } /** + * + * *
      * The path matched by this custom verb.
      * 
* * string path = 2; + * + * @return This builder for chaining. */ public Builder clearPath() { - + path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** + * + * *
      * The path matched by this custom verb.
      * 
* * string path = 2; + * + * @param value The bytes for path to set. + * @return This builder for chaining. */ - public Builder setPathBytes( - com.google.protobuf.ByteString value) { + public Builder setPathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + path_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.CustomHttpPattern) } // @@protoc_insertion_point(class_scope:google.api.CustomHttpPattern) - private static final CustomHttpPattern DEFAULT_INSTANCE; + private static final com.google.api.CustomHttpPattern DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new CustomHttpPattern(); + DEFAULT_INSTANCE = new com.google.api.CustomHttpPattern(); } - public static CustomHttpPattern getDefaultInstance() { + public static com.google.api.CustomHttpPattern getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public CustomHttpPattern parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomHttpPattern(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomHttpPattern parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomHttpPattern(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public CustomHttpPattern getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.CustomHttpPattern getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPatternOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPatternOrBuilder.java index a8cfdede..e33130b0 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPatternOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPatternOrBuilder.java @@ -1,45 +1,75 @@ +/* + * 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/http.proto package com.google.api; -public interface CustomHttpPatternOrBuilder extends +public interface CustomHttpPatternOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.CustomHttpPattern) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of this custom HTTP verb.
    * 
* * string kind = 1; + * + * @return The kind. */ - String getKind(); + java.lang.String getKind(); /** + * + * *
    * The name of this custom HTTP verb.
    * 
* * string kind = 1; + * + * @return The bytes for kind. */ - com.google.protobuf.ByteString - getKindBytes(); + com.google.protobuf.ByteString getKindBytes(); /** + * + * *
    * The path matched by this custom verb.
    * 
* * string path = 2; + * + * @return The path. */ - String getPath(); + java.lang.String getPath(); /** + * + * *
    * The path matched by this custom verb.
    * 
* * string path = 2; + * + * @return The bytes for path. */ - com.google.protobuf.ByteString - getPathBytes(); + com.google.protobuf.ByteString getPathBytes(); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/Distribution.java b/proto-google-common-protos/src/main/java/com/google/api/Distribution.java index 920729e5..6f129323 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/Distribution.java +++ b/proto-google-common-protos/src/main/java/com/google/api/Distribution.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/distribution.proto package com.google.api; /** + * + * *
  * `Distribution` contains summary statistics for a population of values. It
  * optionally contains a histogram representing the distribution of those values
@@ -21,32 +38,39 @@
  *
  * Protobuf type {@code google.api.Distribution}
  */
-public  final class Distribution extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Distribution extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.Distribution)
     DistributionOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Distribution.newBuilder() to construct.
   private Distribution(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Distribution() {
     bucketCounts_ = emptyLongList();
     exemplars_ = java.util.Collections.emptyList();
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new Distribution();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Distribution(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -59,170 +83,195 @@ private Distribution(
           case 0:
             done = true;
             break;
-          case 8: {
-
-            count_ = input.readInt64();
-            break;
-          }
-          case 17: {
-
-            mean_ = input.readDouble();
-            break;
-          }
-          case 25: {
-
-            sumOfSquaredDeviation_ = input.readDouble();
-            break;
-          }
-          case 34: {
-            Range.Builder subBuilder = null;
-            if (range_ != null) {
-              subBuilder = range_.toBuilder();
-            }
-            range_ = input.readMessage(Range.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(range_);
-              range_ = subBuilder.buildPartial();
+          case 8:
+            {
+              count_ = input.readInt64();
+              break;
             }
-
-            break;
-          }
-          case 50: {
-            BucketOptions.Builder subBuilder = null;
-            if (bucketOptions_ != null) {
-              subBuilder = bucketOptions_.toBuilder();
+          case 17:
+            {
+              mean_ = input.readDouble();
+              break;
             }
-            bucketOptions_ = input.readMessage(BucketOptions.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(bucketOptions_);
-              bucketOptions_ = subBuilder.buildPartial();
+          case 25:
+            {
+              sumOfSquaredDeviation_ = input.readDouble();
+              break;
             }
+          case 34:
+            {
+              com.google.api.Distribution.Range.Builder subBuilder = null;
+              if (range_ != null) {
+                subBuilder = range_.toBuilder();
+              }
+              range_ =
+                  input.readMessage(com.google.api.Distribution.Range.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(range_);
+                range_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 56: {
-            if (!((mutable_bitField0_ & 0x00000020) != 0)) {
-              bucketCounts_ = newLongList();
-              mutable_bitField0_ |= 0x00000020;
+              break;
             }
-            bucketCounts_.addLong(input.readInt64());
-            break;
-          }
-          case 58: {
-            int length = input.readRawVarint32();
-            int limit = input.pushLimit(length);
-            if (!((mutable_bitField0_ & 0x00000020) != 0) && input.getBytesUntilLimit() > 0) {
-              bucketCounts_ = newLongList();
-              mutable_bitField0_ |= 0x00000020;
+          case 50:
+            {
+              com.google.api.Distribution.BucketOptions.Builder subBuilder = null;
+              if (bucketOptions_ != null) {
+                subBuilder = bucketOptions_.toBuilder();
+              }
+              bucketOptions_ =
+                  input.readMessage(
+                      com.google.api.Distribution.BucketOptions.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(bucketOptions_);
+                bucketOptions_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            while (input.getBytesUntilLimit() > 0) {
+          case 56:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                bucketCounts_ = newLongList();
+                mutable_bitField0_ |= 0x00000001;
+              }
               bucketCounts_.addLong(input.readInt64());
+              break;
             }
-            input.popLimit(limit);
-            break;
-          }
-          case 82: {
-            if (!((mutable_bitField0_ & 0x00000040) != 0)) {
-              exemplars_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000040;
+          case 58:
+            {
+              int length = input.readRawVarint32();
+              int limit = input.pushLimit(length);
+              if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
+                bucketCounts_ = newLongList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              while (input.getBytesUntilLimit() > 0) {
+                bucketCounts_.addLong(input.readInt64());
+              }
+              input.popLimit(limit);
+              break;
             }
-            exemplars_.add(
-                input.readMessage(Exemplar.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 82:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                exemplars_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              exemplars_.add(
+                  input.readMessage(
+                      com.google.api.Distribution.Exemplar.parser(), extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
-      if (((mutable_bitField0_ & 0x00000020) != 0)) {
+      if (((mutable_bitField0_ & 0x00000001) != 0)) {
         bucketCounts_.makeImmutable(); // C
       }
-      if (((mutable_bitField0_ & 0x00000040) != 0)) {
+      if (((mutable_bitField0_ & 0x00000002) != 0)) {
         exemplars_ = java.util.Collections.unmodifiableList(exemplars_);
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.DistributionProto.internal_static_google_api_Distribution_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.api.DistributionProto.internal_static_google_api_Distribution_fieldAccessorTable
+    return com.google.api.DistributionProto
+        .internal_static_google_api_Distribution_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            Distribution.class, Builder.class);
+            com.google.api.Distribution.class, com.google.api.Distribution.Builder.class);
   }
 
-  public interface RangeOrBuilder extends
+  public interface RangeOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.api.Distribution.Range)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The minimum of the population values.
      * 
* * double min = 1; + * + * @return The min. */ double getMin(); /** + * + * *
      * The maximum of the population values.
      * 
* * double max = 2; + * + * @return The max. */ double getMax(); } /** + * + * *
    * The range of the population values.
    * 
* * Protobuf type {@code google.api.Distribution.Range} */ - public static final class Range extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Range extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.api.Distribution.Range) RangeOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Range.newBuilder() to construct. private Range(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Range() { + + private Range() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Range(); } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Range( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -233,56 +282,62 @@ private Range( case 0: done = true; break; - case 9: { - - min_ = input.readDouble(); - break; - } - case 17: { - - max_ = input.readDouble(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 9: + { + min_ = input.readDouble(); + break; + } + case 17: + { + max_ = input.readDouble(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.api.DistributionProto.internal_static_google_api_Distribution_Range_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.api.DistributionProto + .internal_static_google_api_Distribution_Range_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.api.DistributionProto.internal_static_google_api_Distribution_Range_fieldAccessorTable + return com.google.api.DistributionProto + .internal_static_google_api_Distribution_Range_fieldAccessorTable .ensureFieldAccessorsInitialized( - Range.class, Builder.class); + com.google.api.Distribution.Range.class, + com.google.api.Distribution.Range.Builder.class); } public static final int MIN_FIELD_NUMBER = 1; private double min_; /** + * + * *
      * The minimum of the population values.
      * 
* * double min = 1; + * + * @return The min. */ public double getMin() { return min_; @@ -291,18 +346,23 @@ public double getMin() { public static final int MAX_FIELD_NUMBER = 2; private double max_; /** + * + * *
      * The maximum of the population values.
      * 
* * double max = 2; + * + * @return The max. */ public double getMax() { return max_; } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -312,9 +372,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (min_ != 0D) { output.writeDouble(1, min_); } @@ -324,46 +383,42 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (min_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, min_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, min_); } if (max_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, max_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, max_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof Range)) { + if (!(obj instanceof com.google.api.Distribution.Range)) { return super.equals(obj); } - Range other = (Range) obj; + com.google.api.Distribution.Range other = (com.google.api.Distribution.Range) obj; - if (Double.doubleToLongBits(getMin()) - != Double.doubleToLongBits( - other.getMin())) return false; - if (Double.doubleToLongBits(getMax()) - != Double.doubleToLongBits( - other.getMax())) return false; + if (java.lang.Double.doubleToLongBits(getMin()) + != java.lang.Double.doubleToLongBits(other.getMin())) return false; + if (java.lang.Double.doubleToLongBits(getMax()) + != java.lang.Double.doubleToLongBits(other.getMax())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -371,128 +426,140 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MIN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - Double.doubleToLongBits(getMin())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getMin())); hash = (37 * hash) + MAX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - Double.doubleToLongBits(getMax())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getMax())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static Range parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.Distribution.Range parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Range parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Distribution.Range parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Range parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.api.Distribution.Range parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Range parseFrom( + + public static com.google.api.Distribution.Range parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Range parseFrom(byte[] data) + + public static com.google.api.Distribution.Range parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Range parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Distribution.Range parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Range parseFrom(java.io.InputStream input) + + public static com.google.api.Distribution.Range 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 Range parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Distribution.Range parseFrom( + 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 Range parseDelimitedFrom(java.io.InputStream input) + + public static com.google.api.Distribution.Range 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 Range parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Distribution.Range parseDelimitedFrom( + 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 Range parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.api.Distribution.Range parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static Range parseFrom( + + public static com.google.api.Distribution.Range 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(Range prototype) { + + public static Builder newBuilder(com.google.api.Distribution.Range prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
      * The range of the population values.
      * 
* * Protobuf type {@code google.api.Distribution.Range} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.api.Distribution.Range) - RangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.api.DistributionProto.internal_static_google_api_Distribution_Range_descriptor; + com.google.api.Distribution.RangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.api.DistributionProto + .internal_static_google_api_Distribution_Range_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.api.DistributionProto.internal_static_google_api_Distribution_Range_fieldAccessorTable + return com.google.api.DistributionProto + .internal_static_google_api_Distribution_Range_fieldAccessorTable .ensureFieldAccessorsInitialized( - Range.class, Builder.class); + com.google.api.Distribution.Range.class, + com.google.api.Distribution.Range.Builder.class); } // Construct using com.google.api.Distribution.Range.newBuilder() @@ -500,17 +567,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @Override + + @java.lang.Override public Builder clear() { super.clear(); min_ = 0D; @@ -520,79 +586,82 @@ public Builder clear() { return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.api.DistributionProto.internal_static_google_api_Distribution_Range_descriptor; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.api.DistributionProto + .internal_static_google_api_Distribution_Range_descriptor; } - @Override - public Range getDefaultInstanceForType() { - return Range.getDefaultInstance(); + @java.lang.Override + public com.google.api.Distribution.Range getDefaultInstanceForType() { + return com.google.api.Distribution.Range.getDefaultInstance(); } - @Override - public Range build() { - Range result = buildPartial(); + @java.lang.Override + public com.google.api.Distribution.Range build() { + com.google.api.Distribution.Range result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public Range buildPartial() { - Range result = new Range(this); + @java.lang.Override + public com.google.api.Distribution.Range buildPartial() { + com.google.api.Distribution.Range result = new com.google.api.Distribution.Range(this); result.min_ = min_; result.max_ = max_; onBuilt(); return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof Range) { - return mergeFrom((Range)other); + if (other instanceof com.google.api.Distribution.Range) { + return mergeFrom((com.google.api.Distribution.Range) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(Range other) { - if (other == Range.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.api.Distribution.Range other) { + if (other == com.google.api.Distribution.Range.getDefaultInstance()) return this; if (other.getMin() != 0D) { setMin(other.getMin()); } @@ -604,21 +673,21 @@ public Builder mergeFrom(Range other) { return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Range parsedMessage = null; + com.google.api.Distribution.Range parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Range) e.getUnfinishedMessage(); + parsedMessage = (com.google.api.Distribution.Range) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -628,216 +697,275 @@ public Builder mergeFrom( return this; } - private double min_ ; + private double min_; /** + * + * *
        * The minimum of the population values.
        * 
* * double min = 1; + * + * @return The min. */ public double getMin() { return min_; } /** + * + * *
        * The minimum of the population values.
        * 
* * double min = 1; + * + * @param value The min to set. + * @return This builder for chaining. */ public Builder setMin(double value) { - + min_ = value; onChanged(); return this; } /** + * + * *
        * The minimum of the population values.
        * 
* * double min = 1; + * + * @return This builder for chaining. */ public Builder clearMin() { - + min_ = 0D; onChanged(); return this; } - private double max_ ; + private double max_; /** + * + * *
        * The maximum of the population values.
        * 
* * double max = 2; + * + * @return The max. */ public double getMax() { return max_; } /** + * + * *
        * The maximum of the population values.
        * 
* * double max = 2; + * + * @param value The max to set. + * @return This builder for chaining. */ public Builder setMax(double value) { - + max_ = value; onChanged(); return this; } /** + * + * *
        * The maximum of the population values.
        * 
* * double max = 2; + * + * @return This builder for chaining. */ public Builder clearMax() { - + max_ = 0D; onChanged(); return this; } - @Override + + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.Distribution.Range) } // @@protoc_insertion_point(class_scope:google.api.Distribution.Range) - private static final Range DEFAULT_INSTANCE; + private static final com.google.api.Distribution.Range DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new Range(); + DEFAULT_INSTANCE = new com.google.api.Distribution.Range(); } - public static Range getDefaultInstance() { + public static com.google.api.Distribution.Range getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public Range parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Range(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Range parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Range(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public Range getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.Distribution.Range getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface BucketOptionsOrBuilder extends + public interface BucketOptionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.Distribution.BucketOptions) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The linear bucket.
      * 
* * .google.api.Distribution.BucketOptions.Linear linear_buckets = 1; + * + * @return Whether the linearBuckets field is set. */ boolean hasLinearBuckets(); /** + * + * *
      * The linear bucket.
      * 
* * .google.api.Distribution.BucketOptions.Linear linear_buckets = 1; + * + * @return The linearBuckets. */ - BucketOptions.Linear getLinearBuckets(); + com.google.api.Distribution.BucketOptions.Linear getLinearBuckets(); /** + * + * *
      * The linear bucket.
      * 
* * .google.api.Distribution.BucketOptions.Linear linear_buckets = 1; */ - BucketOptions.LinearOrBuilder getLinearBucketsOrBuilder(); + com.google.api.Distribution.BucketOptions.LinearOrBuilder getLinearBucketsOrBuilder(); /** + * + * *
      * The exponential buckets.
      * 
* * .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; + * + * @return Whether the exponentialBuckets field is set. */ boolean hasExponentialBuckets(); /** + * + * *
      * The exponential buckets.
      * 
* * .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; + * + * @return The exponentialBuckets. */ - BucketOptions.Exponential getExponentialBuckets(); + com.google.api.Distribution.BucketOptions.Exponential getExponentialBuckets(); /** + * + * *
      * The exponential buckets.
      * 
* * .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; */ - BucketOptions.ExponentialOrBuilder getExponentialBucketsOrBuilder(); + com.google.api.Distribution.BucketOptions.ExponentialOrBuilder getExponentialBucketsOrBuilder(); /** + * + * *
      * The explicit buckets.
      * 
* * .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; + * + * @return Whether the explicitBuckets field is set. */ boolean hasExplicitBuckets(); /** + * + * *
      * The explicit buckets.
      * 
* * .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; + * + * @return The explicitBuckets. */ - BucketOptions.Explicit getExplicitBuckets(); + com.google.api.Distribution.BucketOptions.Explicit getExplicitBuckets(); /** + * + * *
      * The explicit buckets.
      * 
* * .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; */ - BucketOptions.ExplicitOrBuilder getExplicitBucketsOrBuilder(); + com.google.api.Distribution.BucketOptions.ExplicitOrBuilder getExplicitBucketsOrBuilder(); - public BucketOptions.OptionsCase getOptionsCase(); + public com.google.api.Distribution.BucketOptions.OptionsCase getOptionsCase(); } /** + * + * *
    * `BucketOptions` describes the bucket boundaries used to create a histogram
    * for the distribution. The buckets can be in a linear sequence, an
@@ -857,32 +985,37 @@ public interface BucketOptionsOrBuilder extends
    *
    * Protobuf type {@code google.api.Distribution.BucketOptions}
    */
-  public  static final class BucketOptions extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class BucketOptions extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.api.Distribution.BucketOptions)
       BucketOptionsOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use BucketOptions.newBuilder() to construct.
     private BucketOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private BucketOptions() {
+
+    private BucketOptions() {}
+
+    @java.lang.Override
+    @SuppressWarnings({"unused"})
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+      return new BucketOptions();
     }
 
-    @Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    @java.lang.Override
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private BucketOptions(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       this();
       if (extensionRegistry == null) {
-        throw new NullPointerException();
+        throw new java.lang.NullPointerException();
       }
-      int mutable_bitField0_ = 0;
       com.google.protobuf.UnknownFieldSet.Builder unknownFields =
           com.google.protobuf.UnknownFieldSet.newBuilder();
       try {
@@ -893,112 +1026,144 @@ private BucketOptions(
             case 0:
               done = true;
               break;
-            case 10: {
-              Linear.Builder subBuilder = null;
-              if (optionsCase_ == 1) {
-                subBuilder = ((Linear) options_).toBuilder();
-              }
-              options_ =
-                  input.readMessage(Linear.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((Linear) options_);
-                options_ = subBuilder.buildPartial();
-              }
-              optionsCase_ = 1;
-              break;
-            }
-            case 18: {
-              Exponential.Builder subBuilder = null;
-              if (optionsCase_ == 2) {
-                subBuilder = ((Exponential) options_).toBuilder();
-              }
-              options_ =
-                  input.readMessage(Exponential.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((Exponential) options_);
-                options_ = subBuilder.buildPartial();
+            case 10:
+              {
+                com.google.api.Distribution.BucketOptions.Linear.Builder subBuilder = null;
+                if (optionsCase_ == 1) {
+                  subBuilder =
+                      ((com.google.api.Distribution.BucketOptions.Linear) options_).toBuilder();
+                }
+                options_ =
+                    input.readMessage(
+                        com.google.api.Distribution.BucketOptions.Linear.parser(),
+                        extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom((com.google.api.Distribution.BucketOptions.Linear) options_);
+                  options_ = subBuilder.buildPartial();
+                }
+                optionsCase_ = 1;
+                break;
               }
-              optionsCase_ = 2;
-              break;
-            }
-            case 26: {
-              Explicit.Builder subBuilder = null;
-              if (optionsCase_ == 3) {
-                subBuilder = ((Explicit) options_).toBuilder();
+            case 18:
+              {
+                com.google.api.Distribution.BucketOptions.Exponential.Builder subBuilder = null;
+                if (optionsCase_ == 2) {
+                  subBuilder =
+                      ((com.google.api.Distribution.BucketOptions.Exponential) options_)
+                          .toBuilder();
+                }
+                options_ =
+                    input.readMessage(
+                        com.google.api.Distribution.BucketOptions.Exponential.parser(),
+                        extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom(
+                      (com.google.api.Distribution.BucketOptions.Exponential) options_);
+                  options_ = subBuilder.buildPartial();
+                }
+                optionsCase_ = 2;
+                break;
               }
-              options_ =
-                  input.readMessage(Explicit.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((Explicit) options_);
-                options_ = subBuilder.buildPartial();
+            case 26:
+              {
+                com.google.api.Distribution.BucketOptions.Explicit.Builder subBuilder = null;
+                if (optionsCase_ == 3) {
+                  subBuilder =
+                      ((com.google.api.Distribution.BucketOptions.Explicit) options_).toBuilder();
+                }
+                options_ =
+                    input.readMessage(
+                        com.google.api.Distribution.BucketOptions.Explicit.parser(),
+                        extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom(
+                      (com.google.api.Distribution.BucketOptions.Explicit) options_);
+                  options_ = subBuilder.buildPartial();
+                }
+                optionsCase_ = 3;
+                break;
               }
-              optionsCase_ = 3;
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.api.DistributionProto.internal_static_google_api_Distribution_BucketOptions_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.api.DistributionProto
+          .internal_static_google_api_Distribution_BucketOptions_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.api.DistributionProto.internal_static_google_api_Distribution_BucketOptions_fieldAccessorTable
+      return com.google.api.DistributionProto
+          .internal_static_google_api_Distribution_BucketOptions_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              BucketOptions.class, Builder.class);
+              com.google.api.Distribution.BucketOptions.class,
+              com.google.api.Distribution.BucketOptions.Builder.class);
     }
 
-    public interface LinearOrBuilder extends
+    public interface LinearOrBuilder
+        extends
         // @@protoc_insertion_point(interface_extends:google.api.Distribution.BucketOptions.Linear)
         com.google.protobuf.MessageOrBuilder {
 
       /**
+       *
+       *
        * 
        * Must be greater than 0.
        * 
* * int32 num_finite_buckets = 1; + * + * @return The numFiniteBuckets. */ int getNumFiniteBuckets(); /** + * + * *
        * Must be greater than 0.
        * 
* * double width = 2; + * + * @return The width. */ double getWidth(); /** + * + * *
        * Lower bound of the first bucket.
        * 
* * double offset = 3; + * + * @return The offset. */ double getOffset(); } /** + * + * *
      * Specifies a linear sequence of buckets that all have the same width
      * (except overflow and underflow). Each bucket represents a constant
@@ -1011,32 +1176,37 @@ public interface LinearOrBuilder extends
      *
      * Protobuf type {@code google.api.Distribution.BucketOptions.Linear}
      */
-    public  static final class Linear extends
-        com.google.protobuf.GeneratedMessageV3 implements
+    public static final class Linear extends com.google.protobuf.GeneratedMessageV3
+        implements
         // @@protoc_insertion_point(message_implements:google.api.Distribution.BucketOptions.Linear)
         LinearOrBuilder {
-    private static final long serialVersionUID = 0L;
+      private static final long serialVersionUID = 0L;
       // Use Linear.newBuilder() to construct.
       private Linear(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
-      private Linear() {
+
+      private Linear() {}
+
+      @java.lang.Override
+      @SuppressWarnings({"unused"})
+      protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+        return new Linear();
       }
 
-      @Override
-      public final com.google.protobuf.UnknownFieldSet
-      getUnknownFields() {
+      @java.lang.Override
+      public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
+
       private Linear(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         this();
         if (extensionRegistry == null) {
-          throw new NullPointerException();
+          throw new java.lang.NullPointerException();
         }
-        int mutable_bitField0_ = 0;
         com.google.protobuf.UnknownFieldSet.Builder unknownFields =
             com.google.protobuf.UnknownFieldSet.newBuilder();
         try {
@@ -1047,61 +1217,68 @@ private Linear(
               case 0:
                 done = true;
                 break;
-              case 8: {
-
-                numFiniteBuckets_ = input.readInt32();
-                break;
-              }
-              case 17: {
-
-                width_ = input.readDouble();
-                break;
-              }
-              case 25: {
-
-                offset_ = input.readDouble();
-                break;
-              }
-              default: {
-                if (!parseUnknownField(
-                    input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
+              case 8:
+                {
+                  numFiniteBuckets_ = input.readInt32();
+                  break;
+                }
+              case 17:
+                {
+                  width_ = input.readDouble();
+                  break;
+                }
+              case 25:
+                {
+                  offset_ = input.readDouble();
+                  break;
+                }
+              default:
+                {
+                  if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                    done = true;
+                  }
+                  break;
                 }
-                break;
-              }
             }
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
           throw e.setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
-          throw new com.google.protobuf.InvalidProtocolBufferException(
-              e).setUnfinishedMessage(this);
+          throw new com.google.protobuf.InvalidProtocolBufferException(e)
+              .setUnfinishedMessage(this);
         } finally {
           this.unknownFields = unknownFields.build();
           makeExtensionsImmutable();
         }
       }
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.api.DistributionProto.internal_static_google_api_Distribution_BucketOptions_Linear_descriptor;
+
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.api.DistributionProto
+            .internal_static_google_api_Distribution_BucketOptions_Linear_descriptor;
       }
 
-      @Override
-      protected FieldAccessorTable
+      @java.lang.Override
+      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.api.DistributionProto.internal_static_google_api_Distribution_BucketOptions_Linear_fieldAccessorTable
+        return com.google.api.DistributionProto
+            .internal_static_google_api_Distribution_BucketOptions_Linear_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                Linear.class, Builder.class);
+                com.google.api.Distribution.BucketOptions.Linear.class,
+                com.google.api.Distribution.BucketOptions.Linear.Builder.class);
       }
 
       public static final int NUM_FINITE_BUCKETS_FIELD_NUMBER = 1;
       private int numFiniteBuckets_;
       /**
+       *
+       *
        * 
        * Must be greater than 0.
        * 
* * int32 num_finite_buckets = 1; + * + * @return The numFiniteBuckets. */ public int getNumFiniteBuckets() { return numFiniteBuckets_; @@ -1110,11 +1287,15 @@ public int getNumFiniteBuckets() { public static final int WIDTH_FIELD_NUMBER = 2; private double width_; /** + * + * *
        * Must be greater than 0.
        * 
* * double width = 2; + * + * @return The width. */ public double getWidth() { return width_; @@ -1123,18 +1304,23 @@ public double getWidth() { public static final int OFFSET_FIELD_NUMBER = 3; private double offset_; /** + * + * *
        * Lower bound of the first bucket.
        * 
* * double offset = 3; + * + * @return The offset. */ public double getOffset() { return offset_; } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1144,9 +1330,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (numFiniteBuckets_ != 0) { output.writeInt32(1, numFiniteBuckets_); } @@ -1159,52 +1344,47 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (numFiniteBuckets_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, numFiniteBuckets_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, numFiniteBuckets_); } if (width_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, width_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, width_); } if (offset_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, offset_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, offset_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof Linear)) { + if (!(obj instanceof com.google.api.Distribution.BucketOptions.Linear)) { return super.equals(obj); } - Linear other = (Linear) obj; + com.google.api.Distribution.BucketOptions.Linear other = + (com.google.api.Distribution.BucketOptions.Linear) obj; - if (getNumFiniteBuckets() - != other.getNumFiniteBuckets()) return false; - if (Double.doubleToLongBits(getWidth()) - != Double.doubleToLongBits( - other.getWidth())) return false; - if (Double.doubleToLongBits(getOffset()) - != Double.doubleToLongBits( - other.getOffset())) return false; + if (getNumFiniteBuckets() != other.getNumFiniteBuckets()) return false; + if (java.lang.Double.doubleToLongBits(getWidth()) + != java.lang.Double.doubleToLongBits(other.getWidth())) return false; + if (java.lang.Double.doubleToLongBits(getOffset()) + != java.lang.Double.doubleToLongBits(other.getOffset())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -1214,107 +1394,119 @@ public int hashCode() { hash = (37 * hash) + NUM_FINITE_BUCKETS_FIELD_NUMBER; hash = (53 * hash) + getNumFiniteBuckets(); hash = (37 * hash) + WIDTH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - Double.doubleToLongBits(getWidth())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getWidth())); hash = (37 * hash) + OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - Double.doubleToLongBits(getOffset())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getOffset())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static Linear parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.api.Distribution.BucketOptions.Linear parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Linear parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Distribution.BucketOptions.Linear parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Linear parseFrom( + + public static com.google.api.Distribution.BucketOptions.Linear parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Linear parseFrom( + + public static com.google.api.Distribution.BucketOptions.Linear parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Linear parseFrom(byte[] data) + + public static com.google.api.Distribution.BucketOptions.Linear parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Linear parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Distribution.BucketOptions.Linear parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Linear parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.api.Distribution.BucketOptions.Linear parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static Linear parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Distribution.BucketOptions.Linear parseFrom( + 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 Linear parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.api.Distribution.BucketOptions.Linear parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static Linear parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Distribution.BucketOptions.Linear parseDelimitedFrom( + 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 Linear parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.api.Distribution.BucketOptions.Linear parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static Linear parseFrom( + + public static com.google.api.Distribution.BucketOptions.Linear 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(Linear prototype) { + + public static Builder newBuilder(com.google.api.Distribution.BucketOptions.Linear prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Specifies a linear sequence of buckets that all have the same width
        * (except overflow and underflow). Each bucket represents a constant
@@ -1327,21 +1519,24 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.api.Distribution.BucketOptions.Linear}
        */
-      public static final class Builder extends
-          com.google.protobuf.GeneratedMessageV3.Builder implements
+      public static final class Builder
+          extends com.google.protobuf.GeneratedMessageV3.Builder
+          implements
           // @@protoc_insertion_point(builder_implements:google.api.Distribution.BucketOptions.Linear)
-          LinearOrBuilder {
-        public static final com.google.protobuf.Descriptors.Descriptor
-            getDescriptor() {
-          return com.google.api.DistributionProto.internal_static_google_api_Distribution_BucketOptions_Linear_descriptor;
+          com.google.api.Distribution.BucketOptions.LinearOrBuilder {
+        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+          return com.google.api.DistributionProto
+              .internal_static_google_api_Distribution_BucketOptions_Linear_descriptor;
         }
 
-        @Override
-        protected FieldAccessorTable
+        @java.lang.Override
+        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
-          return com.google.api.DistributionProto.internal_static_google_api_Distribution_BucketOptions_Linear_fieldAccessorTable
+          return com.google.api.DistributionProto
+              .internal_static_google_api_Distribution_BucketOptions_Linear_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
-                  Linear.class, Builder.class);
+                  com.google.api.Distribution.BucketOptions.Linear.class,
+                  com.google.api.Distribution.BucketOptions.Linear.Builder.class);
         }
 
         // Construct using com.google.api.Distribution.BucketOptions.Linear.newBuilder()
@@ -1349,17 +1544,16 @@ private Builder() {
           maybeForceBuilderInitialization();
         }
 
-        private Builder(
-            BuilderParent parent) {
+        private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
           maybeForceBuilderInitialization();
         }
+
         private void maybeForceBuilderInitialization() {
-          if (com.google.protobuf.GeneratedMessageV3
-                  .alwaysUseFieldBuilders) {
-          }
+          if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
-        @Override
+
+        @java.lang.Override
         public Builder clear() {
           super.clear();
           numFiniteBuckets_ = 0;
@@ -1371,29 +1565,30 @@ public Builder clear() {
           return this;
         }
 
-        @Override
-        public com.google.protobuf.Descriptors.Descriptor
-            getDescriptorForType() {
-          return com.google.api.DistributionProto.internal_static_google_api_Distribution_BucketOptions_Linear_descriptor;
+        @java.lang.Override
+        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+          return com.google.api.DistributionProto
+              .internal_static_google_api_Distribution_BucketOptions_Linear_descriptor;
         }
 
-        @Override
-        public Linear getDefaultInstanceForType() {
-          return Linear.getDefaultInstance();
+        @java.lang.Override
+        public com.google.api.Distribution.BucketOptions.Linear getDefaultInstanceForType() {
+          return com.google.api.Distribution.BucketOptions.Linear.getDefaultInstance();
         }
 
-        @Override
-        public Linear build() {
-          Linear result = buildPartial();
+        @java.lang.Override
+        public com.google.api.Distribution.BucketOptions.Linear build() {
+          com.google.api.Distribution.BucketOptions.Linear result = buildPartial();
           if (!result.isInitialized()) {
             throw newUninitializedMessageException(result);
           }
           return result;
         }
 
-        @Override
-        public Linear buildPartial() {
-          Linear result = new Linear(this);
+        @java.lang.Override
+        public com.google.api.Distribution.BucketOptions.Linear buildPartial() {
+          com.google.api.Distribution.BucketOptions.Linear result =
+              new com.google.api.Distribution.BucketOptions.Linear(this);
           result.numFiniteBuckets_ = numFiniteBuckets_;
           result.width_ = width_;
           result.offset_ = offset_;
@@ -1401,50 +1596,54 @@ public Linear buildPartial() {
           return result;
         }
 
-        @Override
+        @java.lang.Override
         public Builder clone() {
           return super.clone();
         }
-        @Override
+
+        @java.lang.Override
         public Builder setField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return super.setField(field, value);
         }
-        @Override
-        public Builder clearField(
-            com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+        @java.lang.Override
+        public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
           return super.clearField(field);
         }
-        @Override
-        public Builder clearOneof(
-            com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+        @java.lang.Override
+        public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return super.clearOneof(oneof);
         }
-        @Override
+
+        @java.lang.Override
         public Builder setRepeatedField(
             com.google.protobuf.Descriptors.FieldDescriptor field,
-            int index, Object value) {
+            int index,
+            java.lang.Object value) {
           return super.setRepeatedField(field, index, value);
         }
-        @Override
+
+        @java.lang.Override
         public Builder addRepeatedField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return super.addRepeatedField(field, value);
         }
-        @Override
+
+        @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
-          if (other instanceof Linear) {
-            return mergeFrom((Linear)other);
+          if (other instanceof com.google.api.Distribution.BucketOptions.Linear) {
+            return mergeFrom((com.google.api.Distribution.BucketOptions.Linear) other);
           } else {
             super.mergeFrom(other);
             return this;
           }
         }
 
-        public Builder mergeFrom(Linear other) {
-          if (other == Linear.getDefaultInstance()) return this;
+        public Builder mergeFrom(com.google.api.Distribution.BucketOptions.Linear other) {
+          if (other == com.google.api.Distribution.BucketOptions.Linear.getDefaultInstance())
+            return this;
           if (other.getNumFiniteBuckets() != 0) {
             setNumFiniteBuckets(other.getNumFiniteBuckets());
           }
@@ -1459,21 +1658,22 @@ public Builder mergeFrom(Linear other) {
           return this;
         }
 
-        @Override
+        @java.lang.Override
         public final boolean isInitialized() {
           return true;
         }
 
-        @Override
+        @java.lang.Override
         public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
-          Linear parsedMessage = null;
+          com.google.api.Distribution.BucketOptions.Linear parsedMessage = null;
           try {
             parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            parsedMessage = (Linear) e.getUnfinishedMessage();
+            parsedMessage =
+                (com.google.api.Distribution.BucketOptions.Linear) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
             if (parsedMessage != null) {
@@ -1483,204 +1683,258 @@ public Builder mergeFrom(
           return this;
         }
 
-        private int numFiniteBuckets_ ;
+        private int numFiniteBuckets_;
         /**
+         *
+         *
          * 
          * Must be greater than 0.
          * 
* * int32 num_finite_buckets = 1; + * + * @return The numFiniteBuckets. */ public int getNumFiniteBuckets() { return numFiniteBuckets_; } /** + * + * *
          * Must be greater than 0.
          * 
* * int32 num_finite_buckets = 1; + * + * @param value The numFiniteBuckets to set. + * @return This builder for chaining. */ public Builder setNumFiniteBuckets(int value) { - + numFiniteBuckets_ = value; onChanged(); return this; } /** + * + * *
          * Must be greater than 0.
          * 
* * int32 num_finite_buckets = 1; + * + * @return This builder for chaining. */ public Builder clearNumFiniteBuckets() { - + numFiniteBuckets_ = 0; onChanged(); return this; } - private double width_ ; + private double width_; /** + * + * *
          * Must be greater than 0.
          * 
* * double width = 2; + * + * @return The width. */ public double getWidth() { return width_; } /** + * + * *
          * Must be greater than 0.
          * 
* * double width = 2; + * + * @param value The width to set. + * @return This builder for chaining. */ public Builder setWidth(double value) { - + width_ = value; onChanged(); return this; } /** + * + * *
          * Must be greater than 0.
          * 
* * double width = 2; + * + * @return This builder for chaining. */ public Builder clearWidth() { - + width_ = 0D; onChanged(); return this; } - private double offset_ ; + private double offset_; /** + * + * *
          * Lower bound of the first bucket.
          * 
* * double offset = 3; + * + * @return The offset. */ public double getOffset() { return offset_; } /** + * + * *
          * Lower bound of the first bucket.
          * 
* * double offset = 3; + * + * @param value The offset to set. + * @return This builder for chaining. */ public Builder setOffset(double value) { - + offset_ = value; onChanged(); return this; } /** + * + * *
          * Lower bound of the first bucket.
          * 
* * double offset = 3; + * + * @return This builder for chaining. */ public Builder clearOffset() { - + offset_ = 0D; onChanged(); return this; } - @Override + + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.Distribution.BucketOptions.Linear) } // @@protoc_insertion_point(class_scope:google.api.Distribution.BucketOptions.Linear) - private static final Linear DEFAULT_INSTANCE; + private static final com.google.api.Distribution.BucketOptions.Linear DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new Linear(); + DEFAULT_INSTANCE = new com.google.api.Distribution.BucketOptions.Linear(); } - public static Linear getDefaultInstance() { + public static com.google.api.Distribution.BucketOptions.Linear getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public Linear parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Linear(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Linear parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Linear(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public Linear getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.Distribution.BucketOptions.Linear getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ExponentialOrBuilder extends + public interface ExponentialOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.Distribution.BucketOptions.Exponential) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Must be greater than 0.
        * 
* * int32 num_finite_buckets = 1; + * + * @return The numFiniteBuckets. */ int getNumFiniteBuckets(); /** + * + * *
        * Must be greater than 1.
        * 
* * double growth_factor = 2; + * + * @return The growthFactor. */ double getGrowthFactor(); /** + * + * *
        * Must be greater than 0.
        * 
* * double scale = 3; + * + * @return The scale. */ double getScale(); } /** + * + * *
      * Specifies an exponential sequence of buckets that have a width that is
      * proportional to the value of the lower bound. Each bucket represents a
@@ -1693,32 +1947,37 @@ public interface ExponentialOrBuilder extends
      *
      * Protobuf type {@code google.api.Distribution.BucketOptions.Exponential}
      */
-    public  static final class Exponential extends
-        com.google.protobuf.GeneratedMessageV3 implements
+    public static final class Exponential extends com.google.protobuf.GeneratedMessageV3
+        implements
         // @@protoc_insertion_point(message_implements:google.api.Distribution.BucketOptions.Exponential)
         ExponentialOrBuilder {
-    private static final long serialVersionUID = 0L;
+      private static final long serialVersionUID = 0L;
       // Use Exponential.newBuilder() to construct.
       private Exponential(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
-      private Exponential() {
+
+      private Exponential() {}
+
+      @java.lang.Override
+      @SuppressWarnings({"unused"})
+      protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+        return new Exponential();
       }
 
-      @Override
-      public final com.google.protobuf.UnknownFieldSet
-      getUnknownFields() {
+      @java.lang.Override
+      public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
+
       private Exponential(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         this();
         if (extensionRegistry == null) {
-          throw new NullPointerException();
+          throw new java.lang.NullPointerException();
         }
-        int mutable_bitField0_ = 0;
         com.google.protobuf.UnknownFieldSet.Builder unknownFields =
             com.google.protobuf.UnknownFieldSet.newBuilder();
         try {
@@ -1729,61 +1988,68 @@ private Exponential(
               case 0:
                 done = true;
                 break;
-              case 8: {
-
-                numFiniteBuckets_ = input.readInt32();
-                break;
-              }
-              case 17: {
-
-                growthFactor_ = input.readDouble();
-                break;
-              }
-              case 25: {
-
-                scale_ = input.readDouble();
-                break;
-              }
-              default: {
-                if (!parseUnknownField(
-                    input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
+              case 8:
+                {
+                  numFiniteBuckets_ = input.readInt32();
+                  break;
+                }
+              case 17:
+                {
+                  growthFactor_ = input.readDouble();
+                  break;
+                }
+              case 25:
+                {
+                  scale_ = input.readDouble();
+                  break;
+                }
+              default:
+                {
+                  if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                    done = true;
+                  }
+                  break;
                 }
-                break;
-              }
             }
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
           throw e.setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
-          throw new com.google.protobuf.InvalidProtocolBufferException(
-              e).setUnfinishedMessage(this);
+          throw new com.google.protobuf.InvalidProtocolBufferException(e)
+              .setUnfinishedMessage(this);
         } finally {
           this.unknownFields = unknownFields.build();
           makeExtensionsImmutable();
         }
       }
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.api.DistributionProto.internal_static_google_api_Distribution_BucketOptions_Exponential_descriptor;
+
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.api.DistributionProto
+            .internal_static_google_api_Distribution_BucketOptions_Exponential_descriptor;
       }
 
-      @Override
-      protected FieldAccessorTable
+      @java.lang.Override
+      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.api.DistributionProto.internal_static_google_api_Distribution_BucketOptions_Exponential_fieldAccessorTable
+        return com.google.api.DistributionProto
+            .internal_static_google_api_Distribution_BucketOptions_Exponential_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                Exponential.class, Builder.class);
+                com.google.api.Distribution.BucketOptions.Exponential.class,
+                com.google.api.Distribution.BucketOptions.Exponential.Builder.class);
       }
 
       public static final int NUM_FINITE_BUCKETS_FIELD_NUMBER = 1;
       private int numFiniteBuckets_;
       /**
+       *
+       *
        * 
        * Must be greater than 0.
        * 
* * int32 num_finite_buckets = 1; + * + * @return The numFiniteBuckets. */ public int getNumFiniteBuckets() { return numFiniteBuckets_; @@ -1792,11 +2058,15 @@ public int getNumFiniteBuckets() { public static final int GROWTH_FACTOR_FIELD_NUMBER = 2; private double growthFactor_; /** + * + * *
        * Must be greater than 1.
        * 
* * double growth_factor = 2; + * + * @return The growthFactor. */ public double getGrowthFactor() { return growthFactor_; @@ -1805,18 +2075,23 @@ public double getGrowthFactor() { public static final int SCALE_FIELD_NUMBER = 3; private double scale_; /** + * + * *
        * Must be greater than 0.
        * 
* * double scale = 3; + * + * @return The scale. */ public double getScale() { return scale_; } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1826,9 +2101,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (numFiniteBuckets_ != 0) { output.writeInt32(1, numFiniteBuckets_); } @@ -1841,52 +2115,47 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (numFiniteBuckets_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, numFiniteBuckets_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, numFiniteBuckets_); } if (growthFactor_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, growthFactor_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, growthFactor_); } if (scale_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, scale_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, scale_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof Exponential)) { + if (!(obj instanceof com.google.api.Distribution.BucketOptions.Exponential)) { return super.equals(obj); } - Exponential other = (Exponential) obj; + com.google.api.Distribution.BucketOptions.Exponential other = + (com.google.api.Distribution.BucketOptions.Exponential) obj; - if (getNumFiniteBuckets() - != other.getNumFiniteBuckets()) return false; - if (Double.doubleToLongBits(getGrowthFactor()) - != Double.doubleToLongBits( - other.getGrowthFactor())) return false; - if (Double.doubleToLongBits(getScale()) - != Double.doubleToLongBits( - other.getScale())) return false; + if (getNumFiniteBuckets() != other.getNumFiniteBuckets()) return false; + if (java.lang.Double.doubleToLongBits(getGrowthFactor()) + != java.lang.Double.doubleToLongBits(other.getGrowthFactor())) return false; + if (java.lang.Double.doubleToLongBits(getScale()) + != java.lang.Double.doubleToLongBits(other.getScale())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -1896,107 +2165,120 @@ public int hashCode() { hash = (37 * hash) + NUM_FINITE_BUCKETS_FIELD_NUMBER; hash = (53 * hash) + getNumFiniteBuckets(); hash = (37 * hash) + GROWTH_FACTOR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - Double.doubleToLongBits(getGrowthFactor())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getGrowthFactor())); hash = (37 * hash) + SCALE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - Double.doubleToLongBits(getScale())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getScale())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static Exponential parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.api.Distribution.BucketOptions.Exponential parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Exponential parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Distribution.BucketOptions.Exponential parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Exponential parseFrom( + + public static com.google.api.Distribution.BucketOptions.Exponential parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Exponential parseFrom( + + public static com.google.api.Distribution.BucketOptions.Exponential parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Exponential parseFrom(byte[] data) + + public static com.google.api.Distribution.BucketOptions.Exponential parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Exponential parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Distribution.BucketOptions.Exponential parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Exponential parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.api.Distribution.BucketOptions.Exponential parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static Exponential parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Distribution.BucketOptions.Exponential parseFrom( + 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 Exponential parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.api.Distribution.BucketOptions.Exponential parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static Exponential parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Distribution.BucketOptions.Exponential parseDelimitedFrom( + 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 Exponential parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.api.Distribution.BucketOptions.Exponential parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static Exponential parseFrom( + + public static com.google.api.Distribution.BucketOptions.Exponential 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(Exponential prototype) { + + public static Builder newBuilder( + com.google.api.Distribution.BucketOptions.Exponential prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Specifies an exponential sequence of buckets that have a width that is
        * proportional to the value of the lower bound. Each bucket represents a
@@ -2009,21 +2291,24 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.api.Distribution.BucketOptions.Exponential}
        */
-      public static final class Builder extends
-          com.google.protobuf.GeneratedMessageV3.Builder implements
+      public static final class Builder
+          extends com.google.protobuf.GeneratedMessageV3.Builder
+          implements
           // @@protoc_insertion_point(builder_implements:google.api.Distribution.BucketOptions.Exponential)
-          ExponentialOrBuilder {
-        public static final com.google.protobuf.Descriptors.Descriptor
-            getDescriptor() {
-          return com.google.api.DistributionProto.internal_static_google_api_Distribution_BucketOptions_Exponential_descriptor;
+          com.google.api.Distribution.BucketOptions.ExponentialOrBuilder {
+        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+          return com.google.api.DistributionProto
+              .internal_static_google_api_Distribution_BucketOptions_Exponential_descriptor;
         }
 
-        @Override
-        protected FieldAccessorTable
+        @java.lang.Override
+        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
-          return com.google.api.DistributionProto.internal_static_google_api_Distribution_BucketOptions_Exponential_fieldAccessorTable
+          return com.google.api.DistributionProto
+              .internal_static_google_api_Distribution_BucketOptions_Exponential_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
-                  Exponential.class, Builder.class);
+                  com.google.api.Distribution.BucketOptions.Exponential.class,
+                  com.google.api.Distribution.BucketOptions.Exponential.Builder.class);
         }
 
         // Construct using com.google.api.Distribution.BucketOptions.Exponential.newBuilder()
@@ -2031,17 +2316,16 @@ private Builder() {
           maybeForceBuilderInitialization();
         }
 
-        private Builder(
-            BuilderParent parent) {
+        private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
           maybeForceBuilderInitialization();
         }
+
         private void maybeForceBuilderInitialization() {
-          if (com.google.protobuf.GeneratedMessageV3
-                  .alwaysUseFieldBuilders) {
-          }
+          if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
-        @Override
+
+        @java.lang.Override
         public Builder clear() {
           super.clear();
           numFiniteBuckets_ = 0;
@@ -2053,29 +2337,30 @@ public Builder clear() {
           return this;
         }
 
-        @Override
-        public com.google.protobuf.Descriptors.Descriptor
-            getDescriptorForType() {
-          return com.google.api.DistributionProto.internal_static_google_api_Distribution_BucketOptions_Exponential_descriptor;
+        @java.lang.Override
+        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+          return com.google.api.DistributionProto
+              .internal_static_google_api_Distribution_BucketOptions_Exponential_descriptor;
         }
 
-        @Override
-        public Exponential getDefaultInstanceForType() {
-          return Exponential.getDefaultInstance();
+        @java.lang.Override
+        public com.google.api.Distribution.BucketOptions.Exponential getDefaultInstanceForType() {
+          return com.google.api.Distribution.BucketOptions.Exponential.getDefaultInstance();
         }
 
-        @Override
-        public Exponential build() {
-          Exponential result = buildPartial();
+        @java.lang.Override
+        public com.google.api.Distribution.BucketOptions.Exponential build() {
+          com.google.api.Distribution.BucketOptions.Exponential result = buildPartial();
           if (!result.isInitialized()) {
             throw newUninitializedMessageException(result);
           }
           return result;
         }
 
-        @Override
-        public Exponential buildPartial() {
-          Exponential result = new Exponential(this);
+        @java.lang.Override
+        public com.google.api.Distribution.BucketOptions.Exponential buildPartial() {
+          com.google.api.Distribution.BucketOptions.Exponential result =
+              new com.google.api.Distribution.BucketOptions.Exponential(this);
           result.numFiniteBuckets_ = numFiniteBuckets_;
           result.growthFactor_ = growthFactor_;
           result.scale_ = scale_;
@@ -2083,50 +2368,54 @@ public Exponential buildPartial() {
           return result;
         }
 
-        @Override
+        @java.lang.Override
         public Builder clone() {
           return super.clone();
         }
-        @Override
+
+        @java.lang.Override
         public Builder setField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return super.setField(field, value);
         }
-        @Override
-        public Builder clearField(
-            com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+        @java.lang.Override
+        public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
           return super.clearField(field);
         }
-        @Override
-        public Builder clearOneof(
-            com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+        @java.lang.Override
+        public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return super.clearOneof(oneof);
         }
-        @Override
+
+        @java.lang.Override
         public Builder setRepeatedField(
             com.google.protobuf.Descriptors.FieldDescriptor field,
-            int index, Object value) {
+            int index,
+            java.lang.Object value) {
           return super.setRepeatedField(field, index, value);
         }
-        @Override
+
+        @java.lang.Override
         public Builder addRepeatedField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return super.addRepeatedField(field, value);
         }
-        @Override
+
+        @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
-          if (other instanceof Exponential) {
-            return mergeFrom((Exponential)other);
+          if (other instanceof com.google.api.Distribution.BucketOptions.Exponential) {
+            return mergeFrom((com.google.api.Distribution.BucketOptions.Exponential) other);
           } else {
             super.mergeFrom(other);
             return this;
           }
         }
 
-        public Builder mergeFrom(Exponential other) {
-          if (other == Exponential.getDefaultInstance()) return this;
+        public Builder mergeFrom(com.google.api.Distribution.BucketOptions.Exponential other) {
+          if (other == com.google.api.Distribution.BucketOptions.Exponential.getDefaultInstance())
+            return this;
           if (other.getNumFiniteBuckets() != 0) {
             setNumFiniteBuckets(other.getNumFiniteBuckets());
           }
@@ -2141,21 +2430,22 @@ public Builder mergeFrom(Exponential other) {
           return this;
         }
 
-        @Override
+        @java.lang.Override
         public final boolean isInitialized() {
           return true;
         }
 
-        @Override
+        @java.lang.Override
         public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
-          Exponential parsedMessage = null;
+          com.google.api.Distribution.BucketOptions.Exponential parsedMessage = null;
           try {
             parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            parsedMessage = (Exponential) e.getUnfinishedMessage();
+            parsedMessage =
+                (com.google.api.Distribution.BucketOptions.Exponential) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
             if (parsedMessage != null) {
@@ -2165,202 +2455,257 @@ public Builder mergeFrom(
           return this;
         }
 
-        private int numFiniteBuckets_ ;
+        private int numFiniteBuckets_;
         /**
+         *
+         *
          * 
          * Must be greater than 0.
          * 
* * int32 num_finite_buckets = 1; + * + * @return The numFiniteBuckets. */ public int getNumFiniteBuckets() { return numFiniteBuckets_; } /** + * + * *
          * Must be greater than 0.
          * 
* * int32 num_finite_buckets = 1; + * + * @param value The numFiniteBuckets to set. + * @return This builder for chaining. */ public Builder setNumFiniteBuckets(int value) { - + numFiniteBuckets_ = value; onChanged(); return this; } /** + * + * *
          * Must be greater than 0.
          * 
* * int32 num_finite_buckets = 1; + * + * @return This builder for chaining. */ public Builder clearNumFiniteBuckets() { - + numFiniteBuckets_ = 0; onChanged(); return this; } - private double growthFactor_ ; + private double growthFactor_; /** + * + * *
          * Must be greater than 1.
          * 
* * double growth_factor = 2; + * + * @return The growthFactor. */ public double getGrowthFactor() { return growthFactor_; } /** + * + * *
          * Must be greater than 1.
          * 
* * double growth_factor = 2; + * + * @param value The growthFactor to set. + * @return This builder for chaining. */ public Builder setGrowthFactor(double value) { - + growthFactor_ = value; onChanged(); return this; } /** + * + * *
          * Must be greater than 1.
          * 
* * double growth_factor = 2; + * + * @return This builder for chaining. */ public Builder clearGrowthFactor() { - + growthFactor_ = 0D; onChanged(); return this; } - private double scale_ ; + private double scale_; /** + * + * *
          * Must be greater than 0.
          * 
* * double scale = 3; + * + * @return The scale. */ public double getScale() { return scale_; } /** + * + * *
          * Must be greater than 0.
          * 
* * double scale = 3; + * + * @param value The scale to set. + * @return This builder for chaining. */ public Builder setScale(double value) { - + scale_ = value; onChanged(); return this; } /** + * + * *
          * Must be greater than 0.
          * 
* * double scale = 3; + * + * @return This builder for chaining. */ public Builder clearScale() { - + scale_ = 0D; onChanged(); return this; } - @Override + + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.Distribution.BucketOptions.Exponential) } // @@protoc_insertion_point(class_scope:google.api.Distribution.BucketOptions.Exponential) - private static final Exponential DEFAULT_INSTANCE; + private static final com.google.api.Distribution.BucketOptions.Exponential DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new Exponential(); + DEFAULT_INSTANCE = new com.google.api.Distribution.BucketOptions.Exponential(); } - public static Exponential getDefaultInstance() { + public static com.google.api.Distribution.BucketOptions.Exponential getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public Exponential parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Exponential(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Exponential parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Exponential(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public Exponential getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.Distribution.BucketOptions.Exponential getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ExplicitOrBuilder extends + public interface ExplicitOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.Distribution.BucketOptions.Explicit) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The values must be monotonically increasing.
        * 
* * repeated double bounds = 1; + * + * @return A list containing the bounds. */ - java.util.List getBoundsList(); + java.util.List getBoundsList(); /** + * + * *
        * The values must be monotonically increasing.
        * 
* * repeated double bounds = 1; + * + * @return The count of bounds. */ int getBoundsCount(); /** + * + * *
        * The values must be monotonically increasing.
        * 
* * repeated double bounds = 1; + * + * @param index The index of the element to return. + * @return The bounds at the given index. */ double getBounds(int index); } /** + * + * *
      * Specifies a set of buckets with arbitrary widths.
      * There are `size(bounds) + 1` (= N) buckets. Bucket `i` has the following
@@ -2374,31 +2719,38 @@ public interface ExplicitOrBuilder extends
      *
      * Protobuf type {@code google.api.Distribution.BucketOptions.Explicit}
      */
-    public  static final class Explicit extends
-        com.google.protobuf.GeneratedMessageV3 implements
+    public static final class Explicit extends com.google.protobuf.GeneratedMessageV3
+        implements
         // @@protoc_insertion_point(message_implements:google.api.Distribution.BucketOptions.Explicit)
         ExplicitOrBuilder {
-    private static final long serialVersionUID = 0L;
+      private static final long serialVersionUID = 0L;
       // Use Explicit.newBuilder() to construct.
       private Explicit(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
+
       private Explicit() {
         bounds_ = emptyDoubleList();
       }
 
-      @Override
-      public final com.google.protobuf.UnknownFieldSet
-      getUnknownFields() {
+      @java.lang.Override
+      @SuppressWarnings({"unused"})
+      protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+        return new Explicit();
+      }
+
+      @java.lang.Override
+      public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
+
       private Explicit(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         this();
         if (extensionRegistry == null) {
-          throw new NullPointerException();
+          throw new java.lang.NullPointerException();
         }
         int mutable_bitField0_ = 0;
         com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -2411,41 +2763,43 @@ private Explicit(
               case 0:
                 done = true;
                 break;
-              case 9: {
-                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                  bounds_ = newDoubleList();
-                  mutable_bitField0_ |= 0x00000001;
-                }
-                bounds_.addDouble(input.readDouble());
-                break;
-              }
-              case 10: {
-                int length = input.readRawVarint32();
-                int limit = input.pushLimit(length);
-                if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
-                  bounds_ = newDoubleList();
-                  mutable_bitField0_ |= 0x00000001;
-                }
-                while (input.getBytesUntilLimit() > 0) {
+              case 9:
+                {
+                  if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                    bounds_ = newDoubleList();
+                    mutable_bitField0_ |= 0x00000001;
+                  }
                   bounds_.addDouble(input.readDouble());
+                  break;
                 }
-                input.popLimit(limit);
-                break;
-              }
-              default: {
-                if (!parseUnknownField(
-                    input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
+              case 10:
+                {
+                  int length = input.readRawVarint32();
+                  int limit = input.pushLimit(length);
+                  if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
+                    bounds_ = newDoubleList();
+                    mutable_bitField0_ |= 0x00000001;
+                  }
+                  while (input.getBytesUntilLimit() > 0) {
+                    bounds_.addDouble(input.readDouble());
+                  }
+                  input.popLimit(limit);
+                  break;
+                }
+              default:
+                {
+                  if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                    done = true;
+                  }
+                  break;
                 }
-                break;
-              }
             }
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
           throw e.setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
-          throw new com.google.protobuf.InvalidProtocolBufferException(
-              e).setUnfinishedMessage(this);
+          throw new com.google.protobuf.InvalidProtocolBufferException(e)
+              .setUnfinishedMessage(this);
         } finally {
           if (((mutable_bitField0_ & 0x00000001) != 0)) {
             bounds_.makeImmutable(); // C
@@ -2454,56 +2808,73 @@ private Explicit(
           makeExtensionsImmutable();
         }
       }
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.api.DistributionProto.internal_static_google_api_Distribution_BucketOptions_Explicit_descriptor;
+
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.api.DistributionProto
+            .internal_static_google_api_Distribution_BucketOptions_Explicit_descriptor;
       }
 
-      @Override
-      protected FieldAccessorTable
+      @java.lang.Override
+      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.api.DistributionProto.internal_static_google_api_Distribution_BucketOptions_Explicit_fieldAccessorTable
+        return com.google.api.DistributionProto
+            .internal_static_google_api_Distribution_BucketOptions_Explicit_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                Explicit.class, Builder.class);
+                com.google.api.Distribution.BucketOptions.Explicit.class,
+                com.google.api.Distribution.BucketOptions.Explicit.Builder.class);
       }
 
       public static final int BOUNDS_FIELD_NUMBER = 1;
       private com.google.protobuf.Internal.DoubleList bounds_;
       /**
+       *
+       *
        * 
        * The values must be monotonically increasing.
        * 
* * repeated double bounds = 1; + * + * @return A list containing the bounds. */ - public java.util.List - getBoundsList() { + public java.util.List getBoundsList() { return bounds_; } /** + * + * *
        * The values must be monotonically increasing.
        * 
* * repeated double bounds = 1; + * + * @return The count of bounds. */ public int getBoundsCount() { return bounds_.size(); } /** + * + * *
        * The values must be monotonically increasing.
        * 
* * repeated double bounds = 1; + * + * @param index The index of the element to return. + * @return The bounds at the given index. */ public double getBounds(int index) { return bounds_.getDouble(index); } + private int boundsMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -2513,9 +2884,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getBoundsList().size() > 0) { output.writeUInt32NoTag(10); @@ -2527,7 +2897,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -2539,8 +2909,7 @@ public int getSerializedSize() { size += dataSize; if (!getBoundsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } boundsMemoizedSerializedSize = dataSize; } @@ -2549,23 +2918,23 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof Explicit)) { + if (!(obj instanceof com.google.api.Distribution.BucketOptions.Explicit)) { return super.equals(obj); } - Explicit other = (Explicit) obj; + com.google.api.Distribution.BucketOptions.Explicit other = + (com.google.api.Distribution.BucketOptions.Explicit) obj; - if (!getBoundsList() - .equals(other.getBoundsList())) return false; + if (!getBoundsList().equals(other.getBoundsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -2581,97 +2950,106 @@ public int hashCode() { return hash; } - public static Explicit parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.api.Distribution.BucketOptions.Explicit parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Explicit parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Distribution.BucketOptions.Explicit parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Explicit parseFrom( + + public static com.google.api.Distribution.BucketOptions.Explicit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Explicit parseFrom( + + public static com.google.api.Distribution.BucketOptions.Explicit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Explicit parseFrom(byte[] data) + + public static com.google.api.Distribution.BucketOptions.Explicit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Explicit parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Distribution.BucketOptions.Explicit parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Explicit parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.api.Distribution.BucketOptions.Explicit parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static Explicit parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Distribution.BucketOptions.Explicit parseFrom( + 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 Explicit parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.api.Distribution.BucketOptions.Explicit parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static Explicit parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Distribution.BucketOptions.Explicit parseDelimitedFrom( + 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 Explicit parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.api.Distribution.BucketOptions.Explicit parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static Explicit parseFrom( + + public static com.google.api.Distribution.BucketOptions.Explicit 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(Explicit prototype) { + + public static Builder newBuilder( + com.google.api.Distribution.BucketOptions.Explicit prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Specifies a set of buckets with arbitrary widths.
        * There are `size(bounds) + 1` (= N) buckets. Bucket `i` has the following
@@ -2685,21 +3063,24 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.api.Distribution.BucketOptions.Explicit}
        */
-      public static final class Builder extends
-          com.google.protobuf.GeneratedMessageV3.Builder implements
+      public static final class Builder
+          extends com.google.protobuf.GeneratedMessageV3.Builder
+          implements
           // @@protoc_insertion_point(builder_implements:google.api.Distribution.BucketOptions.Explicit)
-          ExplicitOrBuilder {
-        public static final com.google.protobuf.Descriptors.Descriptor
-            getDescriptor() {
-          return com.google.api.DistributionProto.internal_static_google_api_Distribution_BucketOptions_Explicit_descriptor;
+          com.google.api.Distribution.BucketOptions.ExplicitOrBuilder {
+        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+          return com.google.api.DistributionProto
+              .internal_static_google_api_Distribution_BucketOptions_Explicit_descriptor;
         }
 
-        @Override
-        protected FieldAccessorTable
+        @java.lang.Override
+        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
-          return com.google.api.DistributionProto.internal_static_google_api_Distribution_BucketOptions_Explicit_fieldAccessorTable
+          return com.google.api.DistributionProto
+              .internal_static_google_api_Distribution_BucketOptions_Explicit_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
-                  Explicit.class, Builder.class);
+                  com.google.api.Distribution.BucketOptions.Explicit.class,
+                  com.google.api.Distribution.BucketOptions.Explicit.Builder.class);
         }
 
         // Construct using com.google.api.Distribution.BucketOptions.Explicit.newBuilder()
@@ -2707,17 +3088,16 @@ private Builder() {
           maybeForceBuilderInitialization();
         }
 
-        private Builder(
-            BuilderParent parent) {
+        private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
           maybeForceBuilderInitialization();
         }
+
         private void maybeForceBuilderInitialization() {
-          if (com.google.protobuf.GeneratedMessageV3
-                  .alwaysUseFieldBuilders) {
-          }
+          if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
-        @Override
+
+        @java.lang.Override
         public Builder clear() {
           super.clear();
           bounds_ = emptyDoubleList();
@@ -2725,29 +3105,30 @@ public Builder clear() {
           return this;
         }
 
-        @Override
-        public com.google.protobuf.Descriptors.Descriptor
-            getDescriptorForType() {
-          return com.google.api.DistributionProto.internal_static_google_api_Distribution_BucketOptions_Explicit_descriptor;
+        @java.lang.Override
+        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+          return com.google.api.DistributionProto
+              .internal_static_google_api_Distribution_BucketOptions_Explicit_descriptor;
         }
 
-        @Override
-        public Explicit getDefaultInstanceForType() {
-          return Explicit.getDefaultInstance();
+        @java.lang.Override
+        public com.google.api.Distribution.BucketOptions.Explicit getDefaultInstanceForType() {
+          return com.google.api.Distribution.BucketOptions.Explicit.getDefaultInstance();
         }
 
-        @Override
-        public Explicit build() {
-          Explicit result = buildPartial();
+        @java.lang.Override
+        public com.google.api.Distribution.BucketOptions.Explicit build() {
+          com.google.api.Distribution.BucketOptions.Explicit result = buildPartial();
           if (!result.isInitialized()) {
             throw newUninitializedMessageException(result);
           }
           return result;
         }
 
-        @Override
-        public Explicit buildPartial() {
-          Explicit result = new Explicit(this);
+        @java.lang.Override
+        public com.google.api.Distribution.BucketOptions.Explicit buildPartial() {
+          com.google.api.Distribution.BucketOptions.Explicit result =
+              new com.google.api.Distribution.BucketOptions.Explicit(this);
           int from_bitField0_ = bitField0_;
           if (((bitField0_ & 0x00000001) != 0)) {
             bounds_.makeImmutable();
@@ -2758,50 +3139,54 @@ public Explicit buildPartial() {
           return result;
         }
 
-        @Override
+        @java.lang.Override
         public Builder clone() {
           return super.clone();
         }
-        @Override
+
+        @java.lang.Override
         public Builder setField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return super.setField(field, value);
         }
-        @Override
-        public Builder clearField(
-            com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+        @java.lang.Override
+        public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
           return super.clearField(field);
         }
-        @Override
-        public Builder clearOneof(
-            com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+        @java.lang.Override
+        public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return super.clearOneof(oneof);
         }
-        @Override
+
+        @java.lang.Override
         public Builder setRepeatedField(
             com.google.protobuf.Descriptors.FieldDescriptor field,
-            int index, Object value) {
+            int index,
+            java.lang.Object value) {
           return super.setRepeatedField(field, index, value);
         }
-        @Override
+
+        @java.lang.Override
         public Builder addRepeatedField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return super.addRepeatedField(field, value);
         }
-        @Override
+
+        @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
-          if (other instanceof Explicit) {
-            return mergeFrom((Explicit)other);
+          if (other instanceof com.google.api.Distribution.BucketOptions.Explicit) {
+            return mergeFrom((com.google.api.Distribution.BucketOptions.Explicit) other);
           } else {
             super.mergeFrom(other);
             return this;
           }
         }
 
-        public Builder mergeFrom(Explicit other) {
-          if (other == Explicit.getDefaultInstance()) return this;
+        public Builder mergeFrom(com.google.api.Distribution.BucketOptions.Explicit other) {
+          if (other == com.google.api.Distribution.BucketOptions.Explicit.getDefaultInstance())
+            return this;
           if (!other.bounds_.isEmpty()) {
             if (bounds_.isEmpty()) {
               bounds_ = other.bounds_;
@@ -2817,21 +3202,22 @@ public Builder mergeFrom(Explicit other) {
           return this;
         }
 
-        @Override
+        @java.lang.Override
         public final boolean isInitialized() {
           return true;
         }
 
-        @Override
+        @java.lang.Override
         public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
-          Explicit parsedMessage = null;
+          com.google.api.Distribution.BucketOptions.Explicit parsedMessage = null;
           try {
             parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            parsedMessage = (Explicit) e.getUnfinishedMessage();
+            parsedMessage =
+                (com.google.api.Distribution.BucketOptions.Explicit) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
             if (parsedMessage != null) {
@@ -2840,67 +3226,92 @@ public Builder mergeFrom(
           }
           return this;
         }
+
         private int bitField0_;
 
         private com.google.protobuf.Internal.DoubleList bounds_ = emptyDoubleList();
+
         private void ensureBoundsIsMutable() {
           if (!((bitField0_ & 0x00000001) != 0)) {
             bounds_ = mutableCopy(bounds_);
             bitField0_ |= 0x00000001;
-           }
+          }
         }
         /**
+         *
+         *
          * 
          * The values must be monotonically increasing.
          * 
* * repeated double bounds = 1; + * + * @return A list containing the bounds. */ - public java.util.List - getBoundsList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(bounds_) : bounds_; + public java.util.List getBoundsList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(bounds_) + : bounds_; } /** + * + * *
          * The values must be monotonically increasing.
          * 
* * repeated double bounds = 1; + * + * @return The count of bounds. */ public int getBoundsCount() { return bounds_.size(); } /** + * + * *
          * The values must be monotonically increasing.
          * 
* * repeated double bounds = 1; + * + * @param index The index of the element to return. + * @return The bounds at the given index. */ public double getBounds(int index) { return bounds_.getDouble(index); } /** + * + * *
          * The values must be monotonically increasing.
          * 
* * repeated double bounds = 1; + * + * @param index The index to set the value at. + * @param value The bounds to set. + * @return This builder for chaining. */ - public Builder setBounds( - int index, double value) { + public Builder setBounds(int index, double value) { ensureBoundsIsMutable(); bounds_.setDouble(index, value); onChanged(); return this; } /** + * + * *
          * The values must be monotonically increasing.
          * 
* * repeated double bounds = 1; + * + * @param value The bounds to add. + * @return This builder for chaining. */ public Builder addBounds(double value) { ensureBoundsIsMutable(); @@ -2909,26 +3320,33 @@ public Builder addBounds(double value) { return this; } /** + * + * *
          * The values must be monotonically increasing.
          * 
* * repeated double bounds = 1; + * + * @param values The bounds to add. + * @return This builder for chaining. */ - public Builder addAllBounds( - Iterable values) { + public Builder addAllBounds(java.lang.Iterable values) { ensureBoundsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, bounds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bounds_); onChanged(); return this; } /** + * + * *
          * The values must be monotonically increasing.
          * 
* * repeated double bounds = 1; + * + * @return This builder for chaining. */ public Builder clearBounds() { bounds_ = emptyDoubleList(); @@ -2936,215 +3354,258 @@ public Builder clearBounds() { onChanged(); return this; } - @Override + + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.Distribution.BucketOptions.Explicit) } // @@protoc_insertion_point(class_scope:google.api.Distribution.BucketOptions.Explicit) - private static final Explicit DEFAULT_INSTANCE; + private static final com.google.api.Distribution.BucketOptions.Explicit DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new Explicit(); + DEFAULT_INSTANCE = new com.google.api.Distribution.BucketOptions.Explicit(); } - public static Explicit getDefaultInstance() { + public static com.google.api.Distribution.BucketOptions.Explicit getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public Explicit parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Explicit(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Explicit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Explicit(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public Explicit getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.Distribution.BucketOptions.Explicit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int optionsCase_ = 0; - private Object options_; + private java.lang.Object options_; + public enum OptionsCase - implements com.google.protobuf.Internal.EnumLite { + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { LINEAR_BUCKETS(1), EXPONENTIAL_BUCKETS(2), EXPLICIT_BUCKETS(3), OPTIONS_NOT_SET(0); private final int value; + private OptionsCase(int value) { this.value = value; } /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ - @Deprecated + @java.lang.Deprecated public static OptionsCase valueOf(int value) { return forNumber(value); } public static OptionsCase forNumber(int value) { switch (value) { - case 1: return LINEAR_BUCKETS; - case 2: return EXPONENTIAL_BUCKETS; - case 3: return EXPLICIT_BUCKETS; - case 0: return OPTIONS_NOT_SET; - default: return null; + case 1: + return LINEAR_BUCKETS; + case 2: + return EXPONENTIAL_BUCKETS; + case 3: + return EXPLICIT_BUCKETS; + case 0: + return OPTIONS_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public OptionsCase - getOptionsCase() { - return OptionsCase.forNumber( - optionsCase_); + public OptionsCase getOptionsCase() { + return OptionsCase.forNumber(optionsCase_); } public static final int LINEAR_BUCKETS_FIELD_NUMBER = 1; /** + * + * *
      * The linear bucket.
      * 
* * .google.api.Distribution.BucketOptions.Linear linear_buckets = 1; + * + * @return Whether the linearBuckets field is set. */ public boolean hasLinearBuckets() { return optionsCase_ == 1; } /** + * + * *
      * The linear bucket.
      * 
* * .google.api.Distribution.BucketOptions.Linear linear_buckets = 1; + * + * @return The linearBuckets. */ - public Linear getLinearBuckets() { + public com.google.api.Distribution.BucketOptions.Linear getLinearBuckets() { if (optionsCase_ == 1) { - return (Linear) options_; + return (com.google.api.Distribution.BucketOptions.Linear) options_; } - return Linear.getDefaultInstance(); + return com.google.api.Distribution.BucketOptions.Linear.getDefaultInstance(); } /** + * + * *
      * The linear bucket.
      * 
* * .google.api.Distribution.BucketOptions.Linear linear_buckets = 1; */ - public LinearOrBuilder getLinearBucketsOrBuilder() { + public com.google.api.Distribution.BucketOptions.LinearOrBuilder getLinearBucketsOrBuilder() { if (optionsCase_ == 1) { - return (Linear) options_; + return (com.google.api.Distribution.BucketOptions.Linear) options_; } - return Linear.getDefaultInstance(); + return com.google.api.Distribution.BucketOptions.Linear.getDefaultInstance(); } public static final int EXPONENTIAL_BUCKETS_FIELD_NUMBER = 2; /** + * + * *
      * The exponential buckets.
      * 
* * .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; + * + * @return Whether the exponentialBuckets field is set. */ public boolean hasExponentialBuckets() { return optionsCase_ == 2; } /** + * + * *
      * The exponential buckets.
      * 
* * .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; + * + * @return The exponentialBuckets. */ - public Exponential getExponentialBuckets() { + public com.google.api.Distribution.BucketOptions.Exponential getExponentialBuckets() { if (optionsCase_ == 2) { - return (Exponential) options_; + return (com.google.api.Distribution.BucketOptions.Exponential) options_; } - return Exponential.getDefaultInstance(); + return com.google.api.Distribution.BucketOptions.Exponential.getDefaultInstance(); } /** + * + * *
      * The exponential buckets.
      * 
* * .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; */ - public ExponentialOrBuilder getExponentialBucketsOrBuilder() { + public com.google.api.Distribution.BucketOptions.ExponentialOrBuilder + getExponentialBucketsOrBuilder() { if (optionsCase_ == 2) { - return (Exponential) options_; + return (com.google.api.Distribution.BucketOptions.Exponential) options_; } - return Exponential.getDefaultInstance(); + return com.google.api.Distribution.BucketOptions.Exponential.getDefaultInstance(); } public static final int EXPLICIT_BUCKETS_FIELD_NUMBER = 3; /** + * + * *
      * The explicit buckets.
      * 
* * .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; + * + * @return Whether the explicitBuckets field is set. */ public boolean hasExplicitBuckets() { return optionsCase_ == 3; } /** + * + * *
      * The explicit buckets.
      * 
* * .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; + * + * @return The explicitBuckets. */ - public Explicit getExplicitBuckets() { + public com.google.api.Distribution.BucketOptions.Explicit getExplicitBuckets() { if (optionsCase_ == 3) { - return (Explicit) options_; + return (com.google.api.Distribution.BucketOptions.Explicit) options_; } - return Explicit.getDefaultInstance(); + return com.google.api.Distribution.BucketOptions.Explicit.getDefaultInstance(); } /** + * + * *
      * The explicit buckets.
      * 
* * .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; */ - public ExplicitOrBuilder getExplicitBucketsOrBuilder() { + public com.google.api.Distribution.BucketOptions.ExplicitOrBuilder + getExplicitBucketsOrBuilder() { if (optionsCase_ == 3) { - return (Explicit) options_; + return (com.google.api.Distribution.BucketOptions.Explicit) options_; } - return Explicit.getDefaultInstance(); + return com.google.api.Distribution.BucketOptions.Explicit.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -3154,67 +3615,67 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (optionsCase_ == 1) { - output.writeMessage(1, (Linear) options_); + output.writeMessage(1, (com.google.api.Distribution.BucketOptions.Linear) options_); } if (optionsCase_ == 2) { - output.writeMessage(2, (Exponential) options_); + output.writeMessage(2, (com.google.api.Distribution.BucketOptions.Exponential) options_); } if (optionsCase_ == 3) { - output.writeMessage(3, (Explicit) options_); + output.writeMessage(3, (com.google.api.Distribution.BucketOptions.Explicit) options_); } unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (optionsCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (Linear) options_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.api.Distribution.BucketOptions.Linear) options_); } if (optionsCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (Exponential) options_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.api.Distribution.BucketOptions.Exponential) options_); } if (optionsCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (Explicit) options_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.api.Distribution.BucketOptions.Explicit) options_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof BucketOptions)) { + if (!(obj instanceof com.google.api.Distribution.BucketOptions)) { return super.equals(obj); } - BucketOptions other = (BucketOptions) obj; + com.google.api.Distribution.BucketOptions other = + (com.google.api.Distribution.BucketOptions) obj; if (!getOptionsCase().equals(other.getOptionsCase())) return false; switch (optionsCase_) { case 1: - if (!getLinearBuckets() - .equals(other.getLinearBuckets())) return false; + if (!getLinearBuckets().equals(other.getLinearBuckets())) return false; break; case 2: - if (!getExponentialBuckets() - .equals(other.getExponentialBuckets())) return false; + if (!getExponentialBuckets().equals(other.getExponentialBuckets())) return false; break; case 3: - if (!getExplicitBuckets() - .equals(other.getExplicitBuckets())) return false; + if (!getExplicitBuckets().equals(other.getExplicitBuckets())) return false; break; case 0: default: @@ -3223,7 +3684,7 @@ public boolean equals(final Object obj) { return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -3251,97 +3712,105 @@ public int hashCode() { return hash; } - public static BucketOptions parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.Distribution.BucketOptions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static BucketOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Distribution.BucketOptions parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static BucketOptions parseFrom( + + public static com.google.api.Distribution.BucketOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static BucketOptions parseFrom( + + public static com.google.api.Distribution.BucketOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static BucketOptions parseFrom(byte[] data) + + public static com.google.api.Distribution.BucketOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static BucketOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Distribution.BucketOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static BucketOptions parseFrom(java.io.InputStream input) + + public static com.google.api.Distribution.BucketOptions 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 BucketOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Distribution.BucketOptions parseFrom( + 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 BucketOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.api.Distribution.BucketOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static BucketOptions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Distribution.BucketOptions parseDelimitedFrom( + 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 BucketOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.api.Distribution.BucketOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static BucketOptions parseFrom( + + public static com.google.api.Distribution.BucketOptions 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(BucketOptions prototype) { + + public static Builder newBuilder(com.google.api.Distribution.BucketOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
      * `BucketOptions` describes the bucket boundaries used to create a histogram
      * for the distribution. The buckets can be in a linear sequence, an
@@ -3361,21 +3830,24 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.api.Distribution.BucketOptions}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.api.Distribution.BucketOptions)
-        BucketOptionsOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.api.DistributionProto.internal_static_google_api_Distribution_BucketOptions_descriptor;
+        com.google.api.Distribution.BucketOptionsOrBuilder {
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.api.DistributionProto
+            .internal_static_google_api_Distribution_BucketOptions_descriptor;
       }
 
-      @Override
-      protected FieldAccessorTable
+      @java.lang.Override
+      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.api.DistributionProto.internal_static_google_api_Distribution_BucketOptions_fieldAccessorTable
+        return com.google.api.DistributionProto
+            .internal_static_google_api_Distribution_BucketOptions_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                BucketOptions.class, Builder.class);
+                com.google.api.Distribution.BucketOptions.class,
+                com.google.api.Distribution.BucketOptions.Builder.class);
       }
 
       // Construct using com.google.api.Distribution.BucketOptions.newBuilder()
@@ -3383,17 +3855,16 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
-      @Override
+
+      @java.lang.Override
       public Builder clear() {
         super.clear();
         optionsCase_ = 0;
@@ -3401,29 +3872,30 @@ public Builder clear() {
         return this;
       }
 
-      @Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.api.DistributionProto.internal_static_google_api_Distribution_BucketOptions_descriptor;
+      @java.lang.Override
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.api.DistributionProto
+            .internal_static_google_api_Distribution_BucketOptions_descriptor;
       }
 
-      @Override
-      public BucketOptions getDefaultInstanceForType() {
-        return BucketOptions.getDefaultInstance();
+      @java.lang.Override
+      public com.google.api.Distribution.BucketOptions getDefaultInstanceForType() {
+        return com.google.api.Distribution.BucketOptions.getDefaultInstance();
       }
 
-      @Override
-      public BucketOptions build() {
-        BucketOptions result = buildPartial();
+      @java.lang.Override
+      public com.google.api.Distribution.BucketOptions build() {
+        com.google.api.Distribution.BucketOptions result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
         return result;
       }
 
-      @Override
-      public BucketOptions buildPartial() {
-        BucketOptions result = new BucketOptions(this);
+      @java.lang.Override
+      public com.google.api.Distribution.BucketOptions buildPartial() {
+        com.google.api.Distribution.BucketOptions result =
+            new com.google.api.Distribution.BucketOptions(this);
         if (optionsCase_ == 1) {
           if (linearBucketsBuilder_ == null) {
             result.options_ = options_;
@@ -3450,87 +3922,94 @@ public BucketOptions buildPartial() {
         return result;
       }
 
-      @Override
+      @java.lang.Override
       public Builder clone() {
         return super.clone();
       }
-      @Override
+
+      @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
-      @Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+      @java.lang.Override
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-      @Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+      @java.lang.Override
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-      @Override
+
+      @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-      @Override
+
+      @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-      @Override
+
+      @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof BucketOptions) {
-          return mergeFrom((BucketOptions)other);
+        if (other instanceof com.google.api.Distribution.BucketOptions) {
+          return mergeFrom((com.google.api.Distribution.BucketOptions) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(BucketOptions other) {
-        if (other == BucketOptions.getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.api.Distribution.BucketOptions other) {
+        if (other == com.google.api.Distribution.BucketOptions.getDefaultInstance()) return this;
         switch (other.getOptionsCase()) {
-          case LINEAR_BUCKETS: {
-            mergeLinearBuckets(other.getLinearBuckets());
-            break;
-          }
-          case EXPONENTIAL_BUCKETS: {
-            mergeExponentialBuckets(other.getExponentialBuckets());
-            break;
-          }
-          case EXPLICIT_BUCKETS: {
-            mergeExplicitBuckets(other.getExplicitBuckets());
-            break;
-          }
-          case OPTIONS_NOT_SET: {
-            break;
-          }
+          case LINEAR_BUCKETS:
+            {
+              mergeLinearBuckets(other.getLinearBuckets());
+              break;
+            }
+          case EXPONENTIAL_BUCKETS:
+            {
+              mergeExponentialBuckets(other.getExponentialBuckets());
+              break;
+            }
+          case EXPLICIT_BUCKETS:
+            {
+              mergeExplicitBuckets(other.getExplicitBuckets());
+              break;
+            }
+          case OPTIONS_NOT_SET:
+            {
+              break;
+            }
         }
         this.mergeUnknownFields(other.unknownFields);
         onChanged();
         return this;
       }
 
-      @Override
+      @java.lang.Override
       public final boolean isInitialized() {
         return true;
       }
 
-      @Override
+      @java.lang.Override
       public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        BucketOptions parsedMessage = null;
+        com.google.api.Distribution.BucketOptions parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (BucketOptions) e.getUnfinishedMessage();
+          parsedMessage = (com.google.api.Distribution.BucketOptions) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -3539,12 +4018,12 @@ public Builder mergeFrom(
         }
         return this;
       }
+
       private int optionsCase_ = 0;
-      private Object options_;
-      public OptionsCase
-          getOptionsCase() {
-        return OptionsCase.forNumber(
-            optionsCase_);
+      private java.lang.Object options_;
+
+      public OptionsCase getOptionsCase() {
+        return OptionsCase.forNumber(optionsCase_);
       }
 
       public Builder clearOptions() {
@@ -3554,47 +4033,59 @@ public Builder clearOptions() {
         return this;
       }
 
-
       private com.google.protobuf.SingleFieldBuilderV3<
-          Linear, Linear.Builder, LinearOrBuilder> linearBucketsBuilder_;
+              com.google.api.Distribution.BucketOptions.Linear,
+              com.google.api.Distribution.BucketOptions.Linear.Builder,
+              com.google.api.Distribution.BucketOptions.LinearOrBuilder>
+          linearBucketsBuilder_;
       /**
+       *
+       *
        * 
        * The linear bucket.
        * 
* * .google.api.Distribution.BucketOptions.Linear linear_buckets = 1; + * + * @return Whether the linearBuckets field is set. */ public boolean hasLinearBuckets() { return optionsCase_ == 1; } /** + * + * *
        * The linear bucket.
        * 
* * .google.api.Distribution.BucketOptions.Linear linear_buckets = 1; + * + * @return The linearBuckets. */ - public Linear getLinearBuckets() { + public com.google.api.Distribution.BucketOptions.Linear getLinearBuckets() { if (linearBucketsBuilder_ == null) { if (optionsCase_ == 1) { - return (Linear) options_; + return (com.google.api.Distribution.BucketOptions.Linear) options_; } - return Linear.getDefaultInstance(); + return com.google.api.Distribution.BucketOptions.Linear.getDefaultInstance(); } else { if (optionsCase_ == 1) { return linearBucketsBuilder_.getMessage(); } - return Linear.getDefaultInstance(); + return com.google.api.Distribution.BucketOptions.Linear.getDefaultInstance(); } } /** + * + * *
        * The linear bucket.
        * 
* * .google.api.Distribution.BucketOptions.Linear linear_buckets = 1; */ - public Builder setLinearBuckets(Linear value) { + public Builder setLinearBuckets(com.google.api.Distribution.BucketOptions.Linear value) { if (linearBucketsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3608,6 +4099,8 @@ public Builder setLinearBuckets(Linear value) { return this; } /** + * + * *
        * The linear bucket.
        * 
@@ -3615,7 +4108,7 @@ public Builder setLinearBuckets(Linear value) { * .google.api.Distribution.BucketOptions.Linear linear_buckets = 1; */ public Builder setLinearBuckets( - Linear.Builder builderForValue) { + com.google.api.Distribution.BucketOptions.Linear.Builder builderForValue) { if (linearBucketsBuilder_ == null) { options_ = builderForValue.build(); onChanged(); @@ -3626,18 +4119,24 @@ public Builder setLinearBuckets( return this; } /** + * + * *
        * The linear bucket.
        * 
* * .google.api.Distribution.BucketOptions.Linear linear_buckets = 1; */ - public Builder mergeLinearBuckets(Linear value) { + public Builder mergeLinearBuckets(com.google.api.Distribution.BucketOptions.Linear value) { if (linearBucketsBuilder_ == null) { - if (optionsCase_ == 1 && - options_ != Linear.getDefaultInstance()) { - options_ = Linear.newBuilder((Linear) options_) - .mergeFrom(value).buildPartial(); + if (optionsCase_ == 1 + && options_ + != com.google.api.Distribution.BucketOptions.Linear.getDefaultInstance()) { + options_ = + com.google.api.Distribution.BucketOptions.Linear.newBuilder( + (com.google.api.Distribution.BucketOptions.Linear) options_) + .mergeFrom(value) + .buildPartial(); } else { options_ = value; } @@ -3652,6 +4151,8 @@ public Builder mergeLinearBuckets(Linear value) { return this; } /** + * + * *
        * The linear bucket.
        * 
@@ -3675,33 +4176,39 @@ public Builder clearLinearBuckets() { return this; } /** + * + * *
        * The linear bucket.
        * 
* * .google.api.Distribution.BucketOptions.Linear linear_buckets = 1; */ - public Linear.Builder getLinearBucketsBuilder() { + public com.google.api.Distribution.BucketOptions.Linear.Builder getLinearBucketsBuilder() { return getLinearBucketsFieldBuilder().getBuilder(); } /** + * + * *
        * The linear bucket.
        * 
* * .google.api.Distribution.BucketOptions.Linear linear_buckets = 1; */ - public LinearOrBuilder getLinearBucketsOrBuilder() { + public com.google.api.Distribution.BucketOptions.LinearOrBuilder getLinearBucketsOrBuilder() { if ((optionsCase_ == 1) && (linearBucketsBuilder_ != null)) { return linearBucketsBuilder_.getMessageOrBuilder(); } else { if (optionsCase_ == 1) { - return (Linear) options_; + return (com.google.api.Distribution.BucketOptions.Linear) options_; } - return Linear.getDefaultInstance(); + return com.google.api.Distribution.BucketOptions.Linear.getDefaultInstance(); } } /** + * + * *
        * The linear bucket.
        * 
@@ -3709,64 +4216,84 @@ public LinearOrBuilder getLinearBucketsOrBuilder() { * .google.api.Distribution.BucketOptions.Linear linear_buckets = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - Linear, Linear.Builder, LinearOrBuilder> + com.google.api.Distribution.BucketOptions.Linear, + com.google.api.Distribution.BucketOptions.Linear.Builder, + com.google.api.Distribution.BucketOptions.LinearOrBuilder> getLinearBucketsFieldBuilder() { if (linearBucketsBuilder_ == null) { if (!(optionsCase_ == 1)) { - options_ = Linear.getDefaultInstance(); + options_ = com.google.api.Distribution.BucketOptions.Linear.getDefaultInstance(); } - linearBucketsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - Linear, Linear.Builder, LinearOrBuilder>( - (Linear) options_, + linearBucketsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.Distribution.BucketOptions.Linear, + com.google.api.Distribution.BucketOptions.Linear.Builder, + com.google.api.Distribution.BucketOptions.LinearOrBuilder>( + (com.google.api.Distribution.BucketOptions.Linear) options_, getParentForChildren(), isClean()); options_ = null; } optionsCase_ = 1; - onChanged();; + onChanged(); + ; return linearBucketsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - Exponential, Exponential.Builder, ExponentialOrBuilder> exponentialBucketsBuilder_; + com.google.api.Distribution.BucketOptions.Exponential, + com.google.api.Distribution.BucketOptions.Exponential.Builder, + com.google.api.Distribution.BucketOptions.ExponentialOrBuilder> + exponentialBucketsBuilder_; /** + * + * *
        * The exponential buckets.
        * 
* * .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; + * + * @return Whether the exponentialBuckets field is set. */ public boolean hasExponentialBuckets() { return optionsCase_ == 2; } /** + * + * *
        * The exponential buckets.
        * 
* * .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; + * + * @return The exponentialBuckets. */ - public Exponential getExponentialBuckets() { + public com.google.api.Distribution.BucketOptions.Exponential getExponentialBuckets() { if (exponentialBucketsBuilder_ == null) { if (optionsCase_ == 2) { - return (Exponential) options_; + return (com.google.api.Distribution.BucketOptions.Exponential) options_; } - return Exponential.getDefaultInstance(); + return com.google.api.Distribution.BucketOptions.Exponential.getDefaultInstance(); } else { if (optionsCase_ == 2) { return exponentialBucketsBuilder_.getMessage(); } - return Exponential.getDefaultInstance(); + return com.google.api.Distribution.BucketOptions.Exponential.getDefaultInstance(); } } /** + * + * *
        * The exponential buckets.
        * 
* * .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; */ - public Builder setExponentialBuckets(Exponential value) { + public Builder setExponentialBuckets( + com.google.api.Distribution.BucketOptions.Exponential value) { if (exponentialBucketsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3780,6 +4307,8 @@ public Builder setExponentialBuckets(Exponential value) { return this; } /** + * + * *
        * The exponential buckets.
        * 
@@ -3787,7 +4316,7 @@ public Builder setExponentialBuckets(Exponential value) { * .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; */ public Builder setExponentialBuckets( - Exponential.Builder builderForValue) { + com.google.api.Distribution.BucketOptions.Exponential.Builder builderForValue) { if (exponentialBucketsBuilder_ == null) { options_ = builderForValue.build(); onChanged(); @@ -3798,18 +4327,25 @@ public Builder setExponentialBuckets( return this; } /** + * + * *
        * The exponential buckets.
        * 
* * .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; */ - public Builder mergeExponentialBuckets(Exponential value) { + public Builder mergeExponentialBuckets( + com.google.api.Distribution.BucketOptions.Exponential value) { if (exponentialBucketsBuilder_ == null) { - if (optionsCase_ == 2 && - options_ != Exponential.getDefaultInstance()) { - options_ = Exponential.newBuilder((Exponential) options_) - .mergeFrom(value).buildPartial(); + if (optionsCase_ == 2 + && options_ + != com.google.api.Distribution.BucketOptions.Exponential.getDefaultInstance()) { + options_ = + com.google.api.Distribution.BucketOptions.Exponential.newBuilder( + (com.google.api.Distribution.BucketOptions.Exponential) options_) + .mergeFrom(value) + .buildPartial(); } else { options_ = value; } @@ -3824,6 +4360,8 @@ public Builder mergeExponentialBuckets(Exponential value) { return this; } /** + * + * *
        * The exponential buckets.
        * 
@@ -3847,33 +4385,41 @@ public Builder clearExponentialBuckets() { return this; } /** + * + * *
        * The exponential buckets.
        * 
* * .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; */ - public Exponential.Builder getExponentialBucketsBuilder() { + public com.google.api.Distribution.BucketOptions.Exponential.Builder + getExponentialBucketsBuilder() { return getExponentialBucketsFieldBuilder().getBuilder(); } /** + * + * *
        * The exponential buckets.
        * 
* * .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; */ - public ExponentialOrBuilder getExponentialBucketsOrBuilder() { + public com.google.api.Distribution.BucketOptions.ExponentialOrBuilder + getExponentialBucketsOrBuilder() { if ((optionsCase_ == 2) && (exponentialBucketsBuilder_ != null)) { return exponentialBucketsBuilder_.getMessageOrBuilder(); } else { if (optionsCase_ == 2) { - return (Exponential) options_; + return (com.google.api.Distribution.BucketOptions.Exponential) options_; } - return Exponential.getDefaultInstance(); + return com.google.api.Distribution.BucketOptions.Exponential.getDefaultInstance(); } } /** + * + * *
        * The exponential buckets.
        * 
@@ -3881,64 +4427,83 @@ public ExponentialOrBuilder getExponentialBucketsOrBuilder() { * .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - Exponential, Exponential.Builder, ExponentialOrBuilder> + com.google.api.Distribution.BucketOptions.Exponential, + com.google.api.Distribution.BucketOptions.Exponential.Builder, + com.google.api.Distribution.BucketOptions.ExponentialOrBuilder> getExponentialBucketsFieldBuilder() { if (exponentialBucketsBuilder_ == null) { if (!(optionsCase_ == 2)) { - options_ = Exponential.getDefaultInstance(); + options_ = com.google.api.Distribution.BucketOptions.Exponential.getDefaultInstance(); } - exponentialBucketsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - Exponential, Exponential.Builder, ExponentialOrBuilder>( - (Exponential) options_, + exponentialBucketsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.Distribution.BucketOptions.Exponential, + com.google.api.Distribution.BucketOptions.Exponential.Builder, + com.google.api.Distribution.BucketOptions.ExponentialOrBuilder>( + (com.google.api.Distribution.BucketOptions.Exponential) options_, getParentForChildren(), isClean()); options_ = null; } optionsCase_ = 2; - onChanged();; + onChanged(); + ; return exponentialBucketsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - Explicit, Explicit.Builder, ExplicitOrBuilder> explicitBucketsBuilder_; + com.google.api.Distribution.BucketOptions.Explicit, + com.google.api.Distribution.BucketOptions.Explicit.Builder, + com.google.api.Distribution.BucketOptions.ExplicitOrBuilder> + explicitBucketsBuilder_; /** + * + * *
        * The explicit buckets.
        * 
* * .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; + * + * @return Whether the explicitBuckets field is set. */ public boolean hasExplicitBuckets() { return optionsCase_ == 3; } /** + * + * *
        * The explicit buckets.
        * 
* * .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; + * + * @return The explicitBuckets. */ - public Explicit getExplicitBuckets() { + public com.google.api.Distribution.BucketOptions.Explicit getExplicitBuckets() { if (explicitBucketsBuilder_ == null) { if (optionsCase_ == 3) { - return (Explicit) options_; + return (com.google.api.Distribution.BucketOptions.Explicit) options_; } - return Explicit.getDefaultInstance(); + return com.google.api.Distribution.BucketOptions.Explicit.getDefaultInstance(); } else { if (optionsCase_ == 3) { return explicitBucketsBuilder_.getMessage(); } - return Explicit.getDefaultInstance(); + return com.google.api.Distribution.BucketOptions.Explicit.getDefaultInstance(); } } /** + * + * *
        * The explicit buckets.
        * 
* * .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; */ - public Builder setExplicitBuckets(Explicit value) { + public Builder setExplicitBuckets(com.google.api.Distribution.BucketOptions.Explicit value) { if (explicitBucketsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3952,6 +4517,8 @@ public Builder setExplicitBuckets(Explicit value) { return this; } /** + * + * *
        * The explicit buckets.
        * 
@@ -3959,7 +4526,7 @@ public Builder setExplicitBuckets(Explicit value) { * .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; */ public Builder setExplicitBuckets( - Explicit.Builder builderForValue) { + com.google.api.Distribution.BucketOptions.Explicit.Builder builderForValue) { if (explicitBucketsBuilder_ == null) { options_ = builderForValue.build(); onChanged(); @@ -3970,18 +4537,25 @@ public Builder setExplicitBuckets( return this; } /** + * + * *
        * The explicit buckets.
        * 
* * .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; */ - public Builder mergeExplicitBuckets(Explicit value) { + public Builder mergeExplicitBuckets( + com.google.api.Distribution.BucketOptions.Explicit value) { if (explicitBucketsBuilder_ == null) { - if (optionsCase_ == 3 && - options_ != Explicit.getDefaultInstance()) { - options_ = Explicit.newBuilder((Explicit) options_) - .mergeFrom(value).buildPartial(); + if (optionsCase_ == 3 + && options_ + != com.google.api.Distribution.BucketOptions.Explicit.getDefaultInstance()) { + options_ = + com.google.api.Distribution.BucketOptions.Explicit.newBuilder( + (com.google.api.Distribution.BucketOptions.Explicit) options_) + .mergeFrom(value) + .buildPartial(); } else { options_ = value; } @@ -3996,6 +4570,8 @@ public Builder mergeExplicitBuckets(Explicit value) { return this; } /** + * + * *
        * The explicit buckets.
        * 
@@ -4019,33 +4595,41 @@ public Builder clearExplicitBuckets() { return this; } /** + * + * *
        * The explicit buckets.
        * 
* * .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; */ - public Explicit.Builder getExplicitBucketsBuilder() { + public com.google.api.Distribution.BucketOptions.Explicit.Builder + getExplicitBucketsBuilder() { return getExplicitBucketsFieldBuilder().getBuilder(); } /** + * + * *
        * The explicit buckets.
        * 
* * .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; */ - public ExplicitOrBuilder getExplicitBucketsOrBuilder() { + public com.google.api.Distribution.BucketOptions.ExplicitOrBuilder + getExplicitBucketsOrBuilder() { if ((optionsCase_ == 3) && (explicitBucketsBuilder_ != null)) { return explicitBucketsBuilder_.getMessageOrBuilder(); } else { if (optionsCase_ == 3) { - return (Explicit) options_; + return (com.google.api.Distribution.BucketOptions.Explicit) options_; } - return Explicit.getDefaultInstance(); + return com.google.api.Distribution.BucketOptions.Explicit.getDefaultInstance(); } } /** + * + * *
        * The explicit buckets.
        * 
@@ -4053,107 +4637,128 @@ public ExplicitOrBuilder getExplicitBucketsOrBuilder() { * .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - Explicit, Explicit.Builder, ExplicitOrBuilder> + com.google.api.Distribution.BucketOptions.Explicit, + com.google.api.Distribution.BucketOptions.Explicit.Builder, + com.google.api.Distribution.BucketOptions.ExplicitOrBuilder> getExplicitBucketsFieldBuilder() { if (explicitBucketsBuilder_ == null) { if (!(optionsCase_ == 3)) { - options_ = Explicit.getDefaultInstance(); + options_ = com.google.api.Distribution.BucketOptions.Explicit.getDefaultInstance(); } - explicitBucketsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - Explicit, Explicit.Builder, ExplicitOrBuilder>( - (Explicit) options_, + explicitBucketsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.Distribution.BucketOptions.Explicit, + com.google.api.Distribution.BucketOptions.Explicit.Builder, + com.google.api.Distribution.BucketOptions.ExplicitOrBuilder>( + (com.google.api.Distribution.BucketOptions.Explicit) options_, getParentForChildren(), isClean()); options_ = null; } optionsCase_ = 3; - onChanged();; + onChanged(); + ; return explicitBucketsBuilder_; } - @Override + + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.Distribution.BucketOptions) } // @@protoc_insertion_point(class_scope:google.api.Distribution.BucketOptions) - private static final BucketOptions DEFAULT_INSTANCE; + private static final com.google.api.Distribution.BucketOptions DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new BucketOptions(); + DEFAULT_INSTANCE = new com.google.api.Distribution.BucketOptions(); } - public static BucketOptions getDefaultInstance() { + public static com.google.api.Distribution.BucketOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public BucketOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BucketOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BucketOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BucketOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public BucketOptions getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.Distribution.BucketOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ExemplarOrBuilder extends + public interface ExemplarOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.Distribution.Exemplar) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Value of the exemplar point. This value determines to which bucket the
      * exemplar belongs.
      * 
* * double value = 1; + * + * @return The value. */ double getValue(); /** + * + * *
      * The observation (sampling) time of the above value.
      * 
* * .google.protobuf.Timestamp timestamp = 2; + * + * @return Whether the timestamp field is set. */ boolean hasTimestamp(); /** + * + * *
      * The observation (sampling) time of the above value.
      * 
* * .google.protobuf.Timestamp timestamp = 2; + * + * @return The timestamp. */ com.google.protobuf.Timestamp getTimestamp(); /** + * + * *
      * The observation (sampling) time of the above value.
      * 
@@ -4163,6 +4768,8 @@ public interface ExemplarOrBuilder extends com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); /** + * + * *
      * Contextual information about the example value. Examples are:
      *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
@@ -4175,9 +4782,10 @@ public interface ExemplarOrBuilder extends
      *
      * repeated .google.protobuf.Any attachments = 3;
      */
-    java.util.List 
-        getAttachmentsList();
+    java.util.List getAttachmentsList();
     /**
+     *
+     *
      * 
      * Contextual information about the example value. Examples are:
      *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
@@ -4192,6 +4800,8 @@ public interface ExemplarOrBuilder extends
      */
     com.google.protobuf.Any getAttachments(int index);
     /**
+     *
+     *
      * 
      * Contextual information about the example value. Examples are:
      *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
@@ -4206,6 +4816,8 @@ public interface ExemplarOrBuilder extends
      */
     int getAttachmentsCount();
     /**
+     *
+     *
      * 
      * Contextual information about the example value. Examples are:
      *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
@@ -4218,9 +4830,10 @@ public interface ExemplarOrBuilder extends
      *
      * repeated .google.protobuf.Any attachments = 3;
      */
-    java.util.List 
-        getAttachmentsOrBuilderList();
+    java.util.List getAttachmentsOrBuilderList();
     /**
+     *
+     *
      * 
      * Contextual information about the example value. Examples are:
      *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
@@ -4233,10 +4846,11 @@ public interface ExemplarOrBuilder extends
      *
      * repeated .google.protobuf.Any attachments = 3;
      */
-    com.google.protobuf.AnyOrBuilder getAttachmentsOrBuilder(
-        int index);
+    com.google.protobuf.AnyOrBuilder getAttachmentsOrBuilder(int index);
   }
   /**
+   *
+   *
    * 
    * Exemplars are example points that may be used to annotate aggregated
    * distribution values. They are metadata that gives information about a
@@ -4247,31 +4861,38 @@ com.google.protobuf.AnyOrBuilder getAttachmentsOrBuilder(
    *
    * Protobuf type {@code google.api.Distribution.Exemplar}
    */
-  public  static final class Exemplar extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class Exemplar extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.api.Distribution.Exemplar)
       ExemplarOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use Exemplar.newBuilder() to construct.
     private Exemplar(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private Exemplar() {
       attachments_ = java.util.Collections.emptyList();
     }
 
-    @Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    @java.lang.Override
+    @SuppressWarnings({"unused"})
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+      return new Exemplar();
+    }
+
+    @java.lang.Override
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private Exemplar(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       this();
       if (extensionRegistry == null) {
-        throw new NullPointerException();
+        throw new java.lang.NullPointerException();
       }
       int mutable_bitField0_ = 0;
       com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -4284,78 +4905,86 @@ private Exemplar(
             case 0:
               done = true;
               break;
-            case 9: {
-
-              value_ = input.readDouble();
-              break;
-            }
-            case 18: {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (timestamp_ != null) {
-                subBuilder = timestamp_.toBuilder();
-              }
-              timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(timestamp_);
-                timestamp_ = subBuilder.buildPartial();
+            case 9:
+              {
+                value_ = input.readDouble();
+                break;
               }
+            case 18:
+              {
+                com.google.protobuf.Timestamp.Builder subBuilder = null;
+                if (timestamp_ != null) {
+                  subBuilder = timestamp_.toBuilder();
+                }
+                timestamp_ =
+                    input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom(timestamp_);
+                  timestamp_ = subBuilder.buildPartial();
+                }
 
-              break;
-            }
-            case 26: {
-              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-                attachments_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000004;
+                break;
               }
-              attachments_.add(
-                  input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry));
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+            case 26:
+              {
+                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                  attachments_ = new java.util.ArrayList();
+                  mutable_bitField0_ |= 0x00000001;
+                }
+                attachments_.add(
+                    input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry));
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
-        if (((mutable_bitField0_ & 0x00000004) != 0)) {
+        if (((mutable_bitField0_ & 0x00000001) != 0)) {
           attachments_ = java.util.Collections.unmodifiableList(attachments_);
         }
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.api.DistributionProto.internal_static_google_api_Distribution_Exemplar_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.api.DistributionProto
+          .internal_static_google_api_Distribution_Exemplar_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.api.DistributionProto.internal_static_google_api_Distribution_Exemplar_fieldAccessorTable
+      return com.google.api.DistributionProto
+          .internal_static_google_api_Distribution_Exemplar_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              Exemplar.class, Builder.class);
+              com.google.api.Distribution.Exemplar.class,
+              com.google.api.Distribution.Exemplar.Builder.class);
     }
 
-    private int bitField0_;
     public static final int VALUE_FIELD_NUMBER = 1;
     private double value_;
     /**
+     *
+     *
      * 
      * Value of the exemplar point. This value determines to which bucket the
      * exemplar belongs.
      * 
* * double value = 1; + * + * @return The value. */ public double getValue() { return value_; @@ -4364,26 +4993,36 @@ public double getValue() { public static final int TIMESTAMP_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp timestamp_; /** + * + * *
      * The observation (sampling) time of the above value.
      * 
* * .google.protobuf.Timestamp timestamp = 2; + * + * @return Whether the timestamp field is set. */ public boolean hasTimestamp() { return timestamp_ != null; } /** + * + * *
      * The observation (sampling) time of the above value.
      * 
* * .google.protobuf.Timestamp timestamp = 2; + * + * @return The timestamp. */ public com.google.protobuf.Timestamp getTimestamp() { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } /** + * + * *
      * The observation (sampling) time of the above value.
      * 
@@ -4397,6 +5036,8 @@ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { public static final int ATTACHMENTS_FIELD_NUMBER = 3; private java.util.List attachments_; /** + * + * *
      * Contextual information about the example value. Examples are:
      *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
@@ -4413,6 +5054,8 @@ public java.util.List getAttachmentsList() {
       return attachments_;
     }
     /**
+     *
+     *
      * 
      * Contextual information about the example value. Examples are:
      *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
@@ -4425,11 +5068,13 @@ public java.util.List getAttachmentsList() {
      *
      * repeated .google.protobuf.Any attachments = 3;
      */
-    public java.util.List 
+    public java.util.List
         getAttachmentsOrBuilderList() {
       return attachments_;
     }
     /**
+     *
+     *
      * 
      * Contextual information about the example value. Examples are:
      *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
@@ -4446,6 +5091,8 @@ public int getAttachmentsCount() {
       return attachments_.size();
     }
     /**
+     *
+     *
      * 
      * Contextual information about the example value. Examples are:
      *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
@@ -4462,6 +5109,8 @@ public com.google.protobuf.Any getAttachments(int index) {
       return attachments_.get(index);
     }
     /**
+     *
+     *
      * 
      * Contextual information about the example value. Examples are:
      *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
@@ -4474,13 +5123,13 @@ public com.google.protobuf.Any getAttachments(int index) {
      *
      * repeated .google.protobuf.Any attachments = 3;
      */
-    public com.google.protobuf.AnyOrBuilder getAttachmentsOrBuilder(
-        int index) {
+    public com.google.protobuf.AnyOrBuilder getAttachmentsOrBuilder(int index) {
       return attachments_.get(index);
     }
 
     private byte memoizedIsInitialized = -1;
-    @Override
+
+    @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
       if (isInitialized == 1) return true;
@@ -4490,9 +5139,8 @@ public final boolean isInitialized() {
       return true;
     }
 
-    @Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output)
-                        throws java.io.IOException {
+    @java.lang.Override
+    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
       if (value_ != 0D) {
         output.writeDouble(1, value_);
       }
@@ -4505,54 +5153,48 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       unknownFields.writeTo(output);
     }
 
-    @Override
+    @java.lang.Override
     public int getSerializedSize() {
       int size = memoizedSize;
       if (size != -1) return size;
 
       size = 0;
       if (value_ != 0D) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeDoubleSize(1, value_);
+        size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, value_);
       }
       if (timestamp_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, getTimestamp());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTimestamp());
       }
       for (int i = 0; i < attachments_.size(); i++) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(3, attachments_.get(i));
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, attachments_.get(i));
       }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
       return size;
     }
 
-    @Override
-    public boolean equals(final Object obj) {
+    @java.lang.Override
+    public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-       return true;
+        return true;
       }
-      if (!(obj instanceof Exemplar)) {
+      if (!(obj instanceof com.google.api.Distribution.Exemplar)) {
         return super.equals(obj);
       }
-      Exemplar other = (Exemplar) obj;
+      com.google.api.Distribution.Exemplar other = (com.google.api.Distribution.Exemplar) obj;
 
-      if (Double.doubleToLongBits(getValue())
-          != Double.doubleToLongBits(
-              other.getValue())) return false;
+      if (java.lang.Double.doubleToLongBits(getValue())
+          != java.lang.Double.doubleToLongBits(other.getValue())) return false;
       if (hasTimestamp() != other.hasTimestamp()) return false;
       if (hasTimestamp()) {
-        if (!getTimestamp()
-            .equals(other.getTimestamp())) return false;
+        if (!getTimestamp().equals(other.getTimestamp())) return false;
       }
-      if (!getAttachmentsList()
-          .equals(other.getAttachmentsList())) return false;
+      if (!getAttachmentsList().equals(other.getAttachmentsList())) return false;
       if (!unknownFields.equals(other.unknownFields)) return false;
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public int hashCode() {
       if (memoizedHashCode != 0) {
         return memoizedHashCode;
@@ -4560,8 +5202,10 @@ public int hashCode() {
       int hash = 41;
       hash = (19 * hash) + getDescriptor().hashCode();
       hash = (37 * hash) + VALUE_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-          Double.doubleToLongBits(getValue()));
+      hash =
+          (53 * hash)
+              + com.google.protobuf.Internal.hashLong(
+                  java.lang.Double.doubleToLongBits(getValue()));
       if (hasTimestamp()) {
         hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
         hash = (53 * hash) + getTimestamp().hashCode();
@@ -4575,97 +5219,105 @@ public int hashCode() {
       return hash;
     }
 
-    public static Exemplar parseFrom(
-        java.nio.ByteBuffer data)
+    public static com.google.api.Distribution.Exemplar parseFrom(java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static Exemplar parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+    public static com.google.api.Distribution.Exemplar parseFrom(
+        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static Exemplar parseFrom(
+
+    public static com.google.api.Distribution.Exemplar parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static Exemplar parseFrom(
+
+    public static com.google.api.Distribution.Exemplar parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static Exemplar parseFrom(byte[] data)
+
+    public static com.google.api.Distribution.Exemplar parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static Exemplar parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+    public static com.google.api.Distribution.Exemplar parseFrom(
+        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static Exemplar parseFrom(java.io.InputStream input)
+
+    public static com.google.api.Distribution.Exemplar 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 Exemplar parseFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+    public static com.google.api.Distribution.Exemplar parseFrom(
+        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 Exemplar parseDelimitedFrom(java.io.InputStream input)
+
+    public static com.google.api.Distribution.Exemplar 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 Exemplar parseDelimitedFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+    public static com.google.api.Distribution.Exemplar parseDelimitedFrom(
+        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 Exemplar parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.api.Distribution.Exemplar parseFrom(
+        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
-    public static Exemplar parseFrom(
+
+    public static com.google.api.Distribution.Exemplar 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();
     }
 
-    @Override
-    public Builder newBuilderForType() { return newBuilder(); }
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(Exemplar prototype) {
+
+    public static Builder newBuilder(com.google.api.Distribution.Exemplar prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
-    @Override
+
+    @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);
     }
 
-    @Override
+    @java.lang.Override
     protected Builder newBuilderForType(
-        BuilderParent parent) {
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       Builder builder = new Builder(parent);
       return builder;
     }
     /**
+     *
+     *
      * 
      * Exemplars are example points that may be used to annotate aggregated
      * distribution values. They are metadata that gives information about a
@@ -4676,21 +5328,24 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.api.Distribution.Exemplar}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.api.Distribution.Exemplar)
-        ExemplarOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.api.DistributionProto.internal_static_google_api_Distribution_Exemplar_descriptor;
+        com.google.api.Distribution.ExemplarOrBuilder {
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.api.DistributionProto
+            .internal_static_google_api_Distribution_Exemplar_descriptor;
       }
 
-      @Override
-      protected FieldAccessorTable
+      @java.lang.Override
+      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.api.DistributionProto.internal_static_google_api_Distribution_Exemplar_fieldAccessorTable
+        return com.google.api.DistributionProto
+            .internal_static_google_api_Distribution_Exemplar_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                Exemplar.class, Builder.class);
+                com.google.api.Distribution.Exemplar.class,
+                com.google.api.Distribution.Exemplar.Builder.class);
       }
 
       // Construct using com.google.api.Distribution.Exemplar.newBuilder()
@@ -4698,18 +5353,18 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
           getAttachmentsFieldBuilder();
         }
       }
-      @Override
+
+      @java.lang.Override
       public Builder clear() {
         super.clear();
         value_ = 0D;
@@ -4722,38 +5377,38 @@ public Builder clear() {
         }
         if (attachmentsBuilder_ == null) {
           attachments_ = java.util.Collections.emptyList();
-          bitField0_ = (bitField0_ & ~0x00000004);
+          bitField0_ = (bitField0_ & ~0x00000001);
         } else {
           attachmentsBuilder_.clear();
         }
         return this;
       }
 
-      @Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.api.DistributionProto.internal_static_google_api_Distribution_Exemplar_descriptor;
+      @java.lang.Override
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.api.DistributionProto
+            .internal_static_google_api_Distribution_Exemplar_descriptor;
       }
 
-      @Override
-      public Exemplar getDefaultInstanceForType() {
-        return Exemplar.getDefaultInstance();
+      @java.lang.Override
+      public com.google.api.Distribution.Exemplar getDefaultInstanceForType() {
+        return com.google.api.Distribution.Exemplar.getDefaultInstance();
       }
 
-      @Override
-      public Exemplar build() {
-        Exemplar result = buildPartial();
+      @java.lang.Override
+      public com.google.api.Distribution.Exemplar build() {
+        com.google.api.Distribution.Exemplar result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
         return result;
       }
 
-      @Override
-      public Exemplar buildPartial() {
-        Exemplar result = new Exemplar(this);
+      @java.lang.Override
+      public com.google.api.Distribution.Exemplar buildPartial() {
+        com.google.api.Distribution.Exemplar result =
+            new com.google.api.Distribution.Exemplar(this);
         int from_bitField0_ = bitField0_;
-        int to_bitField0_ = 0;
         result.value_ = value_;
         if (timestampBuilder_ == null) {
           result.timestamp_ = timestamp_;
@@ -4761,63 +5416,65 @@ public Exemplar buildPartial() {
           result.timestamp_ = timestampBuilder_.build();
         }
         if (attachmentsBuilder_ == null) {
-          if (((bitField0_ & 0x00000004) != 0)) {
+          if (((bitField0_ & 0x00000001) != 0)) {
             attachments_ = java.util.Collections.unmodifiableList(attachments_);
-            bitField0_ = (bitField0_ & ~0x00000004);
+            bitField0_ = (bitField0_ & ~0x00000001);
           }
           result.attachments_ = attachments_;
         } else {
           result.attachments_ = attachmentsBuilder_.build();
         }
-        result.bitField0_ = to_bitField0_;
         onBuilt();
         return result;
       }
 
-      @Override
+      @java.lang.Override
       public Builder clone() {
         return super.clone();
       }
-      @Override
+
+      @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
-      @Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+      @java.lang.Override
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-      @Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+      @java.lang.Override
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-      @Override
+
+      @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-      @Override
+
+      @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-      @Override
+
+      @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof Exemplar) {
-          return mergeFrom((Exemplar)other);
+        if (other instanceof com.google.api.Distribution.Exemplar) {
+          return mergeFrom((com.google.api.Distribution.Exemplar) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(Exemplar other) {
-        if (other == Exemplar.getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.api.Distribution.Exemplar other) {
+        if (other == com.google.api.Distribution.Exemplar.getDefaultInstance()) return this;
         if (other.getValue() != 0D) {
           setValue(other.getValue());
         }
@@ -4828,7 +5485,7 @@ public Builder mergeFrom(Exemplar other) {
           if (!other.attachments_.isEmpty()) {
             if (attachments_.isEmpty()) {
               attachments_ = other.attachments_;
-              bitField0_ = (bitField0_ & ~0x00000004);
+              bitField0_ = (bitField0_ & ~0x00000001);
             } else {
               ensureAttachmentsIsMutable();
               attachments_.addAll(other.attachments_);
@@ -4841,10 +5498,11 @@ public Builder mergeFrom(Exemplar other) {
               attachmentsBuilder_.dispose();
               attachmentsBuilder_ = null;
               attachments_ = other.attachments_;
-              bitField0_ = (bitField0_ & ~0x00000004);
-              attachmentsBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getAttachmentsFieldBuilder() : null;
+              bitField0_ = (bitField0_ & ~0x00000001);
+              attachmentsBuilder_ =
+                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                      ? getAttachmentsFieldBuilder()
+                      : null;
             } else {
               attachmentsBuilder_.addAllMessages(other.attachments_);
             }
@@ -4855,21 +5513,21 @@ public Builder mergeFrom(Exemplar other) {
         return this;
       }
 
-      @Override
+      @java.lang.Override
       public final boolean isInitialized() {
         return true;
       }
 
-      @Override
+      @java.lang.Override
       public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        Exemplar parsedMessage = null;
+        com.google.api.Distribution.Exemplar parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (Exemplar) e.getUnfinishedMessage();
+          parsedMessage = (com.google.api.Distribution.Exemplar) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -4878,44 +5536,58 @@ public Builder mergeFrom(
         }
         return this;
       }
+
       private int bitField0_;
 
-      private double value_ ;
+      private double value_;
       /**
+       *
+       *
        * 
        * Value of the exemplar point. This value determines to which bucket the
        * exemplar belongs.
        * 
* * double value = 1; + * + * @return The value. */ public double getValue() { return value_; } /** + * + * *
        * Value of the exemplar point. This value determines to which bucket the
        * exemplar belongs.
        * 
* * double value = 1; + * + * @param value The value to set. + * @return This builder for chaining. */ public Builder setValue(double value) { - + value_ = value; onChanged(); return this; } /** + * + * *
        * Value of the exemplar point. This value determines to which bucket the
        * exemplar belongs.
        * 
* * double value = 1; + * + * @return This builder for chaining. */ public Builder clearValue() { - + value_ = 0D; onChanged(); return this; @@ -4923,32 +5595,47 @@ public Builder clearValue() { private com.google.protobuf.Timestamp timestamp_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + timestampBuilder_; /** + * + * *
        * The observation (sampling) time of the above value.
        * 
* * .google.protobuf.Timestamp timestamp = 2; + * + * @return Whether the timestamp field is set. */ public boolean hasTimestamp() { return timestampBuilder_ != null || timestamp_ != null; } /** + * + * *
        * The observation (sampling) time of the above value.
        * 
* * .google.protobuf.Timestamp timestamp = 2; + * + * @return The timestamp. */ public com.google.protobuf.Timestamp getTimestamp() { if (timestampBuilder_ == null) { - return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; + return timestamp_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : timestamp_; } else { return timestampBuilder_.getMessage(); } } /** + * + * *
        * The observation (sampling) time of the above value.
        * 
@@ -4969,14 +5656,15 @@ public Builder setTimestamp(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * The observation (sampling) time of the above value.
        * 
* * .google.protobuf.Timestamp timestamp = 2; */ - public Builder setTimestamp( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); onChanged(); @@ -4987,6 +5675,8 @@ public Builder setTimestamp( return this; } /** + * + * *
        * The observation (sampling) time of the above value.
        * 
@@ -4997,7 +5687,9 @@ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (timestamp_ != null) { timestamp_ = - com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(timestamp_) + .mergeFrom(value) + .buildPartial(); } else { timestamp_ = value; } @@ -5009,6 +5701,8 @@ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * The observation (sampling) time of the above value.
        * 
@@ -5027,6 +5721,8 @@ public Builder clearTimestamp() { return this; } /** + * + * *
        * The observation (sampling) time of the above value.
        * 
@@ -5034,11 +5730,13 @@ public Builder clearTimestamp() { * .google.protobuf.Timestamp timestamp = 2; */ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { - + onChanged(); return getTimestampFieldBuilder().getBuilder(); } /** + * + * *
        * The observation (sampling) time of the above value.
        * 
@@ -5049,11 +5747,14 @@ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { if (timestampBuilder_ != null) { return timestampBuilder_.getMessageOrBuilder(); } else { - return timestamp_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; + return timestamp_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : timestamp_; } } /** + * + * *
        * The observation (sampling) time of the above value.
        * 
@@ -5061,32 +5762,41 @@ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { * .google.protobuf.Timestamp timestamp = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getTimestampFieldBuilder() { if (timestampBuilder_ == null) { - timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getTimestamp(), - getParentForChildren(), - isClean()); + timestampBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getTimestamp(), getParentForChildren(), isClean()); timestamp_ = null; } return timestampBuilder_; } private java.util.List attachments_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAttachmentsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { attachments_ = new java.util.ArrayList(attachments_); - bitField0_ |= 0x00000004; - } + bitField0_ |= 0x00000001; + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> attachmentsBuilder_; + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder> + attachmentsBuilder_; /** + * + * *
        * Contextual information about the example value. Examples are:
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
@@ -5107,6 +5817,8 @@ public java.util.List getAttachmentsList() {
         }
       }
       /**
+       *
+       *
        * 
        * Contextual information about the example value. Examples are:
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
@@ -5127,6 +5839,8 @@ public int getAttachmentsCount() {
         }
       }
       /**
+       *
+       *
        * 
        * Contextual information about the example value. Examples are:
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
@@ -5147,6 +5861,8 @@ public com.google.protobuf.Any getAttachments(int index) {
         }
       }
       /**
+       *
+       *
        * 
        * Contextual information about the example value. Examples are:
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
@@ -5159,8 +5875,7 @@ public com.google.protobuf.Any getAttachments(int index) {
        *
        * repeated .google.protobuf.Any attachments = 3;
        */
-      public Builder setAttachments(
-          int index, com.google.protobuf.Any value) {
+      public Builder setAttachments(int index, com.google.protobuf.Any value) {
         if (attachmentsBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -5174,6 +5889,8 @@ public Builder setAttachments(
         return this;
       }
       /**
+       *
+       *
        * 
        * Contextual information about the example value. Examples are:
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
@@ -5186,8 +5903,7 @@ public Builder setAttachments(
        *
        * repeated .google.protobuf.Any attachments = 3;
        */
-      public Builder setAttachments(
-          int index, com.google.protobuf.Any.Builder builderForValue) {
+      public Builder setAttachments(int index, com.google.protobuf.Any.Builder builderForValue) {
         if (attachmentsBuilder_ == null) {
           ensureAttachmentsIsMutable();
           attachments_.set(index, builderForValue.build());
@@ -5198,6 +5914,8 @@ public Builder setAttachments(
         return this;
       }
       /**
+       *
+       *
        * 
        * Contextual information about the example value. Examples are:
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
@@ -5224,6 +5942,8 @@ public Builder addAttachments(com.google.protobuf.Any value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Contextual information about the example value. Examples are:
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
@@ -5236,8 +5956,7 @@ public Builder addAttachments(com.google.protobuf.Any value) {
        *
        * repeated .google.protobuf.Any attachments = 3;
        */
-      public Builder addAttachments(
-          int index, com.google.protobuf.Any value) {
+      public Builder addAttachments(int index, com.google.protobuf.Any value) {
         if (attachmentsBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -5251,6 +5970,8 @@ public Builder addAttachments(
         return this;
       }
       /**
+       *
+       *
        * 
        * Contextual information about the example value. Examples are:
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
@@ -5263,8 +5984,7 @@ public Builder addAttachments(
        *
        * repeated .google.protobuf.Any attachments = 3;
        */
-      public Builder addAttachments(
-          com.google.protobuf.Any.Builder builderForValue) {
+      public Builder addAttachments(com.google.protobuf.Any.Builder builderForValue) {
         if (attachmentsBuilder_ == null) {
           ensureAttachmentsIsMutable();
           attachments_.add(builderForValue.build());
@@ -5275,6 +5995,8 @@ public Builder addAttachments(
         return this;
       }
       /**
+       *
+       *
        * 
        * Contextual information about the example value. Examples are:
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
@@ -5287,8 +6009,7 @@ public Builder addAttachments(
        *
        * repeated .google.protobuf.Any attachments = 3;
        */
-      public Builder addAttachments(
-          int index, com.google.protobuf.Any.Builder builderForValue) {
+      public Builder addAttachments(int index, com.google.protobuf.Any.Builder builderForValue) {
         if (attachmentsBuilder_ == null) {
           ensureAttachmentsIsMutable();
           attachments_.add(index, builderForValue.build());
@@ -5299,6 +6020,8 @@ public Builder addAttachments(
         return this;
       }
       /**
+       *
+       *
        * 
        * Contextual information about the example value. Examples are:
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
@@ -5312,11 +6035,10 @@ public Builder addAttachments(
        * repeated .google.protobuf.Any attachments = 3;
        */
       public Builder addAllAttachments(
-          Iterable values) {
+          java.lang.Iterable values) {
         if (attachmentsBuilder_ == null) {
           ensureAttachmentsIsMutable();
-          com.google.protobuf.AbstractMessageLite.Builder.addAll(
-              values, attachments_);
+          com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attachments_);
           onChanged();
         } else {
           attachmentsBuilder_.addAllMessages(values);
@@ -5324,6 +6046,8 @@ public Builder addAllAttachments(
         return this;
       }
       /**
+       *
+       *
        * 
        * Contextual information about the example value. Examples are:
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
@@ -5339,7 +6063,7 @@ public Builder addAllAttachments(
       public Builder clearAttachments() {
         if (attachmentsBuilder_ == null) {
           attachments_ = java.util.Collections.emptyList();
-          bitField0_ = (bitField0_ & ~0x00000004);
+          bitField0_ = (bitField0_ & ~0x00000001);
           onChanged();
         } else {
           attachmentsBuilder_.clear();
@@ -5347,6 +6071,8 @@ public Builder clearAttachments() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Contextual information about the example value. Examples are:
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
@@ -5370,6 +6096,8 @@ public Builder removeAttachments(int index) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Contextual information about the example value. Examples are:
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
@@ -5382,11 +6110,12 @@ public Builder removeAttachments(int index) {
        *
        * repeated .google.protobuf.Any attachments = 3;
        */
-      public com.google.protobuf.Any.Builder getAttachmentsBuilder(
-          int index) {
+      public com.google.protobuf.Any.Builder getAttachmentsBuilder(int index) {
         return getAttachmentsFieldBuilder().getBuilder(index);
       }
       /**
+       *
+       *
        * 
        * Contextual information about the example value. Examples are:
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
@@ -5399,14 +6128,16 @@ public com.google.protobuf.Any.Builder getAttachmentsBuilder(
        *
        * repeated .google.protobuf.Any attachments = 3;
        */
-      public com.google.protobuf.AnyOrBuilder getAttachmentsOrBuilder(
-          int index) {
+      public com.google.protobuf.AnyOrBuilder getAttachmentsOrBuilder(int index) {
         if (attachmentsBuilder_ == null) {
-          return attachments_.get(index);  } else {
+          return attachments_.get(index);
+        } else {
           return attachmentsBuilder_.getMessageOrBuilder(index);
         }
       }
       /**
+       *
+       *
        * 
        * Contextual information about the example value. Examples are:
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
@@ -5419,8 +6150,8 @@ public com.google.protobuf.AnyOrBuilder getAttachmentsOrBuilder(
        *
        * repeated .google.protobuf.Any attachments = 3;
        */
-      public java.util.List 
-           getAttachmentsOrBuilderList() {
+      public java.util.List
+          getAttachmentsOrBuilderList() {
         if (attachmentsBuilder_ != null) {
           return attachmentsBuilder_.getMessageOrBuilderList();
         } else {
@@ -5428,6 +6159,8 @@ public com.google.protobuf.AnyOrBuilder getAttachmentsOrBuilder(
         }
       }
       /**
+       *
+       *
        * 
        * Contextual information about the example value. Examples are:
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
@@ -5441,10 +6174,12 @@ public com.google.protobuf.AnyOrBuilder getAttachmentsOrBuilder(
        * repeated .google.protobuf.Any attachments = 3;
        */
       public com.google.protobuf.Any.Builder addAttachmentsBuilder() {
-        return getAttachmentsFieldBuilder().addBuilder(
-            com.google.protobuf.Any.getDefaultInstance());
+        return getAttachmentsFieldBuilder()
+            .addBuilder(com.google.protobuf.Any.getDefaultInstance());
       }
       /**
+       *
+       *
        * 
        * Contextual information about the example value. Examples are:
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
@@ -5457,12 +6192,13 @@ public com.google.protobuf.Any.Builder addAttachmentsBuilder() {
        *
        * repeated .google.protobuf.Any attachments = 3;
        */
-      public com.google.protobuf.Any.Builder addAttachmentsBuilder(
-          int index) {
-        return getAttachmentsFieldBuilder().addBuilder(
-            index, com.google.protobuf.Any.getDefaultInstance());
+      public com.google.protobuf.Any.Builder addAttachmentsBuilder(int index) {
+        return getAttachmentsFieldBuilder()
+            .addBuilder(index, com.google.protobuf.Any.getDefaultInstance());
       }
       /**
+       *
+       *
        * 
        * Contextual information about the example value. Examples are:
        *   Trace: type.googleapis.com/google.monitoring.v3.SpanContext
@@ -5475,81 +6211,87 @@ public com.google.protobuf.Any.Builder addAttachmentsBuilder(
        *
        * repeated .google.protobuf.Any attachments = 3;
        */
-      public java.util.List 
-           getAttachmentsBuilderList() {
+      public java.util.List getAttachmentsBuilderList() {
         return getAttachmentsFieldBuilder().getBuilderList();
       }
+
       private com.google.protobuf.RepeatedFieldBuilderV3<
-          com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> 
+              com.google.protobuf.Any,
+              com.google.protobuf.Any.Builder,
+              com.google.protobuf.AnyOrBuilder>
           getAttachmentsFieldBuilder() {
         if (attachmentsBuilder_ == null) {
-          attachmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-              com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
+          attachmentsBuilder_ =
+              new com.google.protobuf.RepeatedFieldBuilderV3<
+                  com.google.protobuf.Any,
+                  com.google.protobuf.Any.Builder,
+                  com.google.protobuf.AnyOrBuilder>(
                   attachments_,
-                  ((bitField0_ & 0x00000004) != 0),
+                  ((bitField0_ & 0x00000001) != 0),
                   getParentForChildren(),
                   isClean());
           attachments_ = null;
         }
         return attachmentsBuilder_;
       }
-      @Override
+
+      @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
         return super.setUnknownFields(unknownFields);
       }
 
-      @Override
+      @java.lang.Override
       public final Builder mergeUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.api.Distribution.Exemplar)
     }
 
     // @@protoc_insertion_point(class_scope:google.api.Distribution.Exemplar)
-    private static final Exemplar DEFAULT_INSTANCE;
+    private static final com.google.api.Distribution.Exemplar DEFAULT_INSTANCE;
+
     static {
-      DEFAULT_INSTANCE = new Exemplar();
+      DEFAULT_INSTANCE = new com.google.api.Distribution.Exemplar();
     }
 
-    public static Exemplar getDefaultInstance() {
+    public static com.google.api.Distribution.Exemplar getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @Override
-      public Exemplar parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return new Exemplar(input, extensionRegistry);
-      }
-    };
+    private static final com.google.protobuf.Parser PARSER =
+        new com.google.protobuf.AbstractParser() {
+          @java.lang.Override
+          public Exemplar parsePartialFrom(
+              com.google.protobuf.CodedInputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
+            return new Exemplar(input, extensionRegistry);
+          }
+        };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
     }
 
-    @Override
+    @java.lang.Override
     public com.google.protobuf.Parser getParserForType() {
       return PARSER;
     }
 
-    @Override
-    public Exemplar getDefaultInstanceForType() {
+    @java.lang.Override
+    public com.google.api.Distribution.Exemplar getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
-  private int bitField0_;
   public static final int COUNT_FIELD_NUMBER = 1;
   private long count_;
   /**
+   *
+   *
    * 
    * The number of values in the population. Must be non-negative. This value
    * must equal the sum of the values in `bucket_counts` if a histogram is
@@ -5557,6 +6299,8 @@ public Exemplar getDefaultInstanceForType() {
    * 
* * int64 count = 1; + * + * @return The count. */ public long getCount() { return count_; @@ -5565,12 +6309,16 @@ public long getCount() { public static final int MEAN_FIELD_NUMBER = 2; private double mean_; /** + * + * *
    * The arithmetic mean of the values in the population. If `count` is zero
    * then this field must be zero.
    * 
* * double mean = 2; + * + * @return The mean. */ public double getMean() { return mean_; @@ -5579,6 +6327,8 @@ public double getMean() { public static final int SUM_OF_SQUARED_DEVIATION_FIELD_NUMBER = 3; private double sumOfSquaredDeviation_; /** + * + * *
    * The sum of squared deviations from the mean of the values in the
    * population. For values x_i this is:
@@ -5589,36 +6339,48 @@ public double getMean() {
    * 
* * double sum_of_squared_deviation = 3; + * + * @return The sumOfSquaredDeviation. */ public double getSumOfSquaredDeviation() { return sumOfSquaredDeviation_; } public static final int RANGE_FIELD_NUMBER = 4; - private Range range_; + private com.google.api.Distribution.Range range_; /** + * + * *
    * If specified, contains the range of the population values. The field
    * must not be present if the `count` is zero.
    * 
* * .google.api.Distribution.Range range = 4; + * + * @return Whether the range field is set. */ public boolean hasRange() { return range_ != null; } /** + * + * *
    * If specified, contains the range of the population values. The field
    * must not be present if the `count` is zero.
    * 
* * .google.api.Distribution.Range range = 4; + * + * @return The range. */ - public Range getRange() { - return range_ == null ? Range.getDefaultInstance() : range_; + public com.google.api.Distribution.Range getRange() { + return range_ == null ? com.google.api.Distribution.Range.getDefaultInstance() : range_; } /** + * + * *
    * If specified, contains the range of the population values. The field
    * must not be present if the `count` is zero.
@@ -5626,35 +6388,47 @@ public Range getRange() {
    *
    * .google.api.Distribution.Range range = 4;
    */
-  public RangeOrBuilder getRangeOrBuilder() {
+  public com.google.api.Distribution.RangeOrBuilder getRangeOrBuilder() {
     return getRange();
   }
 
   public static final int BUCKET_OPTIONS_FIELD_NUMBER = 6;
-  private BucketOptions bucketOptions_;
+  private com.google.api.Distribution.BucketOptions bucketOptions_;
   /**
+   *
+   *
    * 
    * Defines the histogram bucket boundaries. If the distribution does not
    * contain a histogram, then omit this field.
    * 
* * .google.api.Distribution.BucketOptions bucket_options = 6; + * + * @return Whether the bucketOptions field is set. */ public boolean hasBucketOptions() { return bucketOptions_ != null; } /** + * + * *
    * Defines the histogram bucket boundaries. If the distribution does not
    * contain a histogram, then omit this field.
    * 
* * .google.api.Distribution.BucketOptions bucket_options = 6; + * + * @return The bucketOptions. */ - public BucketOptions getBucketOptions() { - return bucketOptions_ == null ? BucketOptions.getDefaultInstance() : bucketOptions_; + public com.google.api.Distribution.BucketOptions getBucketOptions() { + return bucketOptions_ == null + ? com.google.api.Distribution.BucketOptions.getDefaultInstance() + : bucketOptions_; } /** + * + * *
    * Defines the histogram bucket boundaries. If the distribution does not
    * contain a histogram, then omit this field.
@@ -5662,13 +6436,15 @@ public BucketOptions getBucketOptions() {
    *
    * .google.api.Distribution.BucketOptions bucket_options = 6;
    */
-  public BucketOptionsOrBuilder getBucketOptionsOrBuilder() {
+  public com.google.api.Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuilder() {
     return getBucketOptions();
   }
 
   public static final int BUCKET_COUNTS_FIELD_NUMBER = 7;
   private com.google.protobuf.Internal.LongList bucketCounts_;
   /**
+   *
+   *
    * 
    * The number of values in each bucket of the histogram, as described in
    * `bucket_options`. If the distribution does not have a histogram, then omit
@@ -5686,12 +6462,15 @@ public BucketOptionsOrBuilder getBucketOptionsOrBuilder() {
    * 
* * repeated int64 bucket_counts = 7; + * + * @return A list containing the bucketCounts. */ - public java.util.List - getBucketCountsList() { + public java.util.List getBucketCountsList() { return bucketCounts_; } /** + * + * *
    * The number of values in each bucket of the histogram, as described in
    * `bucket_options`. If the distribution does not have a histogram, then omit
@@ -5709,11 +6488,15 @@ public BucketOptionsOrBuilder getBucketOptionsOrBuilder() {
    * 
* * repeated int64 bucket_counts = 7; + * + * @return The count of bucketCounts. */ public int getBucketCountsCount() { return bucketCounts_.size(); } /** + * + * *
    * The number of values in each bucket of the histogram, as described in
    * `bucket_options`. If the distribution does not have a histogram, then omit
@@ -5731,36 +6514,46 @@ public int getBucketCountsCount() {
    * 
* * repeated int64 bucket_counts = 7; + * + * @param index The index of the element to return. + * @return The bucketCounts at the given index. */ public long getBucketCounts(int index) { return bucketCounts_.getLong(index); } + private int bucketCountsMemoizedSerializedSize = -1; public static final int EXEMPLARS_FIELD_NUMBER = 10; - private java.util.List exemplars_; + private java.util.List exemplars_; /** + * + * *
    * Must be in increasing order of `value` field.
    * 
* * repeated .google.api.Distribution.Exemplar exemplars = 10; */ - public java.util.List getExemplarsList() { + public java.util.List getExemplarsList() { return exemplars_; } /** + * + * *
    * Must be in increasing order of `value` field.
    * 
* * repeated .google.api.Distribution.Exemplar exemplars = 10; */ - public java.util.List + public java.util.List getExemplarsOrBuilderList() { return exemplars_; } /** + * + * *
    * Must be in increasing order of `value` field.
    * 
@@ -5771,29 +6564,33 @@ public int getExemplarsCount() { return exemplars_.size(); } /** + * + * *
    * Must be in increasing order of `value` field.
    * 
* * repeated .google.api.Distribution.Exemplar exemplars = 10; */ - public Exemplar getExemplars(int index) { + public com.google.api.Distribution.Exemplar getExemplars(int index) { return exemplars_.get(index); } /** + * + * *
    * Must be in increasing order of `value` field.
    * 
* * repeated .google.api.Distribution.Exemplar exemplars = 10; */ - public ExemplarOrBuilder getExemplarsOrBuilder( - int index) { + public com.google.api.Distribution.ExemplarOrBuilder getExemplarsOrBuilder(int index) { return exemplars_.get(index); } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -5803,9 +6600,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (count_ != 0L) { output.writeInt64(1, count_); @@ -5835,92 +6631,78 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (count_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, count_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, count_); } if (mean_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, mean_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, mean_); } if (sumOfSquaredDeviation_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, sumOfSquaredDeviation_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, sumOfSquaredDeviation_); } if (range_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getRange()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRange()); } if (bucketOptions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getBucketOptions()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getBucketOptions()); } { int dataSize = 0; for (int i = 0; i < bucketCounts_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt64SizeNoTag(bucketCounts_.getLong(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(bucketCounts_.getLong(i)); } size += dataSize; if (!getBucketCountsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } bucketCountsMemoizedSerializedSize = dataSize; } for (int i = 0; i < exemplars_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, exemplars_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, exemplars_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof Distribution)) { + if (!(obj instanceof com.google.api.Distribution)) { return super.equals(obj); } - Distribution other = (Distribution) obj; + com.google.api.Distribution other = (com.google.api.Distribution) obj; - if (getCount() - != other.getCount()) return false; - if (Double.doubleToLongBits(getMean()) - != Double.doubleToLongBits( - other.getMean())) return false; - if (Double.doubleToLongBits(getSumOfSquaredDeviation()) - != Double.doubleToLongBits( - other.getSumOfSquaredDeviation())) return false; + if (getCount() != other.getCount()) return false; + if (java.lang.Double.doubleToLongBits(getMean()) + != java.lang.Double.doubleToLongBits(other.getMean())) return false; + if (java.lang.Double.doubleToLongBits(getSumOfSquaredDeviation()) + != java.lang.Double.doubleToLongBits(other.getSumOfSquaredDeviation())) return false; if (hasRange() != other.hasRange()) return false; if (hasRange()) { - if (!getRange() - .equals(other.getRange())) return false; + if (!getRange().equals(other.getRange())) return false; } if (hasBucketOptions() != other.hasBucketOptions()) return false; if (hasBucketOptions()) { - if (!getBucketOptions() - .equals(other.getBucketOptions())) return false; + if (!getBucketOptions().equals(other.getBucketOptions())) return false; } - if (!getBucketCountsList() - .equals(other.getBucketCountsList())) return false; - if (!getExemplarsList() - .equals(other.getExemplarsList())) return false; + if (!getBucketCountsList().equals(other.getBucketCountsList())) return false; + if (!getExemplarsList().equals(other.getExemplarsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -5928,14 +6710,16 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount()); hash = (37 * hash) + MEAN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - Double.doubleToLongBits(getMean())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getMean())); hash = (37 * hash) + SUM_OF_SQUARED_DEVIATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - Double.doubleToLongBits(getSumOfSquaredDeviation())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getSumOfSquaredDeviation())); if (hasRange()) { hash = (37 * hash) + RANGE_FIELD_NUMBER; hash = (53 * hash) + getRange().hashCode(); @@ -5957,97 +6741,103 @@ public int hashCode() { return hash; } - public static Distribution parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.Distribution parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Distribution parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Distribution parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Distribution parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.api.Distribution parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Distribution parseFrom( + + public static com.google.api.Distribution parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Distribution parseFrom(byte[] data) + + public static com.google.api.Distribution parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Distribution parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Distribution parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Distribution parseFrom(java.io.InputStream input) + + public static com.google.api.Distribution 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 Distribution parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Distribution parseFrom( + 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 Distribution parseDelimitedFrom(java.io.InputStream input) + + public static com.google.api.Distribution 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 Distribution parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Distribution parseDelimitedFrom( + 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 Distribution parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.api.Distribution 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 Distribution parseFrom( + + public static com.google.api.Distribution 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(Distribution prototype) { + + public static Builder newBuilder(com.google.api.Distribution prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * `Distribution` contains summary statistics for a population of values. It
    * optionally contains a histogram representing the distribution of those values
@@ -6065,21 +6855,21 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.Distribution}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.Distribution)
       com.google.api.DistributionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.api.DistributionProto.internal_static_google_api_Distribution_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.api.DistributionProto.internal_static_google_api_Distribution_fieldAccessorTable
+      return com.google.api.DistributionProto
+          .internal_static_google_api_Distribution_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              Distribution.class, Builder.class);
+              com.google.api.Distribution.class, com.google.api.Distribution.Builder.class);
     }
 
     // Construct using com.google.api.Distribution.newBuilder()
@@ -6087,18 +6877,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getExemplarsFieldBuilder();
       }
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       count_ = 0L;
@@ -6120,41 +6910,39 @@ public Builder clear() {
         bucketOptionsBuilder_ = null;
       }
       bucketCounts_ = emptyLongList();
-      bitField0_ = (bitField0_ & ~0x00000020);
+      bitField0_ = (bitField0_ & ~0x00000001);
       if (exemplarsBuilder_ == null) {
         exemplars_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000040);
+        bitField0_ = (bitField0_ & ~0x00000002);
       } else {
         exemplarsBuilder_.clear();
       }
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.api.DistributionProto.internal_static_google_api_Distribution_descriptor;
     }
 
-    @Override
-    public Distribution getDefaultInstanceForType() {
-      return Distribution.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.Distribution getDefaultInstanceForType() {
+      return com.google.api.Distribution.getDefaultInstance();
     }
 
-    @Override
-    public Distribution build() {
-      Distribution result = buildPartial();
+    @java.lang.Override
+    public com.google.api.Distribution build() {
+      com.google.api.Distribution result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public Distribution buildPartial() {
-      Distribution result = new Distribution(this);
+    @java.lang.Override
+    public com.google.api.Distribution buildPartial() {
+      com.google.api.Distribution result = new com.google.api.Distribution(this);
       int from_bitField0_ = bitField0_;
-      int to_bitField0_ = 0;
       result.count_ = count_;
       result.mean_ = mean_;
       result.sumOfSquaredDeviation_ = sumOfSquaredDeviation_;
@@ -6168,69 +6956,69 @@ public Distribution buildPartial() {
       } else {
         result.bucketOptions_ = bucketOptionsBuilder_.build();
       }
-      if (((bitField0_ & 0x00000020) != 0)) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         bucketCounts_.makeImmutable();
-        bitField0_ = (bitField0_ & ~0x00000020);
+        bitField0_ = (bitField0_ & ~0x00000001);
       }
       result.bucketCounts_ = bucketCounts_;
       if (exemplarsBuilder_ == null) {
-        if (((bitField0_ & 0x00000040) != 0)) {
+        if (((bitField0_ & 0x00000002) != 0)) {
           exemplars_ = java.util.Collections.unmodifiableList(exemplars_);
-          bitField0_ = (bitField0_ & ~0x00000040);
+          bitField0_ = (bitField0_ & ~0x00000002);
         }
         result.exemplars_ = exemplars_;
       } else {
         result.exemplars_ = exemplarsBuilder_.build();
       }
-      result.bitField0_ = to_bitField0_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof Distribution) {
-        return mergeFrom((Distribution)other);
+      if (other instanceof com.google.api.Distribution) {
+        return mergeFrom((com.google.api.Distribution) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(Distribution other) {
-      if (other == Distribution.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.Distribution other) {
+      if (other == com.google.api.Distribution.getDefaultInstance()) return this;
       if (other.getCount() != 0L) {
         setCount(other.getCount());
       }
@@ -6249,7 +7037,7 @@ public Builder mergeFrom(Distribution other) {
       if (!other.bucketCounts_.isEmpty()) {
         if (bucketCounts_.isEmpty()) {
           bucketCounts_ = other.bucketCounts_;
-          bitField0_ = (bitField0_ & ~0x00000020);
+          bitField0_ = (bitField0_ & ~0x00000001);
         } else {
           ensureBucketCountsIsMutable();
           bucketCounts_.addAll(other.bucketCounts_);
@@ -6260,7 +7048,7 @@ public Builder mergeFrom(Distribution other) {
         if (!other.exemplars_.isEmpty()) {
           if (exemplars_.isEmpty()) {
             exemplars_ = other.exemplars_;
-            bitField0_ = (bitField0_ & ~0x00000040);
+            bitField0_ = (bitField0_ & ~0x00000002);
           } else {
             ensureExemplarsIsMutable();
             exemplars_.addAll(other.exemplars_);
@@ -6273,10 +7061,11 @@ public Builder mergeFrom(Distribution other) {
             exemplarsBuilder_.dispose();
             exemplarsBuilder_ = null;
             exemplars_ = other.exemplars_;
-            bitField0_ = (bitField0_ & ~0x00000040);
-            exemplarsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getExemplarsFieldBuilder() : null;
+            bitField0_ = (bitField0_ & ~0x00000002);
+            exemplarsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getExemplarsFieldBuilder()
+                    : null;
           } else {
             exemplarsBuilder_.addAllMessages(other.exemplars_);
           }
@@ -6287,21 +7076,21 @@ public Builder mergeFrom(Distribution other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      Distribution parsedMessage = null;
+      com.google.api.Distribution parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (Distribution) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.Distribution) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -6310,10 +7099,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private long count_ ;
+    private long count_;
     /**
+     *
+     *
      * 
      * The number of values in the population. Must be non-negative. This value
      * must equal the sum of the values in `bucket_counts` if a histogram is
@@ -6321,11 +7113,15 @@ public Builder mergeFrom(
      * 
* * int64 count = 1; + * + * @return The count. */ public long getCount() { return count_; } /** + * + * *
      * The number of values in the population. Must be non-negative. This value
      * must equal the sum of the values in `bucket_counts` if a histogram is
@@ -6333,14 +7129,19 @@ public long getCount() {
      * 
* * int64 count = 1; + * + * @param value The count to set. + * @return This builder for chaining. */ public Builder setCount(long value) { - + count_ = value; onChanged(); return this; } /** + * + * *
      * The number of values in the population. Must be non-negative. This value
      * must equal the sum of the values in `bucket_counts` if a histogram is
@@ -6348,57 +7149,74 @@ public Builder setCount(long value) {
      * 
* * int64 count = 1; + * + * @return This builder for chaining. */ public Builder clearCount() { - + count_ = 0L; onChanged(); return this; } - private double mean_ ; + private double mean_; /** + * + * *
      * The arithmetic mean of the values in the population. If `count` is zero
      * then this field must be zero.
      * 
* * double mean = 2; + * + * @return The mean. */ public double getMean() { return mean_; } /** + * + * *
      * The arithmetic mean of the values in the population. If `count` is zero
      * then this field must be zero.
      * 
* * double mean = 2; + * + * @param value The mean to set. + * @return This builder for chaining. */ public Builder setMean(double value) { - + mean_ = value; onChanged(); return this; } /** + * + * *
      * The arithmetic mean of the values in the population. If `count` is zero
      * then this field must be zero.
      * 
* * double mean = 2; + * + * @return This builder for chaining. */ public Builder clearMean() { - + mean_ = 0D; onChanged(); return this; } - private double sumOfSquaredDeviation_ ; + private double sumOfSquaredDeviation_; /** + * + * *
      * The sum of squared deviations from the mean of the values in the
      * population. For values x_i this is:
@@ -6409,11 +7227,15 @@ public Builder clearMean() {
      * 
* * double sum_of_squared_deviation = 3; + * + * @return The sumOfSquaredDeviation. */ public double getSumOfSquaredDeviation() { return sumOfSquaredDeviation_; } /** + * + * *
      * The sum of squared deviations from the mean of the values in the
      * population. For values x_i this is:
@@ -6424,14 +7246,19 @@ public double getSumOfSquaredDeviation() {
      * 
* * double sum_of_squared_deviation = 3; + * + * @param value The sumOfSquaredDeviation to set. + * @return This builder for chaining. */ public Builder setSumOfSquaredDeviation(double value) { - + sumOfSquaredDeviation_ = value; onChanged(); return this; } /** + * + * *
      * The sum of squared deviations from the mean of the values in the
      * population. For values x_i this is:
@@ -6442,44 +7269,59 @@ public Builder setSumOfSquaredDeviation(double value) {
      * 
* * double sum_of_squared_deviation = 3; + * + * @return This builder for chaining. */ public Builder clearSumOfSquaredDeviation() { - + sumOfSquaredDeviation_ = 0D; onChanged(); return this; } - private Range range_; + private com.google.api.Distribution.Range range_; private com.google.protobuf.SingleFieldBuilderV3< - Range, Range.Builder, RangeOrBuilder> rangeBuilder_; + com.google.api.Distribution.Range, + com.google.api.Distribution.Range.Builder, + com.google.api.Distribution.RangeOrBuilder> + rangeBuilder_; /** + * + * *
      * If specified, contains the range of the population values. The field
      * must not be present if the `count` is zero.
      * 
* * .google.api.Distribution.Range range = 4; + * + * @return Whether the range field is set. */ public boolean hasRange() { return rangeBuilder_ != null || range_ != null; } /** + * + * *
      * If specified, contains the range of the population values. The field
      * must not be present if the `count` is zero.
      * 
* * .google.api.Distribution.Range range = 4; + * + * @return The range. */ - public Range getRange() { + public com.google.api.Distribution.Range getRange() { if (rangeBuilder_ == null) { - return range_ == null ? Range.getDefaultInstance() : range_; + return range_ == null ? com.google.api.Distribution.Range.getDefaultInstance() : range_; } else { return rangeBuilder_.getMessage(); } } /** + * + * *
      * If specified, contains the range of the population values. The field
      * must not be present if the `count` is zero.
@@ -6487,7 +7329,7 @@ public Range getRange() {
      *
      * .google.api.Distribution.Range range = 4;
      */
-    public Builder setRange(Range value) {
+    public Builder setRange(com.google.api.Distribution.Range value) {
       if (rangeBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -6501,6 +7343,8 @@ public Builder setRange(Range value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If specified, contains the range of the population values. The field
      * must not be present if the `count` is zero.
@@ -6508,8 +7352,7 @@ public Builder setRange(Range value) {
      *
      * .google.api.Distribution.Range range = 4;
      */
-    public Builder setRange(
-        Range.Builder builderForValue) {
+    public Builder setRange(com.google.api.Distribution.Range.Builder builderForValue) {
       if (rangeBuilder_ == null) {
         range_ = builderForValue.build();
         onChanged();
@@ -6520,6 +7363,8 @@ public Builder setRange(
       return this;
     }
     /**
+     *
+     *
      * 
      * If specified, contains the range of the population values. The field
      * must not be present if the `count` is zero.
@@ -6527,11 +7372,11 @@ public Builder setRange(
      *
      * .google.api.Distribution.Range range = 4;
      */
-    public Builder mergeRange(Range value) {
+    public Builder mergeRange(com.google.api.Distribution.Range value) {
       if (rangeBuilder_ == null) {
         if (range_ != null) {
           range_ =
-            Range.newBuilder(range_).mergeFrom(value).buildPartial();
+              com.google.api.Distribution.Range.newBuilder(range_).mergeFrom(value).buildPartial();
         } else {
           range_ = value;
         }
@@ -6543,6 +7388,8 @@ public Builder mergeRange(Range value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If specified, contains the range of the population values. The field
      * must not be present if the `count` is zero.
@@ -6562,6 +7409,8 @@ public Builder clearRange() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If specified, contains the range of the population values. The field
      * must not be present if the `count` is zero.
@@ -6569,12 +7418,14 @@ public Builder clearRange() {
      *
      * .google.api.Distribution.Range range = 4;
      */
-    public Range.Builder getRangeBuilder() {
-      
+    public com.google.api.Distribution.Range.Builder getRangeBuilder() {
+
       onChanged();
       return getRangeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If specified, contains the range of the population values. The field
      * must not be present if the `count` is zero.
@@ -6582,15 +7433,16 @@ public Range.Builder getRangeBuilder() {
      *
      * .google.api.Distribution.Range range = 4;
      */
-    public RangeOrBuilder getRangeOrBuilder() {
+    public com.google.api.Distribution.RangeOrBuilder getRangeOrBuilder() {
       if (rangeBuilder_ != null) {
         return rangeBuilder_.getMessageOrBuilder();
       } else {
-        return range_ == null ?
-            Range.getDefaultInstance() : range_;
+        return range_ == null ? com.google.api.Distribution.Range.getDefaultInstance() : range_;
       }
     }
     /**
+     *
+     *
      * 
      * If specified, contains the range of the population values. The field
      * must not be present if the `count` is zero.
@@ -6599,49 +7451,67 @@ public RangeOrBuilder getRangeOrBuilder() {
      * .google.api.Distribution.Range range = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        Range, Range.Builder, RangeOrBuilder>
+            com.google.api.Distribution.Range,
+            com.google.api.Distribution.Range.Builder,
+            com.google.api.Distribution.RangeOrBuilder>
         getRangeFieldBuilder() {
       if (rangeBuilder_ == null) {
-        rangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            Range, Range.Builder, RangeOrBuilder>(
-                getRange(),
-                getParentForChildren(),
-                isClean());
+        rangeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.api.Distribution.Range,
+                com.google.api.Distribution.Range.Builder,
+                com.google.api.Distribution.RangeOrBuilder>(
+                getRange(), getParentForChildren(), isClean());
         range_ = null;
       }
       return rangeBuilder_;
     }
 
-    private BucketOptions bucketOptions_;
+    private com.google.api.Distribution.BucketOptions bucketOptions_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        BucketOptions, BucketOptions.Builder, BucketOptionsOrBuilder> bucketOptionsBuilder_;
+            com.google.api.Distribution.BucketOptions,
+            com.google.api.Distribution.BucketOptions.Builder,
+            com.google.api.Distribution.BucketOptionsOrBuilder>
+        bucketOptionsBuilder_;
     /**
+     *
+     *
      * 
      * Defines the histogram bucket boundaries. If the distribution does not
      * contain a histogram, then omit this field.
      * 
* * .google.api.Distribution.BucketOptions bucket_options = 6; + * + * @return Whether the bucketOptions field is set. */ public boolean hasBucketOptions() { return bucketOptionsBuilder_ != null || bucketOptions_ != null; } /** + * + * *
      * Defines the histogram bucket boundaries. If the distribution does not
      * contain a histogram, then omit this field.
      * 
* * .google.api.Distribution.BucketOptions bucket_options = 6; + * + * @return The bucketOptions. */ - public BucketOptions getBucketOptions() { + public com.google.api.Distribution.BucketOptions getBucketOptions() { if (bucketOptionsBuilder_ == null) { - return bucketOptions_ == null ? BucketOptions.getDefaultInstance() : bucketOptions_; + return bucketOptions_ == null + ? com.google.api.Distribution.BucketOptions.getDefaultInstance() + : bucketOptions_; } else { return bucketOptionsBuilder_.getMessage(); } } /** + * + * *
      * Defines the histogram bucket boundaries. If the distribution does not
      * contain a histogram, then omit this field.
@@ -6649,7 +7519,7 @@ public BucketOptions getBucketOptions() {
      *
      * .google.api.Distribution.BucketOptions bucket_options = 6;
      */
-    public Builder setBucketOptions(BucketOptions value) {
+    public Builder setBucketOptions(com.google.api.Distribution.BucketOptions value) {
       if (bucketOptionsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -6663,6 +7533,8 @@ public Builder setBucketOptions(BucketOptions value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Defines the histogram bucket boundaries. If the distribution does not
      * contain a histogram, then omit this field.
@@ -6671,7 +7543,7 @@ public Builder setBucketOptions(BucketOptions value) {
      * .google.api.Distribution.BucketOptions bucket_options = 6;
      */
     public Builder setBucketOptions(
-        BucketOptions.Builder builderForValue) {
+        com.google.api.Distribution.BucketOptions.Builder builderForValue) {
       if (bucketOptionsBuilder_ == null) {
         bucketOptions_ = builderForValue.build();
         onChanged();
@@ -6682,6 +7554,8 @@ public Builder setBucketOptions(
       return this;
     }
     /**
+     *
+     *
      * 
      * Defines the histogram bucket boundaries. If the distribution does not
      * contain a histogram, then omit this field.
@@ -6689,11 +7563,13 @@ public Builder setBucketOptions(
      *
      * .google.api.Distribution.BucketOptions bucket_options = 6;
      */
-    public Builder mergeBucketOptions(BucketOptions value) {
+    public Builder mergeBucketOptions(com.google.api.Distribution.BucketOptions value) {
       if (bucketOptionsBuilder_ == null) {
         if (bucketOptions_ != null) {
           bucketOptions_ =
-            BucketOptions.newBuilder(bucketOptions_).mergeFrom(value).buildPartial();
+              com.google.api.Distribution.BucketOptions.newBuilder(bucketOptions_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           bucketOptions_ = value;
         }
@@ -6705,6 +7581,8 @@ public Builder mergeBucketOptions(BucketOptions value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Defines the histogram bucket boundaries. If the distribution does not
      * contain a histogram, then omit this field.
@@ -6724,6 +7602,8 @@ public Builder clearBucketOptions() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Defines the histogram bucket boundaries. If the distribution does not
      * contain a histogram, then omit this field.
@@ -6731,12 +7611,14 @@ public Builder clearBucketOptions() {
      *
      * .google.api.Distribution.BucketOptions bucket_options = 6;
      */
-    public BucketOptions.Builder getBucketOptionsBuilder() {
-      
+    public com.google.api.Distribution.BucketOptions.Builder getBucketOptionsBuilder() {
+
       onChanged();
       return getBucketOptionsFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Defines the histogram bucket boundaries. If the distribution does not
      * contain a histogram, then omit this field.
@@ -6744,15 +7626,18 @@ public BucketOptions.Builder getBucketOptionsBuilder() {
      *
      * .google.api.Distribution.BucketOptions bucket_options = 6;
      */
-    public BucketOptionsOrBuilder getBucketOptionsOrBuilder() {
+    public com.google.api.Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuilder() {
       if (bucketOptionsBuilder_ != null) {
         return bucketOptionsBuilder_.getMessageOrBuilder();
       } else {
-        return bucketOptions_ == null ?
-            BucketOptions.getDefaultInstance() : bucketOptions_;
+        return bucketOptions_ == null
+            ? com.google.api.Distribution.BucketOptions.getDefaultInstance()
+            : bucketOptions_;
       }
     }
     /**
+     *
+     *
      * 
      * Defines the histogram bucket boundaries. If the distribution does not
      * contain a histogram, then omit this field.
@@ -6761,27 +7646,33 @@ public BucketOptionsOrBuilder getBucketOptionsOrBuilder() {
      * .google.api.Distribution.BucketOptions bucket_options = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        BucketOptions, BucketOptions.Builder, BucketOptionsOrBuilder>
+            com.google.api.Distribution.BucketOptions,
+            com.google.api.Distribution.BucketOptions.Builder,
+            com.google.api.Distribution.BucketOptionsOrBuilder>
         getBucketOptionsFieldBuilder() {
       if (bucketOptionsBuilder_ == null) {
-        bucketOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            BucketOptions, BucketOptions.Builder, BucketOptionsOrBuilder>(
-                getBucketOptions(),
-                getParentForChildren(),
-                isClean());
+        bucketOptionsBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.api.Distribution.BucketOptions,
+                com.google.api.Distribution.BucketOptions.Builder,
+                com.google.api.Distribution.BucketOptionsOrBuilder>(
+                getBucketOptions(), getParentForChildren(), isClean());
         bucketOptions_ = null;
       }
       return bucketOptionsBuilder_;
     }
 
     private com.google.protobuf.Internal.LongList bucketCounts_ = emptyLongList();
+
     private void ensureBucketCountsIsMutable() {
-      if (!((bitField0_ & 0x00000020) != 0)) {
+      if (!((bitField0_ & 0x00000001) != 0)) {
         bucketCounts_ = mutableCopy(bucketCounts_);
-        bitField0_ |= 0x00000020;
-       }
+        bitField0_ |= 0x00000001;
+      }
     }
     /**
+     *
+     *
      * 
      * The number of values in each bucket of the histogram, as described in
      * `bucket_options`. If the distribution does not have a histogram, then omit
@@ -6799,13 +7690,17 @@ private void ensureBucketCountsIsMutable() {
      * 
* * repeated int64 bucket_counts = 7; + * + * @return A list containing the bucketCounts. */ - public java.util.List - getBucketCountsList() { - return ((bitField0_ & 0x00000020) != 0) ? - java.util.Collections.unmodifiableList(bucketCounts_) : bucketCounts_; + public java.util.List getBucketCountsList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(bucketCounts_) + : bucketCounts_; } /** + * + * *
      * The number of values in each bucket of the histogram, as described in
      * `bucket_options`. If the distribution does not have a histogram, then omit
@@ -6823,11 +7718,15 @@ private void ensureBucketCountsIsMutable() {
      * 
* * repeated int64 bucket_counts = 7; + * + * @return The count of bucketCounts. */ public int getBucketCountsCount() { return bucketCounts_.size(); } /** + * + * *
      * The number of values in each bucket of the histogram, as described in
      * `bucket_options`. If the distribution does not have a histogram, then omit
@@ -6845,11 +7744,16 @@ public int getBucketCountsCount() {
      * 
* * repeated int64 bucket_counts = 7; + * + * @param index The index of the element to return. + * @return The bucketCounts at the given index. */ public long getBucketCounts(int index) { return bucketCounts_.getLong(index); } /** + * + * *
      * The number of values in each bucket of the histogram, as described in
      * `bucket_options`. If the distribution does not have a histogram, then omit
@@ -6867,15 +7771,20 @@ public long getBucketCounts(int index) {
      * 
* * repeated int64 bucket_counts = 7; + * + * @param index The index to set the value at. + * @param value The bucketCounts to set. + * @return This builder for chaining. */ - public Builder setBucketCounts( - int index, long value) { + public Builder setBucketCounts(int index, long value) { ensureBucketCountsIsMutable(); bucketCounts_.setLong(index, value); onChanged(); return this; } /** + * + * *
      * The number of values in each bucket of the histogram, as described in
      * `bucket_options`. If the distribution does not have a histogram, then omit
@@ -6893,6 +7802,9 @@ public Builder setBucketCounts(
      * 
* * repeated int64 bucket_counts = 7; + * + * @param value The bucketCounts to add. + * @return This builder for chaining. */ public Builder addBucketCounts(long value) { ensureBucketCountsIsMutable(); @@ -6901,6 +7813,8 @@ public Builder addBucketCounts(long value) { return this; } /** + * + * *
      * The number of values in each bucket of the histogram, as described in
      * `bucket_options`. If the distribution does not have a histogram, then omit
@@ -6918,16 +7832,19 @@ public Builder addBucketCounts(long value) {
      * 
* * repeated int64 bucket_counts = 7; + * + * @param values The bucketCounts to add. + * @return This builder for chaining. */ - public Builder addAllBucketCounts( - Iterable values) { + public Builder addAllBucketCounts(java.lang.Iterable values) { ensureBucketCountsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, bucketCounts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bucketCounts_); onChanged(); return this; } /** + * + * *
      * The number of values in each bucket of the histogram, as described in
      * `bucket_options`. If the distribution does not have a histogram, then omit
@@ -6945,34 +7862,42 @@ public Builder addAllBucketCounts(
      * 
* * repeated int64 bucket_counts = 7; + * + * @return This builder for chaining. */ public Builder clearBucketCounts() { bucketCounts_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } - private java.util.List exemplars_ = - java.util.Collections.emptyList(); + private java.util.List exemplars_ = + java.util.Collections.emptyList(); + private void ensureExemplarsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - exemplars_ = new java.util.ArrayList(exemplars_); - bitField0_ |= 0x00000040; - } + if (!((bitField0_ & 0x00000002) != 0)) { + exemplars_ = new java.util.ArrayList(exemplars_); + bitField0_ |= 0x00000002; + } } private com.google.protobuf.RepeatedFieldBuilderV3< - Exemplar, Exemplar.Builder, ExemplarOrBuilder> exemplarsBuilder_; + com.google.api.Distribution.Exemplar, + com.google.api.Distribution.Exemplar.Builder, + com.google.api.Distribution.ExemplarOrBuilder> + exemplarsBuilder_; /** + * + * *
      * Must be in increasing order of `value` field.
      * 
* * repeated .google.api.Distribution.Exemplar exemplars = 10; */ - public java.util.List getExemplarsList() { + public java.util.List getExemplarsList() { if (exemplarsBuilder_ == null) { return java.util.Collections.unmodifiableList(exemplars_); } else { @@ -6980,6 +7905,8 @@ public java.util.List getExemplarsList() { } } /** + * + * *
      * Must be in increasing order of `value` field.
      * 
@@ -6994,13 +7921,15 @@ public int getExemplarsCount() { } } /** + * + * *
      * Must be in increasing order of `value` field.
      * 
* * repeated .google.api.Distribution.Exemplar exemplars = 10; */ - public Exemplar getExemplars(int index) { + public com.google.api.Distribution.Exemplar getExemplars(int index) { if (exemplarsBuilder_ == null) { return exemplars_.get(index); } else { @@ -7008,14 +7937,15 @@ public Exemplar getExemplars(int index) { } } /** + * + * *
      * Must be in increasing order of `value` field.
      * 
* * repeated .google.api.Distribution.Exemplar exemplars = 10; */ - public Builder setExemplars( - int index, Exemplar value) { + public Builder setExemplars(int index, com.google.api.Distribution.Exemplar value) { if (exemplarsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7029,6 +7959,8 @@ public Builder setExemplars( return this; } /** + * + * *
      * Must be in increasing order of `value` field.
      * 
@@ -7036,7 +7968,7 @@ public Builder setExemplars( * repeated .google.api.Distribution.Exemplar exemplars = 10; */ public Builder setExemplars( - int index, Exemplar.Builder builderForValue) { + int index, com.google.api.Distribution.Exemplar.Builder builderForValue) { if (exemplarsBuilder_ == null) { ensureExemplarsIsMutable(); exemplars_.set(index, builderForValue.build()); @@ -7047,13 +7979,15 @@ public Builder setExemplars( return this; } /** + * + * *
      * Must be in increasing order of `value` field.
      * 
* * repeated .google.api.Distribution.Exemplar exemplars = 10; */ - public Builder addExemplars(Exemplar value) { + public Builder addExemplars(com.google.api.Distribution.Exemplar value) { if (exemplarsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7067,14 +8001,15 @@ public Builder addExemplars(Exemplar value) { return this; } /** + * + * *
      * Must be in increasing order of `value` field.
      * 
* * repeated .google.api.Distribution.Exemplar exemplars = 10; */ - public Builder addExemplars( - int index, Exemplar value) { + public Builder addExemplars(int index, com.google.api.Distribution.Exemplar value) { if (exemplarsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7088,14 +8023,15 @@ public Builder addExemplars( return this; } /** + * + * *
      * Must be in increasing order of `value` field.
      * 
* * repeated .google.api.Distribution.Exemplar exemplars = 10; */ - public Builder addExemplars( - Exemplar.Builder builderForValue) { + public Builder addExemplars(com.google.api.Distribution.Exemplar.Builder builderForValue) { if (exemplarsBuilder_ == null) { ensureExemplarsIsMutable(); exemplars_.add(builderForValue.build()); @@ -7106,6 +8042,8 @@ public Builder addExemplars( return this; } /** + * + * *
      * Must be in increasing order of `value` field.
      * 
@@ -7113,7 +8051,7 @@ public Builder addExemplars( * repeated .google.api.Distribution.Exemplar exemplars = 10; */ public Builder addExemplars( - int index, Exemplar.Builder builderForValue) { + int index, com.google.api.Distribution.Exemplar.Builder builderForValue) { if (exemplarsBuilder_ == null) { ensureExemplarsIsMutable(); exemplars_.add(index, builderForValue.build()); @@ -7124,6 +8062,8 @@ public Builder addExemplars( return this; } /** + * + * *
      * Must be in increasing order of `value` field.
      * 
@@ -7131,11 +8071,10 @@ public Builder addExemplars( * repeated .google.api.Distribution.Exemplar exemplars = 10; */ public Builder addAllExemplars( - Iterable values) { + java.lang.Iterable values) { if (exemplarsBuilder_ == null) { ensureExemplarsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, exemplars_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exemplars_); onChanged(); } else { exemplarsBuilder_.addAllMessages(values); @@ -7143,6 +8082,8 @@ public Builder addAllExemplars( return this; } /** + * + * *
      * Must be in increasing order of `value` field.
      * 
@@ -7152,7 +8093,7 @@ public Builder addAllExemplars( public Builder clearExemplars() { if (exemplarsBuilder_ == null) { exemplars_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { exemplarsBuilder_.clear(); @@ -7160,6 +8101,8 @@ public Builder clearExemplars() { return this; } /** + * + * *
      * Must be in increasing order of `value` field.
      * 
@@ -7177,39 +8120,44 @@ public Builder removeExemplars(int index) { return this; } /** + * + * *
      * Must be in increasing order of `value` field.
      * 
* * repeated .google.api.Distribution.Exemplar exemplars = 10; */ - public Exemplar.Builder getExemplarsBuilder( - int index) { + public com.google.api.Distribution.Exemplar.Builder getExemplarsBuilder(int index) { return getExemplarsFieldBuilder().getBuilder(index); } /** + * + * *
      * Must be in increasing order of `value` field.
      * 
* * repeated .google.api.Distribution.Exemplar exemplars = 10; */ - public ExemplarOrBuilder getExemplarsOrBuilder( - int index) { + public com.google.api.Distribution.ExemplarOrBuilder getExemplarsOrBuilder(int index) { if (exemplarsBuilder_ == null) { - return exemplars_.get(index); } else { + return exemplars_.get(index); + } else { return exemplarsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Must be in increasing order of `value` field.
      * 
* * repeated .google.api.Distribution.Exemplar exemplars = 10; */ - public java.util.List - getExemplarsOrBuilderList() { + public java.util.List + getExemplarsOrBuilderList() { if (exemplarsBuilder_ != null) { return exemplarsBuilder_.getMessageOrBuilderList(); } else { @@ -7217,103 +8165,108 @@ public ExemplarOrBuilder getExemplarsOrBuilder( } } /** + * + * *
      * Must be in increasing order of `value` field.
      * 
* * repeated .google.api.Distribution.Exemplar exemplars = 10; */ - public Exemplar.Builder addExemplarsBuilder() { - return getExemplarsFieldBuilder().addBuilder( - Exemplar.getDefaultInstance()); + public com.google.api.Distribution.Exemplar.Builder addExemplarsBuilder() { + return getExemplarsFieldBuilder() + .addBuilder(com.google.api.Distribution.Exemplar.getDefaultInstance()); } /** + * + * *
      * Must be in increasing order of `value` field.
      * 
* * repeated .google.api.Distribution.Exemplar exemplars = 10; */ - public Exemplar.Builder addExemplarsBuilder( - int index) { - return getExemplarsFieldBuilder().addBuilder( - index, Exemplar.getDefaultInstance()); + public com.google.api.Distribution.Exemplar.Builder addExemplarsBuilder(int index) { + return getExemplarsFieldBuilder() + .addBuilder(index, com.google.api.Distribution.Exemplar.getDefaultInstance()); } /** + * + * *
      * Must be in increasing order of `value` field.
      * 
* * repeated .google.api.Distribution.Exemplar exemplars = 10; */ - public java.util.List - getExemplarsBuilderList() { + public java.util.List getExemplarsBuilderList() { return getExemplarsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - Exemplar, Exemplar.Builder, ExemplarOrBuilder> + com.google.api.Distribution.Exemplar, + com.google.api.Distribution.Exemplar.Builder, + com.google.api.Distribution.ExemplarOrBuilder> getExemplarsFieldBuilder() { if (exemplarsBuilder_ == null) { - exemplarsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - Exemplar, Exemplar.Builder, ExemplarOrBuilder>( - exemplars_, - ((bitField0_ & 0x00000040) != 0), - getParentForChildren(), - isClean()); + exemplarsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.api.Distribution.Exemplar, + com.google.api.Distribution.Exemplar.Builder, + com.google.api.Distribution.ExemplarOrBuilder>( + exemplars_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); exemplars_ = null; } return exemplarsBuilder_; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.Distribution) } // @@protoc_insertion_point(class_scope:google.api.Distribution) - private static final Distribution DEFAULT_INSTANCE; + private static final com.google.api.Distribution DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new Distribution(); + DEFAULT_INSTANCE = new com.google.api.Distribution(); } - public static Distribution getDefaultInstance() { + public static com.google.api.Distribution getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public Distribution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Distribution(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Distribution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Distribution(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public Distribution getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.Distribution getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/DistributionOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/DistributionOrBuilder.java index a905a860..c8fe4202 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/DistributionOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/DistributionOrBuilder.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/distribution.proto package com.google.api; -public interface DistributionOrBuilder extends +public interface DistributionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.Distribution) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The number of values in the population. Must be non-negative. This value
    * must equal the sum of the values in `bucket_counts` if a histogram is
@@ -15,20 +33,28 @@ public interface DistributionOrBuilder extends
    * 
* * int64 count = 1; + * + * @return The count. */ long getCount(); /** + * + * *
    * The arithmetic mean of the values in the population. If `count` is zero
    * then this field must be zero.
    * 
* * double mean = 2; + * + * @return The mean. */ double getMean(); /** + * + * *
    * The sum of squared deviations from the mean of the values in the
    * population. For values x_i this is:
@@ -39,28 +65,40 @@ public interface DistributionOrBuilder extends
    * 
* * double sum_of_squared_deviation = 3; + * + * @return The sumOfSquaredDeviation. */ double getSumOfSquaredDeviation(); /** + * + * *
    * If specified, contains the range of the population values. The field
    * must not be present if the `count` is zero.
    * 
* * .google.api.Distribution.Range range = 4; + * + * @return Whether the range field is set. */ boolean hasRange(); /** + * + * *
    * If specified, contains the range of the population values. The field
    * must not be present if the `count` is zero.
    * 
* * .google.api.Distribution.Range range = 4; + * + * @return The range. */ - Distribution.Range getRange(); + com.google.api.Distribution.Range getRange(); /** + * + * *
    * If specified, contains the range of the population values. The field
    * must not be present if the `count` is zero.
@@ -68,27 +106,37 @@ public interface DistributionOrBuilder extends
    *
    * .google.api.Distribution.Range range = 4;
    */
-  Distribution.RangeOrBuilder getRangeOrBuilder();
+  com.google.api.Distribution.RangeOrBuilder getRangeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Defines the histogram bucket boundaries. If the distribution does not
    * contain a histogram, then omit this field.
    * 
* * .google.api.Distribution.BucketOptions bucket_options = 6; + * + * @return Whether the bucketOptions field is set. */ boolean hasBucketOptions(); /** + * + * *
    * Defines the histogram bucket boundaries. If the distribution does not
    * contain a histogram, then omit this field.
    * 
* * .google.api.Distribution.BucketOptions bucket_options = 6; + * + * @return The bucketOptions. */ - Distribution.BucketOptions getBucketOptions(); + com.google.api.Distribution.BucketOptions getBucketOptions(); /** + * + * *
    * Defines the histogram bucket boundaries. If the distribution does not
    * contain a histogram, then omit this field.
@@ -96,9 +144,11 @@ public interface DistributionOrBuilder extends
    *
    * .google.api.Distribution.BucketOptions bucket_options = 6;
    */
-  Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuilder();
+  com.google.api.Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuilder();
 
   /**
+   *
+   *
    * 
    * The number of values in each bucket of the histogram, as described in
    * `bucket_options`. If the distribution does not have a histogram, then omit
@@ -116,9 +166,13 @@ public interface DistributionOrBuilder extends
    * 
* * repeated int64 bucket_counts = 7; + * + * @return A list containing the bucketCounts. */ - java.util.List getBucketCountsList(); + java.util.List getBucketCountsList(); /** + * + * *
    * The number of values in each bucket of the histogram, as described in
    * `bucket_options`. If the distribution does not have a histogram, then omit
@@ -136,9 +190,13 @@ public interface DistributionOrBuilder extends
    * 
* * repeated int64 bucket_counts = 7; + * + * @return The count of bucketCounts. */ int getBucketCountsCount(); /** + * + * *
    * The number of values in each bucket of the histogram, as described in
    * `bucket_options`. If the distribution does not have a histogram, then omit
@@ -156,27 +214,35 @@ public interface DistributionOrBuilder extends
    * 
* * repeated int64 bucket_counts = 7; + * + * @param index The index of the element to return. + * @return The bucketCounts at the given index. */ long getBucketCounts(int index); /** + * + * *
    * Must be in increasing order of `value` field.
    * 
* * repeated .google.api.Distribution.Exemplar exemplars = 10; */ - java.util.List - getExemplarsList(); + java.util.List getExemplarsList(); /** + * + * *
    * Must be in increasing order of `value` field.
    * 
* * repeated .google.api.Distribution.Exemplar exemplars = 10; */ - Distribution.Exemplar getExemplars(int index); + com.google.api.Distribution.Exemplar getExemplars(int index); /** + * + * *
    * Must be in increasing order of `value` field.
    * 
@@ -185,21 +251,24 @@ public interface DistributionOrBuilder extends */ int getExemplarsCount(); /** + * + * *
    * Must be in increasing order of `value` field.
    * 
* * repeated .google.api.Distribution.Exemplar exemplars = 10; */ - java.util.List + java.util.List getExemplarsOrBuilderList(); /** + * + * *
    * Must be in increasing order of `value` field.
    * 
* * repeated .google.api.Distribution.Exemplar exemplars = 10; */ - Distribution.ExemplarOrBuilder getExemplarsOrBuilder( - int index); + com.google.api.Distribution.ExemplarOrBuilder getExemplarsOrBuilder(int index); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/DistributionProto.java b/proto-google-common-protos/src/main/java/com/google/api/DistributionProto.java index c1756dd4..32372189 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/DistributionProto.java +++ b/proto-google-common-protos/src/main/java/com/google/api/DistributionProto.java @@ -1,3 +1,18 @@ +/* + * 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/distribution.proto @@ -5,144 +20,147 @@ public final class DistributionProto { private DistributionProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + 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_Distribution_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_Distribution_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_api_Distribution_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_api_Distribution_Range_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_Distribution_Range_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_api_Distribution_Range_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_api_Distribution_BucketOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_Distribution_BucketOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_api_Distribution_BucketOptions_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_api_Distribution_BucketOptions_Linear_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_Distribution_BucketOptions_Linear_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_api_Distribution_BucketOptions_Linear_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_api_Distribution_BucketOptions_Exponential_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_Distribution_BucketOptions_Exponential_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_api_Distribution_BucketOptions_Exponential_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_api_Distribution_BucketOptions_Explicit_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_Distribution_BucketOptions_Explicit_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_api_Distribution_BucketOptions_Explicit_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_api_Distribution_Exemplar_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_Distribution_Exemplar_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_api_Distribution_Exemplar_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { - String[] descriptorData = { - "\n\035google/api/distribution.proto\022\ngoogle." + - "api\032\031google/protobuf/any.proto\032\037google/p" + - "rotobuf/timestamp.proto\"\331\006\n\014Distribution" + - "\022\r\n\005count\030\001 \001(\003\022\014\n\004mean\030\002 \001(\001\022 \n\030sum_of_" + - "squared_deviation\030\003 \001(\001\022-\n\005range\030\004 \001(\0132\036" + - ".google.api.Distribution.Range\022>\n\016bucket" + - "_options\030\006 \001(\0132&.google.api.Distribution" + - ".BucketOptions\022\025\n\rbucket_counts\030\007 \003(\003\0224\n" + - "\texemplars\030\n \003(\0132!.google.api.Distributi" + - "on.Exemplar\032!\n\005Range\022\013\n\003min\030\001 \001(\001\022\013\n\003max" + - "\030\002 \001(\001\032\265\003\n\rBucketOptions\022G\n\016linear_bucke" + - "ts\030\001 \001(\0132-.google.api.Distribution.Bucke" + - "tOptions.LinearH\000\022Q\n\023exponential_buckets" + - "\030\002 \001(\01322.google.api.Distribution.BucketO" + - "ptions.ExponentialH\000\022K\n\020explicit_buckets" + - "\030\003 \001(\0132/.google.api.Distribution.BucketO" + - "ptions.ExplicitH\000\032C\n\006Linear\022\032\n\022num_finit" + - "e_buckets\030\001 \001(\005\022\r\n\005width\030\002 \001(\001\022\016\n\006offset" + - "\030\003 \001(\001\032O\n\013Exponential\022\032\n\022num_finite_buck" + - "ets\030\001 \001(\005\022\025\n\rgrowth_factor\030\002 \001(\001\022\r\n\005scal" + - "e\030\003 \001(\001\032\032\n\010Explicit\022\016\n\006bounds\030\001 \003(\001B\t\n\007o" + - "ptions\032s\n\010Exemplar\022\r\n\005value\030\001 \001(\001\022-\n\ttim" + - "estamp\030\002 \001(\0132\032.google.protobuf.Timestamp" + - "\022)\n\013attachments\030\003 \003(\0132\024.google.protobuf." + - "AnyBq\n\016com.google.apiB\021DistributionProto" + - "P\001ZCgoogle.golang.org/genproto/googleapi" + - "s/api/distribution;distribution\242\002\004GAPIb\006" + - "proto3" + java.lang.String[] descriptorData = { + "\n\035google/api/distribution.proto\022\ngoogle." + + "api\032\031google/protobuf/any.proto\032\037google/p" + + "rotobuf/timestamp.proto\"\331\006\n\014Distribution" + + "\022\r\n\005count\030\001 \001(\003\022\014\n\004mean\030\002 \001(\001\022 \n\030sum_of_" + + "squared_deviation\030\003 \001(\001\022-\n\005range\030\004 \001(\0132\036" + + ".google.api.Distribution.Range\022>\n\016bucket" + + "_options\030\006 \001(\0132&.google.api.Distribution" + + ".BucketOptions\022\025\n\rbucket_counts\030\007 \003(\003\0224\n" + + "\texemplars\030\n \003(\0132!.google.api.Distributi" + + "on.Exemplar\032!\n\005Range\022\013\n\003min\030\001 \001(\001\022\013\n\003max" + + "\030\002 \001(\001\032\265\003\n\rBucketOptions\022G\n\016linear_bucke" + + "ts\030\001 \001(\0132-.google.api.Distribution.Bucke" + + "tOptions.LinearH\000\022Q\n\023exponential_buckets" + + "\030\002 \001(\01322.google.api.Distribution.BucketO" + + "ptions.ExponentialH\000\022K\n\020explicit_buckets" + + "\030\003 \001(\0132/.google.api.Distribution.BucketO" + + "ptions.ExplicitH\000\032C\n\006Linear\022\032\n\022num_finit" + + "e_buckets\030\001 \001(\005\022\r\n\005width\030\002 \001(\001\022\016\n\006offset" + + "\030\003 \001(\001\032O\n\013Exponential\022\032\n\022num_finite_buck" + + "ets\030\001 \001(\005\022\025\n\rgrowth_factor\030\002 \001(\001\022\r\n\005scal" + + "e\030\003 \001(\001\032\032\n\010Explicit\022\016\n\006bounds\030\001 \003(\001B\t\n\007o" + + "ptions\032s\n\010Exemplar\022\r\n\005value\030\001 \001(\001\022-\n\ttim" + + "estamp\030\002 \001(\0132\032.google.protobuf.Timestamp" + + "\022)\n\013attachments\030\003 \003(\0132\024.google.protobuf." + + "AnyBq\n\016com.google.apiB\021DistributionProto" + + "P\001ZCgoogle.golang.org/genproto/googleapi" + + "s/api/distribution;distribution\242\002\004GAPIb\006" + + "proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, assigner); - internal_static_google_api_Distribution_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_api_Distribution_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_Distribution_descriptor, - new String[] { "Count", "Mean", "SumOfSquaredDeviation", "Range", "BucketOptions", "BucketCounts", "Exemplars", }); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.AnyProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_api_Distribution_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_api_Distribution_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_Distribution_descriptor, + new java.lang.String[] { + "Count", + "Mean", + "SumOfSquaredDeviation", + "Range", + "BucketOptions", + "BucketCounts", + "Exemplars", + }); internal_static_google_api_Distribution_Range_descriptor = - internal_static_google_api_Distribution_descriptor.getNestedTypes().get(0); - internal_static_google_api_Distribution_Range_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_Distribution_Range_descriptor, - new String[] { "Min", "Max", }); + internal_static_google_api_Distribution_descriptor.getNestedTypes().get(0); + internal_static_google_api_Distribution_Range_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_Distribution_Range_descriptor, + new java.lang.String[] { + "Min", "Max", + }); internal_static_google_api_Distribution_BucketOptions_descriptor = - internal_static_google_api_Distribution_descriptor.getNestedTypes().get(1); - internal_static_google_api_Distribution_BucketOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_Distribution_BucketOptions_descriptor, - new String[] { "LinearBuckets", "ExponentialBuckets", "ExplicitBuckets", "Options", }); + internal_static_google_api_Distribution_descriptor.getNestedTypes().get(1); + internal_static_google_api_Distribution_BucketOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_Distribution_BucketOptions_descriptor, + new java.lang.String[] { + "LinearBuckets", "ExponentialBuckets", "ExplicitBuckets", "Options", + }); internal_static_google_api_Distribution_BucketOptions_Linear_descriptor = - internal_static_google_api_Distribution_BucketOptions_descriptor.getNestedTypes().get(0); - internal_static_google_api_Distribution_BucketOptions_Linear_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_Distribution_BucketOptions_Linear_descriptor, - new String[] { "NumFiniteBuckets", "Width", "Offset", }); + internal_static_google_api_Distribution_BucketOptions_descriptor.getNestedTypes().get(0); + internal_static_google_api_Distribution_BucketOptions_Linear_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_Distribution_BucketOptions_Linear_descriptor, + new java.lang.String[] { + "NumFiniteBuckets", "Width", "Offset", + }); internal_static_google_api_Distribution_BucketOptions_Exponential_descriptor = - internal_static_google_api_Distribution_BucketOptions_descriptor.getNestedTypes().get(1); - internal_static_google_api_Distribution_BucketOptions_Exponential_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_Distribution_BucketOptions_Exponential_descriptor, - new String[] { "NumFiniteBuckets", "GrowthFactor", "Scale", }); + internal_static_google_api_Distribution_BucketOptions_descriptor.getNestedTypes().get(1); + internal_static_google_api_Distribution_BucketOptions_Exponential_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_Distribution_BucketOptions_Exponential_descriptor, + new java.lang.String[] { + "NumFiniteBuckets", "GrowthFactor", "Scale", + }); internal_static_google_api_Distribution_BucketOptions_Explicit_descriptor = - internal_static_google_api_Distribution_BucketOptions_descriptor.getNestedTypes().get(2); - internal_static_google_api_Distribution_BucketOptions_Explicit_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_Distribution_BucketOptions_Explicit_descriptor, - new String[] { "Bounds", }); + internal_static_google_api_Distribution_BucketOptions_descriptor.getNestedTypes().get(2); + internal_static_google_api_Distribution_BucketOptions_Explicit_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_Distribution_BucketOptions_Explicit_descriptor, + new java.lang.String[] { + "Bounds", + }); internal_static_google_api_Distribution_Exemplar_descriptor = - internal_static_google_api_Distribution_descriptor.getNestedTypes().get(2); - internal_static_google_api_Distribution_Exemplar_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_Distribution_Exemplar_descriptor, - new String[] { "Value", "Timestamp", "Attachments", }); + internal_static_google_api_Distribution_descriptor.getNestedTypes().get(2); + internal_static_google_api_Distribution_Exemplar_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_Distribution_Exemplar_descriptor, + new java.lang.String[] { + "Value", "Timestamp", "Attachments", + }); com.google.protobuf.AnyProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/Documentation.java b/proto-google-common-protos/src/main/java/com/google/api/Documentation.java index 6a0f4ce5..e6c6bf47 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/Documentation.java +++ b/proto-google-common-protos/src/main/java/com/google/api/Documentation.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/documentation.proto package com.google.api; /** + * + * *
  * `Documentation` provides the information for describing a service.
  * Example:
@@ -59,15 +76,16 @@
  *
  * Protobuf type {@code google.api.Documentation}
  */
-public  final class Documentation extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Documentation extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.Documentation)
     DocumentationOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Documentation.newBuilder() to construct.
   private Documentation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Documentation() {
     summary_ = "";
     pages_ = java.util.Collections.emptyList();
@@ -76,18 +94,24 @@ private Documentation() {
     overview_ = "";
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new Documentation();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Documentation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -100,118 +124,126 @@ private Documentation(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            summary_ = s;
-            break;
-          }
-          case 18: {
-            String s = input.readStringRequireUtf8();
+              summary_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            overview_ = s;
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              rules_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000004;
+              overview_ = s;
+              break;
             }
-            rules_.add(
-                input.readMessage(com.google.api.DocumentationRule.parser(), extensionRegistry));
-            break;
-          }
-          case 34: {
-            String s = input.readStringRequireUtf8();
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                rules_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              rules_.add(
+                  input.readMessage(com.google.api.DocumentationRule.parser(), extensionRegistry));
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            documentationRootUrl_ = s;
-            break;
-          }
-          case 42: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              pages_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
+              documentationRootUrl_ = s;
+              break;
             }
-            pages_.add(
-                input.readMessage(Page.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 42:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                pages_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              pages_.add(input.readMessage(com.google.api.Page.parser(), extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
-      if (((mutable_bitField0_ & 0x00000004) != 0)) {
+      if (((mutable_bitField0_ & 0x00000002) != 0)) {
         rules_ = java.util.Collections.unmodifiableList(rules_);
       }
-      if (((mutable_bitField0_ & 0x00000002) != 0)) {
+      if (((mutable_bitField0_ & 0x00000001) != 0)) {
         pages_ = java.util.Collections.unmodifiableList(pages_);
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.DocumentationProto.internal_static_google_api_Documentation_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.api.DocumentationProto.internal_static_google_api_Documentation_fieldAccessorTable
+    return com.google.api.DocumentationProto
+        .internal_static_google_api_Documentation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            Documentation.class, Builder.class);
+            com.google.api.Documentation.class, com.google.api.Documentation.Builder.class);
   }
 
-  private int bitField0_;
   public static final int SUMMARY_FIELD_NUMBER = 1;
-  private volatile Object summary_;
+  private volatile java.lang.Object summary_;
   /**
+   *
+   *
    * 
    * A short summary of what the service does. Can only be provided by
    * plain text.
    * 
* * string summary = 1; + * + * @return The summary. */ - public String getSummary() { - Object ref = summary_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getSummary() { + java.lang.Object ref = summary_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); summary_ = s; return s; } } /** + * + * *
    * A short summary of what the service does. Can only be provided by
    * plain text.
    * 
* * string summary = 1; + * + * @return The bytes for summary. */ - public com.google.protobuf.ByteString - getSummaryBytes() { - Object ref = summary_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getSummaryBytes() { + java.lang.Object ref = summary_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); summary_ = b; return b; } else { @@ -220,29 +252,34 @@ public String getSummary() { } public static final int PAGES_FIELD_NUMBER = 5; - private java.util.List pages_; + private java.util.List pages_; /** + * + * *
    * The top level pages for the documentation set.
    * 
* * repeated .google.api.Page pages = 5; */ - public java.util.List getPagesList() { + public java.util.List getPagesList() { return pages_; } /** + * + * *
    * The top level pages for the documentation set.
    * 
* * repeated .google.api.Page pages = 5; */ - public java.util.List - getPagesOrBuilderList() { + public java.util.List getPagesOrBuilderList() { return pages_; } /** + * + * *
    * The top level pages for the documentation set.
    * 
@@ -253,30 +290,35 @@ public int getPagesCount() { return pages_.size(); } /** + * + * *
    * The top level pages for the documentation set.
    * 
* * repeated .google.api.Page pages = 5; */ - public Page getPages(int index) { + public com.google.api.Page getPages(int index) { return pages_.get(index); } /** + * + * *
    * The top level pages for the documentation set.
    * 
* * repeated .google.api.Page pages = 5; */ - public com.google.api.PageOrBuilder getPagesOrBuilder( - int index) { + public com.google.api.PageOrBuilder getPagesOrBuilder(int index) { return pages_.get(index); } public static final int RULES_FIELD_NUMBER = 3; private java.util.List rules_; /** + * + * *
    * A list of documentation rules that apply to individual API elements.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -288,6 +330,8 @@ public java.util.List getRulesList() {
     return rules_;
   }
   /**
+   *
+   *
    * 
    * A list of documentation rules that apply to individual API elements.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -295,11 +339,13 @@ public java.util.List getRulesList() {
    *
    * repeated .google.api.DocumentationRule rules = 3;
    */
-  public java.util.List 
+  public java.util.List
       getRulesOrBuilderList() {
     return rules_;
   }
   /**
+   *
+   *
    * 
    * A list of documentation rules that apply to individual API elements.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -311,6 +357,8 @@ public int getRulesCount() {
     return rules_.size();
   }
   /**
+   *
+   *
    * 
    * A list of documentation rules that apply to individual API elements.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -322,6 +370,8 @@ public com.google.api.DocumentationRule getRules(int index) {
     return rules_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of documentation rules that apply to individual API elements.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -329,46 +379,50 @@ public com.google.api.DocumentationRule getRules(int index) {
    *
    * repeated .google.api.DocumentationRule rules = 3;
    */
-  public com.google.api.DocumentationRuleOrBuilder getRulesOrBuilder(
-      int index) {
+  public com.google.api.DocumentationRuleOrBuilder getRulesOrBuilder(int index) {
     return rules_.get(index);
   }
 
   public static final int DOCUMENTATION_ROOT_URL_FIELD_NUMBER = 4;
-  private volatile Object documentationRootUrl_;
+  private volatile java.lang.Object documentationRootUrl_;
   /**
+   *
+   *
    * 
    * The URL to the root of documentation.
    * 
* * string documentation_root_url = 4; + * + * @return The documentationRootUrl. */ - public String getDocumentationRootUrl() { - Object ref = documentationRootUrl_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getDocumentationRootUrl() { + java.lang.Object ref = documentationRootUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); documentationRootUrl_ = s; return s; } } /** + * + * *
    * The URL to the root of documentation.
    * 
* * string documentation_root_url = 4; + * + * @return The bytes for documentationRootUrl. */ - public com.google.protobuf.ByteString - getDocumentationRootUrlBytes() { - Object ref = documentationRootUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getDocumentationRootUrlBytes() { + java.lang.Object ref = documentationRootUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); documentationRootUrl_ = b; return b; } else { @@ -377,8 +431,10 @@ public String getDocumentationRootUrl() { } public static final int OVERVIEW_FIELD_NUMBER = 2; - private volatile Object overview_; + private volatile java.lang.Object overview_; /** + * + * *
    * Declares a single overview page. For example:
    * <pre><code>documentation:
@@ -396,20 +452,23 @@ public String getDocumentationRootUrl() {
    * 
* * string overview = 2; + * + * @return The overview. */ - public String getOverview() { - Object ref = overview_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getOverview() { + java.lang.Object ref = overview_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); overview_ = s; return s; } } /** + * + * *
    * Declares a single overview page. For example:
    * <pre><code>documentation:
@@ -427,14 +486,14 @@ public String getOverview() {
    * 
* * string overview = 2; + * + * @return The bytes for overview. */ - public com.google.protobuf.ByteString - getOverviewBytes() { - Object ref = overview_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getOverviewBytes() { + java.lang.Object ref = overview_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); overview_ = b; return b; } else { @@ -443,7 +502,8 @@ public String getOverview() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -453,9 +513,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSummaryBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, summary_); } @@ -474,7 +533,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -487,46 +546,39 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, overview_); } 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)); } if (!getDocumentationRootUrlBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, documentationRootUrl_); } for (int i = 0; i < pages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, pages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, pages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof Documentation)) { + if (!(obj instanceof com.google.api.Documentation)) { return super.equals(obj); } - Documentation other = (Documentation) obj; - - if (!getSummary() - .equals(other.getSummary())) return false; - if (!getPagesList() - .equals(other.getPagesList())) return false; - if (!getRulesList() - .equals(other.getRulesList())) return false; - if (!getDocumentationRootUrl() - .equals(other.getDocumentationRootUrl())) return false; - if (!getOverview() - .equals(other.getOverview())) return false; + com.google.api.Documentation other = (com.google.api.Documentation) obj; + + if (!getSummary().equals(other.getSummary())) return false; + if (!getPagesList().equals(other.getPagesList())) return false; + if (!getRulesList().equals(other.getRulesList())) return false; + if (!getDocumentationRootUrl().equals(other.getDocumentationRootUrl())) return false; + if (!getOverview().equals(other.getOverview())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -552,97 +604,103 @@ public int hashCode() { return hash; } - public static Documentation parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.Documentation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Documentation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Documentation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Documentation parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.api.Documentation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Documentation parseFrom( + + public static com.google.api.Documentation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Documentation parseFrom(byte[] data) + + public static com.google.api.Documentation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Documentation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Documentation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Documentation parseFrom(java.io.InputStream input) + + public static com.google.api.Documentation 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 Documentation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Documentation parseFrom( + 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 Documentation parseDelimitedFrom(java.io.InputStream input) + + public static com.google.api.Documentation 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 Documentation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Documentation parseDelimitedFrom( + 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 Documentation parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.api.Documentation 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 Documentation parseFrom( + + public static com.google.api.Documentation 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(Documentation prototype) { + + public static Builder newBuilder(com.google.api.Documentation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * `Documentation` provides the information for describing a service.
    * Example:
@@ -698,21 +756,21 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.Documentation}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.Documentation)
       com.google.api.DocumentationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.api.DocumentationProto.internal_static_google_api_Documentation_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.api.DocumentationProto.internal_static_google_api_Documentation_fieldAccessorTable
+      return com.google.api.DocumentationProto
+          .internal_static_google_api_Documentation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              Documentation.class, Builder.class);
+              com.google.api.Documentation.class, com.google.api.Documentation.Builder.class);
     }
 
     // Construct using com.google.api.Documentation.newBuilder()
@@ -720,32 +778,32 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getPagesFieldBuilder();
         getRulesFieldBuilder();
       }
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       summary_ = "";
 
       if (pagesBuilder_ == null) {
         pages_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000002);
+        bitField0_ = (bitField0_ & ~0x00000001);
       } else {
         pagesBuilder_.clear();
       }
       if (rulesBuilder_ == null) {
         rules_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000004);
+        bitField0_ = (bitField0_ & ~0x00000002);
       } else {
         rulesBuilder_.clear();
       }
@@ -756,45 +814,43 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.api.DocumentationProto.internal_static_google_api_Documentation_descriptor;
     }
 
-    @Override
-    public Documentation getDefaultInstanceForType() {
-      return Documentation.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.Documentation getDefaultInstanceForType() {
+      return com.google.api.Documentation.getDefaultInstance();
     }
 
-    @Override
-    public Documentation build() {
-      Documentation result = buildPartial();
+    @java.lang.Override
+    public com.google.api.Documentation build() {
+      com.google.api.Documentation result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public Documentation buildPartial() {
-      Documentation result = new Documentation(this);
+    @java.lang.Override
+    public com.google.api.Documentation buildPartial() {
+      com.google.api.Documentation result = new com.google.api.Documentation(this);
       int from_bitField0_ = bitField0_;
-      int to_bitField0_ = 0;
       result.summary_ = summary_;
       if (pagesBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)) {
+        if (((bitField0_ & 0x00000001) != 0)) {
           pages_ = java.util.Collections.unmodifiableList(pages_);
-          bitField0_ = (bitField0_ & ~0x00000002);
+          bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.pages_ = pages_;
       } else {
         result.pages_ = pagesBuilder_.build();
       }
       if (rulesBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)) {
+        if (((bitField0_ & 0x00000002) != 0)) {
           rules_ = java.util.Collections.unmodifiableList(rules_);
-          bitField0_ = (bitField0_ & ~0x00000004);
+          bitField0_ = (bitField0_ & ~0x00000002);
         }
         result.rules_ = rules_;
       } else {
@@ -802,55 +858,55 @@ public Documentation buildPartial() {
       }
       result.documentationRootUrl_ = documentationRootUrl_;
       result.overview_ = overview_;
-      result.bitField0_ = to_bitField0_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof Documentation) {
-        return mergeFrom((Documentation)other);
+      if (other instanceof com.google.api.Documentation) {
+        return mergeFrom((com.google.api.Documentation) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(Documentation other) {
-      if (other == Documentation.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.Documentation other) {
+      if (other == com.google.api.Documentation.getDefaultInstance()) return this;
       if (!other.getSummary().isEmpty()) {
         summary_ = other.summary_;
         onChanged();
@@ -859,7 +915,7 @@ public Builder mergeFrom(Documentation other) {
         if (!other.pages_.isEmpty()) {
           if (pages_.isEmpty()) {
             pages_ = other.pages_;
-            bitField0_ = (bitField0_ & ~0x00000002);
+            bitField0_ = (bitField0_ & ~0x00000001);
           } else {
             ensurePagesIsMutable();
             pages_.addAll(other.pages_);
@@ -872,10 +928,11 @@ public Builder mergeFrom(Documentation other) {
             pagesBuilder_.dispose();
             pagesBuilder_ = null;
             pages_ = other.pages_;
-            bitField0_ = (bitField0_ & ~0x00000002);
-            pagesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPagesFieldBuilder() : null;
+            bitField0_ = (bitField0_ & ~0x00000001);
+            pagesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPagesFieldBuilder()
+                    : null;
           } else {
             pagesBuilder_.addAllMessages(other.pages_);
           }
@@ -885,7 +942,7 @@ public Builder mergeFrom(Documentation other) {
         if (!other.rules_.isEmpty()) {
           if (rules_.isEmpty()) {
             rules_ = other.rules_;
-            bitField0_ = (bitField0_ & ~0x00000004);
+            bitField0_ = (bitField0_ & ~0x00000002);
           } else {
             ensureRulesIsMutable();
             rules_.addAll(other.rules_);
@@ -898,10 +955,11 @@ public Builder mergeFrom(Documentation other) {
             rulesBuilder_.dispose();
             rulesBuilder_ = null;
             rules_ = other.rules_;
-            bitField0_ = (bitField0_ & ~0x00000004);
-            rulesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getRulesFieldBuilder() : null;
+            bitField0_ = (bitField0_ & ~0x00000002);
+            rulesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getRulesFieldBuilder()
+                    : null;
           } else {
             rulesBuilder_.addAllMessages(other.rules_);
           }
@@ -920,21 +978,21 @@ public Builder mergeFrom(Documentation other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      Documentation parsedMessage = null;
+      com.google.api.Documentation parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (Documentation) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.Documentation) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -943,44 +1001,50 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private Object summary_ = "";
+    private java.lang.Object summary_ = "";
     /**
+     *
+     *
      * 
      * A short summary of what the service does. Can only be provided by
      * plain text.
      * 
* * string summary = 1; + * + * @return The summary. */ - public String getSummary() { - Object ref = summary_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getSummary() { + java.lang.Object ref = summary_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); summary_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * A short summary of what the service does. Can only be provided by
      * plain text.
      * 
* * string summary = 1; + * + * @return The bytes for summary. */ - public com.google.protobuf.ByteString - getSummaryBytes() { - Object ref = summary_; + public com.google.protobuf.ByteString getSummaryBytes() { + java.lang.Object ref = summary_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); summary_ = b; return b; } else { @@ -988,77 +1052,92 @@ public String getSummary() { } } /** + * + * *
      * A short summary of what the service does. Can only be provided by
      * plain text.
      * 
* * string summary = 1; + * + * @param value The summary to set. + * @return This builder for chaining. */ - public Builder setSummary( - String value) { + public Builder setSummary(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + summary_ = value; onChanged(); return this; } /** + * + * *
      * A short summary of what the service does. Can only be provided by
      * plain text.
      * 
* * string summary = 1; + * + * @return This builder for chaining. */ public Builder clearSummary() { - + summary_ = getDefaultInstance().getSummary(); onChanged(); return this; } /** + * + * *
      * A short summary of what the service does. Can only be provided by
      * plain text.
      * 
* * string summary = 1; + * + * @param value The bytes for summary to set. + * @return This builder for chaining. */ - public Builder setSummaryBytes( - com.google.protobuf.ByteString value) { + public Builder setSummaryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + summary_ = value; onChanged(); return this; } - private java.util.List pages_ = - java.util.Collections.emptyList(); + private java.util.List pages_ = java.util.Collections.emptyList(); + private void ensurePagesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - pages_ = new java.util.ArrayList(pages_); - bitField0_ |= 0x00000002; - } + if (!((bitField0_ & 0x00000001) != 0)) { + pages_ = new java.util.ArrayList(pages_); + bitField0_ |= 0x00000001; + } } private com.google.protobuf.RepeatedFieldBuilderV3< - Page, Page.Builder, com.google.api.PageOrBuilder> pagesBuilder_; + com.google.api.Page, com.google.api.Page.Builder, com.google.api.PageOrBuilder> + pagesBuilder_; /** + * + * *
      * The top level pages for the documentation set.
      * 
* * repeated .google.api.Page pages = 5; */ - public java.util.List getPagesList() { + public java.util.List getPagesList() { if (pagesBuilder_ == null) { return java.util.Collections.unmodifiableList(pages_); } else { @@ -1066,6 +1145,8 @@ public java.util.List getPagesList() { } } /** + * + * *
      * The top level pages for the documentation set.
      * 
@@ -1080,13 +1161,15 @@ public int getPagesCount() { } } /** + * + * *
      * The top level pages for the documentation set.
      * 
* * repeated .google.api.Page pages = 5; */ - public Page getPages(int index) { + public com.google.api.Page getPages(int index) { if (pagesBuilder_ == null) { return pages_.get(index); } else { @@ -1094,14 +1177,15 @@ public Page getPages(int index) { } } /** + * + * *
      * The top level pages for the documentation set.
      * 
* * repeated .google.api.Page pages = 5; */ - public Builder setPages( - int index, Page value) { + public Builder setPages(int index, com.google.api.Page value) { if (pagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1115,14 +1199,15 @@ public Builder setPages( return this; } /** + * + * *
      * The top level pages for the documentation set.
      * 
* * repeated .google.api.Page pages = 5; */ - public Builder setPages( - int index, Page.Builder builderForValue) { + public Builder setPages(int index, com.google.api.Page.Builder builderForValue) { if (pagesBuilder_ == null) { ensurePagesIsMutable(); pages_.set(index, builderForValue.build()); @@ -1133,13 +1218,15 @@ public Builder setPages( return this; } /** + * + * *
      * The top level pages for the documentation set.
      * 
* * repeated .google.api.Page pages = 5; */ - public Builder addPages(Page value) { + public Builder addPages(com.google.api.Page value) { if (pagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1153,14 +1240,15 @@ public Builder addPages(Page value) { return this; } /** + * + * *
      * The top level pages for the documentation set.
      * 
* * repeated .google.api.Page pages = 5; */ - public Builder addPages( - int index, Page value) { + public Builder addPages(int index, com.google.api.Page value) { if (pagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1174,14 +1262,15 @@ public Builder addPages( return this; } /** + * + * *
      * The top level pages for the documentation set.
      * 
* * repeated .google.api.Page pages = 5; */ - public Builder addPages( - Page.Builder builderForValue) { + public Builder addPages(com.google.api.Page.Builder builderForValue) { if (pagesBuilder_ == null) { ensurePagesIsMutable(); pages_.add(builderForValue.build()); @@ -1192,14 +1281,15 @@ public Builder addPages( return this; } /** + * + * *
      * The top level pages for the documentation set.
      * 
* * repeated .google.api.Page pages = 5; */ - public Builder addPages( - int index, Page.Builder builderForValue) { + public Builder addPages(int index, com.google.api.Page.Builder builderForValue) { if (pagesBuilder_ == null) { ensurePagesIsMutable(); pages_.add(index, builderForValue.build()); @@ -1210,18 +1300,18 @@ public Builder addPages( return this; } /** + * + * *
      * The top level pages for the documentation set.
      * 
* * repeated .google.api.Page pages = 5; */ - public Builder addAllPages( - Iterable values) { + public Builder addAllPages(java.lang.Iterable values) { if (pagesBuilder_ == null) { ensurePagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pages_); onChanged(); } else { pagesBuilder_.addAllMessages(values); @@ -1229,6 +1319,8 @@ public Builder addAllPages( return this; } /** + * + * *
      * The top level pages for the documentation set.
      * 
@@ -1238,7 +1330,7 @@ public Builder addAllPages( public Builder clearPages() { if (pagesBuilder_ == null) { pages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { pagesBuilder_.clear(); @@ -1246,6 +1338,8 @@ public Builder clearPages() { return this; } /** + * + * *
      * The top level pages for the documentation set.
      * 
@@ -1263,39 +1357,43 @@ public Builder removePages(int index) { return this; } /** + * + * *
      * The top level pages for the documentation set.
      * 
* * repeated .google.api.Page pages = 5; */ - public Page.Builder getPagesBuilder( - int index) { + public com.google.api.Page.Builder getPagesBuilder(int index) { return getPagesFieldBuilder().getBuilder(index); } /** + * + * *
      * The top level pages for the documentation set.
      * 
* * repeated .google.api.Page pages = 5; */ - public com.google.api.PageOrBuilder getPagesOrBuilder( - int index) { + public com.google.api.PageOrBuilder getPagesOrBuilder(int index) { if (pagesBuilder_ == null) { - return pages_.get(index); } else { + return pages_.get(index); + } else { return pagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The top level pages for the documentation set.
      * 
* * repeated .google.api.Page pages = 5; */ - public java.util.List - getPagesOrBuilderList() { + public java.util.List getPagesOrBuilderList() { if (pagesBuilder_ != null) { return pagesBuilder_.getMessageOrBuilderList(); } else { @@ -1303,67 +1401,74 @@ public com.google.api.PageOrBuilder getPagesOrBuilder( } } /** + * + * *
      * The top level pages for the documentation set.
      * 
* * repeated .google.api.Page pages = 5; */ - public Page.Builder addPagesBuilder() { - return getPagesFieldBuilder().addBuilder( - Page.getDefaultInstance()); + public com.google.api.Page.Builder addPagesBuilder() { + return getPagesFieldBuilder().addBuilder(com.google.api.Page.getDefaultInstance()); } /** + * + * *
      * The top level pages for the documentation set.
      * 
* * repeated .google.api.Page pages = 5; */ - public Page.Builder addPagesBuilder( - int index) { - return getPagesFieldBuilder().addBuilder( - index, Page.getDefaultInstance()); + public com.google.api.Page.Builder addPagesBuilder(int index) { + return getPagesFieldBuilder().addBuilder(index, com.google.api.Page.getDefaultInstance()); } /** + * + * *
      * The top level pages for the documentation set.
      * 
* * repeated .google.api.Page pages = 5; */ - public java.util.List - getPagesBuilderList() { + public java.util.List getPagesBuilderList() { return getPagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - Page, Page.Builder, com.google.api.PageOrBuilder> + com.google.api.Page, com.google.api.Page.Builder, com.google.api.PageOrBuilder> getPagesFieldBuilder() { if (pagesBuilder_ == null) { - pagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - Page, Page.Builder, com.google.api.PageOrBuilder>( - pages_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + pagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.api.Page, com.google.api.Page.Builder, com.google.api.PageOrBuilder>( + pages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); pages_ = null; } return pagesBuilder_; } private java.util.List rules_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRulesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { rules_ = new java.util.ArrayList(rules_); - bitField0_ |= 0x00000004; - } + bitField0_ |= 0x00000002; + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.DocumentationRule, com.google.api.DocumentationRule.Builder, com.google.api.DocumentationRuleOrBuilder> rulesBuilder_; + com.google.api.DocumentationRule, + com.google.api.DocumentationRule.Builder, + com.google.api.DocumentationRuleOrBuilder> + rulesBuilder_; /** + * + * *
      * A list of documentation rules that apply to individual API elements.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -1379,6 +1484,8 @@ public java.util.List getRulesList() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of documentation rules that apply to individual API elements.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -1394,6 +1501,8 @@ public int getRulesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of documentation rules that apply to individual API elements.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -1409,6 +1518,8 @@ public com.google.api.DocumentationRule getRules(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of documentation rules that apply to individual API elements.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -1416,8 +1527,7 @@ public com.google.api.DocumentationRule getRules(int index) {
      *
      * repeated .google.api.DocumentationRule rules = 3;
      */
-    public Builder setRules(
-        int index, com.google.api.DocumentationRule value) {
+    public Builder setRules(int index, com.google.api.DocumentationRule value) {
       if (rulesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1431,6 +1541,8 @@ public Builder setRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of documentation rules that apply to individual API elements.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -1438,8 +1550,7 @@ public Builder setRules(
      *
      * repeated .google.api.DocumentationRule rules = 3;
      */
-    public Builder setRules(
-        int index, com.google.api.DocumentationRule.Builder builderForValue) {
+    public Builder setRules(int index, com.google.api.DocumentationRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.set(index, builderForValue.build());
@@ -1450,6 +1561,8 @@ public Builder setRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of documentation rules that apply to individual API elements.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -1471,6 +1584,8 @@ public Builder addRules(com.google.api.DocumentationRule value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of documentation rules that apply to individual API elements.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -1478,8 +1593,7 @@ public Builder addRules(com.google.api.DocumentationRule value) {
      *
      * repeated .google.api.DocumentationRule rules = 3;
      */
-    public Builder addRules(
-        int index, com.google.api.DocumentationRule value) {
+    public Builder addRules(int index, com.google.api.DocumentationRule value) {
       if (rulesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1493,6 +1607,8 @@ public Builder addRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of documentation rules that apply to individual API elements.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -1500,8 +1616,7 @@ public Builder addRules(
      *
      * repeated .google.api.DocumentationRule rules = 3;
      */
-    public Builder addRules(
-        com.google.api.DocumentationRule.Builder builderForValue) {
+    public Builder addRules(com.google.api.DocumentationRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.add(builderForValue.build());
@@ -1512,6 +1627,8 @@ public Builder addRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of documentation rules that apply to individual API elements.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -1519,8 +1636,7 @@ public Builder addRules(
      *
      * repeated .google.api.DocumentationRule rules = 3;
      */
-    public Builder addRules(
-        int index, com.google.api.DocumentationRule.Builder builderForValue) {
+    public Builder addRules(int index, com.google.api.DocumentationRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.add(index, builderForValue.build());
@@ -1531,6 +1647,8 @@ public Builder addRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of documentation rules that apply to individual API elements.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -1539,11 +1657,10 @@ public Builder addRules(
      * repeated .google.api.DocumentationRule rules = 3;
      */
     public Builder addAllRules(
-        Iterable values) {
+        java.lang.Iterable 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);
@@ -1551,6 +1668,8 @@ public Builder addAllRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of documentation rules that apply to individual API elements.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -1561,7 +1680,7 @@ public Builder addAllRules(
     public Builder clearRules() {
       if (rulesBuilder_ == null) {
         rules_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000004);
+        bitField0_ = (bitField0_ & ~0x00000002);
         onChanged();
       } else {
         rulesBuilder_.clear();
@@ -1569,6 +1688,8 @@ public Builder clearRules() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of documentation rules that apply to individual API elements.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -1587,6 +1708,8 @@ public Builder removeRules(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of documentation rules that apply to individual API elements.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -1594,11 +1717,12 @@ public Builder removeRules(int index) {
      *
      * repeated .google.api.DocumentationRule rules = 3;
      */
-    public com.google.api.DocumentationRule.Builder getRulesBuilder(
-        int index) {
+    public com.google.api.DocumentationRule.Builder getRulesBuilder(int index) {
       return getRulesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of documentation rules that apply to individual API elements.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -1606,14 +1730,16 @@ public com.google.api.DocumentationRule.Builder getRulesBuilder(
      *
      * repeated .google.api.DocumentationRule rules = 3;
      */
-    public com.google.api.DocumentationRuleOrBuilder getRulesOrBuilder(
-        int index) {
+    public com.google.api.DocumentationRuleOrBuilder getRulesOrBuilder(int index) {
       if (rulesBuilder_ == null) {
-        return rules_.get(index);  } else {
+        return rules_.get(index);
+      } else {
         return rulesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of documentation rules that apply to individual API elements.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -1621,8 +1747,8 @@ public com.google.api.DocumentationRuleOrBuilder getRulesOrBuilder(
      *
      * repeated .google.api.DocumentationRule rules = 3;
      */
-    public java.util.List 
-         getRulesOrBuilderList() {
+    public java.util.List
+        getRulesOrBuilderList() {
       if (rulesBuilder_ != null) {
         return rulesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1630,6 +1756,8 @@ public com.google.api.DocumentationRuleOrBuilder getRulesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * A list of documentation rules that apply to individual API elements.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -1638,10 +1766,12 @@ public com.google.api.DocumentationRuleOrBuilder getRulesOrBuilder(
      * repeated .google.api.DocumentationRule rules = 3;
      */
     public com.google.api.DocumentationRule.Builder addRulesBuilder() {
-      return getRulesFieldBuilder().addBuilder(
-          com.google.api.DocumentationRule.getDefaultInstance());
+      return getRulesFieldBuilder()
+          .addBuilder(com.google.api.DocumentationRule.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of documentation rules that apply to individual API elements.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -1649,12 +1779,13 @@ public com.google.api.DocumentationRule.Builder addRulesBuilder() {
      *
      * repeated .google.api.DocumentationRule rules = 3;
      */
-    public com.google.api.DocumentationRule.Builder addRulesBuilder(
-        int index) {
-      return getRulesFieldBuilder().addBuilder(
-          index, com.google.api.DocumentationRule.getDefaultInstance());
+    public com.google.api.DocumentationRule.Builder addRulesBuilder(int index) {
+      return getRulesFieldBuilder()
+          .addBuilder(index, com.google.api.DocumentationRule.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of documentation rules that apply to individual API elements.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -1662,59 +1793,66 @@ public com.google.api.DocumentationRule.Builder addRulesBuilder(
      *
      * repeated .google.api.DocumentationRule rules = 3;
      */
-    public java.util.List 
-         getRulesBuilderList() {
+    public java.util.List getRulesBuilderList() {
       return getRulesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.api.DocumentationRule, com.google.api.DocumentationRule.Builder, com.google.api.DocumentationRuleOrBuilder> 
+            com.google.api.DocumentationRule,
+            com.google.api.DocumentationRule.Builder,
+            com.google.api.DocumentationRuleOrBuilder>
         getRulesFieldBuilder() {
       if (rulesBuilder_ == null) {
-        rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.api.DocumentationRule, com.google.api.DocumentationRule.Builder, com.google.api.DocumentationRuleOrBuilder>(
-                rules_,
-                ((bitField0_ & 0x00000004) != 0),
-                getParentForChildren(),
-                isClean());
+        rulesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.api.DocumentationRule,
+                com.google.api.DocumentationRule.Builder,
+                com.google.api.DocumentationRuleOrBuilder>(
+                rules_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
         rules_ = null;
       }
       return rulesBuilder_;
     }
 
-    private Object documentationRootUrl_ = "";
+    private java.lang.Object documentationRootUrl_ = "";
     /**
+     *
+     *
      * 
      * The URL to the root of documentation.
      * 
* * string documentation_root_url = 4; + * + * @return The documentationRootUrl. */ - public String getDocumentationRootUrl() { - Object ref = documentationRootUrl_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getDocumentationRootUrl() { + java.lang.Object ref = documentationRootUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); documentationRootUrl_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The URL to the root of documentation.
      * 
* * string documentation_root_url = 4; + * + * @return The bytes for documentationRootUrl. */ - public com.google.protobuf.ByteString - getDocumentationRootUrlBytes() { - Object ref = documentationRootUrl_; + public com.google.protobuf.ByteString getDocumentationRootUrlBytes() { + java.lang.Object ref = documentationRootUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); documentationRootUrl_ = b; return b; } else { @@ -1722,56 +1860,70 @@ public String getDocumentationRootUrl() { } } /** + * + * *
      * The URL to the root of documentation.
      * 
* * string documentation_root_url = 4; + * + * @param value The documentationRootUrl to set. + * @return This builder for chaining. */ - public Builder setDocumentationRootUrl( - String value) { + public Builder setDocumentationRootUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + documentationRootUrl_ = value; onChanged(); return this; } /** + * + * *
      * The URL to the root of documentation.
      * 
* * string documentation_root_url = 4; + * + * @return This builder for chaining. */ public Builder clearDocumentationRootUrl() { - + documentationRootUrl_ = getDefaultInstance().getDocumentationRootUrl(); onChanged(); return this; } /** + * + * *
      * The URL to the root of documentation.
      * 
* * string documentation_root_url = 4; + * + * @param value The bytes for documentationRootUrl to set. + * @return This builder for chaining. */ - public Builder setDocumentationRootUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setDocumentationRootUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + documentationRootUrl_ = value; onChanged(); return this; } - private Object overview_ = ""; + private java.lang.Object overview_ = ""; /** + * + * *
      * Declares a single overview page. For example:
      * <pre><code>documentation:
@@ -1789,20 +1941,23 @@ public Builder setDocumentationRootUrlBytes(
      * 
* * string overview = 2; + * + * @return The overview. */ - public String getOverview() { - Object ref = overview_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getOverview() { + java.lang.Object ref = overview_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); overview_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Declares a single overview page. For example:
      * <pre><code>documentation:
@@ -1820,14 +1975,14 @@ public String getOverview() {
      * 
* * string overview = 2; + * + * @return The bytes for overview. */ - public com.google.protobuf.ByteString - getOverviewBytes() { - Object ref = overview_; + public com.google.protobuf.ByteString getOverviewBytes() { + java.lang.Object ref = overview_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); overview_ = b; return b; } else { @@ -1835,6 +1990,8 @@ public String getOverview() { } } /** + * + * *
      * Declares a single overview page. For example:
      * <pre><code>documentation:
@@ -1852,18 +2009,22 @@ public String getOverview() {
      * 
* * string overview = 2; + * + * @param value The overview to set. + * @return This builder for chaining. */ - public Builder setOverview( - String value) { + public Builder setOverview(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + overview_ = value; onChanged(); return this; } /** + * + * *
      * Declares a single overview page. For example:
      * <pre><code>documentation:
@@ -1881,14 +2042,18 @@ public Builder setOverview(
      * 
* * string overview = 2; + * + * @return This builder for chaining. */ public Builder clearOverview() { - + overview_ = getDefaultInstance().getOverview(); onChanged(); return this; } /** + * + * *
      * Declares a single overview page. For example:
      * <pre><code>documentation:
@@ -1906,68 +2071,68 @@ public Builder clearOverview() {
      * 
* * string overview = 2; + * + * @param value The bytes for overview to set. + * @return This builder for chaining. */ - public Builder setOverviewBytes( - com.google.protobuf.ByteString value) { + public Builder setOverviewBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + overview_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.Documentation) } // @@protoc_insertion_point(class_scope:google.api.Documentation) - private static final Documentation DEFAULT_INSTANCE; + private static final com.google.api.Documentation DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new Documentation(); + DEFAULT_INSTANCE = new com.google.api.Documentation(); } - public static Documentation getDefaultInstance() { + public static com.google.api.Documentation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public Documentation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Documentation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Documentation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Documentation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public Documentation getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.Documentation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/DocumentationOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/DocumentationOrBuilder.java index 4fe1f42d..3aaf92ef 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/DocumentationOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/DocumentationOrBuilder.java @@ -1,50 +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/documentation.proto package com.google.api; -public interface DocumentationOrBuilder extends +public interface DocumentationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.Documentation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A short summary of what the service does. Can only be provided by
    * plain text.
    * 
* * string summary = 1; + * + * @return The summary. */ - String getSummary(); + java.lang.String getSummary(); /** + * + * *
    * A short summary of what the service does. Can only be provided by
    * plain text.
    * 
* * string summary = 1; + * + * @return The bytes for summary. */ - com.google.protobuf.ByteString - getSummaryBytes(); + com.google.protobuf.ByteString getSummaryBytes(); /** + * + * *
    * The top level pages for the documentation set.
    * 
* * repeated .google.api.Page pages = 5; */ - java.util.List - getPagesList(); + java.util.List getPagesList(); /** + * + * *
    * The top level pages for the documentation set.
    * 
* * repeated .google.api.Page pages = 5; */ - Page getPages(int index); + com.google.api.Page getPages(int index); /** + * + * *
    * The top level pages for the documentation set.
    * 
@@ -53,25 +81,29 @@ public interface DocumentationOrBuilder extends */ int getPagesCount(); /** + * + * *
    * The top level pages for the documentation set.
    * 
* * repeated .google.api.Page pages = 5; */ - java.util.List - getPagesOrBuilderList(); + java.util.List getPagesOrBuilderList(); /** + * + * *
    * The top level pages for the documentation set.
    * 
* * repeated .google.api.Page pages = 5; */ - PageOrBuilder getPagesOrBuilder( - int index); + com.google.api.PageOrBuilder getPagesOrBuilder(int index); /** + * + * *
    * A list of documentation rules that apply to individual API elements.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -79,9 +111,10 @@ PageOrBuilder getPagesOrBuilder(
    *
    * repeated .google.api.DocumentationRule rules = 3;
    */
-  java.util.List
-      getRulesList();
+  java.util.List getRulesList();
   /**
+   *
+   *
    * 
    * A list of documentation rules that apply to individual API elements.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -89,8 +122,10 @@ PageOrBuilder getPagesOrBuilder(
    *
    * repeated .google.api.DocumentationRule rules = 3;
    */
-  DocumentationRule getRules(int index);
+  com.google.api.DocumentationRule getRules(int index);
   /**
+   *
+   *
    * 
    * A list of documentation rules that apply to individual API elements.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -100,6 +135,8 @@ PageOrBuilder getPagesOrBuilder(
    */
   int getRulesCount();
   /**
+   *
+   *
    * 
    * A list of documentation rules that apply to individual API elements.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -107,9 +144,10 @@ PageOrBuilder getPagesOrBuilder(
    *
    * repeated .google.api.DocumentationRule rules = 3;
    */
-  java.util.List 
-      getRulesOrBuilderList();
+  java.util.List getRulesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of documentation rules that apply to individual API elements.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -117,28 +155,36 @@ PageOrBuilder getPagesOrBuilder(
    *
    * repeated .google.api.DocumentationRule rules = 3;
    */
-  com.google.api.DocumentationRuleOrBuilder getRulesOrBuilder(
-      int index);
+  com.google.api.DocumentationRuleOrBuilder getRulesOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * The URL to the root of documentation.
    * 
* * string documentation_root_url = 4; + * + * @return The documentationRootUrl. */ - String getDocumentationRootUrl(); + java.lang.String getDocumentationRootUrl(); /** + * + * *
    * The URL to the root of documentation.
    * 
* * string documentation_root_url = 4; + * + * @return The bytes for documentationRootUrl. */ - com.google.protobuf.ByteString - getDocumentationRootUrlBytes(); + com.google.protobuf.ByteString getDocumentationRootUrlBytes(); /** + * + * *
    * Declares a single overview page. For example:
    * <pre><code>documentation:
@@ -156,9 +202,13 @@ com.google.api.DocumentationRuleOrBuilder getRulesOrBuilder(
    * 
* * string overview = 2; + * + * @return The overview. */ - String getOverview(); + java.lang.String getOverview(); /** + * + * *
    * Declares a single overview page. For example:
    * <pre><code>documentation:
@@ -176,7 +226,8 @@ com.google.api.DocumentationRuleOrBuilder getRulesOrBuilder(
    * 
* * string overview = 2; + * + * @return The bytes for overview. */ - com.google.protobuf.ByteString - getOverviewBytes(); + com.google.protobuf.ByteString getOverviewBytes(); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/DocumentationProto.java b/proto-google-common-protos/src/main/java/com/google/api/DocumentationProto.java index bafaf988..9dbad3dc 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/DocumentationProto.java +++ b/proto-google-common-protos/src/main/java/com/google/api/DocumentationProto.java @@ -1,3 +1,18 @@ +/* + * 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/documentation.proto @@ -5,83 +20,73 @@ public final class DocumentationProto { private DocumentationProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + 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_Documentation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_Documentation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_api_Documentation_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_api_DocumentationRule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_DocumentationRule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_api_DocumentationRule_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_api_Page_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_Page_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_api_Page_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { - String[] descriptorData = { - "\n\036google/api/documentation.proto\022\ngoogle" + - ".api\"\241\001\n\rDocumentation\022\017\n\007summary\030\001 \001(\t\022" + - "\037\n\005pages\030\005 \003(\0132\020.google.api.Page\022,\n\005rule" + - "s\030\003 \003(\0132\035.google.api.DocumentationRule\022\036" + - "\n\026documentation_root_url\030\004 \001(\t\022\020\n\010overvi" + - "ew\030\002 \001(\t\"[\n\021DocumentationRule\022\020\n\010selecto" + - "r\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\037\n\027deprecat" + - "ion_description\030\003 \001(\t\"I\n\004Page\022\014\n\004name\030\001 " + - "\001(\t\022\017\n\007content\030\002 \001(\t\022\"\n\010subpages\030\003 \003(\0132\020" + - ".google.api.PageBt\n\016com.google.apiB\022Docu" + - "mentationProtoP\001ZEgoogle.golang.org/genp" + - "roto/googleapis/api/serviceconfig;servic" + - "econfig\242\002\004GAPIb\006proto3" + java.lang.String[] descriptorData = { + "\n\036google/api/documentation.proto\022\ngoogle" + + ".api\"\241\001\n\rDocumentation\022\017\n\007summary\030\001 \001(\t\022" + + "\037\n\005pages\030\005 \003(\0132\020.google.api.Page\022,\n\005rule" + + "s\030\003 \003(\0132\035.google.api.DocumentationRule\022\036" + + "\n\026documentation_root_url\030\004 \001(\t\022\020\n\010overvi" + + "ew\030\002 \001(\t\"[\n\021DocumentationRule\022\020\n\010selecto" + + "r\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\037\n\027deprecat" + + "ion_description\030\003 \001(\t\"I\n\004Page\022\014\n\004name\030\001 " + + "\001(\t\022\017\n\007content\030\002 \001(\t\022\"\n\010subpages\030\003 \003(\0132\020" + + ".google.api.PageBt\n\016com.google.apiB\022Docu" + + "mentationProtoP\001ZEgoogle.golang.org/genp" + + "roto/googleapis/api/serviceconfig;servic" + + "econfig\242\002\004GAPIb\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_google_api_Documentation_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_api_Documentation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_Documentation_descriptor, - new String[] { "Summary", "Pages", "Rules", "DocumentationRootUrl", "Overview", }); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_api_Documentation_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_api_Documentation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_Documentation_descriptor, + new java.lang.String[] { + "Summary", "Pages", "Rules", "DocumentationRootUrl", "Overview", + }); internal_static_google_api_DocumentationRule_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_api_DocumentationRule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_DocumentationRule_descriptor, - new String[] { "Selector", "Description", "DeprecationDescription", }); - internal_static_google_api_Page_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_api_Page_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_Page_descriptor, - new String[] { "Name", "Content", "Subpages", }); + getDescriptor().getMessageTypes().get(1); + internal_static_google_api_DocumentationRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_DocumentationRule_descriptor, + new java.lang.String[] { + "Selector", "Description", "DeprecationDescription", + }); + internal_static_google_api_Page_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_google_api_Page_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_Page_descriptor, + new java.lang.String[] { + "Name", "Content", "Subpages", + }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-common-protos/src/main/java/com/google/api/DocumentationRule.java b/proto-google-common-protos/src/main/java/com/google/api/DocumentationRule.java index c38a437c..e783083b 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/DocumentationRule.java +++ b/proto-google-common-protos/src/main/java/com/google/api/DocumentationRule.java @@ -1,44 +1,67 @@ +/* + * 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/documentation.proto package com.google.api; /** + * + * *
  * A documentation rule provides information about individual API elements.
  * 
* * Protobuf type {@code google.api.DocumentationRule} */ -public final class DocumentationRule extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DocumentationRule extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.api.DocumentationRule) DocumentationRuleOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DocumentationRule.newBuilder() to construct. private DocumentationRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DocumentationRule() { selector_ = ""; description_ = ""; deprecationDescription_ = ""; } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DocumentationRule(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DocumentationRule( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -49,59 +72,65 @@ private DocumentationRule( case 0: done = true; break; - case 10: { - String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - selector_ = s; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); + selector_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); + description_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - deprecationDescription_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + deprecationDescription_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.api.DocumentationProto.internal_static_google_api_DocumentationRule_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.api.DocumentationProto + .internal_static_google_api_DocumentationRule_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.api.DocumentationProto.internal_static_google_api_DocumentationRule_fieldAccessorTable + return com.google.api.DocumentationProto + .internal_static_google_api_DocumentationRule_fieldAccessorTable .ensureFieldAccessorsInitialized( - DocumentationRule.class, Builder.class); + com.google.api.DocumentationRule.class, com.google.api.DocumentationRule.Builder.class); } public static final int SELECTOR_FIELD_NUMBER = 1; - private volatile Object selector_; + private volatile java.lang.Object selector_; /** + * + * *
    * The selector is a comma-separated list of patterns. Each pattern is a
    * qualified name of the element which may end in "*", indicating a wildcard.
@@ -112,20 +141,23 @@ private DocumentationRule(
    * 
* * string selector = 1; + * + * @return The selector. */ - public String getSelector() { - Object ref = selector_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getSelector() { + java.lang.Object ref = selector_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); selector_ = s; return s; } } /** + * + * *
    * The selector is a comma-separated list of patterns. Each pattern is a
    * qualified name of the element which may end in "*", indicating a wildcard.
@@ -136,14 +168,14 @@ public String getSelector() {
    * 
* * string selector = 1; + * + * @return The bytes for selector. */ - public com.google.protobuf.ByteString - getSelectorBytes() { - Object ref = selector_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getSelectorBytes() { + java.lang.Object ref = selector_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); selector_ = b; return b; } else { @@ -152,40 +184,45 @@ public String getSelector() { } public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile Object description_; + private volatile java.lang.Object description_; /** + * + * *
    * Description of the selected API(s).
    * 
* * string description = 2; + * + * @return The description. */ - public String getDescription() { - Object ref = description_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Description of the selected API(s).
    * 
* * string description = 2; + * + * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + 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); description_ = b; return b; } else { @@ -194,42 +231,47 @@ public String getDescription() { } public static final int DEPRECATION_DESCRIPTION_FIELD_NUMBER = 3; - private volatile Object deprecationDescription_; + private volatile java.lang.Object deprecationDescription_; /** + * + * *
    * Deprecation description of the selected element(s). It can be provided if
    * an element is marked as `deprecated`.
    * 
* * string deprecation_description = 3; + * + * @return The deprecationDescription. */ - public String getDeprecationDescription() { - Object ref = deprecationDescription_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getDeprecationDescription() { + java.lang.Object ref = deprecationDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); deprecationDescription_ = s; return s; } } /** + * + * *
    * Deprecation description of the selected element(s). It can be provided if
    * an element is marked as `deprecated`.
    * 
* * string deprecation_description = 3; + * + * @return The bytes for deprecationDescription. */ - public com.google.protobuf.ByteString - getDeprecationDescriptionBytes() { - Object ref = deprecationDescription_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getDeprecationDescriptionBytes() { + java.lang.Object ref = deprecationDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); deprecationDescription_ = b; return b; } else { @@ -238,7 +280,8 @@ public String getDeprecationDescription() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -248,9 +291,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSelectorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selector_); } @@ -263,7 +305,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -283,27 +325,24 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof DocumentationRule)) { + if (!(obj instanceof com.google.api.DocumentationRule)) { return super.equals(obj); } - DocumentationRule other = (DocumentationRule) obj; + com.google.api.DocumentationRule other = (com.google.api.DocumentationRule) obj; - if (!getSelector() - .equals(other.getSelector())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getDeprecationDescription() - .equals(other.getDeprecationDescription())) return false; + if (!getSelector().equals(other.getSelector())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getDeprecationDescription().equals(other.getDeprecationDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -321,118 +360,126 @@ public int hashCode() { return hash; } - public static DocumentationRule parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.DocumentationRule parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static DocumentationRule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.DocumentationRule parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static DocumentationRule parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.api.DocumentationRule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static DocumentationRule parseFrom( + + public static com.google.api.DocumentationRule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static DocumentationRule parseFrom(byte[] data) + + public static com.google.api.DocumentationRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static DocumentationRule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.DocumentationRule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static DocumentationRule parseFrom(java.io.InputStream input) + + public static com.google.api.DocumentationRule 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 DocumentationRule parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.DocumentationRule parseFrom( + 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 DocumentationRule parseDelimitedFrom(java.io.InputStream input) + + public static com.google.api.DocumentationRule 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 DocumentationRule parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.DocumentationRule parseDelimitedFrom( + 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 DocumentationRule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.api.DocumentationRule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static DocumentationRule parseFrom( + + public static com.google.api.DocumentationRule 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(DocumentationRule prototype) { + + public static Builder newBuilder(com.google.api.DocumentationRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A documentation rule provides information about individual API elements.
    * 
* * Protobuf type {@code google.api.DocumentationRule} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.api.DocumentationRule) com.google.api.DocumentationRuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.api.DocumentationProto.internal_static_google_api_DocumentationRule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.api.DocumentationProto + .internal_static_google_api_DocumentationRule_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.api.DocumentationProto.internal_static_google_api_DocumentationRule_fieldAccessorTable + return com.google.api.DocumentationProto + .internal_static_google_api_DocumentationRule_fieldAccessorTable .ensureFieldAccessorsInitialized( - DocumentationRule.class, Builder.class); + com.google.api.DocumentationRule.class, + com.google.api.DocumentationRule.Builder.class); } // Construct using com.google.api.DocumentationRule.newBuilder() @@ -440,17 +487,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @Override + + @java.lang.Override public Builder clear() { super.clear(); selector_ = ""; @@ -462,29 +508,29 @@ public Builder clear() { return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.api.DocumentationProto.internal_static_google_api_DocumentationRule_descriptor; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.api.DocumentationProto + .internal_static_google_api_DocumentationRule_descriptor; } - @Override - public DocumentationRule getDefaultInstanceForType() { - return DocumentationRule.getDefaultInstance(); + @java.lang.Override + public com.google.api.DocumentationRule getDefaultInstanceForType() { + return com.google.api.DocumentationRule.getDefaultInstance(); } - @Override - public DocumentationRule build() { - DocumentationRule result = buildPartial(); + @java.lang.Override + public com.google.api.DocumentationRule build() { + com.google.api.DocumentationRule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public DocumentationRule buildPartial() { - DocumentationRule result = new DocumentationRule(this); + @java.lang.Override + public com.google.api.DocumentationRule buildPartial() { + com.google.api.DocumentationRule result = new com.google.api.DocumentationRule(this); result.selector_ = selector_; result.description_ = description_; result.deprecationDescription_ = deprecationDescription_; @@ -492,50 +538,51 @@ public DocumentationRule buildPartial() { return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof DocumentationRule) { - return mergeFrom((DocumentationRule)other); + if (other instanceof com.google.api.DocumentationRule) { + return mergeFrom((com.google.api.DocumentationRule) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(DocumentationRule other) { - if (other == DocumentationRule.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.api.DocumentationRule other) { + if (other == com.google.api.DocumentationRule.getDefaultInstance()) return this; if (!other.getSelector().isEmpty()) { selector_ = other.selector_; onChanged(); @@ -553,21 +600,21 @@ public Builder mergeFrom(DocumentationRule other) { return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - DocumentationRule parsedMessage = null; + com.google.api.DocumentationRule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (DocumentationRule) e.getUnfinishedMessage(); + parsedMessage = (com.google.api.DocumentationRule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -577,8 +624,10 @@ public Builder mergeFrom( return this; } - private Object selector_ = ""; + private java.lang.Object selector_ = ""; /** + * + * *
      * The selector is a comma-separated list of patterns. Each pattern is a
      * qualified name of the element which may end in "*", indicating a wildcard.
@@ -589,20 +638,23 @@ public Builder mergeFrom(
      * 
* * string selector = 1; + * + * @return The selector. */ - public String getSelector() { - Object ref = selector_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getSelector() { + java.lang.Object ref = selector_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); selector_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The selector is a comma-separated list of patterns. Each pattern is a
      * qualified name of the element which may end in "*", indicating a wildcard.
@@ -613,14 +665,14 @@ public String getSelector() {
      * 
* * string selector = 1; + * + * @return The bytes for selector. */ - public com.google.protobuf.ByteString - getSelectorBytes() { - Object ref = selector_; + public com.google.protobuf.ByteString getSelectorBytes() { + java.lang.Object ref = selector_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); selector_ = b; return b; } else { @@ -628,6 +680,8 @@ public String getSelector() { } } /** + * + * *
      * The selector is a comma-separated list of patterns. Each pattern is a
      * qualified name of the element which may end in "*", indicating a wildcard.
@@ -638,18 +692,22 @@ public String getSelector() {
      * 
* * string selector = 1; + * + * @param value The selector to set. + * @return This builder for chaining. */ - public Builder setSelector( - String value) { + public Builder setSelector(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + selector_ = value; onChanged(); return this; } /** + * + * *
      * The selector is a comma-separated list of patterns. Each pattern is a
      * qualified name of the element which may end in "*", indicating a wildcard.
@@ -660,14 +718,18 @@ public Builder setSelector(
      * 
* * string selector = 1; + * + * @return This builder for chaining. */ public Builder clearSelector() { - + selector_ = getDefaultInstance().getSelector(); onChanged(); return this; } /** + * + * *
      * The selector is a comma-separated list of patterns. Each pattern is a
      * qualified name of the element which may end in "*", indicating a wildcard.
@@ -678,53 +740,60 @@ public Builder clearSelector() {
      * 
* * string selector = 1; + * + * @param value The bytes for selector to set. + * @return This builder for chaining. */ - public Builder setSelectorBytes( - com.google.protobuf.ByteString value) { + public Builder setSelectorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + selector_ = value; onChanged(); return this; } - private Object description_ = ""; + private java.lang.Object description_ = ""; /** + * + * *
      * Description of the selected API(s).
      * 
* * string description = 2; + * + * @return The description. */ - public String getDescription() { - Object ref = description_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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; + java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Description of the selected API(s).
      * 
* * string description = 2; + * + * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - Object ref = description_; + 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( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -732,90 +801,107 @@ public String getDescription() { } } /** + * + * *
      * Description of the selected API(s).
      * 
* * string description = 2; + * + * @param value The description to set. + * @return This builder for chaining. */ - public Builder setDescription( - String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Description of the selected API(s).
      * 
* * string description = 2; + * + * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Description of the selected API(s).
      * 
* * string description = 2; + * + * @param value The bytes for description to set. + * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private Object deprecationDescription_ = ""; + private java.lang.Object deprecationDescription_ = ""; /** + * + * *
      * Deprecation description of the selected element(s). It can be provided if
      * an element is marked as `deprecated`.
      * 
* * string deprecation_description = 3; + * + * @return The deprecationDescription. */ - public String getDeprecationDescription() { - Object ref = deprecationDescription_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getDeprecationDescription() { + java.lang.Object ref = deprecationDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); deprecationDescription_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Deprecation description of the selected element(s). It can be provided if
      * an element is marked as `deprecated`.
      * 
* * string deprecation_description = 3; + * + * @return The bytes for deprecationDescription. */ - public com.google.protobuf.ByteString - getDeprecationDescriptionBytes() { - Object ref = deprecationDescription_; + public com.google.protobuf.ByteString getDeprecationDescriptionBytes() { + java.lang.Object ref = deprecationDescription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); deprecationDescription_ = b; return b; } else { @@ -823,106 +909,116 @@ public String getDeprecationDescription() { } } /** + * + * *
      * Deprecation description of the selected element(s). It can be provided if
      * an element is marked as `deprecated`.
      * 
* * string deprecation_description = 3; + * + * @param value The deprecationDescription to set. + * @return This builder for chaining. */ - public Builder setDeprecationDescription( - String value) { + public Builder setDeprecationDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + deprecationDescription_ = value; onChanged(); return this; } /** + * + * *
      * Deprecation description of the selected element(s). It can be provided if
      * an element is marked as `deprecated`.
      * 
* * string deprecation_description = 3; + * + * @return This builder for chaining. */ public Builder clearDeprecationDescription() { - + deprecationDescription_ = getDefaultInstance().getDeprecationDescription(); onChanged(); return this; } /** + * + * *
      * Deprecation description of the selected element(s). It can be provided if
      * an element is marked as `deprecated`.
      * 
* * string deprecation_description = 3; + * + * @param value The bytes for deprecationDescription to set. + * @return This builder for chaining. */ - public Builder setDeprecationDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDeprecationDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deprecationDescription_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.DocumentationRule) } // @@protoc_insertion_point(class_scope:google.api.DocumentationRule) - private static final DocumentationRule DEFAULT_INSTANCE; + private static final com.google.api.DocumentationRule DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new DocumentationRule(); + DEFAULT_INSTANCE = new com.google.api.DocumentationRule(); } - public static DocumentationRule getDefaultInstance() { + public static com.google.api.DocumentationRule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public DocumentationRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentationRule(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentationRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DocumentationRule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public DocumentationRule getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.DocumentationRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/DocumentationRuleOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/DocumentationRuleOrBuilder.java index 5685b060..dc2ed27c 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/DocumentationRuleOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/DocumentationRuleOrBuilder.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/documentation.proto package com.google.api; -public interface DocumentationRuleOrBuilder extends +public interface DocumentationRuleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.DocumentationRule) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The selector is a comma-separated list of patterns. Each pattern is a
    * qualified name of the element which may end in "*", indicating a wildcard.
@@ -18,9 +36,13 @@ public interface DocumentationRuleOrBuilder extends
    * 
* * string selector = 1; + * + * @return The selector. */ - String getSelector(); + java.lang.String getSelector(); /** + * + * *
    * The selector is a comma-separated list of patterns. Each pattern is a
    * qualified name of the element which may end in "*", indicating a wildcard.
@@ -31,45 +53,60 @@ public interface DocumentationRuleOrBuilder extends
    * 
* * string selector = 1; + * + * @return The bytes for selector. */ - com.google.protobuf.ByteString - getSelectorBytes(); + com.google.protobuf.ByteString getSelectorBytes(); /** + * + * *
    * Description of the selected API(s).
    * 
* * string description = 2; + * + * @return The description. */ - String getDescription(); + java.lang.String getDescription(); /** + * + * *
    * Description of the selected API(s).
    * 
* * string description = 2; + * + * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Deprecation description of the selected element(s). It can be provided if
    * an element is marked as `deprecated`.
    * 
* * string deprecation_description = 3; + * + * @return The deprecationDescription. */ - String getDeprecationDescription(); + java.lang.String getDeprecationDescription(); /** + * + * *
    * Deprecation description of the selected element(s). It can be provided if
    * an element is marked as `deprecated`.
    * 
* * string deprecation_description = 3; + * + * @return The bytes for deprecationDescription. */ - com.google.protobuf.ByteString - getDeprecationDescriptionBytes(); + com.google.protobuf.ByteString getDeprecationDescriptionBytes(); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/Endpoint.java b/proto-google-common-protos/src/main/java/com/google/api/Endpoint.java index d77251ce..f949f2ca 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/Endpoint.java +++ b/proto-google-common-protos/src/main/java/com/google/api/Endpoint.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/endpoint.proto package com.google.api; /** + * + * *
  * `Endpoint` describes a network endpoint that serves a set of APIs.
  * A service may expose any number of endpoints, and all endpoints share the
@@ -23,15 +40,16 @@
  *
  * Protobuf type {@code google.api.Endpoint}
  */
-public  final class Endpoint extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Endpoint extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.Endpoint)
     EndpointOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Endpoint.newBuilder() to construct.
   private Endpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Endpoint() {
     name_ = "";
     aliases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -39,18 +57,24 @@ private Endpoint() {
     target_ = "";
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new Endpoint();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Endpoint(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -63,115 +87,122 @@ private Endpoint(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              aliases_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000002;
+              name_ = s;
+              break;
             }
-            aliases_.add(s);
-            break;
-          }
-          case 34: {
-            String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              features_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000004;
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                aliases_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              aliases_.add(s);
+              break;
             }
-            features_.add(s);
-            break;
-          }
-          case 40: {
-
-            allowCors_ = input.readBool();
-            break;
-          }
-          case 810: {
-            String s = input.readStringRequireUtf8();
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                features_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              features_.add(s);
+              break;
+            }
+          case 40:
+            {
+              allowCors_ = input.readBool();
+              break;
+            }
+          case 810:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            target_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              target_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
-      if (((mutable_bitField0_ & 0x00000002) != 0)) {
+      if (((mutable_bitField0_ & 0x00000001) != 0)) {
         aliases_ = aliases_.getUnmodifiableView();
       }
-      if (((mutable_bitField0_ & 0x00000004) != 0)) {
+      if (((mutable_bitField0_ & 0x00000002) != 0)) {
         features_ = features_.getUnmodifiableView();
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.EndpointProto.internal_static_google_api_Endpoint_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return com.google.api.EndpointProto.internal_static_google_api_Endpoint_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            Endpoint.class, Builder.class);
+            com.google.api.Endpoint.class, com.google.api.Endpoint.Builder.class);
   }
 
-  private int bitField0_;
   public static final int NAME_FIELD_NUMBER = 1;
-  private volatile Object name_;
+  private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * The canonical name of this endpoint.
    * 
* * string name = 1; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The canonical name of this endpoint.
    * 
* * string name = 1; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -182,6 +213,8 @@ public String getName() { public static final int ALIASES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList aliases_; /** + * + * *
    * DEPRECATED: This field is no longer supported. Instead of using aliases,
    * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended
@@ -190,12 +223,16 @@ public String getName() {
    * 
* * repeated string aliases = 2 [deprecated = true]; + * + * @return A list containing the aliases. */ - @Deprecated public com.google.protobuf.ProtocolStringList - getAliasesList() { + @java.lang.Deprecated + public com.google.protobuf.ProtocolStringList getAliasesList() { return aliases_; } /** + * + * *
    * DEPRECATED: This field is no longer supported. Instead of using aliases,
    * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended
@@ -204,11 +241,16 @@ public String getName() {
    * 
* * repeated string aliases = 2 [deprecated = true]; + * + * @return The count of aliases. */ - @Deprecated public int getAliasesCount() { + @java.lang.Deprecated + public int getAliasesCount() { return aliases_.size(); } /** + * + * *
    * DEPRECATED: This field is no longer supported. Instead of using aliases,
    * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended
@@ -217,11 +259,17 @@ public String getName() {
    * 
* * repeated string aliases = 2 [deprecated = true]; + * + * @param index The index of the element to return. + * @return The aliases at the given index. */ - @Deprecated public String getAliases(int index) { + @java.lang.Deprecated + public java.lang.String getAliases(int index) { return aliases_.get(index); } /** + * + * *
    * DEPRECATED: This field is no longer supported. Instead of using aliases,
    * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended
@@ -230,60 +278,81 @@ public String getName() {
    * 
* * repeated string aliases = 2 [deprecated = true]; + * + * @param index The index of the value to return. + * @return The bytes of the aliases at the given index. */ - @Deprecated public com.google.protobuf.ByteString - getAliasesBytes(int index) { + @java.lang.Deprecated + public com.google.protobuf.ByteString getAliasesBytes(int index) { return aliases_.getByteString(index); } public static final int FEATURES_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList features_; /** + * + * *
    * The list of features enabled on this endpoint.
    * 
* * repeated string features = 4; + * + * @return A list containing the features. */ - public com.google.protobuf.ProtocolStringList - getFeaturesList() { + public com.google.protobuf.ProtocolStringList getFeaturesList() { return features_; } /** + * + * *
    * The list of features enabled on this endpoint.
    * 
* * repeated string features = 4; + * + * @return The count of features. */ public int getFeaturesCount() { return features_.size(); } /** + * + * *
    * The list of features enabled on this endpoint.
    * 
* * repeated string features = 4; + * + * @param index The index of the element to return. + * @return The features at the given index. */ - public String getFeatures(int index) { + public java.lang.String getFeatures(int index) { return features_.get(index); } /** + * + * *
    * The list of features enabled on this endpoint.
    * 
* * repeated string features = 4; + * + * @param index The index of the value to return. + * @return The bytes of the features at the given index. */ - public com.google.protobuf.ByteString - getFeaturesBytes(int index) { + public com.google.protobuf.ByteString getFeaturesBytes(int index) { return features_.getByteString(index); } public static final int TARGET_FIELD_NUMBER = 101; - private volatile Object target_; + private volatile java.lang.Object target_; /** + * + * *
    * The specification of an Internet routable address of API frontend that will
    * handle requests to this [API
@@ -293,20 +362,23 @@ public String getFeatures(int index) {
    * 
* * string target = 101; + * + * @return The target. */ - public String getTarget() { - Object ref = target_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * The specification of an Internet routable address of API frontend that will
    * handle requests to this [API
@@ -316,14 +388,14 @@ public String getTarget() {
    * 
* * string target = 101; + * + * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { - Object ref = target_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -334,6 +406,8 @@ public String getTarget() { public static final int ALLOW_CORS_FIELD_NUMBER = 5; private boolean allowCors_; /** + * + * *
    * Allowing
    * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka
@@ -344,13 +418,16 @@ public String getTarget() {
    * 
* * bool allow_cors = 5; + * + * @return The allowCors. */ public boolean getAllowCors() { return allowCors_; } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -360,9 +437,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -381,7 +457,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -407,8 +483,7 @@ public int getSerializedSize() { size += 1 * getFeaturesList().size(); } if (allowCors_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, allowCors_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, allowCors_); } if (!getTargetBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, target_); @@ -418,31 +493,26 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof Endpoint)) { + if (!(obj instanceof com.google.api.Endpoint)) { return super.equals(obj); } - Endpoint other = (Endpoint) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getAliasesList() - .equals(other.getAliasesList())) return false; - if (!getFeaturesList() - .equals(other.getFeaturesList())) return false; - if (!getTarget() - .equals(other.getTarget())) return false; - if (getAllowCors() - != other.getAllowCors()) return false; + com.google.api.Endpoint other = (com.google.api.Endpoint) obj; + + if (!getName().equals(other.getName())) return false; + if (!getAliasesList().equals(other.getAliasesList())) return false; + if (!getFeaturesList().equals(other.getFeaturesList())) return false; + if (!getTarget().equals(other.getTarget())) return false; + if (getAllowCors() != other.getAllowCors()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -462,104 +532,109 @@ public int hashCode() { hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + getTarget().hashCode(); hash = (37 * hash) + ALLOW_CORS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowCors()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowCors()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static Endpoint parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.Endpoint parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Endpoint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Endpoint parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Endpoint parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.api.Endpoint parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Endpoint parseFrom( + + public static com.google.api.Endpoint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Endpoint parseFrom(byte[] data) + + public static com.google.api.Endpoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Endpoint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Endpoint parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Endpoint parseFrom(java.io.InputStream input) + + public static com.google.api.Endpoint 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 Endpoint parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Endpoint parseFrom( + 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 Endpoint parseDelimitedFrom(java.io.InputStream input) + + public static com.google.api.Endpoint 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 Endpoint parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Endpoint parseDelimitedFrom( + 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 Endpoint parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.api.Endpoint 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 Endpoint parseFrom( + + public static com.google.api.Endpoint 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(Endpoint prototype) { + + public static Builder newBuilder(com.google.api.Endpoint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * `Endpoint` describes a network endpoint that serves a set of APIs.
    * A service may expose any number of endpoints, and all endpoints share the
@@ -579,21 +654,20 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.Endpoint}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.Endpoint)
       com.google.api.EndpointOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.api.EndpointProto.internal_static_google_api_Endpoint_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return com.google.api.EndpointProto.internal_static_google_api_Endpoint_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              Endpoint.class, Builder.class);
+              com.google.api.Endpoint.class, com.google.api.Endpoint.Builder.class);
     }
 
     // Construct using com.google.api.Endpoint.newBuilder()
@@ -601,25 +675,24 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       name_ = "";
 
       aliases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-      bitField0_ = (bitField0_ & ~0x00000002);
+      bitField0_ = (bitField0_ & ~0x00000001);
       features_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-      bitField0_ = (bitField0_ & ~0x00000004);
+      bitField0_ = (bitField0_ & ~0x00000002);
       target_ = "";
 
       allowCors_ = false;
@@ -627,93 +700,91 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.api.EndpointProto.internal_static_google_api_Endpoint_descriptor;
     }
 
-    @Override
-    public Endpoint getDefaultInstanceForType() {
-      return Endpoint.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.Endpoint getDefaultInstanceForType() {
+      return com.google.api.Endpoint.getDefaultInstance();
     }
 
-    @Override
-    public Endpoint build() {
-      Endpoint result = buildPartial();
+    @java.lang.Override
+    public com.google.api.Endpoint build() {
+      com.google.api.Endpoint result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public Endpoint buildPartial() {
-      Endpoint result = new Endpoint(this);
+    @java.lang.Override
+    public com.google.api.Endpoint buildPartial() {
+      com.google.api.Endpoint result = new com.google.api.Endpoint(this);
       int from_bitField0_ = bitField0_;
-      int to_bitField0_ = 0;
       result.name_ = name_;
-      if (((bitField0_ & 0x00000002) != 0)) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         aliases_ = aliases_.getUnmodifiableView();
-        bitField0_ = (bitField0_ & ~0x00000002);
+        bitField0_ = (bitField0_ & ~0x00000001);
       }
       result.aliases_ = aliases_;
-      if (((bitField0_ & 0x00000004) != 0)) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         features_ = features_.getUnmodifiableView();
-        bitField0_ = (bitField0_ & ~0x00000004);
+        bitField0_ = (bitField0_ & ~0x00000002);
       }
       result.features_ = features_;
       result.target_ = target_;
       result.allowCors_ = allowCors_;
-      result.bitField0_ = to_bitField0_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof Endpoint) {
-        return mergeFrom((Endpoint)other);
+      if (other instanceof com.google.api.Endpoint) {
+        return mergeFrom((com.google.api.Endpoint) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(Endpoint other) {
-      if (other == Endpoint.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.Endpoint other) {
+      if (other == com.google.api.Endpoint.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -721,7 +792,7 @@ public Builder mergeFrom(Endpoint other) {
       if (!other.aliases_.isEmpty()) {
         if (aliases_.isEmpty()) {
           aliases_ = other.aliases_;
-          bitField0_ = (bitField0_ & ~0x00000002);
+          bitField0_ = (bitField0_ & ~0x00000001);
         } else {
           ensureAliasesIsMutable();
           aliases_.addAll(other.aliases_);
@@ -731,7 +802,7 @@ public Builder mergeFrom(Endpoint other) {
       if (!other.features_.isEmpty()) {
         if (features_.isEmpty()) {
           features_ = other.features_;
-          bitField0_ = (bitField0_ & ~0x00000004);
+          bitField0_ = (bitField0_ & ~0x00000002);
         } else {
           ensureFeaturesIsMutable();
           features_.addAll(other.features_);
@@ -750,21 +821,21 @@ public Builder mergeFrom(Endpoint other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      Endpoint parsedMessage = null;
+      com.google.api.Endpoint parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (Endpoint) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.Endpoint) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -773,42 +844,48 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private Object name_ = "";
+    private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The canonical name of this endpoint.
      * 
* * string name = 1; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The canonical name of this endpoint.
      * 
* * string name = 1; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -816,62 +893,78 @@ public String getName() { } } /** + * + * *
      * The canonical name of this endpoint.
      * 
* * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ - public Builder setName( - String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The canonical name of this endpoint.
      * 
* * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The canonical name of this endpoint.
      * 
* * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList aliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList aliases_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAliasesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { aliases_ = new com.google.protobuf.LazyStringArrayList(aliases_); - bitField0_ |= 0x00000002; - } + bitField0_ |= 0x00000001; + } } /** + * + * *
      * DEPRECATED: This field is no longer supported. Instead of using aliases,
      * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended
@@ -880,12 +973,16 @@ private void ensureAliasesIsMutable() {
      * 
* * repeated string aliases = 2 [deprecated = true]; + * + * @return A list containing the aliases. */ - @Deprecated public com.google.protobuf.ProtocolStringList - getAliasesList() { + @java.lang.Deprecated + public com.google.protobuf.ProtocolStringList getAliasesList() { return aliases_.getUnmodifiableView(); } /** + * + * *
      * DEPRECATED: This field is no longer supported. Instead of using aliases,
      * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended
@@ -894,11 +991,16 @@ private void ensureAliasesIsMutable() {
      * 
* * repeated string aliases = 2 [deprecated = true]; + * + * @return The count of aliases. */ - @Deprecated public int getAliasesCount() { + @java.lang.Deprecated + public int getAliasesCount() { return aliases_.size(); } /** + * + * *
      * DEPRECATED: This field is no longer supported. Instead of using aliases,
      * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended
@@ -907,11 +1009,17 @@ private void ensureAliasesIsMutable() {
      * 
* * repeated string aliases = 2 [deprecated = true]; + * + * @param index The index of the element to return. + * @return The aliases at the given index. */ - @Deprecated public String getAliases(int index) { + @java.lang.Deprecated + public java.lang.String getAliases(int index) { return aliases_.get(index); } /** + * + * *
      * DEPRECATED: This field is no longer supported. Instead of using aliases,
      * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended
@@ -920,12 +1028,17 @@ private void ensureAliasesIsMutable() {
      * 
* * repeated string aliases = 2 [deprecated = true]; + * + * @param index The index of the value to return. + * @return The bytes of the aliases at the given index. */ - @Deprecated public com.google.protobuf.ByteString - getAliasesBytes(int index) { + @java.lang.Deprecated + public com.google.protobuf.ByteString getAliasesBytes(int index) { return aliases_.getByteString(index); } /** + * + * *
      * DEPRECATED: This field is no longer supported. Instead of using aliases,
      * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended
@@ -934,18 +1047,24 @@ private void ensureAliasesIsMutable() {
      * 
* * repeated string aliases = 2 [deprecated = true]; + * + * @param index The index to set the value at. + * @param value The aliases to set. + * @return This builder for chaining. */ - @Deprecated public Builder setAliases( - int index, String value) { + @java.lang.Deprecated + public Builder setAliases(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAliasesIsMutable(); + throw new NullPointerException(); + } + ensureAliasesIsMutable(); aliases_.set(index, value); onChanged(); return this; } /** + * + * *
      * DEPRECATED: This field is no longer supported. Instead of using aliases,
      * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended
@@ -954,18 +1073,23 @@ private void ensureAliasesIsMutable() {
      * 
* * repeated string aliases = 2 [deprecated = true]; + * + * @param value The aliases to add. + * @return This builder for chaining. */ - @Deprecated public Builder addAliases( - String value) { + @java.lang.Deprecated + public Builder addAliases(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAliasesIsMutable(); + throw new NullPointerException(); + } + ensureAliasesIsMutable(); aliases_.add(value); onChanged(); return this; } /** + * + * *
      * DEPRECATED: This field is no longer supported. Instead of using aliases,
      * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended
@@ -974,16 +1098,20 @@ private void ensureAliasesIsMutable() {
      * 
* * repeated string aliases = 2 [deprecated = true]; + * + * @param values The aliases to add. + * @return This builder for chaining. */ - @Deprecated public Builder addAllAliases( - Iterable values) { + @java.lang.Deprecated + public Builder addAllAliases(java.lang.Iterable values) { ensureAliasesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, aliases_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aliases_); onChanged(); return this; } /** + * + * *
      * DEPRECATED: This field is no longer supported. Instead of using aliases,
      * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended
@@ -992,14 +1120,19 @@ private void ensureAliasesIsMutable() {
      * 
* * repeated string aliases = 2 [deprecated = true]; + * + * @return This builder for chaining. */ - @Deprecated public Builder clearAliases() { + @java.lang.Deprecated + public Builder clearAliases() { aliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** + * + * *
      * DEPRECATED: This field is no longer supported. Instead of using aliases,
      * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended
@@ -1008,151 +1141,194 @@ private void ensureAliasesIsMutable() {
      * 
* * repeated string aliases = 2 [deprecated = true]; + * + * @param value The bytes of the aliases to add. + * @return This builder for chaining. */ - @Deprecated public Builder addAliasesBytes( - com.google.protobuf.ByteString value) { + @java.lang.Deprecated + public Builder addAliasesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAliasesIsMutable(); aliases_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList features_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList features_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureFeaturesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { features_ = new com.google.protobuf.LazyStringArrayList(features_); - bitField0_ |= 0x00000004; - } + bitField0_ |= 0x00000002; + } } /** + * + * *
      * The list of features enabled on this endpoint.
      * 
* * repeated string features = 4; + * + * @return A list containing the features. */ - public com.google.protobuf.ProtocolStringList - getFeaturesList() { + public com.google.protobuf.ProtocolStringList getFeaturesList() { return features_.getUnmodifiableView(); } /** + * + * *
      * The list of features enabled on this endpoint.
      * 
* * repeated string features = 4; + * + * @return The count of features. */ public int getFeaturesCount() { return features_.size(); } /** + * + * *
      * The list of features enabled on this endpoint.
      * 
* * repeated string features = 4; + * + * @param index The index of the element to return. + * @return The features at the given index. */ - public String getFeatures(int index) { + public java.lang.String getFeatures(int index) { return features_.get(index); } /** + * + * *
      * The list of features enabled on this endpoint.
      * 
* * repeated string features = 4; + * + * @param index The index of the value to return. + * @return The bytes of the features at the given index. */ - public com.google.protobuf.ByteString - getFeaturesBytes(int index) { + public com.google.protobuf.ByteString getFeaturesBytes(int index) { return features_.getByteString(index); } /** + * + * *
      * The list of features enabled on this endpoint.
      * 
* * repeated string features = 4; + * + * @param index The index to set the value at. + * @param value The features to set. + * @return This builder for chaining. */ - public Builder setFeatures( - int index, String value) { + public Builder setFeatures(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFeaturesIsMutable(); + throw new NullPointerException(); + } + ensureFeaturesIsMutable(); features_.set(index, value); onChanged(); return this; } /** + * + * *
      * The list of features enabled on this endpoint.
      * 
* * repeated string features = 4; + * + * @param value The features to add. + * @return This builder for chaining. */ - public Builder addFeatures( - String value) { + public Builder addFeatures(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFeaturesIsMutable(); + throw new NullPointerException(); + } + ensureFeaturesIsMutable(); features_.add(value); onChanged(); return this; } /** + * + * *
      * The list of features enabled on this endpoint.
      * 
* * repeated string features = 4; + * + * @param values The features to add. + * @return This builder for chaining. */ - public Builder addAllFeatures( - Iterable values) { + public Builder addAllFeatures(java.lang.Iterable values) { ensureFeaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, features_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, features_); onChanged(); return this; } /** + * + * *
      * The list of features enabled on this endpoint.
      * 
* * repeated string features = 4; + * + * @return This builder for chaining. */ public Builder clearFeatures() { features_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** + * + * *
      * The list of features enabled on this endpoint.
      * 
* * repeated string features = 4; + * + * @param value The bytes of the features to add. + * @return This builder for chaining. */ - public Builder addFeaturesBytes( - com.google.protobuf.ByteString value) { + public Builder addFeaturesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFeaturesIsMutable(); features_.add(value); onChanged(); return this; } - private Object target_ = ""; + private java.lang.Object target_ = ""; /** + * + * *
      * The specification of an Internet routable address of API frontend that will
      * handle requests to this [API
@@ -1162,20 +1338,23 @@ public Builder addFeaturesBytes(
      * 
* * string target = 101; + * + * @return The target. */ - public String getTarget() { - Object ref = target_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The specification of an Internet routable address of API frontend that will
      * handle requests to this [API
@@ -1185,14 +1364,14 @@ public String getTarget() {
      * 
* * string target = 101; + * + * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { - Object ref = target_; + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1200,6 +1379,8 @@ public String getTarget() { } } /** + * + * *
      * The specification of an Internet routable address of API frontend that will
      * handle requests to this [API
@@ -1209,18 +1390,22 @@ public String getTarget() {
      * 
* * string target = 101; + * + * @param value The target to set. + * @return This builder for chaining. */ - public Builder setTarget( - String value) { + public Builder setTarget(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** + * + * *
      * The specification of an Internet routable address of API frontend that will
      * handle requests to this [API
@@ -1230,14 +1415,18 @@ public Builder setTarget(
      * 
* * string target = 101; + * + * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** + * + * *
      * The specification of an Internet routable address of API frontend that will
      * handle requests to this [API
@@ -1247,21 +1436,25 @@ public Builder clearTarget() {
      * 
* * string target = 101; + * + * @param value The bytes for target to set. + * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; } - private boolean allowCors_ ; + private boolean allowCors_; /** + * + * *
      * Allowing
      * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka
@@ -1272,11 +1465,15 @@ public Builder setTargetBytes(
      * 
* * bool allow_cors = 5; + * + * @return The allowCors. */ public boolean getAllowCors() { return allowCors_; } /** + * + * *
      * Allowing
      * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka
@@ -1287,14 +1484,19 @@ public boolean getAllowCors() {
      * 
* * bool allow_cors = 5; + * + * @param value The allowCors to set. + * @return This builder for chaining. */ public Builder setAllowCors(boolean value) { - + allowCors_ = value; onChanged(); return this; } /** + * + * *
      * Allowing
      * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka
@@ -1305,63 +1507,63 @@ public Builder setAllowCors(boolean value) {
      * 
* * bool allow_cors = 5; + * + * @return This builder for chaining. */ public Builder clearAllowCors() { - + allowCors_ = false; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.Endpoint) } // @@protoc_insertion_point(class_scope:google.api.Endpoint) - private static final Endpoint DEFAULT_INSTANCE; + private static final com.google.api.Endpoint DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new Endpoint(); + DEFAULT_INSTANCE = new com.google.api.Endpoint(); } - public static Endpoint getDefaultInstance() { + public static com.google.api.Endpoint getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public Endpoint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Endpoint(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Endpoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Endpoint(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public Endpoint getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.Endpoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/EndpointOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/EndpointOrBuilder.java index 0941b6b2..d93c5fb6 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/EndpointOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/EndpointOrBuilder.java @@ -1,31 +1,56 @@ +/* + * 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/endpoint.proto package com.google.api; -public interface EndpointOrBuilder extends +public interface EndpointOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.Endpoint) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The canonical name of this endpoint.
    * 
* * string name = 1; + * + * @return The name. */ - String getName(); + java.lang.String getName(); /** + * + * *
    * The canonical name of this endpoint.
    * 
* * string name = 1; + * + * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * DEPRECATED: This field is no longer supported. Instead of using aliases,
    * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended
@@ -34,10 +59,14 @@ public interface EndpointOrBuilder extends
    * 
* * repeated string aliases = 2 [deprecated = true]; + * + * @return A list containing the aliases. */ - @Deprecated java.util.List - getAliasesList(); + @java.lang.Deprecated + java.util.List getAliasesList(); /** + * + * *
    * DEPRECATED: This field is no longer supported. Instead of using aliases,
    * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended
@@ -46,9 +75,14 @@ public interface EndpointOrBuilder extends
    * 
* * repeated string aliases = 2 [deprecated = true]; + * + * @return The count of aliases. */ - @Deprecated int getAliasesCount(); + @java.lang.Deprecated + int getAliasesCount(); /** + * + * *
    * DEPRECATED: This field is no longer supported. Instead of using aliases,
    * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended
@@ -57,9 +91,15 @@ public interface EndpointOrBuilder extends
    * 
* * repeated string aliases = 2 [deprecated = true]; + * + * @param index The index of the element to return. + * @return The aliases at the given index. */ - @Deprecated String getAliases(int index); + @java.lang.Deprecated + java.lang.String getAliases(int index); /** + * + * *
    * DEPRECATED: This field is no longer supported. Instead of using aliases,
    * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended
@@ -68,46 +108,67 @@ public interface EndpointOrBuilder extends
    * 
* * repeated string aliases = 2 [deprecated = true]; + * + * @param index The index of the value to return. + * @return The bytes of the aliases at the given index. */ - @Deprecated com.google.protobuf.ByteString - getAliasesBytes(int index); + @java.lang.Deprecated + com.google.protobuf.ByteString getAliasesBytes(int index); /** + * + * *
    * The list of features enabled on this endpoint.
    * 
* * repeated string features = 4; + * + * @return A list containing the features. */ - java.util.List - getFeaturesList(); + java.util.List getFeaturesList(); /** + * + * *
    * The list of features enabled on this endpoint.
    * 
* * repeated string features = 4; + * + * @return The count of features. */ int getFeaturesCount(); /** + * + * *
    * The list of features enabled on this endpoint.
    * 
* * repeated string features = 4; + * + * @param index The index of the element to return. + * @return The features at the given index. */ - String getFeatures(int index); + java.lang.String getFeatures(int index); /** + * + * *
    * The list of features enabled on this endpoint.
    * 
* * repeated string features = 4; + * + * @param index The index of the value to return. + * @return The bytes of the features at the given index. */ - com.google.protobuf.ByteString - getFeaturesBytes(int index); + com.google.protobuf.ByteString getFeaturesBytes(int index); /** + * + * *
    * The specification of an Internet routable address of API frontend that will
    * handle requests to this [API
@@ -117,9 +178,13 @@ public interface EndpointOrBuilder extends
    * 
* * string target = 101; + * + * @return The target. */ - String getTarget(); + java.lang.String getTarget(); /** + * + * *
    * The specification of an Internet routable address of API frontend that will
    * handle requests to this [API
@@ -129,11 +194,14 @@ public interface EndpointOrBuilder extends
    * 
* * string target = 101; + * + * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Allowing
    * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka
@@ -144,6 +212,8 @@ public interface EndpointOrBuilder extends
    * 
* * bool allow_cors = 5; + * + * @return The allowCors. */ boolean getAllowCors(); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/EndpointProto.java b/proto-google-common-protos/src/main/java/com/google/api/EndpointProto.java index 138b4e73..251a189f 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/EndpointProto.java +++ b/proto-google-common-protos/src/main/java/com/google/api/EndpointProto.java @@ -1,3 +1,18 @@ +/* + * 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/endpoint.proto @@ -5,55 +20,44 @@ public final class EndpointProto { private EndpointProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + 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_Endpoint_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_Endpoint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_api_Endpoint_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { - String[] descriptorData = { - "\n\031google/api/endpoint.proto\022\ngoogle.api\"" + - "c\n\010Endpoint\022\014\n\004name\030\001 \001(\t\022\023\n\007aliases\030\002 \003" + - "(\tB\002\030\001\022\020\n\010features\030\004 \003(\t\022\016\n\006target\030e \001(\t" + - "\022\022\n\nallow_cors\030\005 \001(\010Bo\n\016com.google.apiB\r" + - "EndpointProtoP\001ZEgoogle.golang.org/genpr" + - "oto/googleapis/api/serviceconfig;service" + - "config\242\002\004GAPIb\006proto3" + java.lang.String[] descriptorData = { + "\n\031google/api/endpoint.proto\022\ngoogle.api\"" + + "c\n\010Endpoint\022\014\n\004name\030\001 \001(\t\022\023\n\007aliases\030\002 \003" + + "(\tB\002\030\001\022\020\n\010features\030\004 \003(\t\022\016\n\006target\030e \001(\t" + + "\022\022\n\nallow_cors\030\005 \001(\010Bo\n\016com.google.apiB\r" + + "EndpointProtoP\001ZEgoogle.golang.org/genpr" + + "oto/googleapis/api/serviceconfig;service" + + "config\242\002\004GAPIb\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_google_api_Endpoint_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_api_Endpoint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_Endpoint_descriptor, - new String[] { "Name", "Aliases", "Features", "Target", "AllowCors", }); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_api_Endpoint_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_api_Endpoint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_Endpoint_descriptor, + new java.lang.String[] { + "Name", "Aliases", "Features", "Target", "AllowCors", + }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-common-protos/src/main/java/com/google/api/FieldBehavior.java b/proto-google-common-protos/src/main/java/com/google/api/FieldBehavior.java index b50dba27..d87c0e2d 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/FieldBehavior.java +++ b/proto-google-common-protos/src/main/java/com/google/api/FieldBehavior.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/field_behavior.proto package com.google.api; /** + * + * *
  * An indicator of the behavior of a given field (for example, that a field
  * is required in requests, or given as output but ignored as input).
@@ -14,9 +31,10 @@
  *
  * Protobuf enum {@code google.api.FieldBehavior}
  */
-public enum FieldBehavior
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum FieldBehavior implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * Conventional default for enums. Do not use this.
    * 
@@ -25,6 +43,8 @@ public enum FieldBehavior */ FIELD_BEHAVIOR_UNSPECIFIED(0), /** + * + * *
    * Specifically denotes a field as optional.
    * While all fields in protocol buffers are optional, this may be specified
@@ -35,6 +55,8 @@ public enum FieldBehavior
    */
   OPTIONAL(1),
   /**
+   *
+   *
    * 
    * Denotes a field as required.
    * This indicates that the field **must** be provided as part of the request,
@@ -45,6 +67,8 @@ public enum FieldBehavior
    */
   REQUIRED(2),
   /**
+   *
+   *
    * 
    * Denotes a field as output only.
    * This indicates that the field is provided in responses, but including the
@@ -56,6 +80,8 @@ public enum FieldBehavior
    */
   OUTPUT_ONLY(3),
   /**
+   *
+   *
    * 
    * Denotes a field as input only.
    * This indicates that the field is provided in requests, and the
@@ -66,6 +92,8 @@ public enum FieldBehavior
    */
   INPUT_ONLY(4),
   /**
+   *
+   *
    * 
    * Denotes a field as immutable.
    * This indicates that the field may be set once in a request to create a
@@ -79,6 +107,8 @@ public enum FieldBehavior
   ;
 
   /**
+   *
+   *
    * 
    * Conventional default for enums. Do not use this.
    * 
@@ -87,6 +117,8 @@ public enum FieldBehavior */ public static final int FIELD_BEHAVIOR_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Specifically denotes a field as optional.
    * While all fields in protocol buffers are optional, this may be specified
@@ -97,6 +129,8 @@ public enum FieldBehavior
    */
   public static final int OPTIONAL_VALUE = 1;
   /**
+   *
+   *
    * 
    * Denotes a field as required.
    * This indicates that the field **must** be provided as part of the request,
@@ -107,6 +141,8 @@ public enum FieldBehavior
    */
   public static final int REQUIRED_VALUE = 2;
   /**
+   *
+   *
    * 
    * Denotes a field as output only.
    * This indicates that the field is provided in responses, but including the
@@ -118,6 +154,8 @@ public enum FieldBehavior
    */
   public static final int OUTPUT_ONLY_VALUE = 3;
   /**
+   *
+   *
    * 
    * Denotes a field as input only.
    * This indicates that the field is provided in requests, and the
@@ -128,6 +166,8 @@ public enum FieldBehavior
    */
   public static final int INPUT_ONLY_VALUE = 4;
   /**
+   *
+   *
    * 
    * Denotes a field as immutable.
    * This indicates that the field may be set once in a request to create a
@@ -138,67 +178,75 @@ public enum FieldBehavior
    */
   public static final int IMMUTABLE_VALUE = 5;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
-      throw new IllegalArgumentException(
+      throw new java.lang.IllegalArgumentException(
           "Can't get the number of an unknown enum value.");
     }
     return value;
   }
 
   /**
+   * @param value The numeric wire value of the corresponding enum entry.
+   * @return The enum associated with the given numeric wire value.
    * @deprecated Use {@link #forNumber(int)} instead.
    */
-  @Deprecated
+  @java.lang.Deprecated
   public static FieldBehavior valueOf(int value) {
     return forNumber(value);
   }
 
+  /**
+   * @param value The numeric wire value of the corresponding enum entry.
+   * @return The enum associated with the given numeric wire value.
+   */
   public static FieldBehavior forNumber(int value) {
     switch (value) {
-      case 0: return FIELD_BEHAVIOR_UNSPECIFIED;
-      case 1: return OPTIONAL;
-      case 2: return REQUIRED;
-      case 3: return OUTPUT_ONLY;
-      case 4: return INPUT_ONLY;
-      case 5: return IMMUTABLE;
-      default: return null;
+      case 0:
+        return FIELD_BEHAVIOR_UNSPECIFIED;
+      case 1:
+        return OPTIONAL;
+      case 2:
+        return REQUIRED;
+      case 3:
+        return OUTPUT_ONLY;
+      case 4:
+        return INPUT_ONLY;
+      case 5:
+        return IMMUTABLE;
+      default:
+        return null;
     }
   }
 
-  public static com.google.protobuf.Internal.EnumLiteMap
-      internalGetValueMap() {
+  public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
     return internalValueMap;
   }
-  private static final com.google.protobuf.Internal.EnumLiteMap<
-      FieldBehavior> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public FieldBehavior findValueByNumber(int number) {
-            return FieldBehavior.forNumber(number);
-          }
-        };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor
-      getValueDescriptor() {
+
+  private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+      new com.google.protobuf.Internal.EnumLiteMap() {
+        public FieldBehavior findValueByNumber(int number) {
+          return FieldBehavior.forNumber(number);
+        }
+      };
+
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
     return getDescriptor().getValues().get(ordinal());
   }
-  public final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptorForType() {
+
+  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
     return getDescriptor();
   }
-  public static final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
     return com.google.api.FieldBehaviorProto.getDescriptor().getEnumTypes().get(0);
   }
 
   private static final FieldBehavior[] VALUES = values();
 
-  public static FieldBehavior valueOf(
-      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static FieldBehavior valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
     if (desc.getType() != getDescriptor()) {
-      throw new IllegalArgumentException(
-        "EnumValueDescriptor is not for this type.");
+      throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
     }
     if (desc.getIndex() == -1) {
       return UNRECOGNIZED;
@@ -214,4 +262,3 @@ private FieldBehavior(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.api.FieldBehavior)
 }
-
diff --git a/proto-google-common-protos/src/main/java/com/google/api/FieldBehaviorProto.java b/proto-google-common-protos/src/main/java/com/google/api/FieldBehaviorProto.java
index 5a0ccf6a..261136ba 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/FieldBehaviorProto.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/FieldBehaviorProto.java
@@ -1,3 +1,18 @@
+/*
+ * 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/field_behavior.proto
 
@@ -5,18 +20,19 @@
 
 public final class FieldBehaviorProto {
   private FieldBehaviorProto() {}
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistryLite registry) {
-    registry.add(FieldBehaviorProto.fieldBehavior);
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
   }
 
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions(
-        (com.google.protobuf.ExtensionRegistryLite) registry);
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
   }
+
   public static final int FIELD_BEHAVIOR_FIELD_NUMBER = 1052;
   /**
+   *
+   *
    * 
    * A designation of a specific field behavior (required, output only, etc.)
    * in protobuf messages.
@@ -32,47 +48,39 @@ public static void registerAllExtensions(
    *
    * extend .google.protobuf.FieldOptions { ... }
    */
-  public static final
-    com.google.protobuf.GeneratedMessage.GeneratedExtension<
-      com.google.protobuf.DescriptorProtos.FieldOptions,
-      java.util.List> fieldBehavior = com.google.protobuf.GeneratedMessage
-          .newFileScopedGeneratedExtension(
-        FieldBehavior.class,
-        null);
+  public static final com.google.protobuf.GeneratedMessage.GeneratedExtension<
+          com.google.protobuf.DescriptorProtos.FieldOptions,
+          java.util.List>
+      fieldBehavior =
+          com.google.protobuf.GeneratedMessage.newFileScopedGeneratedExtension(
+              com.google.api.FieldBehavior.class, null);
 
-  public static com.google.protobuf.Descriptors.FileDescriptor
-      getDescriptor() {
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     return descriptor;
   }
-  private static  com.google.protobuf.Descriptors.FileDescriptor
-      descriptor;
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
   static {
-    String[] descriptorData = {
-      "\n\037google/api/field_behavior.proto\022\ngoogl" +
-      "e.api\032 google/protobuf/descriptor.proto*" +
-      "{\n\rFieldBehavior\022\036\n\032FIELD_BEHAVIOR_UNSPE" +
-      "CIFIED\020\000\022\014\n\010OPTIONAL\020\001\022\014\n\010REQUIRED\020\002\022\017\n\013" +
-      "OUTPUT_ONLY\020\003\022\016\n\nINPUT_ONLY\020\004\022\r\n\tIMMUTAB" +
-      "LE\020\005:Q\n\016field_behavior\022\035.google.protobuf" +
-      ".FieldOptions\030\234\010 \003(\0162\031.google.api.FieldB" +
-      "ehaviorBp\n\016com.google.apiB\022FieldBehavior" +
-      "ProtoP\001ZAgoogle.golang.org/genproto/goog" +
-      "leapis/api/annotations;annotations\242\002\004GAP" +
-      "Ib\006proto3"
+    java.lang.String[] descriptorData = {
+      "\n\037google/api/field_behavior.proto\022\ngoogl"
+          + "e.api\032 google/protobuf/descriptor.proto*"
+          + "{\n\rFieldBehavior\022\036\n\032FIELD_BEHAVIOR_UNSPE"
+          + "CIFIED\020\000\022\014\n\010OPTIONAL\020\001\022\014\n\010REQUIRED\020\002\022\017\n\013"
+          + "OUTPUT_ONLY\020\003\022\016\n\nINPUT_ONLY\020\004\022\r\n\tIMMUTAB"
+          + "LE\020\005:Q\n\016field_behavior\022\035.google.protobuf"
+          + ".FieldOptions\030\234\010 \003(\0162\031.google.api.FieldB"
+          + "ehaviorBp\n\016com.google.apiB\022FieldBehavior"
+          + "ProtoP\001ZAgoogle.golang.org/genproto/goog"
+          + "leapis/api/annotations;annotations\242\002\004GAP"
+          + "Ib\006proto3"
     };
-    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
-        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
-          public com.google.protobuf.ExtensionRegistry assignDescriptors(
-              com.google.protobuf.Descriptors.FileDescriptor root) {
-            descriptor = root;
-            return null;
-          }
-        };
-    com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-          com.google.protobuf.DescriptorProtos.getDescriptor(),
-        }, assigner);
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.protobuf.DescriptorProtos.getDescriptor(),
+            });
     fieldBehavior.internalInit(descriptor.getExtensions().get(0));
     com.google.protobuf.DescriptorProtos.getDescriptor();
   }
diff --git a/proto-google-common-protos/src/main/java/com/google/api/Http.java b/proto-google-common-protos/src/main/java/com/google/api/Http.java
index 0281b40f..36bed38e 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/Http.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/Http.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/http.proto
 
 package com.google.api;
 
 /**
+ *
+ *
  * 
  * Defines the HTTP configuration for an API service. It contains a list of
  * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
@@ -12,31 +29,38 @@
  *
  * Protobuf type {@code google.api.Http}
  */
-public  final class Http extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Http extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.Http)
     HttpOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Http.newBuilder() to construct.
   private Http(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Http() {
     rules_ = java.util.Collections.emptyList();
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new Http();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Http(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -49,34 +73,33 @@ private Http(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              rules_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                rules_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              rules_.add(input.readMessage(com.google.api.HttpRule.parser(), extensionRegistry));
+              break;
             }
-            rules_.add(
-                input.readMessage(com.google.api.HttpRule.parser(), extensionRegistry));
-            break;
-          }
-          case 16: {
-
-            fullyDecodeReservedExpansion_ = input.readBool();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 16:
+            {
+              fullyDecodeReservedExpansion_ = input.readBool();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         rules_ = java.util.Collections.unmodifiableList(rules_);
@@ -85,23 +108,24 @@ private Http(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.HttpProto.internal_static_google_api_Http_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return com.google.api.HttpProto.internal_static_google_api_Http_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            Http.class, Builder.class);
+            com.google.api.Http.class, com.google.api.Http.Builder.class);
   }
 
-  private int bitField0_;
   public static final int RULES_FIELD_NUMBER = 1;
   private java.util.List rules_;
   /**
+   *
+   *
    * 
    * A list of HTTP configuration rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -113,6 +137,8 @@ public java.util.List getRulesList() {
     return rules_;
   }
   /**
+   *
+   *
    * 
    * A list of HTTP configuration rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -120,11 +146,12 @@ public java.util.List getRulesList() {
    *
    * repeated .google.api.HttpRule rules = 1;
    */
-  public java.util.List 
-      getRulesOrBuilderList() {
+  public java.util.List getRulesOrBuilderList() {
     return rules_;
   }
   /**
+   *
+   *
    * 
    * A list of HTTP configuration rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -136,6 +163,8 @@ public int getRulesCount() {
     return rules_.size();
   }
   /**
+   *
+   *
    * 
    * A list of HTTP configuration rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -147,6 +176,8 @@ public com.google.api.HttpRule getRules(int index) {
     return rules_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of HTTP configuration rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -154,14 +185,15 @@ public com.google.api.HttpRule getRules(int index) {
    *
    * repeated .google.api.HttpRule rules = 1;
    */
-  public com.google.api.HttpRuleOrBuilder getRulesOrBuilder(
-      int index) {
+  public com.google.api.HttpRuleOrBuilder getRulesOrBuilder(int index) {
     return rules_.get(index);
   }
 
   public static final int FULLY_DECODE_RESERVED_EXPANSION_FIELD_NUMBER = 2;
   private boolean fullyDecodeReservedExpansion_;
   /**
+   *
+   *
    * 
    * When set to true, URL path parameters will be fully URI-decoded except in
    * cases of single segment matches in reserved expansion, where "%2F" will be
@@ -171,13 +203,16 @@ public com.google.api.HttpRuleOrBuilder getRulesOrBuilder(
    * 
* * bool fully_decode_reserved_expansion = 2; + * + * @return The fullyDecodeReservedExpansion. */ public boolean getFullyDecodeReservedExpansion() { return fullyDecodeReservedExpansion_; } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -187,9 +222,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < rules_.size(); i++) { output.writeMessage(1, rules_.get(i)); } @@ -199,44 +233,41 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < rules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, rules_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, rules_.get(i)); } if (fullyDecodeReservedExpansion_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, fullyDecodeReservedExpansion_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(2, fullyDecodeReservedExpansion_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof Http)) { + if (!(obj instanceof com.google.api.Http)) { return super.equals(obj); } - Http other = (Http) obj; + com.google.api.Http other = (com.google.api.Http) obj; - if (!getRulesList() - .equals(other.getRulesList())) return false; - if (getFullyDecodeReservedExpansion() - != other.getFullyDecodeReservedExpansion()) return false; + if (!getRulesList().equals(other.getRulesList())) return false; + if (getFullyDecodeReservedExpansion() != other.getFullyDecodeReservedExpansion()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -248,104 +279,110 @@ public int hashCode() { hash = (53 * hash) + getRulesList().hashCode(); } hash = (37 * hash) + FULLY_DECODE_RESERVED_EXPANSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getFullyDecodeReservedExpansion()); + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFullyDecodeReservedExpansion()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static Http parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.Http parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Http parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Http parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Http parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.api.Http parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Http parseFrom( + + public static com.google.api.Http parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Http parseFrom(byte[] data) + + public static com.google.api.Http parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Http parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Http parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Http parseFrom(java.io.InputStream input) + + public static com.google.api.Http 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 Http parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Http parseFrom( + 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 Http parseDelimitedFrom(java.io.InputStream input) + + public static com.google.api.Http 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 Http parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Http parseDelimitedFrom( + 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 Http parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.api.Http 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 Http parseFrom( + + public static com.google.api.Http 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(Http prototype) { + + public static Builder newBuilder(com.google.api.Http prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Defines the HTTP configuration for an API service. It contains a list of
    * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
@@ -354,21 +391,20 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.Http}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.Http)
       com.google.api.HttpOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.api.HttpProto.internal_static_google_api_Http_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return com.google.api.HttpProto.internal_static_google_api_Http_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              Http.class, Builder.class);
+              com.google.api.Http.class, com.google.api.Http.Builder.class);
     }
 
     // Construct using com.google.api.Http.newBuilder()
@@ -376,18 +412,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getRulesFieldBuilder();
       }
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       if (rulesBuilder_ == null) {
@@ -401,31 +437,29 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.api.HttpProto.internal_static_google_api_Http_descriptor;
     }
 
-    @Override
-    public Http getDefaultInstanceForType() {
-      return Http.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.Http getDefaultInstanceForType() {
+      return com.google.api.Http.getDefaultInstance();
     }
 
-    @Override
-    public Http build() {
-      Http result = buildPartial();
+    @java.lang.Override
+    public com.google.api.Http build() {
+      com.google.api.Http result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public Http buildPartial() {
-      Http result = new Http(this);
+    @java.lang.Override
+    public com.google.api.Http buildPartial() {
+      com.google.api.Http result = new com.google.api.Http(this);
       int from_bitField0_ = bitField0_;
-      int to_bitField0_ = 0;
       if (rulesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           rules_ = java.util.Collections.unmodifiableList(rules_);
@@ -436,55 +470,55 @@ public Http buildPartial() {
         result.rules_ = rulesBuilder_.build();
       }
       result.fullyDecodeReservedExpansion_ = fullyDecodeReservedExpansion_;
-      result.bitField0_ = to_bitField0_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof Http) {
-        return mergeFrom((Http)other);
+      if (other instanceof com.google.api.Http) {
+        return mergeFrom((com.google.api.Http) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(Http other) {
-      if (other == Http.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.Http other) {
+      if (other == com.google.api.Http.getDefaultInstance()) return this;
       if (rulesBuilder_ == null) {
         if (!other.rules_.isEmpty()) {
           if (rules_.isEmpty()) {
@@ -503,9 +537,10 @@ public Builder mergeFrom(Http 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_);
           }
@@ -519,21 +554,21 @@ public Builder mergeFrom(Http other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      Http parsedMessage = null;
+      com.google.api.Http parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (Http) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.Http) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -542,21 +577,27 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List rules_ =
-      java.util.Collections.emptyList();
+    private java.util.List rules_ = 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.HttpRule, com.google.api.HttpRule.Builder, com.google.api.HttpRuleOrBuilder> rulesBuilder_;
+            com.google.api.HttpRule,
+            com.google.api.HttpRule.Builder,
+            com.google.api.HttpRuleOrBuilder>
+        rulesBuilder_;
 
     /**
+     *
+     *
      * 
      * A list of HTTP configuration rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -572,6 +613,8 @@ public java.util.List getRulesList() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of HTTP configuration rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -587,6 +630,8 @@ public int getRulesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of HTTP configuration rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -602,6 +647,8 @@ public com.google.api.HttpRule getRules(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of HTTP configuration rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -609,8 +656,7 @@ public com.google.api.HttpRule getRules(int index) {
      *
      * repeated .google.api.HttpRule rules = 1;
      */
-    public Builder setRules(
-        int index, com.google.api.HttpRule value) {
+    public Builder setRules(int index, com.google.api.HttpRule value) {
       if (rulesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -624,6 +670,8 @@ public Builder setRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of HTTP configuration rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -631,8 +679,7 @@ public Builder setRules(
      *
      * repeated .google.api.HttpRule rules = 1;
      */
-    public Builder setRules(
-        int index, com.google.api.HttpRule.Builder builderForValue) {
+    public Builder setRules(int index, com.google.api.HttpRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.set(index, builderForValue.build());
@@ -643,6 +690,8 @@ public Builder setRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of HTTP configuration rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -664,6 +713,8 @@ public Builder addRules(com.google.api.HttpRule value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of HTTP configuration rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -671,8 +722,7 @@ public Builder addRules(com.google.api.HttpRule value) {
      *
      * repeated .google.api.HttpRule rules = 1;
      */
-    public Builder addRules(
-        int index, com.google.api.HttpRule value) {
+    public Builder addRules(int index, com.google.api.HttpRule value) {
       if (rulesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -686,6 +736,8 @@ public Builder addRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of HTTP configuration rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -693,8 +745,7 @@ public Builder addRules(
      *
      * repeated .google.api.HttpRule rules = 1;
      */
-    public Builder addRules(
-        com.google.api.HttpRule.Builder builderForValue) {
+    public Builder addRules(com.google.api.HttpRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.add(builderForValue.build());
@@ -705,6 +756,8 @@ public Builder addRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of HTTP configuration rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -712,8 +765,7 @@ public Builder addRules(
      *
      * repeated .google.api.HttpRule rules = 1;
      */
-    public Builder addRules(
-        int index, com.google.api.HttpRule.Builder builderForValue) {
+    public Builder addRules(int index, com.google.api.HttpRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.add(index, builderForValue.build());
@@ -724,6 +776,8 @@ public Builder addRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of HTTP configuration rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -731,12 +785,10 @@ public Builder addRules(
      *
      * repeated .google.api.HttpRule rules = 1;
      */
-    public Builder addAllRules(
-        Iterable values) {
+    public Builder addAllRules(java.lang.Iterable 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);
@@ -744,6 +796,8 @@ public Builder addAllRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of HTTP configuration rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -762,6 +816,8 @@ public Builder clearRules() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of HTTP configuration rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -780,6 +836,8 @@ public Builder removeRules(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of HTTP configuration rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -787,11 +845,12 @@ public Builder removeRules(int index) {
      *
      * repeated .google.api.HttpRule rules = 1;
      */
-    public com.google.api.HttpRule.Builder getRulesBuilder(
-        int index) {
+    public com.google.api.HttpRule.Builder getRulesBuilder(int index) {
       return getRulesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of HTTP configuration rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -799,14 +858,16 @@ public com.google.api.HttpRule.Builder getRulesBuilder(
      *
      * repeated .google.api.HttpRule rules = 1;
      */
-    public com.google.api.HttpRuleOrBuilder getRulesOrBuilder(
-        int index) {
+    public com.google.api.HttpRuleOrBuilder getRulesOrBuilder(int index) {
       if (rulesBuilder_ == null) {
-        return rules_.get(index);  } else {
+        return rules_.get(index);
+      } else {
         return rulesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of HTTP configuration rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -814,8 +875,7 @@ public com.google.api.HttpRuleOrBuilder getRulesOrBuilder(
      *
      * repeated .google.api.HttpRule rules = 1;
      */
-    public java.util.List 
-         getRulesOrBuilderList() {
+    public java.util.List getRulesOrBuilderList() {
       if (rulesBuilder_ != null) {
         return rulesBuilder_.getMessageOrBuilderList();
       } else {
@@ -823,6 +883,8 @@ public com.google.api.HttpRuleOrBuilder getRulesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * A list of HTTP configuration rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -831,10 +893,11 @@ public com.google.api.HttpRuleOrBuilder getRulesOrBuilder(
      * repeated .google.api.HttpRule rules = 1;
      */
     public com.google.api.HttpRule.Builder addRulesBuilder() {
-      return getRulesFieldBuilder().addBuilder(
-          com.google.api.HttpRule.getDefaultInstance());
+      return getRulesFieldBuilder().addBuilder(com.google.api.HttpRule.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of HTTP configuration rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -842,12 +905,12 @@ public com.google.api.HttpRule.Builder addRulesBuilder() {
      *
      * repeated .google.api.HttpRule rules = 1;
      */
-    public com.google.api.HttpRule.Builder addRulesBuilder(
-        int index) {
-      return getRulesFieldBuilder().addBuilder(
-          index, com.google.api.HttpRule.getDefaultInstance());
+    public com.google.api.HttpRule.Builder addRulesBuilder(int index) {
+      return getRulesFieldBuilder().addBuilder(index, com.google.api.HttpRule.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of HTTP configuration rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -855,27 +918,31 @@ public com.google.api.HttpRule.Builder addRulesBuilder(
      *
      * repeated .google.api.HttpRule rules = 1;
      */
-    public java.util.List 
-         getRulesBuilderList() {
+    public java.util.List getRulesBuilderList() {
       return getRulesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.api.HttpRule, com.google.api.HttpRule.Builder, com.google.api.HttpRuleOrBuilder> 
+            com.google.api.HttpRule,
+            com.google.api.HttpRule.Builder,
+            com.google.api.HttpRuleOrBuilder>
         getRulesFieldBuilder() {
       if (rulesBuilder_ == null) {
-        rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.api.HttpRule, com.google.api.HttpRule.Builder, com.google.api.HttpRuleOrBuilder>(
-                rules_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        rulesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.api.HttpRule,
+                com.google.api.HttpRule.Builder,
+                com.google.api.HttpRuleOrBuilder>(
+                rules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         rules_ = null;
       }
       return rulesBuilder_;
     }
 
-    private boolean fullyDecodeReservedExpansion_ ;
+    private boolean fullyDecodeReservedExpansion_;
     /**
+     *
+     *
      * 
      * When set to true, URL path parameters will be fully URI-decoded except in
      * cases of single segment matches in reserved expansion, where "%2F" will be
@@ -885,11 +952,15 @@ public com.google.api.HttpRule.Builder addRulesBuilder(
      * 
* * bool fully_decode_reserved_expansion = 2; + * + * @return The fullyDecodeReservedExpansion. */ public boolean getFullyDecodeReservedExpansion() { return fullyDecodeReservedExpansion_; } /** + * + * *
      * When set to true, URL path parameters will be fully URI-decoded except in
      * cases of single segment matches in reserved expansion, where "%2F" will be
@@ -899,14 +970,19 @@ public boolean getFullyDecodeReservedExpansion() {
      * 
* * bool fully_decode_reserved_expansion = 2; + * + * @param value The fullyDecodeReservedExpansion to set. + * @return This builder for chaining. */ public Builder setFullyDecodeReservedExpansion(boolean value) { - + fullyDecodeReservedExpansion_ = value; onChanged(); return this; } /** + * + * *
      * When set to true, URL path parameters will be fully URI-decoded except in
      * cases of single segment matches in reserved expansion, where "%2F" will be
@@ -916,63 +992,63 @@ public Builder setFullyDecodeReservedExpansion(boolean value) {
      * 
* * bool fully_decode_reserved_expansion = 2; + * + * @return This builder for chaining. */ public Builder clearFullyDecodeReservedExpansion() { - + fullyDecodeReservedExpansion_ = false; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.Http) } // @@protoc_insertion_point(class_scope:google.api.Http) - private static final Http DEFAULT_INSTANCE; + private static final com.google.api.Http DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new Http(); + DEFAULT_INSTANCE = new com.google.api.Http(); } - public static Http getDefaultInstance() { + public static com.google.api.Http getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public Http parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Http(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Http parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Http(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public Http getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.Http getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/HttpBody.java b/proto-google-common-protos/src/main/java/com/google/api/HttpBody.java index efaf55c2..f479585a 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/HttpBody.java +++ b/proto-google-common-protos/src/main/java/com/google/api/HttpBody.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/httpbody.proto package com.google.api; /** + * + * *
  * Message that represents an arbitrary HTTP body. It should only be used for
  * payload formats that can't be represented as JSON, such as raw binary or
@@ -38,33 +55,40 @@
  *
  * Protobuf type {@code google.api.HttpBody}
  */
-public  final class HttpBody extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class HttpBody extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.HttpBody)
     HttpBodyOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use HttpBody.newBuilder() to construct.
   private HttpBody(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private HttpBody() {
     contentType_ = "";
     data_ = com.google.protobuf.ByteString.EMPTY;
     extensions_ = java.util.Collections.emptyList();
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new HttpBody();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private HttpBody(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -77,97 +101,102 @@ private HttpBody(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            contentType_ = s;
-            break;
-          }
-          case 18: {
-
-            data_ = input.readBytes();
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              extensions_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000004;
+              contentType_ = s;
+              break;
             }
-            extensions_.add(
-                input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 18:
+            {
+              data_ = input.readBytes();
+              break;
+            }
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                extensions_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              extensions_.add(
+                  input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
-      if (((mutable_bitField0_ & 0x00000004) != 0)) {
+      if (((mutable_bitField0_ & 0x00000001) != 0)) {
         extensions_ = java.util.Collections.unmodifiableList(extensions_);
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.HttpBodyProto.internal_static_google_api_HttpBody_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return com.google.api.HttpBodyProto.internal_static_google_api_HttpBody_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            HttpBody.class, Builder.class);
+            com.google.api.HttpBody.class, com.google.api.HttpBody.Builder.class);
   }
 
-  private int bitField0_;
   public static final int CONTENT_TYPE_FIELD_NUMBER = 1;
-  private volatile Object contentType_;
+  private volatile java.lang.Object contentType_;
   /**
+   *
+   *
    * 
    * The HTTP Content-Type header value specifying the content type of the body.
    * 
* * string content_type = 1; + * + * @return The contentType. */ - public String getContentType() { - Object ref = contentType_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getContentType() { + java.lang.Object ref = contentType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); contentType_ = s; return s; } } /** + * + * *
    * The HTTP Content-Type header value specifying the content type of the body.
    * 
* * string content_type = 1; + * + * @return The bytes for contentType. */ - public com.google.protobuf.ByteString - getContentTypeBytes() { - Object ref = contentType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getContentTypeBytes() { + java.lang.Object ref = contentType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); contentType_ = b; return b; } else { @@ -178,11 +207,15 @@ public String getContentType() { public static final int DATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString data_; /** + * + * *
    * The HTTP request/response body as raw binary.
    * 
* * bytes data = 2; + * + * @return The data. */ public com.google.protobuf.ByteString getData() { return data_; @@ -191,6 +224,8 @@ public com.google.protobuf.ByteString getData() { public static final int EXTENSIONS_FIELD_NUMBER = 3; private java.util.List extensions_; /** + * + * *
    * Application specific response metadata. Must be set in the first response
    * for streaming APIs.
@@ -202,6 +237,8 @@ public java.util.List getExtensionsList() {
     return extensions_;
   }
   /**
+   *
+   *
    * 
    * Application specific response metadata. Must be set in the first response
    * for streaming APIs.
@@ -209,11 +246,12 @@ public java.util.List getExtensionsList() {
    *
    * repeated .google.protobuf.Any extensions = 3;
    */
-  public java.util.List 
-      getExtensionsOrBuilderList() {
+  public java.util.List getExtensionsOrBuilderList() {
     return extensions_;
   }
   /**
+   *
+   *
    * 
    * Application specific response metadata. Must be set in the first response
    * for streaming APIs.
@@ -225,6 +263,8 @@ public int getExtensionsCount() {
     return extensions_.size();
   }
   /**
+   *
+   *
    * 
    * Application specific response metadata. Must be set in the first response
    * for streaming APIs.
@@ -236,6 +276,8 @@ public com.google.protobuf.Any getExtensions(int index) {
     return extensions_.get(index);
   }
   /**
+   *
+   *
    * 
    * Application specific response metadata. Must be set in the first response
    * for streaming APIs.
@@ -243,13 +285,13 @@ public com.google.protobuf.Any getExtensions(int index) {
    *
    * repeated .google.protobuf.Any extensions = 3;
    */
-  public com.google.protobuf.AnyOrBuilder getExtensionsOrBuilder(
-      int index) {
+  public com.google.protobuf.AnyOrBuilder getExtensionsOrBuilder(int index) {
     return extensions_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-  @Override
+
+  @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
     if (isInitialized == 1) return true;
@@ -259,9 +301,8 @@ public final boolean isInitialized() {
     return true;
   }
 
-  @Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  @java.lang.Override
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!getContentTypeBytes().isEmpty()) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contentType_);
     }
@@ -274,7 +315,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     unknownFields.writeTo(output);
   }
 
-  @Override
+  @java.lang.Override
   public int getSerializedSize() {
     int size = memoizedSize;
     if (size != -1) return size;
@@ -284,39 +325,34 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, contentType_);
     }
     if (!data_.isEmpty()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeBytesSize(2, data_);
+      size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, data_);
     }
     for (int i = 0; i < extensions_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, extensions_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, extensions_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
     return size;
   }
 
-  @Override
-  public boolean equals(final Object obj) {
+  @java.lang.Override
+  public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
-    if (!(obj instanceof HttpBody)) {
+    if (!(obj instanceof com.google.api.HttpBody)) {
       return super.equals(obj);
     }
-    HttpBody other = (HttpBody) obj;
+    com.google.api.HttpBody other = (com.google.api.HttpBody) obj;
 
-    if (!getContentType()
-        .equals(other.getContentType())) return false;
-    if (!getData()
-        .equals(other.getData())) return false;
-    if (!getExtensionsList()
-        .equals(other.getExtensionsList())) return false;
+    if (!getContentType().equals(other.getContentType())) return false;
+    if (!getData().equals(other.getData())) return false;
+    if (!getExtensionsList().equals(other.getExtensionsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
 
-  @Override
+  @java.lang.Override
   public int hashCode() {
     if (memoizedHashCode != 0) {
       return memoizedHashCode;
@@ -336,97 +372,103 @@ public int hashCode() {
     return hash;
   }
 
-  public static HttpBody parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.api.HttpBody parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static HttpBody parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.HttpBody parseFrom(
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static HttpBody parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.api.HttpBody parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static HttpBody parseFrom(
+
+  public static com.google.api.HttpBody parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static HttpBody parseFrom(byte[] data)
+
+  public static com.google.api.HttpBody parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static HttpBody parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.HttpBody parseFrom(
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static HttpBody parseFrom(java.io.InputStream input)
+
+  public static com.google.api.HttpBody 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 HttpBody parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.HttpBody parseFrom(
+      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 HttpBody parseDelimitedFrom(java.io.InputStream input)
+
+  public static com.google.api.HttpBody 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 HttpBody parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.HttpBody parseDelimitedFrom(
+      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 HttpBody parseFrom(
-      com.google.protobuf.CodedInputStream input)
+
+  public static com.google.api.HttpBody 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 HttpBody parseFrom(
+
+  public static com.google.api.HttpBody 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();
   }
 
-  @Override
-  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(HttpBody prototype) {
+
+  public static Builder newBuilder(com.google.api.HttpBody prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-  @Override
+
+  @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);
   }
 
-  @Override
-  protected Builder newBuilderForType(
-      BuilderParent parent) {
+  @java.lang.Override
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Message that represents an arbitrary HTTP body. It should only be used for
    * payload formats that can't be represented as JSON, such as raw binary or
@@ -461,21 +503,20 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.HttpBody}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.HttpBody)
       com.google.api.HttpBodyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.api.HttpBodyProto.internal_static_google_api_HttpBody_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return com.google.api.HttpBodyProto.internal_static_google_api_HttpBody_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              HttpBody.class, Builder.class);
+              com.google.api.HttpBody.class, com.google.api.HttpBody.Builder.class);
     }
 
     // Construct using com.google.api.HttpBody.newBuilder()
@@ -483,18 +524,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getExtensionsFieldBuilder();
       }
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       contentType_ = "";
@@ -503,98 +544,96 @@ public Builder clear() {
 
       if (extensionsBuilder_ == null) {
         extensions_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000004);
+        bitField0_ = (bitField0_ & ~0x00000001);
       } else {
         extensionsBuilder_.clear();
       }
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.api.HttpBodyProto.internal_static_google_api_HttpBody_descriptor;
     }
 
-    @Override
-    public HttpBody getDefaultInstanceForType() {
-      return HttpBody.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.HttpBody getDefaultInstanceForType() {
+      return com.google.api.HttpBody.getDefaultInstance();
     }
 
-    @Override
-    public HttpBody build() {
-      HttpBody result = buildPartial();
+    @java.lang.Override
+    public com.google.api.HttpBody build() {
+      com.google.api.HttpBody result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public HttpBody buildPartial() {
-      HttpBody result = new HttpBody(this);
+    @java.lang.Override
+    public com.google.api.HttpBody buildPartial() {
+      com.google.api.HttpBody result = new com.google.api.HttpBody(this);
       int from_bitField0_ = bitField0_;
-      int to_bitField0_ = 0;
       result.contentType_ = contentType_;
       result.data_ = data_;
       if (extensionsBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)) {
+        if (((bitField0_ & 0x00000001) != 0)) {
           extensions_ = java.util.Collections.unmodifiableList(extensions_);
-          bitField0_ = (bitField0_ & ~0x00000004);
+          bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.extensions_ = extensions_;
       } else {
         result.extensions_ = extensionsBuilder_.build();
       }
-      result.bitField0_ = to_bitField0_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof HttpBody) {
-        return mergeFrom((HttpBody)other);
+      if (other instanceof com.google.api.HttpBody) {
+        return mergeFrom((com.google.api.HttpBody) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(HttpBody other) {
-      if (other == HttpBody.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.HttpBody other) {
+      if (other == com.google.api.HttpBody.getDefaultInstance()) return this;
       if (!other.getContentType().isEmpty()) {
         contentType_ = other.contentType_;
         onChanged();
@@ -606,7 +645,7 @@ public Builder mergeFrom(HttpBody other) {
         if (!other.extensions_.isEmpty()) {
           if (extensions_.isEmpty()) {
             extensions_ = other.extensions_;
-            bitField0_ = (bitField0_ & ~0x00000004);
+            bitField0_ = (bitField0_ & ~0x00000001);
           } else {
             ensureExtensionsIsMutable();
             extensions_.addAll(other.extensions_);
@@ -619,10 +658,11 @@ public Builder mergeFrom(HttpBody other) {
             extensionsBuilder_.dispose();
             extensionsBuilder_ = null;
             extensions_ = other.extensions_;
-            bitField0_ = (bitField0_ & ~0x00000004);
-            extensionsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getExtensionsFieldBuilder() : null;
+            bitField0_ = (bitField0_ & ~0x00000001);
+            extensionsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getExtensionsFieldBuilder()
+                    : null;
           } else {
             extensionsBuilder_.addAllMessages(other.extensions_);
           }
@@ -633,21 +673,21 @@ public Builder mergeFrom(HttpBody other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      HttpBody parsedMessage = null;
+      com.google.api.HttpBody parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (HttpBody) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.HttpBody) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -656,42 +696,48 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private Object contentType_ = "";
+    private java.lang.Object contentType_ = "";
     /**
+     *
+     *
      * 
      * The HTTP Content-Type header value specifying the content type of the body.
      * 
* * string content_type = 1; + * + * @return The contentType. */ - public String getContentType() { - Object ref = contentType_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getContentType() { + java.lang.Object ref = contentType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); contentType_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The HTTP Content-Type header value specifying the content type of the body.
      * 
* * string content_type = 1; + * + * @return The bytes for contentType. */ - public com.google.protobuf.ByteString - getContentTypeBytes() { - Object ref = contentType_; + public com.google.protobuf.ByteString getContentTypeBytes() { + java.lang.Object ref = contentType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); contentType_ = b; return b; } else { @@ -699,49 +745,61 @@ public String getContentType() { } } /** + * + * *
      * The HTTP Content-Type header value specifying the content type of the body.
      * 
* * string content_type = 1; + * + * @param value The contentType to set. + * @return This builder for chaining. */ - public Builder setContentType( - String value) { + public Builder setContentType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + contentType_ = value; onChanged(); return this; } /** + * + * *
      * The HTTP Content-Type header value specifying the content type of the body.
      * 
* * string content_type = 1; + * + * @return This builder for chaining. */ public Builder clearContentType() { - + contentType_ = getDefaultInstance().getContentType(); onChanged(); return this; } /** + * + * *
      * The HTTP Content-Type header value specifying the content type of the body.
      * 
* * string content_type = 1; + * + * @param value The bytes for contentType to set. + * @return This builder for chaining. */ - public Builder setContentTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setContentTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + contentType_ = value; onChanged(); return this; @@ -749,58 +807,76 @@ public Builder setContentTypeBytes( private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * The HTTP request/response body as raw binary.
      * 
* * bytes data = 2; + * + * @return The data. */ public com.google.protobuf.ByteString getData() { return data_; } /** + * + * *
      * The HTTP request/response body as raw binary.
      * 
* * bytes data = 2; + * + * @param value The data to set. + * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + data_ = value; onChanged(); return this; } /** + * + * *
      * The HTTP request/response body as raw binary.
      * 
* * bytes data = 2; + * + * @return This builder for chaining. */ public Builder clearData() { - + data_ = getDefaultInstance().getData(); onChanged(); return this; } - private java.util.List extensions_ = - java.util.Collections.emptyList(); + private java.util.List extensions_ = java.util.Collections.emptyList(); + private void ensureExtensionsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { extensions_ = new java.util.ArrayList(extensions_); - bitField0_ |= 0x00000004; - } + bitField0_ |= 0x00000001; + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> extensionsBuilder_; + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder> + extensionsBuilder_; /** + * + * *
      * Application specific response metadata. Must be set in the first response
      * for streaming APIs.
@@ -816,6 +892,8 @@ public java.util.List getExtensionsList() {
       }
     }
     /**
+     *
+     *
      * 
      * Application specific response metadata. Must be set in the first response
      * for streaming APIs.
@@ -831,6 +909,8 @@ public int getExtensionsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Application specific response metadata. Must be set in the first response
      * for streaming APIs.
@@ -846,6 +926,8 @@ public com.google.protobuf.Any getExtensions(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Application specific response metadata. Must be set in the first response
      * for streaming APIs.
@@ -853,8 +935,7 @@ public com.google.protobuf.Any getExtensions(int index) {
      *
      * repeated .google.protobuf.Any extensions = 3;
      */
-    public Builder setExtensions(
-        int index, com.google.protobuf.Any value) {
+    public Builder setExtensions(int index, com.google.protobuf.Any value) {
       if (extensionsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -868,6 +949,8 @@ public Builder setExtensions(
       return this;
     }
     /**
+     *
+     *
      * 
      * Application specific response metadata. Must be set in the first response
      * for streaming APIs.
@@ -875,8 +958,7 @@ public Builder setExtensions(
      *
      * repeated .google.protobuf.Any extensions = 3;
      */
-    public Builder setExtensions(
-        int index, com.google.protobuf.Any.Builder builderForValue) {
+    public Builder setExtensions(int index, com.google.protobuf.Any.Builder builderForValue) {
       if (extensionsBuilder_ == null) {
         ensureExtensionsIsMutable();
         extensions_.set(index, builderForValue.build());
@@ -887,6 +969,8 @@ public Builder setExtensions(
       return this;
     }
     /**
+     *
+     *
      * 
      * Application specific response metadata. Must be set in the first response
      * for streaming APIs.
@@ -908,6 +992,8 @@ public Builder addExtensions(com.google.protobuf.Any value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Application specific response metadata. Must be set in the first response
      * for streaming APIs.
@@ -915,8 +1001,7 @@ public Builder addExtensions(com.google.protobuf.Any value) {
      *
      * repeated .google.protobuf.Any extensions = 3;
      */
-    public Builder addExtensions(
-        int index, com.google.protobuf.Any value) {
+    public Builder addExtensions(int index, com.google.protobuf.Any value) {
       if (extensionsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -930,6 +1015,8 @@ public Builder addExtensions(
       return this;
     }
     /**
+     *
+     *
      * 
      * Application specific response metadata. Must be set in the first response
      * for streaming APIs.
@@ -937,8 +1024,7 @@ public Builder addExtensions(
      *
      * repeated .google.protobuf.Any extensions = 3;
      */
-    public Builder addExtensions(
-        com.google.protobuf.Any.Builder builderForValue) {
+    public Builder addExtensions(com.google.protobuf.Any.Builder builderForValue) {
       if (extensionsBuilder_ == null) {
         ensureExtensionsIsMutable();
         extensions_.add(builderForValue.build());
@@ -949,6 +1035,8 @@ public Builder addExtensions(
       return this;
     }
     /**
+     *
+     *
      * 
      * Application specific response metadata. Must be set in the first response
      * for streaming APIs.
@@ -956,8 +1044,7 @@ public Builder addExtensions(
      *
      * repeated .google.protobuf.Any extensions = 3;
      */
-    public Builder addExtensions(
-        int index, com.google.protobuf.Any.Builder builderForValue) {
+    public Builder addExtensions(int index, com.google.protobuf.Any.Builder builderForValue) {
       if (extensionsBuilder_ == null) {
         ensureExtensionsIsMutable();
         extensions_.add(index, builderForValue.build());
@@ -968,6 +1055,8 @@ public Builder addExtensions(
       return this;
     }
     /**
+     *
+     *
      * 
      * Application specific response metadata. Must be set in the first response
      * for streaming APIs.
@@ -975,12 +1064,10 @@ public Builder addExtensions(
      *
      * repeated .google.protobuf.Any extensions = 3;
      */
-    public Builder addAllExtensions(
-        Iterable values) {
+    public Builder addAllExtensions(java.lang.Iterable values) {
       if (extensionsBuilder_ == null) {
         ensureExtensionsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, extensions_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, extensions_);
         onChanged();
       } else {
         extensionsBuilder_.addAllMessages(values);
@@ -988,6 +1075,8 @@ public Builder addAllExtensions(
       return this;
     }
     /**
+     *
+     *
      * 
      * Application specific response metadata. Must be set in the first response
      * for streaming APIs.
@@ -998,7 +1087,7 @@ public Builder addAllExtensions(
     public Builder clearExtensions() {
       if (extensionsBuilder_ == null) {
         extensions_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000004);
+        bitField0_ = (bitField0_ & ~0x00000001);
         onChanged();
       } else {
         extensionsBuilder_.clear();
@@ -1006,6 +1095,8 @@ public Builder clearExtensions() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Application specific response metadata. Must be set in the first response
      * for streaming APIs.
@@ -1024,6 +1115,8 @@ public Builder removeExtensions(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Application specific response metadata. Must be set in the first response
      * for streaming APIs.
@@ -1031,11 +1124,12 @@ public Builder removeExtensions(int index) {
      *
      * repeated .google.protobuf.Any extensions = 3;
      */
-    public com.google.protobuf.Any.Builder getExtensionsBuilder(
-        int index) {
+    public com.google.protobuf.Any.Builder getExtensionsBuilder(int index) {
       return getExtensionsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Application specific response metadata. Must be set in the first response
      * for streaming APIs.
@@ -1043,14 +1137,16 @@ public com.google.protobuf.Any.Builder getExtensionsBuilder(
      *
      * repeated .google.protobuf.Any extensions = 3;
      */
-    public com.google.protobuf.AnyOrBuilder getExtensionsOrBuilder(
-        int index) {
+    public com.google.protobuf.AnyOrBuilder getExtensionsOrBuilder(int index) {
       if (extensionsBuilder_ == null) {
-        return extensions_.get(index);  } else {
+        return extensions_.get(index);
+      } else {
         return extensionsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Application specific response metadata. Must be set in the first response
      * for streaming APIs.
@@ -1058,8 +1154,7 @@ public com.google.protobuf.AnyOrBuilder getExtensionsOrBuilder(
      *
      * repeated .google.protobuf.Any extensions = 3;
      */
-    public java.util.List 
-         getExtensionsOrBuilderList() {
+    public java.util.List getExtensionsOrBuilderList() {
       if (extensionsBuilder_ != null) {
         return extensionsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1067,6 +1162,8 @@ public com.google.protobuf.AnyOrBuilder getExtensionsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Application specific response metadata. Must be set in the first response
      * for streaming APIs.
@@ -1075,10 +1172,11 @@ public com.google.protobuf.AnyOrBuilder getExtensionsOrBuilder(
      * repeated .google.protobuf.Any extensions = 3;
      */
     public com.google.protobuf.Any.Builder addExtensionsBuilder() {
-      return getExtensionsFieldBuilder().addBuilder(
-          com.google.protobuf.Any.getDefaultInstance());
+      return getExtensionsFieldBuilder().addBuilder(com.google.protobuf.Any.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Application specific response metadata. Must be set in the first response
      * for streaming APIs.
@@ -1086,12 +1184,13 @@ public com.google.protobuf.Any.Builder addExtensionsBuilder() {
      *
      * repeated .google.protobuf.Any extensions = 3;
      */
-    public com.google.protobuf.Any.Builder addExtensionsBuilder(
-        int index) {
-      return getExtensionsFieldBuilder().addBuilder(
-          index, com.google.protobuf.Any.getDefaultInstance());
+    public com.google.protobuf.Any.Builder addExtensionsBuilder(int index) {
+      return getExtensionsFieldBuilder()
+          .addBuilder(index, com.google.protobuf.Any.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Application specific response metadata. Must be set in the first response
      * for streaming APIs.
@@ -1099,74 +1198,74 @@ public com.google.protobuf.Any.Builder addExtensionsBuilder(
      *
      * repeated .google.protobuf.Any extensions = 3;
      */
-    public java.util.List 
-         getExtensionsBuilderList() {
+    public java.util.List getExtensionsBuilderList() {
       return getExtensionsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> 
+            com.google.protobuf.Any,
+            com.google.protobuf.Any.Builder,
+            com.google.protobuf.AnyOrBuilder>
         getExtensionsFieldBuilder() {
       if (extensionsBuilder_ == null) {
-        extensionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
-                extensions_,
-                ((bitField0_ & 0x00000004) != 0),
-                getParentForChildren(),
-                isClean());
+        extensionsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.protobuf.Any,
+                com.google.protobuf.Any.Builder,
+                com.google.protobuf.AnyOrBuilder>(
+                extensions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         extensions_ = null;
       }
       return extensionsBuilder_;
     }
-    @Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+
+    @java.lang.Override
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
-    @Override
+    @java.lang.Override
     public final Builder mergeUnknownFields(
         final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.api.HttpBody)
   }
 
   // @@protoc_insertion_point(class_scope:google.api.HttpBody)
-  private static final HttpBody DEFAULT_INSTANCE;
+  private static final com.google.api.HttpBody DEFAULT_INSTANCE;
+
   static {
-    DEFAULT_INSTANCE = new HttpBody();
+    DEFAULT_INSTANCE = new com.google.api.HttpBody();
   }
 
-  public static HttpBody getDefaultInstance() {
+  public static com.google.api.HttpBody getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @Override
-    public HttpBody parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new HttpBody(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public HttpBody parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new HttpBody(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
   }
 
-  @Override
+  @java.lang.Override
   public com.google.protobuf.Parser getParserForType() {
     return PARSER;
   }
 
-  @Override
-  public HttpBody getDefaultInstanceForType() {
+  @java.lang.Override
+  public com.google.api.HttpBody getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-common-protos/src/main/java/com/google/api/HttpBodyOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/HttpBodyOrBuilder.java
index a442979b..c1749af4 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/HttpBodyOrBuilder.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/HttpBodyOrBuilder.java
@@ -1,40 +1,69 @@
+/*
+ * 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/httpbody.proto
 
 package com.google.api;
 
-public interface HttpBodyOrBuilder extends
+public interface HttpBodyOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.api.HttpBody)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The HTTP Content-Type header value specifying the content type of the body.
    * 
* * string content_type = 1; + * + * @return The contentType. */ - String getContentType(); + java.lang.String getContentType(); /** + * + * *
    * The HTTP Content-Type header value specifying the content type of the body.
    * 
* * string content_type = 1; + * + * @return The bytes for contentType. */ - com.google.protobuf.ByteString - getContentTypeBytes(); + com.google.protobuf.ByteString getContentTypeBytes(); /** + * + * *
    * The HTTP request/response body as raw binary.
    * 
* * bytes data = 2; + * + * @return The data. */ com.google.protobuf.ByteString getData(); /** + * + * *
    * Application specific response metadata. Must be set in the first response
    * for streaming APIs.
@@ -42,9 +71,10 @@ public interface HttpBodyOrBuilder extends
    *
    * repeated .google.protobuf.Any extensions = 3;
    */
-  java.util.List 
-      getExtensionsList();
+  java.util.List getExtensionsList();
   /**
+   *
+   *
    * 
    * Application specific response metadata. Must be set in the first response
    * for streaming APIs.
@@ -54,6 +84,8 @@ public interface HttpBodyOrBuilder extends
    */
   com.google.protobuf.Any getExtensions(int index);
   /**
+   *
+   *
    * 
    * Application specific response metadata. Must be set in the first response
    * for streaming APIs.
@@ -63,6 +95,8 @@ public interface HttpBodyOrBuilder extends
    */
   int getExtensionsCount();
   /**
+   *
+   *
    * 
    * Application specific response metadata. Must be set in the first response
    * for streaming APIs.
@@ -70,9 +104,10 @@ public interface HttpBodyOrBuilder extends
    *
    * repeated .google.protobuf.Any extensions = 3;
    */
-  java.util.List 
-      getExtensionsOrBuilderList();
+  java.util.List getExtensionsOrBuilderList();
   /**
+   *
+   *
    * 
    * Application specific response metadata. Must be set in the first response
    * for streaming APIs.
@@ -80,6 +115,5 @@ public interface HttpBodyOrBuilder extends
    *
    * repeated .google.protobuf.Any extensions = 3;
    */
-  com.google.protobuf.AnyOrBuilder getExtensionsOrBuilder(
-      int index);
+  com.google.protobuf.AnyOrBuilder getExtensionsOrBuilder(int index);
 }
diff --git a/proto-google-common-protos/src/main/java/com/google/api/HttpBodyProto.java b/proto-google-common-protos/src/main/java/com/google/api/HttpBodyProto.java
index a76c4275..b136b692 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/HttpBodyProto.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/HttpBodyProto.java
@@ -1,3 +1,18 @@
+/*
+ * 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/httpbody.proto
 
@@ -5,56 +20,47 @@
 
 public final class HttpBodyProto {
   private HttpBodyProto() {}
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistryLite registry) {
-  }
 
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions(
-        (com.google.protobuf.ExtensionRegistryLite) registry);
+  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_HttpBody_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_HttpBody_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_HttpBody_fieldAccessorTable;
 
-  public static com.google.protobuf.Descriptors.FileDescriptor
-      getDescriptor() {
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     return descriptor;
   }
-  private static  com.google.protobuf.Descriptors.FileDescriptor
-      descriptor;
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
   static {
-    String[] descriptorData = {
-      "\n\031google/api/httpbody.proto\022\ngoogle.api\032" +
-      "\031google/protobuf/any.proto\"X\n\010HttpBody\022\024" +
-      "\n\014content_type\030\001 \001(\t\022\014\n\004data\030\002 \001(\014\022(\n\nex" +
-      "tensions\030\003 \003(\0132\024.google.protobuf.AnyBh\n\016" +
-      "com.google.apiB\rHttpBodyProtoP\001Z;google." +
-      "golang.org/genproto/googleapis/api/httpb" +
-      "ody;httpbody\370\001\001\242\002\004GAPIb\006proto3"
+    java.lang.String[] descriptorData = {
+      "\n\031google/api/httpbody.proto\022\ngoogle.api\032"
+          + "\031google/protobuf/any.proto\"X\n\010HttpBody\022\024"
+          + "\n\014content_type\030\001 \001(\t\022\014\n\004data\030\002 \001(\014\022(\n\nex"
+          + "tensions\030\003 \003(\0132\024.google.protobuf.AnyBh\n\016"
+          + "com.google.apiB\rHttpBodyProtoP\001Z;google."
+          + "golang.org/genproto/googleapis/api/httpb"
+          + "ody;httpbody\370\001\001\242\002\004GAPIb\006proto3"
     };
-    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
-        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
-          public com.google.protobuf.ExtensionRegistry assignDescriptors(
-              com.google.protobuf.Descriptors.FileDescriptor root) {
-            descriptor = root;
-            return null;
-          }
-        };
-    com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-          com.google.protobuf.AnyProto.getDescriptor(),
-        }, assigner);
-    internal_static_google_api_HttpBody_descriptor =
-      getDescriptor().getMessageTypes().get(0);
-    internal_static_google_api_HttpBody_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_HttpBody_descriptor,
-        new String[] { "ContentType", "Data", "Extensions", });
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.protobuf.AnyProto.getDescriptor(),
+            });
+    internal_static_google_api_HttpBody_descriptor = getDescriptor().getMessageTypes().get(0);
+    internal_static_google_api_HttpBody_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_HttpBody_descriptor,
+            new java.lang.String[] {
+              "ContentType", "Data", "Extensions",
+            });
     com.google.protobuf.AnyProto.getDescriptor();
   }
 
diff --git a/proto-google-common-protos/src/main/java/com/google/api/HttpOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/HttpOrBuilder.java
index 017f90a8..17900f27 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/HttpOrBuilder.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/HttpOrBuilder.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/http.proto
 
 package com.google.api;
 
-public interface HttpOrBuilder extends
+public interface HttpOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.api.Http)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A list of HTTP configuration rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -15,9 +33,10 @@ public interface HttpOrBuilder extends
    *
    * repeated .google.api.HttpRule rules = 1;
    */
-  java.util.List
-      getRulesList();
+  java.util.List getRulesList();
   /**
+   *
+   *
    * 
    * A list of HTTP configuration rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -25,8 +44,10 @@ public interface HttpOrBuilder extends
    *
    * repeated .google.api.HttpRule rules = 1;
    */
-  HttpRule getRules(int index);
+  com.google.api.HttpRule getRules(int index);
   /**
+   *
+   *
    * 
    * A list of HTTP configuration rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -36,6 +57,8 @@ public interface HttpOrBuilder extends
    */
   int getRulesCount();
   /**
+   *
+   *
    * 
    * A list of HTTP configuration rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -43,9 +66,10 @@ public interface HttpOrBuilder extends
    *
    * repeated .google.api.HttpRule rules = 1;
    */
-  java.util.List 
-      getRulesOrBuilderList();
+  java.util.List getRulesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of HTTP configuration rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -53,10 +77,11 @@ public interface HttpOrBuilder extends
    *
    * repeated .google.api.HttpRule rules = 1;
    */
-  com.google.api.HttpRuleOrBuilder getRulesOrBuilder(
-      int index);
+  com.google.api.HttpRuleOrBuilder getRulesOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * When set to true, URL path parameters will be fully URI-decoded except in
    * cases of single segment matches in reserved expansion, where "%2F" will be
@@ -66,6 +91,8 @@ com.google.api.HttpRuleOrBuilder getRulesOrBuilder(
    * 
* * bool fully_decode_reserved_expansion = 2; + * + * @return The fullyDecodeReservedExpansion. */ boolean getFullyDecodeReservedExpansion(); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/HttpProto.java b/proto-google-common-protos/src/main/java/com/google/api/HttpProto.java index 1921e152..02dfa316 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/HttpProto.java +++ b/proto-google-common-protos/src/main/java/com/google/api/HttpProto.java @@ -1,3 +1,18 @@ +/* + * 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/http.proto @@ -5,84 +20,84 @@ public final class HttpProto { private HttpProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + 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_Http_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_Http_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_api_Http_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_api_HttpRule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_HttpRule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_api_HttpRule_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_api_CustomHttpPattern_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_CustomHttpPattern_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_api_CustomHttpPattern_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { - String[] descriptorData = { - "\n\025google/api/http.proto\022\ngoogle.api\"T\n\004H" + - "ttp\022#\n\005rules\030\001 \003(\0132\024.google.api.HttpRule" + - "\022\'\n\037fully_decode_reserved_expansion\030\002 \001(" + - "\010\"\201\002\n\010HttpRule\022\020\n\010selector\030\001 \001(\t\022\r\n\003get\030" + - "\002 \001(\tH\000\022\r\n\003put\030\003 \001(\tH\000\022\016\n\004post\030\004 \001(\tH\000\022\020" + - "\n\006delete\030\005 \001(\tH\000\022\017\n\005patch\030\006 \001(\tH\000\022/\n\006cus" + - "tom\030\010 \001(\0132\035.google.api.CustomHttpPattern" + - "H\000\022\014\n\004body\030\007 \001(\t\022\025\n\rresponse_body\030\014 \001(\t\022" + - "1\n\023additional_bindings\030\013 \003(\0132\024.google.ap" + - "i.HttpRuleB\t\n\007pattern\"/\n\021CustomHttpPatte" + - "rn\022\014\n\004kind\030\001 \001(\t\022\014\n\004path\030\002 \001(\tBj\n\016com.go" + - "ogle.apiB\tHttpProtoP\001ZAgoogle.golang.org" + - "/genproto/googleapis/api/annotations;ann" + - "otations\370\001\001\242\002\004GAPIb\006proto3" + java.lang.String[] descriptorData = { + "\n\025google/api/http.proto\022\ngoogle.api\"T\n\004H" + + "ttp\022#\n\005rules\030\001 \003(\0132\024.google.api.HttpRule" + + "\022\'\n\037fully_decode_reserved_expansion\030\002 \001(" + + "\010\"\201\002\n\010HttpRule\022\020\n\010selector\030\001 \001(\t\022\r\n\003get\030" + + "\002 \001(\tH\000\022\r\n\003put\030\003 \001(\tH\000\022\016\n\004post\030\004 \001(\tH\000\022\020" + + "\n\006delete\030\005 \001(\tH\000\022\017\n\005patch\030\006 \001(\tH\000\022/\n\006cus" + + "tom\030\010 \001(\0132\035.google.api.CustomHttpPattern" + + "H\000\022\014\n\004body\030\007 \001(\t\022\025\n\rresponse_body\030\014 \001(\t\022" + + "1\n\023additional_bindings\030\013 \003(\0132\024.google.ap" + + "i.HttpRuleB\t\n\007pattern\"/\n\021CustomHttpPatte" + + "rn\022\014\n\004kind\030\001 \001(\t\022\014\n\004path\030\002 \001(\tBj\n\016com.go" + + "ogle.apiB\tHttpProtoP\001ZAgoogle.golang.org" + + "/genproto/googleapis/api/annotations;ann" + + "otations\370\001\001\242\002\004GAPIb\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_google_api_Http_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_api_Http_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_Http_descriptor, - new String[] { "Rules", "FullyDecodeReservedExpansion", }); - internal_static_google_api_HttpRule_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_api_HttpRule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_HttpRule_descriptor, - new String[] { "Selector", "Get", "Put", "Post", "Delete", "Patch", "Custom", "Body", "ResponseBody", "AdditionalBindings", "Pattern", }); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_api_Http_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_api_Http_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_Http_descriptor, + new java.lang.String[] { + "Rules", "FullyDecodeReservedExpansion", + }); + internal_static_google_api_HttpRule_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_google_api_HttpRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_HttpRule_descriptor, + new java.lang.String[] { + "Selector", + "Get", + "Put", + "Post", + "Delete", + "Patch", + "Custom", + "Body", + "ResponseBody", + "AdditionalBindings", + "Pattern", + }); internal_static_google_api_CustomHttpPattern_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_api_CustomHttpPattern_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_CustomHttpPattern_descriptor, - new String[] { "Kind", "Path", }); + getDescriptor().getMessageTypes().get(2); + internal_static_google_api_CustomHttpPattern_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_CustomHttpPattern_descriptor, + new java.lang.String[] { + "Kind", "Path", + }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-common-protos/src/main/java/com/google/api/HttpRule.java b/proto-google-common-protos/src/main/java/com/google/api/HttpRule.java index a5a2f4df..7e9648b4 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/HttpRule.java +++ b/proto-google-common-protos/src/main/java/com/google/api/HttpRule.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/http.proto package com.google.api; /** + * + * *
  * # gRPC Transcoding
  * gRPC Transcoding is a feature for mapping between a gRPC method and one or
@@ -231,15 +248,16 @@
  *
  * Protobuf type {@code google.api.HttpRule}
  */
-public  final class HttpRule extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class HttpRule extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.HttpRule)
     HttpRuleOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use HttpRule.newBuilder() to construct.
   private HttpRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private HttpRule() {
     selector_ = "";
     body_ = "";
@@ -247,18 +265,24 @@ private HttpRule() {
     additionalBindings_ = java.util.Collections.emptyList();
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new HttpRule();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private HttpRule(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -271,117 +295,128 @@ private HttpRule(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            selector_ = s;
-            break;
-          }
-          case 18: {
-            String s = input.readStringRequireUtf8();
-            patternCase_ = 2;
-            pattern_ = s;
-            break;
-          }
-          case 26: {
-            String s = input.readStringRequireUtf8();
-            patternCase_ = 3;
-            pattern_ = s;
-            break;
-          }
-          case 34: {
-            String s = input.readStringRequireUtf8();
-            patternCase_ = 4;
-            pattern_ = s;
-            break;
-          }
-          case 42: {
-            String s = input.readStringRequireUtf8();
-            patternCase_ = 5;
-            pattern_ = s;
-            break;
-          }
-          case 50: {
-            String s = input.readStringRequireUtf8();
-            patternCase_ = 6;
-            pattern_ = s;
-            break;
-          }
-          case 58: {
-            String s = input.readStringRequireUtf8();
+              selector_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              patternCase_ = 2;
+              pattern_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              patternCase_ = 3;
+              pattern_ = s;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              patternCase_ = 4;
+              pattern_ = s;
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              patternCase_ = 5;
+              pattern_ = s;
+              break;
+            }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              patternCase_ = 6;
+              pattern_ = s;
+              break;
+            }
+          case 58:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            body_ = s;
-            break;
-          }
-          case 66: {
-            com.google.api.CustomHttpPattern.Builder subBuilder = null;
-            if (patternCase_ == 8) {
-              subBuilder = ((com.google.api.CustomHttpPattern) pattern_).toBuilder();
+              body_ = s;
+              break;
             }
-            pattern_ =
-                input.readMessage(com.google.api.CustomHttpPattern.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.api.CustomHttpPattern) pattern_);
-              pattern_ = subBuilder.buildPartial();
+          case 66:
+            {
+              com.google.api.CustomHttpPattern.Builder subBuilder = null;
+              if (patternCase_ == 8) {
+                subBuilder = ((com.google.api.CustomHttpPattern) pattern_).toBuilder();
+              }
+              pattern_ =
+                  input.readMessage(com.google.api.CustomHttpPattern.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.api.CustomHttpPattern) pattern_);
+                pattern_ = subBuilder.buildPartial();
+              }
+              patternCase_ = 8;
+              break;
             }
-            patternCase_ = 8;
-            break;
-          }
-          case 90: {
-            if (!((mutable_bitField0_ & 0x00000200) != 0)) {
-              additionalBindings_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000200;
+          case 90:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                additionalBindings_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              additionalBindings_.add(
+                  input.readMessage(com.google.api.HttpRule.parser(), extensionRegistry));
+              break;
             }
-            additionalBindings_.add(
-                input.readMessage(HttpRule.parser(), extensionRegistry));
-            break;
-          }
-          case 98: {
-            String s = input.readStringRequireUtf8();
+          case 98:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            responseBody_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              responseBody_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
-      if (((mutable_bitField0_ & 0x00000200) != 0)) {
+      if (((mutable_bitField0_ & 0x00000001) != 0)) {
         additionalBindings_ = java.util.Collections.unmodifiableList(additionalBindings_);
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.HttpProto.internal_static_google_api_HttpRule_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return com.google.api.HttpProto.internal_static_google_api_HttpRule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            HttpRule.class, Builder.class);
+            com.google.api.HttpRule.class, com.google.api.HttpRule.Builder.class);
   }
 
-  private int bitField0_;
   private int patternCase_ = 0;
-  private Object pattern_;
+  private java.lang.Object pattern_;
+
   public enum PatternCase
-      implements com.google.protobuf.Internal.EnumLite {
+      implements
+          com.google.protobuf.Internal.EnumLite,
+          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     GET(2),
     PUT(3),
     POST(4),
@@ -390,77 +425,92 @@ public enum PatternCase
     CUSTOM(8),
     PATTERN_NOT_SET(0);
     private final int value;
+
     private PatternCase(int value) {
       this.value = value;
     }
     /**
+     * @param value The number of the enum to look for.
+     * @return The enum associated with the given number.
      * @deprecated Use {@link #forNumber(int)} instead.
      */
-    @Deprecated
+    @java.lang.Deprecated
     public static PatternCase valueOf(int value) {
       return forNumber(value);
     }
 
     public static PatternCase forNumber(int value) {
       switch (value) {
-        case 2: return GET;
-        case 3: return PUT;
-        case 4: return POST;
-        case 5: return DELETE;
-        case 6: return PATCH;
-        case 8: return CUSTOM;
-        case 0: return PATTERN_NOT_SET;
-        default: return null;
+        case 2:
+          return GET;
+        case 3:
+          return PUT;
+        case 4:
+          return POST;
+        case 5:
+          return DELETE;
+        case 6:
+          return PATCH;
+        case 8:
+          return CUSTOM;
+        case 0:
+          return PATTERN_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public PatternCase
-  getPatternCase() {
-    return PatternCase.forNumber(
-        patternCase_);
+  public PatternCase getPatternCase() {
+    return PatternCase.forNumber(patternCase_);
   }
 
   public static final int SELECTOR_FIELD_NUMBER = 1;
-  private volatile Object selector_;
+  private volatile java.lang.Object selector_;
   /**
+   *
+   *
    * 
    * Selects a method to which this rule applies.
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
    * 
* * string selector = 1; + * + * @return The selector. */ - public String getSelector() { - Object ref = selector_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getSelector() { + java.lang.Object ref = selector_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); selector_ = s; return s; } } /** + * + * *
    * Selects a method to which this rule applies.
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
    * 
* * string selector = 1; + * + * @return The bytes for selector. */ - public com.google.protobuf.ByteString - getSelectorBytes() { - Object ref = selector_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getSelectorBytes() { + java.lang.Object ref = selector_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); selector_ = b; return b; } else { @@ -470,24 +520,27 @@ public String getSelector() { public static final int GET_FIELD_NUMBER = 2; /** + * + * *
    * Maps to HTTP GET. Used for listing and getting information about
    * resources.
    * 
* * string get = 2; + * + * @return The get. */ - public String getGet() { - Object ref = ""; + public java.lang.String getGet() { + java.lang.Object ref = ""; if (patternCase_ == 2) { ref = pattern_; } - if (ref instanceof String) { - return (String) ref; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); if (patternCase_ == 2) { pattern_ = s; } @@ -495,23 +548,25 @@ public String getGet() { } } /** + * + * *
    * Maps to HTTP GET. Used for listing and getting information about
    * resources.
    * 
* * string get = 2; + * + * @return The bytes for get. */ - public com.google.protobuf.ByteString - getGetBytes() { - Object ref = ""; + public com.google.protobuf.ByteString getGetBytes() { + java.lang.Object ref = ""; if (patternCase_ == 2) { ref = pattern_; } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (patternCase_ == 2) { pattern_ = b; } @@ -523,23 +578,26 @@ public String getGet() { public static final int PUT_FIELD_NUMBER = 3; /** + * + * *
    * Maps to HTTP PUT. Used for replacing a resource.
    * 
* * string put = 3; + * + * @return The put. */ - public String getPut() { - Object ref = ""; + public java.lang.String getPut() { + java.lang.Object ref = ""; if (patternCase_ == 3) { ref = pattern_; } - if (ref instanceof String) { - return (String) ref; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); if (patternCase_ == 3) { pattern_ = s; } @@ -547,22 +605,24 @@ public String getPut() { } } /** + * + * *
    * Maps to HTTP PUT. Used for replacing a resource.
    * 
* * string put = 3; + * + * @return The bytes for put. */ - public com.google.protobuf.ByteString - getPutBytes() { - Object ref = ""; + public com.google.protobuf.ByteString getPutBytes() { + java.lang.Object ref = ""; if (patternCase_ == 3) { ref = pattern_; } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (patternCase_ == 3) { pattern_ = b; } @@ -574,23 +634,26 @@ public String getPut() { public static final int POST_FIELD_NUMBER = 4; /** + * + * *
    * Maps to HTTP POST. Used for creating a resource or performing an action.
    * 
* * string post = 4; + * + * @return The post. */ - public String getPost() { - Object ref = ""; + public java.lang.String getPost() { + java.lang.Object ref = ""; if (patternCase_ == 4) { ref = pattern_; } - if (ref instanceof String) { - return (String) ref; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); if (patternCase_ == 4) { pattern_ = s; } @@ -598,22 +661,24 @@ public String getPost() { } } /** + * + * *
    * Maps to HTTP POST. Used for creating a resource or performing an action.
    * 
* * string post = 4; + * + * @return The bytes for post. */ - public com.google.protobuf.ByteString - getPostBytes() { - Object ref = ""; + public com.google.protobuf.ByteString getPostBytes() { + java.lang.Object ref = ""; if (patternCase_ == 4) { ref = pattern_; } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (patternCase_ == 4) { pattern_ = b; } @@ -625,23 +690,26 @@ public String getPost() { public static final int DELETE_FIELD_NUMBER = 5; /** + * + * *
    * Maps to HTTP DELETE. Used for deleting a resource.
    * 
* * string delete = 5; + * + * @return The delete. */ - public String getDelete() { - Object ref = ""; + public java.lang.String getDelete() { + java.lang.Object ref = ""; if (patternCase_ == 5) { ref = pattern_; } - if (ref instanceof String) { - return (String) ref; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); if (patternCase_ == 5) { pattern_ = s; } @@ -649,22 +717,24 @@ public String getDelete() { } } /** + * + * *
    * Maps to HTTP DELETE. Used for deleting a resource.
    * 
* * string delete = 5; + * + * @return The bytes for delete. */ - public com.google.protobuf.ByteString - getDeleteBytes() { - Object ref = ""; + public com.google.protobuf.ByteString getDeleteBytes() { + java.lang.Object ref = ""; if (patternCase_ == 5) { ref = pattern_; } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (patternCase_ == 5) { pattern_ = b; } @@ -676,23 +746,26 @@ public String getDelete() { public static final int PATCH_FIELD_NUMBER = 6; /** + * + * *
    * Maps to HTTP PATCH. Used for updating a resource.
    * 
* * string patch = 6; + * + * @return The patch. */ - public String getPatch() { - Object ref = ""; + public java.lang.String getPatch() { + java.lang.Object ref = ""; if (patternCase_ == 6) { ref = pattern_; } - if (ref instanceof String) { - return (String) ref; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); if (patternCase_ == 6) { pattern_ = s; } @@ -700,22 +773,24 @@ public String getPatch() { } } /** + * + * *
    * Maps to HTTP PATCH. Used for updating a resource.
    * 
* * string patch = 6; + * + * @return The bytes for patch. */ - public com.google.protobuf.ByteString - getPatchBytes() { - Object ref = ""; + public com.google.protobuf.ByteString getPatchBytes() { + java.lang.Object ref = ""; if (patternCase_ == 6) { ref = pattern_; } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (patternCase_ == 6) { pattern_ = b; } @@ -727,6 +802,8 @@ public String getPatch() { public static final int CUSTOM_FIELD_NUMBER = 8; /** + * + * *
    * The custom pattern is used for specifying an HTTP method that is not
    * included in the `pattern` field, such as HEAD, or "*" to leave the
@@ -735,11 +812,15 @@ public String getPatch() {
    * 
* * .google.api.CustomHttpPattern custom = 8; + * + * @return Whether the custom field is set. */ public boolean hasCustom() { return patternCase_ == 8; } /** + * + * *
    * The custom pattern is used for specifying an HTTP method that is not
    * included in the `pattern` field, such as HEAD, or "*" to leave the
@@ -748,14 +829,18 @@ public boolean hasCustom() {
    * 
* * .google.api.CustomHttpPattern custom = 8; + * + * @return The custom. */ public com.google.api.CustomHttpPattern getCustom() { if (patternCase_ == 8) { - return (com.google.api.CustomHttpPattern) pattern_; + return (com.google.api.CustomHttpPattern) pattern_; } return com.google.api.CustomHttpPattern.getDefaultInstance(); } /** + * + * *
    * The custom pattern is used for specifying an HTTP method that is not
    * included in the `pattern` field, such as HEAD, or "*" to leave the
@@ -767,14 +852,16 @@ public com.google.api.CustomHttpPattern getCustom() {
    */
   public com.google.api.CustomHttpPatternOrBuilder getCustomOrBuilder() {
     if (patternCase_ == 8) {
-       return (com.google.api.CustomHttpPattern) pattern_;
+      return (com.google.api.CustomHttpPattern) pattern_;
     }
     return com.google.api.CustomHttpPattern.getDefaultInstance();
   }
 
   public static final int BODY_FIELD_NUMBER = 7;
-  private volatile Object body_;
+  private volatile java.lang.Object body_;
   /**
+   *
+   *
    * 
    * The name of the request field whose value is mapped to the HTTP request
    * body, or `*` for mapping all request fields not captured by the path
@@ -784,20 +871,23 @@ public com.google.api.CustomHttpPatternOrBuilder getCustomOrBuilder() {
    * 
* * string body = 7; + * + * @return The body. */ - public String getBody() { - Object ref = body_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getBody() { + java.lang.Object ref = body_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); body_ = s; return s; } } /** + * + * *
    * The name of the request field whose value is mapped to the HTTP request
    * body, or `*` for mapping all request fields not captured by the path
@@ -807,14 +897,14 @@ public String getBody() {
    * 
* * string body = 7; + * + * @return The bytes for body. */ - public com.google.protobuf.ByteString - getBodyBytes() { - Object ref = body_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getBodyBytes() { + java.lang.Object ref = body_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); body_ = b; return b; } else { @@ -823,8 +913,10 @@ public String getBody() { } public static final int RESPONSE_BODY_FIELD_NUMBER = 12; - private volatile Object responseBody_; + private volatile java.lang.Object responseBody_; /** + * + * *
    * Optional. The name of the response field whose value is mapped to the HTTP
    * response body. When omitted, the entire response message will be used
@@ -834,20 +926,23 @@ public String getBody() {
    * 
* * string response_body = 12; + * + * @return The responseBody. */ - public String getResponseBody() { - Object ref = responseBody_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getResponseBody() { + java.lang.Object ref = responseBody_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); responseBody_ = s; return s; } } /** + * + * *
    * Optional. The name of the response field whose value is mapped to the HTTP
    * response body. When omitted, the entire response message will be used
@@ -857,14 +952,14 @@ public String getResponseBody() {
    * 
* * string response_body = 12; + * + * @return The bytes for responseBody. */ - public com.google.protobuf.ByteString - getResponseBodyBytes() { - Object ref = responseBody_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getResponseBodyBytes() { + java.lang.Object ref = responseBody_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); responseBody_ = b; return b; } else { @@ -873,8 +968,10 @@ public String getResponseBody() { } public static final int ADDITIONAL_BINDINGS_FIELD_NUMBER = 11; - private java.util.List additionalBindings_; + private java.util.List additionalBindings_; /** + * + * *
    * Additional HTTP bindings for the selector. Nested bindings must
    * not contain an `additional_bindings` field themselves (that is,
@@ -883,10 +980,12 @@ public String getResponseBody() {
    *
    * repeated .google.api.HttpRule additional_bindings = 11;
    */
-  public java.util.List getAdditionalBindingsList() {
+  public java.util.List getAdditionalBindingsList() {
     return additionalBindings_;
   }
   /**
+   *
+   *
    * 
    * Additional HTTP bindings for the selector. Nested bindings must
    * not contain an `additional_bindings` field themselves (that is,
@@ -895,11 +994,13 @@ public java.util.List getAdditionalBindingsList() {
    *
    * repeated .google.api.HttpRule additional_bindings = 11;
    */
-  public java.util.List 
+  public java.util.List
       getAdditionalBindingsOrBuilderList() {
     return additionalBindings_;
   }
   /**
+   *
+   *
    * 
    * Additional HTTP bindings for the selector. Nested bindings must
    * not contain an `additional_bindings` field themselves (that is,
@@ -912,6 +1013,8 @@ public int getAdditionalBindingsCount() {
     return additionalBindings_.size();
   }
   /**
+   *
+   *
    * 
    * Additional HTTP bindings for the selector. Nested bindings must
    * not contain an `additional_bindings` field themselves (that is,
@@ -920,10 +1023,12 @@ public int getAdditionalBindingsCount() {
    *
    * repeated .google.api.HttpRule additional_bindings = 11;
    */
-  public HttpRule getAdditionalBindings(int index) {
+  public com.google.api.HttpRule getAdditionalBindings(int index) {
     return additionalBindings_.get(index);
   }
   /**
+   *
+   *
    * 
    * Additional HTTP bindings for the selector. Nested bindings must
    * not contain an `additional_bindings` field themselves (that is,
@@ -932,13 +1037,13 @@ public HttpRule getAdditionalBindings(int index) {
    *
    * repeated .google.api.HttpRule additional_bindings = 11;
    */
-  public com.google.api.HttpRuleOrBuilder getAdditionalBindingsOrBuilder(
-      int index) {
+  public com.google.api.HttpRuleOrBuilder getAdditionalBindingsOrBuilder(int index) {
     return additionalBindings_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-  @Override
+
+  @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
     if (isInitialized == 1) return true;
@@ -948,9 +1053,8 @@ public final boolean isInitialized() {
     return true;
   }
 
-  @Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  @java.lang.Override
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!getSelectorBytes().isEmpty()) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selector_);
     }
@@ -984,7 +1088,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     unknownFields.writeTo(output);
   }
 
-  @Override
+  @java.lang.Override
   public int getSerializedSize() {
     int size = memoizedSize;
     if (size != -1) return size;
@@ -1012,12 +1116,13 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, body_);
     }
     if (patternCase_ == 8) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, (com.google.api.CustomHttpPattern) pattern_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              8, (com.google.api.CustomHttpPattern) pattern_);
     }
     for (int i = 0; i < additionalBindings_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(11, additionalBindings_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(11, additionalBindings_.get(i));
     }
     if (!getResponseBodyBytes().isEmpty()) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, responseBody_);
@@ -1027,49 +1132,39 @@ public int getSerializedSize() {
     return size;
   }
 
-  @Override
-  public boolean equals(final Object obj) {
+  @java.lang.Override
+  public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
-    if (!(obj instanceof HttpRule)) {
+    if (!(obj instanceof com.google.api.HttpRule)) {
       return super.equals(obj);
     }
-    HttpRule other = (HttpRule) obj;
+    com.google.api.HttpRule other = (com.google.api.HttpRule) obj;
 
-    if (!getSelector()
-        .equals(other.getSelector())) return false;
-    if (!getBody()
-        .equals(other.getBody())) return false;
-    if (!getResponseBody()
-        .equals(other.getResponseBody())) return false;
-    if (!getAdditionalBindingsList()
-        .equals(other.getAdditionalBindingsList())) return false;
+    if (!getSelector().equals(other.getSelector())) return false;
+    if (!getBody().equals(other.getBody())) return false;
+    if (!getResponseBody().equals(other.getResponseBody())) return false;
+    if (!getAdditionalBindingsList().equals(other.getAdditionalBindingsList())) return false;
     if (!getPatternCase().equals(other.getPatternCase())) return false;
     switch (patternCase_) {
       case 2:
-        if (!getGet()
-            .equals(other.getGet())) return false;
+        if (!getGet().equals(other.getGet())) return false;
         break;
       case 3:
-        if (!getPut()
-            .equals(other.getPut())) return false;
+        if (!getPut().equals(other.getPut())) return false;
         break;
       case 4:
-        if (!getPost()
-            .equals(other.getPost())) return false;
+        if (!getPost().equals(other.getPost())) return false;
         break;
       case 5:
-        if (!getDelete()
-            .equals(other.getDelete())) return false;
+        if (!getDelete().equals(other.getDelete())) return false;
         break;
       case 6:
-        if (!getPatch()
-            .equals(other.getPatch())) return false;
+        if (!getPatch().equals(other.getPatch())) return false;
         break;
       case 8:
-        if (!getCustom()
-            .equals(other.getCustom())) return false;
+        if (!getCustom().equals(other.getCustom())) return false;
         break;
       case 0:
       default:
@@ -1078,7 +1173,7 @@ public boolean equals(final Object obj) {
     return true;
   }
 
-  @Override
+  @java.lang.Override
   public int hashCode() {
     if (memoizedHashCode != 0) {
       return memoizedHashCode;
@@ -1128,97 +1223,103 @@ public int hashCode() {
     return hash;
   }
 
-  public static HttpRule parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.api.HttpRule parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static HttpRule parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.HttpRule parseFrom(
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static HttpRule parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.api.HttpRule parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static HttpRule parseFrom(
+
+  public static com.google.api.HttpRule parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static HttpRule parseFrom(byte[] data)
+
+  public static com.google.api.HttpRule parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static HttpRule parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.HttpRule parseFrom(
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static HttpRule parseFrom(java.io.InputStream input)
+
+  public static com.google.api.HttpRule 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 HttpRule parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.HttpRule parseFrom(
+      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 HttpRule parseDelimitedFrom(java.io.InputStream input)
+
+  public static com.google.api.HttpRule 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 HttpRule parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.HttpRule parseDelimitedFrom(
+      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 HttpRule parseFrom(
-      com.google.protobuf.CodedInputStream input)
+
+  public static com.google.api.HttpRule 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 HttpRule parseFrom(
+
+  public static com.google.api.HttpRule 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();
   }
 
-  @Override
-  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(HttpRule prototype) {
+
+  public static Builder newBuilder(com.google.api.HttpRule prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-  @Override
+
+  @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);
   }
 
-  @Override
-  protected Builder newBuilderForType(
-      BuilderParent parent) {
+  @java.lang.Override
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * # gRPC Transcoding
    * gRPC Transcoding is a feature for mapping between a gRPC method and one or
@@ -1446,21 +1547,20 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.HttpRule}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.HttpRule)
       com.google.api.HttpRuleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.api.HttpProto.internal_static_google_api_HttpRule_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return com.google.api.HttpProto.internal_static_google_api_HttpRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              HttpRule.class, Builder.class);
+              com.google.api.HttpRule.class, com.google.api.HttpRule.Builder.class);
     }
 
     // Construct using com.google.api.HttpRule.newBuilder()
@@ -1468,18 +1568,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getAdditionalBindingsFieldBuilder();
       }
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       selector_ = "";
@@ -1490,7 +1590,7 @@ public Builder clear() {
 
       if (additionalBindingsBuilder_ == null) {
         additionalBindings_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000200);
+        bitField0_ = (bitField0_ & ~0x00000001);
       } else {
         additionalBindingsBuilder_.clear();
       }
@@ -1499,31 +1599,29 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.api.HttpProto.internal_static_google_api_HttpRule_descriptor;
     }
 
-    @Override
-    public HttpRule getDefaultInstanceForType() {
-      return HttpRule.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.HttpRule getDefaultInstanceForType() {
+      return com.google.api.HttpRule.getDefaultInstance();
     }
 
-    @Override
-    public HttpRule build() {
-      HttpRule result = buildPartial();
+    @java.lang.Override
+    public com.google.api.HttpRule build() {
+      com.google.api.HttpRule result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public HttpRule buildPartial() {
-      HttpRule result = new HttpRule(this);
+    @java.lang.Override
+    public com.google.api.HttpRule buildPartial() {
+      com.google.api.HttpRule result = new com.google.api.HttpRule(this);
       int from_bitField0_ = bitField0_;
-      int to_bitField0_ = 0;
       result.selector_ = selector_;
       if (patternCase_ == 2) {
         result.pattern_ = pattern_;
@@ -1550,64 +1648,64 @@ public HttpRule buildPartial() {
       result.body_ = body_;
       result.responseBody_ = responseBody_;
       if (additionalBindingsBuilder_ == null) {
-        if (((bitField0_ & 0x00000200) != 0)) {
+        if (((bitField0_ & 0x00000001) != 0)) {
           additionalBindings_ = java.util.Collections.unmodifiableList(additionalBindings_);
-          bitField0_ = (bitField0_ & ~0x00000200);
+          bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.additionalBindings_ = additionalBindings_;
       } else {
         result.additionalBindings_ = additionalBindingsBuilder_.build();
       }
-      result.bitField0_ = to_bitField0_;
       result.patternCase_ = patternCase_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof HttpRule) {
-        return mergeFrom((HttpRule)other);
+      if (other instanceof com.google.api.HttpRule) {
+        return mergeFrom((com.google.api.HttpRule) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(HttpRule other) {
-      if (other == HttpRule.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.HttpRule other) {
+      if (other == com.google.api.HttpRule.getDefaultInstance()) return this;
       if (!other.getSelector().isEmpty()) {
         selector_ = other.selector_;
         onChanged();
@@ -1624,7 +1722,7 @@ public Builder mergeFrom(HttpRule other) {
         if (!other.additionalBindings_.isEmpty()) {
           if (additionalBindings_.isEmpty()) {
             additionalBindings_ = other.additionalBindings_;
-            bitField0_ = (bitField0_ & ~0x00000200);
+            bitField0_ = (bitField0_ & ~0x00000001);
           } else {
             ensureAdditionalBindingsIsMutable();
             additionalBindings_.addAll(other.additionalBindings_);
@@ -1637,74 +1735,82 @@ public Builder mergeFrom(HttpRule other) {
             additionalBindingsBuilder_.dispose();
             additionalBindingsBuilder_ = null;
             additionalBindings_ = other.additionalBindings_;
-            bitField0_ = (bitField0_ & ~0x00000200);
-            additionalBindingsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getAdditionalBindingsFieldBuilder() : null;
+            bitField0_ = (bitField0_ & ~0x00000001);
+            additionalBindingsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getAdditionalBindingsFieldBuilder()
+                    : null;
           } else {
             additionalBindingsBuilder_.addAllMessages(other.additionalBindings_);
           }
         }
       }
       switch (other.getPatternCase()) {
-        case GET: {
-          patternCase_ = 2;
-          pattern_ = other.pattern_;
-          onChanged();
-          break;
-        }
-        case PUT: {
-          patternCase_ = 3;
-          pattern_ = other.pattern_;
-          onChanged();
-          break;
-        }
-        case POST: {
-          patternCase_ = 4;
-          pattern_ = other.pattern_;
-          onChanged();
-          break;
-        }
-        case DELETE: {
-          patternCase_ = 5;
-          pattern_ = other.pattern_;
-          onChanged();
-          break;
-        }
-        case PATCH: {
-          patternCase_ = 6;
-          pattern_ = other.pattern_;
-          onChanged();
-          break;
-        }
-        case CUSTOM: {
-          mergeCustom(other.getCustom());
-          break;
-        }
-        case PATTERN_NOT_SET: {
-          break;
-        }
+        case GET:
+          {
+            patternCase_ = 2;
+            pattern_ = other.pattern_;
+            onChanged();
+            break;
+          }
+        case PUT:
+          {
+            patternCase_ = 3;
+            pattern_ = other.pattern_;
+            onChanged();
+            break;
+          }
+        case POST:
+          {
+            patternCase_ = 4;
+            pattern_ = other.pattern_;
+            onChanged();
+            break;
+          }
+        case DELETE:
+          {
+            patternCase_ = 5;
+            pattern_ = other.pattern_;
+            onChanged();
+            break;
+          }
+        case PATCH:
+          {
+            patternCase_ = 6;
+            pattern_ = other.pattern_;
+            onChanged();
+            break;
+          }
+        case CUSTOM:
+          {
+            mergeCustom(other.getCustom());
+            break;
+          }
+        case PATTERN_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      HttpRule parsedMessage = null;
+      com.google.api.HttpRule parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (HttpRule) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.HttpRule) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1713,12 +1819,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int patternCase_ = 0;
-    private Object pattern_;
-    public PatternCase
-        getPatternCase() {
-      return PatternCase.forNumber(
-          patternCase_);
+    private java.lang.Object pattern_;
+
+    public PatternCase getPatternCase() {
+      return PatternCase.forNumber(patternCase_);
     }
 
     public Builder clearPattern() {
@@ -1730,42 +1836,47 @@ public Builder clearPattern() {
 
     private int bitField0_;
 
-    private Object selector_ = "";
+    private java.lang.Object selector_ = "";
     /**
+     *
+     *
      * 
      * Selects a method to which this rule applies.
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
      * 
* * string selector = 1; + * + * @return The selector. */ - public String getSelector() { - Object ref = selector_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getSelector() { + java.lang.Object ref = selector_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); selector_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Selects a method to which this rule applies.
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
      * 
* * string selector = 1; + * + * @return The bytes for selector. */ - public com.google.protobuf.ByteString - getSelectorBytes() { - Object ref = selector_; + public com.google.protobuf.ByteString getSelectorBytes() { + java.lang.Object ref = selector_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); selector_ = b; return b; } else { @@ -1773,100 +1884,117 @@ public String getSelector() { } } /** + * + * *
      * Selects a method to which this rule applies.
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
      * 
* * string selector = 1; + * + * @param value The selector to set. + * @return This builder for chaining. */ - public Builder setSelector( - String value) { + public Builder setSelector(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + selector_ = value; onChanged(); return this; } /** + * + * *
      * Selects a method to which this rule applies.
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
      * 
* * string selector = 1; + * + * @return This builder for chaining. */ public Builder clearSelector() { - + selector_ = getDefaultInstance().getSelector(); onChanged(); return this; } /** + * + * *
      * Selects a method to which this rule applies.
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
      * 
* * string selector = 1; + * + * @param value The bytes for selector to set. + * @return This builder for chaining. */ - public Builder setSelectorBytes( - com.google.protobuf.ByteString value) { + public Builder setSelectorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + selector_ = value; onChanged(); return this; } /** + * + * *
      * Maps to HTTP GET. Used for listing and getting information about
      * resources.
      * 
* * string get = 2; + * + * @return The get. */ - public String getGet() { - Object ref = ""; + public java.lang.String getGet() { + java.lang.Object ref = ""; if (patternCase_ == 2) { ref = pattern_; } - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); if (patternCase_ == 2) { pattern_ = s; } return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Maps to HTTP GET. Used for listing and getting information about
      * resources.
      * 
* * string get = 2; + * + * @return The bytes for get. */ - public com.google.protobuf.ByteString - getGetBytes() { - Object ref = ""; + public com.google.protobuf.ByteString getGetBytes() { + java.lang.Object ref = ""; if (patternCase_ == 2) { ref = pattern_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (patternCase_ == 2) { pattern_ = b; } @@ -1876,30 +2004,38 @@ public String getGet() { } } /** + * + * *
      * Maps to HTTP GET. Used for listing and getting information about
      * resources.
      * 
* * string get = 2; + * + * @param value The get to set. + * @return This builder for chaining. */ - public Builder setGet( - String value) { + public Builder setGet(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - patternCase_ = 2; + throw new NullPointerException(); + } + patternCase_ = 2; pattern_ = value; onChanged(); return this; } /** + * + * *
      * Maps to HTTP GET. Used for listing and getting information about
      * resources.
      * 
* * string get = 2; + * + * @return This builder for chaining. */ public Builder clearGet() { if (patternCase_ == 2) { @@ -1910,19 +2046,23 @@ public Builder clearGet() { return this; } /** + * + * *
      * Maps to HTTP GET. Used for listing and getting information about
      * resources.
      * 
* * string get = 2; + * + * @param value The bytes for get to set. + * @return This builder for chaining. */ - public Builder setGetBytes( - com.google.protobuf.ByteString value) { + public Builder setGetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); patternCase_ = 2; pattern_ = value; onChanged(); @@ -1930,46 +2070,51 @@ public Builder setGetBytes( } /** + * + * *
      * Maps to HTTP PUT. Used for replacing a resource.
      * 
* * string put = 3; + * + * @return The put. */ - public String getPut() { - Object ref = ""; + public java.lang.String getPut() { + java.lang.Object ref = ""; if (patternCase_ == 3) { ref = pattern_; } - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); if (patternCase_ == 3) { pattern_ = s; } return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Maps to HTTP PUT. Used for replacing a resource.
      * 
* * string put = 3; + * + * @return The bytes for put. */ - public com.google.protobuf.ByteString - getPutBytes() { - Object ref = ""; + public com.google.protobuf.ByteString getPutBytes() { + java.lang.Object ref = ""; if (patternCase_ == 3) { ref = pattern_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (patternCase_ == 3) { pattern_ = b; } @@ -1979,28 +2124,36 @@ public String getPut() { } } /** + * + * *
      * Maps to HTTP PUT. Used for replacing a resource.
      * 
* * string put = 3; + * + * @param value The put to set. + * @return This builder for chaining. */ - public Builder setPut( - String value) { + public Builder setPut(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - patternCase_ = 3; + throw new NullPointerException(); + } + patternCase_ = 3; pattern_ = value; onChanged(); return this; } /** + * + * *
      * Maps to HTTP PUT. Used for replacing a resource.
      * 
* * string put = 3; + * + * @return This builder for chaining. */ public Builder clearPut() { if (patternCase_ == 3) { @@ -2011,18 +2164,22 @@ public Builder clearPut() { return this; } /** + * + * *
      * Maps to HTTP PUT. Used for replacing a resource.
      * 
* * string put = 3; + * + * @param value The bytes for put to set. + * @return This builder for chaining. */ - public Builder setPutBytes( - com.google.protobuf.ByteString value) { + public Builder setPutBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); patternCase_ = 3; pattern_ = value; onChanged(); @@ -2030,46 +2187,51 @@ public Builder setPutBytes( } /** + * + * *
      * Maps to HTTP POST. Used for creating a resource or performing an action.
      * 
* * string post = 4; + * + * @return The post. */ - public String getPost() { - Object ref = ""; + public java.lang.String getPost() { + java.lang.Object ref = ""; if (patternCase_ == 4) { ref = pattern_; } - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); if (patternCase_ == 4) { pattern_ = s; } return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Maps to HTTP POST. Used for creating a resource or performing an action.
      * 
* * string post = 4; + * + * @return The bytes for post. */ - public com.google.protobuf.ByteString - getPostBytes() { - Object ref = ""; + public com.google.protobuf.ByteString getPostBytes() { + java.lang.Object ref = ""; if (patternCase_ == 4) { ref = pattern_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (patternCase_ == 4) { pattern_ = b; } @@ -2079,28 +2241,36 @@ public String getPost() { } } /** + * + * *
      * Maps to HTTP POST. Used for creating a resource or performing an action.
      * 
* * string post = 4; + * + * @param value The post to set. + * @return This builder for chaining. */ - public Builder setPost( - String value) { + public Builder setPost(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - patternCase_ = 4; + throw new NullPointerException(); + } + patternCase_ = 4; pattern_ = value; onChanged(); return this; } /** + * + * *
      * Maps to HTTP POST. Used for creating a resource or performing an action.
      * 
* * string post = 4; + * + * @return This builder for chaining. */ public Builder clearPost() { if (patternCase_ == 4) { @@ -2111,18 +2281,22 @@ public Builder clearPost() { return this; } /** + * + * *
      * Maps to HTTP POST. Used for creating a resource or performing an action.
      * 
* * string post = 4; + * + * @param value The bytes for post to set. + * @return This builder for chaining. */ - public Builder setPostBytes( - com.google.protobuf.ByteString value) { + public Builder setPostBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); patternCase_ = 4; pattern_ = value; onChanged(); @@ -2130,46 +2304,51 @@ public Builder setPostBytes( } /** + * + * *
      * Maps to HTTP DELETE. Used for deleting a resource.
      * 
* * string delete = 5; + * + * @return The delete. */ - public String getDelete() { - Object ref = ""; + public java.lang.String getDelete() { + java.lang.Object ref = ""; if (patternCase_ == 5) { ref = pattern_; } - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); if (patternCase_ == 5) { pattern_ = s; } return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Maps to HTTP DELETE. Used for deleting a resource.
      * 
* * string delete = 5; + * + * @return The bytes for delete. */ - public com.google.protobuf.ByteString - getDeleteBytes() { - Object ref = ""; + public com.google.protobuf.ByteString getDeleteBytes() { + java.lang.Object ref = ""; if (patternCase_ == 5) { ref = pattern_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (patternCase_ == 5) { pattern_ = b; } @@ -2179,28 +2358,36 @@ public String getDelete() { } } /** + * + * *
      * Maps to HTTP DELETE. Used for deleting a resource.
      * 
* * string delete = 5; + * + * @param value The delete to set. + * @return This builder for chaining. */ - public Builder setDelete( - String value) { + public Builder setDelete(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - patternCase_ = 5; + throw new NullPointerException(); + } + patternCase_ = 5; pattern_ = value; onChanged(); return this; } /** + * + * *
      * Maps to HTTP DELETE. Used for deleting a resource.
      * 
* * string delete = 5; + * + * @return This builder for chaining. */ public Builder clearDelete() { if (patternCase_ == 5) { @@ -2211,18 +2398,22 @@ public Builder clearDelete() { return this; } /** + * + * *
      * Maps to HTTP DELETE. Used for deleting a resource.
      * 
* * string delete = 5; + * + * @param value The bytes for delete to set. + * @return This builder for chaining. */ - public Builder setDeleteBytes( - com.google.protobuf.ByteString value) { + public Builder setDeleteBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); patternCase_ = 5; pattern_ = value; onChanged(); @@ -2230,46 +2421,51 @@ public Builder setDeleteBytes( } /** + * + * *
      * Maps to HTTP PATCH. Used for updating a resource.
      * 
* * string patch = 6; + * + * @return The patch. */ - public String getPatch() { - Object ref = ""; + public java.lang.String getPatch() { + java.lang.Object ref = ""; if (patternCase_ == 6) { ref = pattern_; } - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); if (patternCase_ == 6) { pattern_ = s; } return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Maps to HTTP PATCH. Used for updating a resource.
      * 
* * string patch = 6; + * + * @return The bytes for patch. */ - public com.google.protobuf.ByteString - getPatchBytes() { - Object ref = ""; + public com.google.protobuf.ByteString getPatchBytes() { + java.lang.Object ref = ""; if (patternCase_ == 6) { ref = pattern_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (patternCase_ == 6) { pattern_ = b; } @@ -2279,28 +2475,36 @@ public String getPatch() { } } /** + * + * *
      * Maps to HTTP PATCH. Used for updating a resource.
      * 
* * string patch = 6; + * + * @param value The patch to set. + * @return This builder for chaining. */ - public Builder setPatch( - String value) { + public Builder setPatch(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - patternCase_ = 6; + throw new NullPointerException(); + } + patternCase_ = 6; pattern_ = value; onChanged(); return this; } /** + * + * *
      * Maps to HTTP PATCH. Used for updating a resource.
      * 
* * string patch = 6; + * + * @return This builder for chaining. */ public Builder clearPatch() { if (patternCase_ == 6) { @@ -2311,18 +2515,22 @@ public Builder clearPatch() { return this; } /** + * + * *
      * Maps to HTTP PATCH. Used for updating a resource.
      * 
* * string patch = 6; + * + * @param value The bytes for patch to set. + * @return This builder for chaining. */ - public Builder setPatchBytes( - com.google.protobuf.ByteString value) { + public Builder setPatchBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); patternCase_ = 6; pattern_ = value; onChanged(); @@ -2330,8 +2538,13 @@ public Builder setPatchBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.CustomHttpPattern, com.google.api.CustomHttpPattern.Builder, com.google.api.CustomHttpPatternOrBuilder> customBuilder_; + com.google.api.CustomHttpPattern, + com.google.api.CustomHttpPattern.Builder, + com.google.api.CustomHttpPatternOrBuilder> + customBuilder_; /** + * + * *
      * The custom pattern is used for specifying an HTTP method that is not
      * included in the `pattern` field, such as HEAD, or "*" to leave the
@@ -2340,11 +2553,15 @@ public Builder setPatchBytes(
      * 
* * .google.api.CustomHttpPattern custom = 8; + * + * @return Whether the custom field is set. */ public boolean hasCustom() { return patternCase_ == 8; } /** + * + * *
      * The custom pattern is used for specifying an HTTP method that is not
      * included in the `pattern` field, such as HEAD, or "*" to leave the
@@ -2353,6 +2570,8 @@ public boolean hasCustom() {
      * 
* * .google.api.CustomHttpPattern custom = 8; + * + * @return The custom. */ public com.google.api.CustomHttpPattern getCustom() { if (customBuilder_ == null) { @@ -2368,6 +2587,8 @@ public com.google.api.CustomHttpPattern getCustom() { } } /** + * + * *
      * The custom pattern is used for specifying an HTTP method that is not
      * included in the `pattern` field, such as HEAD, or "*" to leave the
@@ -2391,6 +2612,8 @@ public Builder setCustom(com.google.api.CustomHttpPattern value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The custom pattern is used for specifying an HTTP method that is not
      * included in the `pattern` field, such as HEAD, or "*" to leave the
@@ -2400,8 +2623,7 @@ public Builder setCustom(com.google.api.CustomHttpPattern value) {
      *
      * .google.api.CustomHttpPattern custom = 8;
      */
-    public Builder setCustom(
-        com.google.api.CustomHttpPattern.Builder builderForValue) {
+    public Builder setCustom(com.google.api.CustomHttpPattern.Builder builderForValue) {
       if (customBuilder_ == null) {
         pattern_ = builderForValue.build();
         onChanged();
@@ -2412,6 +2634,8 @@ public Builder setCustom(
       return this;
     }
     /**
+     *
+     *
      * 
      * The custom pattern is used for specifying an HTTP method that is not
      * included in the `pattern` field, such as HEAD, or "*" to leave the
@@ -2423,10 +2647,13 @@ public Builder setCustom(
      */
     public Builder mergeCustom(com.google.api.CustomHttpPattern value) {
       if (customBuilder_ == null) {
-        if (patternCase_ == 8 &&
-            pattern_ != com.google.api.CustomHttpPattern.getDefaultInstance()) {
-          pattern_ = com.google.api.CustomHttpPattern.newBuilder((com.google.api.CustomHttpPattern) pattern_)
-              .mergeFrom(value).buildPartial();
+        if (patternCase_ == 8
+            && pattern_ != com.google.api.CustomHttpPattern.getDefaultInstance()) {
+          pattern_ =
+              com.google.api.CustomHttpPattern.newBuilder(
+                      (com.google.api.CustomHttpPattern) pattern_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           pattern_ = value;
         }
@@ -2441,6 +2668,8 @@ public Builder mergeCustom(com.google.api.CustomHttpPattern value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The custom pattern is used for specifying an HTTP method that is not
      * included in the `pattern` field, such as HEAD, or "*" to leave the
@@ -2467,6 +2696,8 @@ public Builder clearCustom() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The custom pattern is used for specifying an HTTP method that is not
      * included in the `pattern` field, such as HEAD, or "*" to leave the
@@ -2480,6 +2711,8 @@ public com.google.api.CustomHttpPattern.Builder getCustomBuilder() {
       return getCustomFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The custom pattern is used for specifying an HTTP method that is not
      * included in the `pattern` field, such as HEAD, or "*" to leave the
@@ -2500,6 +2733,8 @@ public com.google.api.CustomHttpPatternOrBuilder getCustomOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * The custom pattern is used for specifying an HTTP method that is not
      * included in the `pattern` field, such as HEAD, or "*" to leave the
@@ -2510,26 +2745,32 @@ public com.google.api.CustomHttpPatternOrBuilder getCustomOrBuilder() {
      * .google.api.CustomHttpPattern custom = 8;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.api.CustomHttpPattern, com.google.api.CustomHttpPattern.Builder, com.google.api.CustomHttpPatternOrBuilder> 
+            com.google.api.CustomHttpPattern,
+            com.google.api.CustomHttpPattern.Builder,
+            com.google.api.CustomHttpPatternOrBuilder>
         getCustomFieldBuilder() {
       if (customBuilder_ == null) {
         if (!(patternCase_ == 8)) {
           pattern_ = com.google.api.CustomHttpPattern.getDefaultInstance();
         }
-        customBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.api.CustomHttpPattern, com.google.api.CustomHttpPattern.Builder, com.google.api.CustomHttpPatternOrBuilder>(
-                (com.google.api.CustomHttpPattern) pattern_,
-                getParentForChildren(),
-                isClean());
+        customBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.api.CustomHttpPattern,
+                com.google.api.CustomHttpPattern.Builder,
+                com.google.api.CustomHttpPatternOrBuilder>(
+                (com.google.api.CustomHttpPattern) pattern_, getParentForChildren(), isClean());
         pattern_ = null;
       }
       patternCase_ = 8;
-      onChanged();;
+      onChanged();
+      ;
       return customBuilder_;
     }
 
-    private Object body_ = "";
+    private java.lang.Object body_ = "";
     /**
+     *
+     *
      * 
      * The name of the request field whose value is mapped to the HTTP request
      * body, or `*` for mapping all request fields not captured by the path
@@ -2539,20 +2780,23 @@ public com.google.api.CustomHttpPatternOrBuilder getCustomOrBuilder() {
      * 
* * string body = 7; + * + * @return The body. */ - public String getBody() { - Object ref = body_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getBody() { + java.lang.Object ref = body_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); body_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The name of the request field whose value is mapped to the HTTP request
      * body, or `*` for mapping all request fields not captured by the path
@@ -2562,14 +2806,14 @@ public String getBody() {
      * 
* * string body = 7; + * + * @return The bytes for body. */ - public com.google.protobuf.ByteString - getBodyBytes() { - Object ref = body_; + public com.google.protobuf.ByteString getBodyBytes() { + java.lang.Object ref = body_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); body_ = b; return b; } else { @@ -2577,6 +2821,8 @@ public String getBody() { } } /** + * + * *
      * The name of the request field whose value is mapped to the HTTP request
      * body, or `*` for mapping all request fields not captured by the path
@@ -2586,18 +2832,22 @@ public String getBody() {
      * 
* * string body = 7; + * + * @param value The body to set. + * @return This builder for chaining. */ - public Builder setBody( - String value) { + public Builder setBody(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + body_ = value; onChanged(); return this; } /** + * + * *
      * The name of the request field whose value is mapped to the HTTP request
      * body, or `*` for mapping all request fields not captured by the path
@@ -2607,14 +2857,18 @@ public Builder setBody(
      * 
* * string body = 7; + * + * @return This builder for chaining. */ public Builder clearBody() { - + body_ = getDefaultInstance().getBody(); onChanged(); return this; } /** + * + * *
      * The name of the request field whose value is mapped to the HTTP request
      * body, or `*` for mapping all request fields not captured by the path
@@ -2624,21 +2878,25 @@ public Builder clearBody() {
      * 
* * string body = 7; + * + * @param value The bytes for body to set. + * @return This builder for chaining. */ - public Builder setBodyBytes( - com.google.protobuf.ByteString value) { + public Builder setBodyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + body_ = value; onChanged(); return this; } - private Object responseBody_ = ""; + private java.lang.Object responseBody_ = ""; /** + * + * *
      * Optional. The name of the response field whose value is mapped to the HTTP
      * response body. When omitted, the entire response message will be used
@@ -2648,20 +2906,23 @@ public Builder setBodyBytes(
      * 
* * string response_body = 12; + * + * @return The responseBody. */ - public String getResponseBody() { - Object ref = responseBody_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getResponseBody() { + java.lang.Object ref = responseBody_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); responseBody_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Optional. The name of the response field whose value is mapped to the HTTP
      * response body. When omitted, the entire response message will be used
@@ -2671,14 +2932,14 @@ public String getResponseBody() {
      * 
* * string response_body = 12; + * + * @return The bytes for responseBody. */ - public com.google.protobuf.ByteString - getResponseBodyBytes() { - Object ref = responseBody_; + public com.google.protobuf.ByteString getResponseBodyBytes() { + java.lang.Object ref = responseBody_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); responseBody_ = b; return b; } else { @@ -2686,6 +2947,8 @@ public String getResponseBody() { } } /** + * + * *
      * Optional. The name of the response field whose value is mapped to the HTTP
      * response body. When omitted, the entire response message will be used
@@ -2695,18 +2958,22 @@ public String getResponseBody() {
      * 
* * string response_body = 12; + * + * @param value The responseBody to set. + * @return This builder for chaining. */ - public Builder setResponseBody( - String value) { + public Builder setResponseBody(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + responseBody_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The name of the response field whose value is mapped to the HTTP
      * response body. When omitted, the entire response message will be used
@@ -2716,14 +2983,18 @@ public Builder setResponseBody(
      * 
* * string response_body = 12; + * + * @return This builder for chaining. */ public Builder clearResponseBody() { - + responseBody_ = getDefaultInstance().getResponseBody(); onChanged(); return this; } /** + * + * *
      * Optional. The name of the response field whose value is mapped to the HTTP
      * response body. When omitted, the entire response message will be used
@@ -2733,32 +3004,40 @@ public Builder clearResponseBody() {
      * 
* * string response_body = 12; + * + * @param value The bytes for responseBody to set. + * @return This builder for chaining. */ - public Builder setResponseBodyBytes( - com.google.protobuf.ByteString value) { + public Builder setResponseBodyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + responseBody_ = value; onChanged(); return this; } - private java.util.List additionalBindings_ = - java.util.Collections.emptyList(); + private java.util.List additionalBindings_ = + java.util.Collections.emptyList(); + private void ensureAdditionalBindingsIsMutable() { - if (!((bitField0_ & 0x00000200) != 0)) { - additionalBindings_ = new java.util.ArrayList(additionalBindings_); - bitField0_ |= 0x00000200; - } + if (!((bitField0_ & 0x00000001) != 0)) { + additionalBindings_ = new java.util.ArrayList(additionalBindings_); + bitField0_ |= 0x00000001; + } } private com.google.protobuf.RepeatedFieldBuilderV3< - HttpRule, Builder, com.google.api.HttpRuleOrBuilder> additionalBindingsBuilder_; + com.google.api.HttpRule, + com.google.api.HttpRule.Builder, + com.google.api.HttpRuleOrBuilder> + additionalBindingsBuilder_; /** + * + * *
      * Additional HTTP bindings for the selector. Nested bindings must
      * not contain an `additional_bindings` field themselves (that is,
@@ -2767,7 +3046,7 @@ private void ensureAdditionalBindingsIsMutable() {
      *
      * repeated .google.api.HttpRule additional_bindings = 11;
      */
-    public java.util.List getAdditionalBindingsList() {
+    public java.util.List getAdditionalBindingsList() {
       if (additionalBindingsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(additionalBindings_);
       } else {
@@ -2775,6 +3054,8 @@ public java.util.List getAdditionalBindingsList() {
       }
     }
     /**
+     *
+     *
      * 
      * Additional HTTP bindings for the selector. Nested bindings must
      * not contain an `additional_bindings` field themselves (that is,
@@ -2791,6 +3072,8 @@ public int getAdditionalBindingsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Additional HTTP bindings for the selector. Nested bindings must
      * not contain an `additional_bindings` field themselves (that is,
@@ -2799,7 +3082,7 @@ public int getAdditionalBindingsCount() {
      *
      * repeated .google.api.HttpRule additional_bindings = 11;
      */
-    public HttpRule getAdditionalBindings(int index) {
+    public com.google.api.HttpRule getAdditionalBindings(int index) {
       if (additionalBindingsBuilder_ == null) {
         return additionalBindings_.get(index);
       } else {
@@ -2807,6 +3090,8 @@ public HttpRule getAdditionalBindings(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Additional HTTP bindings for the selector. Nested bindings must
      * not contain an `additional_bindings` field themselves (that is,
@@ -2815,8 +3100,7 @@ public HttpRule getAdditionalBindings(int index) {
      *
      * repeated .google.api.HttpRule additional_bindings = 11;
      */
-    public Builder setAdditionalBindings(
-        int index, HttpRule value) {
+    public Builder setAdditionalBindings(int index, com.google.api.HttpRule value) {
       if (additionalBindingsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2830,6 +3114,8 @@ public Builder setAdditionalBindings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional HTTP bindings for the selector. Nested bindings must
      * not contain an `additional_bindings` field themselves (that is,
@@ -2839,7 +3125,7 @@ public Builder setAdditionalBindings(
      * repeated .google.api.HttpRule additional_bindings = 11;
      */
     public Builder setAdditionalBindings(
-        int index, Builder builderForValue) {
+        int index, com.google.api.HttpRule.Builder builderForValue) {
       if (additionalBindingsBuilder_ == null) {
         ensureAdditionalBindingsIsMutable();
         additionalBindings_.set(index, builderForValue.build());
@@ -2850,6 +3136,8 @@ public Builder setAdditionalBindings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional HTTP bindings for the selector. Nested bindings must
      * not contain an `additional_bindings` field themselves (that is,
@@ -2858,7 +3146,7 @@ public Builder setAdditionalBindings(
      *
      * repeated .google.api.HttpRule additional_bindings = 11;
      */
-    public Builder addAdditionalBindings(HttpRule value) {
+    public Builder addAdditionalBindings(com.google.api.HttpRule value) {
       if (additionalBindingsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2872,6 +3160,8 @@ public Builder addAdditionalBindings(HttpRule value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional HTTP bindings for the selector. Nested bindings must
      * not contain an `additional_bindings` field themselves (that is,
@@ -2880,8 +3170,7 @@ public Builder addAdditionalBindings(HttpRule value) {
      *
      * repeated .google.api.HttpRule additional_bindings = 11;
      */
-    public Builder addAdditionalBindings(
-        int index, HttpRule value) {
+    public Builder addAdditionalBindings(int index, com.google.api.HttpRule value) {
       if (additionalBindingsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2895,6 +3184,8 @@ public Builder addAdditionalBindings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional HTTP bindings for the selector. Nested bindings must
      * not contain an `additional_bindings` field themselves (that is,
@@ -2903,8 +3194,7 @@ public Builder addAdditionalBindings(
      *
      * repeated .google.api.HttpRule additional_bindings = 11;
      */
-    public Builder addAdditionalBindings(
-        Builder builderForValue) {
+    public Builder addAdditionalBindings(com.google.api.HttpRule.Builder builderForValue) {
       if (additionalBindingsBuilder_ == null) {
         ensureAdditionalBindingsIsMutable();
         additionalBindings_.add(builderForValue.build());
@@ -2915,6 +3205,8 @@ public Builder addAdditionalBindings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional HTTP bindings for the selector. Nested bindings must
      * not contain an `additional_bindings` field themselves (that is,
@@ -2924,7 +3216,7 @@ public Builder addAdditionalBindings(
      * repeated .google.api.HttpRule additional_bindings = 11;
      */
     public Builder addAdditionalBindings(
-        int index, Builder builderForValue) {
+        int index, com.google.api.HttpRule.Builder builderForValue) {
       if (additionalBindingsBuilder_ == null) {
         ensureAdditionalBindingsIsMutable();
         additionalBindings_.add(index, builderForValue.build());
@@ -2935,6 +3227,8 @@ public Builder addAdditionalBindings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional HTTP bindings for the selector. Nested bindings must
      * not contain an `additional_bindings` field themselves (that is,
@@ -2944,11 +3238,10 @@ public Builder addAdditionalBindings(
      * repeated .google.api.HttpRule additional_bindings = 11;
      */
     public Builder addAllAdditionalBindings(
-        Iterable values) {
+        java.lang.Iterable values) {
       if (additionalBindingsBuilder_ == null) {
         ensureAdditionalBindingsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, additionalBindings_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalBindings_);
         onChanged();
       } else {
         additionalBindingsBuilder_.addAllMessages(values);
@@ -2956,6 +3249,8 @@ public Builder addAllAdditionalBindings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional HTTP bindings for the selector. Nested bindings must
      * not contain an `additional_bindings` field themselves (that is,
@@ -2967,7 +3262,7 @@ public Builder addAllAdditionalBindings(
     public Builder clearAdditionalBindings() {
       if (additionalBindingsBuilder_ == null) {
         additionalBindings_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000200);
+        bitField0_ = (bitField0_ & ~0x00000001);
         onChanged();
       } else {
         additionalBindingsBuilder_.clear();
@@ -2975,6 +3270,8 @@ public Builder clearAdditionalBindings() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional HTTP bindings for the selector. Nested bindings must
      * not contain an `additional_bindings` field themselves (that is,
@@ -2994,6 +3291,8 @@ public Builder removeAdditionalBindings(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional HTTP bindings for the selector. Nested bindings must
      * not contain an `additional_bindings` field themselves (that is,
@@ -3002,11 +3301,12 @@ public Builder removeAdditionalBindings(int index) {
      *
      * repeated .google.api.HttpRule additional_bindings = 11;
      */
-    public Builder getAdditionalBindingsBuilder(
-        int index) {
+    public com.google.api.HttpRule.Builder getAdditionalBindingsBuilder(int index) {
       return getAdditionalBindingsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Additional HTTP bindings for the selector. Nested bindings must
      * not contain an `additional_bindings` field themselves (that is,
@@ -3015,14 +3315,16 @@ public Builder getAdditionalBindingsBuilder(
      *
      * repeated .google.api.HttpRule additional_bindings = 11;
      */
-    public com.google.api.HttpRuleOrBuilder getAdditionalBindingsOrBuilder(
-        int index) {
+    public com.google.api.HttpRuleOrBuilder getAdditionalBindingsOrBuilder(int index) {
       if (additionalBindingsBuilder_ == null) {
-        return additionalBindings_.get(index);  } else {
+        return additionalBindings_.get(index);
+      } else {
         return additionalBindingsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Additional HTTP bindings for the selector. Nested bindings must
      * not contain an `additional_bindings` field themselves (that is,
@@ -3031,8 +3333,8 @@ public com.google.api.HttpRuleOrBuilder getAdditionalBindingsOrBuilder(
      *
      * repeated .google.api.HttpRule additional_bindings = 11;
      */
-    public java.util.List 
-         getAdditionalBindingsOrBuilderList() {
+    public java.util.List
+        getAdditionalBindingsOrBuilderList() {
       if (additionalBindingsBuilder_ != null) {
         return additionalBindingsBuilder_.getMessageOrBuilderList();
       } else {
@@ -3040,6 +3342,8 @@ public com.google.api.HttpRuleOrBuilder getAdditionalBindingsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Additional HTTP bindings for the selector. Nested bindings must
      * not contain an `additional_bindings` field themselves (that is,
@@ -3048,11 +3352,13 @@ public com.google.api.HttpRuleOrBuilder getAdditionalBindingsOrBuilder(
      *
      * repeated .google.api.HttpRule additional_bindings = 11;
      */
-    public Builder addAdditionalBindingsBuilder() {
-      return getAdditionalBindingsFieldBuilder().addBuilder(
-          HttpRule.getDefaultInstance());
+    public com.google.api.HttpRule.Builder addAdditionalBindingsBuilder() {
+      return getAdditionalBindingsFieldBuilder()
+          .addBuilder(com.google.api.HttpRule.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Additional HTTP bindings for the selector. Nested bindings must
      * not contain an `additional_bindings` field themselves (that is,
@@ -3061,12 +3367,13 @@ public Builder addAdditionalBindingsBuilder() {
      *
      * repeated .google.api.HttpRule additional_bindings = 11;
      */
-    public Builder addAdditionalBindingsBuilder(
-        int index) {
-      return getAdditionalBindingsFieldBuilder().addBuilder(
-          index, HttpRule.getDefaultInstance());
+    public com.google.api.HttpRule.Builder addAdditionalBindingsBuilder(int index) {
+      return getAdditionalBindingsFieldBuilder()
+          .addBuilder(index, com.google.api.HttpRule.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Additional HTTP bindings for the selector. Nested bindings must
      * not contain an `additional_bindings` field themselves (that is,
@@ -3075,74 +3382,77 @@ public Builder addAdditionalBindingsBuilder(
      *
      * repeated .google.api.HttpRule additional_bindings = 11;
      */
-    public java.util.List
-         getAdditionalBindingsBuilderList() {
+    public java.util.List getAdditionalBindingsBuilderList() {
       return getAdditionalBindingsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        HttpRule, Builder, com.google.api.HttpRuleOrBuilder>
+            com.google.api.HttpRule,
+            com.google.api.HttpRule.Builder,
+            com.google.api.HttpRuleOrBuilder>
         getAdditionalBindingsFieldBuilder() {
       if (additionalBindingsBuilder_ == null) {
-        additionalBindingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            HttpRule, Builder, com.google.api.HttpRuleOrBuilder>(
+        additionalBindingsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.api.HttpRule,
+                com.google.api.HttpRule.Builder,
+                com.google.api.HttpRuleOrBuilder>(
                 additionalBindings_,
-                ((bitField0_ & 0x00000200) != 0),
+                ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
                 isClean());
         additionalBindings_ = null;
       }
       return additionalBindingsBuilder_;
     }
-    @Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+
+    @java.lang.Override
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
-    @Override
+    @java.lang.Override
     public final Builder mergeUnknownFields(
         final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.api.HttpRule)
   }
 
   // @@protoc_insertion_point(class_scope:google.api.HttpRule)
-  private static final HttpRule DEFAULT_INSTANCE;
+  private static final com.google.api.HttpRule DEFAULT_INSTANCE;
+
   static {
-    DEFAULT_INSTANCE = new HttpRule();
+    DEFAULT_INSTANCE = new com.google.api.HttpRule();
   }
 
-  public static HttpRule getDefaultInstance() {
+  public static com.google.api.HttpRule getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @Override
-    public HttpRule parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new HttpRule(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public HttpRule parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new HttpRule(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
   }
 
-  @Override
+  @java.lang.Override
   public com.google.protobuf.Parser getParserForType() {
     return PARSER;
   }
 
-  @Override
-  public HttpRule getDefaultInstanceForType() {
+  @java.lang.Override
+  public com.google.api.HttpRule getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-common-protos/src/main/java/com/google/api/HttpRuleOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/HttpRuleOrBuilder.java
index 1e71e6fb..1b0aabb3 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/HttpRuleOrBuilder.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/HttpRuleOrBuilder.java
@@ -1,125 +1,185 @@
+/*
+ * 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/http.proto
 
 package com.google.api;
 
-public interface HttpRuleOrBuilder extends
+public interface HttpRuleOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.api.HttpRule)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Selects a method to which this rule applies.
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
    * 
* * string selector = 1; + * + * @return The selector. */ - String getSelector(); + java.lang.String getSelector(); /** + * + * *
    * Selects a method to which this rule applies.
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
    * 
* * string selector = 1; + * + * @return The bytes for selector. */ - com.google.protobuf.ByteString - getSelectorBytes(); + com.google.protobuf.ByteString getSelectorBytes(); /** + * + * *
    * Maps to HTTP GET. Used for listing and getting information about
    * resources.
    * 
* * string get = 2; + * + * @return The get. */ - String getGet(); + java.lang.String getGet(); /** + * + * *
    * Maps to HTTP GET. Used for listing and getting information about
    * resources.
    * 
* * string get = 2; + * + * @return The bytes for get. */ - com.google.protobuf.ByteString - getGetBytes(); + com.google.protobuf.ByteString getGetBytes(); /** + * + * *
    * Maps to HTTP PUT. Used for replacing a resource.
    * 
* * string put = 3; + * + * @return The put. */ - String getPut(); + java.lang.String getPut(); /** + * + * *
    * Maps to HTTP PUT. Used for replacing a resource.
    * 
* * string put = 3; + * + * @return The bytes for put. */ - com.google.protobuf.ByteString - getPutBytes(); + com.google.protobuf.ByteString getPutBytes(); /** + * + * *
    * Maps to HTTP POST. Used for creating a resource or performing an action.
    * 
* * string post = 4; + * + * @return The post. */ - String getPost(); + java.lang.String getPost(); /** + * + * *
    * Maps to HTTP POST. Used for creating a resource or performing an action.
    * 
* * string post = 4; + * + * @return The bytes for post. */ - com.google.protobuf.ByteString - getPostBytes(); + com.google.protobuf.ByteString getPostBytes(); /** + * + * *
    * Maps to HTTP DELETE. Used for deleting a resource.
    * 
* * string delete = 5; + * + * @return The delete. */ - String getDelete(); + java.lang.String getDelete(); /** + * + * *
    * Maps to HTTP DELETE. Used for deleting a resource.
    * 
* * string delete = 5; + * + * @return The bytes for delete. */ - com.google.protobuf.ByteString - getDeleteBytes(); + com.google.protobuf.ByteString getDeleteBytes(); /** + * + * *
    * Maps to HTTP PATCH. Used for updating a resource.
    * 
* * string patch = 6; + * + * @return The patch. */ - String getPatch(); + java.lang.String getPatch(); /** + * + * *
    * Maps to HTTP PATCH. Used for updating a resource.
    * 
* * string patch = 6; + * + * @return The bytes for patch. */ - com.google.protobuf.ByteString - getPatchBytes(); + com.google.protobuf.ByteString getPatchBytes(); /** + * + * *
    * The custom pattern is used for specifying an HTTP method that is not
    * included in the `pattern` field, such as HEAD, or "*" to leave the
@@ -128,9 +188,13 @@ public interface HttpRuleOrBuilder extends
    * 
* * .google.api.CustomHttpPattern custom = 8; + * + * @return Whether the custom field is set. */ boolean hasCustom(); /** + * + * *
    * The custom pattern is used for specifying an HTTP method that is not
    * included in the `pattern` field, such as HEAD, or "*" to leave the
@@ -139,9 +203,13 @@ public interface HttpRuleOrBuilder extends
    * 
* * .google.api.CustomHttpPattern custom = 8; + * + * @return The custom. */ - CustomHttpPattern getCustom(); + com.google.api.CustomHttpPattern getCustom(); /** + * + * *
    * The custom pattern is used for specifying an HTTP method that is not
    * included in the `pattern` field, such as HEAD, or "*" to leave the
@@ -154,6 +222,8 @@ public interface HttpRuleOrBuilder extends
   com.google.api.CustomHttpPatternOrBuilder getCustomOrBuilder();
 
   /**
+   *
+   *
    * 
    * The name of the request field whose value is mapped to the HTTP request
    * body, or `*` for mapping all request fields not captured by the path
@@ -163,9 +233,13 @@ public interface HttpRuleOrBuilder extends
    * 
* * string body = 7; + * + * @return The body. */ - String getBody(); + java.lang.String getBody(); /** + * + * *
    * The name of the request field whose value is mapped to the HTTP request
    * body, or `*` for mapping all request fields not captured by the path
@@ -175,11 +249,14 @@ public interface HttpRuleOrBuilder extends
    * 
* * string body = 7; + * + * @return The bytes for body. */ - com.google.protobuf.ByteString - getBodyBytes(); + com.google.protobuf.ByteString getBodyBytes(); /** + * + * *
    * Optional. The name of the response field whose value is mapped to the HTTP
    * response body. When omitted, the entire response message will be used
@@ -189,9 +266,13 @@ public interface HttpRuleOrBuilder extends
    * 
* * string response_body = 12; + * + * @return The responseBody. */ - String getResponseBody(); + java.lang.String getResponseBody(); /** + * + * *
    * Optional. The name of the response field whose value is mapped to the HTTP
    * response body. When omitted, the entire response message will be used
@@ -201,11 +282,14 @@ public interface HttpRuleOrBuilder extends
    * 
* * string response_body = 12; + * + * @return The bytes for responseBody. */ - com.google.protobuf.ByteString - getResponseBodyBytes(); + com.google.protobuf.ByteString getResponseBodyBytes(); /** + * + * *
    * Additional HTTP bindings for the selector. Nested bindings must
    * not contain an `additional_bindings` field themselves (that is,
@@ -214,9 +298,10 @@ public interface HttpRuleOrBuilder extends
    *
    * repeated .google.api.HttpRule additional_bindings = 11;
    */
-  java.util.List
-      getAdditionalBindingsList();
+  java.util.List getAdditionalBindingsList();
   /**
+   *
+   *
    * 
    * Additional HTTP bindings for the selector. Nested bindings must
    * not contain an `additional_bindings` field themselves (that is,
@@ -225,8 +310,10 @@ public interface HttpRuleOrBuilder extends
    *
    * repeated .google.api.HttpRule additional_bindings = 11;
    */
-  HttpRule getAdditionalBindings(int index);
+  com.google.api.HttpRule getAdditionalBindings(int index);
   /**
+   *
+   *
    * 
    * Additional HTTP bindings for the selector. Nested bindings must
    * not contain an `additional_bindings` field themselves (that is,
@@ -237,6 +324,8 @@ public interface HttpRuleOrBuilder extends
    */
   int getAdditionalBindingsCount();
   /**
+   *
+   *
    * 
    * Additional HTTP bindings for the selector. Nested bindings must
    * not contain an `additional_bindings` field themselves (that is,
@@ -245,9 +334,10 @@ public interface HttpRuleOrBuilder extends
    *
    * repeated .google.api.HttpRule additional_bindings = 11;
    */
-  java.util.List
-      getAdditionalBindingsOrBuilderList();
+  java.util.List getAdditionalBindingsOrBuilderList();
   /**
+   *
+   *
    * 
    * Additional HTTP bindings for the selector. Nested bindings must
    * not contain an `additional_bindings` field themselves (that is,
@@ -256,8 +346,7 @@ public interface HttpRuleOrBuilder extends
    *
    * repeated .google.api.HttpRule additional_bindings = 11;
    */
-  HttpRuleOrBuilder getAdditionalBindingsOrBuilder(
-      int index);
+  com.google.api.HttpRuleOrBuilder getAdditionalBindingsOrBuilder(int index);
 
-  public HttpRule.PatternCase getPatternCase();
+  public com.google.api.HttpRule.PatternCase getPatternCase();
 }
diff --git a/proto-google-common-protos/src/main/java/com/google/api/JwtLocation.java b/proto-google-common-protos/src/main/java/com/google/api/JwtLocation.java
new file mode 100644
index 00000000..5c1d87ee
--- /dev/null
+++ b/proto-google-common-protos/src/main/java/com/google/api/JwtLocation.java
@@ -0,0 +1,1149 @@
+/*
+ * 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;
+
+/**
+ *
+ *
+ * 
+ * Specifies a location to extract JWT from an API request.
+ * 
+ * + * Protobuf type {@code google.api.JwtLocation} + */ +public final class JwtLocation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.api.JwtLocation) + JwtLocationOrBuilder { + private static final long serialVersionUID = 0L; + // Use JwtLocation.newBuilder() to construct. + private JwtLocation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private JwtLocation() { + valuePrefix_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new JwtLocation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private JwtLocation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + inCase_ = 1; + in_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + inCase_ = 2; + in_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + valuePrefix_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.api.AuthProto.internal_static_google_api_JwtLocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.api.AuthProto.internal_static_google_api_JwtLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.api.JwtLocation.class, com.google.api.JwtLocation.Builder.class); + } + + private int inCase_ = 0; + private java.lang.Object in_; + + public enum InCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + HEADER(1), + QUERY(2), + IN_NOT_SET(0); + private final int value; + + private InCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InCase valueOf(int value) { + return forNumber(value); + } + + public static InCase forNumber(int value) { + switch (value) { + case 1: + return HEADER; + case 2: + return QUERY; + case 0: + return IN_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public InCase getInCase() { + return InCase.forNumber(inCase_); + } + + public static final int HEADER_FIELD_NUMBER = 1; + /** + * + * + *
+   * Specifies HTTP header name to extract JWT token.
+   * 
+ * + * string header = 1; + * + * @return The header. + */ + public java.lang.String getHeader() { + java.lang.Object ref = ""; + if (inCase_ == 1) { + ref = in_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (inCase_ == 1) { + in_ = s; + } + return s; + } + } + /** + * + * + *
+   * Specifies HTTP header name to extract JWT token.
+   * 
+ * + * string header = 1; + * + * @return The bytes for header. + */ + public com.google.protobuf.ByteString getHeaderBytes() { + java.lang.Object ref = ""; + if (inCase_ == 1) { + ref = in_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (inCase_ == 1) { + in_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_FIELD_NUMBER = 2; + /** + * + * + *
+   * Specifies URL query parameter name to extract JWT token.
+   * 
+ * + * string query = 2; + * + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = ""; + if (inCase_ == 2) { + ref = in_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (inCase_ == 2) { + in_ = s; + } + return s; + } + } + /** + * + * + *
+   * Specifies URL query parameter name to extract JWT token.
+   * 
+ * + * string query = 2; + * + * @return The bytes for query. + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = ""; + if (inCase_ == 2) { + ref = in_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (inCase_ == 2) { + in_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_PREFIX_FIELD_NUMBER = 3; + private volatile java.lang.Object valuePrefix_; + /** + * + * + *
+   * The value prefix. The value format is "value_prefix{token}"
+   * Only applies to "in" header type. Must be empty for "in" query type.
+   * If not empty, the header value has to match (case sensitive) this prefix.
+   * If not matched, JWT will not be extracted. If matched, JWT will be
+   * extracted after the prefix is removed.
+   * For example, for "Authorization: Bearer {JWT}",
+   * value_prefix="Bearer " with a space at the end.
+   * 
+ * + * string value_prefix = 3; + * + * @return The valuePrefix. + */ + public java.lang.String getValuePrefix() { + java.lang.Object ref = valuePrefix_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + valuePrefix_ = s; + return s; + } + } + /** + * + * + *
+   * The value prefix. The value format is "value_prefix{token}"
+   * Only applies to "in" header type. Must be empty for "in" query type.
+   * If not empty, the header value has to match (case sensitive) this prefix.
+   * If not matched, JWT will not be extracted. If matched, JWT will be
+   * extracted after the prefix is removed.
+   * For example, for "Authorization: Bearer {JWT}",
+   * value_prefix="Bearer " with a space at the end.
+   * 
+ * + * string value_prefix = 3; + * + * @return The bytes for valuePrefix. + */ + public com.google.protobuf.ByteString getValuePrefixBytes() { + java.lang.Object ref = valuePrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + valuePrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (inCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, in_); + } + if (inCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, in_); + } + if (!getValuePrefixBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, valuePrefix_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, in_); + } + if (inCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, in_); + } + if (!getValuePrefixBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, valuePrefix_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.api.JwtLocation)) { + return super.equals(obj); + } + com.google.api.JwtLocation other = (com.google.api.JwtLocation) obj; + + if (!getValuePrefix().equals(other.getValuePrefix())) return false; + if (!getInCase().equals(other.getInCase())) return false; + switch (inCase_) { + case 1: + if (!getHeader().equals(other.getHeader())) return false; + break; + case 2: + if (!getQuery().equals(other.getQuery())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VALUE_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getValuePrefix().hashCode(); + switch (inCase_) { + case 1: + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + break; + case 2: + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.api.JwtLocation parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.api.JwtLocation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.api.JwtLocation parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.api.JwtLocation 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.JwtLocation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.api.JwtLocation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.api.JwtLocation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.api.JwtLocation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.api.JwtLocation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.api.JwtLocation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.api.JwtLocation parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.api.JwtLocation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.api.JwtLocation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Specifies a location to extract JWT from an API request.
+   * 
+ * + * Protobuf type {@code google.api.JwtLocation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.api.JwtLocation) + com.google.api.JwtLocationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.api.AuthProto.internal_static_google_api_JwtLocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.api.AuthProto.internal_static_google_api_JwtLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.api.JwtLocation.class, com.google.api.JwtLocation.Builder.class); + } + + // Construct using com.google.api.JwtLocation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + valuePrefix_ = ""; + + inCase_ = 0; + in_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.api.AuthProto.internal_static_google_api_JwtLocation_descriptor; + } + + @java.lang.Override + public com.google.api.JwtLocation getDefaultInstanceForType() { + return com.google.api.JwtLocation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.api.JwtLocation build() { + com.google.api.JwtLocation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.api.JwtLocation buildPartial() { + com.google.api.JwtLocation result = new com.google.api.JwtLocation(this); + if (inCase_ == 1) { + result.in_ = in_; + } + if (inCase_ == 2) { + result.in_ = in_; + } + result.valuePrefix_ = valuePrefix_; + result.inCase_ = inCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + 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) { + return super.clearField(field); + } + + @java.lang.Override + 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) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + 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.JwtLocation) { + return mergeFrom((com.google.api.JwtLocation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.api.JwtLocation other) { + if (other == com.google.api.JwtLocation.getDefaultInstance()) return this; + if (!other.getValuePrefix().isEmpty()) { + valuePrefix_ = other.valuePrefix_; + onChanged(); + } + switch (other.getInCase()) { + case HEADER: + { + inCase_ = 1; + in_ = other.in_; + onChanged(); + break; + } + case QUERY: + { + inCase_ = 2; + in_ = other.in_; + onChanged(); + break; + } + case IN_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.api.JwtLocation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.api.JwtLocation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int inCase_ = 0; + private java.lang.Object in_; + + public InCase getInCase() { + return InCase.forNumber(inCase_); + } + + public Builder clearIn() { + inCase_ = 0; + in_ = null; + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies HTTP header name to extract JWT token.
+     * 
+ * + * string header = 1; + * + * @return The header. + */ + public java.lang.String getHeader() { + java.lang.Object ref = ""; + if (inCase_ == 1) { + ref = in_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (inCase_ == 1) { + in_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Specifies HTTP header name to extract JWT token.
+     * 
+ * + * string header = 1; + * + * @return The bytes for header. + */ + public com.google.protobuf.ByteString getHeaderBytes() { + java.lang.Object ref = ""; + if (inCase_ == 1) { + ref = in_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (inCase_ == 1) { + in_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Specifies HTTP header name to extract JWT token.
+     * 
+ * + * string header = 1; + * + * @param value The header to set. + * @return This builder for chaining. + */ + public Builder setHeader(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + inCase_ = 1; + in_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies HTTP header name to extract JWT token.
+     * 
+ * + * string header = 1; + * + * @return This builder for chaining. + */ + public Builder clearHeader() { + if (inCase_ == 1) { + inCase_ = 0; + in_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Specifies HTTP header name to extract JWT token.
+     * 
+ * + * string header = 1; + * + * @param value The bytes for header to set. + * @return This builder for chaining. + */ + public Builder setHeaderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inCase_ = 1; + in_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies URL query parameter name to extract JWT token.
+     * 
+ * + * string query = 2; + * + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = ""; + if (inCase_ == 2) { + ref = in_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (inCase_ == 2) { + in_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Specifies URL query parameter name to extract JWT token.
+     * 
+ * + * string query = 2; + * + * @return The bytes for query. + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = ""; + if (inCase_ == 2) { + ref = in_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (inCase_ == 2) { + in_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Specifies URL query parameter name to extract JWT token.
+     * 
+ * + * string query = 2; + * + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + inCase_ = 2; + in_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies URL query parameter name to extract JWT token.
+     * 
+ * + * string query = 2; + * + * @return This builder for chaining. + */ + public Builder clearQuery() { + if (inCase_ == 2) { + inCase_ = 0; + in_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Specifies URL query parameter name to extract JWT token.
+     * 
+ * + * string query = 2; + * + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inCase_ = 2; + in_ = value; + onChanged(); + return this; + } + + private java.lang.Object valuePrefix_ = ""; + /** + * + * + *
+     * The value prefix. The value format is "value_prefix{token}"
+     * Only applies to "in" header type. Must be empty for "in" query type.
+     * If not empty, the header value has to match (case sensitive) this prefix.
+     * If not matched, JWT will not be extracted. If matched, JWT will be
+     * extracted after the prefix is removed.
+     * For example, for "Authorization: Bearer {JWT}",
+     * value_prefix="Bearer " with a space at the end.
+     * 
+ * + * string value_prefix = 3; + * + * @return The valuePrefix. + */ + public java.lang.String getValuePrefix() { + java.lang.Object ref = valuePrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + valuePrefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The value prefix. The value format is "value_prefix{token}"
+     * Only applies to "in" header type. Must be empty for "in" query type.
+     * If not empty, the header value has to match (case sensitive) this prefix.
+     * If not matched, JWT will not be extracted. If matched, JWT will be
+     * extracted after the prefix is removed.
+     * For example, for "Authorization: Bearer {JWT}",
+     * value_prefix="Bearer " with a space at the end.
+     * 
+ * + * string value_prefix = 3; + * + * @return The bytes for valuePrefix. + */ + public com.google.protobuf.ByteString getValuePrefixBytes() { + java.lang.Object ref = valuePrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + valuePrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The value prefix. The value format is "value_prefix{token}"
+     * Only applies to "in" header type. Must be empty for "in" query type.
+     * If not empty, the header value has to match (case sensitive) this prefix.
+     * If not matched, JWT will not be extracted. If matched, JWT will be
+     * extracted after the prefix is removed.
+     * For example, for "Authorization: Bearer {JWT}",
+     * value_prefix="Bearer " with a space at the end.
+     * 
+ * + * string value_prefix = 3; + * + * @param value The valuePrefix to set. + * @return This builder for chaining. + */ + public Builder setValuePrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + valuePrefix_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The value prefix. The value format is "value_prefix{token}"
+     * Only applies to "in" header type. Must be empty for "in" query type.
+     * If not empty, the header value has to match (case sensitive) this prefix.
+     * If not matched, JWT will not be extracted. If matched, JWT will be
+     * extracted after the prefix is removed.
+     * For example, for "Authorization: Bearer {JWT}",
+     * value_prefix="Bearer " with a space at the end.
+     * 
+ * + * string value_prefix = 3; + * + * @return This builder for chaining. + */ + public Builder clearValuePrefix() { + + valuePrefix_ = getDefaultInstance().getValuePrefix(); + onChanged(); + return this; + } + /** + * + * + *
+     * The value prefix. The value format is "value_prefix{token}"
+     * Only applies to "in" header type. Must be empty for "in" query type.
+     * If not empty, the header value has to match (case sensitive) this prefix.
+     * If not matched, JWT will not be extracted. If matched, JWT will be
+     * extracted after the prefix is removed.
+     * For example, for "Authorization: Bearer {JWT}",
+     * value_prefix="Bearer " with a space at the end.
+     * 
+ * + * string value_prefix = 3; + * + * @param value The bytes for valuePrefix to set. + * @return This builder for chaining. + */ + public Builder setValuePrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + valuePrefix_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.api.JwtLocation) + } + + // @@protoc_insertion_point(class_scope:google.api.JwtLocation) + private static final com.google.api.JwtLocation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.api.JwtLocation(); + } + + public static com.google.api.JwtLocation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JwtLocation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new JwtLocation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.api.JwtLocation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-common-protos/src/main/java/com/google/api/JwtLocationOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/JwtLocationOrBuilder.java new file mode 100644 index 00000000..f2c088b0 --- /dev/null +++ b/proto-google-common-protos/src/main/java/com/google/api/JwtLocationOrBuilder.java @@ -0,0 +1,114 @@ +/* + * 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 JwtLocationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.api.JwtLocation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Specifies HTTP header name to extract JWT token.
+   * 
+ * + * string header = 1; + * + * @return The header. + */ + java.lang.String getHeader(); + /** + * + * + *
+   * Specifies HTTP header name to extract JWT token.
+   * 
+ * + * string header = 1; + * + * @return The bytes for header. + */ + com.google.protobuf.ByteString getHeaderBytes(); + + /** + * + * + *
+   * Specifies URL query parameter name to extract JWT token.
+   * 
+ * + * string query = 2; + * + * @return The query. + */ + java.lang.String getQuery(); + /** + * + * + *
+   * Specifies URL query parameter name to extract JWT token.
+   * 
+ * + * string query = 2; + * + * @return The bytes for query. + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
+   * The value prefix. The value format is "value_prefix{token}"
+   * Only applies to "in" header type. Must be empty for "in" query type.
+   * If not empty, the header value has to match (case sensitive) this prefix.
+   * If not matched, JWT will not be extracted. If matched, JWT will be
+   * extracted after the prefix is removed.
+   * For example, for "Authorization: Bearer {JWT}",
+   * value_prefix="Bearer " with a space at the end.
+   * 
+ * + * string value_prefix = 3; + * + * @return The valuePrefix. + */ + java.lang.String getValuePrefix(); + /** + * + * + *
+   * The value prefix. The value format is "value_prefix{token}"
+   * Only applies to "in" header type. Must be empty for "in" query type.
+   * If not empty, the header value has to match (case sensitive) this prefix.
+   * If not matched, JWT will not be extracted. If matched, JWT will be
+   * extracted after the prefix is removed.
+   * For example, for "Authorization: Bearer {JWT}",
+   * value_prefix="Bearer " with a space at the end.
+   * 
+ * + * string value_prefix = 3; + * + * @return The bytes for valuePrefix. + */ + com.google.protobuf.ByteString getValuePrefixBytes(); + + public com.google.api.JwtLocation.InCase getInCase(); +} diff --git a/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptor.java b/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptor.java index 6621357f..1995b5b6 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptor.java +++ b/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptor.java @@ -1,44 +1,67 @@ +/* + * 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/label.proto package com.google.api; /** + * + * *
  * A description of a label.
  * 
* * Protobuf type {@code google.api.LabelDescriptor} */ -public final class LabelDescriptor extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LabelDescriptor extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.api.LabelDescriptor) LabelDescriptorOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LabelDescriptor.newBuilder() to construct. private LabelDescriptor(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LabelDescriptor() { key_ = ""; valueType_ = 0; description_ = ""; } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LabelDescriptor(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LabelDescriptor( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -49,66 +72,71 @@ private LabelDescriptor( case 0: done = true; break; - case 10: { - String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - key_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); + key_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - valueType_ = rawValue; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); + valueType_ = rawValue; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + description_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return LabelProto.internal_static_google_api_LabelDescriptor_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.api.LabelProto.internal_static_google_api_LabelDescriptor_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return LabelProto.internal_static_google_api_LabelDescriptor_fieldAccessorTable + return com.google.api.LabelProto.internal_static_google_api_LabelDescriptor_fieldAccessorTable .ensureFieldAccessorsInitialized( - LabelDescriptor.class, Builder.class); + com.google.api.LabelDescriptor.class, com.google.api.LabelDescriptor.Builder.class); } /** + * + * *
    * Value types that can be used as label values.
    * 
* * Protobuf enum {@code google.api.LabelDescriptor.ValueType} */ - public enum ValueType - implements com.google.protobuf.ProtocolMessageEnum { + public enum ValueType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * A variable-length string. This is the default.
      * 
@@ -117,6 +145,8 @@ public enum ValueType */ STRING(0), /** + * + * *
      * Boolean; true or false.
      * 
@@ -125,6 +155,8 @@ public enum ValueType */ BOOL(1), /** + * + * *
      * A 64-bit signed integer.
      * 
@@ -136,6 +168,8 @@ public enum ValueType ; /** + * + * *
      * A variable-length string. This is the default.
      * 
@@ -144,6 +178,8 @@ public enum ValueType */ public static final int STRING_VALUE = 0; /** + * + * *
      * Boolean; true or false.
      * 
@@ -152,6 +188,8 @@ public enum ValueType */ public static final int BOOL_VALUE = 1; /** + * + * *
      * A 64-bit signed integer.
      * 
@@ -160,64 +198,69 @@ public enum ValueType */ public static final int INT64_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { - throw new IllegalArgumentException( + throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ - @Deprecated + @java.lang.Deprecated public static ValueType valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static ValueType forNumber(int value) { switch (value) { - case 0: return STRING; - case 1: return BOOL; - case 2: return INT64; - default: return null; + case 0: + return STRING; + case 1: + return BOOL; + case 2: + return INT64; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ValueType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ValueType findValueByNumber(int number) { - return ValueType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ValueType findValueByNumber(int number) { + return ValueType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return LabelDescriptor.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.api.LabelDescriptor.getDescriptor().getEnumTypes().get(0); } private static final ValueType[] VALUES = values(); - public static ValueType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ValueType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -235,40 +278,45 @@ private ValueType(int value) { } public static final int KEY_FIELD_NUMBER = 1; - private volatile Object key_; + private volatile java.lang.Object key_; /** + * + * *
    * The label key.
    * 
* * string key = 1; + * + * @return The key. */ - public String getKey() { - Object ref = key_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** + * + * *
    * The label key.
    * 
* * string key = 1; + * + * @return The bytes for key. */ - public com.google.protobuf.ByteString - getKeyBytes() { - Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -279,63 +327,77 @@ public String getKey() { public static final int VALUE_TYPE_FIELD_NUMBER = 2; private int valueType_; /** + * + * *
    * The type of data that can be assigned to the label.
    * 
* * .google.api.LabelDescriptor.ValueType value_type = 2; + * + * @return The enum numeric value on the wire for valueType. */ public int getValueTypeValue() { return valueType_; } /** + * + * *
    * The type of data that can be assigned to the label.
    * 
* * .google.api.LabelDescriptor.ValueType value_type = 2; + * + * @return The valueType. */ - public ValueType getValueType() { + public com.google.api.LabelDescriptor.ValueType getValueType() { @SuppressWarnings("deprecation") - ValueType result = ValueType.valueOf(valueType_); - return result == null ? ValueType.UNRECOGNIZED : result; + com.google.api.LabelDescriptor.ValueType result = + com.google.api.LabelDescriptor.ValueType.valueOf(valueType_); + return result == null ? com.google.api.LabelDescriptor.ValueType.UNRECOGNIZED : result; } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile Object description_; + private volatile java.lang.Object description_; /** + * + * *
    * A human-readable description for the label.
    * 
* * string description = 3; + * + * @return The description. */ - public String getDescription() { - Object ref = description_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * A human-readable description for the label.
    * 
* * string description = 3; + * + * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + 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); description_ = b; return b; } else { @@ -344,7 +406,8 @@ public String getDescription() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -354,13 +417,12 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getKeyBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } - if (valueType_ != ValueType.STRING.getNumber()) { + if (valueType_ != com.google.api.LabelDescriptor.ValueType.STRING.getNumber()) { output.writeEnum(2, valueType_); } if (!getDescriptionBytes().isEmpty()) { @@ -369,7 +431,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -378,9 +440,8 @@ public int getSerializedSize() { if (!getKeyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } - if (valueType_ != ValueType.STRING.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, valueType_); + if (valueType_ != com.google.api.LabelDescriptor.ValueType.STRING.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, valueType_); } if (!getDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); @@ -390,26 +451,24 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof LabelDescriptor)) { + if (!(obj instanceof com.google.api.LabelDescriptor)) { return super.equals(obj); } - LabelDescriptor other = (LabelDescriptor) obj; + com.google.api.LabelDescriptor other = (com.google.api.LabelDescriptor) obj; - if (!getKey() - .equals(other.getKey())) return false; + if (!getKey().equals(other.getKey())) return false; if (valueType_ != other.valueType_) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -427,118 +486,123 @@ public int hashCode() { return hash; } - public static LabelDescriptor parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.LabelDescriptor parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static LabelDescriptor parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.LabelDescriptor parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static LabelDescriptor parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.api.LabelDescriptor parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static LabelDescriptor parseFrom( + + public static com.google.api.LabelDescriptor parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static LabelDescriptor parseFrom(byte[] data) + + public static com.google.api.LabelDescriptor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static LabelDescriptor parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.LabelDescriptor parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static LabelDescriptor parseFrom(java.io.InputStream input) + + public static com.google.api.LabelDescriptor 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 LabelDescriptor parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.LabelDescriptor parseFrom( + 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 LabelDescriptor parseDelimitedFrom(java.io.InputStream input) + + public static com.google.api.LabelDescriptor 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 LabelDescriptor parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.LabelDescriptor parseDelimitedFrom( + 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 LabelDescriptor parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.api.LabelDescriptor 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 LabelDescriptor parseFrom( + + public static com.google.api.LabelDescriptor 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(LabelDescriptor prototype) { + + public static Builder newBuilder(com.google.api.LabelDescriptor prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A description of a label.
    * 
* * Protobuf type {@code google.api.LabelDescriptor} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.api.LabelDescriptor) com.google.api.LabelDescriptorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return LabelProto.internal_static_google_api_LabelDescriptor_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.api.LabelProto.internal_static_google_api_LabelDescriptor_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return LabelProto.internal_static_google_api_LabelDescriptor_fieldAccessorTable + return com.google.api.LabelProto.internal_static_google_api_LabelDescriptor_fieldAccessorTable .ensureFieldAccessorsInitialized( - LabelDescriptor.class, Builder.class); + com.google.api.LabelDescriptor.class, com.google.api.LabelDescriptor.Builder.class); } // Construct using com.google.api.LabelDescriptor.newBuilder() @@ -546,17 +610,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @Override + + @java.lang.Override public Builder clear() { super.clear(); key_ = ""; @@ -568,29 +631,28 @@ public Builder clear() { return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return LabelProto.internal_static_google_api_LabelDescriptor_descriptor; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.api.LabelProto.internal_static_google_api_LabelDescriptor_descriptor; } - @Override - public LabelDescriptor getDefaultInstanceForType() { - return LabelDescriptor.getDefaultInstance(); + @java.lang.Override + public com.google.api.LabelDescriptor getDefaultInstanceForType() { + return com.google.api.LabelDescriptor.getDefaultInstance(); } - @Override - public LabelDescriptor build() { - LabelDescriptor result = buildPartial(); + @java.lang.Override + public com.google.api.LabelDescriptor build() { + com.google.api.LabelDescriptor result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public LabelDescriptor buildPartial() { - LabelDescriptor result = new LabelDescriptor(this); + @java.lang.Override + public com.google.api.LabelDescriptor buildPartial() { + com.google.api.LabelDescriptor result = new com.google.api.LabelDescriptor(this); result.key_ = key_; result.valueType_ = valueType_; result.description_ = description_; @@ -598,50 +660,51 @@ public LabelDescriptor buildPartial() { return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof LabelDescriptor) { - return mergeFrom((LabelDescriptor)other); + if (other instanceof com.google.api.LabelDescriptor) { + return mergeFrom((com.google.api.LabelDescriptor) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(LabelDescriptor other) { - if (other == LabelDescriptor.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.api.LabelDescriptor other) { + if (other == com.google.api.LabelDescriptor.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; onChanged(); @@ -658,21 +721,21 @@ public Builder mergeFrom(LabelDescriptor other) { return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - LabelDescriptor parsedMessage = null; + com.google.api.LabelDescriptor parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (LabelDescriptor) e.getUnfinishedMessage(); + parsedMessage = (com.google.api.LabelDescriptor) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -682,40 +745,45 @@ public Builder mergeFrom( return this; } - private Object key_ = ""; + private java.lang.Object key_ = ""; /** + * + * *
      * The label key.
      * 
* * string key = 1; + * + * @return The key. */ - public String getKey() { - Object ref = key_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The label key.
      * 
* * string key = 1; + * + * @return The bytes for key. */ - public com.google.protobuf.ByteString - getKeyBytes() { - Object ref = key_; + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -723,49 +791,61 @@ public String getKey() { } } /** + * + * *
      * The label key.
      * 
* * string key = 1; + * + * @param value The key to set. + * @return This builder for chaining. */ - public Builder setKey( - String value) { + public Builder setKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + key_ = value; onChanged(); return this; } /** + * + * *
      * The label key.
      * 
* * string key = 1; + * + * @return This builder for chaining. */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** + * + * *
      * The label key.
      * 
* * string key = 1; + * + * @param value The bytes for key to set. + * @return This builder for chaining. */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { + public Builder setKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; onChanged(); return this; @@ -773,21 +853,30 @@ public Builder setKeyBytes( private int valueType_ = 0; /** + * + * *
      * The type of data that can be assigned to the label.
      * 
* * .google.api.LabelDescriptor.ValueType value_type = 2; + * + * @return The enum numeric value on the wire for valueType. */ public int getValueTypeValue() { return valueType_; } /** + * + * *
      * The type of data that can be assigned to the label.
      * 
* * .google.api.LabelDescriptor.ValueType value_type = 2; + * + * @param value The enum numeric value on the wire for valueType to set. + * @return This builder for chaining. */ public Builder setValueTypeValue(int value) { valueType_ = value; @@ -795,81 +884,100 @@ public Builder setValueTypeValue(int value) { return this; } /** + * + * *
      * The type of data that can be assigned to the label.
      * 
* * .google.api.LabelDescriptor.ValueType value_type = 2; + * + * @return The valueType. */ - public ValueType getValueType() { + public com.google.api.LabelDescriptor.ValueType getValueType() { @SuppressWarnings("deprecation") - ValueType result = ValueType.valueOf(valueType_); - return result == null ? ValueType.UNRECOGNIZED : result; + com.google.api.LabelDescriptor.ValueType result = + com.google.api.LabelDescriptor.ValueType.valueOf(valueType_); + return result == null ? com.google.api.LabelDescriptor.ValueType.UNRECOGNIZED : result; } /** + * + * *
      * The type of data that can be assigned to the label.
      * 
* * .google.api.LabelDescriptor.ValueType value_type = 2; + * + * @param value The valueType to set. + * @return This builder for chaining. */ - public Builder setValueType(ValueType value) { + public Builder setValueType(com.google.api.LabelDescriptor.ValueType value) { if (value == null) { throw new NullPointerException(); } - + valueType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The type of data that can be assigned to the label.
      * 
* * .google.api.LabelDescriptor.ValueType value_type = 2; + * + * @return This builder for chaining. */ public Builder clearValueType() { - + valueType_ = 0; onChanged(); return this; } - private Object description_ = ""; + private java.lang.Object description_ = ""; /** + * + * *
      * A human-readable description for the label.
      * 
* * string description = 3; + * + * @return The description. */ - public String getDescription() { - Object ref = description_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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; + java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * A human-readable description for the label.
      * 
* * string description = 3; + * + * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - Object ref = description_; + 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( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -877,103 +985,113 @@ public String getDescription() { } } /** + * + * *
      * A human-readable description for the label.
      * 
* * string description = 3; + * + * @param value The description to set. + * @return This builder for chaining. */ - public Builder setDescription( - String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * A human-readable description for the label.
      * 
* * string description = 3; + * + * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * A human-readable description for the label.
      * 
* * string description = 3; + * + * @param value The bytes for description to set. + * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.LabelDescriptor) } // @@protoc_insertion_point(class_scope:google.api.LabelDescriptor) - private static final LabelDescriptor DEFAULT_INSTANCE; + private static final com.google.api.LabelDescriptor DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new LabelDescriptor(); + DEFAULT_INSTANCE = new com.google.api.LabelDescriptor(); } - public static LabelDescriptor getDefaultInstance() { + public static com.google.api.LabelDescriptor getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public LabelDescriptor parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelDescriptor(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelDescriptor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelDescriptor(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public LabelDescriptor getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.LabelDescriptor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptorOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptorOrBuilder.java index 55439605..dbfe9115 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptorOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptorOrBuilder.java @@ -1,62 +1,100 @@ +/* + * 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/label.proto package com.google.api; -public interface LabelDescriptorOrBuilder extends +public interface LabelDescriptorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.LabelDescriptor) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The label key.
    * 
* * string key = 1; + * + * @return The key. */ - String getKey(); + java.lang.String getKey(); /** + * + * *
    * The label key.
    * 
* * string key = 1; + * + * @return The bytes for key. */ - com.google.protobuf.ByteString - getKeyBytes(); + com.google.protobuf.ByteString getKeyBytes(); /** + * + * *
    * The type of data that can be assigned to the label.
    * 
* * .google.api.LabelDescriptor.ValueType value_type = 2; + * + * @return The enum numeric value on the wire for valueType. */ int getValueTypeValue(); /** + * + * *
    * The type of data that can be assigned to the label.
    * 
* * .google.api.LabelDescriptor.ValueType value_type = 2; + * + * @return The valueType. */ - LabelDescriptor.ValueType getValueType(); + com.google.api.LabelDescriptor.ValueType getValueType(); /** + * + * *
    * A human-readable description for the label.
    * 
* * string description = 3; + * + * @return The description. */ - String getDescription(); + java.lang.String getDescription(); /** + * + * *
    * A human-readable description for the label.
    * 
* * string description = 3; + * + * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/LabelProto.java b/proto-google-common-protos/src/main/java/com/google/api/LabelProto.java index e42ecd12..4a32bc4b 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/LabelProto.java +++ b/proto-google-common-protos/src/main/java/com/google/api/LabelProto.java @@ -1,3 +1,18 @@ +/* + * 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/label.proto @@ -5,56 +20,46 @@ public final class LabelProto { private LabelProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + 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_LabelDescriptor_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_LabelDescriptor_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_api_LabelDescriptor_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { - String[] descriptorData = { - "\n\026google/api/label.proto\022\ngoogle.api\"\234\001\n" + - "\017LabelDescriptor\022\013\n\003key\030\001 \001(\t\0229\n\nvalue_t" + - "ype\030\002 \001(\0162%.google.api.LabelDescriptor.V" + - "alueType\022\023\n\013description\030\003 \001(\t\",\n\tValueTy" + - "pe\022\n\n\006STRING\020\000\022\010\n\004BOOL\020\001\022\t\n\005INT64\020\002B_\n\016c" + - "om.google.apiB\nLabelProtoP\001Z5google.gola" + - "ng.org/genproto/googleapis/api/label;lab" + - "el\370\001\001\242\002\004GAPIb\006proto3" + java.lang.String[] descriptorData = { + "\n\026google/api/label.proto\022\ngoogle.api\"\234\001\n" + + "\017LabelDescriptor\022\013\n\003key\030\001 \001(\t\0229\n\nvalue_t" + + "ype\030\002 \001(\0162%.google.api.LabelDescriptor.V" + + "alueType\022\023\n\013description\030\003 \001(\t\",\n\tValueTy" + + "pe\022\n\n\006STRING\020\000\022\010\n\004BOOL\020\001\022\t\n\005INT64\020\002B_\n\016c" + + "om.google.apiB\nLabelProtoP\001Z5google.gola" + + "ng.org/genproto/googleapis/api/label;lab" + + "el\370\001\001\242\002\004GAPIb\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); internal_static_google_api_LabelDescriptor_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_api_LabelDescriptor_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_LabelDescriptor_descriptor, - new String[] { "Key", "ValueType", "Description", }); + getDescriptor().getMessageTypes().get(0); + internal_static_google_api_LabelDescriptor_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_LabelDescriptor_descriptor, + new java.lang.String[] { + "Key", "ValueType", "Description", + }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-common-protos/src/main/java/com/google/api/LaunchStage.java b/proto-google-common-protos/src/main/java/com/google/api/LaunchStage.java index f657ca94..c7b5fb0a 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/LaunchStage.java +++ b/proto-google-common-protos/src/main/java/com/google/api/LaunchStage.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/launch_stage.proto package com.google.api; /** + * + * *
  * The launch stage as defined by [Google Cloud Platform
  * Launch Stages](http://cloud.google.com/terms/launch-stages).
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.api.LaunchStage}
  */
-public enum LaunchStage
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum LaunchStage implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * Do not use this default value.
    * 
@@ -22,6 +40,8 @@ public enum LaunchStage */ LAUNCH_STAGE_UNSPECIFIED(0), /** + * + * *
    * Early Access features are limited to a closed group of testers. To use
    * these features, you must sign up in advance and sign a Trusted Tester
@@ -34,6 +54,8 @@ public enum LaunchStage
    */
   EARLY_ACCESS(1),
   /**
+   *
+   *
    * 
    * Alpha is a limited availability test for releases before they are cleared
    * for widespread use. By Alpha, all significant design issues are resolved
@@ -50,6 +72,8 @@ public enum LaunchStage
    */
   ALPHA(2),
   /**
+   *
+   *
    * 
    * Beta is the point at which we are ready to open a release for any
    * customer to use. There are no SLA or technical support obligations in a
@@ -62,6 +86,8 @@ public enum LaunchStage
    */
   BETA(3),
   /**
+   *
+   *
    * 
    * GA features are open to all developers and are considered stable and
    * fully qualified for production use.
@@ -71,6 +97,8 @@ public enum LaunchStage
    */
   GA(4),
   /**
+   *
+   *
    * 
    * Deprecated features are scheduled to be shut down and removed. For more
    * information, see the “Deprecation Policy” section of our [Terms of
@@ -86,6 +114,8 @@ public enum LaunchStage
   ;
 
   /**
+   *
+   *
    * 
    * Do not use this default value.
    * 
@@ -94,6 +124,8 @@ public enum LaunchStage */ public static final int LAUNCH_STAGE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Early Access features are limited to a closed group of testers. To use
    * these features, you must sign up in advance and sign a Trusted Tester
@@ -106,6 +138,8 @@ public enum LaunchStage
    */
   public static final int EARLY_ACCESS_VALUE = 1;
   /**
+   *
+   *
    * 
    * Alpha is a limited availability test for releases before they are cleared
    * for widespread use. By Alpha, all significant design issues are resolved
@@ -122,6 +156,8 @@ public enum LaunchStage
    */
   public static final int ALPHA_VALUE = 2;
   /**
+   *
+   *
    * 
    * Beta is the point at which we are ready to open a release for any
    * customer to use. There are no SLA or technical support obligations in a
@@ -134,6 +170,8 @@ public enum LaunchStage
    */
   public static final int BETA_VALUE = 3;
   /**
+   *
+   *
    * 
    * GA features are open to all developers and are considered stable and
    * fully qualified for production use.
@@ -143,6 +181,8 @@ public enum LaunchStage
    */
   public static final int GA_VALUE = 4;
   /**
+   *
+   *
    * 
    * Deprecated features are scheduled to be shut down and removed. For more
    * information, see the “Deprecation Policy” section of our [Terms of
@@ -155,67 +195,75 @@ public enum LaunchStage
    */
   public static final int DEPRECATED_VALUE = 5;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
-      throw new IllegalArgumentException(
+      throw new java.lang.IllegalArgumentException(
           "Can't get the number of an unknown enum value.");
     }
     return value;
   }
 
   /**
+   * @param value The numeric wire value of the corresponding enum entry.
+   * @return The enum associated with the given numeric wire value.
    * @deprecated Use {@link #forNumber(int)} instead.
    */
-  @Deprecated
+  @java.lang.Deprecated
   public static LaunchStage valueOf(int value) {
     return forNumber(value);
   }
 
+  /**
+   * @param value The numeric wire value of the corresponding enum entry.
+   * @return The enum associated with the given numeric wire value.
+   */
   public static LaunchStage forNumber(int value) {
     switch (value) {
-      case 0: return LAUNCH_STAGE_UNSPECIFIED;
-      case 1: return EARLY_ACCESS;
-      case 2: return ALPHA;
-      case 3: return BETA;
-      case 4: return GA;
-      case 5: return DEPRECATED;
-      default: return null;
+      case 0:
+        return LAUNCH_STAGE_UNSPECIFIED;
+      case 1:
+        return EARLY_ACCESS;
+      case 2:
+        return ALPHA;
+      case 3:
+        return BETA;
+      case 4:
+        return GA;
+      case 5:
+        return DEPRECATED;
+      default:
+        return null;
     }
   }
 
-  public static com.google.protobuf.Internal.EnumLiteMap
-      internalGetValueMap() {
+  public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
     return internalValueMap;
   }
-  private static final com.google.protobuf.Internal.EnumLiteMap<
-      LaunchStage> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public LaunchStage findValueByNumber(int number) {
-            return LaunchStage.forNumber(number);
-          }
-        };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor
-      getValueDescriptor() {
+
+  private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+      new com.google.protobuf.Internal.EnumLiteMap() {
+        public LaunchStage findValueByNumber(int number) {
+          return LaunchStage.forNumber(number);
+        }
+      };
+
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
     return getDescriptor().getValues().get(ordinal());
   }
-  public final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptorForType() {
+
+  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
     return getDescriptor();
   }
-  public static final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
     return com.google.api.LaunchStageProto.getDescriptor().getEnumTypes().get(0);
   }
 
   private static final LaunchStage[] VALUES = values();
 
-  public static LaunchStage valueOf(
-      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static LaunchStage valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
     if (desc.getType() != getDescriptor()) {
-      throw new IllegalArgumentException(
-        "EnumValueDescriptor is not for this type.");
+      throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
     }
     if (desc.getIndex() == -1) {
       return UNRECOGNIZED;
@@ -231,4 +279,3 @@ private LaunchStage(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.api.LaunchStage)
 }
-
diff --git a/proto-google-common-protos/src/main/java/com/google/api/LaunchStageProto.java b/proto-google-common-protos/src/main/java/com/google/api/LaunchStageProto.java
index cd501bac..7b29a709 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/LaunchStageProto.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/LaunchStageProto.java
@@ -1,3 +1,18 @@
+/*
+ * 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/launch_stage.proto
 
@@ -5,44 +20,32 @@
 
 public final class LaunchStageProto {
   private LaunchStageProto() {}
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistryLite registry) {
-  }
 
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions(
-        (com.google.protobuf.ExtensionRegistryLite) registry);
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
   }
 
-  public static com.google.protobuf.Descriptors.FileDescriptor
-      getDescriptor() {
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     return descriptor;
   }
-  private static  com.google.protobuf.Descriptors.FileDescriptor
-      descriptor;
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
   static {
-    String[] descriptorData = {
-      "\n\035google/api/launch_stage.proto\022\ngoogle." +
-      "api*j\n\013LaunchStage\022\034\n\030LAUNCH_STAGE_UNSPE" +
-      "CIFIED\020\000\022\020\n\014EARLY_ACCESS\020\001\022\t\n\005ALPHA\020\002\022\010\n" +
-      "\004BETA\020\003\022\006\n\002GA\020\004\022\016\n\nDEPRECATED\020\005BZ\n\016com.g" +
-      "oogle.apiB\020LaunchStageProtoP\001Z-google.go" +
-      "lang.org/genproto/googleapis/api;api\242\002\004G" +
-      "APIb\006proto3"
+    java.lang.String[] descriptorData = {
+      "\n\035google/api/launch_stage.proto\022\ngoogle."
+          + "api*j\n\013LaunchStage\022\034\n\030LAUNCH_STAGE_UNSPE"
+          + "CIFIED\020\000\022\020\n\014EARLY_ACCESS\020\001\022\t\n\005ALPHA\020\002\022\010\n"
+          + "\004BETA\020\003\022\006\n\002GA\020\004\022\016\n\nDEPRECATED\020\005BZ\n\016com.g"
+          + "oogle.apiB\020LaunchStageProtoP\001Z-google.go"
+          + "lang.org/genproto/googleapis/api;api\242\002\004G"
+          + "APIb\006proto3"
     };
-    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
-        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
-          public com.google.protobuf.ExtensionRegistry assignDescriptors(
-              com.google.protobuf.Descriptors.FileDescriptor root) {
-            descriptor = root;
-            return null;
-          }
-        };
-    com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-        }, assigner);
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
   }
 
   // @@protoc_insertion_point(outer_class_scope)
diff --git a/proto-google-common-protos/src/main/java/com/google/api/LogDescriptor.java b/proto-google-common-protos/src/main/java/com/google/api/LogDescriptor.java
index eabdf391..57398b20 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/LogDescriptor.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/LogDescriptor.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/log.proto
 
 package com.google.api;
 
 /**
+ *
+ *
  * 
  * A description of a log type. Example in YAML format:
  *     - name: library.googleapis.com/activity_history
@@ -16,15 +33,16 @@
  *
  * Protobuf type {@code google.api.LogDescriptor}
  */
-public  final class LogDescriptor extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LogDescriptor extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.LogDescriptor)
     LogDescriptorOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LogDescriptor.newBuilder() to construct.
   private LogDescriptor(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LogDescriptor() {
     name_ = "";
     labels_ = java.util.Collections.emptyList();
@@ -32,18 +50,24 @@ private LogDescriptor() {
     displayName_ = "";
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new LogDescriptor();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LogDescriptor(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -56,72 +80,76 @@ private LogDescriptor(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              labels_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
+              name_ = s;
+              break;
             }
-            labels_.add(
-                input.readMessage(com.google.api.LabelDescriptor.parser(), extensionRegistry));
-            break;
-          }
-          case 26: {
-            String s = input.readStringRequireUtf8();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                labels_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              labels_.add(
+                  input.readMessage(com.google.api.LabelDescriptor.parser(), extensionRegistry));
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            description_ = s;
-            break;
-          }
-          case 34: {
-            String s = input.readStringRequireUtf8();
+              description_ = s;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            displayName_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              displayName_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
-      if (((mutable_bitField0_ & 0x00000002) != 0)) {
+      if (((mutable_bitField0_ & 0x00000001) != 0)) {
         labels_ = java.util.Collections.unmodifiableList(labels_);
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return LogProto.internal_static_google_api_LogDescriptor_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.api.LogProto.internal_static_google_api_LogDescriptor_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return LogProto.internal_static_google_api_LogDescriptor_fieldAccessorTable
+    return com.google.api.LogProto.internal_static_google_api_LogDescriptor_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            LogDescriptor.class, Builder.class);
+            com.google.api.LogDescriptor.class, com.google.api.LogDescriptor.Builder.class);
   }
 
-  private int bitField0_;
   public static final int NAME_FIELD_NUMBER = 1;
-  private volatile Object name_;
+  private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * The name of the log. It must be less than 512 characters long and can
    * include the following characters: upper- and lower-case alphanumeric
@@ -130,20 +158,23 @@ private LogDescriptor(
    * 
* * string name = 1; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the log. It must be less than 512 characters long and can
    * include the following characters: upper- and lower-case alphanumeric
@@ -152,14 +183,14 @@ public String getName() {
    * 
* * string name = 1; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -170,6 +201,8 @@ public String getName() { public static final int LABELS_FIELD_NUMBER = 2; private java.util.List labels_; /** + * + * *
    * The set of labels that are available to describe a specific log entry.
    * Runtime requests that contain labels not specified here are
@@ -182,6 +215,8 @@ public java.util.List getLabelsList() {
     return labels_;
   }
   /**
+   *
+   *
    * 
    * The set of labels that are available to describe a specific log entry.
    * Runtime requests that contain labels not specified here are
@@ -190,11 +225,13 @@ public java.util.List getLabelsList() {
    *
    * repeated .google.api.LabelDescriptor labels = 2;
    */
-  public java.util.List 
+  public java.util.List
       getLabelsOrBuilderList() {
     return labels_;
   }
   /**
+   *
+   *
    * 
    * The set of labels that are available to describe a specific log entry.
    * Runtime requests that contain labels not specified here are
@@ -207,6 +244,8 @@ public int getLabelsCount() {
     return labels_.size();
   }
   /**
+   *
+   *
    * 
    * The set of labels that are available to describe a specific log entry.
    * Runtime requests that contain labels not specified here are
@@ -219,6 +258,8 @@ public com.google.api.LabelDescriptor getLabels(int index) {
     return labels_.get(index);
   }
   /**
+   *
+   *
    * 
    * The set of labels that are available to describe a specific log entry.
    * Runtime requests that contain labels not specified here are
@@ -227,48 +268,52 @@ public com.google.api.LabelDescriptor getLabels(int index) {
    *
    * repeated .google.api.LabelDescriptor labels = 2;
    */
-  public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(
-      int index) {
+  public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(int index) {
     return labels_.get(index);
   }
 
   public static final int DESCRIPTION_FIELD_NUMBER = 3;
-  private volatile Object description_;
+  private volatile java.lang.Object description_;
   /**
+   *
+   *
    * 
    * A human-readable description of this log. This information appears in
    * the documentation and can contain details.
    * 
* * string description = 3; + * + * @return The description. */ - public String getDescription() { - Object ref = description_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * A human-readable description of this log. This information appears in
    * the documentation and can contain details.
    * 
* * string description = 3; + * + * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + 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); description_ = b; return b; } else { @@ -277,42 +322,47 @@ public String getDescription() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 4; - private volatile Object displayName_; + private volatile java.lang.Object displayName_; /** + * + * *
    * The human-readable name for this log. This information appears on
    * the user interface and should be concise.
    * 
* * string display_name = 4; + * + * @return The displayName. */ - public String getDisplayName() { - Object ref = displayName_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * The human-readable name for this log. This information appears on
    * the user interface and should be concise.
    * 
* * string display_name = 4; + * + * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -321,7 +371,8 @@ public String getDisplayName() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -331,9 +382,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -349,7 +399,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -359,8 +409,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (int i = 0; i < labels_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, labels_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labels_.get(i)); } if (!getDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); @@ -373,29 +422,25 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof LogDescriptor)) { + if (!(obj instanceof com.google.api.LogDescriptor)) { return super.equals(obj); } - LogDescriptor other = (LogDescriptor) obj; + com.google.api.LogDescriptor other = (com.google.api.LogDescriptor) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getLabelsList() - .equals(other.getLabelsList())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!getName().equals(other.getName())) return false; + if (!getLabelsList().equals(other.getLabelsList())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -417,97 +462,103 @@ public int hashCode() { return hash; } - public static LogDescriptor parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.LogDescriptor parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static LogDescriptor parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.LogDescriptor parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static LogDescriptor parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.api.LogDescriptor parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static LogDescriptor parseFrom( + + public static com.google.api.LogDescriptor parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static LogDescriptor parseFrom(byte[] data) + + public static com.google.api.LogDescriptor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static LogDescriptor parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.LogDescriptor parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static LogDescriptor parseFrom(java.io.InputStream input) + + public static com.google.api.LogDescriptor 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 LogDescriptor parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.LogDescriptor parseFrom( + 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 LogDescriptor parseDelimitedFrom(java.io.InputStream input) + + public static com.google.api.LogDescriptor 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 LogDescriptor parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.LogDescriptor parseDelimitedFrom( + 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 LogDescriptor parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.api.LogDescriptor 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 LogDescriptor parseFrom( + + public static com.google.api.LogDescriptor 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(LogDescriptor prototype) { + + public static Builder newBuilder(com.google.api.LogDescriptor prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A description of a log type. Example in YAML format:
    *     - name: library.googleapis.com/activity_history
@@ -520,21 +571,20 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.LogDescriptor}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.LogDescriptor)
       com.google.api.LogDescriptorOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return LogProto.internal_static_google_api_LogDescriptor_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.api.LogProto.internal_static_google_api_LogDescriptor_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return LogProto.internal_static_google_api_LogDescriptor_fieldAccessorTable
+      return com.google.api.LogProto.internal_static_google_api_LogDescriptor_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              LogDescriptor.class, Builder.class);
+              com.google.api.LogDescriptor.class, com.google.api.LogDescriptor.Builder.class);
     }
 
     // Construct using com.google.api.LogDescriptor.newBuilder()
@@ -542,25 +592,25 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getLabelsFieldBuilder();
       }
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       name_ = "";
 
       if (labelsBuilder_ == null) {
         labels_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000002);
+        bitField0_ = (bitField0_ & ~0x00000001);
       } else {
         labelsBuilder_.clear();
       }
@@ -571,36 +621,34 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return LogProto.internal_static_google_api_LogDescriptor_descriptor;
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.api.LogProto.internal_static_google_api_LogDescriptor_descriptor;
     }
 
-    @Override
-    public LogDescriptor getDefaultInstanceForType() {
-      return LogDescriptor.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.LogDescriptor getDefaultInstanceForType() {
+      return com.google.api.LogDescriptor.getDefaultInstance();
     }
 
-    @Override
-    public LogDescriptor build() {
-      LogDescriptor result = buildPartial();
+    @java.lang.Override
+    public com.google.api.LogDescriptor build() {
+      com.google.api.LogDescriptor result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public LogDescriptor buildPartial() {
-      LogDescriptor result = new LogDescriptor(this);
+    @java.lang.Override
+    public com.google.api.LogDescriptor buildPartial() {
+      com.google.api.LogDescriptor result = new com.google.api.LogDescriptor(this);
       int from_bitField0_ = bitField0_;
-      int to_bitField0_ = 0;
       result.name_ = name_;
       if (labelsBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)) {
+        if (((bitField0_ & 0x00000001) != 0)) {
           labels_ = java.util.Collections.unmodifiableList(labels_);
-          bitField0_ = (bitField0_ & ~0x00000002);
+          bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.labels_ = labels_;
       } else {
@@ -608,55 +656,55 @@ public LogDescriptor buildPartial() {
       }
       result.description_ = description_;
       result.displayName_ = displayName_;
-      result.bitField0_ = to_bitField0_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof LogDescriptor) {
-        return mergeFrom((LogDescriptor)other);
+      if (other instanceof com.google.api.LogDescriptor) {
+        return mergeFrom((com.google.api.LogDescriptor) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(LogDescriptor other) {
-      if (other == LogDescriptor.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.LogDescriptor other) {
+      if (other == com.google.api.LogDescriptor.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -665,7 +713,7 @@ public Builder mergeFrom(LogDescriptor other) {
         if (!other.labels_.isEmpty()) {
           if (labels_.isEmpty()) {
             labels_ = other.labels_;
-            bitField0_ = (bitField0_ & ~0x00000002);
+            bitField0_ = (bitField0_ & ~0x00000001);
           } else {
             ensureLabelsIsMutable();
             labels_.addAll(other.labels_);
@@ -678,10 +726,11 @@ public Builder mergeFrom(LogDescriptor other) {
             labelsBuilder_.dispose();
             labelsBuilder_ = null;
             labels_ = other.labels_;
-            bitField0_ = (bitField0_ & ~0x00000002);
-            labelsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getLabelsFieldBuilder() : null;
+            bitField0_ = (bitField0_ & ~0x00000001);
+            labelsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getLabelsFieldBuilder()
+                    : null;
           } else {
             labelsBuilder_.addAllMessages(other.labels_);
           }
@@ -700,21 +749,21 @@ public Builder mergeFrom(LogDescriptor other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      LogDescriptor parsedMessage = null;
+      com.google.api.LogDescriptor parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (LogDescriptor) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.LogDescriptor) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -723,10 +772,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private Object name_ = "";
+    private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The name of the log. It must be less than 512 characters long and can
      * include the following characters: upper- and lower-case alphanumeric
@@ -735,20 +787,23 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The name of the log. It must be less than 512 characters long and can
      * include the following characters: upper- and lower-case alphanumeric
@@ -757,14 +812,14 @@ public String getName() {
      * 
* * string name = 1; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -772,6 +827,8 @@ public String getName() { } } /** + * + * *
      * The name of the log. It must be less than 512 characters long and can
      * include the following characters: upper- and lower-case alphanumeric
@@ -780,18 +837,22 @@ public String getName() {
      * 
* * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ - public Builder setName( - String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The name of the log. It must be less than 512 characters long and can
      * include the following characters: upper- and lower-case alphanumeric
@@ -800,14 +861,18 @@ public Builder setName(
      * 
* * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The name of the log. It must be less than 512 characters long and can
      * include the following characters: upper- and lower-case alphanumeric
@@ -816,32 +881,40 @@ public Builder clearName() {
      * 
* * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } private java.util.List labels_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLabelsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { labels_ = new java.util.ArrayList(labels_); - bitField0_ |= 0x00000002; - } + bitField0_ |= 0x00000001; + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.LabelDescriptor, com.google.api.LabelDescriptor.Builder, com.google.api.LabelDescriptorOrBuilder> labelsBuilder_; + com.google.api.LabelDescriptor, + com.google.api.LabelDescriptor.Builder, + com.google.api.LabelDescriptorOrBuilder> + labelsBuilder_; /** + * + * *
      * The set of labels that are available to describe a specific log entry.
      * Runtime requests that contain labels not specified here are
@@ -858,6 +931,8 @@ public java.util.List getLabelsList() {
       }
     }
     /**
+     *
+     *
      * 
      * The set of labels that are available to describe a specific log entry.
      * Runtime requests that contain labels not specified here are
@@ -874,6 +949,8 @@ public int getLabelsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The set of labels that are available to describe a specific log entry.
      * Runtime requests that contain labels not specified here are
@@ -890,6 +967,8 @@ public com.google.api.LabelDescriptor getLabels(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The set of labels that are available to describe a specific log entry.
      * Runtime requests that contain labels not specified here are
@@ -898,8 +977,7 @@ public com.google.api.LabelDescriptor getLabels(int index) {
      *
      * repeated .google.api.LabelDescriptor labels = 2;
      */
-    public Builder setLabels(
-        int index, com.google.api.LabelDescriptor value) {
+    public Builder setLabels(int index, com.google.api.LabelDescriptor value) {
       if (labelsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -913,6 +991,8 @@ public Builder setLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * The set of labels that are available to describe a specific log entry.
      * Runtime requests that contain labels not specified here are
@@ -921,8 +1001,7 @@ public Builder setLabels(
      *
      * repeated .google.api.LabelDescriptor labels = 2;
      */
-    public Builder setLabels(
-        int index, com.google.api.LabelDescriptor.Builder builderForValue) {
+    public Builder setLabels(int index, com.google.api.LabelDescriptor.Builder builderForValue) {
       if (labelsBuilder_ == null) {
         ensureLabelsIsMutable();
         labels_.set(index, builderForValue.build());
@@ -933,6 +1012,8 @@ public Builder setLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * The set of labels that are available to describe a specific log entry.
      * Runtime requests that contain labels not specified here are
@@ -955,6 +1036,8 @@ public Builder addLabels(com.google.api.LabelDescriptor value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The set of labels that are available to describe a specific log entry.
      * Runtime requests that contain labels not specified here are
@@ -963,8 +1046,7 @@ public Builder addLabels(com.google.api.LabelDescriptor value) {
      *
      * repeated .google.api.LabelDescriptor labels = 2;
      */
-    public Builder addLabels(
-        int index, com.google.api.LabelDescriptor value) {
+    public Builder addLabels(int index, com.google.api.LabelDescriptor value) {
       if (labelsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -978,6 +1060,8 @@ public Builder addLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * The set of labels that are available to describe a specific log entry.
      * Runtime requests that contain labels not specified here are
@@ -986,8 +1070,7 @@ public Builder addLabels(
      *
      * repeated .google.api.LabelDescriptor labels = 2;
      */
-    public Builder addLabels(
-        com.google.api.LabelDescriptor.Builder builderForValue) {
+    public Builder addLabels(com.google.api.LabelDescriptor.Builder builderForValue) {
       if (labelsBuilder_ == null) {
         ensureLabelsIsMutable();
         labels_.add(builderForValue.build());
@@ -998,6 +1081,8 @@ public Builder addLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * The set of labels that are available to describe a specific log entry.
      * Runtime requests that contain labels not specified here are
@@ -1006,8 +1091,7 @@ public Builder addLabels(
      *
      * repeated .google.api.LabelDescriptor labels = 2;
      */
-    public Builder addLabels(
-        int index, com.google.api.LabelDescriptor.Builder builderForValue) {
+    public Builder addLabels(int index, com.google.api.LabelDescriptor.Builder builderForValue) {
       if (labelsBuilder_ == null) {
         ensureLabelsIsMutable();
         labels_.add(index, builderForValue.build());
@@ -1018,6 +1102,8 @@ public Builder addLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * The set of labels that are available to describe a specific log entry.
      * Runtime requests that contain labels not specified here are
@@ -1027,11 +1113,10 @@ public Builder addLabels(
      * repeated .google.api.LabelDescriptor labels = 2;
      */
     public Builder addAllLabels(
-        Iterable values) {
+        java.lang.Iterable values) {
       if (labelsBuilder_ == null) {
         ensureLabelsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, labels_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, labels_);
         onChanged();
       } else {
         labelsBuilder_.addAllMessages(values);
@@ -1039,6 +1124,8 @@ public Builder addAllLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * The set of labels that are available to describe a specific log entry.
      * Runtime requests that contain labels not specified here are
@@ -1050,7 +1137,7 @@ public Builder addAllLabels(
     public Builder clearLabels() {
       if (labelsBuilder_ == null) {
         labels_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000002);
+        bitField0_ = (bitField0_ & ~0x00000001);
         onChanged();
       } else {
         labelsBuilder_.clear();
@@ -1058,6 +1145,8 @@ public Builder clearLabels() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The set of labels that are available to describe a specific log entry.
      * Runtime requests that contain labels not specified here are
@@ -1077,6 +1166,8 @@ public Builder removeLabels(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The set of labels that are available to describe a specific log entry.
      * Runtime requests that contain labels not specified here are
@@ -1085,11 +1176,12 @@ public Builder removeLabels(int index) {
      *
      * repeated .google.api.LabelDescriptor labels = 2;
      */
-    public com.google.api.LabelDescriptor.Builder getLabelsBuilder(
-        int index) {
+    public com.google.api.LabelDescriptor.Builder getLabelsBuilder(int index) {
       return getLabelsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The set of labels that are available to describe a specific log entry.
      * Runtime requests that contain labels not specified here are
@@ -1098,14 +1190,16 @@ public com.google.api.LabelDescriptor.Builder getLabelsBuilder(
      *
      * repeated .google.api.LabelDescriptor labels = 2;
      */
-    public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(
-        int index) {
+    public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(int index) {
       if (labelsBuilder_ == null) {
-        return labels_.get(index);  } else {
+        return labels_.get(index);
+      } else {
         return labelsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The set of labels that are available to describe a specific log entry.
      * Runtime requests that contain labels not specified here are
@@ -1114,8 +1208,8 @@ public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(
      *
      * repeated .google.api.LabelDescriptor labels = 2;
      */
-    public java.util.List 
-         getLabelsOrBuilderList() {
+    public java.util.List
+        getLabelsOrBuilderList() {
       if (labelsBuilder_ != null) {
         return labelsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1123,6 +1217,8 @@ public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * The set of labels that are available to describe a specific log entry.
      * Runtime requests that contain labels not specified here are
@@ -1132,10 +1228,12 @@ public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(
      * repeated .google.api.LabelDescriptor labels = 2;
      */
     public com.google.api.LabelDescriptor.Builder addLabelsBuilder() {
-      return getLabelsFieldBuilder().addBuilder(
-          com.google.api.LabelDescriptor.getDefaultInstance());
+      return getLabelsFieldBuilder()
+          .addBuilder(com.google.api.LabelDescriptor.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The set of labels that are available to describe a specific log entry.
      * Runtime requests that contain labels not specified here are
@@ -1144,12 +1242,13 @@ public com.google.api.LabelDescriptor.Builder addLabelsBuilder() {
      *
      * repeated .google.api.LabelDescriptor labels = 2;
      */
-    public com.google.api.LabelDescriptor.Builder addLabelsBuilder(
-        int index) {
-      return getLabelsFieldBuilder().addBuilder(
-          index, com.google.api.LabelDescriptor.getDefaultInstance());
+    public com.google.api.LabelDescriptor.Builder addLabelsBuilder(int index) {
+      return getLabelsFieldBuilder()
+          .addBuilder(index, com.google.api.LabelDescriptor.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The set of labels that are available to describe a specific log entry.
      * Runtime requests that contain labels not specified here are
@@ -1158,61 +1257,68 @@ public com.google.api.LabelDescriptor.Builder addLabelsBuilder(
      *
      * repeated .google.api.LabelDescriptor labels = 2;
      */
-    public java.util.List 
-         getLabelsBuilderList() {
+    public java.util.List getLabelsBuilderList() {
       return getLabelsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.api.LabelDescriptor, com.google.api.LabelDescriptor.Builder, com.google.api.LabelDescriptorOrBuilder> 
+            com.google.api.LabelDescriptor,
+            com.google.api.LabelDescriptor.Builder,
+            com.google.api.LabelDescriptorOrBuilder>
         getLabelsFieldBuilder() {
       if (labelsBuilder_ == null) {
-        labelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.api.LabelDescriptor, com.google.api.LabelDescriptor.Builder, com.google.api.LabelDescriptorOrBuilder>(
-                labels_,
-                ((bitField0_ & 0x00000002) != 0),
-                getParentForChildren(),
-                isClean());
+        labelsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.api.LabelDescriptor,
+                com.google.api.LabelDescriptor.Builder,
+                com.google.api.LabelDescriptorOrBuilder>(
+                labels_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         labels_ = null;
       }
       return labelsBuilder_;
     }
 
-    private Object description_ = "";
+    private java.lang.Object description_ = "";
     /**
+     *
+     *
      * 
      * A human-readable description of this log. This information appears in
      * the documentation and can contain details.
      * 
* * string description = 3; + * + * @return The description. */ - public String getDescription() { - Object ref = description_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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; + java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * A human-readable description of this log. This information appears in
      * the documentation and can contain details.
      * 
* * string description = 3; + * + * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - Object ref = description_; + 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( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1220,93 +1326,110 @@ public String getDescription() { } } /** + * + * *
      * A human-readable description of this log. This information appears in
      * the documentation and can contain details.
      * 
* * string description = 3; + * + * @param value The description to set. + * @return This builder for chaining. */ - public Builder setDescription( - String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * A human-readable description of this log. This information appears in
      * the documentation and can contain details.
      * 
* * string description = 3; + * + * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * A human-readable description of this log. This information appears in
      * the documentation and can contain details.
      * 
* * string description = 3; + * + * @param value The bytes for description to set. + * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private Object displayName_ = ""; + private java.lang.Object displayName_ = ""; /** + * + * *
      * The human-readable name for this log. This information appears on
      * the user interface and should be concise.
      * 
* * string display_name = 4; + * + * @return The displayName. */ - public String getDisplayName() { - Object ref = displayName_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The human-readable name for this log. This information appears on
      * the user interface and should be concise.
      * 
* * string display_name = 4; + * + * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - Object ref = displayName_; + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1314,106 +1437,116 @@ public String getDisplayName() { } } /** + * + * *
      * The human-readable name for this log. This information appears on
      * the user interface and should be concise.
      * 
* * string display_name = 4; + * + * @param value The displayName to set. + * @return This builder for chaining. */ - public Builder setDisplayName( - String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * The human-readable name for this log. This information appears on
      * the user interface and should be concise.
      * 
* * string display_name = 4; + * + * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * The human-readable name for this log. This information appears on
      * the user interface and should be concise.
      * 
* * string display_name = 4; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.LogDescriptor) } // @@protoc_insertion_point(class_scope:google.api.LogDescriptor) - private static final LogDescriptor DEFAULT_INSTANCE; + private static final com.google.api.LogDescriptor DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new LogDescriptor(); + DEFAULT_INSTANCE = new com.google.api.LogDescriptor(); } - public static LogDescriptor getDefaultInstance() { + public static com.google.api.LogDescriptor getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public LogDescriptor parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LogDescriptor(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogDescriptor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LogDescriptor(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public LogDescriptor getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.LogDescriptor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/LogDescriptorOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/LogDescriptorOrBuilder.java index 287ef0d3..6a08375a 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/LogDescriptorOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/LogDescriptorOrBuilder.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/log.proto package com.google.api; -public interface LogDescriptorOrBuilder extends +public interface LogDescriptorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.LogDescriptor) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the log. It must be less than 512 characters long and can
    * include the following characters: upper- and lower-case alphanumeric
@@ -16,9 +34,13 @@ public interface LogDescriptorOrBuilder extends
    * 
* * string name = 1; + * + * @return The name. */ - String getName(); + java.lang.String getName(); /** + * + * *
    * The name of the log. It must be less than 512 characters long and can
    * include the following characters: upper- and lower-case alphanumeric
@@ -27,11 +49,14 @@ public interface LogDescriptorOrBuilder extends
    * 
* * string name = 1; + * + * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The set of labels that are available to describe a specific log entry.
    * Runtime requests that contain labels not specified here are
@@ -40,9 +65,10 @@ public interface LogDescriptorOrBuilder extends
    *
    * repeated .google.api.LabelDescriptor labels = 2;
    */
-  java.util.List
-      getLabelsList();
+  java.util.List getLabelsList();
   /**
+   *
+   *
    * 
    * The set of labels that are available to describe a specific log entry.
    * Runtime requests that contain labels not specified here are
@@ -51,8 +77,10 @@ public interface LogDescriptorOrBuilder extends
    *
    * repeated .google.api.LabelDescriptor labels = 2;
    */
-  LabelDescriptor getLabels(int index);
+  com.google.api.LabelDescriptor getLabels(int index);
   /**
+   *
+   *
    * 
    * The set of labels that are available to describe a specific log entry.
    * Runtime requests that contain labels not specified here are
@@ -63,6 +91,8 @@ public interface LogDescriptorOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * The set of labels that are available to describe a specific log entry.
    * Runtime requests that contain labels not specified here are
@@ -71,9 +101,10 @@ public interface LogDescriptorOrBuilder extends
    *
    * repeated .google.api.LabelDescriptor labels = 2;
    */
-  java.util.List 
-      getLabelsOrBuilderList();
+  java.util.List getLabelsOrBuilderList();
   /**
+   *
+   *
    * 
    * The set of labels that are available to describe a specific log entry.
    * Runtime requests that contain labels not specified here are
@@ -82,46 +113,59 @@ public interface LogDescriptorOrBuilder extends
    *
    * repeated .google.api.LabelDescriptor labels = 2;
    */
-  com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(
-      int index);
+  com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * A human-readable description of this log. This information appears in
    * the documentation and can contain details.
    * 
* * string description = 3; + * + * @return The description. */ - String getDescription(); + java.lang.String getDescription(); /** + * + * *
    * A human-readable description of this log. This information appears in
    * the documentation and can contain details.
    * 
* * string description = 3; + * + * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * The human-readable name for this log. This information appears on
    * the user interface and should be concise.
    * 
* * string display_name = 4; + * + * @return The displayName. */ - String getDisplayName(); + java.lang.String getDisplayName(); /** + * + * *
    * The human-readable name for this log. This information appears on
    * the user interface and should be concise.
    * 
* * string display_name = 4; + * + * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/LogProto.java b/proto-google-common-protos/src/main/java/com/google/api/LogProto.java index 04327385..2aaad090 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/LogProto.java +++ b/proto-google-common-protos/src/main/java/com/google/api/LogProto.java @@ -1,3 +1,18 @@ +/* + * 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/log.proto @@ -5,57 +20,48 @@ public final class LogProto { private LogProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + 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_LogDescriptor_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_LogDescriptor_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_api_LogDescriptor_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { - String[] descriptorData = { - "\n\024google/api/log.proto\022\ngoogle.api\032\026goog" + - "le/api/label.proto\"u\n\rLogDescriptor\022\014\n\004n" + - "ame\030\001 \001(\t\022+\n\006labels\030\002 \003(\0132\033.google.api.L" + - "abelDescriptor\022\023\n\013description\030\003 \001(\t\022\024\n\014d" + - "isplay_name\030\004 \001(\tBj\n\016com.google.apiB\010Log" + - "ProtoP\001ZEgoogle.golang.org/genproto/goog" + - "leapis/api/serviceconfig;serviceconfig\242\002" + - "\004GAPIb\006proto3" + java.lang.String[] descriptorData = { + "\n\024google/api/log.proto\022\ngoogle.api\032\026goog" + + "le/api/label.proto\"u\n\rLogDescriptor\022\014\n\004n" + + "ame\030\001 \001(\t\022+\n\006labels\030\002 \003(\0132\033.google.api.L" + + "abelDescriptor\022\023\n\013description\030\003 \001(\t\022\024\n\014d" + + "isplay_name\030\004 \001(\tBj\n\016com.google.apiB\010Log" + + "ProtoP\001ZEgoogle.golang.org/genproto/goog" + + "leapis/api/serviceconfig;serviceconfig\242\002" + + "\004GAPIb\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.LabelProto.getDescriptor(), - }, assigner); - internal_static_google_api_LogDescriptor_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_api_LogDescriptor_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_LogDescriptor_descriptor, - new String[] { "Name", "Labels", "Description", "DisplayName", }); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.LabelProto.getDescriptor(), + }); + internal_static_google_api_LogDescriptor_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_api_LogDescriptor_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_LogDescriptor_descriptor, + new java.lang.String[] { + "Name", "Labels", "Description", "DisplayName", + }); com.google.api.LabelProto.getDescriptor(); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/Logging.java b/proto-google-common-protos/src/main/java/com/google/api/Logging.java index e427f520..3cdbb7cf 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/Logging.java +++ b/proto-google-common-protos/src/main/java/com/google/api/Logging.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/logging.proto package com.google.api; /** + * + * *
  * Logging configuration of the service.
  * The following example shows how to configure logs to be sent to the
@@ -36,32 +53,39 @@
  *
  * Protobuf type {@code google.api.Logging}
  */
-public  final class Logging extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Logging extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.Logging)
     LoggingOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Logging.newBuilder() to construct.
   private Logging(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Logging() {
     producerDestinations_ = java.util.Collections.emptyList();
     consumerDestinations_ = java.util.Collections.emptyList();
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new Logging();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Logging(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -74,38 +98,43 @@ private Logging(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              producerDestinations_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                producerDestinations_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              producerDestinations_.add(
+                  input.readMessage(
+                      com.google.api.Logging.LoggingDestination.parser(), extensionRegistry));
+              break;
             }
-            producerDestinations_.add(
-                input.readMessage(LoggingDestination.parser(), extensionRegistry));
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              consumerDestinations_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                consumerDestinations_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              consumerDestinations_.add(
+                  input.readMessage(
+                      com.google.api.Logging.LoggingDestination.parser(), extensionRegistry));
+              break;
             }
-            consumerDestinations_.add(
-                input.readMessage(LoggingDestination.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         producerDestinations_ = java.util.Collections.unmodifiableList(producerDestinations_);
@@ -117,44 +146,54 @@ private Logging(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.LoggingProto.internal_static_google_api_Logging_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return com.google.api.LoggingProto.internal_static_google_api_Logging_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            Logging.class, Builder.class);
+            com.google.api.Logging.class, com.google.api.Logging.Builder.class);
   }
 
-  public interface LoggingDestinationOrBuilder extends
+  public interface LoggingDestinationOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.api.Logging.LoggingDestination)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The monitored resource type. The type must be defined in the
      * [Service.monitored_resources][google.api.Service.monitored_resources] section.
      * 
* * string monitored_resource = 3; + * + * @return The monitoredResource. */ - String getMonitoredResource(); + java.lang.String getMonitoredResource(); /** + * + * *
      * The monitored resource type. The type must be defined in the
      * [Service.monitored_resources][google.api.Service.monitored_resources] section.
      * 
* * string monitored_resource = 3; + * + * @return The bytes for monitoredResource. */ - com.google.protobuf.ByteString - getMonitoredResourceBytes(); + com.google.protobuf.ByteString getMonitoredResourceBytes(); /** + * + * *
      * Names of the logs to be sent to this destination. Each name must
      * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
@@ -163,10 +202,13 @@ public interface LoggingDestinationOrBuilder extends
      * 
* * repeated string logs = 1; + * + * @return A list containing the logs. */ - java.util.List - getLogsList(); + java.util.List getLogsList(); /** + * + * *
      * Names of the logs to be sent to this destination. Each name must
      * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
@@ -175,9 +217,13 @@ public interface LoggingDestinationOrBuilder extends
      * 
* * repeated string logs = 1; + * + * @return The count of logs. */ int getLogsCount(); /** + * + * *
      * Names of the logs to be sent to this destination. Each name must
      * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
@@ -186,9 +232,14 @@ public interface LoggingDestinationOrBuilder extends
      * 
* * repeated string logs = 1; + * + * @param index The index of the element to return. + * @return The logs at the given index. */ - String getLogs(int index); + java.lang.String getLogs(int index); /** + * + * *
      * Names of the logs to be sent to this destination. Each name must
      * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
@@ -197,11 +248,15 @@ public interface LoggingDestinationOrBuilder extends
      * 
* * repeated string logs = 1; + * + * @param index The index of the value to return. + * @return The bytes of the logs at the given index. */ - com.google.protobuf.ByteString - getLogsBytes(int index); + com.google.protobuf.ByteString getLogsBytes(int index); } /** + * + * *
    * Configuration of a specific logging destination (the producer project
    * or the consumer project).
@@ -209,32 +264,39 @@ public interface LoggingDestinationOrBuilder extends
    *
    * Protobuf type {@code google.api.Logging.LoggingDestination}
    */
-  public  static final class LoggingDestination extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class LoggingDestination extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.api.Logging.LoggingDestination)
       LoggingDestinationOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use LoggingDestination.newBuilder() to construct.
     private LoggingDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private LoggingDestination() {
       monitoredResource_ = "";
       logs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     }
 
-    @Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    @java.lang.Override
+    @SuppressWarnings({"unused"})
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+      return new LoggingDestination();
+    }
+
+    @java.lang.Override
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private LoggingDestination(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       this();
       if (extensionRegistry == null) {
-        throw new NullPointerException();
+        throw new java.lang.NullPointerException();
       }
       int mutable_bitField0_ = 0;
       com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -247,94 +309,102 @@ private LoggingDestination(
             case 0:
               done = true;
               break;
-            case 10: {
-              String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                logs_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000002;
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                  logs_ = new com.google.protobuf.LazyStringArrayList();
+                  mutable_bitField0_ |= 0x00000001;
+                }
+                logs_.add(s);
+                break;
               }
-              logs_.add(s);
-              break;
-            }
-            case 26: {
-              String s = input.readStringRequireUtf8();
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              monitoredResource_ = s;
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                monitoredResource_ = s;
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
-        if (((mutable_bitField0_ & 0x00000002) != 0)) {
+        if (((mutable_bitField0_ & 0x00000001) != 0)) {
           logs_ = logs_.getUnmodifiableView();
         }
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.api.LoggingProto.internal_static_google_api_Logging_LoggingDestination_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.api.LoggingProto
+          .internal_static_google_api_Logging_LoggingDestination_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.api.LoggingProto.internal_static_google_api_Logging_LoggingDestination_fieldAccessorTable
+      return com.google.api.LoggingProto
+          .internal_static_google_api_Logging_LoggingDestination_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              LoggingDestination.class, Builder.class);
+              com.google.api.Logging.LoggingDestination.class,
+              com.google.api.Logging.LoggingDestination.Builder.class);
     }
 
-    private int bitField0_;
     public static final int MONITORED_RESOURCE_FIELD_NUMBER = 3;
-    private volatile Object monitoredResource_;
+    private volatile java.lang.Object monitoredResource_;
     /**
+     *
+     *
      * 
      * The monitored resource type. The type must be defined in the
      * [Service.monitored_resources][google.api.Service.monitored_resources] section.
      * 
* * string monitored_resource = 3; + * + * @return The monitoredResource. */ - public String getMonitoredResource() { - Object ref = monitoredResource_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getMonitoredResource() { + java.lang.Object ref = monitoredResource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); monitoredResource_ = s; return s; } } /** + * + * *
      * The monitored resource type. The type must be defined in the
      * [Service.monitored_resources][google.api.Service.monitored_resources] section.
      * 
* * string monitored_resource = 3; + * + * @return The bytes for monitoredResource. */ - public com.google.protobuf.ByteString - getMonitoredResourceBytes() { - Object ref = monitoredResource_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getMonitoredResourceBytes() { + java.lang.Object ref = monitoredResource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); monitoredResource_ = b; return b; } else { @@ -345,6 +415,8 @@ public String getMonitoredResource() { public static final int LOGS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList logs_; /** + * + * *
      * Names of the logs to be sent to this destination. Each name must
      * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
@@ -353,12 +425,15 @@ public String getMonitoredResource() {
      * 
* * repeated string logs = 1; + * + * @return A list containing the logs. */ - public com.google.protobuf.ProtocolStringList - getLogsList() { + public com.google.protobuf.ProtocolStringList getLogsList() { return logs_; } /** + * + * *
      * Names of the logs to be sent to this destination. Each name must
      * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
@@ -367,11 +442,15 @@ public String getMonitoredResource() {
      * 
* * repeated string logs = 1; + * + * @return The count of logs. */ public int getLogsCount() { return logs_.size(); } /** + * + * *
      * Names of the logs to be sent to this destination. Each name must
      * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
@@ -380,11 +459,16 @@ public int getLogsCount() {
      * 
* * repeated string logs = 1; + * + * @param index The index of the element to return. + * @return The logs at the given index. */ - public String getLogs(int index) { + public java.lang.String getLogs(int index) { return logs_.get(index); } /** + * + * *
      * Names of the logs to be sent to this destination. Each name must
      * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
@@ -393,14 +477,17 @@ public String getLogs(int index) {
      * 
* * repeated string logs = 1; + * + * @param index The index of the value to return. + * @return The bytes of the logs at the given index. */ - public com.google.protobuf.ByteString - getLogsBytes(int index) { + public com.google.protobuf.ByteString getLogsBytes(int index) { return logs_.getByteString(index); } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -410,9 +497,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < logs_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, logs_.getRaw(i)); } @@ -422,7 +508,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -444,25 +530,24 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof LoggingDestination)) { + if (!(obj instanceof com.google.api.Logging.LoggingDestination)) { return super.equals(obj); } - LoggingDestination other = (LoggingDestination) obj; + com.google.api.Logging.LoggingDestination other = + (com.google.api.Logging.LoggingDestination) obj; - if (!getMonitoredResource() - .equals(other.getMonitoredResource())) return false; - if (!getLogsList() - .equals(other.getLogsList())) return false; + if (!getMonitoredResource().equals(other.getMonitoredResource())) return false; + if (!getLogsList().equals(other.getLogsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -480,97 +565,105 @@ public int hashCode() { return hash; } - public static LoggingDestination parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.Logging.LoggingDestination parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static LoggingDestination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Logging.LoggingDestination parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static LoggingDestination parseFrom( + + public static com.google.api.Logging.LoggingDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static LoggingDestination parseFrom( + + public static com.google.api.Logging.LoggingDestination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static LoggingDestination parseFrom(byte[] data) + + public static com.google.api.Logging.LoggingDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static LoggingDestination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Logging.LoggingDestination parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static LoggingDestination parseFrom(java.io.InputStream input) + + public static com.google.api.Logging.LoggingDestination 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 LoggingDestination parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Logging.LoggingDestination parseFrom( + 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 LoggingDestination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.api.Logging.LoggingDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static LoggingDestination parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Logging.LoggingDestination parseDelimitedFrom( + 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 LoggingDestination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.api.Logging.LoggingDestination parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static LoggingDestination parseFrom( + + public static com.google.api.Logging.LoggingDestination 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(LoggingDestination prototype) { + + public static Builder newBuilder(com.google.api.Logging.LoggingDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
      * Configuration of a specific logging destination (the producer project
      * or the consumer project).
@@ -578,21 +671,24 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.api.Logging.LoggingDestination}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.api.Logging.LoggingDestination)
-        LoggingDestinationOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.api.LoggingProto.internal_static_google_api_Logging_LoggingDestination_descriptor;
+        com.google.api.Logging.LoggingDestinationOrBuilder {
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.api.LoggingProto
+            .internal_static_google_api_Logging_LoggingDestination_descriptor;
       }
 
-      @Override
-      protected FieldAccessorTable
+      @java.lang.Override
+      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.api.LoggingProto.internal_static_google_api_Logging_LoggingDestination_fieldAccessorTable
+        return com.google.api.LoggingProto
+            .internal_static_google_api_Logging_LoggingDestination_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                LoggingDestination.class, Builder.class);
+                com.google.api.Logging.LoggingDestination.class,
+                com.google.api.Logging.LoggingDestination.Builder.class);
       }
 
       // Construct using com.google.api.Logging.LoggingDestination.newBuilder()
@@ -600,106 +696,107 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
-      @Override
+
+      @java.lang.Override
       public Builder clear() {
         super.clear();
         monitoredResource_ = "";
 
         logs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-        bitField0_ = (bitField0_ & ~0x00000002);
+        bitField0_ = (bitField0_ & ~0x00000001);
         return this;
       }
 
-      @Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.api.LoggingProto.internal_static_google_api_Logging_LoggingDestination_descriptor;
+      @java.lang.Override
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.api.LoggingProto
+            .internal_static_google_api_Logging_LoggingDestination_descriptor;
       }
 
-      @Override
-      public LoggingDestination getDefaultInstanceForType() {
-        return LoggingDestination.getDefaultInstance();
+      @java.lang.Override
+      public com.google.api.Logging.LoggingDestination getDefaultInstanceForType() {
+        return com.google.api.Logging.LoggingDestination.getDefaultInstance();
       }
 
-      @Override
-      public LoggingDestination build() {
-        LoggingDestination result = buildPartial();
+      @java.lang.Override
+      public com.google.api.Logging.LoggingDestination build() {
+        com.google.api.Logging.LoggingDestination result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
         return result;
       }
 
-      @Override
-      public LoggingDestination buildPartial() {
-        LoggingDestination result = new LoggingDestination(this);
+      @java.lang.Override
+      public com.google.api.Logging.LoggingDestination buildPartial() {
+        com.google.api.Logging.LoggingDestination result =
+            new com.google.api.Logging.LoggingDestination(this);
         int from_bitField0_ = bitField0_;
-        int to_bitField0_ = 0;
         result.monitoredResource_ = monitoredResource_;
-        if (((bitField0_ & 0x00000002) != 0)) {
+        if (((bitField0_ & 0x00000001) != 0)) {
           logs_ = logs_.getUnmodifiableView();
-          bitField0_ = (bitField0_ & ~0x00000002);
+          bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.logs_ = logs_;
-        result.bitField0_ = to_bitField0_;
         onBuilt();
         return result;
       }
 
-      @Override
+      @java.lang.Override
       public Builder clone() {
         return super.clone();
       }
-      @Override
+
+      @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
-      @Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+      @java.lang.Override
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-      @Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+      @java.lang.Override
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-      @Override
+
+      @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-      @Override
+
+      @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-      @Override
+
+      @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof LoggingDestination) {
-          return mergeFrom((LoggingDestination)other);
+        if (other instanceof com.google.api.Logging.LoggingDestination) {
+          return mergeFrom((com.google.api.Logging.LoggingDestination) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(LoggingDestination other) {
-        if (other == LoggingDestination.getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.api.Logging.LoggingDestination other) {
+        if (other == com.google.api.Logging.LoggingDestination.getDefaultInstance()) return this;
         if (!other.getMonitoredResource().isEmpty()) {
           monitoredResource_ = other.monitoredResource_;
           onChanged();
@@ -707,7 +804,7 @@ public Builder mergeFrom(LoggingDestination other) {
         if (!other.logs_.isEmpty()) {
           if (logs_.isEmpty()) {
             logs_ = other.logs_;
-            bitField0_ = (bitField0_ & ~0x00000002);
+            bitField0_ = (bitField0_ & ~0x00000001);
           } else {
             ensureLogsIsMutable();
             logs_.addAll(other.logs_);
@@ -719,21 +816,21 @@ public Builder mergeFrom(LoggingDestination other) {
         return this;
       }
 
-      @Override
+      @java.lang.Override
       public final boolean isInitialized() {
         return true;
       }
 
-      @Override
+      @java.lang.Override
       public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        LoggingDestination parsedMessage = null;
+        com.google.api.Logging.LoggingDestination parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (LoggingDestination) e.getUnfinishedMessage();
+          parsedMessage = (com.google.api.Logging.LoggingDestination) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -742,44 +839,50 @@ public Builder mergeFrom(
         }
         return this;
       }
+
       private int bitField0_;
 
-      private Object monitoredResource_ = "";
+      private java.lang.Object monitoredResource_ = "";
       /**
+       *
+       *
        * 
        * The monitored resource type. The type must be defined in the
        * [Service.monitored_resources][google.api.Service.monitored_resources] section.
        * 
* * string monitored_resource = 3; + * + * @return The monitoredResource. */ - public String getMonitoredResource() { - Object ref = monitoredResource_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getMonitoredResource() { + java.lang.Object ref = monitoredResource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); monitoredResource_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
        * The monitored resource type. The type must be defined in the
        * [Service.monitored_resources][google.api.Service.monitored_resources] section.
        * 
* * string monitored_resource = 3; + * + * @return The bytes for monitoredResource. */ - public com.google.protobuf.ByteString - getMonitoredResourceBytes() { - Object ref = monitoredResource_; + public com.google.protobuf.ByteString getMonitoredResourceBytes() { + java.lang.Object ref = monitoredResource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); monitoredResource_ = b; return b; } else { @@ -787,65 +890,81 @@ public String getMonitoredResource() { } } /** + * + * *
        * The monitored resource type. The type must be defined in the
        * [Service.monitored_resources][google.api.Service.monitored_resources] section.
        * 
* * string monitored_resource = 3; + * + * @param value The monitoredResource to set. + * @return This builder for chaining. */ - public Builder setMonitoredResource( - String value) { + public Builder setMonitoredResource(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + monitoredResource_ = value; onChanged(); return this; } /** + * + * *
        * The monitored resource type. The type must be defined in the
        * [Service.monitored_resources][google.api.Service.monitored_resources] section.
        * 
* * string monitored_resource = 3; + * + * @return This builder for chaining. */ public Builder clearMonitoredResource() { - + monitoredResource_ = getDefaultInstance().getMonitoredResource(); onChanged(); return this; } /** + * + * *
        * The monitored resource type. The type must be defined in the
        * [Service.monitored_resources][google.api.Service.monitored_resources] section.
        * 
* * string monitored_resource = 3; + * + * @param value The bytes for monitoredResource to set. + * @return This builder for chaining. */ - public Builder setMonitoredResourceBytes( - com.google.protobuf.ByteString value) { + public Builder setMonitoredResourceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + monitoredResource_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList logs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList logs_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLogsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { logs_ = new com.google.protobuf.LazyStringArrayList(logs_); - bitField0_ |= 0x00000002; - } + bitField0_ |= 0x00000001; + } } /** + * + * *
        * Names of the logs to be sent to this destination. Each name must
        * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
@@ -854,12 +973,15 @@ private void ensureLogsIsMutable() {
        * 
* * repeated string logs = 1; + * + * @return A list containing the logs. */ - public com.google.protobuf.ProtocolStringList - getLogsList() { + public com.google.protobuf.ProtocolStringList getLogsList() { return logs_.getUnmodifiableView(); } /** + * + * *
        * Names of the logs to be sent to this destination. Each name must
        * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
@@ -868,11 +990,15 @@ private void ensureLogsIsMutable() {
        * 
* * repeated string logs = 1; + * + * @return The count of logs. */ public int getLogsCount() { return logs_.size(); } /** + * + * *
        * Names of the logs to be sent to this destination. Each name must
        * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
@@ -881,11 +1007,16 @@ public int getLogsCount() {
        * 
* * repeated string logs = 1; + * + * @param index The index of the element to return. + * @return The logs at the given index. */ - public String getLogs(int index) { + public java.lang.String getLogs(int index) { return logs_.get(index); } /** + * + * *
        * Names of the logs to be sent to this destination. Each name must
        * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
@@ -894,12 +1025,16 @@ public String getLogs(int index) {
        * 
* * repeated string logs = 1; + * + * @param index The index of the value to return. + * @return The bytes of the logs at the given index. */ - public com.google.protobuf.ByteString - getLogsBytes(int index) { + public com.google.protobuf.ByteString getLogsBytes(int index) { return logs_.getByteString(index); } /** + * + * *
        * Names of the logs to be sent to this destination. Each name must
        * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
@@ -908,18 +1043,23 @@ public String getLogs(int index) {
        * 
* * repeated string logs = 1; + * + * @param index The index to set the value at. + * @param value The logs to set. + * @return This builder for chaining. */ - public Builder setLogs( - int index, String value) { + public Builder setLogs(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); + throw new NullPointerException(); + } + ensureLogsIsMutable(); logs_.set(index, value); onChanged(); return this; } /** + * + * *
        * Names of the logs to be sent to this destination. Each name must
        * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
@@ -928,18 +1068,22 @@ public Builder setLogs(
        * 
* * repeated string logs = 1; + * + * @param value The logs to add. + * @return This builder for chaining. */ - public Builder addLogs( - String value) { + public Builder addLogs(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); + throw new NullPointerException(); + } + ensureLogsIsMutable(); logs_.add(value); onChanged(); return this; } /** + * + * *
        * Names of the logs to be sent to this destination. Each name must
        * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
@@ -948,16 +1092,19 @@ public Builder addLogs(
        * 
* * repeated string logs = 1; + * + * @param values The logs to add. + * @return This builder for chaining. */ - public Builder addAllLogs( - Iterable values) { + public Builder addAllLogs(java.lang.Iterable values) { ensureLogsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logs_); onChanged(); return this; } /** + * + * *
        * Names of the logs to be sent to this destination. Each name must
        * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
@@ -966,14 +1113,18 @@ public Builder addAllLogs(
        * 
* * repeated string logs = 1; + * + * @return This builder for chaining. */ public Builder clearLogs() { logs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** + * + * *
        * Names of the logs to be sent to this destination. Each name must
        * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
@@ -982,74 +1133,78 @@ public Builder clearLogs() {
        * 
* * repeated string logs = 1; + * + * @param value The bytes of the logs to add. + * @return This builder for chaining. */ - public Builder addLogsBytes( - com.google.protobuf.ByteString value) { + public Builder addLogsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLogsIsMutable(); logs_.add(value); onChanged(); return this; } - @Override + + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.Logging.LoggingDestination) } // @@protoc_insertion_point(class_scope:google.api.Logging.LoggingDestination) - private static final LoggingDestination DEFAULT_INSTANCE; + private static final com.google.api.Logging.LoggingDestination DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new LoggingDestination(); + DEFAULT_INSTANCE = new com.google.api.Logging.LoggingDestination(); } - public static LoggingDestination getDefaultInstance() { + public static com.google.api.Logging.LoggingDestination getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public LoggingDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LoggingDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LoggingDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LoggingDestination(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public LoggingDestination getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.Logging.LoggingDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int PRODUCER_DESTINATIONS_FIELD_NUMBER = 1; - private java.util.List producerDestinations_; + private java.util.List producerDestinations_; /** + * + * *
    * Logging configurations for sending logs to the producer project.
    * There can be multiple producer destinations, each one must have a
@@ -1059,10 +1214,12 @@ public LoggingDestination getDefaultInstanceForType() {
    *
    * repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
    */
-  public java.util.List getProducerDestinationsList() {
+  public java.util.List getProducerDestinationsList() {
     return producerDestinations_;
   }
   /**
+   *
+   *
    * 
    * Logging configurations for sending logs to the producer project.
    * There can be multiple producer destinations, each one must have a
@@ -1072,11 +1229,13 @@ public java.util.List getProducerDestinationsList() {
    *
    * repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
    */
-  public java.util.List
+  public java.util.List
       getProducerDestinationsOrBuilderList() {
     return producerDestinations_;
   }
   /**
+   *
+   *
    * 
    * Logging configurations for sending logs to the producer project.
    * There can be multiple producer destinations, each one must have a
@@ -1090,6 +1249,8 @@ public int getProducerDestinationsCount() {
     return producerDestinations_.size();
   }
   /**
+   *
+   *
    * 
    * Logging configurations for sending logs to the producer project.
    * There can be multiple producer destinations, each one must have a
@@ -1099,10 +1260,12 @@ public int getProducerDestinationsCount() {
    *
    * repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
    */
-  public LoggingDestination getProducerDestinations(int index) {
+  public com.google.api.Logging.LoggingDestination getProducerDestinations(int index) {
     return producerDestinations_.get(index);
   }
   /**
+   *
+   *
    * 
    * Logging configurations for sending logs to the producer project.
    * There can be multiple producer destinations, each one must have a
@@ -1112,14 +1275,16 @@ public LoggingDestination getProducerDestinations(int index) {
    *
    * repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
    */
-  public LoggingDestinationOrBuilder getProducerDestinationsOrBuilder(
+  public com.google.api.Logging.LoggingDestinationOrBuilder getProducerDestinationsOrBuilder(
       int index) {
     return producerDestinations_.get(index);
   }
 
   public static final int CONSUMER_DESTINATIONS_FIELD_NUMBER = 2;
-  private java.util.List consumerDestinations_;
+  private java.util.List consumerDestinations_;
   /**
+   *
+   *
    * 
    * Logging configurations for sending logs to the consumer project.
    * There can be multiple consumer destinations, each one must have a
@@ -1129,10 +1294,12 @@ public LoggingDestinationOrBuilder getProducerDestinationsOrBuilder(
    *
    * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
    */
-  public java.util.List getConsumerDestinationsList() {
+  public java.util.List getConsumerDestinationsList() {
     return consumerDestinations_;
   }
   /**
+   *
+   *
    * 
    * Logging configurations for sending logs to the consumer project.
    * There can be multiple consumer destinations, each one must have a
@@ -1142,11 +1309,13 @@ public java.util.List getConsumerDestinationsList() {
    *
    * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
    */
-  public java.util.List
+  public java.util.List
       getConsumerDestinationsOrBuilderList() {
     return consumerDestinations_;
   }
   /**
+   *
+   *
    * 
    * Logging configurations for sending logs to the consumer project.
    * There can be multiple consumer destinations, each one must have a
@@ -1160,6 +1329,8 @@ public int getConsumerDestinationsCount() {
     return consumerDestinations_.size();
   }
   /**
+   *
+   *
    * 
    * Logging configurations for sending logs to the consumer project.
    * There can be multiple consumer destinations, each one must have a
@@ -1169,10 +1340,12 @@ public int getConsumerDestinationsCount() {
    *
    * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
    */
-  public LoggingDestination getConsumerDestinations(int index) {
+  public com.google.api.Logging.LoggingDestination getConsumerDestinations(int index) {
     return consumerDestinations_.get(index);
   }
   /**
+   *
+   *
    * 
    * Logging configurations for sending logs to the consumer project.
    * There can be multiple consumer destinations, each one must have a
@@ -1182,13 +1355,14 @@ public LoggingDestination getConsumerDestinations(int index) {
    *
    * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
    */
-  public LoggingDestinationOrBuilder getConsumerDestinationsOrBuilder(
+  public com.google.api.Logging.LoggingDestinationOrBuilder getConsumerDestinationsOrBuilder(
       int index) {
     return consumerDestinations_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-  @Override
+
+  @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
     if (isInitialized == 1) return true;
@@ -1198,9 +1372,8 @@ public final boolean isInitialized() {
     return true;
   }
 
-  @Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  @java.lang.Override
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < producerDestinations_.size(); i++) {
       output.writeMessage(1, producerDestinations_.get(i));
     }
@@ -1210,44 +1383,42 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     unknownFields.writeTo(output);
   }
 
-  @Override
+  @java.lang.Override
   public int getSerializedSize() {
     int size = memoizedSize;
     if (size != -1) return size;
 
     size = 0;
     for (int i = 0; i < producerDestinations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, producerDestinations_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(1, producerDestinations_.get(i));
     }
     for (int i = 0; i < consumerDestinations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, consumerDestinations_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(2, consumerDestinations_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
     return size;
   }
 
-  @Override
-  public boolean equals(final Object obj) {
+  @java.lang.Override
+  public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
-    if (!(obj instanceof Logging)) {
+    if (!(obj instanceof com.google.api.Logging)) {
       return super.equals(obj);
     }
-    Logging other = (Logging) obj;
+    com.google.api.Logging other = (com.google.api.Logging) obj;
 
-    if (!getProducerDestinationsList()
-        .equals(other.getProducerDestinationsList())) return false;
-    if (!getConsumerDestinationsList()
-        .equals(other.getConsumerDestinationsList())) return false;
+    if (!getProducerDestinationsList().equals(other.getProducerDestinationsList())) return false;
+    if (!getConsumerDestinationsList().equals(other.getConsumerDestinationsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
 
-  @Override
+  @java.lang.Override
   public int hashCode() {
     if (memoizedHashCode != 0) {
       return memoizedHashCode;
@@ -1267,97 +1438,103 @@ public int hashCode() {
     return hash;
   }
 
-  public static Logging parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.api.Logging parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Logging parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Logging parseFrom(
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Logging parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.api.Logging parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Logging parseFrom(
+
+  public static com.google.api.Logging parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Logging parseFrom(byte[] data)
+
+  public static com.google.api.Logging parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Logging parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Logging parseFrom(
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Logging parseFrom(java.io.InputStream input)
+
+  public static com.google.api.Logging 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 Logging parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Logging parseFrom(
+      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 Logging parseDelimitedFrom(java.io.InputStream input)
+
+  public static com.google.api.Logging 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 Logging parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Logging parseDelimitedFrom(
+      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 Logging parseFrom(
-      com.google.protobuf.CodedInputStream input)
+
+  public static com.google.api.Logging 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 Logging parseFrom(
+
+  public static com.google.api.Logging 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();
   }
 
-  @Override
-  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(Logging prototype) {
+
+  public static Builder newBuilder(com.google.api.Logging prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-  @Override
+
+  @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);
   }
 
-  @Override
-  protected Builder newBuilderForType(
-      BuilderParent parent) {
+  @java.lang.Override
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Logging configuration of the service.
    * The following example shows how to configure logs to be sent to the
@@ -1390,21 +1567,20 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.Logging}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.Logging)
       com.google.api.LoggingOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.api.LoggingProto.internal_static_google_api_Logging_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return com.google.api.LoggingProto.internal_static_google_api_Logging_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              Logging.class, Builder.class);
+              com.google.api.Logging.class, com.google.api.Logging.Builder.class);
     }
 
     // Construct using com.google.api.Logging.newBuilder()
@@ -1412,19 +1588,19 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getProducerDestinationsFieldBuilder();
         getConsumerDestinationsFieldBuilder();
       }
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       if (producerDestinationsBuilder_ == null) {
@@ -1442,29 +1618,28 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.api.LoggingProto.internal_static_google_api_Logging_descriptor;
     }
 
-    @Override
-    public Logging getDefaultInstanceForType() {
-      return Logging.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.Logging getDefaultInstanceForType() {
+      return com.google.api.Logging.getDefaultInstance();
     }
 
-    @Override
-    public Logging build() {
-      Logging result = buildPartial();
+    @java.lang.Override
+    public com.google.api.Logging build() {
+      com.google.api.Logging result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public Logging buildPartial() {
-      Logging result = new Logging(this);
+    @java.lang.Override
+    public com.google.api.Logging buildPartial() {
+      com.google.api.Logging result = new com.google.api.Logging(this);
       int from_bitField0_ = bitField0_;
       if (producerDestinationsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -1488,50 +1663,51 @@ public Logging buildPartial() {
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof Logging) {
-        return mergeFrom((Logging)other);
+      if (other instanceof com.google.api.Logging) {
+        return mergeFrom((com.google.api.Logging) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(Logging other) {
-      if (other == Logging.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.Logging other) {
+      if (other == com.google.api.Logging.getDefaultInstance()) return this;
       if (producerDestinationsBuilder_ == null) {
         if (!other.producerDestinations_.isEmpty()) {
           if (producerDestinations_.isEmpty()) {
@@ -1550,9 +1726,10 @@ public Builder mergeFrom(Logging other) {
             producerDestinationsBuilder_ = null;
             producerDestinations_ = other.producerDestinations_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            producerDestinationsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getProducerDestinationsFieldBuilder() : null;
+            producerDestinationsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getProducerDestinationsFieldBuilder()
+                    : null;
           } else {
             producerDestinationsBuilder_.addAllMessages(other.producerDestinations_);
           }
@@ -1576,9 +1753,10 @@ public Builder mergeFrom(Logging other) {
             consumerDestinationsBuilder_ = null;
             consumerDestinations_ = other.consumerDestinations_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            consumerDestinationsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getConsumerDestinationsFieldBuilder() : null;
+            consumerDestinationsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getConsumerDestinationsFieldBuilder()
+                    : null;
           } else {
             consumerDestinationsBuilder_.addAllMessages(other.consumerDestinations_);
           }
@@ -1589,21 +1767,21 @@ public Builder mergeFrom(Logging other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      Logging parsedMessage = null;
+      com.google.api.Logging parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (Logging) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.Logging) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1612,21 +1790,30 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List producerDestinations_ =
-      java.util.Collections.emptyList();
+    private java.util.List producerDestinations_ =
+        java.util.Collections.emptyList();
+
     private void ensureProducerDestinationsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        producerDestinations_ = new java.util.ArrayList(producerDestinations_);
+        producerDestinations_ =
+            new java.util.ArrayList(
+                producerDestinations_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        LoggingDestination, LoggingDestination.Builder, LoggingDestinationOrBuilder> producerDestinationsBuilder_;
+            com.google.api.Logging.LoggingDestination,
+            com.google.api.Logging.LoggingDestination.Builder,
+            com.google.api.Logging.LoggingDestinationOrBuilder>
+        producerDestinationsBuilder_;
 
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the producer project.
      * There can be multiple producer destinations, each one must have a
@@ -1636,7 +1823,7 @@ private void ensureProducerDestinationsIsMutable() {
      *
      * repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
      */
-    public java.util.List getProducerDestinationsList() {
+    public java.util.List getProducerDestinationsList() {
       if (producerDestinationsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(producerDestinations_);
       } else {
@@ -1644,6 +1831,8 @@ public java.util.List getProducerDestinationsList() {
       }
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the producer project.
      * There can be multiple producer destinations, each one must have a
@@ -1661,6 +1850,8 @@ public int getProducerDestinationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the producer project.
      * There can be multiple producer destinations, each one must have a
@@ -1670,7 +1861,7 @@ public int getProducerDestinationsCount() {
      *
      * repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
      */
-    public LoggingDestination getProducerDestinations(int index) {
+    public com.google.api.Logging.LoggingDestination getProducerDestinations(int index) {
       if (producerDestinationsBuilder_ == null) {
         return producerDestinations_.get(index);
       } else {
@@ -1678,6 +1869,8 @@ public LoggingDestination getProducerDestinations(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the producer project.
      * There can be multiple producer destinations, each one must have a
@@ -1688,7 +1881,7 @@ public LoggingDestination getProducerDestinations(int index) {
      * repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
      */
     public Builder setProducerDestinations(
-        int index, LoggingDestination value) {
+        int index, com.google.api.Logging.LoggingDestination value) {
       if (producerDestinationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1702,6 +1895,8 @@ public Builder setProducerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the producer project.
      * There can be multiple producer destinations, each one must have a
@@ -1712,7 +1907,7 @@ public Builder setProducerDestinations(
      * repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
      */
     public Builder setProducerDestinations(
-        int index, LoggingDestination.Builder builderForValue) {
+        int index, com.google.api.Logging.LoggingDestination.Builder builderForValue) {
       if (producerDestinationsBuilder_ == null) {
         ensureProducerDestinationsIsMutable();
         producerDestinations_.set(index, builderForValue.build());
@@ -1723,6 +1918,8 @@ public Builder setProducerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the producer project.
      * There can be multiple producer destinations, each one must have a
@@ -1732,7 +1929,7 @@ public Builder setProducerDestinations(
      *
      * repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
      */
-    public Builder addProducerDestinations(LoggingDestination value) {
+    public Builder addProducerDestinations(com.google.api.Logging.LoggingDestination value) {
       if (producerDestinationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1746,6 +1943,8 @@ public Builder addProducerDestinations(LoggingDestination value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the producer project.
      * There can be multiple producer destinations, each one must have a
@@ -1756,7 +1955,7 @@ public Builder addProducerDestinations(LoggingDestination value) {
      * repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
      */
     public Builder addProducerDestinations(
-        int index, LoggingDestination value) {
+        int index, com.google.api.Logging.LoggingDestination value) {
       if (producerDestinationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1770,6 +1969,8 @@ public Builder addProducerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the producer project.
      * There can be multiple producer destinations, each one must have a
@@ -1780,7 +1981,7 @@ public Builder addProducerDestinations(
      * repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
      */
     public Builder addProducerDestinations(
-        LoggingDestination.Builder builderForValue) {
+        com.google.api.Logging.LoggingDestination.Builder builderForValue) {
       if (producerDestinationsBuilder_ == null) {
         ensureProducerDestinationsIsMutable();
         producerDestinations_.add(builderForValue.build());
@@ -1791,6 +1992,8 @@ public Builder addProducerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the producer project.
      * There can be multiple producer destinations, each one must have a
@@ -1801,7 +2004,7 @@ public Builder addProducerDestinations(
      * repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
      */
     public Builder addProducerDestinations(
-        int index, LoggingDestination.Builder builderForValue) {
+        int index, com.google.api.Logging.LoggingDestination.Builder builderForValue) {
       if (producerDestinationsBuilder_ == null) {
         ensureProducerDestinationsIsMutable();
         producerDestinations_.add(index, builderForValue.build());
@@ -1812,6 +2015,8 @@ public Builder addProducerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the producer project.
      * There can be multiple producer destinations, each one must have a
@@ -1822,11 +2027,10 @@ public Builder addProducerDestinations(
      * repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
      */
     public Builder addAllProducerDestinations(
-        Iterable values) {
+        java.lang.Iterable values) {
       if (producerDestinationsBuilder_ == null) {
         ensureProducerDestinationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, producerDestinations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, producerDestinations_);
         onChanged();
       } else {
         producerDestinationsBuilder_.addAllMessages(values);
@@ -1834,6 +2038,8 @@ public Builder addAllProducerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the producer project.
      * There can be multiple producer destinations, each one must have a
@@ -1854,6 +2060,8 @@ public Builder clearProducerDestinations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the producer project.
      * There can be multiple producer destinations, each one must have a
@@ -1874,6 +2082,8 @@ public Builder removeProducerDestinations(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the producer project.
      * There can be multiple producer destinations, each one must have a
@@ -1883,11 +2093,13 @@ public Builder removeProducerDestinations(int index) {
      *
      * repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
      */
-    public LoggingDestination.Builder getProducerDestinationsBuilder(
+    public com.google.api.Logging.LoggingDestination.Builder getProducerDestinationsBuilder(
         int index) {
       return getProducerDestinationsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the producer project.
      * There can be multiple producer destinations, each one must have a
@@ -1897,14 +2109,17 @@ public LoggingDestination.Builder getProducerDestinationsBuilder(
      *
      * repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
      */
-    public LoggingDestinationOrBuilder getProducerDestinationsOrBuilder(
+    public com.google.api.Logging.LoggingDestinationOrBuilder getProducerDestinationsOrBuilder(
         int index) {
       if (producerDestinationsBuilder_ == null) {
-        return producerDestinations_.get(index);  } else {
+        return producerDestinations_.get(index);
+      } else {
         return producerDestinationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the producer project.
      * There can be multiple producer destinations, each one must have a
@@ -1914,8 +2129,8 @@ public LoggingDestinationOrBuilder getProducerDestinationsOrBuilder(
      *
      * repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
      */
-    public java.util.List
-         getProducerDestinationsOrBuilderList() {
+    public java.util.List
+        getProducerDestinationsOrBuilderList() {
       if (producerDestinationsBuilder_ != null) {
         return producerDestinationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1923,6 +2138,8 @@ public LoggingDestinationOrBuilder getProducerDestinationsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the producer project.
      * There can be multiple producer destinations, each one must have a
@@ -1932,11 +2149,13 @@ public LoggingDestinationOrBuilder getProducerDestinationsOrBuilder(
      *
      * repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
      */
-    public LoggingDestination.Builder addProducerDestinationsBuilder() {
-      return getProducerDestinationsFieldBuilder().addBuilder(
-          LoggingDestination.getDefaultInstance());
+    public com.google.api.Logging.LoggingDestination.Builder addProducerDestinationsBuilder() {
+      return getProducerDestinationsFieldBuilder()
+          .addBuilder(com.google.api.Logging.LoggingDestination.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the producer project.
      * There can be multiple producer destinations, each one must have a
@@ -1946,12 +2165,14 @@ public LoggingDestination.Builder addProducerDestinationsBuilder() {
      *
      * repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
      */
-    public LoggingDestination.Builder addProducerDestinationsBuilder(
+    public com.google.api.Logging.LoggingDestination.Builder addProducerDestinationsBuilder(
         int index) {
-      return getProducerDestinationsFieldBuilder().addBuilder(
-          index, LoggingDestination.getDefaultInstance());
+      return getProducerDestinationsFieldBuilder()
+          .addBuilder(index, com.google.api.Logging.LoggingDestination.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the producer project.
      * There can be multiple producer destinations, each one must have a
@@ -1961,16 +2182,22 @@ public LoggingDestination.Builder addProducerDestinationsBuilder(
      *
      * repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
      */
-    public java.util.List
-         getProducerDestinationsBuilderList() {
+    public java.util.List
+        getProducerDestinationsBuilderList() {
       return getProducerDestinationsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        LoggingDestination, LoggingDestination.Builder, LoggingDestinationOrBuilder>
+            com.google.api.Logging.LoggingDestination,
+            com.google.api.Logging.LoggingDestination.Builder,
+            com.google.api.Logging.LoggingDestinationOrBuilder>
         getProducerDestinationsFieldBuilder() {
       if (producerDestinationsBuilder_ == null) {
-        producerDestinationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            LoggingDestination, LoggingDestination.Builder, LoggingDestinationOrBuilder>(
+        producerDestinationsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.api.Logging.LoggingDestination,
+                com.google.api.Logging.LoggingDestination.Builder,
+                com.google.api.Logging.LoggingDestinationOrBuilder>(
                 producerDestinations_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -1980,19 +2207,27 @@ public LoggingDestination.Builder addProducerDestinationsBuilder(
       return producerDestinationsBuilder_;
     }
 
-    private java.util.List consumerDestinations_ =
-      java.util.Collections.emptyList();
+    private java.util.List consumerDestinations_ =
+        java.util.Collections.emptyList();
+
     private void ensureConsumerDestinationsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        consumerDestinations_ = new java.util.ArrayList(consumerDestinations_);
+        consumerDestinations_ =
+            new java.util.ArrayList(
+                consumerDestinations_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        LoggingDestination, LoggingDestination.Builder, LoggingDestinationOrBuilder> consumerDestinationsBuilder_;
+            com.google.api.Logging.LoggingDestination,
+            com.google.api.Logging.LoggingDestination.Builder,
+            com.google.api.Logging.LoggingDestinationOrBuilder>
+        consumerDestinationsBuilder_;
 
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the consumer project.
      * There can be multiple consumer destinations, each one must have a
@@ -2002,7 +2237,7 @@ private void ensureConsumerDestinationsIsMutable() {
      *
      * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
      */
-    public java.util.List getConsumerDestinationsList() {
+    public java.util.List getConsumerDestinationsList() {
       if (consumerDestinationsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(consumerDestinations_);
       } else {
@@ -2010,6 +2245,8 @@ public java.util.List getConsumerDestinationsList() {
       }
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the consumer project.
      * There can be multiple consumer destinations, each one must have a
@@ -2027,6 +2264,8 @@ public int getConsumerDestinationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the consumer project.
      * There can be multiple consumer destinations, each one must have a
@@ -2036,7 +2275,7 @@ public int getConsumerDestinationsCount() {
      *
      * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
      */
-    public LoggingDestination getConsumerDestinations(int index) {
+    public com.google.api.Logging.LoggingDestination getConsumerDestinations(int index) {
       if (consumerDestinationsBuilder_ == null) {
         return consumerDestinations_.get(index);
       } else {
@@ -2044,6 +2283,8 @@ public LoggingDestination getConsumerDestinations(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the consumer project.
      * There can be multiple consumer destinations, each one must have a
@@ -2054,7 +2295,7 @@ public LoggingDestination getConsumerDestinations(int index) {
      * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
      */
     public Builder setConsumerDestinations(
-        int index, LoggingDestination value) {
+        int index, com.google.api.Logging.LoggingDestination value) {
       if (consumerDestinationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2068,6 +2309,8 @@ public Builder setConsumerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the consumer project.
      * There can be multiple consumer destinations, each one must have a
@@ -2078,7 +2321,7 @@ public Builder setConsumerDestinations(
      * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
      */
     public Builder setConsumerDestinations(
-        int index, LoggingDestination.Builder builderForValue) {
+        int index, com.google.api.Logging.LoggingDestination.Builder builderForValue) {
       if (consumerDestinationsBuilder_ == null) {
         ensureConsumerDestinationsIsMutable();
         consumerDestinations_.set(index, builderForValue.build());
@@ -2089,6 +2332,8 @@ public Builder setConsumerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the consumer project.
      * There can be multiple consumer destinations, each one must have a
@@ -2098,7 +2343,7 @@ public Builder setConsumerDestinations(
      *
      * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
      */
-    public Builder addConsumerDestinations(LoggingDestination value) {
+    public Builder addConsumerDestinations(com.google.api.Logging.LoggingDestination value) {
       if (consumerDestinationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2112,6 +2357,8 @@ public Builder addConsumerDestinations(LoggingDestination value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the consumer project.
      * There can be multiple consumer destinations, each one must have a
@@ -2122,7 +2369,7 @@ public Builder addConsumerDestinations(LoggingDestination value) {
      * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
      */
     public Builder addConsumerDestinations(
-        int index, LoggingDestination value) {
+        int index, com.google.api.Logging.LoggingDestination value) {
       if (consumerDestinationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2136,6 +2383,8 @@ public Builder addConsumerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the consumer project.
      * There can be multiple consumer destinations, each one must have a
@@ -2146,7 +2395,7 @@ public Builder addConsumerDestinations(
      * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
      */
     public Builder addConsumerDestinations(
-        LoggingDestination.Builder builderForValue) {
+        com.google.api.Logging.LoggingDestination.Builder builderForValue) {
       if (consumerDestinationsBuilder_ == null) {
         ensureConsumerDestinationsIsMutable();
         consumerDestinations_.add(builderForValue.build());
@@ -2157,6 +2406,8 @@ public Builder addConsumerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the consumer project.
      * There can be multiple consumer destinations, each one must have a
@@ -2167,7 +2418,7 @@ public Builder addConsumerDestinations(
      * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
      */
     public Builder addConsumerDestinations(
-        int index, LoggingDestination.Builder builderForValue) {
+        int index, com.google.api.Logging.LoggingDestination.Builder builderForValue) {
       if (consumerDestinationsBuilder_ == null) {
         ensureConsumerDestinationsIsMutable();
         consumerDestinations_.add(index, builderForValue.build());
@@ -2178,6 +2429,8 @@ public Builder addConsumerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the consumer project.
      * There can be multiple consumer destinations, each one must have a
@@ -2188,11 +2441,10 @@ public Builder addConsumerDestinations(
      * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
      */
     public Builder addAllConsumerDestinations(
-        Iterable values) {
+        java.lang.Iterable values) {
       if (consumerDestinationsBuilder_ == null) {
         ensureConsumerDestinationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, consumerDestinations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, consumerDestinations_);
         onChanged();
       } else {
         consumerDestinationsBuilder_.addAllMessages(values);
@@ -2200,6 +2452,8 @@ public Builder addAllConsumerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the consumer project.
      * There can be multiple consumer destinations, each one must have a
@@ -2220,6 +2474,8 @@ public Builder clearConsumerDestinations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the consumer project.
      * There can be multiple consumer destinations, each one must have a
@@ -2240,6 +2496,8 @@ public Builder removeConsumerDestinations(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the consumer project.
      * There can be multiple consumer destinations, each one must have a
@@ -2249,11 +2507,13 @@ public Builder removeConsumerDestinations(int index) {
      *
      * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
      */
-    public LoggingDestination.Builder getConsumerDestinationsBuilder(
+    public com.google.api.Logging.LoggingDestination.Builder getConsumerDestinationsBuilder(
         int index) {
       return getConsumerDestinationsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the consumer project.
      * There can be multiple consumer destinations, each one must have a
@@ -2263,14 +2523,17 @@ public LoggingDestination.Builder getConsumerDestinationsBuilder(
      *
      * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
      */
-    public LoggingDestinationOrBuilder getConsumerDestinationsOrBuilder(
+    public com.google.api.Logging.LoggingDestinationOrBuilder getConsumerDestinationsOrBuilder(
         int index) {
       if (consumerDestinationsBuilder_ == null) {
-        return consumerDestinations_.get(index);  } else {
+        return consumerDestinations_.get(index);
+      } else {
         return consumerDestinationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the consumer project.
      * There can be multiple consumer destinations, each one must have a
@@ -2280,8 +2543,8 @@ public LoggingDestinationOrBuilder getConsumerDestinationsOrBuilder(
      *
      * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
      */
-    public java.util.List
-         getConsumerDestinationsOrBuilderList() {
+    public java.util.List
+        getConsumerDestinationsOrBuilderList() {
       if (consumerDestinationsBuilder_ != null) {
         return consumerDestinationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2289,6 +2552,8 @@ public LoggingDestinationOrBuilder getConsumerDestinationsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the consumer project.
      * There can be multiple consumer destinations, each one must have a
@@ -2298,11 +2563,13 @@ public LoggingDestinationOrBuilder getConsumerDestinationsOrBuilder(
      *
      * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
      */
-    public LoggingDestination.Builder addConsumerDestinationsBuilder() {
-      return getConsumerDestinationsFieldBuilder().addBuilder(
-          LoggingDestination.getDefaultInstance());
+    public com.google.api.Logging.LoggingDestination.Builder addConsumerDestinationsBuilder() {
+      return getConsumerDestinationsFieldBuilder()
+          .addBuilder(com.google.api.Logging.LoggingDestination.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the consumer project.
      * There can be multiple consumer destinations, each one must have a
@@ -2312,12 +2579,14 @@ public LoggingDestination.Builder addConsumerDestinationsBuilder() {
      *
      * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
      */
-    public LoggingDestination.Builder addConsumerDestinationsBuilder(
+    public com.google.api.Logging.LoggingDestination.Builder addConsumerDestinationsBuilder(
         int index) {
-      return getConsumerDestinationsFieldBuilder().addBuilder(
-          index, LoggingDestination.getDefaultInstance());
+      return getConsumerDestinationsFieldBuilder()
+          .addBuilder(index, com.google.api.Logging.LoggingDestination.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Logging configurations for sending logs to the consumer project.
      * There can be multiple consumer destinations, each one must have a
@@ -2327,16 +2596,22 @@ public LoggingDestination.Builder addConsumerDestinationsBuilder(
      *
      * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
      */
-    public java.util.List
-         getConsumerDestinationsBuilderList() {
+    public java.util.List
+        getConsumerDestinationsBuilderList() {
       return getConsumerDestinationsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        LoggingDestination, LoggingDestination.Builder, LoggingDestinationOrBuilder>
+            com.google.api.Logging.LoggingDestination,
+            com.google.api.Logging.LoggingDestination.Builder,
+            com.google.api.Logging.LoggingDestinationOrBuilder>
         getConsumerDestinationsFieldBuilder() {
       if (consumerDestinationsBuilder_ == null) {
-        consumerDestinationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            LoggingDestination, LoggingDestination.Builder, LoggingDestinationOrBuilder>(
+        consumerDestinationsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.api.Logging.LoggingDestination,
+                com.google.api.Logging.LoggingDestination.Builder,
+                com.google.api.Logging.LoggingDestinationOrBuilder>(
                 consumerDestinations_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -2345,56 +2620,54 @@ public LoggingDestination.Builder addConsumerDestinationsBuilder(
       }
       return consumerDestinationsBuilder_;
     }
-    @Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+
+    @java.lang.Override
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
-    @Override
+    @java.lang.Override
     public final Builder mergeUnknownFields(
         final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.api.Logging)
   }
 
   // @@protoc_insertion_point(class_scope:google.api.Logging)
-  private static final Logging DEFAULT_INSTANCE;
+  private static final com.google.api.Logging DEFAULT_INSTANCE;
+
   static {
-    DEFAULT_INSTANCE = new Logging();
+    DEFAULT_INSTANCE = new com.google.api.Logging();
   }
 
-  public static Logging getDefaultInstance() {
+  public static com.google.api.Logging getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @Override
-    public Logging parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Logging(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Logging parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Logging(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
   }
 
-  @Override
+  @java.lang.Override
   public com.google.protobuf.Parser getParserForType() {
     return PARSER;
   }
 
-  @Override
-  public Logging getDefaultInstanceForType() {
+  @java.lang.Override
+  public com.google.api.Logging getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-common-protos/src/main/java/com/google/api/LoggingOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/LoggingOrBuilder.java
index 538adcad..af4857ba 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/LoggingOrBuilder.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/LoggingOrBuilder.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/logging.proto
 
 package com.google.api;
 
-public interface LoggingOrBuilder extends
+public interface LoggingOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.api.Logging)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Logging configurations for sending logs to the producer project.
    * There can be multiple producer destinations, each one must have a
@@ -17,9 +35,10 @@ public interface LoggingOrBuilder extends
    *
    * repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
    */
-  java.util.List
-      getProducerDestinationsList();
+  java.util.List getProducerDestinationsList();
   /**
+   *
+   *
    * 
    * Logging configurations for sending logs to the producer project.
    * There can be multiple producer destinations, each one must have a
@@ -29,8 +48,10 @@ public interface LoggingOrBuilder extends
    *
    * repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
    */
-  Logging.LoggingDestination getProducerDestinations(int index);
+  com.google.api.Logging.LoggingDestination getProducerDestinations(int index);
   /**
+   *
+   *
    * 
    * Logging configurations for sending logs to the producer project.
    * There can be multiple producer destinations, each one must have a
@@ -42,6 +63,8 @@ public interface LoggingOrBuilder extends
    */
   int getProducerDestinationsCount();
   /**
+   *
+   *
    * 
    * Logging configurations for sending logs to the producer project.
    * There can be multiple producer destinations, each one must have a
@@ -51,9 +74,11 @@ public interface LoggingOrBuilder extends
    *
    * repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
    */
-  java.util.List
+  java.util.List
       getProducerDestinationsOrBuilderList();
   /**
+   *
+   *
    * 
    * Logging configurations for sending logs to the producer project.
    * There can be multiple producer destinations, each one must have a
@@ -63,10 +88,11 @@ public interface LoggingOrBuilder extends
    *
    * repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
    */
-  Logging.LoggingDestinationOrBuilder getProducerDestinationsOrBuilder(
-      int index);
+  com.google.api.Logging.LoggingDestinationOrBuilder getProducerDestinationsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Logging configurations for sending logs to the consumer project.
    * There can be multiple consumer destinations, each one must have a
@@ -76,9 +102,10 @@ Logging.LoggingDestinationOrBuilder getProducerDestinationsOrBuilder(
    *
    * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
    */
-  java.util.List
-      getConsumerDestinationsList();
+  java.util.List getConsumerDestinationsList();
   /**
+   *
+   *
    * 
    * Logging configurations for sending logs to the consumer project.
    * There can be multiple consumer destinations, each one must have a
@@ -88,8 +115,10 @@ Logging.LoggingDestinationOrBuilder getProducerDestinationsOrBuilder(
    *
    * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
    */
-  Logging.LoggingDestination getConsumerDestinations(int index);
+  com.google.api.Logging.LoggingDestination getConsumerDestinations(int index);
   /**
+   *
+   *
    * 
    * Logging configurations for sending logs to the consumer project.
    * There can be multiple consumer destinations, each one must have a
@@ -101,6 +130,8 @@ Logging.LoggingDestinationOrBuilder getProducerDestinationsOrBuilder(
    */
   int getConsumerDestinationsCount();
   /**
+   *
+   *
    * 
    * Logging configurations for sending logs to the consumer project.
    * There can be multiple consumer destinations, each one must have a
@@ -110,9 +141,11 @@ Logging.LoggingDestinationOrBuilder getProducerDestinationsOrBuilder(
    *
    * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
    */
-  java.util.List
+  java.util.List
       getConsumerDestinationsOrBuilderList();
   /**
+   *
+   *
    * 
    * Logging configurations for sending logs to the consumer project.
    * There can be multiple consumer destinations, each one must have a
@@ -122,6 +155,5 @@ Logging.LoggingDestinationOrBuilder getProducerDestinationsOrBuilder(
    *
    * repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
    */
-  Logging.LoggingDestinationOrBuilder getConsumerDestinationsOrBuilder(
-      int index);
+  com.google.api.Logging.LoggingDestinationOrBuilder getConsumerDestinationsOrBuilder(int index);
 }
diff --git a/proto-google-common-protos/src/main/java/com/google/api/LoggingProto.java b/proto-google-common-protos/src/main/java/com/google/api/LoggingProto.java
index 2297570d..43c8d732 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/LoggingProto.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/LoggingProto.java
@@ -1,3 +1,18 @@
+/*
+ * 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/logging.proto
 
@@ -5,69 +20,59 @@
 
 public final class LoggingProto {
   private LoggingProto() {}
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistryLite registry) {
-  }
 
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions(
-        (com.google.protobuf.ExtensionRegistryLite) registry);
+  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_Logging_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_Logging_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_Logging_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_api_Logging_LoggingDestination_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_Logging_LoggingDestination_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_Logging_LoggingDestination_fieldAccessorTable;
 
-  public static com.google.protobuf.Descriptors.FileDescriptor
-      getDescriptor() {
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     return descriptor;
   }
-  private static  com.google.protobuf.Descriptors.FileDescriptor
-      descriptor;
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
   static {
-    String[] descriptorData = {
-      "\n\030google/api/logging.proto\022\ngoogle.api\"\327" +
-      "\001\n\007Logging\022E\n\025producer_destinations\030\001 \003(" +
-      "\0132&.google.api.Logging.LoggingDestinatio" +
-      "n\022E\n\025consumer_destinations\030\002 \003(\0132&.googl" +
-      "e.api.Logging.LoggingDestination\032>\n\022Logg" +
-      "ingDestination\022\032\n\022monitored_resource\030\003 \001" +
-      "(\t\022\014\n\004logs\030\001 \003(\tBn\n\016com.google.apiB\014Logg" +
-      "ingProtoP\001ZEgoogle.golang.org/genproto/g" +
-      "oogleapis/api/serviceconfig;serviceconfi" +
-      "g\242\002\004GAPIb\006proto3"
+    java.lang.String[] descriptorData = {
+      "\n\030google/api/logging.proto\022\ngoogle.api\"\327"
+          + "\001\n\007Logging\022E\n\025producer_destinations\030\001 \003("
+          + "\0132&.google.api.Logging.LoggingDestinatio"
+          + "n\022E\n\025consumer_destinations\030\002 \003(\0132&.googl"
+          + "e.api.Logging.LoggingDestination\032>\n\022Logg"
+          + "ingDestination\022\032\n\022monitored_resource\030\003 \001"
+          + "(\t\022\014\n\004logs\030\001 \003(\tBn\n\016com.google.apiB\014Logg"
+          + "ingProtoP\001ZEgoogle.golang.org/genproto/g"
+          + "oogleapis/api/serviceconfig;serviceconfi"
+          + "g\242\002\004GAPIb\006proto3"
     };
-    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
-        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
-          public com.google.protobuf.ExtensionRegistry assignDescriptors(
-              com.google.protobuf.Descriptors.FileDescriptor root) {
-            descriptor = root;
-            return null;
-          }
-        };
-    com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-        }, assigner);
-    internal_static_google_api_Logging_descriptor =
-      getDescriptor().getMessageTypes().get(0);
-    internal_static_google_api_Logging_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_Logging_descriptor,
-        new String[] { "ProducerDestinations", "ConsumerDestinations", });
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
+    internal_static_google_api_Logging_descriptor = getDescriptor().getMessageTypes().get(0);
+    internal_static_google_api_Logging_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_Logging_descriptor,
+            new java.lang.String[] {
+              "ProducerDestinations", "ConsumerDestinations",
+            });
     internal_static_google_api_Logging_LoggingDestination_descriptor =
-      internal_static_google_api_Logging_descriptor.getNestedTypes().get(0);
-    internal_static_google_api_Logging_LoggingDestination_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_Logging_LoggingDestination_descriptor,
-        new String[] { "MonitoredResource", "Logs", });
+        internal_static_google_api_Logging_descriptor.getNestedTypes().get(0);
+    internal_static_google_api_Logging_LoggingDestination_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_Logging_LoggingDestination_descriptor,
+            new java.lang.String[] {
+              "MonitoredResource", "Logs",
+            });
   }
 
   // @@protoc_insertion_point(outer_class_scope)
diff --git a/proto-google-common-protos/src/main/java/com/google/api/Metric.java b/proto-google-common-protos/src/main/java/com/google/api/Metric.java
index ee2b4a41..e96abcf4 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/Metric.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/Metric.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/metric.proto
 
 package com.google.api;
 
 /**
+ *
+ *
  * 
  * A specific metric, identified by specifying values for all of the
  * labels of a [`MetricDescriptor`][google.api.MetricDescriptor].
@@ -11,31 +28,38 @@
  *
  * Protobuf type {@code google.api.Metric}
  */
-public  final class Metric extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Metric extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.Metric)
     MetricOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Metric.newBuilder() to construct.
   private Metric(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Metric() {
     type_ = "";
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new Metric();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Metric(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -48,107 +72,110 @@ private Metric(
           case 0:
             done = true;
             break;
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000002;
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                labels_ =
+                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry labels__ =
+                  input.readMessage(
+                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          case 26: {
-            String s = input.readStringRequireUtf8();
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            type_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              type_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.MetricProto.internal_static_google_api_Metric_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
-  @Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  @java.lang.Override
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 2:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
-  @Override
-  protected FieldAccessorTable
+
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return com.google.api.MetricProto.internal_static_google_api_Metric_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            Metric.class, Builder.class);
+            com.google.api.Metric.class, com.google.api.Metric.Builder.class);
   }
 
-  private int bitField0_;
   public static final int TYPE_FIELD_NUMBER = 3;
-  private volatile Object type_;
+  private volatile java.lang.Object type_;
   /**
+   *
+   *
    * 
    * An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor].
    * For example, `custom.googleapis.com/invoice/paid/amount`.
    * 
* * string type = 3; + * + * @return The type. */ - public String getType() { - Object ref = type_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** + * + * *
    * An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor].
    * For example, `custom.googleapis.com/invoice/paid/amount`.
    * 
* * string type = 3; + * + * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { - Object ref = type_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -157,24 +184,22 @@ public String getType() { } public static final int LABELS_FIELD_NUMBER = 2; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - String, String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.api.MetricProto.internal_static_google_api_Metric_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - String, String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.api.MetricProto.internal_static_google_api_Metric_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -183,6 +208,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * The set of label values that uniquely identify this metric. All
    * labels listed in the `MetricDescriptor` must be assigned values.
@@ -190,20 +217,20 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 2;
    */
-
-  public boolean containsLabels(
-      String key) {
-    if (key == null) { throw new NullPointerException(); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
-  @Deprecated
-  public java.util.Map getLabels() {
+  /** Use {@link #getLabelsMap()} instead. */
+  @java.lang.Deprecated
+  public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * The set of label values that uniquely identify this metric. All
    * labels listed in the `MetricDescriptor` must be assigned values.
@@ -211,11 +238,12 @@ public java.util.Map getLabels() {
    *
    * map<string, string> labels = 2;
    */
-
-  public java.util.Map getLabelsMap() {
+  public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * The set of label values that uniquely identify this metric. All
    * labels listed in the `MetricDescriptor` must be assigned values.
@@ -223,16 +251,16 @@ public java.util.Map getLabelsMap() {
    *
    * map<string, string> labels = 2;
    */
-
-  public String getLabelsOrDefault(
-      String key,
-      String defaultValue) {
-    if (key == null) { throw new NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * The set of label values that uniquely identify this metric. All
    * labels listed in the `MetricDescriptor` must be assigned values.
@@ -240,20 +268,20 @@ public String getLabelsOrDefault(
    *
    * map<string, string> labels = 2;
    */
-
-  public String getLabelsOrThrow(
-      String key) {
-    if (key == null) { throw new NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
-      throw new IllegalArgumentException();
+      throw new java.lang.IllegalArgumentException();
     }
     return map.get(key);
   }
 
   private byte memoizedIsInitialized = -1;
-  @Override
+
+  @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
     if (isInitialized == 1) return true;
@@ -263,36 +291,31 @@ public final boolean isInitialized() {
     return true;
   }
 
-  @Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        2);
+  @java.lang.Override
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2);
     if (!getTypeBytes().isEmpty()) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_);
     }
     unknownFields.writeTo(output);
   }
 
-  @Override
+  @java.lang.Override
   public int getSerializedSize() {
     int size = memoizedSize;
     if (size != -1) return size;
 
     size = 0;
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, labels__);
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labels__);
     }
     if (!getTypeBytes().isEmpty()) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, type_);
@@ -302,25 +325,23 @@ public int getSerializedSize() {
     return size;
   }
 
-  @Override
-  public boolean equals(final Object obj) {
+  @java.lang.Override
+  public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
-    if (!(obj instanceof Metric)) {
+    if (!(obj instanceof com.google.api.Metric)) {
       return super.equals(obj);
     }
-    Metric other = (Metric) obj;
+    com.google.api.Metric other = (com.google.api.Metric) obj;
 
-    if (!getType()
-        .equals(other.getType())) return false;
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!getType().equals(other.getType())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
 
-  @Override
+  @java.lang.Override
   public int hashCode() {
     if (memoizedHashCode != 0) {
       return memoizedHashCode;
@@ -338,97 +359,103 @@ public int hashCode() {
     return hash;
   }
 
-  public static Metric parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.api.Metric parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Metric parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Metric parseFrom(
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Metric parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.api.Metric parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Metric parseFrom(
+
+  public static com.google.api.Metric parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Metric parseFrom(byte[] data)
+
+  public static com.google.api.Metric parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Metric parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Metric parseFrom(
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Metric parseFrom(java.io.InputStream input)
+
+  public static com.google.api.Metric 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 Metric parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Metric parseFrom(
+      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 Metric parseDelimitedFrom(java.io.InputStream input)
+
+  public static com.google.api.Metric 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 Metric parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Metric parseDelimitedFrom(
+      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 Metric parseFrom(
-      com.google.protobuf.CodedInputStream input)
+
+  public static com.google.api.Metric 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 Metric parseFrom(
+
+  public static com.google.api.Metric 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();
   }
 
-  @Override
-  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(Metric prototype) {
+
+  public static Builder newBuilder(com.google.api.Metric prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-  @Override
+
+  @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);
   }
 
-  @Override
-  protected Builder newBuilderForType(
-      BuilderParent parent) {
+  @java.lang.Override
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * A specific metric, identified by specifying values for all of the
    * labels of a [`MetricDescriptor`][google.api.MetricDescriptor].
@@ -436,43 +463,40 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.Metric}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.Metric)
       com.google.api.MetricOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.api.MetricProto.internal_static_google_api_Metric_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 2:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 2:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
-    @Override
-    protected FieldAccessorTable
+
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return com.google.api.MetricProto.internal_static_google_api_Metric_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              Metric.class, Builder.class);
+              com.google.api.Metric.class, com.google.api.Metric.Builder.class);
     }
 
     // Construct using com.google.api.Metric.newBuilder()
@@ -480,17 +504,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       type_ = "";
@@ -499,109 +522,106 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.api.MetricProto.internal_static_google_api_Metric_descriptor;
     }
 
-    @Override
-    public Metric getDefaultInstanceForType() {
-      return Metric.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.Metric getDefaultInstanceForType() {
+      return com.google.api.Metric.getDefaultInstance();
     }
 
-    @Override
-    public Metric build() {
-      Metric result = buildPartial();
+    @java.lang.Override
+    public com.google.api.Metric build() {
+      com.google.api.Metric result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public Metric buildPartial() {
-      Metric result = new Metric(this);
+    @java.lang.Override
+    public com.google.api.Metric buildPartial() {
+      com.google.api.Metric result = new com.google.api.Metric(this);
       int from_bitField0_ = bitField0_;
-      int to_bitField0_ = 0;
       result.type_ = type_;
       result.labels_ = internalGetLabels();
       result.labels_.makeImmutable();
-      result.bitField0_ = to_bitField0_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof Metric) {
-        return mergeFrom((Metric)other);
+      if (other instanceof com.google.api.Metric) {
+        return mergeFrom((com.google.api.Metric) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(Metric other) {
-      if (other == Metric.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.Metric other) {
+      if (other == com.google.api.Metric.getDefaultInstance()) return this;
       if (!other.getType().isEmpty()) {
         type_ = other.type_;
         onChanged();
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      Metric parsedMessage = null;
+      com.google.api.Metric parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (Metric) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.Metric) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -610,44 +630,50 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private Object type_ = "";
+    private java.lang.Object type_ = "";
     /**
+     *
+     *
      * 
      * An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor].
      * For example, `custom.googleapis.com/invoice/paid/amount`.
      * 
* * string type = 3; + * + * @return The type. */ - public String getType() { - Object ref = type_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor].
      * For example, `custom.googleapis.com/invoice/paid/amount`.
      * 
* * string type = 3; + * + * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { - Object ref = type_; + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -655,73 +681,84 @@ public String getType() { } } /** + * + * *
      * An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor].
      * For example, `custom.googleapis.com/invoice/paid/amount`.
      * 
* * string type = 3; + * + * @param value The type to set. + * @return This builder for chaining. */ - public Builder setType( - String value) { + public Builder setType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** + * + * *
      * An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor].
      * For example, `custom.googleapis.com/invoice/paid/amount`.
      * 
* * string type = 3; + * + * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** + * + * *
      * An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor].
      * For example, `custom.googleapis.com/invoice/paid/amount`.
      * 
* * string type = 3; + * + * @param value The bytes for type to set. + * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - String, String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -733,6 +770,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * The set of label values that uniquely identify this metric. All
      * labels listed in the `MetricDescriptor` must be assigned values.
@@ -740,20 +779,20 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 2;
      */
-
-    public boolean containsLabels(
-        String key) {
-      if (key == null) { throw new NullPointerException(); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
-    @Deprecated
-    public java.util.Map getLabels() {
+    /** Use {@link #getLabelsMap()} instead. */
+    @java.lang.Deprecated
+    public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * The set of label values that uniquely identify this metric. All
      * labels listed in the `MetricDescriptor` must be assigned values.
@@ -761,11 +800,12 @@ public java.util.Map getLabels() {
      *
      * map<string, string> labels = 2;
      */
-
-    public java.util.Map getLabelsMap() {
+    public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * The set of label values that uniquely identify this metric. All
      * labels listed in the `MetricDescriptor` must be assigned values.
@@ -773,16 +813,17 @@ public java.util.Map getLabelsMap() {
      *
      * map<string, string> labels = 2;
      */
-
-    public String getLabelsOrDefault(
-        String key,
-        String defaultValue) {
-      if (key == null) { throw new NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrDefault(
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * The set of label values that uniquely identify this metric. All
      * labels listed in the `MetricDescriptor` must be assigned values.
@@ -790,24 +831,24 @@ public String getLabelsOrDefault(
      *
      * map<string, string> labels = 2;
      */
-
-    public String getLabelsOrThrow(
-        String key) {
-      if (key == null) { throw new NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
-        throw new IllegalArgumentException();
+        throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * The set of label values that uniquely identify this metric. All
      * labels listed in the `MetricDescriptor` must be assigned values.
@@ -815,23 +856,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 2;
      */
-
-    public Builder removeLabels(
-        String key) {
-      if (key == null) { throw new NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
-    @Deprecated
-    public java.util.Map
-    getMutableLabels() {
+    /** Use alternate mutation accessors instead. */
+    @java.lang.Deprecated
+    public java.util.Map getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * The set of label values that uniquely identify this metric. All
      * labels listed in the `MetricDescriptor` must be assigned values.
@@ -839,16 +878,19 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 2;
      */
-    public Builder putLabels(
-        String key,
-        String value) {
-      if (key == null) { throw new NullPointerException(); }
-      if (value == null) { throw new NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * The set of label values that uniquely identify this metric. All
      * labels listed in the `MetricDescriptor` must be assigned values.
@@ -856,63 +898,58 @@ public Builder putLabels(
      *
      * map<string, string> labels = 2;
      */
-
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       return this;
     }
-    @Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+
+    @java.lang.Override
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
-    @Override
+    @java.lang.Override
     public final Builder mergeUnknownFields(
         final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.api.Metric)
   }
 
   // @@protoc_insertion_point(class_scope:google.api.Metric)
-  private static final Metric DEFAULT_INSTANCE;
+  private static final com.google.api.Metric DEFAULT_INSTANCE;
+
   static {
-    DEFAULT_INSTANCE = new Metric();
+    DEFAULT_INSTANCE = new com.google.api.Metric();
   }
 
-  public static Metric getDefaultInstance() {
+  public static com.google.api.Metric getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @Override
-    public Metric parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Metric(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Metric parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Metric(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
   }
 
-  @Override
+  @java.lang.Override
   public com.google.protobuf.Parser getParserForType() {
     return PARSER;
   }
 
-  @Override
-  public Metric getDefaultInstanceForType() {
+  @java.lang.Override
+  public com.google.api.Metric getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptor.java b/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptor.java
index 3fd9cc80..c03fb720 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptor.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptor.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/metric.proto
 
 package com.google.api;
 
 /**
+ *
+ *
  * 
  * Defines a metric type and its schema. Once a metric descriptor is created,
  * deleting or altering it stops data collection and makes the metric type's
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.api.MetricDescriptor}
  */
-public  final class MetricDescriptor extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MetricDescriptor extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.MetricDescriptor)
     MetricDescriptorOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MetricDescriptor.newBuilder() to construct.
   private MetricDescriptor(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private MetricDescriptor() {
     name_ = "";
     type_ = "";
@@ -33,18 +51,24 @@ private MetricDescriptor() {
     launchStage_ = 0;
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new MetricDescriptor();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private MetricDescriptor(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -57,121 +81,136 @@ private MetricDescriptor(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              labels_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000004;
+              name_ = s;
+              break;
             }
-            labels_.add(
-                input.readMessage(LabelDescriptor.parser(), extensionRegistry));
-            break;
-          }
-          case 24: {
-            int rawValue = input.readEnum();
-
-            metricKind_ = rawValue;
-            break;
-          }
-          case 32: {
-            int rawValue = input.readEnum();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                labels_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              labels_.add(
+                  input.readMessage(com.google.api.LabelDescriptor.parser(), extensionRegistry));
+              break;
+            }
+          case 24:
+            {
+              int rawValue = input.readEnum();
 
-            valueType_ = rawValue;
-            break;
-          }
-          case 42: {
-            String s = input.readStringRequireUtf8();
+              metricKind_ = rawValue;
+              break;
+            }
+          case 32:
+            {
+              int rawValue = input.readEnum();
 
-            unit_ = s;
-            break;
-          }
-          case 50: {
-            String s = input.readStringRequireUtf8();
+              valueType_ = rawValue;
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            description_ = s;
-            break;
-          }
-          case 58: {
-            String s = input.readStringRequireUtf8();
+              unit_ = s;
+              break;
+            }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            displayName_ = s;
-            break;
-          }
-          case 66: {
-            String s = input.readStringRequireUtf8();
+              description_ = s;
+              break;
+            }
+          case 58:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            type_ = s;
-            break;
-          }
-          case 82: {
-            MetricDescriptorMetadata.Builder subBuilder = null;
-            if (metadata_ != null) {
-              subBuilder = metadata_.toBuilder();
+              displayName_ = s;
+              break;
             }
-            metadata_ = input.readMessage(MetricDescriptorMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(metadata_);
-              metadata_ = subBuilder.buildPartial();
+          case 66:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              type_ = s;
+              break;
             }
+          case 82:
+            {
+              com.google.api.MetricDescriptor.MetricDescriptorMetadata.Builder subBuilder = null;
+              if (metadata_ != null) {
+                subBuilder = metadata_.toBuilder();
+              }
+              metadata_ =
+                  input.readMessage(
+                      com.google.api.MetricDescriptor.MetricDescriptorMetadata.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(metadata_);
+                metadata_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 96: {
-            int rawValue = input.readEnum();
+              break;
+            }
+          case 96:
+            {
+              int rawValue = input.readEnum();
 
-            launchStage_ = rawValue;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              launchStage_ = rawValue;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
-      if (((mutable_bitField0_ & 0x00000004) != 0)) {
+      if (((mutable_bitField0_ & 0x00000001) != 0)) {
         labels_ = java.util.Collections.unmodifiableList(labels_);
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return MetricProto.internal_static_google_api_MetricDescriptor_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.api.MetricProto.internal_static_google_api_MetricDescriptor_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return MetricProto.internal_static_google_api_MetricDescriptor_fieldAccessorTable
+    return com.google.api.MetricProto.internal_static_google_api_MetricDescriptor_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            MetricDescriptor.class, Builder.class);
+            com.google.api.MetricDescriptor.class, com.google.api.MetricDescriptor.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The kind of measurement. It describes how the data is reported.
    * 
* * Protobuf enum {@code google.api.MetricDescriptor.MetricKind} */ - public enum MetricKind - implements com.google.protobuf.ProtocolMessageEnum { + public enum MetricKind implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Do not use this default value.
      * 
@@ -180,6 +219,8 @@ public enum MetricKind */ METRIC_KIND_UNSPECIFIED(0), /** + * + * *
      * An instantaneous measurement of a value.
      * 
@@ -188,6 +229,8 @@ public enum MetricKind */ GAUGE(1), /** + * + * *
      * The change in a value during a time interval.
      * 
@@ -196,6 +239,8 @@ public enum MetricKind */ DELTA(2), /** + * + * *
      * A value accumulated over a time interval.  Cumulative
      * measurements in a time series should have the same start time
@@ -211,6 +256,8 @@ public enum MetricKind
     ;
 
     /**
+     *
+     *
      * 
      * Do not use this default value.
      * 
@@ -219,6 +266,8 @@ public enum MetricKind */ public static final int METRIC_KIND_UNSPECIFIED_VALUE = 0; /** + * + * *
      * An instantaneous measurement of a value.
      * 
@@ -227,6 +276,8 @@ public enum MetricKind */ public static final int GAUGE_VALUE = 1; /** + * + * *
      * The change in a value during a time interval.
      * 
@@ -235,6 +286,8 @@ public enum MetricKind */ public static final int DELTA_VALUE = 2; /** + * + * *
      * A value accumulated over a time interval.  Cumulative
      * measurements in a time series should have the same start time
@@ -247,65 +300,71 @@ public enum MetricKind
      */
     public static final int CUMULATIVE_VALUE = 3;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
-        throw new IllegalArgumentException(
+        throw new java.lang.IllegalArgumentException(
             "Can't get the number of an unknown enum value.");
       }
       return value;
     }
 
     /**
+     * @param value The numeric wire value of the corresponding enum entry.
+     * @return The enum associated with the given numeric wire value.
      * @deprecated Use {@link #forNumber(int)} instead.
      */
-    @Deprecated
+    @java.lang.Deprecated
     public static MetricKind valueOf(int value) {
       return forNumber(value);
     }
 
+    /**
+     * @param value The numeric wire value of the corresponding enum entry.
+     * @return The enum associated with the given numeric wire value.
+     */
     public static MetricKind forNumber(int value) {
       switch (value) {
-        case 0: return METRIC_KIND_UNSPECIFIED;
-        case 1: return GAUGE;
-        case 2: return DELTA;
-        case 3: return CUMULATIVE;
-        default: return null;
+        case 0:
+          return METRIC_KIND_UNSPECIFIED;
+        case 1:
+          return GAUGE;
+        case 2:
+          return DELTA;
+        case 3:
+          return CUMULATIVE;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        MetricKind> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public MetricKind findValueByNumber(int number) {
-              return MetricKind.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public MetricKind findValueByNumber(int number) {
+            return MetricKind.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return MetricDescriptor.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.api.MetricDescriptor.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final MetricKind[] VALUES = values();
 
-    public static MetricKind valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static MetricKind valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -323,15 +382,18 @@ private MetricKind(int value) {
   }
 
   /**
+   *
+   *
    * 
    * The value type of a metric.
    * 
* * Protobuf enum {@code google.api.MetricDescriptor.ValueType} */ - public enum ValueType - implements com.google.protobuf.ProtocolMessageEnum { + public enum ValueType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Do not use this default value.
      * 
@@ -340,6 +402,8 @@ public enum ValueType */ VALUE_TYPE_UNSPECIFIED(0), /** + * + * *
      * The value is a boolean.
      * This value type can be used only if the metric kind is `GAUGE`.
@@ -349,6 +413,8 @@ public enum ValueType
      */
     BOOL(1),
     /**
+     *
+     *
      * 
      * The value is a signed 64-bit integer.
      * 
@@ -357,6 +423,8 @@ public enum ValueType */ INT64(2), /** + * + * *
      * The value is a double precision floating point number.
      * 
@@ -365,6 +433,8 @@ public enum ValueType */ DOUBLE(3), /** + * + * *
      * The value is a text string.
      * This value type can be used only if the metric kind is `GAUGE`.
@@ -374,6 +444,8 @@ public enum ValueType
      */
     STRING(4),
     /**
+     *
+     *
      * 
      * The value is a [`Distribution`][google.api.Distribution].
      * 
@@ -382,6 +454,8 @@ public enum ValueType */ DISTRIBUTION(5), /** + * + * *
      * The value is money.
      * 
@@ -393,6 +467,8 @@ public enum ValueType ; /** + * + * *
      * Do not use this default value.
      * 
@@ -401,6 +477,8 @@ public enum ValueType */ public static final int VALUE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The value is a boolean.
      * This value type can be used only if the metric kind is `GAUGE`.
@@ -410,6 +488,8 @@ public enum ValueType
      */
     public static final int BOOL_VALUE = 1;
     /**
+     *
+     *
      * 
      * The value is a signed 64-bit integer.
      * 
@@ -418,6 +498,8 @@ public enum ValueType */ public static final int INT64_VALUE = 2; /** + * + * *
      * The value is a double precision floating point number.
      * 
@@ -426,6 +508,8 @@ public enum ValueType */ public static final int DOUBLE_VALUE = 3; /** + * + * *
      * The value is a text string.
      * This value type can be used only if the metric kind is `GAUGE`.
@@ -435,6 +519,8 @@ public enum ValueType
      */
     public static final int STRING_VALUE = 4;
     /**
+     *
+     *
      * 
      * The value is a [`Distribution`][google.api.Distribution].
      * 
@@ -443,6 +529,8 @@ public enum ValueType */ public static final int DISTRIBUTION_VALUE = 5; /** + * + * *
      * The value is money.
      * 
@@ -451,68 +539,77 @@ public enum ValueType */ public static final int MONEY_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { - throw new IllegalArgumentException( + throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ - @Deprecated + @java.lang.Deprecated public static ValueType valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static ValueType forNumber(int value) { switch (value) { - case 0: return VALUE_TYPE_UNSPECIFIED; - case 1: return BOOL; - case 2: return INT64; - case 3: return DOUBLE; - case 4: return STRING; - case 5: return DISTRIBUTION; - case 6: return MONEY; - default: return null; + case 0: + return VALUE_TYPE_UNSPECIFIED; + case 1: + return BOOL; + case 2: + return INT64; + case 3: + return DOUBLE; + case 4: + return STRING; + case 5: + return DISTRIBUTION; + case 6: + return MONEY; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ValueType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ValueType findValueByNumber(int number) { - return ValueType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ValueType findValueByNumber(int number) { + return ValueType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return MetricDescriptor.getDescriptor().getEnumTypes().get(1); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.api.MetricDescriptor.getDescriptor().getEnumTypes().get(1); } private static final ValueType[] VALUES = values(); - public static ValueType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ValueType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -529,30 +626,43 @@ private ValueType(int value) { // @@protoc_insertion_point(enum_scope:google.api.MetricDescriptor.ValueType) } - public interface MetricDescriptorMetadataOrBuilder extends + public interface MetricDescriptorMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.MetricDescriptor.MetricDescriptorMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Deprecated. Please use the MetricDescriptor.launch_stage instead.
      * The launch stage of the metric definition.
      * 
* * .google.api.LaunchStage launch_stage = 1 [deprecated = true]; + * + * @return The enum numeric value on the wire for launchStage. */ - @Deprecated int getLaunchStageValue(); + @java.lang.Deprecated + int getLaunchStageValue(); /** + * + * *
      * Deprecated. Please use the MetricDescriptor.launch_stage instead.
      * The launch stage of the metric definition.
      * 
* * .google.api.LaunchStage launch_stage = 1 [deprecated = true]; + * + * @return The launchStage. */ - @Deprecated LaunchStage getLaunchStage(); + @java.lang.Deprecated + com.google.api.LaunchStage getLaunchStage(); /** + * + * *
      * The sampling period of metric data points. For metrics which are written
      * periodically, consecutive data points are stored at this time interval,
@@ -561,9 +671,13 @@ public interface MetricDescriptorMetadataOrBuilder extends
      * 
* * .google.protobuf.Duration sample_period = 2; + * + * @return Whether the samplePeriod field is set. */ boolean hasSamplePeriod(); /** + * + * *
      * The sampling period of metric data points. For metrics which are written
      * periodically, consecutive data points are stored at this time interval,
@@ -572,9 +686,13 @@ public interface MetricDescriptorMetadataOrBuilder extends
      * 
* * .google.protobuf.Duration sample_period = 2; + * + * @return The samplePeriod. */ com.google.protobuf.Duration getSamplePeriod(); /** + * + * *
      * The sampling period of metric data points. For metrics which are written
      * periodically, consecutive data points are stored at this time interval,
@@ -587,6 +705,8 @@ public interface MetricDescriptorMetadataOrBuilder extends
     com.google.protobuf.DurationOrBuilder getSamplePeriodOrBuilder();
 
     /**
+     *
+     *
      * 
      * The delay of data points caused by ingestion. Data points older than this
      * age are guaranteed to be ingested and available to be read, excluding
@@ -594,9 +714,13 @@ public interface MetricDescriptorMetadataOrBuilder extends
      * 
* * .google.protobuf.Duration ingest_delay = 3; + * + * @return Whether the ingestDelay field is set. */ boolean hasIngestDelay(); /** + * + * *
      * The delay of data points caused by ingestion. Data points older than this
      * age are guaranteed to be ingested and available to be read, excluding
@@ -604,9 +728,13 @@ public interface MetricDescriptorMetadataOrBuilder extends
      * 
* * .google.protobuf.Duration ingest_delay = 3; + * + * @return The ingestDelay. */ com.google.protobuf.Duration getIngestDelay(); /** + * + * *
      * The delay of data points caused by ingestion. Data points older than this
      * age are guaranteed to be ingested and available to be read, excluding
@@ -618,39 +746,47 @@ public interface MetricDescriptorMetadataOrBuilder extends
     com.google.protobuf.DurationOrBuilder getIngestDelayOrBuilder();
   }
   /**
+   *
+   *
    * 
    * Additional annotations that can be used to guide the usage of a metric.
    * 
* * Protobuf type {@code google.api.MetricDescriptor.MetricDescriptorMetadata} */ - public static final class MetricDescriptorMetadata extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class MetricDescriptorMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.api.MetricDescriptor.MetricDescriptorMetadata) MetricDescriptorMetadataOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MetricDescriptorMetadata.newBuilder() to construct. private MetricDescriptorMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MetricDescriptorMetadata() { launchStage_ = 0; } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MetricDescriptorMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private MetricDescriptorMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -661,100 +797,119 @@ private MetricDescriptorMetadata( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - launchStage_ = rawValue; - break; - } - case 18: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (samplePeriod_ != null) { - subBuilder = samplePeriod_.toBuilder(); + launchStage_ = rawValue; + break; } - samplePeriod_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(samplePeriod_); - samplePeriod_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (samplePeriod_ != null) { + subBuilder = samplePeriod_.toBuilder(); + } + samplePeriod_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(samplePeriod_); + samplePeriod_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 26: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (ingestDelay_ != null) { - subBuilder = ingestDelay_.toBuilder(); + case 26: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (ingestDelay_ != null) { + subBuilder = ingestDelay_.toBuilder(); + } + ingestDelay_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(ingestDelay_); + ingestDelay_ = subBuilder.buildPartial(); + } + + break; } - ingestDelay_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(ingestDelay_); - ingestDelay_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return MetricProto.internal_static_google_api_MetricDescriptor_MetricDescriptorMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.api.MetricProto + .internal_static_google_api_MetricDescriptor_MetricDescriptorMetadata_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return MetricProto.internal_static_google_api_MetricDescriptor_MetricDescriptorMetadata_fieldAccessorTable + return com.google.api.MetricProto + .internal_static_google_api_MetricDescriptor_MetricDescriptorMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - MetricDescriptorMetadata.class, Builder.class); + com.google.api.MetricDescriptor.MetricDescriptorMetadata.class, + com.google.api.MetricDescriptor.MetricDescriptorMetadata.Builder.class); } public static final int LAUNCH_STAGE_FIELD_NUMBER = 1; private int launchStage_; /** + * + * *
      * Deprecated. Please use the MetricDescriptor.launch_stage instead.
      * The launch stage of the metric definition.
      * 
* * .google.api.LaunchStage launch_stage = 1 [deprecated = true]; + * + * @return The enum numeric value on the wire for launchStage. */ - @Deprecated public int getLaunchStageValue() { + @java.lang.Deprecated + public int getLaunchStageValue() { return launchStage_; } /** + * + * *
      * Deprecated. Please use the MetricDescriptor.launch_stage instead.
      * The launch stage of the metric definition.
      * 
* * .google.api.LaunchStage launch_stage = 1 [deprecated = true]; + * + * @return The launchStage. */ - @Deprecated public LaunchStage getLaunchStage() { + @java.lang.Deprecated + public com.google.api.LaunchStage getLaunchStage() { @SuppressWarnings("deprecation") - LaunchStage result = LaunchStage.valueOf(launchStage_); - return result == null ? LaunchStage.UNRECOGNIZED : result; + com.google.api.LaunchStage result = com.google.api.LaunchStage.valueOf(launchStage_); + return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result; } public static final int SAMPLE_PERIOD_FIELD_NUMBER = 2; private com.google.protobuf.Duration samplePeriod_; /** + * + * *
      * The sampling period of metric data points. For metrics which are written
      * periodically, consecutive data points are stored at this time interval,
@@ -763,11 +918,15 @@ private MetricDescriptorMetadata(
      * 
* * .google.protobuf.Duration sample_period = 2; + * + * @return Whether the samplePeriod field is set. */ public boolean hasSamplePeriod() { return samplePeriod_ != null; } /** + * + * *
      * The sampling period of metric data points. For metrics which are written
      * periodically, consecutive data points are stored at this time interval,
@@ -776,11 +935,17 @@ public boolean hasSamplePeriod() {
      * 
* * .google.protobuf.Duration sample_period = 2; + * + * @return The samplePeriod. */ public com.google.protobuf.Duration getSamplePeriod() { - return samplePeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : samplePeriod_; + return samplePeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : samplePeriod_; } /** + * + * *
      * The sampling period of metric data points. For metrics which are written
      * periodically, consecutive data points are stored at this time interval,
@@ -797,6 +962,8 @@ public com.google.protobuf.DurationOrBuilder getSamplePeriodOrBuilder() {
     public static final int INGEST_DELAY_FIELD_NUMBER = 3;
     private com.google.protobuf.Duration ingestDelay_;
     /**
+     *
+     *
      * 
      * The delay of data points caused by ingestion. Data points older than this
      * age are guaranteed to be ingested and available to be read, excluding
@@ -804,11 +971,15 @@ public com.google.protobuf.DurationOrBuilder getSamplePeriodOrBuilder() {
      * 
* * .google.protobuf.Duration ingest_delay = 3; + * + * @return Whether the ingestDelay field is set. */ public boolean hasIngestDelay() { return ingestDelay_ != null; } /** + * + * *
      * The delay of data points caused by ingestion. Data points older than this
      * age are guaranteed to be ingested and available to be read, excluding
@@ -816,11 +987,17 @@ public boolean hasIngestDelay() {
      * 
* * .google.protobuf.Duration ingest_delay = 3; + * + * @return The ingestDelay. */ public com.google.protobuf.Duration getIngestDelay() { - return ingestDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ingestDelay_; + return ingestDelay_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : ingestDelay_; } /** + * + * *
      * The delay of data points caused by ingestion. Data points older than this
      * age are guaranteed to be ingested and available to be read, excluding
@@ -834,7 +1011,8 @@ public com.google.protobuf.DurationOrBuilder getIngestDelayOrBuilder() {
     }
 
     private byte memoizedIsInitialized = -1;
-    @Override
+
+    @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
       if (isInitialized == 1) return true;
@@ -844,10 +1022,9 @@ public final boolean isInitialized() {
       return true;
     }
 
-    @Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output)
-                        throws java.io.IOException {
-      if (launchStage_ != LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) {
+    @java.lang.Override
+    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+      if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) {
         output.writeEnum(1, launchStage_);
       }
       if (samplePeriod_ != null) {
@@ -859,55 +1036,51 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       unknownFields.writeTo(output);
     }
 
-    @Override
+    @java.lang.Override
     public int getSerializedSize() {
       int size = memoizedSize;
       if (size != -1) return size;
 
       size = 0;
-      if (launchStage_ != LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeEnumSize(1, launchStage_);
+      if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) {
+        size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, launchStage_);
       }
       if (samplePeriod_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, getSamplePeriod());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSamplePeriod());
       }
       if (ingestDelay_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(3, getIngestDelay());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getIngestDelay());
       }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
       return size;
     }
 
-    @Override
-    public boolean equals(final Object obj) {
+    @java.lang.Override
+    public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-       return true;
+        return true;
       }
-      if (!(obj instanceof MetricDescriptorMetadata)) {
+      if (!(obj instanceof com.google.api.MetricDescriptor.MetricDescriptorMetadata)) {
         return super.equals(obj);
       }
-      MetricDescriptorMetadata other = (MetricDescriptorMetadata) obj;
+      com.google.api.MetricDescriptor.MetricDescriptorMetadata other =
+          (com.google.api.MetricDescriptor.MetricDescriptorMetadata) obj;
 
       if (launchStage_ != other.launchStage_) return false;
       if (hasSamplePeriod() != other.hasSamplePeriod()) return false;
       if (hasSamplePeriod()) {
-        if (!getSamplePeriod()
-            .equals(other.getSamplePeriod())) return false;
+        if (!getSamplePeriod().equals(other.getSamplePeriod())) return false;
       }
       if (hasIngestDelay() != other.hasIngestDelay()) return false;
       if (hasIngestDelay()) {
-        if (!getIngestDelay()
-            .equals(other.getIngestDelay())) return false;
+        if (!getIngestDelay().equals(other.getIngestDelay())) return false;
       }
       if (!unknownFields.equals(other.unknownFields)) return false;
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public int hashCode() {
       if (memoizedHashCode != 0) {
         return memoizedHashCode;
@@ -929,118 +1102,130 @@ public int hashCode() {
       return hash;
     }
 
-    public static MetricDescriptorMetadata parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.api.MetricDescriptor.MetricDescriptorMetadata parseFrom(
+        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static MetricDescriptorMetadata parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+    public static com.google.api.MetricDescriptor.MetricDescriptorMetadata parseFrom(
+        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static MetricDescriptorMetadata parseFrom(
+
+    public static com.google.api.MetricDescriptor.MetricDescriptorMetadata parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static MetricDescriptorMetadata parseFrom(
+
+    public static com.google.api.MetricDescriptor.MetricDescriptorMetadata parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static MetricDescriptorMetadata parseFrom(byte[] data)
+
+    public static com.google.api.MetricDescriptor.MetricDescriptorMetadata parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static MetricDescriptorMetadata parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+    public static com.google.api.MetricDescriptor.MetricDescriptorMetadata parseFrom(
+        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static MetricDescriptorMetadata parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.api.MetricDescriptor.MetricDescriptorMetadata parseFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
-    public static MetricDescriptorMetadata parseFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+    public static com.google.api.MetricDescriptor.MetricDescriptorMetadata parseFrom(
+        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 MetricDescriptorMetadata parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+
+    public static com.google.api.MetricDescriptor.MetricDescriptorMetadata parseDelimitedFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
-    public static MetricDescriptorMetadata parseDelimitedFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+    public static com.google.api.MetricDescriptor.MetricDescriptorMetadata parseDelimitedFrom(
+        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 MetricDescriptorMetadata parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.api.MetricDescriptor.MetricDescriptorMetadata parseFrom(
+        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
-    public static MetricDescriptorMetadata parseFrom(
+
+    public static com.google.api.MetricDescriptor.MetricDescriptorMetadata 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();
     }
 
-    @Override
-    public Builder newBuilderForType() { return newBuilder(); }
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(MetricDescriptorMetadata prototype) {
+
+    public static Builder newBuilder(
+        com.google.api.MetricDescriptor.MetricDescriptorMetadata prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
-    @Override
+
+    @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);
     }
 
-    @Override
+    @java.lang.Override
     protected Builder newBuilderForType(
-        BuilderParent parent) {
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       Builder builder = new Builder(parent);
       return builder;
     }
     /**
+     *
+     *
      * 
      * Additional annotations that can be used to guide the usage of a metric.
      * 
* * Protobuf type {@code google.api.MetricDescriptor.MetricDescriptorMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.api.MetricDescriptor.MetricDescriptorMetadata) - MetricDescriptorMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return MetricProto.internal_static_google_api_MetricDescriptor_MetricDescriptorMetadata_descriptor; + com.google.api.MetricDescriptor.MetricDescriptorMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.api.MetricProto + .internal_static_google_api_MetricDescriptor_MetricDescriptorMetadata_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return MetricProto.internal_static_google_api_MetricDescriptor_MetricDescriptorMetadata_fieldAccessorTable + return com.google.api.MetricProto + .internal_static_google_api_MetricDescriptor_MetricDescriptorMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - MetricDescriptorMetadata.class, Builder.class); + com.google.api.MetricDescriptor.MetricDescriptorMetadata.class, + com.google.api.MetricDescriptor.MetricDescriptorMetadata.Builder.class); } // Construct using com.google.api.MetricDescriptor.MetricDescriptorMetadata.newBuilder() @@ -1048,17 +1233,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @Override + + @java.lang.Override public Builder clear() { super.clear(); launchStage_ = 0; @@ -1078,29 +1262,30 @@ public Builder clear() { return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return MetricProto.internal_static_google_api_MetricDescriptor_MetricDescriptorMetadata_descriptor; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.api.MetricProto + .internal_static_google_api_MetricDescriptor_MetricDescriptorMetadata_descriptor; } - @Override - public MetricDescriptorMetadata getDefaultInstanceForType() { - return MetricDescriptorMetadata.getDefaultInstance(); + @java.lang.Override + public com.google.api.MetricDescriptor.MetricDescriptorMetadata getDefaultInstanceForType() { + return com.google.api.MetricDescriptor.MetricDescriptorMetadata.getDefaultInstance(); } - @Override - public MetricDescriptorMetadata build() { - MetricDescriptorMetadata result = buildPartial(); + @java.lang.Override + public com.google.api.MetricDescriptor.MetricDescriptorMetadata build() { + com.google.api.MetricDescriptor.MetricDescriptorMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public MetricDescriptorMetadata buildPartial() { - MetricDescriptorMetadata result = new MetricDescriptorMetadata(this); + @java.lang.Override + public com.google.api.MetricDescriptor.MetricDescriptorMetadata buildPartial() { + com.google.api.MetricDescriptor.MetricDescriptorMetadata result = + new com.google.api.MetricDescriptor.MetricDescriptorMetadata(this); result.launchStage_ = launchStage_; if (samplePeriodBuilder_ == null) { result.samplePeriod_ = samplePeriod_; @@ -1116,50 +1301,54 @@ public MetricDescriptorMetadata buildPartial() { return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof MetricDescriptorMetadata) { - return mergeFrom((MetricDescriptorMetadata)other); + if (other instanceof com.google.api.MetricDescriptor.MetricDescriptorMetadata) { + return mergeFrom((com.google.api.MetricDescriptor.MetricDescriptorMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(MetricDescriptorMetadata other) { - if (other == MetricDescriptorMetadata.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.api.MetricDescriptor.MetricDescriptorMetadata other) { + if (other == com.google.api.MetricDescriptor.MetricDescriptorMetadata.getDefaultInstance()) + return this; if (other.launchStage_ != 0) { setLaunchStageValue(other.getLaunchStageValue()); } @@ -1174,21 +1363,22 @@ public Builder mergeFrom(MetricDescriptorMetadata other) { return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - MetricDescriptorMetadata parsedMessage = null; + com.google.api.MetricDescriptor.MetricDescriptorMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (MetricDescriptorMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.api.MetricDescriptor.MetricDescriptorMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1200,69 +1390,96 @@ public Builder mergeFrom( private int launchStage_ = 0; /** + * + * *
        * Deprecated. Please use the MetricDescriptor.launch_stage instead.
        * The launch stage of the metric definition.
        * 
* * .google.api.LaunchStage launch_stage = 1 [deprecated = true]; + * + * @return The enum numeric value on the wire for launchStage. */ - @Deprecated public int getLaunchStageValue() { + @java.lang.Deprecated + public int getLaunchStageValue() { return launchStage_; } /** + * + * *
        * Deprecated. Please use the MetricDescriptor.launch_stage instead.
        * The launch stage of the metric definition.
        * 
* * .google.api.LaunchStage launch_stage = 1 [deprecated = true]; + * + * @param value The enum numeric value on the wire for launchStage to set. + * @return This builder for chaining. */ - @Deprecated public Builder setLaunchStageValue(int value) { + @java.lang.Deprecated + public Builder setLaunchStageValue(int value) { launchStage_ = value; onChanged(); return this; } /** + * + * *
        * Deprecated. Please use the MetricDescriptor.launch_stage instead.
        * The launch stage of the metric definition.
        * 
* * .google.api.LaunchStage launch_stage = 1 [deprecated = true]; + * + * @return The launchStage. */ - @Deprecated public LaunchStage getLaunchStage() { + @java.lang.Deprecated + public com.google.api.LaunchStage getLaunchStage() { @SuppressWarnings("deprecation") - LaunchStage result = LaunchStage.valueOf(launchStage_); - return result == null ? LaunchStage.UNRECOGNIZED : result; + com.google.api.LaunchStage result = com.google.api.LaunchStage.valueOf(launchStage_); + return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result; } /** + * + * *
        * Deprecated. Please use the MetricDescriptor.launch_stage instead.
        * The launch stage of the metric definition.
        * 
* * .google.api.LaunchStage launch_stage = 1 [deprecated = true]; + * + * @param value The launchStage to set. + * @return This builder for chaining. */ - @Deprecated public Builder setLaunchStage(LaunchStage value) { + @java.lang.Deprecated + public Builder setLaunchStage(com.google.api.LaunchStage value) { if (value == null) { throw new NullPointerException(); } - + launchStage_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Deprecated. Please use the MetricDescriptor.launch_stage instead.
        * The launch stage of the metric definition.
        * 
* * .google.api.LaunchStage launch_stage = 1 [deprecated = true]; + * + * @return This builder for chaining. */ - @Deprecated public Builder clearLaunchStage() { - + @java.lang.Deprecated + public Builder clearLaunchStage() { + launchStage_ = 0; onChanged(); return this; @@ -1270,8 +1487,13 @@ public Builder mergeFrom( private com.google.protobuf.Duration samplePeriod_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> samplePeriodBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + samplePeriodBuilder_; /** + * + * *
        * The sampling period of metric data points. For metrics which are written
        * periodically, consecutive data points are stored at this time interval,
@@ -1280,11 +1502,15 @@ public Builder mergeFrom(
        * 
* * .google.protobuf.Duration sample_period = 2; + * + * @return Whether the samplePeriod field is set. */ public boolean hasSamplePeriod() { return samplePeriodBuilder_ != null || samplePeriod_ != null; } /** + * + * *
        * The sampling period of metric data points. For metrics which are written
        * periodically, consecutive data points are stored at this time interval,
@@ -1293,15 +1519,21 @@ public boolean hasSamplePeriod() {
        * 
* * .google.protobuf.Duration sample_period = 2; + * + * @return The samplePeriod. */ public com.google.protobuf.Duration getSamplePeriod() { if (samplePeriodBuilder_ == null) { - return samplePeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : samplePeriod_; + return samplePeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : samplePeriod_; } else { return samplePeriodBuilder_.getMessage(); } } /** + * + * *
        * The sampling period of metric data points. For metrics which are written
        * periodically, consecutive data points are stored at this time interval,
@@ -1325,6 +1557,8 @@ public Builder setSamplePeriod(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The sampling period of metric data points. For metrics which are written
        * periodically, consecutive data points are stored at this time interval,
@@ -1334,8 +1568,7 @@ public Builder setSamplePeriod(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration sample_period = 2;
        */
-      public Builder setSamplePeriod(
-          com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setSamplePeriod(com.google.protobuf.Duration.Builder builderForValue) {
         if (samplePeriodBuilder_ == null) {
           samplePeriod_ = builderForValue.build();
           onChanged();
@@ -1346,6 +1579,8 @@ public Builder setSamplePeriod(
         return this;
       }
       /**
+       *
+       *
        * 
        * The sampling period of metric data points. For metrics which are written
        * periodically, consecutive data points are stored at this time interval,
@@ -1359,7 +1594,9 @@ public Builder mergeSamplePeriod(com.google.protobuf.Duration value) {
         if (samplePeriodBuilder_ == null) {
           if (samplePeriod_ != null) {
             samplePeriod_ =
-              com.google.protobuf.Duration.newBuilder(samplePeriod_).mergeFrom(value).buildPartial();
+                com.google.protobuf.Duration.newBuilder(samplePeriod_)
+                    .mergeFrom(value)
+                    .buildPartial();
           } else {
             samplePeriod_ = value;
           }
@@ -1371,6 +1608,8 @@ public Builder mergeSamplePeriod(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The sampling period of metric data points. For metrics which are written
        * periodically, consecutive data points are stored at this time interval,
@@ -1392,6 +1631,8 @@ public Builder clearSamplePeriod() {
         return this;
       }
       /**
+       *
+       *
        * 
        * The sampling period of metric data points. For metrics which are written
        * periodically, consecutive data points are stored at this time interval,
@@ -1402,11 +1643,13 @@ public Builder clearSamplePeriod() {
        * .google.protobuf.Duration sample_period = 2;
        */
       public com.google.protobuf.Duration.Builder getSamplePeriodBuilder() {
-        
+
         onChanged();
         return getSamplePeriodFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * The sampling period of metric data points. For metrics which are written
        * periodically, consecutive data points are stored at this time interval,
@@ -1420,11 +1663,14 @@ public com.google.protobuf.DurationOrBuilder getSamplePeriodOrBuilder() {
         if (samplePeriodBuilder_ != null) {
           return samplePeriodBuilder_.getMessageOrBuilder();
         } else {
-          return samplePeriod_ == null ?
-              com.google.protobuf.Duration.getDefaultInstance() : samplePeriod_;
+          return samplePeriod_ == null
+              ? com.google.protobuf.Duration.getDefaultInstance()
+              : samplePeriod_;
         }
       }
       /**
+       *
+       *
        * 
        * The sampling period of metric data points. For metrics which are written
        * periodically, consecutive data points are stored at this time interval,
@@ -1435,14 +1681,17 @@ public com.google.protobuf.DurationOrBuilder getSamplePeriodOrBuilder() {
        * .google.protobuf.Duration sample_period = 2;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+              com.google.protobuf.Duration,
+              com.google.protobuf.Duration.Builder,
+              com.google.protobuf.DurationOrBuilder>
           getSamplePeriodFieldBuilder() {
         if (samplePeriodBuilder_ == null) {
-          samplePeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                  getSamplePeriod(),
-                  getParentForChildren(),
-                  isClean());
+          samplePeriodBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Duration,
+                  com.google.protobuf.Duration.Builder,
+                  com.google.protobuf.DurationOrBuilder>(
+                  getSamplePeriod(), getParentForChildren(), isClean());
           samplePeriod_ = null;
         }
         return samplePeriodBuilder_;
@@ -1450,8 +1699,13 @@ public com.google.protobuf.DurationOrBuilder getSamplePeriodOrBuilder() {
 
       private com.google.protobuf.Duration ingestDelay_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ingestDelayBuilder_;
+              com.google.protobuf.Duration,
+              com.google.protobuf.Duration.Builder,
+              com.google.protobuf.DurationOrBuilder>
+          ingestDelayBuilder_;
       /**
+       *
+       *
        * 
        * The delay of data points caused by ingestion. Data points older than this
        * age are guaranteed to be ingested and available to be read, excluding
@@ -1459,11 +1713,15 @@ public com.google.protobuf.DurationOrBuilder getSamplePeriodOrBuilder() {
        * 
* * .google.protobuf.Duration ingest_delay = 3; + * + * @return Whether the ingestDelay field is set. */ public boolean hasIngestDelay() { return ingestDelayBuilder_ != null || ingestDelay_ != null; } /** + * + * *
        * The delay of data points caused by ingestion. Data points older than this
        * age are guaranteed to be ingested and available to be read, excluding
@@ -1471,15 +1729,21 @@ public boolean hasIngestDelay() {
        * 
* * .google.protobuf.Duration ingest_delay = 3; + * + * @return The ingestDelay. */ public com.google.protobuf.Duration getIngestDelay() { if (ingestDelayBuilder_ == null) { - return ingestDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ingestDelay_; + return ingestDelay_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : ingestDelay_; } else { return ingestDelayBuilder_.getMessage(); } } /** + * + * *
        * The delay of data points caused by ingestion. Data points older than this
        * age are guaranteed to be ingested and available to be read, excluding
@@ -1502,6 +1766,8 @@ public Builder setIngestDelay(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The delay of data points caused by ingestion. Data points older than this
        * age are guaranteed to be ingested and available to be read, excluding
@@ -1510,8 +1776,7 @@ public Builder setIngestDelay(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration ingest_delay = 3;
        */
-      public Builder setIngestDelay(
-          com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setIngestDelay(com.google.protobuf.Duration.Builder builderForValue) {
         if (ingestDelayBuilder_ == null) {
           ingestDelay_ = builderForValue.build();
           onChanged();
@@ -1522,6 +1787,8 @@ public Builder setIngestDelay(
         return this;
       }
       /**
+       *
+       *
        * 
        * The delay of data points caused by ingestion. Data points older than this
        * age are guaranteed to be ingested and available to be read, excluding
@@ -1534,7 +1801,9 @@ public Builder mergeIngestDelay(com.google.protobuf.Duration value) {
         if (ingestDelayBuilder_ == null) {
           if (ingestDelay_ != null) {
             ingestDelay_ =
-              com.google.protobuf.Duration.newBuilder(ingestDelay_).mergeFrom(value).buildPartial();
+                com.google.protobuf.Duration.newBuilder(ingestDelay_)
+                    .mergeFrom(value)
+                    .buildPartial();
           } else {
             ingestDelay_ = value;
           }
@@ -1546,6 +1815,8 @@ public Builder mergeIngestDelay(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The delay of data points caused by ingestion. Data points older than this
        * age are guaranteed to be ingested and available to be read, excluding
@@ -1566,6 +1837,8 @@ public Builder clearIngestDelay() {
         return this;
       }
       /**
+       *
+       *
        * 
        * The delay of data points caused by ingestion. Data points older than this
        * age are guaranteed to be ingested and available to be read, excluding
@@ -1575,11 +1848,13 @@ public Builder clearIngestDelay() {
        * .google.protobuf.Duration ingest_delay = 3;
        */
       public com.google.protobuf.Duration.Builder getIngestDelayBuilder() {
-        
+
         onChanged();
         return getIngestDelayFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * The delay of data points caused by ingestion. Data points older than this
        * age are guaranteed to be ingested and available to be read, excluding
@@ -1592,11 +1867,14 @@ public com.google.protobuf.DurationOrBuilder getIngestDelayOrBuilder() {
         if (ingestDelayBuilder_ != null) {
           return ingestDelayBuilder_.getMessageOrBuilder();
         } else {
-          return ingestDelay_ == null ?
-              com.google.protobuf.Duration.getDefaultInstance() : ingestDelay_;
+          return ingestDelay_ == null
+              ? com.google.protobuf.Duration.getDefaultInstance()
+              : ingestDelay_;
         }
       }
       /**
+       *
+       *
        * 
        * The delay of data points caused by ingestion. Data points older than this
        * age are guaranteed to be ingested and available to be read, excluding
@@ -1606,107 +1884,114 @@ public com.google.protobuf.DurationOrBuilder getIngestDelayOrBuilder() {
        * .google.protobuf.Duration ingest_delay = 3;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+              com.google.protobuf.Duration,
+              com.google.protobuf.Duration.Builder,
+              com.google.protobuf.DurationOrBuilder>
           getIngestDelayFieldBuilder() {
         if (ingestDelayBuilder_ == null) {
-          ingestDelayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                  getIngestDelay(),
-                  getParentForChildren(),
-                  isClean());
+          ingestDelayBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Duration,
+                  com.google.protobuf.Duration.Builder,
+                  com.google.protobuf.DurationOrBuilder>(
+                  getIngestDelay(), getParentForChildren(), isClean());
           ingestDelay_ = null;
         }
         return ingestDelayBuilder_;
       }
-      @Override
+
+      @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
         return super.setUnknownFields(unknownFields);
       }
 
-      @Override
+      @java.lang.Override
       public final Builder mergeUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.api.MetricDescriptor.MetricDescriptorMetadata)
     }
 
     // @@protoc_insertion_point(class_scope:google.api.MetricDescriptor.MetricDescriptorMetadata)
-    private static final MetricDescriptorMetadata DEFAULT_INSTANCE;
+    private static final com.google.api.MetricDescriptor.MetricDescriptorMetadata DEFAULT_INSTANCE;
+
     static {
-      DEFAULT_INSTANCE = new MetricDescriptorMetadata();
+      DEFAULT_INSTANCE = new com.google.api.MetricDescriptor.MetricDescriptorMetadata();
     }
 
-    public static MetricDescriptorMetadata getDefaultInstance() {
+    public static com.google.api.MetricDescriptor.MetricDescriptorMetadata getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @Override
-      public MetricDescriptorMetadata parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return new MetricDescriptorMetadata(input, extensionRegistry);
-      }
-    };
+    private static final com.google.protobuf.Parser PARSER =
+        new com.google.protobuf.AbstractParser() {
+          @java.lang.Override
+          public MetricDescriptorMetadata parsePartialFrom(
+              com.google.protobuf.CodedInputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
+            return new MetricDescriptorMetadata(input, extensionRegistry);
+          }
+        };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
     }
 
-    @Override
+    @java.lang.Override
     public com.google.protobuf.Parser getParserForType() {
       return PARSER;
     }
 
-    @Override
-    public MetricDescriptorMetadata getDefaultInstanceForType() {
+    @java.lang.Override
+    public com.google.api.MetricDescriptor.MetricDescriptorMetadata getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
-  private int bitField0_;
   public static final int NAME_FIELD_NUMBER = 1;
-  private volatile Object name_;
+  private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * The resource name of the metric descriptor.
    * 
* * string name = 1; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the metric descriptor.
    * 
* * string name = 1; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1715,8 +2000,10 @@ public String getName() { } public static final int TYPE_FIELD_NUMBER = 8; - private volatile Object type_; + private volatile java.lang.Object type_; /** + * + * *
    * The metric type, including its DNS name prefix. The type is not
    * URL-encoded.  All user-defined metric types have the DNS name
@@ -1728,20 +2015,23 @@ public String getName() {
    * 
* * string type = 8; + * + * @return The type. */ - public String getType() { - Object ref = type_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** + * + * *
    * The metric type, including its DNS name prefix. The type is not
    * URL-encoded.  All user-defined metric types have the DNS name
@@ -1753,14 +2043,14 @@ public String getType() {
    * 
* * string type = 8; + * + * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { - Object ref = type_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -1769,8 +2059,10 @@ public String getType() { } public static final int LABELS_FIELD_NUMBER = 2; - private java.util.List labels_; + private java.util.List labels_; /** + * + * *
    * The set of labels that can be used to describe a specific
    * instance of this metric type. For example, the
@@ -1782,10 +2074,12 @@ public String getType() {
    *
    * repeated .google.api.LabelDescriptor labels = 2;
    */
-  public java.util.List getLabelsList() {
+  public java.util.List getLabelsList() {
     return labels_;
   }
   /**
+   *
+   *
    * 
    * The set of labels that can be used to describe a specific
    * instance of this metric type. For example, the
@@ -1797,11 +2091,13 @@ public java.util.List getLabelsList() {
    *
    * repeated .google.api.LabelDescriptor labels = 2;
    */
-  public java.util.List 
+  public java.util.List
       getLabelsOrBuilderList() {
     return labels_;
   }
   /**
+   *
+   *
    * 
    * The set of labels that can be used to describe a specific
    * instance of this metric type. For example, the
@@ -1817,6 +2113,8 @@ public int getLabelsCount() {
     return labels_.size();
   }
   /**
+   *
+   *
    * 
    * The set of labels that can be used to describe a specific
    * instance of this metric type. For example, the
@@ -1828,10 +2126,12 @@ public int getLabelsCount() {
    *
    * repeated .google.api.LabelDescriptor labels = 2;
    */
-  public LabelDescriptor getLabels(int index) {
+  public com.google.api.LabelDescriptor getLabels(int index) {
     return labels_.get(index);
   }
   /**
+   *
+   *
    * 
    * The set of labels that can be used to describe a specific
    * instance of this metric type. For example, the
@@ -1843,72 +2143,105 @@ public LabelDescriptor getLabels(int index) {
    *
    * repeated .google.api.LabelDescriptor labels = 2;
    */
-  public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(
-      int index) {
+  public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(int index) {
     return labels_.get(index);
   }
 
   public static final int METRIC_KIND_FIELD_NUMBER = 3;
   private int metricKind_;
   /**
+   *
+   *
    * 
    * Whether the metric records instantaneous values, changes to a value, etc.
    * Some combinations of `metric_kind` and `value_type` might not be supported.
    * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * + * @return The enum numeric value on the wire for metricKind. */ public int getMetricKindValue() { return metricKind_; } /** + * + * *
    * Whether the metric records instantaneous values, changes to a value, etc.
    * Some combinations of `metric_kind` and `value_type` might not be supported.
    * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * + * @return The metricKind. */ - public MetricKind getMetricKind() { + public com.google.api.MetricDescriptor.MetricKind getMetricKind() { @SuppressWarnings("deprecation") - MetricKind result = MetricKind.valueOf(metricKind_); - return result == null ? MetricKind.UNRECOGNIZED : result; + com.google.api.MetricDescriptor.MetricKind result = + com.google.api.MetricDescriptor.MetricKind.valueOf(metricKind_); + return result == null ? com.google.api.MetricDescriptor.MetricKind.UNRECOGNIZED : result; } public static final int VALUE_TYPE_FIELD_NUMBER = 4; private int valueType_; /** + * + * *
    * Whether the measurement is an integer, a floating-point number, etc.
    * Some combinations of `metric_kind` and `value_type` might not be supported.
    * 
* * .google.api.MetricDescriptor.ValueType value_type = 4; + * + * @return The enum numeric value on the wire for valueType. */ public int getValueTypeValue() { return valueType_; } /** + * + * *
    * Whether the measurement is an integer, a floating-point number, etc.
    * Some combinations of `metric_kind` and `value_type` might not be supported.
    * 
* * .google.api.MetricDescriptor.ValueType value_type = 4; + * + * @return The valueType. */ - public ValueType getValueType() { + public com.google.api.MetricDescriptor.ValueType getValueType() { @SuppressWarnings("deprecation") - ValueType result = ValueType.valueOf(valueType_); - return result == null ? ValueType.UNRECOGNIZED : result; + com.google.api.MetricDescriptor.ValueType result = + com.google.api.MetricDescriptor.ValueType.valueOf(valueType_); + return result == null ? com.google.api.MetricDescriptor.ValueType.UNRECOGNIZED : result; } public static final int UNIT_FIELD_NUMBER = 5; - private volatile Object unit_; + private volatile java.lang.Object unit_; /** + * + * *
-   * The unit in which the metric value is reported. It is only applicable
-   * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The
-   * supported units are a subset of [The Unified Code for Units of
+   * The units in which the metric value is reported. It is only applicable
+   * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
+   * defines the representation of the stored metric values.
+   * Different systems may scale the values to be more easily displayed (so a
+   * value of `0.02KBy` _might_ be displayed as `20By`, and a value of
+   * `3523KBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
+   * `KBy`, then the value of the metric is always in thousands of bytes, no
+   * matter how it may be displayed..
+   * If you want a custom metric to record the exact number of CPU-seconds used
+   * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
+   * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
+   * CPU-seconds, then the value is written as `12005`.
+   * Alternatively, if you want a custome metric to record data in a more
+   * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
+   * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
+   * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
+   * The supported units are a subset of [The Unified Code for Units of
    * Measure](http://unitsofmeasure.org/ucum.html) standard:
    * **Basic units (UNIT)**
    * * `bit`   bit
@@ -1918,30 +2251,35 @@ public ValueType getValueType() {
    * * `h`     hour
    * * `d`     day
    * **Prefixes (PREFIX)**
-   * * `k`     kilo    (10**3)
-   * * `M`     mega    (10**6)
-   * * `G`     giga    (10**9)
-   * * `T`     tera    (10**12)
-   * * `P`     peta    (10**15)
-   * * `E`     exa     (10**18)
-   * * `Z`     zetta   (10**21)
-   * * `Y`     yotta   (10**24)
-   * * `m`     milli   (10**-3)
-   * * `u`     micro   (10**-6)
-   * * `n`     nano    (10**-9)
-   * * `p`     pico    (10**-12)
-   * * `f`     femto   (10**-15)
-   * * `a`     atto    (10**-18)
-   * * `z`     zepto   (10**-21)
-   * * `y`     yocto   (10**-24)
-   * * `Ki`    kibi    (2**10)
-   * * `Mi`    mebi    (2**20)
-   * * `Gi`    gibi    (2**30)
-   * * `Ti`    tebi    (2**40)
+   * * `k`     kilo    (10^3)
+   * * `M`     mega    (10^6)
+   * * `G`     giga    (10^9)
+   * * `T`     tera    (10^12)
+   * * `P`     peta    (10^15)
+   * * `E`     exa     (10^18)
+   * * `Z`     zetta   (10^21)
+   * * `Y`     yotta   (10^24)
+   * * `m`     milli   (10^-3)
+   * * `u`     micro   (10^-6)
+   * * `n`     nano    (10^-9)
+   * * `p`     pico    (10^-12)
+   * * `f`     femto   (10^-15)
+   * * `a`     atto    (10^-18)
+   * * `z`     zepto   (10^-21)
+   * * `y`     yocto   (10^-24)
+   * * `Ki`    kibi    (2^10)
+   * * `Mi`    mebi    (2^20)
+   * * `Gi`    gibi    (2^30)
+   * * `Ti`    tebi    (2^40)
+   * * `Pi`    pebi    (2^50)
    * **Grammar**
    * The grammar also includes these connectors:
-   * * `/`    division (as an infix operator, e.g. `1/s`).
-   * * `.`    multiplication (as an infix operator, e.g. `GBy.d`)
+   * * `/`    division or ratio (as an infix operator). For examples,
+   *          `kBy/{email}` or `MiBy/10ms` (although you should almost never
+   *          have `/s` in a metric `unit`; rates should always be computed at
+   *          query time from the underlying cumulative or delta value).
+   * * `.`    multiplication or composition (as an infix operator). For
+   *          examples, `GBy.d` or `k{watt}.h`.
    * The grammar for a unit is as follows:
    *     Expression = Component { "." Component } { "/" Component } ;
    *     Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
@@ -1950,35 +2288,63 @@ public ValueType getValueType() {
    *               ;
    *     Annotation = "{" NAME "}" ;
    * Notes:
-   * * `Annotation` is just a comment if it follows a `UNIT` and is
-   *    equivalent to `1` if it is used alone. For examples,
-   *    `{requests}/s == 1/s`, `By{transmitted}/s == By/s`.
+   * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
+   *    is used alone, then the unit is equivalent to `1`. For examples,
+   *    `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
    * * `NAME` is a sequence of non-blank printable ASCII characters not
-   *    containing '{' or '}'.
-   * * `1` represents dimensionless value 1, such as in `1/s`.
-   * * `%` represents dimensionless value 1/100, and annotates values giving
-   *    a percentage.
+   *    containing `{` or `}`.
+   * * `1` represents a unitary [dimensionless
+   *    unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such
+   *    as in `1/s`. It is typically used when none of the basic units are
+   *    appropriate. For example, "new users per day" can be represented as
+   *    `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new
+   *    users). Alternatively, "thousands of page views per day" would be
+   *    represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric
+   *    value of `5.3` would mean "5300 page views per day").
+   * * `%` represents dimensionless value of 1/100, and annotates values giving
+   *    a percentage (so the metric values are typically in the range of 0..100,
+   *    and a metric value `3` means "3 percent").
+   * * `10^2.%` indicates a metric contains a ratio, typically in the range
+   *    0..1, that will be multiplied by 100 and displayed as a percentage
+   *    (so a metric value `0.03` means "3 percent").
    * 
* * string unit = 5; + * + * @return The unit. */ - public String getUnit() { - Object ref = unit_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getUnit() { + java.lang.Object ref = unit_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); unit_ = s; return s; } } /** + * + * *
-   * The unit in which the metric value is reported. It is only applicable
-   * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The
-   * supported units are a subset of [The Unified Code for Units of
+   * The units in which the metric value is reported. It is only applicable
+   * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
+   * defines the representation of the stored metric values.
+   * Different systems may scale the values to be more easily displayed (so a
+   * value of `0.02KBy` _might_ be displayed as `20By`, and a value of
+   * `3523KBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
+   * `KBy`, then the value of the metric is always in thousands of bytes, no
+   * matter how it may be displayed..
+   * If you want a custom metric to record the exact number of CPU-seconds used
+   * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
+   * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
+   * CPU-seconds, then the value is written as `12005`.
+   * Alternatively, if you want a custome metric to record data in a more
+   * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
+   * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
+   * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
+   * The supported units are a subset of [The Unified Code for Units of
    * Measure](http://unitsofmeasure.org/ucum.html) standard:
    * **Basic units (UNIT)**
    * * `bit`   bit
@@ -1988,30 +2354,35 @@ public String getUnit() {
    * * `h`     hour
    * * `d`     day
    * **Prefixes (PREFIX)**
-   * * `k`     kilo    (10**3)
-   * * `M`     mega    (10**6)
-   * * `G`     giga    (10**9)
-   * * `T`     tera    (10**12)
-   * * `P`     peta    (10**15)
-   * * `E`     exa     (10**18)
-   * * `Z`     zetta   (10**21)
-   * * `Y`     yotta   (10**24)
-   * * `m`     milli   (10**-3)
-   * * `u`     micro   (10**-6)
-   * * `n`     nano    (10**-9)
-   * * `p`     pico    (10**-12)
-   * * `f`     femto   (10**-15)
-   * * `a`     atto    (10**-18)
-   * * `z`     zepto   (10**-21)
-   * * `y`     yocto   (10**-24)
-   * * `Ki`    kibi    (2**10)
-   * * `Mi`    mebi    (2**20)
-   * * `Gi`    gibi    (2**30)
-   * * `Ti`    tebi    (2**40)
+   * * `k`     kilo    (10^3)
+   * * `M`     mega    (10^6)
+   * * `G`     giga    (10^9)
+   * * `T`     tera    (10^12)
+   * * `P`     peta    (10^15)
+   * * `E`     exa     (10^18)
+   * * `Z`     zetta   (10^21)
+   * * `Y`     yotta   (10^24)
+   * * `m`     milli   (10^-3)
+   * * `u`     micro   (10^-6)
+   * * `n`     nano    (10^-9)
+   * * `p`     pico    (10^-12)
+   * * `f`     femto   (10^-15)
+   * * `a`     atto    (10^-18)
+   * * `z`     zepto   (10^-21)
+   * * `y`     yocto   (10^-24)
+   * * `Ki`    kibi    (2^10)
+   * * `Mi`    mebi    (2^20)
+   * * `Gi`    gibi    (2^30)
+   * * `Ti`    tebi    (2^40)
+   * * `Pi`    pebi    (2^50)
    * **Grammar**
    * The grammar also includes these connectors:
-   * * `/`    division (as an infix operator, e.g. `1/s`).
-   * * `.`    multiplication (as an infix operator, e.g. `GBy.d`)
+   * * `/`    division or ratio (as an infix operator). For examples,
+   *          `kBy/{email}` or `MiBy/10ms` (although you should almost never
+   *          have `/s` in a metric `unit`; rates should always be computed at
+   *          query time from the underlying cumulative or delta value).
+   * * `.`    multiplication or composition (as an infix operator). For
+   *          examples, `GBy.d` or `k{watt}.h`.
    * The grammar for a unit is as follows:
    *     Expression = Component { "." Component } { "/" Component } ;
    *     Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
@@ -2020,25 +2391,36 @@ public String getUnit() {
    *               ;
    *     Annotation = "{" NAME "}" ;
    * Notes:
-   * * `Annotation` is just a comment if it follows a `UNIT` and is
-   *    equivalent to `1` if it is used alone. For examples,
-   *    `{requests}/s == 1/s`, `By{transmitted}/s == By/s`.
+   * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
+   *    is used alone, then the unit is equivalent to `1`. For examples,
+   *    `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
    * * `NAME` is a sequence of non-blank printable ASCII characters not
-   *    containing '{' or '}'.
-   * * `1` represents dimensionless value 1, such as in `1/s`.
-   * * `%` represents dimensionless value 1/100, and annotates values giving
-   *    a percentage.
+   *    containing `{` or `}`.
+   * * `1` represents a unitary [dimensionless
+   *    unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such
+   *    as in `1/s`. It is typically used when none of the basic units are
+   *    appropriate. For example, "new users per day" can be represented as
+   *    `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new
+   *    users). Alternatively, "thousands of page views per day" would be
+   *    represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric
+   *    value of `5.3` would mean "5300 page views per day").
+   * * `%` represents dimensionless value of 1/100, and annotates values giving
+   *    a percentage (so the metric values are typically in the range of 0..100,
+   *    and a metric value `3` means "3 percent").
+   * * `10^2.%` indicates a metric contains a ratio, typically in the range
+   *    0..1, that will be multiplied by 100 and displayed as a percentage
+   *    (so a metric value `0.03` means "3 percent").
    * 
* * string unit = 5; + * + * @return The bytes for unit. */ - public com.google.protobuf.ByteString - getUnitBytes() { - Object ref = unit_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getUnitBytes() { + java.lang.Object ref = unit_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); unit_ = b; return b; } else { @@ -2047,40 +2429,45 @@ public String getUnit() { } public static final int DESCRIPTION_FIELD_NUMBER = 6; - private volatile Object description_; + private volatile java.lang.Object description_; /** + * + * *
    * A detailed description of the metric, which can be used in documentation.
    * 
* * string description = 6; + * + * @return The description. */ - public String getDescription() { - Object ref = description_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * A detailed description of the metric, which can be used in documentation.
    * 
* * string description = 6; + * + * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + 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); description_ = b; return b; } else { @@ -2089,8 +2476,10 @@ public String getDescription() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 7; - private volatile Object displayName_; + private volatile java.lang.Object displayName_; /** + * + * *
    * A concise name for the metric, which can be displayed in user interfaces.
    * Use sentence case without an ending period, for example "Request count".
@@ -2099,20 +2488,23 @@ public String getDescription() {
    * 
* * string display_name = 7; + * + * @return The displayName. */ - public String getDisplayName() { - Object ref = displayName_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * A concise name for the metric, which can be displayed in user interfaces.
    * Use sentence case without an ending period, for example "Request count".
@@ -2121,14 +2513,14 @@ public String getDisplayName() {
    * 
* * string display_name = 7; + * + * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -2137,65 +2529,86 @@ public String getDisplayName() { } public static final int METADATA_FIELD_NUMBER = 10; - private MetricDescriptorMetadata metadata_; + private com.google.api.MetricDescriptor.MetricDescriptorMetadata metadata_; /** + * + * *
    * Optional. Metadata which can be used to guide usage of the metric.
    * 
* * .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; + * + * @return Whether the metadata field is set. */ public boolean hasMetadata() { return metadata_ != null; } /** + * + * *
    * Optional. Metadata which can be used to guide usage of the metric.
    * 
* * .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; + * + * @return The metadata. */ - public MetricDescriptorMetadata getMetadata() { - return metadata_ == null ? MetricDescriptorMetadata.getDefaultInstance() : metadata_; + public com.google.api.MetricDescriptor.MetricDescriptorMetadata getMetadata() { + return metadata_ == null + ? com.google.api.MetricDescriptor.MetricDescriptorMetadata.getDefaultInstance() + : metadata_; } /** + * + * *
    * Optional. Metadata which can be used to guide usage of the metric.
    * 
* * .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; */ - public MetricDescriptorMetadataOrBuilder getMetadataOrBuilder() { + public com.google.api.MetricDescriptor.MetricDescriptorMetadataOrBuilder getMetadataOrBuilder() { return getMetadata(); } public static final int LAUNCH_STAGE_FIELD_NUMBER = 12; private int launchStage_; /** + * + * *
    * Optional. The launch stage of the metric definition.
    * 
* * .google.api.LaunchStage launch_stage = 12; + * + * @return The enum numeric value on the wire for launchStage. */ public int getLaunchStageValue() { return launchStage_; } /** + * + * *
    * Optional. The launch stage of the metric definition.
    * 
* * .google.api.LaunchStage launch_stage = 12; + * + * @return The launchStage. */ - public LaunchStage getLaunchStage() { + public com.google.api.LaunchStage getLaunchStage() { @SuppressWarnings("deprecation") - LaunchStage result = LaunchStage.valueOf(launchStage_); - return result == null ? LaunchStage.UNRECOGNIZED : result; + com.google.api.LaunchStage result = com.google.api.LaunchStage.valueOf(launchStage_); + return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -2205,19 +2618,20 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } for (int i = 0; i < labels_.size(); i++) { output.writeMessage(2, labels_.get(i)); } - if (metricKind_ != MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) { + if (metricKind_ + != com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) { output.writeEnum(3, metricKind_); } - if (valueType_ != ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) { + if (valueType_ + != com.google.api.MetricDescriptor.ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(4, valueType_); } if (!getUnitBytes().isEmpty()) { @@ -2235,13 +2649,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (metadata_ != null) { output.writeMessage(10, getMetadata()); } - if (launchStage_ != LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { + if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { output.writeEnum(12, launchStage_); } unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -2251,16 +2665,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (int i = 0; i < labels_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, labels_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labels_.get(i)); } - if (metricKind_ != MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, metricKind_); + if (metricKind_ + != com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, metricKind_); } - if (valueType_ != ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, valueType_); + if (valueType_ + != com.google.api.MetricDescriptor.ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, valueType_); } if (!getUnitBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, unit_); @@ -2275,53 +2688,44 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, type_); } if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getMetadata()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getMetadata()); } - if (launchStage_ != LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(12, launchStage_); + if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, launchStage_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof MetricDescriptor)) { + if (!(obj instanceof com.google.api.MetricDescriptor)) { return super.equals(obj); } - MetricDescriptor other = (MetricDescriptor) obj; + com.google.api.MetricDescriptor other = (com.google.api.MetricDescriptor) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getType() - .equals(other.getType())) return false; - if (!getLabelsList() - .equals(other.getLabelsList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getType().equals(other.getType())) return false; + if (!getLabelsList().equals(other.getLabelsList())) return false; if (metricKind_ != other.metricKind_) return false; if (valueType_ != other.valueType_) return false; - if (!getUnit() - .equals(other.getUnit())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!getUnit().equals(other.getUnit())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; + if (!getMetadata().equals(other.getMetadata())) return false; } if (launchStage_ != other.launchStage_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -2357,97 +2761,103 @@ public int hashCode() { return hash; } - public static MetricDescriptor parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.MetricDescriptor parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static MetricDescriptor parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.MetricDescriptor parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static MetricDescriptor parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.api.MetricDescriptor parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static MetricDescriptor parseFrom( + + public static com.google.api.MetricDescriptor parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static MetricDescriptor parseFrom(byte[] data) + + public static com.google.api.MetricDescriptor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static MetricDescriptor parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.MetricDescriptor parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static MetricDescriptor parseFrom(java.io.InputStream input) + + public static com.google.api.MetricDescriptor 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 MetricDescriptor parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.MetricDescriptor parseFrom( + 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 MetricDescriptor parseDelimitedFrom(java.io.InputStream input) + + public static com.google.api.MetricDescriptor 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 MetricDescriptor parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.MetricDescriptor parseDelimitedFrom( + 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 MetricDescriptor parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.api.MetricDescriptor parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static MetricDescriptor parseFrom( + + public static com.google.api.MetricDescriptor 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(MetricDescriptor prototype) { + + public static Builder newBuilder(com.google.api.MetricDescriptor prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Defines a metric type and its schema. Once a metric descriptor is created,
    * deleting or altering it stops data collection and makes the metric type's
@@ -2456,21 +2866,21 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.MetricDescriptor}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.MetricDescriptor)
       com.google.api.MetricDescriptorOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return MetricProto.internal_static_google_api_MetricDescriptor_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.api.MetricProto.internal_static_google_api_MetricDescriptor_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return MetricProto.internal_static_google_api_MetricDescriptor_fieldAccessorTable
+      return com.google.api.MetricProto
+          .internal_static_google_api_MetricDescriptor_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              MetricDescriptor.class, Builder.class);
+              com.google.api.MetricDescriptor.class, com.google.api.MetricDescriptor.Builder.class);
     }
 
     // Construct using com.google.api.MetricDescriptor.newBuilder()
@@ -2478,18 +2888,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getLabelsFieldBuilder();
       }
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       name_ = "";
@@ -2498,7 +2908,7 @@ public Builder clear() {
 
       if (labelsBuilder_ == null) {
         labels_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000004);
+        bitField0_ = (bitField0_ & ~0x00000001);
       } else {
         labelsBuilder_.clear();
       }
@@ -2523,37 +2933,35 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return MetricProto.internal_static_google_api_MetricDescriptor_descriptor;
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.api.MetricProto.internal_static_google_api_MetricDescriptor_descriptor;
     }
 
-    @Override
-    public MetricDescriptor getDefaultInstanceForType() {
-      return MetricDescriptor.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.MetricDescriptor getDefaultInstanceForType() {
+      return com.google.api.MetricDescriptor.getDefaultInstance();
     }
 
-    @Override
-    public MetricDescriptor build() {
-      MetricDescriptor result = buildPartial();
+    @java.lang.Override
+    public com.google.api.MetricDescriptor build() {
+      com.google.api.MetricDescriptor result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public MetricDescriptor buildPartial() {
-      MetricDescriptor result = new MetricDescriptor(this);
+    @java.lang.Override
+    public com.google.api.MetricDescriptor buildPartial() {
+      com.google.api.MetricDescriptor result = new com.google.api.MetricDescriptor(this);
       int from_bitField0_ = bitField0_;
-      int to_bitField0_ = 0;
       result.name_ = name_;
       result.type_ = type_;
       if (labelsBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)) {
+        if (((bitField0_ & 0x00000001) != 0)) {
           labels_ = java.util.Collections.unmodifiableList(labels_);
-          bitField0_ = (bitField0_ & ~0x00000004);
+          bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.labels_ = labels_;
       } else {
@@ -2570,55 +2978,55 @@ public MetricDescriptor buildPartial() {
         result.metadata_ = metadataBuilder_.build();
       }
       result.launchStage_ = launchStage_;
-      result.bitField0_ = to_bitField0_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof MetricDescriptor) {
-        return mergeFrom((MetricDescriptor)other);
+      if (other instanceof com.google.api.MetricDescriptor) {
+        return mergeFrom((com.google.api.MetricDescriptor) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(MetricDescriptor other) {
-      if (other == MetricDescriptor.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.MetricDescriptor other) {
+      if (other == com.google.api.MetricDescriptor.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -2631,7 +3039,7 @@ public Builder mergeFrom(MetricDescriptor other) {
         if (!other.labels_.isEmpty()) {
           if (labels_.isEmpty()) {
             labels_ = other.labels_;
-            bitField0_ = (bitField0_ & ~0x00000004);
+            bitField0_ = (bitField0_ & ~0x00000001);
           } else {
             ensureLabelsIsMutable();
             labels_.addAll(other.labels_);
@@ -2644,10 +3052,11 @@ public Builder mergeFrom(MetricDescriptor other) {
             labelsBuilder_.dispose();
             labelsBuilder_ = null;
             labels_ = other.labels_;
-            bitField0_ = (bitField0_ & ~0x00000004);
-            labelsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getLabelsFieldBuilder() : null;
+            bitField0_ = (bitField0_ & ~0x00000001);
+            labelsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getLabelsFieldBuilder()
+                    : null;
           } else {
             labelsBuilder_.addAllMessages(other.labels_);
           }
@@ -2682,21 +3091,21 @@ public Builder mergeFrom(MetricDescriptor other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      MetricDescriptor parsedMessage = null;
+      com.google.api.MetricDescriptor parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (MetricDescriptor) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.MetricDescriptor) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2705,42 +3114,48 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private Object name_ = "";
+    private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the metric descriptor.
      * 
* * string name = 1; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The resource name of the metric descriptor.
      * 
* * string name = 1; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2748,56 +3163,70 @@ public String getName() { } } /** + * + * *
      * The resource name of the metric descriptor.
      * 
* * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ - public Builder setName( - String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the metric descriptor.
      * 
* * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the metric descriptor.
      * 
* * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private Object type_ = ""; + private java.lang.Object type_ = ""; /** + * + * *
      * The metric type, including its DNS name prefix. The type is not
      * URL-encoded.  All user-defined metric types have the DNS name
@@ -2809,20 +3238,23 @@ public Builder setNameBytes(
      * 
* * string type = 8; + * + * @return The type. */ - public String getType() { - Object ref = type_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The metric type, including its DNS name prefix. The type is not
      * URL-encoded.  All user-defined metric types have the DNS name
@@ -2834,14 +3266,14 @@ public String getType() {
      * 
* * string type = 8; + * + * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { - Object ref = type_; + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -2849,6 +3281,8 @@ public String getType() { } } /** + * + * *
      * The metric type, including its DNS name prefix. The type is not
      * URL-encoded.  All user-defined metric types have the DNS name
@@ -2860,18 +3294,22 @@ public String getType() {
      * 
* * string type = 8; + * + * @param value The type to set. + * @return This builder for chaining. */ - public Builder setType( - String value) { + public Builder setType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** + * + * *
      * The metric type, including its DNS name prefix. The type is not
      * URL-encoded.  All user-defined metric types have the DNS name
@@ -2883,14 +3321,18 @@ public Builder setType(
      * 
* * string type = 8; + * + * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** + * + * *
      * The metric type, including its DNS name prefix. The type is not
      * URL-encoded.  All user-defined metric types have the DNS name
@@ -2902,32 +3344,40 @@ public Builder clearType() {
      * 
* * string type = 8; + * + * @param value The bytes for type to set. + * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; } - private java.util.List labels_ = - java.util.Collections.emptyList(); + private java.util.List labels_ = + java.util.Collections.emptyList(); + private void ensureLabelsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - labels_ = new java.util.ArrayList(labels_); - bitField0_ |= 0x00000004; - } + if (!((bitField0_ & 0x00000001) != 0)) { + labels_ = new java.util.ArrayList(labels_); + bitField0_ |= 0x00000001; + } } private com.google.protobuf.RepeatedFieldBuilderV3< - LabelDescriptor, LabelDescriptor.Builder, com.google.api.LabelDescriptorOrBuilder> labelsBuilder_; + com.google.api.LabelDescriptor, + com.google.api.LabelDescriptor.Builder, + com.google.api.LabelDescriptorOrBuilder> + labelsBuilder_; /** + * + * *
      * The set of labels that can be used to describe a specific
      * instance of this metric type. For example, the
@@ -2939,7 +3389,7 @@ private void ensureLabelsIsMutable() {
      *
      * repeated .google.api.LabelDescriptor labels = 2;
      */
-    public java.util.List getLabelsList() {
+    public java.util.List getLabelsList() {
       if (labelsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(labels_);
       } else {
@@ -2947,6 +3397,8 @@ public java.util.List getLabelsList() {
       }
     }
     /**
+     *
+     *
      * 
      * The set of labels that can be used to describe a specific
      * instance of this metric type. For example, the
@@ -2966,6 +3418,8 @@ public int getLabelsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The set of labels that can be used to describe a specific
      * instance of this metric type. For example, the
@@ -2977,7 +3431,7 @@ public int getLabelsCount() {
      *
      * repeated .google.api.LabelDescriptor labels = 2;
      */
-    public LabelDescriptor getLabels(int index) {
+    public com.google.api.LabelDescriptor getLabels(int index) {
       if (labelsBuilder_ == null) {
         return labels_.get(index);
       } else {
@@ -2985,6 +3439,8 @@ public LabelDescriptor getLabels(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The set of labels that can be used to describe a specific
      * instance of this metric type. For example, the
@@ -2996,8 +3452,7 @@ public LabelDescriptor getLabels(int index) {
      *
      * repeated .google.api.LabelDescriptor labels = 2;
      */
-    public Builder setLabels(
-        int index, LabelDescriptor value) {
+    public Builder setLabels(int index, com.google.api.LabelDescriptor value) {
       if (labelsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3011,6 +3466,8 @@ public Builder setLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * The set of labels that can be used to describe a specific
      * instance of this metric type. For example, the
@@ -3022,8 +3479,7 @@ public Builder setLabels(
      *
      * repeated .google.api.LabelDescriptor labels = 2;
      */
-    public Builder setLabels(
-        int index, LabelDescriptor.Builder builderForValue) {
+    public Builder setLabels(int index, com.google.api.LabelDescriptor.Builder builderForValue) {
       if (labelsBuilder_ == null) {
         ensureLabelsIsMutable();
         labels_.set(index, builderForValue.build());
@@ -3034,6 +3490,8 @@ public Builder setLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * The set of labels that can be used to describe a specific
      * instance of this metric type. For example, the
@@ -3045,7 +3503,7 @@ public Builder setLabels(
      *
      * repeated .google.api.LabelDescriptor labels = 2;
      */
-    public Builder addLabels(LabelDescriptor value) {
+    public Builder addLabels(com.google.api.LabelDescriptor value) {
       if (labelsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3059,6 +3517,8 @@ public Builder addLabels(LabelDescriptor value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The set of labels that can be used to describe a specific
      * instance of this metric type. For example, the
@@ -3070,8 +3530,7 @@ public Builder addLabels(LabelDescriptor value) {
      *
      * repeated .google.api.LabelDescriptor labels = 2;
      */
-    public Builder addLabels(
-        int index, LabelDescriptor value) {
+    public Builder addLabels(int index, com.google.api.LabelDescriptor value) {
       if (labelsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3085,6 +3544,8 @@ public Builder addLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * The set of labels that can be used to describe a specific
      * instance of this metric type. For example, the
@@ -3096,8 +3557,7 @@ public Builder addLabels(
      *
      * repeated .google.api.LabelDescriptor labels = 2;
      */
-    public Builder addLabels(
-        LabelDescriptor.Builder builderForValue) {
+    public Builder addLabels(com.google.api.LabelDescriptor.Builder builderForValue) {
       if (labelsBuilder_ == null) {
         ensureLabelsIsMutable();
         labels_.add(builderForValue.build());
@@ -3108,6 +3568,8 @@ public Builder addLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * The set of labels that can be used to describe a specific
      * instance of this metric type. For example, the
@@ -3119,8 +3581,7 @@ public Builder addLabels(
      *
      * repeated .google.api.LabelDescriptor labels = 2;
      */
-    public Builder addLabels(
-        int index, LabelDescriptor.Builder builderForValue) {
+    public Builder addLabels(int index, com.google.api.LabelDescriptor.Builder builderForValue) {
       if (labelsBuilder_ == null) {
         ensureLabelsIsMutable();
         labels_.add(index, builderForValue.build());
@@ -3131,6 +3592,8 @@ public Builder addLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * The set of labels that can be used to describe a specific
      * instance of this metric type. For example, the
@@ -3143,11 +3606,10 @@ public Builder addLabels(
      * repeated .google.api.LabelDescriptor labels = 2;
      */
     public Builder addAllLabels(
-        Iterable values) {
+        java.lang.Iterable values) {
       if (labelsBuilder_ == null) {
         ensureLabelsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, labels_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, labels_);
         onChanged();
       } else {
         labelsBuilder_.addAllMessages(values);
@@ -3155,6 +3617,8 @@ public Builder addAllLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * The set of labels that can be used to describe a specific
      * instance of this metric type. For example, the
@@ -3169,7 +3633,7 @@ public Builder addAllLabels(
     public Builder clearLabels() {
       if (labelsBuilder_ == null) {
         labels_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000004);
+        bitField0_ = (bitField0_ & ~0x00000001);
         onChanged();
       } else {
         labelsBuilder_.clear();
@@ -3177,6 +3641,8 @@ public Builder clearLabels() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The set of labels that can be used to describe a specific
      * instance of this metric type. For example, the
@@ -3199,6 +3665,8 @@ public Builder removeLabels(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The set of labels that can be used to describe a specific
      * instance of this metric type. For example, the
@@ -3210,11 +3678,12 @@ public Builder removeLabels(int index) {
      *
      * repeated .google.api.LabelDescriptor labels = 2;
      */
-    public LabelDescriptor.Builder getLabelsBuilder(
-        int index) {
+    public com.google.api.LabelDescriptor.Builder getLabelsBuilder(int index) {
       return getLabelsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The set of labels that can be used to describe a specific
      * instance of this metric type. For example, the
@@ -3226,14 +3695,16 @@ public LabelDescriptor.Builder getLabelsBuilder(
      *
      * repeated .google.api.LabelDescriptor labels = 2;
      */
-    public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(
-        int index) {
+    public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(int index) {
       if (labelsBuilder_ == null) {
-        return labels_.get(index);  } else {
+        return labels_.get(index);
+      } else {
         return labelsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The set of labels that can be used to describe a specific
      * instance of this metric type. For example, the
@@ -3245,8 +3716,8 @@ public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(
      *
      * repeated .google.api.LabelDescriptor labels = 2;
      */
-    public java.util.List 
-         getLabelsOrBuilderList() {
+    public java.util.List
+        getLabelsOrBuilderList() {
       if (labelsBuilder_ != null) {
         return labelsBuilder_.getMessageOrBuilderList();
       } else {
@@ -3254,6 +3725,8 @@ public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * The set of labels that can be used to describe a specific
      * instance of this metric type. For example, the
@@ -3265,11 +3738,13 @@ public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(
      *
      * repeated .google.api.LabelDescriptor labels = 2;
      */
-    public LabelDescriptor.Builder addLabelsBuilder() {
-      return getLabelsFieldBuilder().addBuilder(
-          LabelDescriptor.getDefaultInstance());
+    public com.google.api.LabelDescriptor.Builder addLabelsBuilder() {
+      return getLabelsFieldBuilder()
+          .addBuilder(com.google.api.LabelDescriptor.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The set of labels that can be used to describe a specific
      * instance of this metric type. For example, the
@@ -3281,12 +3756,13 @@ public LabelDescriptor.Builder addLabelsBuilder() {
      *
      * repeated .google.api.LabelDescriptor labels = 2;
      */
-    public LabelDescriptor.Builder addLabelsBuilder(
-        int index) {
-      return getLabelsFieldBuilder().addBuilder(
-          index, LabelDescriptor.getDefaultInstance());
+    public com.google.api.LabelDescriptor.Builder addLabelsBuilder(int index) {
+      return getLabelsFieldBuilder()
+          .addBuilder(index, com.google.api.LabelDescriptor.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The set of labels that can be used to describe a specific
      * instance of this metric type. For example, the
@@ -3298,20 +3774,22 @@ public LabelDescriptor.Builder addLabelsBuilder(
      *
      * repeated .google.api.LabelDescriptor labels = 2;
      */
-    public java.util.List
-         getLabelsBuilderList() {
+    public java.util.List getLabelsBuilderList() {
       return getLabelsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        LabelDescriptor, LabelDescriptor.Builder, com.google.api.LabelDescriptorOrBuilder>
+            com.google.api.LabelDescriptor,
+            com.google.api.LabelDescriptor.Builder,
+            com.google.api.LabelDescriptorOrBuilder>
         getLabelsFieldBuilder() {
       if (labelsBuilder_ == null) {
-        labelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            LabelDescriptor, LabelDescriptor.Builder, com.google.api.LabelDescriptorOrBuilder>(
-                labels_,
-                ((bitField0_ & 0x00000004) != 0),
-                getParentForChildren(),
-                isClean());
+        labelsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.api.LabelDescriptor,
+                com.google.api.LabelDescriptor.Builder,
+                com.google.api.LabelDescriptorOrBuilder>(
+                labels_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         labels_ = null;
       }
       return labelsBuilder_;
@@ -3319,23 +3797,32 @@ public LabelDescriptor.Builder addLabelsBuilder(
 
     private int metricKind_ = 0;
     /**
+     *
+     *
      * 
      * Whether the metric records instantaneous values, changes to a value, etc.
      * Some combinations of `metric_kind` and `value_type` might not be supported.
      * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * + * @return The enum numeric value on the wire for metricKind. */ public int getMetricKindValue() { return metricKind_; } /** + * + * *
      * Whether the metric records instantaneous values, changes to a value, etc.
      * Some combinations of `metric_kind` and `value_type` might not be supported.
      * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * + * @param value The enum numeric value on the wire for metricKind to set. + * @return This builder for chaining. */ public Builder setMetricKindValue(int value) { metricKind_ = value; @@ -3343,45 +3830,59 @@ public Builder setMetricKindValue(int value) { return this; } /** + * + * *
      * Whether the metric records instantaneous values, changes to a value, etc.
      * Some combinations of `metric_kind` and `value_type` might not be supported.
      * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * + * @return The metricKind. */ - public MetricKind getMetricKind() { + public com.google.api.MetricDescriptor.MetricKind getMetricKind() { @SuppressWarnings("deprecation") - MetricKind result = MetricKind.valueOf(metricKind_); - return result == null ? MetricKind.UNRECOGNIZED : result; + com.google.api.MetricDescriptor.MetricKind result = + com.google.api.MetricDescriptor.MetricKind.valueOf(metricKind_); + return result == null ? com.google.api.MetricDescriptor.MetricKind.UNRECOGNIZED : result; } /** + * + * *
      * Whether the metric records instantaneous values, changes to a value, etc.
      * Some combinations of `metric_kind` and `value_type` might not be supported.
      * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * + * @param value The metricKind to set. + * @return This builder for chaining. */ - public Builder setMetricKind(MetricKind value) { + public Builder setMetricKind(com.google.api.MetricDescriptor.MetricKind value) { if (value == null) { throw new NullPointerException(); } - + metricKind_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Whether the metric records instantaneous values, changes to a value, etc.
      * Some combinations of `metric_kind` and `value_type` might not be supported.
      * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * + * @return This builder for chaining. */ public Builder clearMetricKind() { - + metricKind_ = 0; onChanged(); return this; @@ -3389,23 +3890,32 @@ public Builder clearMetricKind() { private int valueType_ = 0; /** + * + * *
      * Whether the measurement is an integer, a floating-point number, etc.
      * Some combinations of `metric_kind` and `value_type` might not be supported.
      * 
* * .google.api.MetricDescriptor.ValueType value_type = 4; + * + * @return The enum numeric value on the wire for valueType. */ public int getValueTypeValue() { return valueType_; } /** + * + * *
      * Whether the measurement is an integer, a floating-point number, etc.
      * Some combinations of `metric_kind` and `value_type` might not be supported.
      * 
* * .google.api.MetricDescriptor.ValueType value_type = 4; + * + * @param value The enum numeric value on the wire for valueType to set. + * @return This builder for chaining. */ public Builder setValueTypeValue(int value) { valueType_ = value; @@ -3413,56 +3923,86 @@ public Builder setValueTypeValue(int value) { return this; } /** + * + * *
      * Whether the measurement is an integer, a floating-point number, etc.
      * Some combinations of `metric_kind` and `value_type` might not be supported.
      * 
* * .google.api.MetricDescriptor.ValueType value_type = 4; + * + * @return The valueType. */ - public ValueType getValueType() { + public com.google.api.MetricDescriptor.ValueType getValueType() { @SuppressWarnings("deprecation") - ValueType result = ValueType.valueOf(valueType_); - return result == null ? ValueType.UNRECOGNIZED : result; + com.google.api.MetricDescriptor.ValueType result = + com.google.api.MetricDescriptor.ValueType.valueOf(valueType_); + return result == null ? com.google.api.MetricDescriptor.ValueType.UNRECOGNIZED : result; } /** + * + * *
      * Whether the measurement is an integer, a floating-point number, etc.
      * Some combinations of `metric_kind` and `value_type` might not be supported.
      * 
* * .google.api.MetricDescriptor.ValueType value_type = 4; + * + * @param value The valueType to set. + * @return This builder for chaining. */ - public Builder setValueType(ValueType value) { + public Builder setValueType(com.google.api.MetricDescriptor.ValueType value) { if (value == null) { throw new NullPointerException(); } - + valueType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Whether the measurement is an integer, a floating-point number, etc.
      * Some combinations of `metric_kind` and `value_type` might not be supported.
      * 
* * .google.api.MetricDescriptor.ValueType value_type = 4; + * + * @return This builder for chaining. */ public Builder clearValueType() { - + valueType_ = 0; onChanged(); return this; } - private Object unit_ = ""; + private java.lang.Object unit_ = ""; /** + * + * *
-     * The unit in which the metric value is reported. It is only applicable
-     * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The
-     * supported units are a subset of [The Unified Code for Units of
+     * The units in which the metric value is reported. It is only applicable
+     * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
+     * defines the representation of the stored metric values.
+     * Different systems may scale the values to be more easily displayed (so a
+     * value of `0.02KBy` _might_ be displayed as `20By`, and a value of
+     * `3523KBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
+     * `KBy`, then the value of the metric is always in thousands of bytes, no
+     * matter how it may be displayed..
+     * If you want a custom metric to record the exact number of CPU-seconds used
+     * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
+     * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
+     * CPU-seconds, then the value is written as `12005`.
+     * Alternatively, if you want a custome metric to record data in a more
+     * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
+     * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
+     * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
+     * The supported units are a subset of [The Unified Code for Units of
      * Measure](http://unitsofmeasure.org/ucum.html) standard:
      * **Basic units (UNIT)**
      * * `bit`   bit
@@ -3472,30 +4012,35 @@ public Builder clearValueType() {
      * * `h`     hour
      * * `d`     day
      * **Prefixes (PREFIX)**
-     * * `k`     kilo    (10**3)
-     * * `M`     mega    (10**6)
-     * * `G`     giga    (10**9)
-     * * `T`     tera    (10**12)
-     * * `P`     peta    (10**15)
-     * * `E`     exa     (10**18)
-     * * `Z`     zetta   (10**21)
-     * * `Y`     yotta   (10**24)
-     * * `m`     milli   (10**-3)
-     * * `u`     micro   (10**-6)
-     * * `n`     nano    (10**-9)
-     * * `p`     pico    (10**-12)
-     * * `f`     femto   (10**-15)
-     * * `a`     atto    (10**-18)
-     * * `z`     zepto   (10**-21)
-     * * `y`     yocto   (10**-24)
-     * * `Ki`    kibi    (2**10)
-     * * `Mi`    mebi    (2**20)
-     * * `Gi`    gibi    (2**30)
-     * * `Ti`    tebi    (2**40)
+     * * `k`     kilo    (10^3)
+     * * `M`     mega    (10^6)
+     * * `G`     giga    (10^9)
+     * * `T`     tera    (10^12)
+     * * `P`     peta    (10^15)
+     * * `E`     exa     (10^18)
+     * * `Z`     zetta   (10^21)
+     * * `Y`     yotta   (10^24)
+     * * `m`     milli   (10^-3)
+     * * `u`     micro   (10^-6)
+     * * `n`     nano    (10^-9)
+     * * `p`     pico    (10^-12)
+     * * `f`     femto   (10^-15)
+     * * `a`     atto    (10^-18)
+     * * `z`     zepto   (10^-21)
+     * * `y`     yocto   (10^-24)
+     * * `Ki`    kibi    (2^10)
+     * * `Mi`    mebi    (2^20)
+     * * `Gi`    gibi    (2^30)
+     * * `Ti`    tebi    (2^40)
+     * * `Pi`    pebi    (2^50)
      * **Grammar**
      * The grammar also includes these connectors:
-     * * `/`    division (as an infix operator, e.g. `1/s`).
-     * * `.`    multiplication (as an infix operator, e.g. `GBy.d`)
+     * * `/`    division or ratio (as an infix operator). For examples,
+     *          `kBy/{email}` or `MiBy/10ms` (although you should almost never
+     *          have `/s` in a metric `unit`; rates should always be computed at
+     *          query time from the underlying cumulative or delta value).
+     * * `.`    multiplication or composition (as an infix operator). For
+     *          examples, `GBy.d` or `k{watt}.h`.
      * The grammar for a unit is as follows:
      *     Expression = Component { "." Component } { "/" Component } ;
      *     Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
@@ -3504,35 +4049,63 @@ public Builder clearValueType() {
      *               ;
      *     Annotation = "{" NAME "}" ;
      * Notes:
-     * * `Annotation` is just a comment if it follows a `UNIT` and is
-     *    equivalent to `1` if it is used alone. For examples,
-     *    `{requests}/s == 1/s`, `By{transmitted}/s == By/s`.
+     * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
+     *    is used alone, then the unit is equivalent to `1`. For examples,
+     *    `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
      * * `NAME` is a sequence of non-blank printable ASCII characters not
-     *    containing '{' or '}'.
-     * * `1` represents dimensionless value 1, such as in `1/s`.
-     * * `%` represents dimensionless value 1/100, and annotates values giving
-     *    a percentage.
+     *    containing `{` or `}`.
+     * * `1` represents a unitary [dimensionless
+     *    unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such
+     *    as in `1/s`. It is typically used when none of the basic units are
+     *    appropriate. For example, "new users per day" can be represented as
+     *    `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new
+     *    users). Alternatively, "thousands of page views per day" would be
+     *    represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric
+     *    value of `5.3` would mean "5300 page views per day").
+     * * `%` represents dimensionless value of 1/100, and annotates values giving
+     *    a percentage (so the metric values are typically in the range of 0..100,
+     *    and a metric value `3` means "3 percent").
+     * * `10^2.%` indicates a metric contains a ratio, typically in the range
+     *    0..1, that will be multiplied by 100 and displayed as a percentage
+     *    (so a metric value `0.03` means "3 percent").
      * 
* * string unit = 5; + * + * @return The unit. */ - public String getUnit() { - Object ref = unit_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getUnit() { + java.lang.Object ref = unit_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); unit_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
-     * The unit in which the metric value is reported. It is only applicable
-     * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The
-     * supported units are a subset of [The Unified Code for Units of
+     * The units in which the metric value is reported. It is only applicable
+     * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
+     * defines the representation of the stored metric values.
+     * Different systems may scale the values to be more easily displayed (so a
+     * value of `0.02KBy` _might_ be displayed as `20By`, and a value of
+     * `3523KBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
+     * `KBy`, then the value of the metric is always in thousands of bytes, no
+     * matter how it may be displayed..
+     * If you want a custom metric to record the exact number of CPU-seconds used
+     * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
+     * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
+     * CPU-seconds, then the value is written as `12005`.
+     * Alternatively, if you want a custome metric to record data in a more
+     * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
+     * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
+     * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
+     * The supported units are a subset of [The Unified Code for Units of
      * Measure](http://unitsofmeasure.org/ucum.html) standard:
      * **Basic units (UNIT)**
      * * `bit`   bit
@@ -3542,30 +4115,35 @@ public String getUnit() {
      * * `h`     hour
      * * `d`     day
      * **Prefixes (PREFIX)**
-     * * `k`     kilo    (10**3)
-     * * `M`     mega    (10**6)
-     * * `G`     giga    (10**9)
-     * * `T`     tera    (10**12)
-     * * `P`     peta    (10**15)
-     * * `E`     exa     (10**18)
-     * * `Z`     zetta   (10**21)
-     * * `Y`     yotta   (10**24)
-     * * `m`     milli   (10**-3)
-     * * `u`     micro   (10**-6)
-     * * `n`     nano    (10**-9)
-     * * `p`     pico    (10**-12)
-     * * `f`     femto   (10**-15)
-     * * `a`     atto    (10**-18)
-     * * `z`     zepto   (10**-21)
-     * * `y`     yocto   (10**-24)
-     * * `Ki`    kibi    (2**10)
-     * * `Mi`    mebi    (2**20)
-     * * `Gi`    gibi    (2**30)
-     * * `Ti`    tebi    (2**40)
+     * * `k`     kilo    (10^3)
+     * * `M`     mega    (10^6)
+     * * `G`     giga    (10^9)
+     * * `T`     tera    (10^12)
+     * * `P`     peta    (10^15)
+     * * `E`     exa     (10^18)
+     * * `Z`     zetta   (10^21)
+     * * `Y`     yotta   (10^24)
+     * * `m`     milli   (10^-3)
+     * * `u`     micro   (10^-6)
+     * * `n`     nano    (10^-9)
+     * * `p`     pico    (10^-12)
+     * * `f`     femto   (10^-15)
+     * * `a`     atto    (10^-18)
+     * * `z`     zepto   (10^-21)
+     * * `y`     yocto   (10^-24)
+     * * `Ki`    kibi    (2^10)
+     * * `Mi`    mebi    (2^20)
+     * * `Gi`    gibi    (2^30)
+     * * `Ti`    tebi    (2^40)
+     * * `Pi`    pebi    (2^50)
      * **Grammar**
      * The grammar also includes these connectors:
-     * * `/`    division (as an infix operator, e.g. `1/s`).
-     * * `.`    multiplication (as an infix operator, e.g. `GBy.d`)
+     * * `/`    division or ratio (as an infix operator). For examples,
+     *          `kBy/{email}` or `MiBy/10ms` (although you should almost never
+     *          have `/s` in a metric `unit`; rates should always be computed at
+     *          query time from the underlying cumulative or delta value).
+     * * `.`    multiplication or composition (as an infix operator). For
+     *          examples, `GBy.d` or `k{watt}.h`.
      * The grammar for a unit is as follows:
      *     Expression = Component { "." Component } { "/" Component } ;
      *     Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
@@ -3574,25 +4152,36 @@ public String getUnit() {
      *               ;
      *     Annotation = "{" NAME "}" ;
      * Notes:
-     * * `Annotation` is just a comment if it follows a `UNIT` and is
-     *    equivalent to `1` if it is used alone. For examples,
-     *    `{requests}/s == 1/s`, `By{transmitted}/s == By/s`.
+     * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
+     *    is used alone, then the unit is equivalent to `1`. For examples,
+     *    `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
      * * `NAME` is a sequence of non-blank printable ASCII characters not
-     *    containing '{' or '}'.
-     * * `1` represents dimensionless value 1, such as in `1/s`.
-     * * `%` represents dimensionless value 1/100, and annotates values giving
-     *    a percentage.
+     *    containing `{` or `}`.
+     * * `1` represents a unitary [dimensionless
+     *    unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such
+     *    as in `1/s`. It is typically used when none of the basic units are
+     *    appropriate. For example, "new users per day" can be represented as
+     *    `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new
+     *    users). Alternatively, "thousands of page views per day" would be
+     *    represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric
+     *    value of `5.3` would mean "5300 page views per day").
+     * * `%` represents dimensionless value of 1/100, and annotates values giving
+     *    a percentage (so the metric values are typically in the range of 0..100,
+     *    and a metric value `3` means "3 percent").
+     * * `10^2.%` indicates a metric contains a ratio, typically in the range
+     *    0..1, that will be multiplied by 100 and displayed as a percentage
+     *    (so a metric value `0.03` means "3 percent").
      * 
* * string unit = 5; + * + * @return The bytes for unit. */ - public com.google.protobuf.ByteString - getUnitBytes() { - Object ref = unit_; + public com.google.protobuf.ByteString getUnitBytes() { + java.lang.Object ref = unit_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); unit_ = b; return b; } else { @@ -3600,10 +4189,26 @@ public String getUnit() { } } /** + * + * *
-     * The unit in which the metric value is reported. It is only applicable
-     * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The
-     * supported units are a subset of [The Unified Code for Units of
+     * The units in which the metric value is reported. It is only applicable
+     * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
+     * defines the representation of the stored metric values.
+     * Different systems may scale the values to be more easily displayed (so a
+     * value of `0.02KBy` _might_ be displayed as `20By`, and a value of
+     * `3523KBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
+     * `KBy`, then the value of the metric is always in thousands of bytes, no
+     * matter how it may be displayed..
+     * If you want a custom metric to record the exact number of CPU-seconds used
+     * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
+     * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
+     * CPU-seconds, then the value is written as `12005`.
+     * Alternatively, if you want a custome metric to record data in a more
+     * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
+     * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
+     * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
+     * The supported units are a subset of [The Unified Code for Units of
      * Measure](http://unitsofmeasure.org/ucum.html) standard:
      * **Basic units (UNIT)**
      * * `bit`   bit
@@ -3613,30 +4218,35 @@ public String getUnit() {
      * * `h`     hour
      * * `d`     day
      * **Prefixes (PREFIX)**
-     * * `k`     kilo    (10**3)
-     * * `M`     mega    (10**6)
-     * * `G`     giga    (10**9)
-     * * `T`     tera    (10**12)
-     * * `P`     peta    (10**15)
-     * * `E`     exa     (10**18)
-     * * `Z`     zetta   (10**21)
-     * * `Y`     yotta   (10**24)
-     * * `m`     milli   (10**-3)
-     * * `u`     micro   (10**-6)
-     * * `n`     nano    (10**-9)
-     * * `p`     pico    (10**-12)
-     * * `f`     femto   (10**-15)
-     * * `a`     atto    (10**-18)
-     * * `z`     zepto   (10**-21)
-     * * `y`     yocto   (10**-24)
-     * * `Ki`    kibi    (2**10)
-     * * `Mi`    mebi    (2**20)
-     * * `Gi`    gibi    (2**30)
-     * * `Ti`    tebi    (2**40)
+     * * `k`     kilo    (10^3)
+     * * `M`     mega    (10^6)
+     * * `G`     giga    (10^9)
+     * * `T`     tera    (10^12)
+     * * `P`     peta    (10^15)
+     * * `E`     exa     (10^18)
+     * * `Z`     zetta   (10^21)
+     * * `Y`     yotta   (10^24)
+     * * `m`     milli   (10^-3)
+     * * `u`     micro   (10^-6)
+     * * `n`     nano    (10^-9)
+     * * `p`     pico    (10^-12)
+     * * `f`     femto   (10^-15)
+     * * `a`     atto    (10^-18)
+     * * `z`     zepto   (10^-21)
+     * * `y`     yocto   (10^-24)
+     * * `Ki`    kibi    (2^10)
+     * * `Mi`    mebi    (2^20)
+     * * `Gi`    gibi    (2^30)
+     * * `Ti`    tebi    (2^40)
+     * * `Pi`    pebi    (2^50)
      * **Grammar**
      * The grammar also includes these connectors:
-     * * `/`    division (as an infix operator, e.g. `1/s`).
-     * * `.`    multiplication (as an infix operator, e.g. `GBy.d`)
+     * * `/`    division or ratio (as an infix operator). For examples,
+     *          `kBy/{email}` or `MiBy/10ms` (although you should almost never
+     *          have `/s` in a metric `unit`; rates should always be computed at
+     *          query time from the underlying cumulative or delta value).
+     * * `.`    multiplication or composition (as an infix operator). For
+     *          examples, `GBy.d` or `k{watt}.h`.
      * The grammar for a unit is as follows:
      *     Expression = Component { "." Component } { "/" Component } ;
      *     Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
@@ -3645,33 +4255,62 @@ public String getUnit() {
      *               ;
      *     Annotation = "{" NAME "}" ;
      * Notes:
-     * * `Annotation` is just a comment if it follows a `UNIT` and is
-     *    equivalent to `1` if it is used alone. For examples,
-     *    `{requests}/s == 1/s`, `By{transmitted}/s == By/s`.
+     * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
+     *    is used alone, then the unit is equivalent to `1`. For examples,
+     *    `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
      * * `NAME` is a sequence of non-blank printable ASCII characters not
-     *    containing '{' or '}'.
-     * * `1` represents dimensionless value 1, such as in `1/s`.
-     * * `%` represents dimensionless value 1/100, and annotates values giving
-     *    a percentage.
+     *    containing `{` or `}`.
+     * * `1` represents a unitary [dimensionless
+     *    unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such
+     *    as in `1/s`. It is typically used when none of the basic units are
+     *    appropriate. For example, "new users per day" can be represented as
+     *    `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new
+     *    users). Alternatively, "thousands of page views per day" would be
+     *    represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric
+     *    value of `5.3` would mean "5300 page views per day").
+     * * `%` represents dimensionless value of 1/100, and annotates values giving
+     *    a percentage (so the metric values are typically in the range of 0..100,
+     *    and a metric value `3` means "3 percent").
+     * * `10^2.%` indicates a metric contains a ratio, typically in the range
+     *    0..1, that will be multiplied by 100 and displayed as a percentage
+     *    (so a metric value `0.03` means "3 percent").
      * 
* * string unit = 5; + * + * @param value The unit to set. + * @return This builder for chaining. */ - public Builder setUnit( - String value) { + public Builder setUnit(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + unit_ = value; onChanged(); return this; } /** + * + * *
-     * The unit in which the metric value is reported. It is only applicable
-     * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The
-     * supported units are a subset of [The Unified Code for Units of
+     * The units in which the metric value is reported. It is only applicable
+     * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
+     * defines the representation of the stored metric values.
+     * Different systems may scale the values to be more easily displayed (so a
+     * value of `0.02KBy` _might_ be displayed as `20By`, and a value of
+     * `3523KBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
+     * `KBy`, then the value of the metric is always in thousands of bytes, no
+     * matter how it may be displayed..
+     * If you want a custom metric to record the exact number of CPU-seconds used
+     * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
+     * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
+     * CPU-seconds, then the value is written as `12005`.
+     * Alternatively, if you want a custome metric to record data in a more
+     * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
+     * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
+     * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
+     * The supported units are a subset of [The Unified Code for Units of
      * Measure](http://unitsofmeasure.org/ucum.html) standard:
      * **Basic units (UNIT)**
      * * `bit`   bit
@@ -3681,30 +4320,35 @@ public Builder setUnit(
      * * `h`     hour
      * * `d`     day
      * **Prefixes (PREFIX)**
-     * * `k`     kilo    (10**3)
-     * * `M`     mega    (10**6)
-     * * `G`     giga    (10**9)
-     * * `T`     tera    (10**12)
-     * * `P`     peta    (10**15)
-     * * `E`     exa     (10**18)
-     * * `Z`     zetta   (10**21)
-     * * `Y`     yotta   (10**24)
-     * * `m`     milli   (10**-3)
-     * * `u`     micro   (10**-6)
-     * * `n`     nano    (10**-9)
-     * * `p`     pico    (10**-12)
-     * * `f`     femto   (10**-15)
-     * * `a`     atto    (10**-18)
-     * * `z`     zepto   (10**-21)
-     * * `y`     yocto   (10**-24)
-     * * `Ki`    kibi    (2**10)
-     * * `Mi`    mebi    (2**20)
-     * * `Gi`    gibi    (2**30)
-     * * `Ti`    tebi    (2**40)
+     * * `k`     kilo    (10^3)
+     * * `M`     mega    (10^6)
+     * * `G`     giga    (10^9)
+     * * `T`     tera    (10^12)
+     * * `P`     peta    (10^15)
+     * * `E`     exa     (10^18)
+     * * `Z`     zetta   (10^21)
+     * * `Y`     yotta   (10^24)
+     * * `m`     milli   (10^-3)
+     * * `u`     micro   (10^-6)
+     * * `n`     nano    (10^-9)
+     * * `p`     pico    (10^-12)
+     * * `f`     femto   (10^-15)
+     * * `a`     atto    (10^-18)
+     * * `z`     zepto   (10^-21)
+     * * `y`     yocto   (10^-24)
+     * * `Ki`    kibi    (2^10)
+     * * `Mi`    mebi    (2^20)
+     * * `Gi`    gibi    (2^30)
+     * * `Ti`    tebi    (2^40)
+     * * `Pi`    pebi    (2^50)
      * **Grammar**
      * The grammar also includes these connectors:
-     * * `/`    division (as an infix operator, e.g. `1/s`).
-     * * `.`    multiplication (as an infix operator, e.g. `GBy.d`)
+     * * `/`    division or ratio (as an infix operator). For examples,
+     *          `kBy/{email}` or `MiBy/10ms` (although you should almost never
+     *          have `/s` in a metric `unit`; rates should always be computed at
+     *          query time from the underlying cumulative or delta value).
+     * * `.`    multiplication or composition (as an infix operator). For
+     *          examples, `GBy.d` or `k{watt}.h`.
      * The grammar for a unit is as follows:
      *     Expression = Component { "." Component } { "/" Component } ;
      *     Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
@@ -3713,29 +4357,58 @@ public Builder setUnit(
      *               ;
      *     Annotation = "{" NAME "}" ;
      * Notes:
-     * * `Annotation` is just a comment if it follows a `UNIT` and is
-     *    equivalent to `1` if it is used alone. For examples,
-     *    `{requests}/s == 1/s`, `By{transmitted}/s == By/s`.
+     * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
+     *    is used alone, then the unit is equivalent to `1`. For examples,
+     *    `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
      * * `NAME` is a sequence of non-blank printable ASCII characters not
-     *    containing '{' or '}'.
-     * * `1` represents dimensionless value 1, such as in `1/s`.
-     * * `%` represents dimensionless value 1/100, and annotates values giving
-     *    a percentage.
+     *    containing `{` or `}`.
+     * * `1` represents a unitary [dimensionless
+     *    unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such
+     *    as in `1/s`. It is typically used when none of the basic units are
+     *    appropriate. For example, "new users per day" can be represented as
+     *    `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new
+     *    users). Alternatively, "thousands of page views per day" would be
+     *    represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric
+     *    value of `5.3` would mean "5300 page views per day").
+     * * `%` represents dimensionless value of 1/100, and annotates values giving
+     *    a percentage (so the metric values are typically in the range of 0..100,
+     *    and a metric value `3` means "3 percent").
+     * * `10^2.%` indicates a metric contains a ratio, typically in the range
+     *    0..1, that will be multiplied by 100 and displayed as a percentage
+     *    (so a metric value `0.03` means "3 percent").
      * 
* * string unit = 5; + * + * @return This builder for chaining. */ public Builder clearUnit() { - + unit_ = getDefaultInstance().getUnit(); onChanged(); return this; } /** + * + * *
-     * The unit in which the metric value is reported. It is only applicable
-     * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The
-     * supported units are a subset of [The Unified Code for Units of
+     * The units in which the metric value is reported. It is only applicable
+     * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
+     * defines the representation of the stored metric values.
+     * Different systems may scale the values to be more easily displayed (so a
+     * value of `0.02KBy` _might_ be displayed as `20By`, and a value of
+     * `3523KBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
+     * `KBy`, then the value of the metric is always in thousands of bytes, no
+     * matter how it may be displayed..
+     * If you want a custom metric to record the exact number of CPU-seconds used
+     * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
+     * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
+     * CPU-seconds, then the value is written as `12005`.
+     * Alternatively, if you want a custome metric to record data in a more
+     * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
+     * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
+     * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
+     * The supported units are a subset of [The Unified Code for Units of
      * Measure](http://unitsofmeasure.org/ucum.html) standard:
      * **Basic units (UNIT)**
      * * `bit`   bit
@@ -3745,30 +4418,35 @@ public Builder clearUnit() {
      * * `h`     hour
      * * `d`     day
      * **Prefixes (PREFIX)**
-     * * `k`     kilo    (10**3)
-     * * `M`     mega    (10**6)
-     * * `G`     giga    (10**9)
-     * * `T`     tera    (10**12)
-     * * `P`     peta    (10**15)
-     * * `E`     exa     (10**18)
-     * * `Z`     zetta   (10**21)
-     * * `Y`     yotta   (10**24)
-     * * `m`     milli   (10**-3)
-     * * `u`     micro   (10**-6)
-     * * `n`     nano    (10**-9)
-     * * `p`     pico    (10**-12)
-     * * `f`     femto   (10**-15)
-     * * `a`     atto    (10**-18)
-     * * `z`     zepto   (10**-21)
-     * * `y`     yocto   (10**-24)
-     * * `Ki`    kibi    (2**10)
-     * * `Mi`    mebi    (2**20)
-     * * `Gi`    gibi    (2**30)
-     * * `Ti`    tebi    (2**40)
+     * * `k`     kilo    (10^3)
+     * * `M`     mega    (10^6)
+     * * `G`     giga    (10^9)
+     * * `T`     tera    (10^12)
+     * * `P`     peta    (10^15)
+     * * `E`     exa     (10^18)
+     * * `Z`     zetta   (10^21)
+     * * `Y`     yotta   (10^24)
+     * * `m`     milli   (10^-3)
+     * * `u`     micro   (10^-6)
+     * * `n`     nano    (10^-9)
+     * * `p`     pico    (10^-12)
+     * * `f`     femto   (10^-15)
+     * * `a`     atto    (10^-18)
+     * * `z`     zepto   (10^-21)
+     * * `y`     yocto   (10^-24)
+     * * `Ki`    kibi    (2^10)
+     * * `Mi`    mebi    (2^20)
+     * * `Gi`    gibi    (2^30)
+     * * `Ti`    tebi    (2^40)
+     * * `Pi`    pebi    (2^50)
      * **Grammar**
      * The grammar also includes these connectors:
-     * * `/`    division (as an infix operator, e.g. `1/s`).
-     * * `.`    multiplication (as an infix operator, e.g. `GBy.d`)
+     * * `/`    division or ratio (as an infix operator). For examples,
+     *          `kBy/{email}` or `MiBy/10ms` (although you should almost never
+     *          have `/s` in a metric `unit`; rates should always be computed at
+     *          query time from the underlying cumulative or delta value).
+     * * `.`    multiplication or composition (as an infix operator). For
+     *          examples, `GBy.d` or `k{watt}.h`.
      * The grammar for a unit is as follows:
      *     Expression = Component { "." Component } { "/" Component } ;
      *     Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
@@ -3777,64 +4455,82 @@ public Builder clearUnit() {
      *               ;
      *     Annotation = "{" NAME "}" ;
      * Notes:
-     * * `Annotation` is just a comment if it follows a `UNIT` and is
-     *    equivalent to `1` if it is used alone. For examples,
-     *    `{requests}/s == 1/s`, `By{transmitted}/s == By/s`.
+     * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
+     *    is used alone, then the unit is equivalent to `1`. For examples,
+     *    `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
      * * `NAME` is a sequence of non-blank printable ASCII characters not
-     *    containing '{' or '}'.
-     * * `1` represents dimensionless value 1, such as in `1/s`.
-     * * `%` represents dimensionless value 1/100, and annotates values giving
-     *    a percentage.
+     *    containing `{` or `}`.
+     * * `1` represents a unitary [dimensionless
+     *    unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such
+     *    as in `1/s`. It is typically used when none of the basic units are
+     *    appropriate. For example, "new users per day" can be represented as
+     *    `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new
+     *    users). Alternatively, "thousands of page views per day" would be
+     *    represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric
+     *    value of `5.3` would mean "5300 page views per day").
+     * * `%` represents dimensionless value of 1/100, and annotates values giving
+     *    a percentage (so the metric values are typically in the range of 0..100,
+     *    and a metric value `3` means "3 percent").
+     * * `10^2.%` indicates a metric contains a ratio, typically in the range
+     *    0..1, that will be multiplied by 100 and displayed as a percentage
+     *    (so a metric value `0.03` means "3 percent").
      * 
* * string unit = 5; + * + * @param value The bytes for unit to set. + * @return This builder for chaining. */ - public Builder setUnitBytes( - com.google.protobuf.ByteString value) { + public Builder setUnitBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + unit_ = value; onChanged(); return this; } - private Object description_ = ""; + private java.lang.Object description_ = ""; /** + * + * *
      * A detailed description of the metric, which can be used in documentation.
      * 
* * string description = 6; + * + * @return The description. */ - public String getDescription() { - Object ref = description_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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; + java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * A detailed description of the metric, which can be used in documentation.
      * 
* * string description = 6; + * + * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - Object ref = description_; + 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( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -3842,56 +4538,70 @@ public String getDescription() { } } /** + * + * *
      * A detailed description of the metric, which can be used in documentation.
      * 
* * string description = 6; + * + * @param value The description to set. + * @return This builder for chaining. */ - public Builder setDescription( - String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * A detailed description of the metric, which can be used in documentation.
      * 
* * string description = 6; + * + * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * A detailed description of the metric, which can be used in documentation.
      * 
* * string description = 6; + * + * @param value The bytes for description to set. + * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private Object displayName_ = ""; + private java.lang.Object displayName_ = ""; /** + * + * *
      * A concise name for the metric, which can be displayed in user interfaces.
      * Use sentence case without an ending period, for example "Request count".
@@ -3900,20 +4610,23 @@ public Builder setDescriptionBytes(
      * 
* * string display_name = 7; + * + * @return The displayName. */ - public String getDisplayName() { - Object ref = displayName_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * A concise name for the metric, which can be displayed in user interfaces.
      * Use sentence case without an ending period, for example "Request count".
@@ -3922,14 +4635,14 @@ public String getDisplayName() {
      * 
* * string display_name = 7; + * + * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - Object ref = displayName_; + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -3937,6 +4650,8 @@ public String getDisplayName() { } } /** + * + * *
      * A concise name for the metric, which can be displayed in user interfaces.
      * Use sentence case without an ending period, for example "Request count".
@@ -3945,18 +4660,22 @@ public String getDisplayName() {
      * 
* * string display_name = 7; + * + * @param value The displayName to set. + * @return This builder for chaining. */ - public Builder setDisplayName( - String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * A concise name for the metric, which can be displayed in user interfaces.
      * Use sentence case without an ending period, for example "Request count".
@@ -3965,14 +4684,18 @@ public Builder setDisplayName(
      * 
* * string display_name = 7; + * + * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * A concise name for the metric, which can be displayed in user interfaces.
      * Use sentence case without an ending period, for example "Request count".
@@ -3981,54 +4704,71 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 7; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } - private MetricDescriptorMetadata metadata_; + private com.google.api.MetricDescriptor.MetricDescriptorMetadata metadata_; private com.google.protobuf.SingleFieldBuilderV3< - MetricDescriptorMetadata, MetricDescriptorMetadata.Builder, MetricDescriptorMetadataOrBuilder> metadataBuilder_; + com.google.api.MetricDescriptor.MetricDescriptorMetadata, + com.google.api.MetricDescriptor.MetricDescriptorMetadata.Builder, + com.google.api.MetricDescriptor.MetricDescriptorMetadataOrBuilder> + metadataBuilder_; /** + * + * *
      * Optional. Metadata which can be used to guide usage of the metric.
      * 
* * .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; + * + * @return Whether the metadata field is set. */ public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** + * + * *
      * Optional. Metadata which can be used to guide usage of the metric.
      * 
* * .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; + * + * @return The metadata. */ - public MetricDescriptorMetadata getMetadata() { + public com.google.api.MetricDescriptor.MetricDescriptorMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null ? MetricDescriptorMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.api.MetricDescriptor.MetricDescriptorMetadata.getDefaultInstance() + : metadata_; } else { return metadataBuilder_.getMessage(); } } /** + * + * *
      * Optional. Metadata which can be used to guide usage of the metric.
      * 
* * .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; */ - public Builder setMetadata(MetricDescriptorMetadata value) { + public Builder setMetadata(com.google.api.MetricDescriptor.MetricDescriptorMetadata value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4042,6 +4782,8 @@ public Builder setMetadata(MetricDescriptorMetadata value) { return this; } /** + * + * *
      * Optional. Metadata which can be used to guide usage of the metric.
      * 
@@ -4049,7 +4791,7 @@ public Builder setMetadata(MetricDescriptorMetadata value) { * .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; */ public Builder setMetadata( - MetricDescriptorMetadata.Builder builderForValue) { + com.google.api.MetricDescriptor.MetricDescriptorMetadata.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); @@ -4060,17 +4802,21 @@ public Builder setMetadata( return this; } /** + * + * *
      * Optional. Metadata which can be used to guide usage of the metric.
      * 
* * .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; */ - public Builder mergeMetadata(MetricDescriptorMetadata value) { + public Builder mergeMetadata(com.google.api.MetricDescriptor.MetricDescriptorMetadata value) { if (metadataBuilder_ == null) { if (metadata_ != null) { metadata_ = - MetricDescriptorMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + com.google.api.MetricDescriptor.MetricDescriptorMetadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); } else { metadata_ = value; } @@ -4082,6 +4828,8 @@ public Builder mergeMetadata(MetricDescriptorMetadata value) { return this; } /** + * + * *
      * Optional. Metadata which can be used to guide usage of the metric.
      * 
@@ -4100,33 +4848,41 @@ public Builder clearMetadata() { return this; } /** + * + * *
      * Optional. Metadata which can be used to guide usage of the metric.
      * 
* * .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; */ - public MetricDescriptorMetadata.Builder getMetadataBuilder() { - + public com.google.api.MetricDescriptor.MetricDescriptorMetadata.Builder getMetadataBuilder() { + onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Metadata which can be used to guide usage of the metric.
      * 
* * .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; */ - public MetricDescriptorMetadataOrBuilder getMetadataOrBuilder() { + public com.google.api.MetricDescriptor.MetricDescriptorMetadataOrBuilder + getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { - return metadata_ == null ? - MetricDescriptorMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.api.MetricDescriptor.MetricDescriptorMetadata.getDefaultInstance() + : metadata_; } } /** + * + * *
      * Optional. Metadata which can be used to guide usage of the metric.
      * 
@@ -4134,14 +4890,17 @@ public MetricDescriptorMetadataOrBuilder getMetadataOrBuilder() { * .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - MetricDescriptorMetadata, MetricDescriptorMetadata.Builder, MetricDescriptorMetadataOrBuilder> + com.google.api.MetricDescriptor.MetricDescriptorMetadata, + com.google.api.MetricDescriptor.MetricDescriptorMetadata.Builder, + com.google.api.MetricDescriptor.MetricDescriptorMetadataOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - MetricDescriptorMetadata, MetricDescriptorMetadata.Builder, MetricDescriptorMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.MetricDescriptor.MetricDescriptorMetadata, + com.google.api.MetricDescriptor.MetricDescriptorMetadata.Builder, + com.google.api.MetricDescriptor.MetricDescriptorMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; @@ -4149,21 +4908,30 @@ public MetricDescriptorMetadataOrBuilder getMetadataOrBuilder() { private int launchStage_ = 0; /** + * + * *
      * Optional. The launch stage of the metric definition.
      * 
* * .google.api.LaunchStage launch_stage = 12; + * + * @return The enum numeric value on the wire for launchStage. */ public int getLaunchStageValue() { return launchStage_; } /** + * + * *
      * Optional. The launch stage of the metric definition.
      * 
* * .google.api.LaunchStage launch_stage = 12; + * + * @param value The enum numeric value on the wire for launchStage to set. + * @return This builder for chaining. */ public Builder setLaunchStageValue(int value) { launchStage_ = value; @@ -4171,96 +4939,107 @@ public Builder setLaunchStageValue(int value) { return this; } /** + * + * *
      * Optional. The launch stage of the metric definition.
      * 
* * .google.api.LaunchStage launch_stage = 12; + * + * @return The launchStage. */ - public LaunchStage getLaunchStage() { + public com.google.api.LaunchStage getLaunchStage() { @SuppressWarnings("deprecation") - LaunchStage result = LaunchStage.valueOf(launchStage_); - return result == null ? LaunchStage.UNRECOGNIZED : result; + com.google.api.LaunchStage result = com.google.api.LaunchStage.valueOf(launchStage_); + return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result; } /** + * + * *
      * Optional. The launch stage of the metric definition.
      * 
* * .google.api.LaunchStage launch_stage = 12; + * + * @param value The launchStage to set. + * @return This builder for chaining. */ - public Builder setLaunchStage(LaunchStage value) { + public Builder setLaunchStage(com.google.api.LaunchStage value) { if (value == null) { throw new NullPointerException(); } - + launchStage_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. The launch stage of the metric definition.
      * 
* * .google.api.LaunchStage launch_stage = 12; + * + * @return This builder for chaining. */ public Builder clearLaunchStage() { - + launchStage_ = 0; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.MetricDescriptor) } // @@protoc_insertion_point(class_scope:google.api.MetricDescriptor) - private static final MetricDescriptor DEFAULT_INSTANCE; + private static final com.google.api.MetricDescriptor DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new MetricDescriptor(); + DEFAULT_INSTANCE = new com.google.api.MetricDescriptor(); } - public static MetricDescriptor getDefaultInstance() { + public static com.google.api.MetricDescriptor getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public MetricDescriptor parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MetricDescriptor(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetricDescriptor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MetricDescriptor(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public MetricDescriptor getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.MetricDescriptor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptorOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptorOrBuilder.java index 086926f0..60419dc1 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptorOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptorOrBuilder.java @@ -1,31 +1,56 @@ +/* + * 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/metric.proto package com.google.api; -public interface MetricDescriptorOrBuilder extends +public interface MetricDescriptorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.MetricDescriptor) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the metric descriptor.
    * 
* * string name = 1; + * + * @return The name. */ - String getName(); + java.lang.String getName(); /** + * + * *
    * The resource name of the metric descriptor.
    * 
* * string name = 1; + * + * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The metric type, including its DNS name prefix. The type is not
    * URL-encoded.  All user-defined metric types have the DNS name
@@ -37,9 +62,13 @@ public interface MetricDescriptorOrBuilder extends
    * 
* * string type = 8; + * + * @return The type. */ - String getType(); + java.lang.String getType(); /** + * + * *
    * The metric type, including its DNS name prefix. The type is not
    * URL-encoded.  All user-defined metric types have the DNS name
@@ -51,11 +80,14 @@ public interface MetricDescriptorOrBuilder extends
    * 
* * string type = 8; + * + * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); /** + * + * *
    * The set of labels that can be used to describe a specific
    * instance of this metric type. For example, the
@@ -67,9 +99,10 @@ public interface MetricDescriptorOrBuilder extends
    *
    * repeated .google.api.LabelDescriptor labels = 2;
    */
-  java.util.List
-      getLabelsList();
+  java.util.List getLabelsList();
   /**
+   *
+   *
    * 
    * The set of labels that can be used to describe a specific
    * instance of this metric type. For example, the
@@ -81,8 +114,10 @@ public interface MetricDescriptorOrBuilder extends
    *
    * repeated .google.api.LabelDescriptor labels = 2;
    */
-  LabelDescriptor getLabels(int index);
+  com.google.api.LabelDescriptor getLabels(int index);
   /**
+   *
+   *
    * 
    * The set of labels that can be used to describe a specific
    * instance of this metric type. For example, the
@@ -96,6 +131,8 @@ public interface MetricDescriptorOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * The set of labels that can be used to describe a specific
    * instance of this metric type. For example, the
@@ -107,9 +144,10 @@ public interface MetricDescriptorOrBuilder extends
    *
    * repeated .google.api.LabelDescriptor labels = 2;
    */
-  java.util.List
-      getLabelsOrBuilderList();
+  java.util.List getLabelsOrBuilderList();
   /**
+   *
+   *
    * 
    * The set of labels that can be used to describe a specific
    * instance of this metric type. For example, the
@@ -121,52 +159,83 @@ public interface MetricDescriptorOrBuilder extends
    *
    * repeated .google.api.LabelDescriptor labels = 2;
    */
-  LabelDescriptorOrBuilder getLabelsOrBuilder(
-      int index);
+  com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Whether the metric records instantaneous values, changes to a value, etc.
    * Some combinations of `metric_kind` and `value_type` might not be supported.
    * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * + * @return The enum numeric value on the wire for metricKind. */ int getMetricKindValue(); /** + * + * *
    * Whether the metric records instantaneous values, changes to a value, etc.
    * Some combinations of `metric_kind` and `value_type` might not be supported.
    * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * + * @return The metricKind. */ - MetricDescriptor.MetricKind getMetricKind(); + com.google.api.MetricDescriptor.MetricKind getMetricKind(); /** + * + * *
    * Whether the measurement is an integer, a floating-point number, etc.
    * Some combinations of `metric_kind` and `value_type` might not be supported.
    * 
* * .google.api.MetricDescriptor.ValueType value_type = 4; + * + * @return The enum numeric value on the wire for valueType. */ int getValueTypeValue(); /** + * + * *
    * Whether the measurement is an integer, a floating-point number, etc.
    * Some combinations of `metric_kind` and `value_type` might not be supported.
    * 
* * .google.api.MetricDescriptor.ValueType value_type = 4; + * + * @return The valueType. */ - MetricDescriptor.ValueType getValueType(); + com.google.api.MetricDescriptor.ValueType getValueType(); /** + * + * *
-   * The unit in which the metric value is reported. It is only applicable
-   * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The
-   * supported units are a subset of [The Unified Code for Units of
+   * The units in which the metric value is reported. It is only applicable
+   * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
+   * defines the representation of the stored metric values.
+   * Different systems may scale the values to be more easily displayed (so a
+   * value of `0.02KBy` _might_ be displayed as `20By`, and a value of
+   * `3523KBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
+   * `KBy`, then the value of the metric is always in thousands of bytes, no
+   * matter how it may be displayed..
+   * If you want a custom metric to record the exact number of CPU-seconds used
+   * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
+   * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
+   * CPU-seconds, then the value is written as `12005`.
+   * Alternatively, if you want a custome metric to record data in a more
+   * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
+   * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
+   * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
+   * The supported units are a subset of [The Unified Code for Units of
    * Measure](http://unitsofmeasure.org/ucum.html) standard:
    * **Basic units (UNIT)**
    * * `bit`   bit
@@ -176,30 +245,35 @@ LabelDescriptorOrBuilder getLabelsOrBuilder(
    * * `h`     hour
    * * `d`     day
    * **Prefixes (PREFIX)**
-   * * `k`     kilo    (10**3)
-   * * `M`     mega    (10**6)
-   * * `G`     giga    (10**9)
-   * * `T`     tera    (10**12)
-   * * `P`     peta    (10**15)
-   * * `E`     exa     (10**18)
-   * * `Z`     zetta   (10**21)
-   * * `Y`     yotta   (10**24)
-   * * `m`     milli   (10**-3)
-   * * `u`     micro   (10**-6)
-   * * `n`     nano    (10**-9)
-   * * `p`     pico    (10**-12)
-   * * `f`     femto   (10**-15)
-   * * `a`     atto    (10**-18)
-   * * `z`     zepto   (10**-21)
-   * * `y`     yocto   (10**-24)
-   * * `Ki`    kibi    (2**10)
-   * * `Mi`    mebi    (2**20)
-   * * `Gi`    gibi    (2**30)
-   * * `Ti`    tebi    (2**40)
+   * * `k`     kilo    (10^3)
+   * * `M`     mega    (10^6)
+   * * `G`     giga    (10^9)
+   * * `T`     tera    (10^12)
+   * * `P`     peta    (10^15)
+   * * `E`     exa     (10^18)
+   * * `Z`     zetta   (10^21)
+   * * `Y`     yotta   (10^24)
+   * * `m`     milli   (10^-3)
+   * * `u`     micro   (10^-6)
+   * * `n`     nano    (10^-9)
+   * * `p`     pico    (10^-12)
+   * * `f`     femto   (10^-15)
+   * * `a`     atto    (10^-18)
+   * * `z`     zepto   (10^-21)
+   * * `y`     yocto   (10^-24)
+   * * `Ki`    kibi    (2^10)
+   * * `Mi`    mebi    (2^20)
+   * * `Gi`    gibi    (2^30)
+   * * `Ti`    tebi    (2^40)
+   * * `Pi`    pebi    (2^50)
    * **Grammar**
    * The grammar also includes these connectors:
-   * * `/`    division (as an infix operator, e.g. `1/s`).
-   * * `.`    multiplication (as an infix operator, e.g. `GBy.d`)
+   * * `/`    division or ratio (as an infix operator). For examples,
+   *          `kBy/{email}` or `MiBy/10ms` (although you should almost never
+   *          have `/s` in a metric `unit`; rates should always be computed at
+   *          query time from the underlying cumulative or delta value).
+   * * `.`    multiplication or composition (as an infix operator). For
+   *          examples, `GBy.d` or `k{watt}.h`.
    * The grammar for a unit is as follows:
    *     Expression = Component { "." Component } { "/" Component } ;
    *     Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
@@ -208,24 +282,53 @@ LabelDescriptorOrBuilder getLabelsOrBuilder(
    *               ;
    *     Annotation = "{" NAME "}" ;
    * Notes:
-   * * `Annotation` is just a comment if it follows a `UNIT` and is
-   *    equivalent to `1` if it is used alone. For examples,
-   *    `{requests}/s == 1/s`, `By{transmitted}/s == By/s`.
+   * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
+   *    is used alone, then the unit is equivalent to `1`. For examples,
+   *    `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
    * * `NAME` is a sequence of non-blank printable ASCII characters not
-   *    containing '{' or '}'.
-   * * `1` represents dimensionless value 1, such as in `1/s`.
-   * * `%` represents dimensionless value 1/100, and annotates values giving
-   *    a percentage.
+   *    containing `{` or `}`.
+   * * `1` represents a unitary [dimensionless
+   *    unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such
+   *    as in `1/s`. It is typically used when none of the basic units are
+   *    appropriate. For example, "new users per day" can be represented as
+   *    `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new
+   *    users). Alternatively, "thousands of page views per day" would be
+   *    represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric
+   *    value of `5.3` would mean "5300 page views per day").
+   * * `%` represents dimensionless value of 1/100, and annotates values giving
+   *    a percentage (so the metric values are typically in the range of 0..100,
+   *    and a metric value `3` means "3 percent").
+   * * `10^2.%` indicates a metric contains a ratio, typically in the range
+   *    0..1, that will be multiplied by 100 and displayed as a percentage
+   *    (so a metric value `0.03` means "3 percent").
    * 
* * string unit = 5; + * + * @return The unit. */ - String getUnit(); + java.lang.String getUnit(); /** + * + * *
-   * The unit in which the metric value is reported. It is only applicable
-   * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The
-   * supported units are a subset of [The Unified Code for Units of
+   * The units in which the metric value is reported. It is only applicable
+   * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
+   * defines the representation of the stored metric values.
+   * Different systems may scale the values to be more easily displayed (so a
+   * value of `0.02KBy` _might_ be displayed as `20By`, and a value of
+   * `3523KBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
+   * `KBy`, then the value of the metric is always in thousands of bytes, no
+   * matter how it may be displayed..
+   * If you want a custom metric to record the exact number of CPU-seconds used
+   * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
+   * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
+   * CPU-seconds, then the value is written as `12005`.
+   * Alternatively, if you want a custome metric to record data in a more
+   * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
+   * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
+   * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
+   * The supported units are a subset of [The Unified Code for Units of
    * Measure](http://unitsofmeasure.org/ucum.html) standard:
    * **Basic units (UNIT)**
    * * `bit`   bit
@@ -235,30 +338,35 @@ LabelDescriptorOrBuilder getLabelsOrBuilder(
    * * `h`     hour
    * * `d`     day
    * **Prefixes (PREFIX)**
-   * * `k`     kilo    (10**3)
-   * * `M`     mega    (10**6)
-   * * `G`     giga    (10**9)
-   * * `T`     tera    (10**12)
-   * * `P`     peta    (10**15)
-   * * `E`     exa     (10**18)
-   * * `Z`     zetta   (10**21)
-   * * `Y`     yotta   (10**24)
-   * * `m`     milli   (10**-3)
-   * * `u`     micro   (10**-6)
-   * * `n`     nano    (10**-9)
-   * * `p`     pico    (10**-12)
-   * * `f`     femto   (10**-15)
-   * * `a`     atto    (10**-18)
-   * * `z`     zepto   (10**-21)
-   * * `y`     yocto   (10**-24)
-   * * `Ki`    kibi    (2**10)
-   * * `Mi`    mebi    (2**20)
-   * * `Gi`    gibi    (2**30)
-   * * `Ti`    tebi    (2**40)
+   * * `k`     kilo    (10^3)
+   * * `M`     mega    (10^6)
+   * * `G`     giga    (10^9)
+   * * `T`     tera    (10^12)
+   * * `P`     peta    (10^15)
+   * * `E`     exa     (10^18)
+   * * `Z`     zetta   (10^21)
+   * * `Y`     yotta   (10^24)
+   * * `m`     milli   (10^-3)
+   * * `u`     micro   (10^-6)
+   * * `n`     nano    (10^-9)
+   * * `p`     pico    (10^-12)
+   * * `f`     femto   (10^-15)
+   * * `a`     atto    (10^-18)
+   * * `z`     zepto   (10^-21)
+   * * `y`     yocto   (10^-24)
+   * * `Ki`    kibi    (2^10)
+   * * `Mi`    mebi    (2^20)
+   * * `Gi`    gibi    (2^30)
+   * * `Ti`    tebi    (2^40)
+   * * `Pi`    pebi    (2^50)
    * **Grammar**
    * The grammar also includes these connectors:
-   * * `/`    division (as an infix operator, e.g. `1/s`).
-   * * `.`    multiplication (as an infix operator, e.g. `GBy.d`)
+   * * `/`    division or ratio (as an infix operator). For examples,
+   *          `kBy/{email}` or `MiBy/10ms` (although you should almost never
+   *          have `/s` in a metric `unit`; rates should always be computed at
+   *          query time from the underlying cumulative or delta value).
+   * * `.`    multiplication or composition (as an infix operator). For
+   *          examples, `GBy.d` or `k{watt}.h`.
    * The grammar for a unit is as follows:
    *     Expression = Component { "." Component } { "/" Component } ;
    *     Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
@@ -267,40 +375,61 @@ LabelDescriptorOrBuilder getLabelsOrBuilder(
    *               ;
    *     Annotation = "{" NAME "}" ;
    * Notes:
-   * * `Annotation` is just a comment if it follows a `UNIT` and is
-   *    equivalent to `1` if it is used alone. For examples,
-   *    `{requests}/s == 1/s`, `By{transmitted}/s == By/s`.
+   * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
+   *    is used alone, then the unit is equivalent to `1`. For examples,
+   *    `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
    * * `NAME` is a sequence of non-blank printable ASCII characters not
-   *    containing '{' or '}'.
-   * * `1` represents dimensionless value 1, such as in `1/s`.
-   * * `%` represents dimensionless value 1/100, and annotates values giving
-   *    a percentage.
+   *    containing `{` or `}`.
+   * * `1` represents a unitary [dimensionless
+   *    unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such
+   *    as in `1/s`. It is typically used when none of the basic units are
+   *    appropriate. For example, "new users per day" can be represented as
+   *    `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new
+   *    users). Alternatively, "thousands of page views per day" would be
+   *    represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric
+   *    value of `5.3` would mean "5300 page views per day").
+   * * `%` represents dimensionless value of 1/100, and annotates values giving
+   *    a percentage (so the metric values are typically in the range of 0..100,
+   *    and a metric value `3` means "3 percent").
+   * * `10^2.%` indicates a metric contains a ratio, typically in the range
+   *    0..1, that will be multiplied by 100 and displayed as a percentage
+   *    (so a metric value `0.03` means "3 percent").
    * 
* * string unit = 5; + * + * @return The bytes for unit. */ - com.google.protobuf.ByteString - getUnitBytes(); + com.google.protobuf.ByteString getUnitBytes(); /** + * + * *
    * A detailed description of the metric, which can be used in documentation.
    * 
* * string description = 6; + * + * @return The description. */ - String getDescription(); + java.lang.String getDescription(); /** + * + * *
    * A detailed description of the metric, which can be used in documentation.
    * 
* * string description = 6; + * + * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * A concise name for the metric, which can be displayed in user interfaces.
    * Use sentence case without an ending period, for example "Request count".
@@ -309,9 +438,13 @@ LabelDescriptorOrBuilder getLabelsOrBuilder(
    * 
* * string display_name = 7; + * + * @return The displayName. */ - String getDisplayName(); + java.lang.String getDisplayName(); /** + * + * *
    * A concise name for the metric, which can be displayed in user interfaces.
    * Use sentence case without an ending period, for example "Request count".
@@ -320,49 +453,68 @@ LabelDescriptorOrBuilder getLabelsOrBuilder(
    * 
* * string display_name = 7; + * + * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Optional. Metadata which can be used to guide usage of the metric.
    * 
* * .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; + * + * @return Whether the metadata field is set. */ boolean hasMetadata(); /** + * + * *
    * Optional. Metadata which can be used to guide usage of the metric.
    * 
* * .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; + * + * @return The metadata. */ - MetricDescriptor.MetricDescriptorMetadata getMetadata(); + com.google.api.MetricDescriptor.MetricDescriptorMetadata getMetadata(); /** + * + * *
    * Optional. Metadata which can be used to guide usage of the metric.
    * 
* * .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; */ - MetricDescriptor.MetricDescriptorMetadataOrBuilder getMetadataOrBuilder(); + com.google.api.MetricDescriptor.MetricDescriptorMetadataOrBuilder getMetadataOrBuilder(); /** + * + * *
    * Optional. The launch stage of the metric definition.
    * 
* * .google.api.LaunchStage launch_stage = 12; + * + * @return The enum numeric value on the wire for launchStage. */ int getLaunchStageValue(); /** + * + * *
    * Optional. The launch stage of the metric definition.
    * 
* * .google.api.LaunchStage launch_stage = 12; + * + * @return The launchStage. */ - LaunchStage getLaunchStage(); + com.google.api.LaunchStage getLaunchStage(); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/MetricOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/MetricOrBuilder.java index f0ca4686..0eec7a00 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/MetricOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/MetricOrBuilder.java @@ -1,33 +1,58 @@ +/* + * 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/metric.proto package com.google.api; -public interface MetricOrBuilder extends +public interface MetricOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.Metric) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor].
    * For example, `custom.googleapis.com/invoice/paid/amount`.
    * 
* * string type = 3; + * + * @return The type. */ - String getType(); + java.lang.String getType(); /** + * + * *
    * An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor].
    * For example, `custom.googleapis.com/invoice/paid/amount`.
    * 
* * string type = 3; + * + * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); /** + * + * *
    * The set of label values that uniquely identify this metric. All
    * labels listed in the `MetricDescriptor` must be assigned values.
@@ -37,6 +62,8 @@ public interface MetricOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * The set of label values that uniquely identify this metric. All
    * labels listed in the `MetricDescriptor` must be assigned values.
@@ -44,15 +71,13 @@ public interface MetricOrBuilder extends
    *
    * map<string, string> labels = 2;
    */
-  boolean containsLabels(
-      String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
-  @Deprecated
-  java.util.Map
-  getLabels();
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
+  @java.lang.Deprecated
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * The set of label values that uniquely identify this metric. All
    * labels listed in the `MetricDescriptor` must be assigned values.
@@ -60,9 +85,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 2;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * The set of label values that uniquely identify this metric. All
    * labels listed in the `MetricDescriptor` must be assigned values.
@@ -70,11 +96,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 2;
    */
-
-  String getLabelsOrDefault(
-      String key,
-      String defaultValue);
+  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * The set of label values that uniquely identify this metric. All
    * labels listed in the `MetricDescriptor` must be assigned values.
@@ -82,7 +107,5 @@ String getLabelsOrDefault(
    *
    * map<string, string> labels = 2;
    */
-
-  String getLabelsOrThrow(
-      String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 }
diff --git a/proto-google-common-protos/src/main/java/com/google/api/MetricProto.java b/proto-google-common-protos/src/main/java/com/google/api/MetricProto.java
index 3977e99a..e1c11d8c 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/MetricProto.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/MetricProto.java
@@ -1,3 +1,18 @@
+/*
+ * 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/metric.proto
 
@@ -5,113 +20,116 @@
 
 public final class MetricProto {
   private MetricProto() {}
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistryLite registry) {
-  }
 
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions(
-        (com.google.protobuf.ExtensionRegistryLite) registry);
+  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_MetricDescriptor_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_MetricDescriptor_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_MetricDescriptor_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_api_MetricDescriptor_MetricDescriptorMetadata_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_MetricDescriptor_MetricDescriptorMetadata_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_MetricDescriptor_MetricDescriptorMetadata_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_api_Metric_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_Metric_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_Metric_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_api_Metric_LabelsEntry_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_Metric_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_Metric_LabelsEntry_fieldAccessorTable;
 
-  public static com.google.protobuf.Descriptors.FileDescriptor
-      getDescriptor() {
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     return descriptor;
   }
-  private static  com.google.protobuf.Descriptors.FileDescriptor
-      descriptor;
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
   static {
-    String[] descriptorData = {
-      "\n\027google/api/metric.proto\022\ngoogle.api\032\026g" +
-      "oogle/api/label.proto\032\035google/api/launch" +
-      "_stage.proto\032\036google/protobuf/duration.p" +
-      "roto\"\375\005\n\020MetricDescriptor\022\014\n\004name\030\001 \001(\t\022" +
-      "\014\n\004type\030\010 \001(\t\022+\n\006labels\030\002 \003(\0132\033.google.a" +
-      "pi.LabelDescriptor\022<\n\013metric_kind\030\003 \001(\0162" +
-      "\'.google.api.MetricDescriptor.MetricKind" +
-      "\022:\n\nvalue_type\030\004 \001(\0162&.google.api.Metric" +
-      "Descriptor.ValueType\022\014\n\004unit\030\005 \001(\t\022\023\n\013de" +
-      "scription\030\006 \001(\t\022\024\n\014display_name\030\007 \001(\t\022G\n" +
-      "\010metadata\030\n \001(\01325.google.api.MetricDescr" +
-      "iptor.MetricDescriptorMetadata\022-\n\014launch" +
-      "_stage\030\014 \001(\0162\027.google.api.LaunchStage\032\260\001" +
-      "\n\030MetricDescriptorMetadata\0221\n\014launch_sta" +
-      "ge\030\001 \001(\0162\027.google.api.LaunchStageB\002\030\001\0220\n" +
-      "\rsample_period\030\002 \001(\0132\031.google.protobuf.D" +
-      "uration\022/\n\014ingest_delay\030\003 \001(\0132\031.google.p" +
-      "rotobuf.Duration\"O\n\nMetricKind\022\033\n\027METRIC" +
-      "_KIND_UNSPECIFIED\020\000\022\t\n\005GAUGE\020\001\022\t\n\005DELTA\020" +
-      "\002\022\016\n\nCUMULATIVE\020\003\"q\n\tValueType\022\032\n\026VALUE_" +
-      "TYPE_UNSPECIFIED\020\000\022\010\n\004BOOL\020\001\022\t\n\005INT64\020\002\022" +
-      "\n\n\006DOUBLE\020\003\022\n\n\006STRING\020\004\022\020\n\014DISTRIBUTION\020" +
-      "\005\022\t\n\005MONEY\020\006\"u\n\006Metric\022\014\n\004type\030\003 \001(\t\022.\n\006" +
-      "labels\030\002 \003(\0132\036.google.api.Metric.LabelsE" +
-      "ntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" +
-      "e\030\002 \001(\t:\0028\001B_\n\016com.google.apiB\013MetricPro" +
-      "toP\001Z7google.golang.org/genproto/googlea" +
-      "pis/api/metric;metric\242\002\004GAPIb\006proto3"
+    java.lang.String[] descriptorData = {
+      "\n\027google/api/metric.proto\022\ngoogle.api\032\026g"
+          + "oogle/api/label.proto\032\035google/api/launch"
+          + "_stage.proto\032\036google/protobuf/duration.p"
+          + "roto\"\375\005\n\020MetricDescriptor\022\014\n\004name\030\001 \001(\t\022"
+          + "\014\n\004type\030\010 \001(\t\022+\n\006labels\030\002 \003(\0132\033.google.a"
+          + "pi.LabelDescriptor\022<\n\013metric_kind\030\003 \001(\0162"
+          + "\'.google.api.MetricDescriptor.MetricKind"
+          + "\022:\n\nvalue_type\030\004 \001(\0162&.google.api.Metric"
+          + "Descriptor.ValueType\022\014\n\004unit\030\005 \001(\t\022\023\n\013de"
+          + "scription\030\006 \001(\t\022\024\n\014display_name\030\007 \001(\t\022G\n"
+          + "\010metadata\030\n \001(\01325.google.api.MetricDescr"
+          + "iptor.MetricDescriptorMetadata\022-\n\014launch"
+          + "_stage\030\014 \001(\0162\027.google.api.LaunchStage\032\260\001"
+          + "\n\030MetricDescriptorMetadata\0221\n\014launch_sta"
+          + "ge\030\001 \001(\0162\027.google.api.LaunchStageB\002\030\001\0220\n"
+          + "\rsample_period\030\002 \001(\0132\031.google.protobuf.D"
+          + "uration\022/\n\014ingest_delay\030\003 \001(\0132\031.google.p"
+          + "rotobuf.Duration\"O\n\nMetricKind\022\033\n\027METRIC"
+          + "_KIND_UNSPECIFIED\020\000\022\t\n\005GAUGE\020\001\022\t\n\005DELTA\020"
+          + "\002\022\016\n\nCUMULATIVE\020\003\"q\n\tValueType\022\032\n\026VALUE_"
+          + "TYPE_UNSPECIFIED\020\000\022\010\n\004BOOL\020\001\022\t\n\005INT64\020\002\022"
+          + "\n\n\006DOUBLE\020\003\022\n\n\006STRING\020\004\022\020\n\014DISTRIBUTION\020"
+          + "\005\022\t\n\005MONEY\020\006\"u\n\006Metric\022\014\n\004type\030\003 \001(\t\022.\n\006"
+          + "labels\030\002 \003(\0132\036.google.api.Metric.LabelsE"
+          + "ntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu"
+          + "e\030\002 \001(\t:\0028\001B_\n\016com.google.apiB\013MetricPro"
+          + "toP\001Z7google.golang.org/genproto/googlea"
+          + "pis/api/metric;metric\242\002\004GAPIb\006proto3"
     };
-    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
-        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
-          public com.google.protobuf.ExtensionRegistry assignDescriptors(
-              com.google.protobuf.Descriptors.FileDescriptor root) {
-            descriptor = root;
-            return null;
-          }
-        };
-    com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-          LabelProto.getDescriptor(),
-          com.google.api.LaunchStageProto.getDescriptor(),
-          com.google.protobuf.DurationProto.getDescriptor(),
-        }, assigner);
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.LabelProto.getDescriptor(),
+              com.google.api.LaunchStageProto.getDescriptor(),
+              com.google.protobuf.DurationProto.getDescriptor(),
+            });
     internal_static_google_api_MetricDescriptor_descriptor =
-      getDescriptor().getMessageTypes().get(0);
-    internal_static_google_api_MetricDescriptor_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_MetricDescriptor_descriptor,
-        new String[] { "Name", "Type", "Labels", "MetricKind", "ValueType", "Unit", "Description", "DisplayName", "Metadata", "LaunchStage", });
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_api_MetricDescriptor_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_MetricDescriptor_descriptor,
+            new java.lang.String[] {
+              "Name",
+              "Type",
+              "Labels",
+              "MetricKind",
+              "ValueType",
+              "Unit",
+              "Description",
+              "DisplayName",
+              "Metadata",
+              "LaunchStage",
+            });
     internal_static_google_api_MetricDescriptor_MetricDescriptorMetadata_descriptor =
-      internal_static_google_api_MetricDescriptor_descriptor.getNestedTypes().get(0);
-    internal_static_google_api_MetricDescriptor_MetricDescriptorMetadata_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_MetricDescriptor_MetricDescriptorMetadata_descriptor,
-        new String[] { "LaunchStage", "SamplePeriod", "IngestDelay", });
-    internal_static_google_api_Metric_descriptor =
-      getDescriptor().getMessageTypes().get(1);
-    internal_static_google_api_Metric_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_Metric_descriptor,
-        new String[] { "Type", "Labels", });
+        internal_static_google_api_MetricDescriptor_descriptor.getNestedTypes().get(0);
+    internal_static_google_api_MetricDescriptor_MetricDescriptorMetadata_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_MetricDescriptor_MetricDescriptorMetadata_descriptor,
+            new java.lang.String[] {
+              "LaunchStage", "SamplePeriod", "IngestDelay",
+            });
+    internal_static_google_api_Metric_descriptor = getDescriptor().getMessageTypes().get(1);
+    internal_static_google_api_Metric_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_Metric_descriptor,
+            new java.lang.String[] {
+              "Type", "Labels",
+            });
     internal_static_google_api_Metric_LabelsEntry_descriptor =
-      internal_static_google_api_Metric_descriptor.getNestedTypes().get(0);
-    internal_static_google_api_Metric_LabelsEntry_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_Metric_LabelsEntry_descriptor,
-        new String[] { "Key", "Value", });
-    LabelProto.getDescriptor();
+        internal_static_google_api_Metric_descriptor.getNestedTypes().get(0);
+    internal_static_google_api_Metric_LabelsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_Metric_LabelsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    com.google.api.LabelProto.getDescriptor();
     com.google.api.LaunchStageProto.getDescriptor();
     com.google.protobuf.DurationProto.getDescriptor();
   }
diff --git a/proto-google-common-protos/src/main/java/com/google/api/MetricRule.java b/proto-google-common-protos/src/main/java/com/google/api/MetricRule.java
index aca8e579..b99605fc 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/MetricRule.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/MetricRule.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/quota.proto
 
 package com.google.api;
 
 /**
+ *
+ *
  * 
  * Bind API methods to metrics. Binding a method to a metric causes that
  * metric's configured quota behaviors to apply to the method call.
@@ -11,31 +28,38 @@
  *
  * Protobuf type {@code google.api.MetricRule}
  */
-public  final class MetricRule extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MetricRule extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.MetricRule)
     MetricRuleOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MetricRule.newBuilder() to construct.
   private MetricRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private MetricRule() {
     selector_ = "";
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new MetricRule();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private MetricRule(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -48,107 +72,112 @@ private MetricRule(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            selector_ = s;
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              metricCosts_ = com.google.protobuf.MapField.newMapField(
-                  MetricCostsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000002;
+              selector_ = s;
+              break;
             }
-            com.google.protobuf.MapEntry
-            metricCosts__ = input.readMessage(
-                MetricCostsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            metricCosts_.getMutableMap().put(
-                metricCosts__.getKey(), metricCosts__.getValue());
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                metricCosts_ =
+                    com.google.protobuf.MapField.newMapField(
+                        MetricCostsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry metricCosts__ =
+                  input.readMessage(
+                      MetricCostsDefaultEntryHolder.defaultEntry.getParserForType(),
+                      extensionRegistry);
+              metricCosts_.getMutableMap().put(metricCosts__.getKey(), metricCosts__.getValue());
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.QuotaProto.internal_static_google_api_MetricRule_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
-  @Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  @java.lang.Override
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 2:
         return internalGetMetricCosts();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
-  @Override
-  protected FieldAccessorTable
+
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return com.google.api.QuotaProto.internal_static_google_api_MetricRule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            MetricRule.class, Builder.class);
+            com.google.api.MetricRule.class, com.google.api.MetricRule.Builder.class);
   }
 
-  private int bitField0_;
   public static final int SELECTOR_FIELD_NUMBER = 1;
-  private volatile Object selector_;
+  private volatile java.lang.Object selector_;
   /**
+   *
+   *
    * 
    * Selects the methods to which this rule applies.
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
    * 
* * string selector = 1; + * + * @return The selector. */ - public String getSelector() { - Object ref = selector_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getSelector() { + java.lang.Object ref = selector_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); selector_ = s; return s; } } /** + * + * *
    * Selects the methods to which this rule applies.
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
    * 
* * string selector = 1; + * + * @return The bytes for selector. */ - public com.google.protobuf.ByteString - getSelectorBytes() { - Object ref = selector_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getSelectorBytes() { + java.lang.Object ref = selector_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); selector_ = b; return b; } else { @@ -157,24 +186,23 @@ public String getSelector() { } public static final int METRIC_COSTS_FIELD_NUMBER = 2; + private static final class MetricCostsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - String, Long> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.api.QuotaProto.internal_static_google_api_MetricRule_MetricCostsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.INT64, - 0L); - } - private com.google.protobuf.MapField< - String, Long> metricCosts_; - private com.google.protobuf.MapField - internalGetMetricCosts() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.api.QuotaProto + .internal_static_google_api_MetricRule_MetricCostsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.INT64, + 0L); + } + + private com.google.protobuf.MapField metricCosts_; + + private com.google.protobuf.MapField internalGetMetricCosts() { if (metricCosts_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetricCostsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(MetricCostsDefaultEntryHolder.defaultEntry); } return metricCosts_; } @@ -183,6 +211,8 @@ public int getMetricCostsCount() { return internalGetMetricCosts().getMap().size(); } /** + * + * *
    * Metrics to update when the selected methods are called, and the associated
    * cost applied to each metric.
@@ -193,20 +223,20 @@ public int getMetricCostsCount() {
    *
    * map<string, int64> metric_costs = 2;
    */
-
-  public boolean containsMetricCosts(
-      String key) {
-    if (key == null) { throw new NullPointerException(); }
+  public boolean containsMetricCosts(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     return internalGetMetricCosts().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getMetricCostsMap()} instead.
-   */
-  @Deprecated
-  public java.util.Map getMetricCosts() {
+  /** Use {@link #getMetricCostsMap()} instead. */
+  @java.lang.Deprecated
+  public java.util.Map getMetricCosts() {
     return getMetricCostsMap();
   }
   /**
+   *
+   *
    * 
    * Metrics to update when the selected methods are called, and the associated
    * cost applied to each metric.
@@ -217,11 +247,12 @@ public java.util.Map getMetricCosts() {
    *
    * map<string, int64> metric_costs = 2;
    */
-
-  public java.util.Map getMetricCostsMap() {
+  public java.util.Map getMetricCostsMap() {
     return internalGetMetricCosts().getMap();
   }
   /**
+   *
+   *
    * 
    * Metrics to update when the selected methods are called, and the associated
    * cost applied to each metric.
@@ -232,16 +263,16 @@ public java.util.Map getMetricCostsMap() {
    *
    * map<string, int64> metric_costs = 2;
    */
-
-  public long getMetricCostsOrDefault(
-      String key,
-      long defaultValue) {
-    if (key == null) { throw new NullPointerException(); }
-    java.util.Map map =
-        internalGetMetricCosts().getMap();
+  public long getMetricCostsOrDefault(java.lang.String key, long defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetMetricCosts().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Metrics to update when the selected methods are called, and the associated
    * cost applied to each metric.
@@ -252,20 +283,20 @@ public long getMetricCostsOrDefault(
    *
    * map<string, int64> metric_costs = 2;
    */
-
-  public long getMetricCostsOrThrow(
-      String key) {
-    if (key == null) { throw new NullPointerException(); }
-    java.util.Map map =
-        internalGetMetricCosts().getMap();
+  public long getMetricCostsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetMetricCosts().getMap();
     if (!map.containsKey(key)) {
-      throw new IllegalArgumentException();
+      throw new java.lang.IllegalArgumentException();
     }
     return map.get(key);
   }
 
   private byte memoizedIsInitialized = -1;
-  @Override
+
+  @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
     if (isInitialized == 1) return true;
@@ -275,22 +306,17 @@ public final boolean isInitialized() {
     return true;
   }
 
-  @Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  @java.lang.Override
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!getSelectorBytes().isEmpty()) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selector_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetMetricCosts(),
-        MetricCostsDefaultEntryHolder.defaultEntry,
-        2);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetMetricCosts(), MetricCostsDefaultEntryHolder.defaultEntry, 2);
     unknownFields.writeTo(output);
   }
 
-  @Override
+  @java.lang.Override
   public int getSerializedSize() {
     int size = memoizedSize;
     if (size != -1) return size;
@@ -299,40 +325,38 @@ public int getSerializedSize() {
     if (!getSelectorBytes().isEmpty()) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, selector_);
     }
-    for (java.util.Map.Entry entry
-         : internalGetMetricCosts().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      metricCosts__ = MetricCostsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, metricCosts__);
+    for (java.util.Map.Entry entry :
+        internalGetMetricCosts().getMap().entrySet()) {
+      com.google.protobuf.MapEntry metricCosts__ =
+          MetricCostsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, metricCosts__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
     return size;
   }
 
-  @Override
-  public boolean equals(final Object obj) {
+  @java.lang.Override
+  public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
-    if (!(obj instanceof MetricRule)) {
+    if (!(obj instanceof com.google.api.MetricRule)) {
       return super.equals(obj);
     }
-    MetricRule other = (MetricRule) obj;
+    com.google.api.MetricRule other = (com.google.api.MetricRule) obj;
 
-    if (!getSelector()
-        .equals(other.getSelector())) return false;
-    if (!internalGetMetricCosts().equals(
-        other.internalGetMetricCosts())) return false;
+    if (!getSelector().equals(other.getSelector())) return false;
+    if (!internalGetMetricCosts().equals(other.internalGetMetricCosts())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
 
-  @Override
+  @java.lang.Override
   public int hashCode() {
     if (memoizedHashCode != 0) {
       return memoizedHashCode;
@@ -350,97 +374,103 @@ public int hashCode() {
     return hash;
   }
 
-  public static MetricRule parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.api.MetricRule parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static MetricRule parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.MetricRule parseFrom(
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static MetricRule parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.api.MetricRule parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static MetricRule parseFrom(
+
+  public static com.google.api.MetricRule parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static MetricRule parseFrom(byte[] data)
+
+  public static com.google.api.MetricRule parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static MetricRule parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.MetricRule parseFrom(
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static MetricRule parseFrom(java.io.InputStream input)
+
+  public static com.google.api.MetricRule 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 MetricRule parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.MetricRule parseFrom(
+      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 MetricRule parseDelimitedFrom(java.io.InputStream input)
+
+  public static com.google.api.MetricRule 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 MetricRule parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.MetricRule parseDelimitedFrom(
+      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 MetricRule parseFrom(
-      com.google.protobuf.CodedInputStream input)
+
+  public static com.google.api.MetricRule 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 MetricRule parseFrom(
+
+  public static com.google.api.MetricRule 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();
   }
 
-  @Override
-  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(MetricRule prototype) {
+
+  public static Builder newBuilder(com.google.api.MetricRule prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-  @Override
+
+  @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);
   }
 
-  @Override
-  protected Builder newBuilderForType(
-      BuilderParent parent) {
+  @java.lang.Override
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Bind API methods to metrics. Binding a method to a metric causes that
    * metric's configured quota behaviors to apply to the method call.
@@ -448,43 +478,40 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.MetricRule}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.MetricRule)
       com.google.api.MetricRuleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.api.QuotaProto.internal_static_google_api_MetricRule_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 2:
           return internalGetMetricCosts();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 2:
           return internalGetMutableMetricCosts();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
-    @Override
-    protected FieldAccessorTable
+
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return com.google.api.QuotaProto.internal_static_google_api_MetricRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              MetricRule.class, Builder.class);
+              com.google.api.MetricRule.class, com.google.api.MetricRule.Builder.class);
     }
 
     // Construct using com.google.api.MetricRule.newBuilder()
@@ -492,17 +519,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       selector_ = "";
@@ -511,109 +537,106 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.api.QuotaProto.internal_static_google_api_MetricRule_descriptor;
     }
 
-    @Override
-    public MetricRule getDefaultInstanceForType() {
-      return MetricRule.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.MetricRule getDefaultInstanceForType() {
+      return com.google.api.MetricRule.getDefaultInstance();
     }
 
-    @Override
-    public MetricRule build() {
-      MetricRule result = buildPartial();
+    @java.lang.Override
+    public com.google.api.MetricRule build() {
+      com.google.api.MetricRule result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public MetricRule buildPartial() {
-      MetricRule result = new MetricRule(this);
+    @java.lang.Override
+    public com.google.api.MetricRule buildPartial() {
+      com.google.api.MetricRule result = new com.google.api.MetricRule(this);
       int from_bitField0_ = bitField0_;
-      int to_bitField0_ = 0;
       result.selector_ = selector_;
       result.metricCosts_ = internalGetMetricCosts();
       result.metricCosts_.makeImmutable();
-      result.bitField0_ = to_bitField0_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof MetricRule) {
-        return mergeFrom((MetricRule)other);
+      if (other instanceof com.google.api.MetricRule) {
+        return mergeFrom((com.google.api.MetricRule) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(MetricRule other) {
-      if (other == MetricRule.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.MetricRule other) {
+      if (other == com.google.api.MetricRule.getDefaultInstance()) return this;
       if (!other.getSelector().isEmpty()) {
         selector_ = other.selector_;
         onChanged();
       }
-      internalGetMutableMetricCosts().mergeFrom(
-          other.internalGetMetricCosts());
+      internalGetMutableMetricCosts().mergeFrom(other.internalGetMetricCosts());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      MetricRule parsedMessage = null;
+      com.google.api.MetricRule parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (MetricRule) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.MetricRule) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -622,44 +645,50 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private Object selector_ = "";
+    private java.lang.Object selector_ = "";
     /**
+     *
+     *
      * 
      * Selects the methods to which this rule applies.
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
      * 
* * string selector = 1; + * + * @return The selector. */ - public String getSelector() { - Object ref = selector_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getSelector() { + java.lang.Object ref = selector_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); selector_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Selects the methods to which this rule applies.
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
      * 
* * string selector = 1; + * + * @return The bytes for selector. */ - public com.google.protobuf.ByteString - getSelectorBytes() { - Object ref = selector_; + public com.google.protobuf.ByteString getSelectorBytes() { + java.lang.Object ref = selector_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); selector_ = b; return b; } else { @@ -667,73 +696,87 @@ public String getSelector() { } } /** + * + * *
      * Selects the methods to which this rule applies.
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
      * 
* * string selector = 1; + * + * @param value The selector to set. + * @return This builder for chaining. */ - public Builder setSelector( - String value) { + public Builder setSelector(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + selector_ = value; onChanged(); return this; } /** + * + * *
      * Selects the methods to which this rule applies.
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
      * 
* * string selector = 1; + * + * @return This builder for chaining. */ public Builder clearSelector() { - + selector_ = getDefaultInstance().getSelector(); onChanged(); return this; } /** + * + * *
      * Selects the methods to which this rule applies.
      * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
      * 
* * string selector = 1; + * + * @param value The bytes for selector to set. + * @return This builder for chaining. */ - public Builder setSelectorBytes( - com.google.protobuf.ByteString value) { + public Builder setSelectorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + selector_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - String, Long> metricCosts_; - private com.google.protobuf.MapField - internalGetMetricCosts() { + private com.google.protobuf.MapField metricCosts_; + + private com.google.protobuf.MapField + internalGetMetricCosts() { if (metricCosts_ == null) { return com.google.protobuf.MapField.emptyMapField( MetricCostsDefaultEntryHolder.defaultEntry); } return metricCosts_; } - private com.google.protobuf.MapField - internalGetMutableMetricCosts() { - onChanged();; + + private com.google.protobuf.MapField + internalGetMutableMetricCosts() { + onChanged(); + ; if (metricCosts_ == null) { - metricCosts_ = com.google.protobuf.MapField.newMapField( - MetricCostsDefaultEntryHolder.defaultEntry); + metricCosts_ = + com.google.protobuf.MapField.newMapField(MetricCostsDefaultEntryHolder.defaultEntry); } if (!metricCosts_.isMutable()) { metricCosts_ = metricCosts_.copy(); @@ -745,6 +788,8 @@ public int getMetricCostsCount() { return internalGetMetricCosts().getMap().size(); } /** + * + * *
      * Metrics to update when the selected methods are called, and the associated
      * cost applied to each metric.
@@ -755,20 +800,20 @@ public int getMetricCostsCount() {
      *
      * map<string, int64> metric_costs = 2;
      */
-
-    public boolean containsMetricCosts(
-        String key) {
-      if (key == null) { throw new NullPointerException(); }
+    public boolean containsMetricCosts(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       return internalGetMetricCosts().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getMetricCostsMap()} instead.
-     */
-    @Deprecated
-    public java.util.Map getMetricCosts() {
+    /** Use {@link #getMetricCostsMap()} instead. */
+    @java.lang.Deprecated
+    public java.util.Map getMetricCosts() {
       return getMetricCostsMap();
     }
     /**
+     *
+     *
      * 
      * Metrics to update when the selected methods are called, and the associated
      * cost applied to each metric.
@@ -779,11 +824,12 @@ public java.util.Map getMetricCosts() {
      *
      * map<string, int64> metric_costs = 2;
      */
-
-    public java.util.Map getMetricCostsMap() {
+    public java.util.Map getMetricCostsMap() {
       return internalGetMetricCosts().getMap();
     }
     /**
+     *
+     *
      * 
      * Metrics to update when the selected methods are called, and the associated
      * cost applied to each metric.
@@ -794,16 +840,16 @@ public java.util.Map getMetricCostsMap() {
      *
      * map<string, int64> metric_costs = 2;
      */
-
-    public long getMetricCostsOrDefault(
-        String key,
-        long defaultValue) {
-      if (key == null) { throw new NullPointerException(); }
-      java.util.Map map =
-          internalGetMetricCosts().getMap();
+    public long getMetricCostsOrDefault(java.lang.String key, long defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetMetricCosts().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Metrics to update when the selected methods are called, and the associated
      * cost applied to each metric.
@@ -814,24 +860,24 @@ public long getMetricCostsOrDefault(
      *
      * map<string, int64> metric_costs = 2;
      */
-
-    public long getMetricCostsOrThrow(
-        String key) {
-      if (key == null) { throw new NullPointerException(); }
-      java.util.Map map =
-          internalGetMetricCosts().getMap();
+    public long getMetricCostsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetMetricCosts().getMap();
       if (!map.containsKey(key)) {
-        throw new IllegalArgumentException();
+        throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
 
     public Builder clearMetricCosts() {
-      internalGetMutableMetricCosts().getMutableMap()
-          .clear();
+      internalGetMutableMetricCosts().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Metrics to update when the selected methods are called, and the associated
      * cost applied to each metric.
@@ -842,23 +888,21 @@ public Builder clearMetricCosts() {
      *
      * map<string, int64> metric_costs = 2;
      */
-
-    public Builder removeMetricCosts(
-        String key) {
-      if (key == null) { throw new NullPointerException(); }
-      internalGetMutableMetricCosts().getMutableMap()
-          .remove(key);
+    public Builder removeMetricCosts(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableMetricCosts().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
-    @Deprecated
-    public java.util.Map
-    getMutableMetricCosts() {
+    /** Use alternate mutation accessors instead. */
+    @java.lang.Deprecated
+    public java.util.Map getMutableMetricCosts() {
       return internalGetMutableMetricCosts().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Metrics to update when the selected methods are called, and the associated
      * cost applied to each metric.
@@ -869,16 +913,17 @@ public Builder removeMetricCosts(
      *
      * map<string, int64> metric_costs = 2;
      */
-    public Builder putMetricCosts(
-        String key,
-        long value) {
-      if (key == null) { throw new NullPointerException(); }
-      
-      internalGetMutableMetricCosts().getMutableMap()
-          .put(key, value);
+    public Builder putMetricCosts(java.lang.String key, long value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+
+      internalGetMutableMetricCosts().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Metrics to update when the selected methods are called, and the associated
      * cost applied to each metric.
@@ -889,63 +934,58 @@ public Builder putMetricCosts(
      *
      * map<string, int64> metric_costs = 2;
      */
-
-    public Builder putAllMetricCosts(
-        java.util.Map values) {
-      internalGetMutableMetricCosts().getMutableMap()
-          .putAll(values);
+    public Builder putAllMetricCosts(java.util.Map values) {
+      internalGetMutableMetricCosts().getMutableMap().putAll(values);
       return this;
     }
-    @Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+
+    @java.lang.Override
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
-    @Override
+    @java.lang.Override
     public final Builder mergeUnknownFields(
         final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.api.MetricRule)
   }
 
   // @@protoc_insertion_point(class_scope:google.api.MetricRule)
-  private static final MetricRule DEFAULT_INSTANCE;
+  private static final com.google.api.MetricRule DEFAULT_INSTANCE;
+
   static {
-    DEFAULT_INSTANCE = new MetricRule();
+    DEFAULT_INSTANCE = new com.google.api.MetricRule();
   }
 
-  public static MetricRule getDefaultInstance() {
+  public static com.google.api.MetricRule getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @Override
-    public MetricRule parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new MetricRule(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public MetricRule parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new MetricRule(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
   }
 
-  @Override
+  @java.lang.Override
   public com.google.protobuf.Parser getParserForType() {
     return PARSER;
   }
 
-  @Override
-  public MetricRule getDefaultInstanceForType() {
+  @java.lang.Override
+  public com.google.api.MetricRule getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-common-protos/src/main/java/com/google/api/MetricRuleOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/MetricRuleOrBuilder.java
index ca78a599..8f473454 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/MetricRuleOrBuilder.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/MetricRuleOrBuilder.java
@@ -1,33 +1,58 @@
+/*
+ * 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/quota.proto
 
 package com.google.api;
 
-public interface MetricRuleOrBuilder extends
+public interface MetricRuleOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.api.MetricRule)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Selects the methods to which this rule applies.
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
    * 
* * string selector = 1; + * + * @return The selector. */ - String getSelector(); + java.lang.String getSelector(); /** + * + * *
    * Selects the methods to which this rule applies.
    * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
    * 
* * string selector = 1; + * + * @return The bytes for selector. */ - com.google.protobuf.ByteString - getSelectorBytes(); + com.google.protobuf.ByteString getSelectorBytes(); /** + * + * *
    * Metrics to update when the selected methods are called, and the associated
    * cost applied to each metric.
@@ -40,6 +65,8 @@ public interface MetricRuleOrBuilder extends
    */
   int getMetricCostsCount();
   /**
+   *
+   *
    * 
    * Metrics to update when the selected methods are called, and the associated
    * cost applied to each metric.
@@ -50,15 +77,13 @@ public interface MetricRuleOrBuilder extends
    *
    * map<string, int64> metric_costs = 2;
    */
-  boolean containsMetricCosts(
-      String key);
-  /**
-   * Use {@link #getMetricCostsMap()} instead.
-   */
-  @Deprecated
-  java.util.Map
-  getMetricCosts();
+  boolean containsMetricCosts(java.lang.String key);
+  /** Use {@link #getMetricCostsMap()} instead. */
+  @java.lang.Deprecated
+  java.util.Map getMetricCosts();
   /**
+   *
+   *
    * 
    * Metrics to update when the selected methods are called, and the associated
    * cost applied to each metric.
@@ -69,9 +94,10 @@ boolean containsMetricCosts(
    *
    * map<string, int64> metric_costs = 2;
    */
-  java.util.Map
-  getMetricCostsMap();
+  java.util.Map getMetricCostsMap();
   /**
+   *
+   *
    * 
    * Metrics to update when the selected methods are called, and the associated
    * cost applied to each metric.
@@ -82,11 +108,10 @@ boolean containsMetricCosts(
    *
    * map<string, int64> metric_costs = 2;
    */
-
-  long getMetricCostsOrDefault(
-      String key,
-      long defaultValue);
+  long getMetricCostsOrDefault(java.lang.String key, long defaultValue);
   /**
+   *
+   *
    * 
    * Metrics to update when the selected methods are called, and the associated
    * cost applied to each metric.
@@ -97,7 +122,5 @@ long getMetricCostsOrDefault(
    *
    * map<string, int64> metric_costs = 2;
    */
-
-  long getMetricCostsOrThrow(
-      String key);
+  long getMetricCostsOrThrow(java.lang.String key);
 }
diff --git a/proto-google-common-protos/src/main/java/com/google/api/MonitoredResource.java b/proto-google-common-protos/src/main/java/com/google/api/MonitoredResource.java
index 09565b40..2f2174ce 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/MonitoredResource.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/MonitoredResource.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/monitored_resource.proto
 
 package com.google.api;
 
 /**
+ *
+ *
  * 
  * An object representing a resource that can be used for monitoring, logging,
  * billing, or other purposes. Examples include virtual machine instances,
@@ -21,31 +38,38 @@
  *
  * Protobuf type {@code google.api.MonitoredResource}
  */
-public  final class MonitoredResource extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MonitoredResource extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.MonitoredResource)
     MonitoredResourceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MonitoredResource.newBuilder() to construct.
   private MonitoredResource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private MonitoredResource() {
     type_ = "";
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new MonitoredResource();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private MonitoredResource(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -58,73 +82,75 @@ private MonitoredResource(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            type_ = s;
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000002;
+              type_ = s;
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                labels_ =
+                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry labels__ =
+                  input.readMessage(
+                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.api.MonitoredResourceProto.internal_static_google_api_MonitoredResource_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.api.MonitoredResourceProto
+        .internal_static_google_api_MonitoredResource_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
-  @Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  @java.lang.Override
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 2:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
-  @Override
-  protected FieldAccessorTable
+
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.api.MonitoredResourceProto.internal_static_google_api_MonitoredResource_fieldAccessorTable
+    return com.google.api.MonitoredResourceProto
+        .internal_static_google_api_MonitoredResource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            MonitoredResource.class, Builder.class);
+            com.google.api.MonitoredResource.class, com.google.api.MonitoredResource.Builder.class);
   }
 
-  private int bitField0_;
   public static final int TYPE_FIELD_NUMBER = 1;
-  private volatile Object type_;
+  private volatile java.lang.Object type_;
   /**
+   *
+   *
    * 
    * Required. The monitored resource type. This field must match
    * the `type` field of a [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object. For
@@ -132,20 +158,23 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string type = 1; + * + * @return The type. */ - public String getType() { - Object ref = type_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** + * + * *
    * Required. The monitored resource type. This field must match
    * the `type` field of a [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object. For
@@ -153,14 +182,14 @@ public String getType() {
    * 
* * string type = 1; + * + * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { - Object ref = type_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -169,24 +198,23 @@ public String getType() { } public static final int LABELS_FIELD_NUMBER = 2; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - String, String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.api.MonitoredResourceProto.internal_static_google_api_MonitoredResource_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - String, String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.api.MonitoredResourceProto + .internal_static_google_api_MonitoredResource_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -195,6 +223,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Required. Values for all of the labels listed in the associated monitored
    * resource descriptor. For example, Compute Engine VM instances use the
@@ -203,20 +233,20 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 2;
    */
-
-  public boolean containsLabels(
-      String key) {
-    if (key == null) { throw new NullPointerException(); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
-  @Deprecated
-  public java.util.Map getLabels() {
+  /** Use {@link #getLabelsMap()} instead. */
+  @java.lang.Deprecated
+  public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Required. Values for all of the labels listed in the associated monitored
    * resource descriptor. For example, Compute Engine VM instances use the
@@ -225,11 +255,12 @@ public java.util.Map getLabels() {
    *
    * map<string, string> labels = 2;
    */
-
-  public java.util.Map getLabelsMap() {
+  public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Required. Values for all of the labels listed in the associated monitored
    * resource descriptor. For example, Compute Engine VM instances use the
@@ -238,16 +269,16 @@ public java.util.Map getLabelsMap() {
    *
    * map<string, string> labels = 2;
    */
-
-  public String getLabelsOrDefault(
-      String key,
-      String defaultValue) {
-    if (key == null) { throw new NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Required. Values for all of the labels listed in the associated monitored
    * resource descriptor. For example, Compute Engine VM instances use the
@@ -256,20 +287,20 @@ public String getLabelsOrDefault(
    *
    * map<string, string> labels = 2;
    */
-
-  public String getLabelsOrThrow(
-      String key) {
-    if (key == null) { throw new NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
-      throw new IllegalArgumentException();
+      throw new java.lang.IllegalArgumentException();
     }
     return map.get(key);
   }
 
   private byte memoizedIsInitialized = -1;
-  @Override
+
+  @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
     if (isInitialized == 1) return true;
@@ -279,22 +310,17 @@ public final boolean isInitialized() {
     return true;
   }
 
-  @Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  @java.lang.Override
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!getTypeBytes().isEmpty()) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        2);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2);
     unknownFields.writeTo(output);
   }
 
-  @Override
+  @java.lang.Override
   public int getSerializedSize() {
     int size = memoizedSize;
     if (size != -1) return size;
@@ -303,40 +329,38 @@ public int getSerializedSize() {
     if (!getTypeBytes().isEmpty()) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
     }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, labels__);
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labels__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
     return size;
   }
 
-  @Override
-  public boolean equals(final Object obj) {
+  @java.lang.Override
+  public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
-    if (!(obj instanceof MonitoredResource)) {
+    if (!(obj instanceof com.google.api.MonitoredResource)) {
       return super.equals(obj);
     }
-    MonitoredResource other = (MonitoredResource) obj;
+    com.google.api.MonitoredResource other = (com.google.api.MonitoredResource) obj;
 
-    if (!getType()
-        .equals(other.getType())) return false;
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!getType().equals(other.getType())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
 
-  @Override
+  @java.lang.Override
   public int hashCode() {
     if (memoizedHashCode != 0) {
       return memoizedHashCode;
@@ -354,97 +378,103 @@ public int hashCode() {
     return hash;
   }
 
-  public static MonitoredResource parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.api.MonitoredResource parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static MonitoredResource parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.MonitoredResource parseFrom(
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static MonitoredResource parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.api.MonitoredResource parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static MonitoredResource parseFrom(
+
+  public static com.google.api.MonitoredResource parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static MonitoredResource parseFrom(byte[] data)
+
+  public static com.google.api.MonitoredResource parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static MonitoredResource parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.MonitoredResource parseFrom(
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static MonitoredResource parseFrom(java.io.InputStream input)
+
+  public static com.google.api.MonitoredResource 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 MonitoredResource parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.MonitoredResource parseFrom(
+      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 MonitoredResource parseDelimitedFrom(java.io.InputStream input)
+
+  public static com.google.api.MonitoredResource 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 MonitoredResource parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.MonitoredResource parseDelimitedFrom(
+      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 MonitoredResource parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.api.MonitoredResource parseFrom(
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
-  public static MonitoredResource parseFrom(
+
+  public static com.google.api.MonitoredResource 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();
   }
 
-  @Override
-  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(MonitoredResource prototype) {
+
+  public static Builder newBuilder(com.google.api.MonitoredResource prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-  @Override
+
+  @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);
   }
 
-  @Override
-  protected Builder newBuilderForType(
-      BuilderParent parent) {
+  @java.lang.Override
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * An object representing a resource that can be used for monitoring, logging,
    * billing, or other purposes. Examples include virtual machine instances,
@@ -462,43 +492,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.MonitoredResource}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.MonitoredResource)
       com.google.api.MonitoredResourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.api.MonitoredResourceProto.internal_static_google_api_MonitoredResource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.api.MonitoredResourceProto
+          .internal_static_google_api_MonitoredResource_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 2:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 2:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
-    @Override
-    protected FieldAccessorTable
+
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.api.MonitoredResourceProto.internal_static_google_api_MonitoredResource_fieldAccessorTable
+      return com.google.api.MonitoredResourceProto
+          .internal_static_google_api_MonitoredResource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              MonitoredResource.class, Builder.class);
+              com.google.api.MonitoredResource.class,
+              com.google.api.MonitoredResource.Builder.class);
     }
 
     // Construct using com.google.api.MonitoredResource.newBuilder()
@@ -506,17 +536,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       type_ = "";
@@ -525,109 +554,107 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.api.MonitoredResourceProto.internal_static_google_api_MonitoredResource_descriptor;
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.api.MonitoredResourceProto
+          .internal_static_google_api_MonitoredResource_descriptor;
     }
 
-    @Override
-    public MonitoredResource getDefaultInstanceForType() {
-      return MonitoredResource.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.MonitoredResource getDefaultInstanceForType() {
+      return com.google.api.MonitoredResource.getDefaultInstance();
     }
 
-    @Override
-    public MonitoredResource build() {
-      MonitoredResource result = buildPartial();
+    @java.lang.Override
+    public com.google.api.MonitoredResource build() {
+      com.google.api.MonitoredResource result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public MonitoredResource buildPartial() {
-      MonitoredResource result = new MonitoredResource(this);
+    @java.lang.Override
+    public com.google.api.MonitoredResource buildPartial() {
+      com.google.api.MonitoredResource result = new com.google.api.MonitoredResource(this);
       int from_bitField0_ = bitField0_;
-      int to_bitField0_ = 0;
       result.type_ = type_;
       result.labels_ = internalGetLabels();
       result.labels_.makeImmutable();
-      result.bitField0_ = to_bitField0_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof MonitoredResource) {
-        return mergeFrom((MonitoredResource)other);
+      if (other instanceof com.google.api.MonitoredResource) {
+        return mergeFrom((com.google.api.MonitoredResource) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(MonitoredResource other) {
-      if (other == MonitoredResource.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.MonitoredResource other) {
+      if (other == com.google.api.MonitoredResource.getDefaultInstance()) return this;
       if (!other.getType().isEmpty()) {
         type_ = other.type_;
         onChanged();
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      MonitoredResource parsedMessage = null;
+      com.google.api.MonitoredResource parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (MonitoredResource) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.MonitoredResource) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -636,10 +663,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private Object type_ = "";
+    private java.lang.Object type_ = "";
     /**
+     *
+     *
      * 
      * Required. The monitored resource type. This field must match
      * the `type` field of a [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object. For
@@ -647,20 +677,23 @@ public Builder mergeFrom(
      * 
* * string type = 1; + * + * @return The type. */ - public String getType() { - Object ref = type_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Required. The monitored resource type. This field must match
      * the `type` field of a [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object. For
@@ -668,14 +701,14 @@ public String getType() {
      * 
* * string type = 1; + * + * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { - Object ref = type_; + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -683,6 +716,8 @@ public String getType() { } } /** + * + * *
      * Required. The monitored resource type. This field must match
      * the `type` field of a [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object. For
@@ -690,18 +725,22 @@ public String getType() {
      * 
* * string type = 1; + * + * @param value The type to set. + * @return This builder for chaining. */ - public Builder setType( - String value) { + public Builder setType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** + * + * *
      * Required. The monitored resource type. This field must match
      * the `type` field of a [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object. For
@@ -709,14 +748,18 @@ public Builder setType(
      * 
* * string type = 1; + * + * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** + * + * *
      * Required. The monitored resource type. This field must match
      * the `type` field of a [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object. For
@@ -724,35 +767,36 @@ public Builder clearType() {
      * 
* * string type = 1; + * + * @param value The bytes for type to set. + * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - String, String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -764,6 +808,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Required. Values for all of the labels listed in the associated monitored
      * resource descriptor. For example, Compute Engine VM instances use the
@@ -772,20 +818,20 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 2;
      */
-
-    public boolean containsLabels(
-        String key) {
-      if (key == null) { throw new NullPointerException(); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
-    @Deprecated
-    public java.util.Map getLabels() {
+    /** Use {@link #getLabelsMap()} instead. */
+    @java.lang.Deprecated
+    public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Required. Values for all of the labels listed in the associated monitored
      * resource descriptor. For example, Compute Engine VM instances use the
@@ -794,11 +840,12 @@ public java.util.Map getLabels() {
      *
      * map<string, string> labels = 2;
      */
-
-    public java.util.Map getLabelsMap() {
+    public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Required. Values for all of the labels listed in the associated monitored
      * resource descriptor. For example, Compute Engine VM instances use the
@@ -807,16 +854,17 @@ public java.util.Map getLabelsMap() {
      *
      * map<string, string> labels = 2;
      */
-
-    public String getLabelsOrDefault(
-        String key,
-        String defaultValue) {
-      if (key == null) { throw new NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrDefault(
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Required. Values for all of the labels listed in the associated monitored
      * resource descriptor. For example, Compute Engine VM instances use the
@@ -825,24 +873,24 @@ public String getLabelsOrDefault(
      *
      * map<string, string> labels = 2;
      */
-
-    public String getLabelsOrThrow(
-        String key) {
-      if (key == null) { throw new NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
-        throw new IllegalArgumentException();
+        throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Values for all of the labels listed in the associated monitored
      * resource descriptor. For example, Compute Engine VM instances use the
@@ -851,23 +899,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 2;
      */
-
-    public Builder removeLabels(
-        String key) {
-      if (key == null) { throw new NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
-    @Deprecated
-    public java.util.Map
-    getMutableLabels() {
+    /** Use alternate mutation accessors instead. */
+    @java.lang.Deprecated
+    public java.util.Map getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Required. Values for all of the labels listed in the associated monitored
      * resource descriptor. For example, Compute Engine VM instances use the
@@ -876,16 +922,19 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 2;
      */
-    public Builder putLabels(
-        String key,
-        String value) {
-      if (key == null) { throw new NullPointerException(); }
-      if (value == null) { throw new NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Values for all of the labels listed in the associated monitored
      * resource descriptor. For example, Compute Engine VM instances use the
@@ -894,63 +943,58 @@ public Builder putLabels(
      *
      * map<string, string> labels = 2;
      */
-
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       return this;
     }
-    @Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+
+    @java.lang.Override
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
-    @Override
+    @java.lang.Override
     public final Builder mergeUnknownFields(
         final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.api.MonitoredResource)
   }
 
   // @@protoc_insertion_point(class_scope:google.api.MonitoredResource)
-  private static final MonitoredResource DEFAULT_INSTANCE;
+  private static final com.google.api.MonitoredResource DEFAULT_INSTANCE;
+
   static {
-    DEFAULT_INSTANCE = new MonitoredResource();
+    DEFAULT_INSTANCE = new com.google.api.MonitoredResource();
   }
 
-  public static MonitoredResource getDefaultInstance() {
+  public static com.google.api.MonitoredResource getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @Override
-    public MonitoredResource parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new MonitoredResource(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public MonitoredResource parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new MonitoredResource(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
   }
 
-  @Override
+  @java.lang.Override
   public com.google.protobuf.Parser getParserForType() {
     return PARSER;
   }
 
-  @Override
-  public MonitoredResource getDefaultInstanceForType() {
+  @java.lang.Override
+  public com.google.api.MonitoredResource getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptor.java b/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptor.java
index 51cd7208..ef015897 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptor.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptor.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/monitored_resource.proto
 
 package com.google.api;
 
 /**
+ *
+ *
  * 
  * An object that describes the schema of a [MonitoredResource][google.api.MonitoredResource] object using a
  * type name and a set of labels.  For example, the monitored resource
@@ -17,15 +34,16 @@
  *
  * Protobuf type {@code google.api.MonitoredResourceDescriptor}
  */
-public  final class MonitoredResourceDescriptor extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MonitoredResourceDescriptor extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.MonitoredResourceDescriptor)
     MonitoredResourceDescriptorOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MonitoredResourceDescriptor.newBuilder() to construct.
   private MonitoredResourceDescriptor(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private MonitoredResourceDescriptor() {
     name_ = "";
     type_ = "";
@@ -35,18 +53,24 @@ private MonitoredResourceDescriptor() {
     launchStage_ = 0;
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new MonitoredResourceDescriptor();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private MonitoredResourceDescriptor(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -59,84 +83,93 @@ private MonitoredResourceDescriptor(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            type_ = s;
-            break;
-          }
-          case 18: {
-            String s = input.readStringRequireUtf8();
+              type_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            displayName_ = s;
-            break;
-          }
-          case 26: {
-            String s = input.readStringRequireUtf8();
+              displayName_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            description_ = s;
-            break;
-          }
-          case 34: {
-            if (!((mutable_bitField0_ & 0x00000010) != 0)) {
-              labels_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000010;
+              description_ = s;
+              break;
             }
-            labels_.add(
-                input.readMessage(LabelDescriptor.parser(), extensionRegistry));
-            break;
-          }
-          case 42: {
-            String s = input.readStringRequireUtf8();
+          case 34:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                labels_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              labels_.add(
+                  input.readMessage(com.google.api.LabelDescriptor.parser(), extensionRegistry));
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 56: {
-            int rawValue = input.readEnum();
+              name_ = s;
+              break;
+            }
+          case 56:
+            {
+              int rawValue = input.readEnum();
 
-            launchStage_ = rawValue;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              launchStage_ = rawValue;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
-      if (((mutable_bitField0_ & 0x00000010) != 0)) {
+      if (((mutable_bitField0_ & 0x00000001) != 0)) {
         labels_ = java.util.Collections.unmodifiableList(labels_);
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return MonitoredResourceProto.internal_static_google_api_MonitoredResourceDescriptor_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.api.MonitoredResourceProto
+        .internal_static_google_api_MonitoredResourceDescriptor_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return MonitoredResourceProto.internal_static_google_api_MonitoredResourceDescriptor_fieldAccessorTable
+    return com.google.api.MonitoredResourceProto
+        .internal_static_google_api_MonitoredResourceDescriptor_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            MonitoredResourceDescriptor.class, Builder.class);
+            com.google.api.MonitoredResourceDescriptor.class,
+            com.google.api.MonitoredResourceDescriptor.Builder.class);
   }
 
-  private int bitField0_;
   public static final int NAME_FIELD_NUMBER = 5;
-  private volatile Object name_;
+  private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Optional. The resource name of the monitored resource descriptor:
    * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where
@@ -147,20 +180,23 @@ private MonitoredResourceDescriptor(
    * 
* * string name = 5; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Optional. The resource name of the monitored resource descriptor:
    * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where
@@ -171,14 +207,14 @@ public String getName() {
    * 
* * string name = 5; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -187,8 +223,10 @@ public String getName() { } public static final int TYPE_FIELD_NUMBER = 1; - private volatile Object type_; + private volatile java.lang.Object type_; /** + * + * *
    * Required. The monitored resource type. For example, the type
    * `"cloudsql_database"` represents databases in Google Cloud SQL.
@@ -196,20 +234,23 @@ public String getName() {
    * 
* * string type = 1; + * + * @return The type. */ - public String getType() { - Object ref = type_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** + * + * *
    * Required. The monitored resource type. For example, the type
    * `"cloudsql_database"` represents databases in Google Cloud SQL.
@@ -217,14 +258,14 @@ public String getType() {
    * 
* * string type = 1; + * + * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { - Object ref = type_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -233,8 +274,10 @@ public String getType() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile Object displayName_; + private volatile java.lang.Object displayName_; /** + * + * *
    * Optional. A concise name for the monitored resource type that might be
    * displayed in user interfaces. It should be a Title Cased Noun Phrase,
@@ -243,20 +286,23 @@ public String getType() {
    * 
* * string display_name = 2; + * + * @return The displayName. */ - public String getDisplayName() { - Object ref = displayName_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Optional. A concise name for the monitored resource type that might be
    * displayed in user interfaces. It should be a Title Cased Noun Phrase,
@@ -265,14 +311,14 @@ public String getDisplayName() {
    * 
* * string display_name = 2; + * + * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -281,42 +327,47 @@ public String getDisplayName() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile Object description_; + private volatile java.lang.Object description_; /** + * + * *
    * Optional. A detailed description of the monitored resource type that might
    * be used in documentation.
    * 
* * string description = 3; + * + * @return The description. */ - public String getDescription() { - Object ref = description_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Optional. A detailed description of the monitored resource type that might
    * be used in documentation.
    * 
* * string description = 3; + * + * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + 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); description_ = b; return b; } else { @@ -325,8 +376,10 @@ public String getDescription() { } public static final int LABELS_FIELD_NUMBER = 4; - private java.util.List labels_; + private java.util.List labels_; /** + * + * *
    * Required. A set of labels used to describe instances of this monitored
    * resource type. For example, an individual Google Cloud SQL database is
@@ -335,10 +388,12 @@ public String getDescription() {
    *
    * repeated .google.api.LabelDescriptor labels = 4;
    */
-  public java.util.List getLabelsList() {
+  public java.util.List getLabelsList() {
     return labels_;
   }
   /**
+   *
+   *
    * 
    * Required. A set of labels used to describe instances of this monitored
    * resource type. For example, an individual Google Cloud SQL database is
@@ -347,11 +402,13 @@ public java.util.List getLabelsList() {
    *
    * repeated .google.api.LabelDescriptor labels = 4;
    */
-  public java.util.List
+  public java.util.List
       getLabelsOrBuilderList() {
     return labels_;
   }
   /**
+   *
+   *
    * 
    * Required. A set of labels used to describe instances of this monitored
    * resource type. For example, an individual Google Cloud SQL database is
@@ -364,6 +421,8 @@ public int getLabelsCount() {
     return labels_.size();
   }
   /**
+   *
+   *
    * 
    * Required. A set of labels used to describe instances of this monitored
    * resource type. For example, an individual Google Cloud SQL database is
@@ -372,10 +431,12 @@ public int getLabelsCount() {
    *
    * repeated .google.api.LabelDescriptor labels = 4;
    */
-  public LabelDescriptor getLabels(int index) {
+  public com.google.api.LabelDescriptor getLabels(int index) {
     return labels_.get(index);
   }
   /**
+   *
+   *
    * 
    * Required. A set of labels used to describe instances of this monitored
    * resource type. For example, an individual Google Cloud SQL database is
@@ -384,38 +445,46 @@ public LabelDescriptor getLabels(int index) {
    *
    * repeated .google.api.LabelDescriptor labels = 4;
    */
-  public LabelDescriptorOrBuilder getLabelsOrBuilder(
-      int index) {
+  public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(int index) {
     return labels_.get(index);
   }
 
   public static final int LAUNCH_STAGE_FIELD_NUMBER = 7;
   private int launchStage_;
   /**
+   *
+   *
    * 
    * Optional. The launch stage of the monitored resource definition.
    * 
* * .google.api.LaunchStage launch_stage = 7; + * + * @return The enum numeric value on the wire for launchStage. */ public int getLaunchStageValue() { return launchStage_; } /** + * + * *
    * Optional. The launch stage of the monitored resource definition.
    * 
* * .google.api.LaunchStage launch_stage = 7; + * + * @return The launchStage. */ - public LaunchStage getLaunchStage() { + public com.google.api.LaunchStage getLaunchStage() { @SuppressWarnings("deprecation") - LaunchStage result = LaunchStage.valueOf(launchStage_); - return result == null ? LaunchStage.UNRECOGNIZED : result; + com.google.api.LaunchStage result = com.google.api.LaunchStage.valueOf(launchStage_); + return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -425,9 +494,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getTypeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } @@ -443,13 +511,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); } - if (launchStage_ != LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { + if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { output.writeEnum(7, launchStage_); } unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -465,47 +533,41 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } for (int i = 0; i < labels_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels_.get(i)); } if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); } - if (launchStage_ != LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, launchStage_); + if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, launchStage_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof MonitoredResourceDescriptor)) { + if (!(obj instanceof com.google.api.MonitoredResourceDescriptor)) { return super.equals(obj); } - MonitoredResourceDescriptor other = (MonitoredResourceDescriptor) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getType() - .equals(other.getType())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getLabelsList() - .equals(other.getLabelsList())) return false; + com.google.api.MonitoredResourceDescriptor other = + (com.google.api.MonitoredResourceDescriptor) obj; + + if (!getName().equals(other.getName())) return false; + if (!getType().equals(other.getType())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getLabelsList().equals(other.getLabelsList())) return false; if (launchStage_ != other.launchStage_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -531,97 +593,104 @@ public int hashCode() { return hash; } - public static MonitoredResourceDescriptor parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.MonitoredResourceDescriptor parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static MonitoredResourceDescriptor parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.MonitoredResourceDescriptor parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static MonitoredResourceDescriptor parseFrom( + + public static com.google.api.MonitoredResourceDescriptor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static MonitoredResourceDescriptor parseFrom( + + public static com.google.api.MonitoredResourceDescriptor parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static MonitoredResourceDescriptor parseFrom(byte[] data) + + public static com.google.api.MonitoredResourceDescriptor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static MonitoredResourceDescriptor parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.MonitoredResourceDescriptor parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static MonitoredResourceDescriptor parseFrom(java.io.InputStream input) + + public static com.google.api.MonitoredResourceDescriptor 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 MonitoredResourceDescriptor parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.MonitoredResourceDescriptor parseFrom( + 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 MonitoredResourceDescriptor parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.api.MonitoredResourceDescriptor parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static MonitoredResourceDescriptor parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.MonitoredResourceDescriptor parseDelimitedFrom( + 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 MonitoredResourceDescriptor parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.api.MonitoredResourceDescriptor parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static MonitoredResourceDescriptor parseFrom( + + public static com.google.api.MonitoredResourceDescriptor 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(MonitoredResourceDescriptor prototype) { + + public static Builder newBuilder(com.google.api.MonitoredResourceDescriptor prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An object that describes the schema of a [MonitoredResource][google.api.MonitoredResource] object using a
    * type name and a set of labels.  For example, the monitored resource
@@ -635,21 +704,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.MonitoredResourceDescriptor}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.MonitoredResourceDescriptor)
       com.google.api.MonitoredResourceDescriptorOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return MonitoredResourceProto.internal_static_google_api_MonitoredResourceDescriptor_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.api.MonitoredResourceProto
+          .internal_static_google_api_MonitoredResourceDescriptor_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return MonitoredResourceProto.internal_static_google_api_MonitoredResourceDescriptor_fieldAccessorTable
+      return com.google.api.MonitoredResourceProto
+          .internal_static_google_api_MonitoredResourceDescriptor_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              MonitoredResourceDescriptor.class, Builder.class);
+              com.google.api.MonitoredResourceDescriptor.class,
+              com.google.api.MonitoredResourceDescriptor.Builder.class);
     }
 
     // Construct using com.google.api.MonitoredResourceDescriptor.newBuilder()
@@ -657,18 +728,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getLabelsFieldBuilder();
       }
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       name_ = "";
@@ -681,7 +752,7 @@ public Builder clear() {
 
       if (labelsBuilder_ == null) {
         labels_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000010);
+        bitField0_ = (bitField0_ & ~0x00000001);
       } else {
         labelsBuilder_.clear();
       }
@@ -690,94 +761,94 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return MonitoredResourceProto.internal_static_google_api_MonitoredResourceDescriptor_descriptor;
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.api.MonitoredResourceProto
+          .internal_static_google_api_MonitoredResourceDescriptor_descriptor;
     }
 
-    @Override
-    public MonitoredResourceDescriptor getDefaultInstanceForType() {
-      return MonitoredResourceDescriptor.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.MonitoredResourceDescriptor getDefaultInstanceForType() {
+      return com.google.api.MonitoredResourceDescriptor.getDefaultInstance();
     }
 
-    @Override
-    public MonitoredResourceDescriptor build() {
-      MonitoredResourceDescriptor result = buildPartial();
+    @java.lang.Override
+    public com.google.api.MonitoredResourceDescriptor build() {
+      com.google.api.MonitoredResourceDescriptor result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public MonitoredResourceDescriptor buildPartial() {
-      MonitoredResourceDescriptor result = new MonitoredResourceDescriptor(this);
+    @java.lang.Override
+    public com.google.api.MonitoredResourceDescriptor buildPartial() {
+      com.google.api.MonitoredResourceDescriptor result =
+          new com.google.api.MonitoredResourceDescriptor(this);
       int from_bitField0_ = bitField0_;
-      int to_bitField0_ = 0;
       result.name_ = name_;
       result.type_ = type_;
       result.displayName_ = displayName_;
       result.description_ = description_;
       if (labelsBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0)) {
+        if (((bitField0_ & 0x00000001) != 0)) {
           labels_ = java.util.Collections.unmodifiableList(labels_);
-          bitField0_ = (bitField0_ & ~0x00000010);
+          bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.labels_ = labels_;
       } else {
         result.labels_ = labelsBuilder_.build();
       }
       result.launchStage_ = launchStage_;
-      result.bitField0_ = to_bitField0_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof MonitoredResourceDescriptor) {
-        return mergeFrom((MonitoredResourceDescriptor)other);
+      if (other instanceof com.google.api.MonitoredResourceDescriptor) {
+        return mergeFrom((com.google.api.MonitoredResourceDescriptor) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(MonitoredResourceDescriptor other) {
-      if (other == MonitoredResourceDescriptor.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.MonitoredResourceDescriptor other) {
+      if (other == com.google.api.MonitoredResourceDescriptor.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -798,7 +869,7 @@ public Builder mergeFrom(MonitoredResourceDescriptor other) {
         if (!other.labels_.isEmpty()) {
           if (labels_.isEmpty()) {
             labels_ = other.labels_;
-            bitField0_ = (bitField0_ & ~0x00000010);
+            bitField0_ = (bitField0_ & ~0x00000001);
           } else {
             ensureLabelsIsMutable();
             labels_.addAll(other.labels_);
@@ -811,10 +882,11 @@ public Builder mergeFrom(MonitoredResourceDescriptor other) {
             labelsBuilder_.dispose();
             labelsBuilder_ = null;
             labels_ = other.labels_;
-            bitField0_ = (bitField0_ & ~0x00000010);
-            labelsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getLabelsFieldBuilder() : null;
+            bitField0_ = (bitField0_ & ~0x00000001);
+            labelsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getLabelsFieldBuilder()
+                    : null;
           } else {
             labelsBuilder_.addAllMessages(other.labels_);
           }
@@ -828,21 +900,21 @@ public Builder mergeFrom(MonitoredResourceDescriptor other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      MonitoredResourceDescriptor parsedMessage = null;
+      com.google.api.MonitoredResourceDescriptor parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (MonitoredResourceDescriptor) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.MonitoredResourceDescriptor) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -851,10 +923,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private Object name_ = "";
+    private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Optional. The resource name of the monitored resource descriptor:
      * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where
@@ -865,20 +940,23 @@ public Builder mergeFrom(
      * 
* * string name = 5; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Optional. The resource name of the monitored resource descriptor:
      * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where
@@ -889,14 +967,14 @@ public String getName() {
      * 
* * string name = 5; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -904,6 +982,8 @@ public String getName() { } } /** + * + * *
      * Optional. The resource name of the monitored resource descriptor:
      * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where
@@ -914,18 +994,22 @@ public String getName() {
      * 
* * string name = 5; + * + * @param value The name to set. + * @return This builder for chaining. */ - public Builder setName( - String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The resource name of the monitored resource descriptor:
      * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where
@@ -936,14 +1020,18 @@ public Builder setName(
      * 
* * string name = 5; + * + * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Optional. The resource name of the monitored resource descriptor:
      * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where
@@ -954,21 +1042,25 @@ public Builder clearName() {
      * 
* * string name = 5; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private Object type_ = ""; + private java.lang.Object type_ = ""; /** + * + * *
      * Required. The monitored resource type. For example, the type
      * `"cloudsql_database"` represents databases in Google Cloud SQL.
@@ -976,20 +1068,23 @@ public Builder setNameBytes(
      * 
* * string type = 1; + * + * @return The type. */ - public String getType() { - Object ref = type_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Required. The monitored resource type. For example, the type
      * `"cloudsql_database"` represents databases in Google Cloud SQL.
@@ -997,14 +1092,14 @@ public String getType() {
      * 
* * string type = 1; + * + * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { - Object ref = type_; + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -1012,6 +1107,8 @@ public String getType() { } } /** + * + * *
      * Required. The monitored resource type. For example, the type
      * `"cloudsql_database"` represents databases in Google Cloud SQL.
@@ -1019,18 +1116,22 @@ public String getType() {
      * 
* * string type = 1; + * + * @param value The type to set. + * @return This builder for chaining. */ - public Builder setType( - String value) { + public Builder setType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** + * + * *
      * Required. The monitored resource type. For example, the type
      * `"cloudsql_database"` represents databases in Google Cloud SQL.
@@ -1038,14 +1139,18 @@ public Builder setType(
      * 
* * string type = 1; + * + * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** + * + * *
      * Required. The monitored resource type. For example, the type
      * `"cloudsql_database"` represents databases in Google Cloud SQL.
@@ -1053,21 +1158,25 @@ public Builder clearType() {
      * 
* * string type = 1; + * + * @param value The bytes for type to set. + * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; } - private Object displayName_ = ""; + private java.lang.Object displayName_ = ""; /** + * + * *
      * Optional. A concise name for the monitored resource type that might be
      * displayed in user interfaces. It should be a Title Cased Noun Phrase,
@@ -1076,20 +1185,23 @@ public Builder setTypeBytes(
      * 
* * string display_name = 2; + * + * @return The displayName. */ - public String getDisplayName() { - Object ref = displayName_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Optional. A concise name for the monitored resource type that might be
      * displayed in user interfaces. It should be a Title Cased Noun Phrase,
@@ -1098,14 +1210,14 @@ public String getDisplayName() {
      * 
* * string display_name = 2; + * + * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - Object ref = displayName_; + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1113,6 +1225,8 @@ public String getDisplayName() { } } /** + * + * *
      * Optional. A concise name for the monitored resource type that might be
      * displayed in user interfaces. It should be a Title Cased Noun Phrase,
@@ -1121,18 +1235,22 @@ public String getDisplayName() {
      * 
* * string display_name = 2; + * + * @param value The displayName to set. + * @return This builder for chaining. */ - public Builder setDisplayName( - String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A concise name for the monitored resource type that might be
      * displayed in user interfaces. It should be a Title Cased Noun Phrase,
@@ -1141,14 +1259,18 @@ public Builder setDisplayName(
      * 
* * string display_name = 2; + * + * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * Optional. A concise name for the monitored resource type that might be
      * displayed in user interfaces. It should be a Title Cased Noun Phrase,
@@ -1157,55 +1279,62 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } - private Object description_ = ""; + private java.lang.Object description_ = ""; /** + * + * *
      * Optional. A detailed description of the monitored resource type that might
      * be used in documentation.
      * 
* * string description = 3; + * + * @return The description. */ - public String getDescription() { - Object ref = description_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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; + java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Optional. A detailed description of the monitored resource type that might
      * be used in documentation.
      * 
* * string description = 3; + * + * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - Object ref = description_; + 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( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1213,70 +1342,88 @@ public String getDescription() { } } /** + * + * *
      * Optional. A detailed description of the monitored resource type that might
      * be used in documentation.
      * 
* * string description = 3; + * + * @param value The description to set. + * @return This builder for chaining. */ - public Builder setDescription( - String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A detailed description of the monitored resource type that might
      * be used in documentation.
      * 
* * string description = 3; + * + * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Optional. A detailed description of the monitored resource type that might
      * be used in documentation.
      * 
* * string description = 3; + * + * @param value The bytes for description to set. + * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private java.util.List labels_ = - java.util.Collections.emptyList(); + private java.util.List labels_ = + java.util.Collections.emptyList(); + private void ensureLabelsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - labels_ = new java.util.ArrayList(labels_); - bitField0_ |= 0x00000010; - } + if (!((bitField0_ & 0x00000001) != 0)) { + labels_ = new java.util.ArrayList(labels_); + bitField0_ |= 0x00000001; + } } private com.google.protobuf.RepeatedFieldBuilderV3< - LabelDescriptor, LabelDescriptor.Builder, LabelDescriptorOrBuilder> labelsBuilder_; + com.google.api.LabelDescriptor, + com.google.api.LabelDescriptor.Builder, + com.google.api.LabelDescriptorOrBuilder> + labelsBuilder_; /** + * + * *
      * Required. A set of labels used to describe instances of this monitored
      * resource type. For example, an individual Google Cloud SQL database is
@@ -1285,7 +1432,7 @@ private void ensureLabelsIsMutable() {
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public java.util.List getLabelsList() {
+    public java.util.List getLabelsList() {
       if (labelsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(labels_);
       } else {
@@ -1293,6 +1440,8 @@ public java.util.List getLabelsList() {
       }
     }
     /**
+     *
+     *
      * 
      * Required. A set of labels used to describe instances of this monitored
      * resource type. For example, an individual Google Cloud SQL database is
@@ -1309,6 +1458,8 @@ public int getLabelsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Required. A set of labels used to describe instances of this monitored
      * resource type. For example, an individual Google Cloud SQL database is
@@ -1317,7 +1468,7 @@ public int getLabelsCount() {
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public LabelDescriptor getLabels(int index) {
+    public com.google.api.LabelDescriptor getLabels(int index) {
       if (labelsBuilder_ == null) {
         return labels_.get(index);
       } else {
@@ -1325,6 +1476,8 @@ public LabelDescriptor getLabels(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Required. A set of labels used to describe instances of this monitored
      * resource type. For example, an individual Google Cloud SQL database is
@@ -1333,8 +1486,7 @@ public LabelDescriptor getLabels(int index) {
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public Builder setLabels(
-        int index, LabelDescriptor value) {
+    public Builder setLabels(int index, com.google.api.LabelDescriptor value) {
       if (labelsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1348,6 +1500,8 @@ public Builder setLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. A set of labels used to describe instances of this monitored
      * resource type. For example, an individual Google Cloud SQL database is
@@ -1356,8 +1510,7 @@ public Builder setLabels(
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public Builder setLabels(
-        int index, LabelDescriptor.Builder builderForValue) {
+    public Builder setLabels(int index, com.google.api.LabelDescriptor.Builder builderForValue) {
       if (labelsBuilder_ == null) {
         ensureLabelsIsMutable();
         labels_.set(index, builderForValue.build());
@@ -1368,6 +1521,8 @@ public Builder setLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. A set of labels used to describe instances of this monitored
      * resource type. For example, an individual Google Cloud SQL database is
@@ -1376,7 +1531,7 @@ public Builder setLabels(
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public Builder addLabels(LabelDescriptor value) {
+    public Builder addLabels(com.google.api.LabelDescriptor value) {
       if (labelsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1390,6 +1545,8 @@ public Builder addLabels(LabelDescriptor value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. A set of labels used to describe instances of this monitored
      * resource type. For example, an individual Google Cloud SQL database is
@@ -1398,8 +1555,7 @@ public Builder addLabels(LabelDescriptor value) {
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public Builder addLabels(
-        int index, LabelDescriptor value) {
+    public Builder addLabels(int index, com.google.api.LabelDescriptor value) {
       if (labelsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1413,6 +1569,8 @@ public Builder addLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. A set of labels used to describe instances of this monitored
      * resource type. For example, an individual Google Cloud SQL database is
@@ -1421,8 +1579,7 @@ public Builder addLabels(
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public Builder addLabels(
-        LabelDescriptor.Builder builderForValue) {
+    public Builder addLabels(com.google.api.LabelDescriptor.Builder builderForValue) {
       if (labelsBuilder_ == null) {
         ensureLabelsIsMutable();
         labels_.add(builderForValue.build());
@@ -1433,6 +1590,8 @@ public Builder addLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. A set of labels used to describe instances of this monitored
      * resource type. For example, an individual Google Cloud SQL database is
@@ -1441,8 +1600,7 @@ public Builder addLabels(
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public Builder addLabels(
-        int index, LabelDescriptor.Builder builderForValue) {
+    public Builder addLabels(int index, com.google.api.LabelDescriptor.Builder builderForValue) {
       if (labelsBuilder_ == null) {
         ensureLabelsIsMutable();
         labels_.add(index, builderForValue.build());
@@ -1453,6 +1611,8 @@ public Builder addLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. A set of labels used to describe instances of this monitored
      * resource type. For example, an individual Google Cloud SQL database is
@@ -1462,11 +1622,10 @@ public Builder addLabels(
      * repeated .google.api.LabelDescriptor labels = 4;
      */
     public Builder addAllLabels(
-        Iterable values) {
+        java.lang.Iterable values) {
       if (labelsBuilder_ == null) {
         ensureLabelsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, labels_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, labels_);
         onChanged();
       } else {
         labelsBuilder_.addAllMessages(values);
@@ -1474,6 +1633,8 @@ public Builder addAllLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. A set of labels used to describe instances of this monitored
      * resource type. For example, an individual Google Cloud SQL database is
@@ -1485,7 +1646,7 @@ public Builder addAllLabels(
     public Builder clearLabels() {
       if (labelsBuilder_ == null) {
         labels_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000010);
+        bitField0_ = (bitField0_ & ~0x00000001);
         onChanged();
       } else {
         labelsBuilder_.clear();
@@ -1493,6 +1654,8 @@ public Builder clearLabels() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. A set of labels used to describe instances of this monitored
      * resource type. For example, an individual Google Cloud SQL database is
@@ -1512,6 +1675,8 @@ public Builder removeLabels(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. A set of labels used to describe instances of this monitored
      * resource type. For example, an individual Google Cloud SQL database is
@@ -1520,11 +1685,12 @@ public Builder removeLabels(int index) {
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public LabelDescriptor.Builder getLabelsBuilder(
-        int index) {
+    public com.google.api.LabelDescriptor.Builder getLabelsBuilder(int index) {
       return getLabelsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Required. A set of labels used to describe instances of this monitored
      * resource type. For example, an individual Google Cloud SQL database is
@@ -1533,14 +1699,16 @@ public LabelDescriptor.Builder getLabelsBuilder(
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public LabelDescriptorOrBuilder getLabelsOrBuilder(
-        int index) {
+    public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(int index) {
       if (labelsBuilder_ == null) {
-        return labels_.get(index);  } else {
+        return labels_.get(index);
+      } else {
         return labelsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Required. A set of labels used to describe instances of this monitored
      * resource type. For example, an individual Google Cloud SQL database is
@@ -1549,8 +1717,8 @@ public LabelDescriptorOrBuilder getLabelsOrBuilder(
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public java.util.List
-         getLabelsOrBuilderList() {
+    public java.util.List
+        getLabelsOrBuilderList() {
       if (labelsBuilder_ != null) {
         return labelsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1558,6 +1726,8 @@ public LabelDescriptorOrBuilder getLabelsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Required. A set of labels used to describe instances of this monitored
      * resource type. For example, an individual Google Cloud SQL database is
@@ -1566,11 +1736,13 @@ public LabelDescriptorOrBuilder getLabelsOrBuilder(
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public LabelDescriptor.Builder addLabelsBuilder() {
-      return getLabelsFieldBuilder().addBuilder(
-          LabelDescriptor.getDefaultInstance());
+    public com.google.api.LabelDescriptor.Builder addLabelsBuilder() {
+      return getLabelsFieldBuilder()
+          .addBuilder(com.google.api.LabelDescriptor.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Required. A set of labels used to describe instances of this monitored
      * resource type. For example, an individual Google Cloud SQL database is
@@ -1579,12 +1751,13 @@ public LabelDescriptor.Builder addLabelsBuilder() {
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public LabelDescriptor.Builder addLabelsBuilder(
-        int index) {
-      return getLabelsFieldBuilder().addBuilder(
-          index, LabelDescriptor.getDefaultInstance());
+    public com.google.api.LabelDescriptor.Builder addLabelsBuilder(int index) {
+      return getLabelsFieldBuilder()
+          .addBuilder(index, com.google.api.LabelDescriptor.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Required. A set of labels used to describe instances of this monitored
      * resource type. For example, an individual Google Cloud SQL database is
@@ -1593,20 +1766,22 @@ public LabelDescriptor.Builder addLabelsBuilder(
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public java.util.List
-         getLabelsBuilderList() {
+    public java.util.List getLabelsBuilderList() {
       return getLabelsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        LabelDescriptor, LabelDescriptor.Builder, LabelDescriptorOrBuilder>
+            com.google.api.LabelDescriptor,
+            com.google.api.LabelDescriptor.Builder,
+            com.google.api.LabelDescriptorOrBuilder>
         getLabelsFieldBuilder() {
       if (labelsBuilder_ == null) {
-        labelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            LabelDescriptor, LabelDescriptor.Builder, LabelDescriptorOrBuilder>(
-                labels_,
-                ((bitField0_ & 0x00000010) != 0),
-                getParentForChildren(),
-                isClean());
+        labelsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.api.LabelDescriptor,
+                com.google.api.LabelDescriptor.Builder,
+                com.google.api.LabelDescriptorOrBuilder>(
+                labels_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         labels_ = null;
       }
       return labelsBuilder_;
@@ -1614,21 +1789,30 @@ public LabelDescriptor.Builder addLabelsBuilder(
 
     private int launchStage_ = 0;
     /**
+     *
+     *
      * 
      * Optional. The launch stage of the monitored resource definition.
      * 
* * .google.api.LaunchStage launch_stage = 7; + * + * @return The enum numeric value on the wire for launchStage. */ public int getLaunchStageValue() { return launchStage_; } /** + * + * *
      * Optional. The launch stage of the monitored resource definition.
      * 
* * .google.api.LaunchStage launch_stage = 7; + * + * @param value The enum numeric value on the wire for launchStage to set. + * @return This builder for chaining. */ public Builder setLaunchStageValue(int value) { launchStage_ = value; @@ -1636,96 +1820,107 @@ public Builder setLaunchStageValue(int value) { return this; } /** + * + * *
      * Optional. The launch stage of the monitored resource definition.
      * 
* * .google.api.LaunchStage launch_stage = 7; + * + * @return The launchStage. */ - public LaunchStage getLaunchStage() { + public com.google.api.LaunchStage getLaunchStage() { @SuppressWarnings("deprecation") - LaunchStage result = LaunchStage.valueOf(launchStage_); - return result == null ? LaunchStage.UNRECOGNIZED : result; + com.google.api.LaunchStage result = com.google.api.LaunchStage.valueOf(launchStage_); + return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result; } /** + * + * *
      * Optional. The launch stage of the monitored resource definition.
      * 
* * .google.api.LaunchStage launch_stage = 7; + * + * @param value The launchStage to set. + * @return This builder for chaining. */ - public Builder setLaunchStage(LaunchStage value) { + public Builder setLaunchStage(com.google.api.LaunchStage value) { if (value == null) { throw new NullPointerException(); } - + launchStage_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. The launch stage of the monitored resource definition.
      * 
* * .google.api.LaunchStage launch_stage = 7; + * + * @return This builder for chaining. */ public Builder clearLaunchStage() { - + launchStage_ = 0; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.MonitoredResourceDescriptor) } // @@protoc_insertion_point(class_scope:google.api.MonitoredResourceDescriptor) - private static final MonitoredResourceDescriptor DEFAULT_INSTANCE; + private static final com.google.api.MonitoredResourceDescriptor DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new MonitoredResourceDescriptor(); + DEFAULT_INSTANCE = new com.google.api.MonitoredResourceDescriptor(); } - public static MonitoredResourceDescriptor getDefaultInstance() { + public static com.google.api.MonitoredResourceDescriptor getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public MonitoredResourceDescriptor parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MonitoredResourceDescriptor(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MonitoredResourceDescriptor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MonitoredResourceDescriptor(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public MonitoredResourceDescriptor getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.MonitoredResourceDescriptor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptorOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptorOrBuilder.java index 94326dbd..9af44805 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptorOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptorOrBuilder.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/monitored_resource.proto package com.google.api; -public interface MonitoredResourceDescriptorOrBuilder extends +public interface MonitoredResourceDescriptorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.MonitoredResourceDescriptor) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The resource name of the monitored resource descriptor:
    * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where
@@ -18,9 +36,13 @@ public interface MonitoredResourceDescriptorOrBuilder extends
    * 
* * string name = 5; + * + * @return The name. */ - String getName(); + java.lang.String getName(); /** + * + * *
    * Optional. The resource name of the monitored resource descriptor:
    * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where
@@ -31,11 +53,14 @@ public interface MonitoredResourceDescriptorOrBuilder extends
    * 
* * string name = 5; + * + * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The monitored resource type. For example, the type
    * `"cloudsql_database"` represents databases in Google Cloud SQL.
@@ -43,9 +68,13 @@ public interface MonitoredResourceDescriptorOrBuilder extends
    * 
* * string type = 1; + * + * @return The type. */ - String getType(); + java.lang.String getType(); /** + * + * *
    * Required. The monitored resource type. For example, the type
    * `"cloudsql_database"` represents databases in Google Cloud SQL.
@@ -53,11 +82,14 @@ public interface MonitoredResourceDescriptorOrBuilder extends
    * 
* * string type = 1; + * + * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); /** + * + * *
    * Optional. A concise name for the monitored resource type that might be
    * displayed in user interfaces. It should be a Title Cased Noun Phrase,
@@ -66,9 +98,13 @@ public interface MonitoredResourceDescriptorOrBuilder extends
    * 
* * string display_name = 2; + * + * @return The displayName. */ - String getDisplayName(); + java.lang.String getDisplayName(); /** + * + * *
    * Optional. A concise name for the monitored resource type that might be
    * displayed in user interfaces. It should be a Title Cased Noun Phrase,
@@ -77,31 +113,41 @@ public interface MonitoredResourceDescriptorOrBuilder extends
    * 
* * string display_name = 2; + * + * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Optional. A detailed description of the monitored resource type that might
    * be used in documentation.
    * 
* * string description = 3; + * + * @return The description. */ - String getDescription(); + java.lang.String getDescription(); /** + * + * *
    * Optional. A detailed description of the monitored resource type that might
    * be used in documentation.
    * 
* * string description = 3; + * + * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Required. A set of labels used to describe instances of this monitored
    * resource type. For example, an individual Google Cloud SQL database is
@@ -110,9 +156,10 @@ public interface MonitoredResourceDescriptorOrBuilder extends
    *
    * repeated .google.api.LabelDescriptor labels = 4;
    */
-  java.util.List
-      getLabelsList();
+  java.util.List getLabelsList();
   /**
+   *
+   *
    * 
    * Required. A set of labels used to describe instances of this monitored
    * resource type. For example, an individual Google Cloud SQL database is
@@ -121,8 +168,10 @@ public interface MonitoredResourceDescriptorOrBuilder extends
    *
    * repeated .google.api.LabelDescriptor labels = 4;
    */
-  LabelDescriptor getLabels(int index);
+  com.google.api.LabelDescriptor getLabels(int index);
   /**
+   *
+   *
    * 
    * Required. A set of labels used to describe instances of this monitored
    * resource type. For example, an individual Google Cloud SQL database is
@@ -133,6 +182,8 @@ public interface MonitoredResourceDescriptorOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Required. A set of labels used to describe instances of this monitored
    * resource type. For example, an individual Google Cloud SQL database is
@@ -141,9 +192,10 @@ public interface MonitoredResourceDescriptorOrBuilder extends
    *
    * repeated .google.api.LabelDescriptor labels = 4;
    */
-  java.util.List
-      getLabelsOrBuilderList();
+  java.util.List getLabelsOrBuilderList();
   /**
+   *
+   *
    * 
    * Required. A set of labels used to describe instances of this monitored
    * resource type. For example, an individual Google Cloud SQL database is
@@ -152,23 +204,30 @@ public interface MonitoredResourceDescriptorOrBuilder extends
    *
    * repeated .google.api.LabelDescriptor labels = 4;
    */
-  LabelDescriptorOrBuilder getLabelsOrBuilder(
-      int index);
+  com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Optional. The launch stage of the monitored resource definition.
    * 
* * .google.api.LaunchStage launch_stage = 7; + * + * @return The enum numeric value on the wire for launchStage. */ int getLaunchStageValue(); /** + * + * *
    * Optional. The launch stage of the monitored resource definition.
    * 
* * .google.api.LaunchStage launch_stage = 7; + * + * @return The launchStage. */ - LaunchStage getLaunchStage(); + com.google.api.LaunchStage getLaunchStage(); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadata.java b/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadata.java index 7da0a2c9..5af21c65 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadata.java +++ b/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadata.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/monitored_resource.proto package com.google.api; /** + * + * *
  * Auxiliary metadata for a [MonitoredResource][google.api.MonitoredResource] object.
  * [MonitoredResource][google.api.MonitoredResource] objects contain the minimum set of information to
@@ -15,30 +32,36 @@
  *
  * Protobuf type {@code google.api.MonitoredResourceMetadata}
  */
-public  final class MonitoredResourceMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MonitoredResourceMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.MonitoredResourceMetadata)
     MonitoredResourceMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MonitoredResourceMetadata.newBuilder() to construct.
   private MonitoredResourceMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private MonitoredResourceMetadata() {
+
+  private MonitoredResourceMetadata() {}
+
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new MonitoredResourceMetadata();
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private MonitoredResourceMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -51,80 +74,86 @@ private MonitoredResourceMetadata(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.protobuf.Struct.Builder subBuilder = null;
-            if (systemLabels_ != null) {
-              subBuilder = systemLabels_.toBuilder();
-            }
-            systemLabels_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(systemLabels_);
-              systemLabels_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.protobuf.Struct.Builder subBuilder = null;
+              if (systemLabels_ != null) {
+                subBuilder = systemLabels_.toBuilder();
+              }
+              systemLabels_ =
+                  input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(systemLabels_);
+                systemLabels_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              userLabels_ = com.google.protobuf.MapField.newMapField(
-                  UserLabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000002;
+              break;
             }
-            com.google.protobuf.MapEntry
-            userLabels__ = input.readMessage(
-                UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            userLabels_.getMutableMap().put(
-                userLabels__.getKey(), userLabels__.getValue());
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                userLabels_ =
+                    com.google.protobuf.MapField.newMapField(
+                        UserLabelsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry userLabels__ =
+                  input.readMessage(
+                      UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                      extensionRegistry);
+              userLabels_.getMutableMap().put(userLabels__.getKey(), userLabels__.getValue());
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return MonitoredResourceProto.internal_static_google_api_MonitoredResourceMetadata_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.api.MonitoredResourceProto
+        .internal_static_google_api_MonitoredResourceMetadata_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
-  @Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  @java.lang.Override
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 2:
         return internalGetUserLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
-  @Override
-  protected FieldAccessorTable
+
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return MonitoredResourceProto.internal_static_google_api_MonitoredResourceMetadata_fieldAccessorTable
+    return com.google.api.MonitoredResourceProto
+        .internal_static_google_api_MonitoredResourceMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            MonitoredResourceMetadata.class, Builder.class);
+            com.google.api.MonitoredResourceMetadata.class,
+            com.google.api.MonitoredResourceMetadata.Builder.class);
   }
 
-  private int bitField0_;
   public static final int SYSTEM_LABELS_FIELD_NUMBER = 1;
   private com.google.protobuf.Struct systemLabels_;
   /**
+   *
+   *
    * 
    * Output only. Values for predefined system metadata labels.
    * System labels are a kind of metadata extracted by Google, including
@@ -138,11 +167,15 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * .google.protobuf.Struct system_labels = 1; + * + * @return Whether the systemLabels field is set. */ public boolean hasSystemLabels() { return systemLabels_ != null; } /** + * + * *
    * Output only. Values for predefined system metadata labels.
    * System labels are a kind of metadata extracted by Google, including
@@ -156,11 +189,15 @@ public boolean hasSystemLabels() {
    * 
* * .google.protobuf.Struct system_labels = 1; + * + * @return The systemLabels. */ public com.google.protobuf.Struct getSystemLabels() { return systemLabels_ == null ? com.google.protobuf.Struct.getDefaultInstance() : systemLabels_; } /** + * + * *
    * Output only. Values for predefined system metadata labels.
    * System labels are a kind of metadata extracted by Google, including
@@ -180,24 +217,23 @@ public com.google.protobuf.StructOrBuilder getSystemLabelsOrBuilder() {
   }
 
   public static final int USER_LABELS_FIELD_NUMBER = 2;
+
   private static final class UserLabelsDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry<
-        String, String> defaultEntry =
-            com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                MonitoredResourceProto.internal_static_google_api_MonitoredResourceMetadata_UserLabelsEntry_descriptor,
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "");
+    static final com.google.protobuf.MapEntry defaultEntry =
+        com.google.protobuf.MapEntry.newDefaultInstance(
+            com.google.api.MonitoredResourceProto
+                .internal_static_google_api_MonitoredResourceMetadata_UserLabelsEntry_descriptor,
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "",
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "");
   }
-  private com.google.protobuf.MapField<
-      String, String> userLabels_;
-  private com.google.protobuf.MapField
-  internalGetUserLabels() {
+
+  private com.google.protobuf.MapField userLabels_;
+
+  private com.google.protobuf.MapField internalGetUserLabels() {
     if (userLabels_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(
-          UserLabelsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(UserLabelsDefaultEntryHolder.defaultEntry);
     }
     return userLabels_;
   }
@@ -206,73 +242,77 @@ public int getUserLabelsCount() {
     return internalGetUserLabels().getMap().size();
   }
   /**
+   *
+   *
    * 
    * Output only. A map of user-defined metadata labels.
    * 
* * map<string, string> user_labels = 2; */ - - public boolean containsUserLabels( - String key) { - if (key == null) { throw new NullPointerException(); } + public boolean containsUserLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetUserLabels().getMap().containsKey(key); } - /** - * Use {@link #getUserLabelsMap()} instead. - */ - @Deprecated - public java.util.Map getUserLabels() { + /** Use {@link #getUserLabelsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getUserLabels() { return getUserLabelsMap(); } /** + * + * *
    * Output only. A map of user-defined metadata labels.
    * 
* * map<string, string> user_labels = 2; */ - - public java.util.Map getUserLabelsMap() { + public java.util.Map getUserLabelsMap() { return internalGetUserLabels().getMap(); } /** + * + * *
    * Output only. A map of user-defined metadata labels.
    * 
* * map<string, string> user_labels = 2; */ - - public String getUserLabelsOrDefault( - String key, - String defaultValue) { - if (key == null) { throw new NullPointerException(); } - java.util.Map map = - internalGetUserLabels().getMap(); + public java.lang.String getUserLabelsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetUserLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Output only. A map of user-defined metadata labels.
    * 
* * map<string, string> user_labels = 2; */ - - public String getUserLabelsOrThrow( - String key) { - if (key == null) { throw new NullPointerException(); } - java.util.Map map = - internalGetUserLabels().getMap(); + public java.lang.String getUserLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetUserLabels().getMap(); if (!map.containsKey(key)) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -282,68 +322,60 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (systemLabels_ != null) { output.writeMessage(1, getSystemLabels()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetUserLabels(), - UserLabelsDefaultEntryHolder.defaultEntry, - 2); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetUserLabels(), UserLabelsDefaultEntryHolder.defaultEntry, 2); unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (systemLabels_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSystemLabels()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSystemLabels()); } - for (java.util.Map.Entry entry - : internalGetUserLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - userLabels__ = UserLabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, userLabels__); + for (java.util.Map.Entry entry : + internalGetUserLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry userLabels__ = + UserLabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, userLabels__); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof MonitoredResourceMetadata)) { + if (!(obj instanceof com.google.api.MonitoredResourceMetadata)) { return super.equals(obj); } - MonitoredResourceMetadata other = (MonitoredResourceMetadata) obj; + com.google.api.MonitoredResourceMetadata other = (com.google.api.MonitoredResourceMetadata) obj; if (hasSystemLabels() != other.hasSystemLabels()) return false; if (hasSystemLabels()) { - if (!getSystemLabels() - .equals(other.getSystemLabels())) return false; + if (!getSystemLabels().equals(other.getSystemLabels())) return false; } - if (!internalGetUserLabels().equals( - other.internalGetUserLabels())) return false; + if (!internalGetUserLabels().equals(other.internalGetUserLabels())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -363,97 +395,104 @@ public int hashCode() { return hash; } - public static MonitoredResourceMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.MonitoredResourceMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static MonitoredResourceMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.MonitoredResourceMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static MonitoredResourceMetadata parseFrom( + + public static com.google.api.MonitoredResourceMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static MonitoredResourceMetadata parseFrom( + + public static com.google.api.MonitoredResourceMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static MonitoredResourceMetadata parseFrom(byte[] data) + + public static com.google.api.MonitoredResourceMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static MonitoredResourceMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.MonitoredResourceMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static MonitoredResourceMetadata parseFrom(java.io.InputStream input) + + public static com.google.api.MonitoredResourceMetadata 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 MonitoredResourceMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.MonitoredResourceMetadata parseFrom( + 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 MonitoredResourceMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.api.MonitoredResourceMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static MonitoredResourceMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.MonitoredResourceMetadata parseDelimitedFrom( + 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 MonitoredResourceMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.api.MonitoredResourceMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static MonitoredResourceMetadata parseFrom( + + public static com.google.api.MonitoredResourceMetadata 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(MonitoredResourceMetadata prototype) { + + public static Builder newBuilder(com.google.api.MonitoredResourceMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Auxiliary metadata for a [MonitoredResource][google.api.MonitoredResource] object.
    * [MonitoredResource][google.api.MonitoredResource] objects contain the minimum set of information to
@@ -465,43 +504,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.MonitoredResourceMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.MonitoredResourceMetadata)
       com.google.api.MonitoredResourceMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return MonitoredResourceProto.internal_static_google_api_MonitoredResourceMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.api.MonitoredResourceProto
+          .internal_static_google_api_MonitoredResourceMetadata_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 2:
           return internalGetUserLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 2:
           return internalGetMutableUserLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
-    @Override
-    protected FieldAccessorTable
+
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return MonitoredResourceProto.internal_static_google_api_MonitoredResourceMetadata_fieldAccessorTable
+      return com.google.api.MonitoredResourceProto
+          .internal_static_google_api_MonitoredResourceMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              MonitoredResourceMetadata.class, Builder.class);
+              com.google.api.MonitoredResourceMetadata.class,
+              com.google.api.MonitoredResourceMetadata.Builder.class);
     }
 
     // Construct using com.google.api.MonitoredResourceMetadata.newBuilder()
@@ -509,17 +548,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       if (systemLabelsBuilder_ == null) {
@@ -532,31 +570,31 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return MonitoredResourceProto.internal_static_google_api_MonitoredResourceMetadata_descriptor;
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.api.MonitoredResourceProto
+          .internal_static_google_api_MonitoredResourceMetadata_descriptor;
     }
 
-    @Override
-    public MonitoredResourceMetadata getDefaultInstanceForType() {
-      return MonitoredResourceMetadata.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.MonitoredResourceMetadata getDefaultInstanceForType() {
+      return com.google.api.MonitoredResourceMetadata.getDefaultInstance();
     }
 
-    @Override
-    public MonitoredResourceMetadata build() {
-      MonitoredResourceMetadata result = buildPartial();
+    @java.lang.Override
+    public com.google.api.MonitoredResourceMetadata build() {
+      com.google.api.MonitoredResourceMetadata result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public MonitoredResourceMetadata buildPartial() {
-      MonitoredResourceMetadata result = new MonitoredResourceMetadata(this);
+    @java.lang.Override
+    public com.google.api.MonitoredResourceMetadata buildPartial() {
+      com.google.api.MonitoredResourceMetadata result =
+          new com.google.api.MonitoredResourceMetadata(this);
       int from_bitField0_ = bitField0_;
-      int to_bitField0_ = 0;
       if (systemLabelsBuilder_ == null) {
         result.systemLabels_ = systemLabels_;
       } else {
@@ -564,80 +602,79 @@ public MonitoredResourceMetadata buildPartial() {
       }
       result.userLabels_ = internalGetUserLabels();
       result.userLabels_.makeImmutable();
-      result.bitField0_ = to_bitField0_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof MonitoredResourceMetadata) {
-        return mergeFrom((MonitoredResourceMetadata)other);
+      if (other instanceof com.google.api.MonitoredResourceMetadata) {
+        return mergeFrom((com.google.api.MonitoredResourceMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(MonitoredResourceMetadata other) {
-      if (other == MonitoredResourceMetadata.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.MonitoredResourceMetadata other) {
+      if (other == com.google.api.MonitoredResourceMetadata.getDefaultInstance()) return this;
       if (other.hasSystemLabels()) {
         mergeSystemLabels(other.getSystemLabels());
       }
-      internalGetMutableUserLabels().mergeFrom(
-          other.internalGetUserLabels());
+      internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      MonitoredResourceMetadata parsedMessage = null;
+      com.google.api.MonitoredResourceMetadata parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (MonitoredResourceMetadata) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.MonitoredResourceMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -646,12 +683,18 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.Struct systemLabels_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> systemLabelsBuilder_;
+            com.google.protobuf.Struct,
+            com.google.protobuf.Struct.Builder,
+            com.google.protobuf.StructOrBuilder>
+        systemLabelsBuilder_;
     /**
+     *
+     *
      * 
      * Output only. Values for predefined system metadata labels.
      * System labels are a kind of metadata extracted by Google, including
@@ -665,11 +708,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Struct system_labels = 1; + * + * @return Whether the systemLabels field is set. */ public boolean hasSystemLabels() { return systemLabelsBuilder_ != null || systemLabels_ != null; } /** + * + * *
      * Output only. Values for predefined system metadata labels.
      * System labels are a kind of metadata extracted by Google, including
@@ -683,15 +730,21 @@ public boolean hasSystemLabels() {
      * 
* * .google.protobuf.Struct system_labels = 1; + * + * @return The systemLabels. */ public com.google.protobuf.Struct getSystemLabels() { if (systemLabelsBuilder_ == null) { - return systemLabels_ == null ? com.google.protobuf.Struct.getDefaultInstance() : systemLabels_; + return systemLabels_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : systemLabels_; } else { return systemLabelsBuilder_.getMessage(); } } /** + * + * *
      * Output only. Values for predefined system metadata labels.
      * System labels are a kind of metadata extracted by Google, including
@@ -720,6 +773,8 @@ public Builder setSystemLabels(com.google.protobuf.Struct value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Values for predefined system metadata labels.
      * System labels are a kind of metadata extracted by Google, including
@@ -734,8 +789,7 @@ public Builder setSystemLabels(com.google.protobuf.Struct value) {
      *
      * .google.protobuf.Struct system_labels = 1;
      */
-    public Builder setSystemLabels(
-        com.google.protobuf.Struct.Builder builderForValue) {
+    public Builder setSystemLabels(com.google.protobuf.Struct.Builder builderForValue) {
       if (systemLabelsBuilder_ == null) {
         systemLabels_ = builderForValue.build();
         onChanged();
@@ -746,6 +800,8 @@ public Builder setSystemLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Values for predefined system metadata labels.
      * System labels are a kind of metadata extracted by Google, including
@@ -764,7 +820,7 @@ public Builder mergeSystemLabels(com.google.protobuf.Struct value) {
       if (systemLabelsBuilder_ == null) {
         if (systemLabels_ != null) {
           systemLabels_ =
-            com.google.protobuf.Struct.newBuilder(systemLabels_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Struct.newBuilder(systemLabels_).mergeFrom(value).buildPartial();
         } else {
           systemLabels_ = value;
         }
@@ -776,6 +832,8 @@ public Builder mergeSystemLabels(com.google.protobuf.Struct value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Values for predefined system metadata labels.
      * System labels are a kind of metadata extracted by Google, including
@@ -802,6 +860,8 @@ public Builder clearSystemLabels() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Values for predefined system metadata labels.
      * System labels are a kind of metadata extracted by Google, including
@@ -817,11 +877,13 @@ public Builder clearSystemLabels() {
      * .google.protobuf.Struct system_labels = 1;
      */
     public com.google.protobuf.Struct.Builder getSystemLabelsBuilder() {
-      
+
       onChanged();
       return getSystemLabelsFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Output only. Values for predefined system metadata labels.
      * System labels are a kind of metadata extracted by Google, including
@@ -840,11 +902,14 @@ public com.google.protobuf.StructOrBuilder getSystemLabelsOrBuilder() {
       if (systemLabelsBuilder_ != null) {
         return systemLabelsBuilder_.getMessageOrBuilder();
       } else {
-        return systemLabels_ == null ?
-            com.google.protobuf.Struct.getDefaultInstance() : systemLabels_;
+        return systemLabels_ == null
+            ? com.google.protobuf.Struct.getDefaultInstance()
+            : systemLabels_;
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Values for predefined system metadata labels.
      * System labels are a kind of metadata extracted by Google, including
@@ -860,35 +925,40 @@ public com.google.protobuf.StructOrBuilder getSystemLabelsOrBuilder() {
      * .google.protobuf.Struct system_labels = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
+            com.google.protobuf.Struct,
+            com.google.protobuf.Struct.Builder,
+            com.google.protobuf.StructOrBuilder>
         getSystemLabelsFieldBuilder() {
       if (systemLabelsBuilder_ == null) {
-        systemLabelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
-                getSystemLabels(),
-                getParentForChildren(),
-                isClean());
+        systemLabelsBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Struct,
+                com.google.protobuf.Struct.Builder,
+                com.google.protobuf.StructOrBuilder>(
+                getSystemLabels(), getParentForChildren(), isClean());
         systemLabels_ = null;
       }
       return systemLabelsBuilder_;
     }
 
-    private com.google.protobuf.MapField<
-        String, String> userLabels_;
-    private com.google.protobuf.MapField
-    internalGetUserLabels() {
+    private com.google.protobuf.MapField userLabels_;
+
+    private com.google.protobuf.MapField
+        internalGetUserLabels() {
       if (userLabels_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
             UserLabelsDefaultEntryHolder.defaultEntry);
       }
       return userLabels_;
     }
-    private com.google.protobuf.MapField
-    internalGetMutableUserLabels() {
-      onChanged();;
+
+    private com.google.protobuf.MapField
+        internalGetMutableUserLabels() {
+      onChanged();
+      ;
       if (userLabels_ == null) {
-        userLabels_ = com.google.protobuf.MapField.newMapField(
-            UserLabelsDefaultEntryHolder.defaultEntry);
+        userLabels_ =
+            com.google.protobuf.MapField.newMapField(UserLabelsDefaultEntryHolder.defaultEntry);
       }
       if (!userLabels_.isMutable()) {
         userLabels_ = userLabels_.copy();
@@ -900,179 +970,179 @@ public int getUserLabelsCount() {
       return internalGetUserLabels().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Output only. A map of user-defined metadata labels.
      * 
* * map<string, string> user_labels = 2; */ - - public boolean containsUserLabels( - String key) { - if (key == null) { throw new NullPointerException(); } + public boolean containsUserLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetUserLabels().getMap().containsKey(key); } - /** - * Use {@link #getUserLabelsMap()} instead. - */ - @Deprecated - public java.util.Map getUserLabels() { + /** Use {@link #getUserLabelsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getUserLabels() { return getUserLabelsMap(); } /** + * + * *
      * Output only. A map of user-defined metadata labels.
      * 
* * map<string, string> user_labels = 2; */ - - public java.util.Map getUserLabelsMap() { + public java.util.Map getUserLabelsMap() { return internalGetUserLabels().getMap(); } /** + * + * *
      * Output only. A map of user-defined metadata labels.
      * 
* * map<string, string> user_labels = 2; */ - - public String getUserLabelsOrDefault( - String key, - String defaultValue) { - if (key == null) { throw new NullPointerException(); } - java.util.Map map = - internalGetUserLabels().getMap(); + public java.lang.String getUserLabelsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetUserLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Output only. A map of user-defined metadata labels.
      * 
* * map<string, string> user_labels = 2; */ - - public String getUserLabelsOrThrow( - String key) { - if (key == null) { throw new NullPointerException(); } - java.util.Map map = - internalGetUserLabels().getMap(); + public java.lang.String getUserLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetUserLabels().getMap(); if (!map.containsKey(key)) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearUserLabels() { - internalGetMutableUserLabels().getMutableMap() - .clear(); + internalGetMutableUserLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Output only. A map of user-defined metadata labels.
      * 
* * map<string, string> user_labels = 2; */ - - public Builder removeUserLabels( - String key) { - if (key == null) { throw new NullPointerException(); } - internalGetMutableUserLabels().getMutableMap() - .remove(key); + public Builder removeUserLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableUserLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ - @Deprecated - public java.util.Map - getMutableUserLabels() { + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableUserLabels() { return internalGetMutableUserLabels().getMutableMap(); } /** + * + * *
      * Output only. A map of user-defined metadata labels.
      * 
* * map<string, string> user_labels = 2; */ - public Builder putUserLabels( - String key, - String value) { - if (key == null) { throw new NullPointerException(); } - if (value == null) { throw new NullPointerException(); } - internalGetMutableUserLabels().getMutableMap() - .put(key, value); + public Builder putUserLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableUserLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * Output only. A map of user-defined metadata labels.
      * 
* * map<string, string> user_labels = 2; */ - - public Builder putAllUserLabels( - java.util.Map values) { - internalGetMutableUserLabels().getMutableMap() - .putAll(values); + public Builder putAllUserLabels(java.util.Map values) { + internalGetMutableUserLabels().getMutableMap().putAll(values); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.MonitoredResourceMetadata) } // @@protoc_insertion_point(class_scope:google.api.MonitoredResourceMetadata) - private static final MonitoredResourceMetadata DEFAULT_INSTANCE; + private static final com.google.api.MonitoredResourceMetadata DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new MonitoredResourceMetadata(); + DEFAULT_INSTANCE = new com.google.api.MonitoredResourceMetadata(); } - public static MonitoredResourceMetadata getDefaultInstance() { + public static com.google.api.MonitoredResourceMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public MonitoredResourceMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MonitoredResourceMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MonitoredResourceMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MonitoredResourceMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public MonitoredResourceMetadata getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.MonitoredResourceMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadataOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadataOrBuilder.java index ee3aba3a..598f284e 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadataOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadataOrBuilder.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/monitored_resource.proto package com.google.api; -public interface MonitoredResourceMetadataOrBuilder extends +public interface MonitoredResourceMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.MonitoredResourceMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Values for predefined system metadata labels.
    * System labels are a kind of metadata extracted by Google, including
@@ -21,9 +39,13 @@ public interface MonitoredResourceMetadataOrBuilder extends
    * 
* * .google.protobuf.Struct system_labels = 1; + * + * @return Whether the systemLabels field is set. */ boolean hasSystemLabels(); /** + * + * *
    * Output only. Values for predefined system metadata labels.
    * System labels are a kind of metadata extracted by Google, including
@@ -37,9 +59,13 @@ public interface MonitoredResourceMetadataOrBuilder extends
    * 
* * .google.protobuf.Struct system_labels = 1; + * + * @return The systemLabels. */ com.google.protobuf.Struct getSystemLabels(); /** + * + * *
    * Output only. Values for predefined system metadata labels.
    * System labels are a kind of metadata extracted by Google, including
@@ -57,6 +83,8 @@ public interface MonitoredResourceMetadataOrBuilder extends
   com.google.protobuf.StructOrBuilder getSystemLabelsOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. A map of user-defined metadata labels.
    * 
@@ -65,48 +93,46 @@ public interface MonitoredResourceMetadataOrBuilder extends */ int getUserLabelsCount(); /** + * + * *
    * Output only. A map of user-defined metadata labels.
    * 
* * map<string, string> user_labels = 2; */ - boolean containsUserLabels( - String key); - /** - * Use {@link #getUserLabelsMap()} instead. - */ - @Deprecated - java.util.Map - getUserLabels(); + boolean containsUserLabels(java.lang.String key); + /** Use {@link #getUserLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getUserLabels(); /** + * + * *
    * Output only. A map of user-defined metadata labels.
    * 
* * map<string, string> user_labels = 2; */ - java.util.Map - getUserLabelsMap(); + java.util.Map getUserLabelsMap(); /** + * + * *
    * Output only. A map of user-defined metadata labels.
    * 
* * map<string, string> user_labels = 2; */ - - String getUserLabelsOrDefault( - String key, - String defaultValue); + java.lang.String getUserLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); /** + * + * *
    * Output only. A map of user-defined metadata labels.
    * 
* * map<string, string> user_labels = 2; */ - - String getUserLabelsOrThrow( - String key); + java.lang.String getUserLabelsOrThrow(java.lang.String key); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceOrBuilder.java index c293e973..c7edc4ea 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceOrBuilder.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/monitored_resource.proto package com.google.api; -public interface MonitoredResourceOrBuilder extends +public interface MonitoredResourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.MonitoredResource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The monitored resource type. This field must match
    * the `type` field of a [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object. For
@@ -15,9 +33,13 @@ public interface MonitoredResourceOrBuilder extends
    * 
* * string type = 1; + * + * @return The type. */ - String getType(); + java.lang.String getType(); /** + * + * *
    * Required. The monitored resource type. This field must match
    * the `type` field of a [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object. For
@@ -25,11 +47,14 @@ public interface MonitoredResourceOrBuilder extends
    * 
* * string type = 1; + * + * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); /** + * + * *
    * Required. Values for all of the labels listed in the associated monitored
    * resource descriptor. For example, Compute Engine VM instances use the
@@ -40,6 +65,8 @@ public interface MonitoredResourceOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Required. Values for all of the labels listed in the associated monitored
    * resource descriptor. For example, Compute Engine VM instances use the
@@ -48,15 +75,13 @@ public interface MonitoredResourceOrBuilder extends
    *
    * map<string, string> labels = 2;
    */
-  boolean containsLabels(
-      String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
-  @Deprecated
-  java.util.Map
-  getLabels();
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
+  @java.lang.Deprecated
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Required. Values for all of the labels listed in the associated monitored
    * resource descriptor. For example, Compute Engine VM instances use the
@@ -65,9 +90,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 2;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Required. Values for all of the labels listed in the associated monitored
    * resource descriptor. For example, Compute Engine VM instances use the
@@ -76,11 +102,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 2;
    */
-
-  String getLabelsOrDefault(
-      String key,
-      String defaultValue);
+  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Required. Values for all of the labels listed in the associated monitored
    * resource descriptor. For example, Compute Engine VM instances use the
@@ -89,7 +114,5 @@ String getLabelsOrDefault(
    *
    * map<string, string> labels = 2;
    */
-
-  String getLabelsOrThrow(
-      String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 }
diff --git a/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceProto.java b/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceProto.java
index eb07b586..4d4a2321 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceProto.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceProto.java
@@ -1,3 +1,18 @@
+/*
+ * 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/monitored_resource.proto
 
@@ -5,118 +20,114 @@
 
 public final class MonitoredResourceProto {
   private MonitoredResourceProto() {}
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistryLite registry) {
-  }
 
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions(
-        (com.google.protobuf.ExtensionRegistryLite) registry);
+  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_MonitoredResourceDescriptor_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_MonitoredResourceDescriptor_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_MonitoredResourceDescriptor_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_api_MonitoredResource_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_MonitoredResource_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_MonitoredResource_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_api_MonitoredResource_LabelsEntry_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_MonitoredResource_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_MonitoredResource_LabelsEntry_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_api_MonitoredResourceMetadata_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_MonitoredResourceMetadata_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_MonitoredResourceMetadata_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_api_MonitoredResourceMetadata_UserLabelsEntry_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_MonitoredResourceMetadata_UserLabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_MonitoredResourceMetadata_UserLabelsEntry_fieldAccessorTable;
 
-  public static com.google.protobuf.Descriptors.FileDescriptor
-      getDescriptor() {
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     return descriptor;
   }
-  private static  com.google.protobuf.Descriptors.FileDescriptor
-      descriptor;
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
   static {
-    String[] descriptorData = {
-      "\n#google/api/monitored_resource.proto\022\ng" +
-      "oogle.api\032\026google/api/label.proto\032\035googl" +
-      "e/api/launch_stage.proto\032\034google/protobu" +
-      "f/struct.proto\"\300\001\n\033MonitoredResourceDesc" +
-      "riptor\022\014\n\004name\030\005 \001(\t\022\014\n\004type\030\001 \001(\t\022\024\n\014di" +
-      "splay_name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022+\n" +
-      "\006labels\030\004 \003(\0132\033.google.api.LabelDescript" +
-      "or\022-\n\014launch_stage\030\007 \001(\0162\027.google.api.La" +
-      "unchStage\"\213\001\n\021MonitoredResource\022\014\n\004type\030" +
-      "\001 \001(\t\0229\n\006labels\030\002 \003(\0132).google.api.Monit" +
-      "oredResource.LabelsEntry\032-\n\013LabelsEntry\022" +
-      "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\312\001\n\031Moni" +
-      "toredResourceMetadata\022.\n\rsystem_labels\030\001" +
-      " \001(\0132\027.google.protobuf.Struct\022J\n\013user_la" +
-      "bels\030\002 \003(\01325.google.api.MonitoredResourc" +
-      "eMetadata.UserLabelsEntry\0321\n\017UserLabelsE" +
-      "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001By\n\016" +
-      "com.google.apiB\026MonitoredResourceProtoP\001" +
-      "ZCgoogle.golang.org/genproto/googleapis/" +
-      "api/monitoredres;monitoredres\370\001\001\242\002\004GAPIb" +
-      "\006proto3"
+    java.lang.String[] descriptorData = {
+      "\n#google/api/monitored_resource.proto\022\ng"
+          + "oogle.api\032\026google/api/label.proto\032\035googl"
+          + "e/api/launch_stage.proto\032\034google/protobu"
+          + "f/struct.proto\"\300\001\n\033MonitoredResourceDesc"
+          + "riptor\022\014\n\004name\030\005 \001(\t\022\014\n\004type\030\001 \001(\t\022\024\n\014di"
+          + "splay_name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022+\n"
+          + "\006labels\030\004 \003(\0132\033.google.api.LabelDescript"
+          + "or\022-\n\014launch_stage\030\007 \001(\0162\027.google.api.La"
+          + "unchStage\"\213\001\n\021MonitoredResource\022\014\n\004type\030"
+          + "\001 \001(\t\0229\n\006labels\030\002 \003(\0132).google.api.Monit"
+          + "oredResource.LabelsEntry\032-\n\013LabelsEntry\022"
+          + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\312\001\n\031Moni"
+          + "toredResourceMetadata\022.\n\rsystem_labels\030\001"
+          + " \001(\0132\027.google.protobuf.Struct\022J\n\013user_la"
+          + "bels\030\002 \003(\01325.google.api.MonitoredResourc"
+          + "eMetadata.UserLabelsEntry\0321\n\017UserLabelsE"
+          + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001By\n\016"
+          + "com.google.apiB\026MonitoredResourceProtoP\001"
+          + "ZCgoogle.golang.org/genproto/googleapis/"
+          + "api/monitoredres;monitoredres\370\001\001\242\002\004GAPIb"
+          + "\006proto3"
     };
-    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
-        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
-          public com.google.protobuf.ExtensionRegistry assignDescriptors(
-              com.google.protobuf.Descriptors.FileDescriptor root) {
-            descriptor = root;
-            return null;
-          }
-        };
-    com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-          LabelProto.getDescriptor(),
-          LaunchStageProto.getDescriptor(),
-          com.google.protobuf.StructProto.getDescriptor(),
-        }, assigner);
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.LabelProto.getDescriptor(),
+              com.google.api.LaunchStageProto.getDescriptor(),
+              com.google.protobuf.StructProto.getDescriptor(),
+            });
     internal_static_google_api_MonitoredResourceDescriptor_descriptor =
-      getDescriptor().getMessageTypes().get(0);
-    internal_static_google_api_MonitoredResourceDescriptor_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_MonitoredResourceDescriptor_descriptor,
-        new String[] { "Name", "Type", "DisplayName", "Description", "Labels", "LaunchStage", });
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_api_MonitoredResourceDescriptor_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_MonitoredResourceDescriptor_descriptor,
+            new java.lang.String[] {
+              "Name", "Type", "DisplayName", "Description", "Labels", "LaunchStage",
+            });
     internal_static_google_api_MonitoredResource_descriptor =
-      getDescriptor().getMessageTypes().get(1);
-    internal_static_google_api_MonitoredResource_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_MonitoredResource_descriptor,
-        new String[] { "Type", "Labels", });
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_api_MonitoredResource_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_MonitoredResource_descriptor,
+            new java.lang.String[] {
+              "Type", "Labels",
+            });
     internal_static_google_api_MonitoredResource_LabelsEntry_descriptor =
-      internal_static_google_api_MonitoredResource_descriptor.getNestedTypes().get(0);
-    internal_static_google_api_MonitoredResource_LabelsEntry_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_MonitoredResource_LabelsEntry_descriptor,
-        new String[] { "Key", "Value", });
+        internal_static_google_api_MonitoredResource_descriptor.getNestedTypes().get(0);
+    internal_static_google_api_MonitoredResource_LabelsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_MonitoredResource_LabelsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
     internal_static_google_api_MonitoredResourceMetadata_descriptor =
-      getDescriptor().getMessageTypes().get(2);
-    internal_static_google_api_MonitoredResourceMetadata_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_MonitoredResourceMetadata_descriptor,
-        new String[] { "SystemLabels", "UserLabels", });
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_api_MonitoredResourceMetadata_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_MonitoredResourceMetadata_descriptor,
+            new java.lang.String[] {
+              "SystemLabels", "UserLabels",
+            });
     internal_static_google_api_MonitoredResourceMetadata_UserLabelsEntry_descriptor =
-      internal_static_google_api_MonitoredResourceMetadata_descriptor.getNestedTypes().get(0);
-    internal_static_google_api_MonitoredResourceMetadata_UserLabelsEntry_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_MonitoredResourceMetadata_UserLabelsEntry_descriptor,
-        new String[] { "Key", "Value", });
-    LabelProto.getDescriptor();
-    LaunchStageProto.getDescriptor();
+        internal_static_google_api_MonitoredResourceMetadata_descriptor.getNestedTypes().get(0);
+    internal_static_google_api_MonitoredResourceMetadata_UserLabelsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_MonitoredResourceMetadata_UserLabelsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    com.google.api.LabelProto.getDescriptor();
+    com.google.api.LaunchStageProto.getDescriptor();
     com.google.protobuf.StructProto.getDescriptor();
   }
 
diff --git a/proto-google-common-protos/src/main/java/com/google/api/Monitoring.java b/proto-google-common-protos/src/main/java/com/google/api/Monitoring.java
index 96cd7430..b36cb3c0 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/Monitoring.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/Monitoring.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/monitoring.proto
 
 package com.google.api;
 
 /**
+ *
+ *
  * 
  * Monitoring configuration of the service.
  * The example below shows how to configure monitored resources and metrics
@@ -44,32 +61,39 @@
  *
  * Protobuf type {@code google.api.Monitoring}
  */
-public  final class Monitoring extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Monitoring extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.Monitoring)
     MonitoringOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Monitoring.newBuilder() to construct.
   private Monitoring(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Monitoring() {
     producerDestinations_ = java.util.Collections.emptyList();
     consumerDestinations_ = java.util.Collections.emptyList();
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new Monitoring();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Monitoring(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -82,38 +106,43 @@ private Monitoring(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              producerDestinations_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                producerDestinations_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              producerDestinations_.add(
+                  input.readMessage(
+                      com.google.api.Monitoring.MonitoringDestination.parser(), extensionRegistry));
+              break;
             }
-            producerDestinations_.add(
-                input.readMessage(MonitoringDestination.parser(), extensionRegistry));
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              consumerDestinations_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                consumerDestinations_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              consumerDestinations_.add(
+                  input.readMessage(
+                      com.google.api.Monitoring.MonitoringDestination.parser(), extensionRegistry));
+              break;
             }
-            consumerDestinations_.add(
-                input.readMessage(MonitoringDestination.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         producerDestinations_ = java.util.Collections.unmodifiableList(producerDestinations_);
@@ -125,83 +154,109 @@ private Monitoring(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.MonitoringProto.internal_static_google_api_Monitoring_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return com.google.api.MonitoringProto.internal_static_google_api_Monitoring_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            Monitoring.class, Builder.class);
+            com.google.api.Monitoring.class, com.google.api.Monitoring.Builder.class);
   }
 
-  public interface MonitoringDestinationOrBuilder extends
+  public interface MonitoringDestinationOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.api.Monitoring.MonitoringDestination)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The monitored resource type. The type must be defined in
      * [Service.monitored_resources][google.api.Service.monitored_resources] section.
      * 
* * string monitored_resource = 1; + * + * @return The monitoredResource. */ - String getMonitoredResource(); + java.lang.String getMonitoredResource(); /** + * + * *
      * The monitored resource type. The type must be defined in
      * [Service.monitored_resources][google.api.Service.monitored_resources] section.
      * 
* * string monitored_resource = 1; + * + * @return The bytes for monitoredResource. */ - com.google.protobuf.ByteString - getMonitoredResourceBytes(); + com.google.protobuf.ByteString getMonitoredResourceBytes(); /** + * + * *
      * Types of the metrics to report to this monitoring destination.
      * Each type must be defined in [Service.metrics][google.api.Service.metrics] section.
      * 
* * repeated string metrics = 2; + * + * @return A list containing the metrics. */ - java.util.List - getMetricsList(); + java.util.List getMetricsList(); /** + * + * *
      * Types of the metrics to report to this monitoring destination.
      * Each type must be defined in [Service.metrics][google.api.Service.metrics] section.
      * 
* * repeated string metrics = 2; + * + * @return The count of metrics. */ int getMetricsCount(); /** + * + * *
      * Types of the metrics to report to this monitoring destination.
      * Each type must be defined in [Service.metrics][google.api.Service.metrics] section.
      * 
* * repeated string metrics = 2; + * + * @param index The index of the element to return. + * @return The metrics at the given index. */ - String getMetrics(int index); + java.lang.String getMetrics(int index); /** + * + * *
      * Types of the metrics to report to this monitoring destination.
      * Each type must be defined in [Service.metrics][google.api.Service.metrics] section.
      * 
* * repeated string metrics = 2; + * + * @param index The index of the value to return. + * @return The bytes of the metrics at the given index. */ - com.google.protobuf.ByteString - getMetricsBytes(int index); + com.google.protobuf.ByteString getMetricsBytes(int index); } /** + * + * *
    * Configuration of a specific monitoring destination (the producer project
    * or the consumer project).
@@ -209,32 +264,39 @@ public interface MonitoringDestinationOrBuilder extends
    *
    * Protobuf type {@code google.api.Monitoring.MonitoringDestination}
    */
-  public  static final class MonitoringDestination extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class MonitoringDestination extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.api.Monitoring.MonitoringDestination)
       MonitoringDestinationOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use MonitoringDestination.newBuilder() to construct.
     private MonitoringDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private MonitoringDestination() {
       monitoredResource_ = "";
       metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     }
 
-    @Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    @java.lang.Override
+    @SuppressWarnings({"unused"})
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+      return new MonitoringDestination();
+    }
+
+    @java.lang.Override
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private MonitoringDestination(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       this();
       if (extensionRegistry == null) {
-        throw new NullPointerException();
+        throw new java.lang.NullPointerException();
       }
       int mutable_bitField0_ = 0;
       com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -247,94 +309,102 @@ private MonitoringDestination(
             case 0:
               done = true;
               break;
-            case 10: {
-              String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              monitoredResource_ = s;
-              break;
-            }
-            case 18: {
-              String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                metrics_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000002;
+                monitoredResource_ = s;
+                break;
               }
-              metrics_.add(s);
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                  metrics_ = new com.google.protobuf.LazyStringArrayList();
+                  mutable_bitField0_ |= 0x00000001;
+                }
+                metrics_.add(s);
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
-        if (((mutable_bitField0_ & 0x00000002) != 0)) {
+        if (((mutable_bitField0_ & 0x00000001) != 0)) {
           metrics_ = metrics_.getUnmodifiableView();
         }
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.api.MonitoringProto.internal_static_google_api_Monitoring_MonitoringDestination_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.api.MonitoringProto
+          .internal_static_google_api_Monitoring_MonitoringDestination_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.api.MonitoringProto.internal_static_google_api_Monitoring_MonitoringDestination_fieldAccessorTable
+      return com.google.api.MonitoringProto
+          .internal_static_google_api_Monitoring_MonitoringDestination_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              MonitoringDestination.class, Builder.class);
+              com.google.api.Monitoring.MonitoringDestination.class,
+              com.google.api.Monitoring.MonitoringDestination.Builder.class);
     }
 
-    private int bitField0_;
     public static final int MONITORED_RESOURCE_FIELD_NUMBER = 1;
-    private volatile Object monitoredResource_;
+    private volatile java.lang.Object monitoredResource_;
     /**
+     *
+     *
      * 
      * The monitored resource type. The type must be defined in
      * [Service.monitored_resources][google.api.Service.monitored_resources] section.
      * 
* * string monitored_resource = 1; + * + * @return The monitoredResource. */ - public String getMonitoredResource() { - Object ref = monitoredResource_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getMonitoredResource() { + java.lang.Object ref = monitoredResource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); monitoredResource_ = s; return s; } } /** + * + * *
      * The monitored resource type. The type must be defined in
      * [Service.monitored_resources][google.api.Service.monitored_resources] section.
      * 
* * string monitored_resource = 1; + * + * @return The bytes for monitoredResource. */ - public com.google.protobuf.ByteString - getMonitoredResourceBytes() { - Object ref = monitoredResource_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getMonitoredResourceBytes() { + java.lang.Object ref = monitoredResource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); monitoredResource_ = b; return b; } else { @@ -345,54 +415,71 @@ public String getMonitoredResource() { public static final int METRICS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList metrics_; /** + * + * *
      * Types of the metrics to report to this monitoring destination.
      * Each type must be defined in [Service.metrics][google.api.Service.metrics] section.
      * 
* * repeated string metrics = 2; + * + * @return A list containing the metrics. */ - public com.google.protobuf.ProtocolStringList - getMetricsList() { + public com.google.protobuf.ProtocolStringList getMetricsList() { return metrics_; } /** + * + * *
      * Types of the metrics to report to this monitoring destination.
      * Each type must be defined in [Service.metrics][google.api.Service.metrics] section.
      * 
* * repeated string metrics = 2; + * + * @return The count of metrics. */ public int getMetricsCount() { return metrics_.size(); } /** + * + * *
      * Types of the metrics to report to this monitoring destination.
      * Each type must be defined in [Service.metrics][google.api.Service.metrics] section.
      * 
* * repeated string metrics = 2; + * + * @param index The index of the element to return. + * @return The metrics at the given index. */ - public String getMetrics(int index) { + public java.lang.String getMetrics(int index) { return metrics_.get(index); } /** + * + * *
      * Types of the metrics to report to this monitoring destination.
      * Each type must be defined in [Service.metrics][google.api.Service.metrics] section.
      * 
* * repeated string metrics = 2; + * + * @param index The index of the value to return. + * @return The bytes of the metrics at the given index. */ - public com.google.protobuf.ByteString - getMetricsBytes(int index) { + public com.google.protobuf.ByteString getMetricsBytes(int index) { return metrics_.getByteString(index); } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -402,9 +489,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getMonitoredResourceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, monitoredResource_); } @@ -414,7 +500,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -436,25 +522,24 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof MonitoringDestination)) { + if (!(obj instanceof com.google.api.Monitoring.MonitoringDestination)) { return super.equals(obj); } - MonitoringDestination other = (MonitoringDestination) obj; + com.google.api.Monitoring.MonitoringDestination other = + (com.google.api.Monitoring.MonitoringDestination) obj; - if (!getMonitoredResource() - .equals(other.getMonitoredResource())) return false; - if (!getMetricsList() - .equals(other.getMetricsList())) return false; + if (!getMonitoredResource().equals(other.getMonitoredResource())) return false; + if (!getMetricsList().equals(other.getMetricsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -472,97 +557,105 @@ public int hashCode() { return hash; } - public static MonitoringDestination parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.api.Monitoring.MonitoringDestination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static MonitoringDestination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Monitoring.MonitoringDestination parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static MonitoringDestination parseFrom( + + public static com.google.api.Monitoring.MonitoringDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static MonitoringDestination parseFrom( + + public static com.google.api.Monitoring.MonitoringDestination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static MonitoringDestination parseFrom(byte[] data) + + public static com.google.api.Monitoring.MonitoringDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static MonitoringDestination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Monitoring.MonitoringDestination parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static MonitoringDestination parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.api.Monitoring.MonitoringDestination parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static MonitoringDestination parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Monitoring.MonitoringDestination parseFrom( + 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 MonitoringDestination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.api.Monitoring.MonitoringDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static MonitoringDestination parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Monitoring.MonitoringDestination parseDelimitedFrom( + 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 MonitoringDestination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.api.Monitoring.MonitoringDestination parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static MonitoringDestination parseFrom( + + public static com.google.api.Monitoring.MonitoringDestination 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(MonitoringDestination prototype) { + + public static Builder newBuilder(com.google.api.Monitoring.MonitoringDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
      * Configuration of a specific monitoring destination (the producer project
      * or the consumer project).
@@ -570,21 +663,24 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.api.Monitoring.MonitoringDestination}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.api.Monitoring.MonitoringDestination)
-        MonitoringDestinationOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.api.MonitoringProto.internal_static_google_api_Monitoring_MonitoringDestination_descriptor;
+        com.google.api.Monitoring.MonitoringDestinationOrBuilder {
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.api.MonitoringProto
+            .internal_static_google_api_Monitoring_MonitoringDestination_descriptor;
       }
 
-      @Override
-      protected FieldAccessorTable
+      @java.lang.Override
+      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.api.MonitoringProto.internal_static_google_api_Monitoring_MonitoringDestination_fieldAccessorTable
+        return com.google.api.MonitoringProto
+            .internal_static_google_api_Monitoring_MonitoringDestination_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                MonitoringDestination.class, Builder.class);
+                com.google.api.Monitoring.MonitoringDestination.class,
+                com.google.api.Monitoring.MonitoringDestination.Builder.class);
       }
 
       // Construct using com.google.api.Monitoring.MonitoringDestination.newBuilder()
@@ -592,106 +688,108 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
-      @Override
+
+      @java.lang.Override
       public Builder clear() {
         super.clear();
         monitoredResource_ = "";
 
         metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-        bitField0_ = (bitField0_ & ~0x00000002);
+        bitField0_ = (bitField0_ & ~0x00000001);
         return this;
       }
 
-      @Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.api.MonitoringProto.internal_static_google_api_Monitoring_MonitoringDestination_descriptor;
+      @java.lang.Override
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.api.MonitoringProto
+            .internal_static_google_api_Monitoring_MonitoringDestination_descriptor;
       }
 
-      @Override
-      public MonitoringDestination getDefaultInstanceForType() {
-        return MonitoringDestination.getDefaultInstance();
+      @java.lang.Override
+      public com.google.api.Monitoring.MonitoringDestination getDefaultInstanceForType() {
+        return com.google.api.Monitoring.MonitoringDestination.getDefaultInstance();
       }
 
-      @Override
-      public MonitoringDestination build() {
-        MonitoringDestination result = buildPartial();
+      @java.lang.Override
+      public com.google.api.Monitoring.MonitoringDestination build() {
+        com.google.api.Monitoring.MonitoringDestination result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
         return result;
       }
 
-      @Override
-      public MonitoringDestination buildPartial() {
-        MonitoringDestination result = new MonitoringDestination(this);
+      @java.lang.Override
+      public com.google.api.Monitoring.MonitoringDestination buildPartial() {
+        com.google.api.Monitoring.MonitoringDestination result =
+            new com.google.api.Monitoring.MonitoringDestination(this);
         int from_bitField0_ = bitField0_;
-        int to_bitField0_ = 0;
         result.monitoredResource_ = monitoredResource_;
-        if (((bitField0_ & 0x00000002) != 0)) {
+        if (((bitField0_ & 0x00000001) != 0)) {
           metrics_ = metrics_.getUnmodifiableView();
-          bitField0_ = (bitField0_ & ~0x00000002);
+          bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.metrics_ = metrics_;
-        result.bitField0_ = to_bitField0_;
         onBuilt();
         return result;
       }
 
-      @Override
+      @java.lang.Override
       public Builder clone() {
         return super.clone();
       }
-      @Override
+
+      @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
-      @Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+      @java.lang.Override
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-      @Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+      @java.lang.Override
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-      @Override
+
+      @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-      @Override
+
+      @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-      @Override
+
+      @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof MonitoringDestination) {
-          return mergeFrom((MonitoringDestination)other);
+        if (other instanceof com.google.api.Monitoring.MonitoringDestination) {
+          return mergeFrom((com.google.api.Monitoring.MonitoringDestination) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(MonitoringDestination other) {
-        if (other == MonitoringDestination.getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.api.Monitoring.MonitoringDestination other) {
+        if (other == com.google.api.Monitoring.MonitoringDestination.getDefaultInstance())
+          return this;
         if (!other.getMonitoredResource().isEmpty()) {
           monitoredResource_ = other.monitoredResource_;
           onChanged();
@@ -699,7 +797,7 @@ public Builder mergeFrom(MonitoringDestination other) {
         if (!other.metrics_.isEmpty()) {
           if (metrics_.isEmpty()) {
             metrics_ = other.metrics_;
-            bitField0_ = (bitField0_ & ~0x00000002);
+            bitField0_ = (bitField0_ & ~0x00000001);
           } else {
             ensureMetricsIsMutable();
             metrics_.addAll(other.metrics_);
@@ -711,21 +809,22 @@ public Builder mergeFrom(MonitoringDestination other) {
         return this;
       }
 
-      @Override
+      @java.lang.Override
       public final boolean isInitialized() {
         return true;
       }
 
-      @Override
+      @java.lang.Override
       public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        MonitoringDestination parsedMessage = null;
+        com.google.api.Monitoring.MonitoringDestination parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (MonitoringDestination) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.api.Monitoring.MonitoringDestination) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -734,44 +833,50 @@ public Builder mergeFrom(
         }
         return this;
       }
+
       private int bitField0_;
 
-      private Object monitoredResource_ = "";
+      private java.lang.Object monitoredResource_ = "";
       /**
+       *
+       *
        * 
        * The monitored resource type. The type must be defined in
        * [Service.monitored_resources][google.api.Service.monitored_resources] section.
        * 
* * string monitored_resource = 1; + * + * @return The monitoredResource. */ - public String getMonitoredResource() { - Object ref = monitoredResource_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getMonitoredResource() { + java.lang.Object ref = monitoredResource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); monitoredResource_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
        * The monitored resource type. The type must be defined in
        * [Service.monitored_resources][google.api.Service.monitored_resources] section.
        * 
* * string monitored_resource = 1; + * + * @return The bytes for monitoredResource. */ - public com.google.protobuf.ByteString - getMonitoredResourceBytes() { - Object ref = monitoredResource_; + public com.google.protobuf.ByteString getMonitoredResourceBytes() { + java.lang.Object ref = monitoredResource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); monitoredResource_ = b; return b; } else { @@ -779,251 +884,303 @@ public String getMonitoredResource() { } } /** + * + * *
        * The monitored resource type. The type must be defined in
        * [Service.monitored_resources][google.api.Service.monitored_resources] section.
        * 
* * string monitored_resource = 1; + * + * @param value The monitoredResource to set. + * @return This builder for chaining. */ - public Builder setMonitoredResource( - String value) { + public Builder setMonitoredResource(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + monitoredResource_ = value; onChanged(); return this; } /** + * + * *
        * The monitored resource type. The type must be defined in
        * [Service.monitored_resources][google.api.Service.monitored_resources] section.
        * 
* * string monitored_resource = 1; + * + * @return This builder for chaining. */ public Builder clearMonitoredResource() { - + monitoredResource_ = getDefaultInstance().getMonitoredResource(); onChanged(); return this; } /** + * + * *
        * The monitored resource type. The type must be defined in
        * [Service.monitored_resources][google.api.Service.monitored_resources] section.
        * 
* * string monitored_resource = 1; + * + * @param value The bytes for monitoredResource to set. + * @return This builder for chaining. */ - public Builder setMonitoredResourceBytes( - com.google.protobuf.ByteString value) { + public Builder setMonitoredResourceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + monitoredResource_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList metrics_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureMetricsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { metrics_ = new com.google.protobuf.LazyStringArrayList(metrics_); - bitField0_ |= 0x00000002; - } + bitField0_ |= 0x00000001; + } } /** + * + * *
        * Types of the metrics to report to this monitoring destination.
        * Each type must be defined in [Service.metrics][google.api.Service.metrics] section.
        * 
* * repeated string metrics = 2; + * + * @return A list containing the metrics. */ - public com.google.protobuf.ProtocolStringList - getMetricsList() { + public com.google.protobuf.ProtocolStringList getMetricsList() { return metrics_.getUnmodifiableView(); } /** + * + * *
        * Types of the metrics to report to this monitoring destination.
        * Each type must be defined in [Service.metrics][google.api.Service.metrics] section.
        * 
* * repeated string metrics = 2; + * + * @return The count of metrics. */ public int getMetricsCount() { return metrics_.size(); } /** + * + * *
        * Types of the metrics to report to this monitoring destination.
        * Each type must be defined in [Service.metrics][google.api.Service.metrics] section.
        * 
* * repeated string metrics = 2; + * + * @param index The index of the element to return. + * @return The metrics at the given index. */ - public String getMetrics(int index) { + public java.lang.String getMetrics(int index) { return metrics_.get(index); } /** + * + * *
        * Types of the metrics to report to this monitoring destination.
        * Each type must be defined in [Service.metrics][google.api.Service.metrics] section.
        * 
* * repeated string metrics = 2; + * + * @param index The index of the value to return. + * @return The bytes of the metrics at the given index. */ - public com.google.protobuf.ByteString - getMetricsBytes(int index) { + public com.google.protobuf.ByteString getMetricsBytes(int index) { return metrics_.getByteString(index); } /** + * + * *
        * Types of the metrics to report to this monitoring destination.
        * Each type must be defined in [Service.metrics][google.api.Service.metrics] section.
        * 
* * repeated string metrics = 2; + * + * @param index The index to set the value at. + * @param value The metrics to set. + * @return This builder for chaining. */ - public Builder setMetrics( - int index, String value) { + public Builder setMetrics(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); + throw new NullPointerException(); + } + ensureMetricsIsMutable(); metrics_.set(index, value); onChanged(); return this; } /** + * + * *
        * Types of the metrics to report to this monitoring destination.
        * Each type must be defined in [Service.metrics][google.api.Service.metrics] section.
        * 
* * repeated string metrics = 2; + * + * @param value The metrics to add. + * @return This builder for chaining. */ - public Builder addMetrics( - String value) { + public Builder addMetrics(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); + throw new NullPointerException(); + } + ensureMetricsIsMutable(); metrics_.add(value); onChanged(); return this; } /** + * + * *
        * Types of the metrics to report to this monitoring destination.
        * Each type must be defined in [Service.metrics][google.api.Service.metrics] section.
        * 
* * repeated string metrics = 2; + * + * @param values The metrics to add. + * @return This builder for chaining. */ - public Builder addAllMetrics( - Iterable values) { + public Builder addAllMetrics(java.lang.Iterable values) { ensureMetricsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, metrics_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); onChanged(); return this; } /** + * + * *
        * Types of the metrics to report to this monitoring destination.
        * Each type must be defined in [Service.metrics][google.api.Service.metrics] section.
        * 
* * repeated string metrics = 2; + * + * @return This builder for chaining. */ public Builder clearMetrics() { metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** + * + * *
        * Types of the metrics to report to this monitoring destination.
        * Each type must be defined in [Service.metrics][google.api.Service.metrics] section.
        * 
* * repeated string metrics = 2; + * + * @param value The bytes of the metrics to add. + * @return This builder for chaining. */ - public Builder addMetricsBytes( - com.google.protobuf.ByteString value) { + public Builder addMetricsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureMetricsIsMutable(); metrics_.add(value); onChanged(); return this; } - @Override + + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.Monitoring.MonitoringDestination) } // @@protoc_insertion_point(class_scope:google.api.Monitoring.MonitoringDestination) - private static final MonitoringDestination DEFAULT_INSTANCE; + private static final com.google.api.Monitoring.MonitoringDestination DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new MonitoringDestination(); + DEFAULT_INSTANCE = new com.google.api.Monitoring.MonitoringDestination(); } - public static MonitoringDestination getDefaultInstance() { + public static com.google.api.Monitoring.MonitoringDestination getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public MonitoringDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MonitoringDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MonitoringDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MonitoringDestination(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public MonitoringDestination getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.Monitoring.MonitoringDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int PRODUCER_DESTINATIONS_FIELD_NUMBER = 1; - private java.util.List producerDestinations_; + private java.util.List producerDestinations_; /** + * + * *
    * Monitoring configurations for sending metrics to the producer project.
    * There can be multiple producer destinations. A monitored resouce type may
@@ -1035,10 +1192,13 @@ public MonitoringDestination getDefaultInstanceForType() {
    *
    * repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;
    */
-  public java.util.List getProducerDestinationsList() {
+  public java.util.List
+      getProducerDestinationsList() {
     return producerDestinations_;
   }
   /**
+   *
+   *
    * 
    * Monitoring configurations for sending metrics to the producer project.
    * There can be multiple producer destinations. A monitored resouce type may
@@ -1050,11 +1210,13 @@ public java.util.List getProducerDestinationsList() {
    *
    * repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;
    */
-  public java.util.List
+  public java.util.List
       getProducerDestinationsOrBuilderList() {
     return producerDestinations_;
   }
   /**
+   *
+   *
    * 
    * Monitoring configurations for sending metrics to the producer project.
    * There can be multiple producer destinations. A monitored resouce type may
@@ -1070,6 +1232,8 @@ public int getProducerDestinationsCount() {
     return producerDestinations_.size();
   }
   /**
+   *
+   *
    * 
    * Monitoring configurations for sending metrics to the producer project.
    * There can be multiple producer destinations. A monitored resouce type may
@@ -1081,10 +1245,12 @@ public int getProducerDestinationsCount() {
    *
    * repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;
    */
-  public MonitoringDestination getProducerDestinations(int index) {
+  public com.google.api.Monitoring.MonitoringDestination getProducerDestinations(int index) {
     return producerDestinations_.get(index);
   }
   /**
+   *
+   *
    * 
    * Monitoring configurations for sending metrics to the producer project.
    * There can be multiple producer destinations. A monitored resouce type may
@@ -1096,14 +1262,16 @@ public MonitoringDestination getProducerDestinations(int index) {
    *
    * repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;
    */
-  public MonitoringDestinationOrBuilder getProducerDestinationsOrBuilder(
+  public com.google.api.Monitoring.MonitoringDestinationOrBuilder getProducerDestinationsOrBuilder(
       int index) {
     return producerDestinations_.get(index);
   }
 
   public static final int CONSUMER_DESTINATIONS_FIELD_NUMBER = 2;
-  private java.util.List consumerDestinations_;
+  private java.util.List consumerDestinations_;
   /**
+   *
+   *
    * 
    * Monitoring configurations for sending metrics to the consumer project.
    * There can be multiple consumer destinations. A monitored resouce type may
@@ -1115,10 +1283,13 @@ public MonitoringDestinationOrBuilder getProducerDestinationsOrBuilder(
    *
    * repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
    */
-  public java.util.List getConsumerDestinationsList() {
+  public java.util.List
+      getConsumerDestinationsList() {
     return consumerDestinations_;
   }
   /**
+   *
+   *
    * 
    * Monitoring configurations for sending metrics to the consumer project.
    * There can be multiple consumer destinations. A monitored resouce type may
@@ -1130,11 +1301,13 @@ public java.util.List getConsumerDestinationsList() {
    *
    * repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
    */
-  public java.util.List
+  public java.util.List
       getConsumerDestinationsOrBuilderList() {
     return consumerDestinations_;
   }
   /**
+   *
+   *
    * 
    * Monitoring configurations for sending metrics to the consumer project.
    * There can be multiple consumer destinations. A monitored resouce type may
@@ -1150,6 +1323,8 @@ public int getConsumerDestinationsCount() {
     return consumerDestinations_.size();
   }
   /**
+   *
+   *
    * 
    * Monitoring configurations for sending metrics to the consumer project.
    * There can be multiple consumer destinations. A monitored resouce type may
@@ -1161,10 +1336,12 @@ public int getConsumerDestinationsCount() {
    *
    * repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
    */
-  public MonitoringDestination getConsumerDestinations(int index) {
+  public com.google.api.Monitoring.MonitoringDestination getConsumerDestinations(int index) {
     return consumerDestinations_.get(index);
   }
   /**
+   *
+   *
    * 
    * Monitoring configurations for sending metrics to the consumer project.
    * There can be multiple consumer destinations. A monitored resouce type may
@@ -1176,13 +1353,14 @@ public MonitoringDestination getConsumerDestinations(int index) {
    *
    * repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
    */
-  public MonitoringDestinationOrBuilder getConsumerDestinationsOrBuilder(
+  public com.google.api.Monitoring.MonitoringDestinationOrBuilder getConsumerDestinationsOrBuilder(
       int index) {
     return consumerDestinations_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-  @Override
+
+  @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
     if (isInitialized == 1) return true;
@@ -1192,9 +1370,8 @@ public final boolean isInitialized() {
     return true;
   }
 
-  @Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  @java.lang.Override
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < producerDestinations_.size(); i++) {
       output.writeMessage(1, producerDestinations_.get(i));
     }
@@ -1204,44 +1381,42 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     unknownFields.writeTo(output);
   }
 
-  @Override
+  @java.lang.Override
   public int getSerializedSize() {
     int size = memoizedSize;
     if (size != -1) return size;
 
     size = 0;
     for (int i = 0; i < producerDestinations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, producerDestinations_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(1, producerDestinations_.get(i));
     }
     for (int i = 0; i < consumerDestinations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, consumerDestinations_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(2, consumerDestinations_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
     return size;
   }
 
-  @Override
-  public boolean equals(final Object obj) {
+  @java.lang.Override
+  public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
-    if (!(obj instanceof Monitoring)) {
+    if (!(obj instanceof com.google.api.Monitoring)) {
       return super.equals(obj);
     }
-    Monitoring other = (Monitoring) obj;
+    com.google.api.Monitoring other = (com.google.api.Monitoring) obj;
 
-    if (!getProducerDestinationsList()
-        .equals(other.getProducerDestinationsList())) return false;
-    if (!getConsumerDestinationsList()
-        .equals(other.getConsumerDestinationsList())) return false;
+    if (!getProducerDestinationsList().equals(other.getProducerDestinationsList())) return false;
+    if (!getConsumerDestinationsList().equals(other.getConsumerDestinationsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
 
-  @Override
+  @java.lang.Override
   public int hashCode() {
     if (memoizedHashCode != 0) {
       return memoizedHashCode;
@@ -1261,97 +1436,103 @@ public int hashCode() {
     return hash;
   }
 
-  public static Monitoring parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.api.Monitoring parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Monitoring parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Monitoring parseFrom(
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Monitoring parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.api.Monitoring parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Monitoring parseFrom(
+
+  public static com.google.api.Monitoring parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Monitoring parseFrom(byte[] data)
+
+  public static com.google.api.Monitoring parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Monitoring parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Monitoring parseFrom(
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Monitoring parseFrom(java.io.InputStream input)
+
+  public static com.google.api.Monitoring 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 Monitoring parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Monitoring parseFrom(
+      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 Monitoring parseDelimitedFrom(java.io.InputStream input)
+
+  public static com.google.api.Monitoring 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 Monitoring parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Monitoring parseDelimitedFrom(
+      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 Monitoring parseFrom(
-      com.google.protobuf.CodedInputStream input)
+
+  public static com.google.api.Monitoring 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 Monitoring parseFrom(
+
+  public static com.google.api.Monitoring 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();
   }
 
-  @Override
-  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(Monitoring prototype) {
+
+  public static Builder newBuilder(com.google.api.Monitoring prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-  @Override
+
+  @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);
   }
 
-  @Override
-  protected Builder newBuilderForType(
-      BuilderParent parent) {
+  @java.lang.Override
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Monitoring configuration of the service.
    * The example below shows how to configure monitored resources and metrics
@@ -1392,21 +1573,20 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.Monitoring}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.Monitoring)
       com.google.api.MonitoringOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.api.MonitoringProto.internal_static_google_api_Monitoring_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return com.google.api.MonitoringProto.internal_static_google_api_Monitoring_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              Monitoring.class, Builder.class);
+              com.google.api.Monitoring.class, com.google.api.Monitoring.Builder.class);
     }
 
     // Construct using com.google.api.Monitoring.newBuilder()
@@ -1414,19 +1594,19 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getProducerDestinationsFieldBuilder();
         getConsumerDestinationsFieldBuilder();
       }
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       if (producerDestinationsBuilder_ == null) {
@@ -1444,29 +1624,28 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.api.MonitoringProto.internal_static_google_api_Monitoring_descriptor;
     }
 
-    @Override
-    public Monitoring getDefaultInstanceForType() {
-      return Monitoring.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.Monitoring getDefaultInstanceForType() {
+      return com.google.api.Monitoring.getDefaultInstance();
     }
 
-    @Override
-    public Monitoring build() {
-      Monitoring result = buildPartial();
+    @java.lang.Override
+    public com.google.api.Monitoring build() {
+      com.google.api.Monitoring result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public Monitoring buildPartial() {
-      Monitoring result = new Monitoring(this);
+    @java.lang.Override
+    public com.google.api.Monitoring buildPartial() {
+      com.google.api.Monitoring result = new com.google.api.Monitoring(this);
       int from_bitField0_ = bitField0_;
       if (producerDestinationsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -1490,50 +1669,51 @@ public Monitoring buildPartial() {
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof Monitoring) {
-        return mergeFrom((Monitoring)other);
+      if (other instanceof com.google.api.Monitoring) {
+        return mergeFrom((com.google.api.Monitoring) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(Monitoring other) {
-      if (other == Monitoring.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.Monitoring other) {
+      if (other == com.google.api.Monitoring.getDefaultInstance()) return this;
       if (producerDestinationsBuilder_ == null) {
         if (!other.producerDestinations_.isEmpty()) {
           if (producerDestinations_.isEmpty()) {
@@ -1552,9 +1732,10 @@ public Builder mergeFrom(Monitoring other) {
             producerDestinationsBuilder_ = null;
             producerDestinations_ = other.producerDestinations_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            producerDestinationsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getProducerDestinationsFieldBuilder() : null;
+            producerDestinationsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getProducerDestinationsFieldBuilder()
+                    : null;
           } else {
             producerDestinationsBuilder_.addAllMessages(other.producerDestinations_);
           }
@@ -1578,9 +1759,10 @@ public Builder mergeFrom(Monitoring other) {
             consumerDestinationsBuilder_ = null;
             consumerDestinations_ = other.consumerDestinations_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            consumerDestinationsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getConsumerDestinationsFieldBuilder() : null;
+            consumerDestinationsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getConsumerDestinationsFieldBuilder()
+                    : null;
           } else {
             consumerDestinationsBuilder_.addAllMessages(other.consumerDestinations_);
           }
@@ -1591,21 +1773,21 @@ public Builder mergeFrom(Monitoring other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      Monitoring parsedMessage = null;
+      com.google.api.Monitoring parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (Monitoring) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.Monitoring) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1614,21 +1796,30 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List producerDestinations_ =
-      java.util.Collections.emptyList();
+    private java.util.List producerDestinations_ =
+        java.util.Collections.emptyList();
+
     private void ensureProducerDestinationsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        producerDestinations_ = new java.util.ArrayList(producerDestinations_);
+        producerDestinations_ =
+            new java.util.ArrayList(
+                producerDestinations_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        MonitoringDestination, MonitoringDestination.Builder, MonitoringDestinationOrBuilder> producerDestinationsBuilder_;
+            com.google.api.Monitoring.MonitoringDestination,
+            com.google.api.Monitoring.MonitoringDestination.Builder,
+            com.google.api.Monitoring.MonitoringDestinationOrBuilder>
+        producerDestinationsBuilder_;
 
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the producer project.
      * There can be multiple producer destinations. A monitored resouce type may
@@ -1640,7 +1831,8 @@ private void ensureProducerDestinationsIsMutable() {
      *
      * repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;
      */
-    public java.util.List getProducerDestinationsList() {
+    public java.util.List
+        getProducerDestinationsList() {
       if (producerDestinationsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(producerDestinations_);
       } else {
@@ -1648,6 +1840,8 @@ public java.util.List getProducerDestinationsList() {
       }
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the producer project.
      * There can be multiple producer destinations. A monitored resouce type may
@@ -1667,6 +1861,8 @@ public int getProducerDestinationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the producer project.
      * There can be multiple producer destinations. A monitored resouce type may
@@ -1678,7 +1874,7 @@ public int getProducerDestinationsCount() {
      *
      * repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;
      */
-    public MonitoringDestination getProducerDestinations(int index) {
+    public com.google.api.Monitoring.MonitoringDestination getProducerDestinations(int index) {
       if (producerDestinationsBuilder_ == null) {
         return producerDestinations_.get(index);
       } else {
@@ -1686,6 +1882,8 @@ public MonitoringDestination getProducerDestinations(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the producer project.
      * There can be multiple producer destinations. A monitored resouce type may
@@ -1698,7 +1896,7 @@ public MonitoringDestination getProducerDestinations(int index) {
      * repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;
      */
     public Builder setProducerDestinations(
-        int index, MonitoringDestination value) {
+        int index, com.google.api.Monitoring.MonitoringDestination value) {
       if (producerDestinationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1712,6 +1910,8 @@ public Builder setProducerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the producer project.
      * There can be multiple producer destinations. A monitored resouce type may
@@ -1724,7 +1924,7 @@ public Builder setProducerDestinations(
      * repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;
      */
     public Builder setProducerDestinations(
-        int index, MonitoringDestination.Builder builderForValue) {
+        int index, com.google.api.Monitoring.MonitoringDestination.Builder builderForValue) {
       if (producerDestinationsBuilder_ == null) {
         ensureProducerDestinationsIsMutable();
         producerDestinations_.set(index, builderForValue.build());
@@ -1735,6 +1935,8 @@ public Builder setProducerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the producer project.
      * There can be multiple producer destinations. A monitored resouce type may
@@ -1746,7 +1948,7 @@ public Builder setProducerDestinations(
      *
      * repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;
      */
-    public Builder addProducerDestinations(MonitoringDestination value) {
+    public Builder addProducerDestinations(com.google.api.Monitoring.MonitoringDestination value) {
       if (producerDestinationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1760,6 +1962,8 @@ public Builder addProducerDestinations(MonitoringDestination value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the producer project.
      * There can be multiple producer destinations. A monitored resouce type may
@@ -1772,7 +1976,7 @@ public Builder addProducerDestinations(MonitoringDestination value) {
      * repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;
      */
     public Builder addProducerDestinations(
-        int index, MonitoringDestination value) {
+        int index, com.google.api.Monitoring.MonitoringDestination value) {
       if (producerDestinationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1786,6 +1990,8 @@ public Builder addProducerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the producer project.
      * There can be multiple producer destinations. A monitored resouce type may
@@ -1798,7 +2004,7 @@ public Builder addProducerDestinations(
      * repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;
      */
     public Builder addProducerDestinations(
-        MonitoringDestination.Builder builderForValue) {
+        com.google.api.Monitoring.MonitoringDestination.Builder builderForValue) {
       if (producerDestinationsBuilder_ == null) {
         ensureProducerDestinationsIsMutable();
         producerDestinations_.add(builderForValue.build());
@@ -1809,6 +2015,8 @@ public Builder addProducerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the producer project.
      * There can be multiple producer destinations. A monitored resouce type may
@@ -1821,7 +2029,7 @@ public Builder addProducerDestinations(
      * repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;
      */
     public Builder addProducerDestinations(
-        int index, MonitoringDestination.Builder builderForValue) {
+        int index, com.google.api.Monitoring.MonitoringDestination.Builder builderForValue) {
       if (producerDestinationsBuilder_ == null) {
         ensureProducerDestinationsIsMutable();
         producerDestinations_.add(index, builderForValue.build());
@@ -1832,6 +2040,8 @@ public Builder addProducerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the producer project.
      * There can be multiple producer destinations. A monitored resouce type may
@@ -1844,11 +2054,10 @@ public Builder addProducerDestinations(
      * repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;
      */
     public Builder addAllProducerDestinations(
-        Iterable values) {
+        java.lang.Iterable values) {
       if (producerDestinationsBuilder_ == null) {
         ensureProducerDestinationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, producerDestinations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, producerDestinations_);
         onChanged();
       } else {
         producerDestinationsBuilder_.addAllMessages(values);
@@ -1856,6 +2065,8 @@ public Builder addAllProducerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the producer project.
      * There can be multiple producer destinations. A monitored resouce type may
@@ -1878,6 +2089,8 @@ public Builder clearProducerDestinations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the producer project.
      * There can be multiple producer destinations. A monitored resouce type may
@@ -1900,6 +2113,8 @@ public Builder removeProducerDestinations(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the producer project.
      * There can be multiple producer destinations. A monitored resouce type may
@@ -1911,11 +2126,13 @@ public Builder removeProducerDestinations(int index) {
      *
      * repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;
      */
-    public MonitoringDestination.Builder getProducerDestinationsBuilder(
+    public com.google.api.Monitoring.MonitoringDestination.Builder getProducerDestinationsBuilder(
         int index) {
       return getProducerDestinationsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the producer project.
      * There can be multiple producer destinations. A monitored resouce type may
@@ -1927,14 +2144,17 @@ public MonitoringDestination.Builder getProducerDestinationsBuilder(
      *
      * repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;
      */
-    public MonitoringDestinationOrBuilder getProducerDestinationsOrBuilder(
-        int index) {
+    public com.google.api.Monitoring.MonitoringDestinationOrBuilder
+        getProducerDestinationsOrBuilder(int index) {
       if (producerDestinationsBuilder_ == null) {
-        return producerDestinations_.get(index);  } else {
+        return producerDestinations_.get(index);
+      } else {
         return producerDestinationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the producer project.
      * There can be multiple producer destinations. A monitored resouce type may
@@ -1946,8 +2166,8 @@ public MonitoringDestinationOrBuilder getProducerDestinationsOrBuilder(
      *
      * repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;
      */
-    public java.util.List
-         getProducerDestinationsOrBuilderList() {
+    public java.util.List
+        getProducerDestinationsOrBuilderList() {
       if (producerDestinationsBuilder_ != null) {
         return producerDestinationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1955,6 +2175,8 @@ public MonitoringDestinationOrBuilder getProducerDestinationsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the producer project.
      * There can be multiple producer destinations. A monitored resouce type may
@@ -1966,11 +2188,14 @@ public MonitoringDestinationOrBuilder getProducerDestinationsOrBuilder(
      *
      * repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;
      */
-    public MonitoringDestination.Builder addProducerDestinationsBuilder() {
-      return getProducerDestinationsFieldBuilder().addBuilder(
-          MonitoringDestination.getDefaultInstance());
+    public com.google.api.Monitoring.MonitoringDestination.Builder
+        addProducerDestinationsBuilder() {
+      return getProducerDestinationsFieldBuilder()
+          .addBuilder(com.google.api.Monitoring.MonitoringDestination.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the producer project.
      * There can be multiple producer destinations. A monitored resouce type may
@@ -1982,12 +2207,14 @@ public MonitoringDestination.Builder addProducerDestinationsBuilder() {
      *
      * repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;
      */
-    public MonitoringDestination.Builder addProducerDestinationsBuilder(
+    public com.google.api.Monitoring.MonitoringDestination.Builder addProducerDestinationsBuilder(
         int index) {
-      return getProducerDestinationsFieldBuilder().addBuilder(
-          index, MonitoringDestination.getDefaultInstance());
+      return getProducerDestinationsFieldBuilder()
+          .addBuilder(index, com.google.api.Monitoring.MonitoringDestination.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the producer project.
      * There can be multiple producer destinations. A monitored resouce type may
@@ -1999,16 +2226,22 @@ public MonitoringDestination.Builder addProducerDestinationsBuilder(
      *
      * repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;
      */
-    public java.util.List
-         getProducerDestinationsBuilderList() {
+    public java.util.List
+        getProducerDestinationsBuilderList() {
       return getProducerDestinationsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        MonitoringDestination, MonitoringDestination.Builder, MonitoringDestinationOrBuilder>
+            com.google.api.Monitoring.MonitoringDestination,
+            com.google.api.Monitoring.MonitoringDestination.Builder,
+            com.google.api.Monitoring.MonitoringDestinationOrBuilder>
         getProducerDestinationsFieldBuilder() {
       if (producerDestinationsBuilder_ == null) {
-        producerDestinationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            MonitoringDestination, MonitoringDestination.Builder, MonitoringDestinationOrBuilder>(
+        producerDestinationsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.api.Monitoring.MonitoringDestination,
+                com.google.api.Monitoring.MonitoringDestination.Builder,
+                com.google.api.Monitoring.MonitoringDestinationOrBuilder>(
                 producerDestinations_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -2018,19 +2251,27 @@ public MonitoringDestination.Builder addProducerDestinationsBuilder(
       return producerDestinationsBuilder_;
     }
 
-    private java.util.List consumerDestinations_ =
-      java.util.Collections.emptyList();
+    private java.util.List consumerDestinations_ =
+        java.util.Collections.emptyList();
+
     private void ensureConsumerDestinationsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        consumerDestinations_ = new java.util.ArrayList(consumerDestinations_);
+        consumerDestinations_ =
+            new java.util.ArrayList(
+                consumerDestinations_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        MonitoringDestination, MonitoringDestination.Builder, MonitoringDestinationOrBuilder> consumerDestinationsBuilder_;
+            com.google.api.Monitoring.MonitoringDestination,
+            com.google.api.Monitoring.MonitoringDestination.Builder,
+            com.google.api.Monitoring.MonitoringDestinationOrBuilder>
+        consumerDestinationsBuilder_;
 
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations. A monitored resouce type may
@@ -2042,7 +2283,8 @@ private void ensureConsumerDestinationsIsMutable() {
      *
      * repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
      */
-    public java.util.List getConsumerDestinationsList() {
+    public java.util.List
+        getConsumerDestinationsList() {
       if (consumerDestinationsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(consumerDestinations_);
       } else {
@@ -2050,6 +2292,8 @@ public java.util.List getConsumerDestinationsList() {
       }
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations. A monitored resouce type may
@@ -2069,6 +2313,8 @@ public int getConsumerDestinationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations. A monitored resouce type may
@@ -2080,7 +2326,7 @@ public int getConsumerDestinationsCount() {
      *
      * repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
      */
-    public MonitoringDestination getConsumerDestinations(int index) {
+    public com.google.api.Monitoring.MonitoringDestination getConsumerDestinations(int index) {
       if (consumerDestinationsBuilder_ == null) {
         return consumerDestinations_.get(index);
       } else {
@@ -2088,6 +2334,8 @@ public MonitoringDestination getConsumerDestinations(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations. A monitored resouce type may
@@ -2100,7 +2348,7 @@ public MonitoringDestination getConsumerDestinations(int index) {
      * repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
      */
     public Builder setConsumerDestinations(
-        int index, MonitoringDestination value) {
+        int index, com.google.api.Monitoring.MonitoringDestination value) {
       if (consumerDestinationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2114,6 +2362,8 @@ public Builder setConsumerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations. A monitored resouce type may
@@ -2126,7 +2376,7 @@ public Builder setConsumerDestinations(
      * repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
      */
     public Builder setConsumerDestinations(
-        int index, MonitoringDestination.Builder builderForValue) {
+        int index, com.google.api.Monitoring.MonitoringDestination.Builder builderForValue) {
       if (consumerDestinationsBuilder_ == null) {
         ensureConsumerDestinationsIsMutable();
         consumerDestinations_.set(index, builderForValue.build());
@@ -2137,6 +2387,8 @@ public Builder setConsumerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations. A monitored resouce type may
@@ -2148,7 +2400,7 @@ public Builder setConsumerDestinations(
      *
      * repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
      */
-    public Builder addConsumerDestinations(MonitoringDestination value) {
+    public Builder addConsumerDestinations(com.google.api.Monitoring.MonitoringDestination value) {
       if (consumerDestinationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2162,6 +2414,8 @@ public Builder addConsumerDestinations(MonitoringDestination value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations. A monitored resouce type may
@@ -2174,7 +2428,7 @@ public Builder addConsumerDestinations(MonitoringDestination value) {
      * repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
      */
     public Builder addConsumerDestinations(
-        int index, MonitoringDestination value) {
+        int index, com.google.api.Monitoring.MonitoringDestination value) {
       if (consumerDestinationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2188,6 +2442,8 @@ public Builder addConsumerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations. A monitored resouce type may
@@ -2200,7 +2456,7 @@ public Builder addConsumerDestinations(
      * repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
      */
     public Builder addConsumerDestinations(
-        MonitoringDestination.Builder builderForValue) {
+        com.google.api.Monitoring.MonitoringDestination.Builder builderForValue) {
       if (consumerDestinationsBuilder_ == null) {
         ensureConsumerDestinationsIsMutable();
         consumerDestinations_.add(builderForValue.build());
@@ -2211,6 +2467,8 @@ public Builder addConsumerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations. A monitored resouce type may
@@ -2223,7 +2481,7 @@ public Builder addConsumerDestinations(
      * repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
      */
     public Builder addConsumerDestinations(
-        int index, MonitoringDestination.Builder builderForValue) {
+        int index, com.google.api.Monitoring.MonitoringDestination.Builder builderForValue) {
       if (consumerDestinationsBuilder_ == null) {
         ensureConsumerDestinationsIsMutable();
         consumerDestinations_.add(index, builderForValue.build());
@@ -2234,6 +2492,8 @@ public Builder addConsumerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations. A monitored resouce type may
@@ -2246,11 +2506,10 @@ public Builder addConsumerDestinations(
      * repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
      */
     public Builder addAllConsumerDestinations(
-        Iterable values) {
+        java.lang.Iterable values) {
       if (consumerDestinationsBuilder_ == null) {
         ensureConsumerDestinationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, consumerDestinations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, consumerDestinations_);
         onChanged();
       } else {
         consumerDestinationsBuilder_.addAllMessages(values);
@@ -2258,6 +2517,8 @@ public Builder addAllConsumerDestinations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations. A monitored resouce type may
@@ -2280,6 +2541,8 @@ public Builder clearConsumerDestinations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations. A monitored resouce type may
@@ -2302,6 +2565,8 @@ public Builder removeConsumerDestinations(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations. A monitored resouce type may
@@ -2313,11 +2578,13 @@ public Builder removeConsumerDestinations(int index) {
      *
      * repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
      */
-    public MonitoringDestination.Builder getConsumerDestinationsBuilder(
+    public com.google.api.Monitoring.MonitoringDestination.Builder getConsumerDestinationsBuilder(
         int index) {
       return getConsumerDestinationsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations. A monitored resouce type may
@@ -2329,14 +2596,17 @@ public MonitoringDestination.Builder getConsumerDestinationsBuilder(
      *
      * repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
      */
-    public MonitoringDestinationOrBuilder getConsumerDestinationsOrBuilder(
-        int index) {
+    public com.google.api.Monitoring.MonitoringDestinationOrBuilder
+        getConsumerDestinationsOrBuilder(int index) {
       if (consumerDestinationsBuilder_ == null) {
-        return consumerDestinations_.get(index);  } else {
+        return consumerDestinations_.get(index);
+      } else {
         return consumerDestinationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations. A monitored resouce type may
@@ -2348,8 +2618,8 @@ public MonitoringDestinationOrBuilder getConsumerDestinationsOrBuilder(
      *
      * repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
      */
-    public java.util.List
-         getConsumerDestinationsOrBuilderList() {
+    public java.util.List
+        getConsumerDestinationsOrBuilderList() {
       if (consumerDestinationsBuilder_ != null) {
         return consumerDestinationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2357,6 +2627,8 @@ public MonitoringDestinationOrBuilder getConsumerDestinationsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations. A monitored resouce type may
@@ -2368,11 +2640,14 @@ public MonitoringDestinationOrBuilder getConsumerDestinationsOrBuilder(
      *
      * repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
      */
-    public MonitoringDestination.Builder addConsumerDestinationsBuilder() {
-      return getConsumerDestinationsFieldBuilder().addBuilder(
-          MonitoringDestination.getDefaultInstance());
+    public com.google.api.Monitoring.MonitoringDestination.Builder
+        addConsumerDestinationsBuilder() {
+      return getConsumerDestinationsFieldBuilder()
+          .addBuilder(com.google.api.Monitoring.MonitoringDestination.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations. A monitored resouce type may
@@ -2384,12 +2659,14 @@ public MonitoringDestination.Builder addConsumerDestinationsBuilder() {
      *
      * repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
      */
-    public MonitoringDestination.Builder addConsumerDestinationsBuilder(
+    public com.google.api.Monitoring.MonitoringDestination.Builder addConsumerDestinationsBuilder(
         int index) {
-      return getConsumerDestinationsFieldBuilder().addBuilder(
-          index, MonitoringDestination.getDefaultInstance());
+      return getConsumerDestinationsFieldBuilder()
+          .addBuilder(index, com.google.api.Monitoring.MonitoringDestination.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Monitoring configurations for sending metrics to the consumer project.
      * There can be multiple consumer destinations. A monitored resouce type may
@@ -2401,16 +2678,22 @@ public MonitoringDestination.Builder addConsumerDestinationsBuilder(
      *
      * repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
      */
-    public java.util.List
-         getConsumerDestinationsBuilderList() {
+    public java.util.List
+        getConsumerDestinationsBuilderList() {
       return getConsumerDestinationsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        MonitoringDestination, MonitoringDestination.Builder, MonitoringDestinationOrBuilder>
+            com.google.api.Monitoring.MonitoringDestination,
+            com.google.api.Monitoring.MonitoringDestination.Builder,
+            com.google.api.Monitoring.MonitoringDestinationOrBuilder>
         getConsumerDestinationsFieldBuilder() {
       if (consumerDestinationsBuilder_ == null) {
-        consumerDestinationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            MonitoringDestination, MonitoringDestination.Builder, MonitoringDestinationOrBuilder>(
+        consumerDestinationsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.api.Monitoring.MonitoringDestination,
+                com.google.api.Monitoring.MonitoringDestination.Builder,
+                com.google.api.Monitoring.MonitoringDestinationOrBuilder>(
                 consumerDestinations_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -2419,56 +2702,54 @@ public MonitoringDestination.Builder addConsumerDestinationsBuilder(
       }
       return consumerDestinationsBuilder_;
     }
-    @Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+
+    @java.lang.Override
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
-    @Override
+    @java.lang.Override
     public final Builder mergeUnknownFields(
         final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.api.Monitoring)
   }
 
   // @@protoc_insertion_point(class_scope:google.api.Monitoring)
-  private static final Monitoring DEFAULT_INSTANCE;
+  private static final com.google.api.Monitoring DEFAULT_INSTANCE;
+
   static {
-    DEFAULT_INSTANCE = new Monitoring();
+    DEFAULT_INSTANCE = new com.google.api.Monitoring();
   }
 
-  public static Monitoring getDefaultInstance() {
+  public static com.google.api.Monitoring getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @Override
-    public Monitoring parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Monitoring(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Monitoring parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Monitoring(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
   }
 
-  @Override
+  @java.lang.Override
   public com.google.protobuf.Parser getParserForType() {
     return PARSER;
   }
 
-  @Override
-  public Monitoring getDefaultInstanceForType() {
+  @java.lang.Override
+  public com.google.api.Monitoring getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-common-protos/src/main/java/com/google/api/MonitoringOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/MonitoringOrBuilder.java
index 82da8dfd..545de1f8 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/MonitoringOrBuilder.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/MonitoringOrBuilder.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/monitoring.proto
 
 package com.google.api;
 
-public interface MonitoringOrBuilder extends
+public interface MonitoringOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.api.Monitoring)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Monitoring configurations for sending metrics to the producer project.
    * There can be multiple producer destinations. A monitored resouce type may
@@ -19,9 +37,10 @@ public interface MonitoringOrBuilder extends
    *
    * repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;
    */
-  java.util.List
-      getProducerDestinationsList();
+  java.util.List getProducerDestinationsList();
   /**
+   *
+   *
    * 
    * Monitoring configurations for sending metrics to the producer project.
    * There can be multiple producer destinations. A monitored resouce type may
@@ -33,8 +52,10 @@ public interface MonitoringOrBuilder extends
    *
    * repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;
    */
-  Monitoring.MonitoringDestination getProducerDestinations(int index);
+  com.google.api.Monitoring.MonitoringDestination getProducerDestinations(int index);
   /**
+   *
+   *
    * 
    * Monitoring configurations for sending metrics to the producer project.
    * There can be multiple producer destinations. A monitored resouce type may
@@ -48,6 +69,8 @@ public interface MonitoringOrBuilder extends
    */
   int getProducerDestinationsCount();
   /**
+   *
+   *
    * 
    * Monitoring configurations for sending metrics to the producer project.
    * There can be multiple producer destinations. A monitored resouce type may
@@ -59,9 +82,11 @@ public interface MonitoringOrBuilder extends
    *
    * repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;
    */
-  java.util.List
+  java.util.List
       getProducerDestinationsOrBuilderList();
   /**
+   *
+   *
    * 
    * Monitoring configurations for sending metrics to the producer project.
    * There can be multiple producer destinations. A monitored resouce type may
@@ -73,10 +98,12 @@ public interface MonitoringOrBuilder extends
    *
    * repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;
    */
-  Monitoring.MonitoringDestinationOrBuilder getProducerDestinationsOrBuilder(
+  com.google.api.Monitoring.MonitoringDestinationOrBuilder getProducerDestinationsOrBuilder(
       int index);
 
   /**
+   *
+   *
    * 
    * Monitoring configurations for sending metrics to the consumer project.
    * There can be multiple consumer destinations. A monitored resouce type may
@@ -88,9 +115,10 @@ Monitoring.MonitoringDestinationOrBuilder getProducerDestinationsOrBuilder(
    *
    * repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
    */
-  java.util.List
-      getConsumerDestinationsList();
+  java.util.List getConsumerDestinationsList();
   /**
+   *
+   *
    * 
    * Monitoring configurations for sending metrics to the consumer project.
    * There can be multiple consumer destinations. A monitored resouce type may
@@ -102,8 +130,10 @@ Monitoring.MonitoringDestinationOrBuilder getProducerDestinationsOrBuilder(
    *
    * repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
    */
-  Monitoring.MonitoringDestination getConsumerDestinations(int index);
+  com.google.api.Monitoring.MonitoringDestination getConsumerDestinations(int index);
   /**
+   *
+   *
    * 
    * Monitoring configurations for sending metrics to the consumer project.
    * There can be multiple consumer destinations. A monitored resouce type may
@@ -117,6 +147,8 @@ Monitoring.MonitoringDestinationOrBuilder getProducerDestinationsOrBuilder(
    */
   int getConsumerDestinationsCount();
   /**
+   *
+   *
    * 
    * Monitoring configurations for sending metrics to the consumer project.
    * There can be multiple consumer destinations. A monitored resouce type may
@@ -128,9 +160,11 @@ Monitoring.MonitoringDestinationOrBuilder getProducerDestinationsOrBuilder(
    *
    * repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
    */
-  java.util.List
+  java.util.List
       getConsumerDestinationsOrBuilderList();
   /**
+   *
+   *
    * 
    * Monitoring configurations for sending metrics to the consumer project.
    * There can be multiple consumer destinations. A monitored resouce type may
@@ -142,6 +176,6 @@ Monitoring.MonitoringDestinationOrBuilder getProducerDestinationsOrBuilder(
    *
    * repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
    */
-  Monitoring.MonitoringDestinationOrBuilder getConsumerDestinationsOrBuilder(
+  com.google.api.Monitoring.MonitoringDestinationOrBuilder getConsumerDestinationsOrBuilder(
       int index);
 }
diff --git a/proto-google-common-protos/src/main/java/com/google/api/MonitoringProto.java b/proto-google-common-protos/src/main/java/com/google/api/MonitoringProto.java
index 4da9ac4d..f71eac12 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/MonitoringProto.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/MonitoringProto.java
@@ -1,3 +1,18 @@
+/*
+ * 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/monitoring.proto
 
@@ -5,70 +20,60 @@
 
 public final class MonitoringProto {
   private MonitoringProto() {}
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistryLite registry) {
-  }
 
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions(
-        (com.google.protobuf.ExtensionRegistryLite) registry);
+  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_Monitoring_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_Monitoring_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_Monitoring_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_api_Monitoring_MonitoringDestination_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_Monitoring_MonitoringDestination_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_Monitoring_MonitoringDestination_fieldAccessorTable;
 
-  public static com.google.protobuf.Descriptors.FileDescriptor
-      getDescriptor() {
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     return descriptor;
   }
-  private static  com.google.protobuf.Descriptors.FileDescriptor
-      descriptor;
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
   static {
-    String[] descriptorData = {
-      "\n\033google/api/monitoring.proto\022\ngoogle.ap" +
-      "i\"\354\001\n\nMonitoring\022K\n\025producer_destination" +
-      "s\030\001 \003(\0132,.google.api.Monitoring.Monitori" +
-      "ngDestination\022K\n\025consumer_destinations\030\002" +
-      " \003(\0132,.google.api.Monitoring.MonitoringD" +
-      "estination\032D\n\025MonitoringDestination\022\032\n\022m" +
-      "onitored_resource\030\001 \001(\t\022\017\n\007metrics\030\002 \003(\t" +
-      "Bq\n\016com.google.apiB\017MonitoringProtoP\001ZEg" +
-      "oogle.golang.org/genproto/googleapis/api" +
-      "/serviceconfig;serviceconfig\242\002\004GAPIb\006pro" +
-      "to3"
+    java.lang.String[] descriptorData = {
+      "\n\033google/api/monitoring.proto\022\ngoogle.ap"
+          + "i\"\354\001\n\nMonitoring\022K\n\025producer_destination"
+          + "s\030\001 \003(\0132,.google.api.Monitoring.Monitori"
+          + "ngDestination\022K\n\025consumer_destinations\030\002"
+          + " \003(\0132,.google.api.Monitoring.MonitoringD"
+          + "estination\032D\n\025MonitoringDestination\022\032\n\022m"
+          + "onitored_resource\030\001 \001(\t\022\017\n\007metrics\030\002 \003(\t"
+          + "Bq\n\016com.google.apiB\017MonitoringProtoP\001ZEg"
+          + "oogle.golang.org/genproto/googleapis/api"
+          + "/serviceconfig;serviceconfig\242\002\004GAPIb\006pro"
+          + "to3"
     };
-    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
-        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
-          public com.google.protobuf.ExtensionRegistry assignDescriptors(
-              com.google.protobuf.Descriptors.FileDescriptor root) {
-            descriptor = root;
-            return null;
-          }
-        };
-    com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-        }, assigner);
-    internal_static_google_api_Monitoring_descriptor =
-      getDescriptor().getMessageTypes().get(0);
-    internal_static_google_api_Monitoring_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_Monitoring_descriptor,
-        new String[] { "ProducerDestinations", "ConsumerDestinations", });
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
+    internal_static_google_api_Monitoring_descriptor = getDescriptor().getMessageTypes().get(0);
+    internal_static_google_api_Monitoring_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_Monitoring_descriptor,
+            new java.lang.String[] {
+              "ProducerDestinations", "ConsumerDestinations",
+            });
     internal_static_google_api_Monitoring_MonitoringDestination_descriptor =
-      internal_static_google_api_Monitoring_descriptor.getNestedTypes().get(0);
-    internal_static_google_api_Monitoring_MonitoringDestination_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_Monitoring_MonitoringDestination_descriptor,
-        new String[] { "MonitoredResource", "Metrics", });
+        internal_static_google_api_Monitoring_descriptor.getNestedTypes().get(0);
+    internal_static_google_api_Monitoring_MonitoringDestination_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_Monitoring_MonitoringDestination_descriptor,
+            new java.lang.String[] {
+              "MonitoredResource", "Metrics",
+            });
   }
 
   // @@protoc_insertion_point(outer_class_scope)
diff --git a/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirements.java b/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirements.java
index 2e1bf8ae..8444182a 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirements.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirements.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;
 
 /**
+ *
+ *
  * 
  * OAuth scopes are a way to define data and permissions on data. For example,
  * there are scopes defined for "Read-only access to Google Calendar" and
@@ -23,33 +40,39 @@
  *
  * Protobuf type {@code google.api.OAuthRequirements}
  */
-public  final class OAuthRequirements extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class OAuthRequirements extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.OAuthRequirements)
     OAuthRequirementsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use OAuthRequirements.newBuilder() to construct.
   private OAuthRequirements(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private OAuthRequirements() {
     canonicalScopes_ = "";
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new OAuthRequirements();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private OAuthRequirements(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
-    int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
         com.google.protobuf.UnknownFieldSet.newBuilder();
     try {
@@ -60,47 +83,49 @@ private OAuthRequirements(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            canonicalScopes_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              canonicalScopes_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return AuthProto.internal_static_google_api_OAuthRequirements_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.api.AuthProto.internal_static_google_api_OAuthRequirements_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return AuthProto.internal_static_google_api_OAuthRequirements_fieldAccessorTable
+    return com.google.api.AuthProto.internal_static_google_api_OAuthRequirements_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            OAuthRequirements.class, Builder.class);
+            com.google.api.OAuthRequirements.class, com.google.api.OAuthRequirements.Builder.class);
   }
 
   public static final int CANONICAL_SCOPES_FIELD_NUMBER = 1;
-  private volatile Object canonicalScopes_;
+  private volatile java.lang.Object canonicalScopes_;
   /**
+   *
+   *
    * 
    * The list of publicly documented OAuth scopes that are allowed access. An
    * OAuth token containing any of these scopes will be accepted.
@@ -110,20 +135,23 @@ private OAuthRequirements(
    * 
* * string canonical_scopes = 1; + * + * @return The canonicalScopes. */ - public String getCanonicalScopes() { - Object ref = canonicalScopes_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getCanonicalScopes() { + java.lang.Object ref = canonicalScopes_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); canonicalScopes_ = s; return s; } } /** + * + * *
    * The list of publicly documented OAuth scopes that are allowed access. An
    * OAuth token containing any of these scopes will be accepted.
@@ -133,14 +161,14 @@ public String getCanonicalScopes() {
    * 
* * string canonical_scopes = 1; + * + * @return The bytes for canonicalScopes. */ - public com.google.protobuf.ByteString - getCanonicalScopesBytes() { - Object ref = canonicalScopes_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getCanonicalScopesBytes() { + java.lang.Object ref = canonicalScopes_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); canonicalScopes_ = b; return b; } else { @@ -149,7 +177,8 @@ public String getCanonicalScopes() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -159,16 +188,15 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getCanonicalScopesBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, canonicalScopes_); } unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -182,23 +210,22 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof OAuthRequirements)) { + if (!(obj instanceof com.google.api.OAuthRequirements)) { return super.equals(obj); } - OAuthRequirements other = (OAuthRequirements) obj; + com.google.api.OAuthRequirements other = (com.google.api.OAuthRequirements) obj; - if (!getCanonicalScopes() - .equals(other.getCanonicalScopes())) return false; + if (!getCanonicalScopes().equals(other.getCanonicalScopes())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -212,97 +239,103 @@ public int hashCode() { return hash; } - public static OAuthRequirements parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.OAuthRequirements parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static OAuthRequirements parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.OAuthRequirements parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static OAuthRequirements parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.api.OAuthRequirements parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static OAuthRequirements parseFrom( + + public static com.google.api.OAuthRequirements parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static OAuthRequirements parseFrom(byte[] data) + + public static com.google.api.OAuthRequirements parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static OAuthRequirements parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.OAuthRequirements parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static OAuthRequirements parseFrom(java.io.InputStream input) + + public static com.google.api.OAuthRequirements 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 OAuthRequirements parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.OAuthRequirements parseFrom( + 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 OAuthRequirements parseDelimitedFrom(java.io.InputStream input) + + public static com.google.api.OAuthRequirements 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 OAuthRequirements parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.OAuthRequirements parseDelimitedFrom( + 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 OAuthRequirements parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.api.OAuthRequirements parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static OAuthRequirements parseFrom( + + public static com.google.api.OAuthRequirements 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(OAuthRequirements prototype) { + + public static Builder newBuilder(com.google.api.OAuthRequirements prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * OAuth scopes are a way to define data and permissions on data. For example,
    * there are scopes defined for "Read-only access to Google Calendar" and
@@ -322,21 +355,22 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.OAuthRequirements}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.OAuthRequirements)
       com.google.api.OAuthRequirementsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return AuthProto.internal_static_google_api_OAuthRequirements_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.api.AuthProto.internal_static_google_api_OAuthRequirements_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return AuthProto.internal_static_google_api_OAuthRequirements_fieldAccessorTable
+      return com.google.api.AuthProto
+          .internal_static_google_api_OAuthRequirements_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              OAuthRequirements.class, Builder.class);
+              com.google.api.OAuthRequirements.class,
+              com.google.api.OAuthRequirements.Builder.class);
     }
 
     // Construct using com.google.api.OAuthRequirements.newBuilder()
@@ -344,17 +378,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       canonicalScopes_ = "";
@@ -362,78 +395,78 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return AuthProto.internal_static_google_api_OAuthRequirements_descriptor;
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.api.AuthProto.internal_static_google_api_OAuthRequirements_descriptor;
     }
 
-    @Override
-    public OAuthRequirements getDefaultInstanceForType() {
-      return OAuthRequirements.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.OAuthRequirements getDefaultInstanceForType() {
+      return com.google.api.OAuthRequirements.getDefaultInstance();
     }
 
-    @Override
-    public OAuthRequirements build() {
-      OAuthRequirements result = buildPartial();
+    @java.lang.Override
+    public com.google.api.OAuthRequirements build() {
+      com.google.api.OAuthRequirements result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public OAuthRequirements buildPartial() {
-      OAuthRequirements result = new OAuthRequirements(this);
+    @java.lang.Override
+    public com.google.api.OAuthRequirements buildPartial() {
+      com.google.api.OAuthRequirements result = new com.google.api.OAuthRequirements(this);
       result.canonicalScopes_ = canonicalScopes_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof OAuthRequirements) {
-        return mergeFrom((OAuthRequirements)other);
+      if (other instanceof com.google.api.OAuthRequirements) {
+        return mergeFrom((com.google.api.OAuthRequirements) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(OAuthRequirements other) {
-      if (other == OAuthRequirements.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.OAuthRequirements other) {
+      if (other == com.google.api.OAuthRequirements.getDefaultInstance()) return this;
       if (!other.getCanonicalScopes().isEmpty()) {
         canonicalScopes_ = other.canonicalScopes_;
         onChanged();
@@ -443,21 +476,21 @@ public Builder mergeFrom(OAuthRequirements other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      OAuthRequirements parsedMessage = null;
+      com.google.api.OAuthRequirements parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (OAuthRequirements) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.OAuthRequirements) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -467,8 +500,10 @@ public Builder mergeFrom(
       return this;
     }
 
-    private Object canonicalScopes_ = "";
+    private java.lang.Object canonicalScopes_ = "";
     /**
+     *
+     *
      * 
      * The list of publicly documented OAuth scopes that are allowed access. An
      * OAuth token containing any of these scopes will be accepted.
@@ -478,20 +513,23 @@ public Builder mergeFrom(
      * 
* * string canonical_scopes = 1; + * + * @return The canonicalScopes. */ - public String getCanonicalScopes() { - Object ref = canonicalScopes_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getCanonicalScopes() { + java.lang.Object ref = canonicalScopes_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); canonicalScopes_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The list of publicly documented OAuth scopes that are allowed access. An
      * OAuth token containing any of these scopes will be accepted.
@@ -501,14 +539,14 @@ public String getCanonicalScopes() {
      * 
* * string canonical_scopes = 1; + * + * @return The bytes for canonicalScopes. */ - public com.google.protobuf.ByteString - getCanonicalScopesBytes() { - Object ref = canonicalScopes_; + public com.google.protobuf.ByteString getCanonicalScopesBytes() { + java.lang.Object ref = canonicalScopes_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); canonicalScopes_ = b; return b; } else { @@ -516,6 +554,8 @@ public String getCanonicalScopes() { } } /** + * + * *
      * The list of publicly documented OAuth scopes that are allowed access. An
      * OAuth token containing any of these scopes will be accepted.
@@ -525,18 +565,22 @@ public String getCanonicalScopes() {
      * 
* * string canonical_scopes = 1; + * + * @param value The canonicalScopes to set. + * @return This builder for chaining. */ - public Builder setCanonicalScopes( - String value) { + public Builder setCanonicalScopes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + canonicalScopes_ = value; onChanged(); return this; } /** + * + * *
      * The list of publicly documented OAuth scopes that are allowed access. An
      * OAuth token containing any of these scopes will be accepted.
@@ -546,14 +590,18 @@ public Builder setCanonicalScopes(
      * 
* * string canonical_scopes = 1; + * + * @return This builder for chaining. */ public Builder clearCanonicalScopes() { - + canonicalScopes_ = getDefaultInstance().getCanonicalScopes(); onChanged(); return this; } /** + * + * *
      * The list of publicly documented OAuth scopes that are allowed access. An
      * OAuth token containing any of these scopes will be accepted.
@@ -563,68 +611,68 @@ public Builder clearCanonicalScopes() {
      * 
* * string canonical_scopes = 1; + * + * @param value The bytes for canonicalScopes to set. + * @return This builder for chaining. */ - public Builder setCanonicalScopesBytes( - com.google.protobuf.ByteString value) { + public Builder setCanonicalScopesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + canonicalScopes_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.OAuthRequirements) } // @@protoc_insertion_point(class_scope:google.api.OAuthRequirements) - private static final OAuthRequirements DEFAULT_INSTANCE; + private static final com.google.api.OAuthRequirements DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new OAuthRequirements(); + DEFAULT_INSTANCE = new com.google.api.OAuthRequirements(); } - public static OAuthRequirements getDefaultInstance() { + public static com.google.api.OAuthRequirements getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public OAuthRequirements parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OAuthRequirements(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OAuthRequirements parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OAuthRequirements(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public OAuthRequirements getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.OAuthRequirements getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirementsOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirementsOrBuilder.java index 2af69758..27a92e36 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirementsOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirementsOrBuilder.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 OAuthRequirementsOrBuilder extends +public interface OAuthRequirementsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.OAuthRequirements) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of publicly documented OAuth scopes that are allowed access. An
    * OAuth token containing any of these scopes will be accepted.
@@ -17,9 +35,13 @@ public interface OAuthRequirementsOrBuilder extends
    * 
* * string canonical_scopes = 1; + * + * @return The canonicalScopes. */ - String getCanonicalScopes(); + java.lang.String getCanonicalScopes(); /** + * + * *
    * The list of publicly documented OAuth scopes that are allowed access. An
    * OAuth token containing any of these scopes will be accepted.
@@ -29,7 +51,8 @@ public interface OAuthRequirementsOrBuilder extends
    * 
* * string canonical_scopes = 1; + * + * @return The bytes for canonicalScopes. */ - com.google.protobuf.ByteString - getCanonicalScopesBytes(); + com.google.protobuf.ByteString getCanonicalScopesBytes(); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/Page.java b/proto-google-common-protos/src/main/java/com/google/api/Page.java index 467a2ea4..dea43c6c 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/Page.java +++ b/proto-google-common-protos/src/main/java/com/google/api/Page.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/documentation.proto package com.google.api; /** + * + * *
  * Represents a documentation page. A page can contain subpages to represent
  * nested documentation set structure.
@@ -11,33 +28,40 @@
  *
  * Protobuf type {@code google.api.Page}
  */
-public  final class Page extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Page extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.Page)
     PageOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Page.newBuilder() to construct.
   private Page(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Page() {
     name_ = "";
     content_ = "";
     subpages_ = java.util.Collections.emptyList();
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new Page();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Page(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -50,66 +74,68 @@ private Page(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            content_ = s;
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              subpages_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000004;
+              content_ = s;
+              break;
             }
-            subpages_.add(
-                input.readMessage(Page.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                subpages_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              subpages_.add(input.readMessage(com.google.api.Page.parser(), extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
-      if (((mutable_bitField0_ & 0x00000004) != 0)) {
+      if (((mutable_bitField0_ & 0x00000001) != 0)) {
         subpages_ = java.util.Collections.unmodifiableList(subpages_);
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.DocumentationProto.internal_static_google_api_Page_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return com.google.api.DocumentationProto.internal_static_google_api_Page_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            Page.class, Builder.class);
+            com.google.api.Page.class, com.google.api.Page.Builder.class);
   }
 
-  private int bitField0_;
   public static final int NAME_FIELD_NUMBER = 1;
-  private volatile Object name_;
+  private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * The name of the page. It will be used as an identity of the page to
    * generate URI of the page, text of the link to this page in navigation,
@@ -128,20 +154,23 @@ private Page(
    * 
* * string name = 1; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the page. It will be used as an identity of the page to
    * generate URI of the page, text of the link to this page in navigation,
@@ -160,14 +189,14 @@ public String getName() {
    * 
* * string name = 1; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -176,42 +205,47 @@ public String getName() { } public static final int CONTENT_FIELD_NUMBER = 2; - private volatile Object content_; + private volatile java.lang.Object content_; /** + * + * *
    * The Markdown content of the page. You can use <code>&#40;== include {path}
    * ==&#41;</code> to include content from a Markdown file.
    * 
* * string content = 2; + * + * @return The content. */ - public String getContent() { - Object ref = content_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); content_ = s; return s; } } /** + * + * *
    * The Markdown content of the page. You can use <code>&#40;== include {path}
    * ==&#41;</code> to include content from a Markdown file.
    * 
* * string content = 2; + * + * @return The bytes for content. */ - public com.google.protobuf.ByteString - getContentBytes() { - Object ref = content_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -220,8 +254,10 @@ public String getContent() { } public static final int SUBPAGES_FIELD_NUMBER = 3; - private java.util.List subpages_; + private java.util.List subpages_; /** + * + * *
    * Subpages of this page. The order of subpages specified here will be
    * honored in the generated docset.
@@ -229,10 +265,12 @@ public String getContent() {
    *
    * repeated .google.api.Page subpages = 3;
    */
-  public java.util.List getSubpagesList() {
+  public java.util.List getSubpagesList() {
     return subpages_;
   }
   /**
+   *
+   *
    * 
    * Subpages of this page. The order of subpages specified here will be
    * honored in the generated docset.
@@ -240,11 +278,12 @@ public java.util.List getSubpagesList() {
    *
    * repeated .google.api.Page subpages = 3;
    */
-  public java.util.List 
-      getSubpagesOrBuilderList() {
+  public java.util.List getSubpagesOrBuilderList() {
     return subpages_;
   }
   /**
+   *
+   *
    * 
    * Subpages of this page. The order of subpages specified here will be
    * honored in the generated docset.
@@ -256,6 +295,8 @@ public int getSubpagesCount() {
     return subpages_.size();
   }
   /**
+   *
+   *
    * 
    * Subpages of this page. The order of subpages specified here will be
    * honored in the generated docset.
@@ -263,10 +304,12 @@ public int getSubpagesCount() {
    *
    * repeated .google.api.Page subpages = 3;
    */
-  public Page getSubpages(int index) {
+  public com.google.api.Page getSubpages(int index) {
     return subpages_.get(index);
   }
   /**
+   *
+   *
    * 
    * Subpages of this page. The order of subpages specified here will be
    * honored in the generated docset.
@@ -274,13 +317,13 @@ public Page getSubpages(int index) {
    *
    * repeated .google.api.Page subpages = 3;
    */
-  public com.google.api.PageOrBuilder getSubpagesOrBuilder(
-      int index) {
+  public com.google.api.PageOrBuilder getSubpagesOrBuilder(int index) {
     return subpages_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-  @Override
+
+  @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
     if (isInitialized == 1) return true;
@@ -290,9 +333,8 @@ public final boolean isInitialized() {
     return true;
   }
 
-  @Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  @java.lang.Override
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!getNameBytes().isEmpty()) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -305,7 +347,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     unknownFields.writeTo(output);
   }
 
-  @Override
+  @java.lang.Override
   public int getSerializedSize() {
     int size = memoizedSize;
     if (size != -1) return size;
@@ -318,35 +360,31 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, content_);
     }
     for (int i = 0; i < subpages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, subpages_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, subpages_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
     return size;
   }
 
-  @Override
-  public boolean equals(final Object obj) {
+  @java.lang.Override
+  public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
-    if (!(obj instanceof Page)) {
+    if (!(obj instanceof com.google.api.Page)) {
       return super.equals(obj);
     }
-    Page other = (Page) obj;
+    com.google.api.Page other = (com.google.api.Page) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!getContent()
-        .equals(other.getContent())) return false;
-    if (!getSubpagesList()
-        .equals(other.getSubpagesList())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (!getContent().equals(other.getContent())) return false;
+    if (!getSubpagesList().equals(other.getSubpagesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
 
-  @Override
+  @java.lang.Override
   public int hashCode() {
     if (memoizedHashCode != 0) {
       return memoizedHashCode;
@@ -366,97 +404,103 @@ public int hashCode() {
     return hash;
   }
 
-  public static Page parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.api.Page parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Page parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Page parseFrom(
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Page parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.api.Page parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Page parseFrom(
+
+  public static com.google.api.Page parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Page parseFrom(byte[] data)
+
+  public static com.google.api.Page parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Page parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Page parseFrom(
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Page parseFrom(java.io.InputStream input)
+
+  public static com.google.api.Page 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 Page parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Page parseFrom(
+      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 Page parseDelimitedFrom(java.io.InputStream input)
+
+  public static com.google.api.Page 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 Page parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Page parseDelimitedFrom(
+      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 Page parseFrom(
-      com.google.protobuf.CodedInputStream input)
+
+  public static com.google.api.Page 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 Page parseFrom(
+
+  public static com.google.api.Page 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();
   }
 
-  @Override
-  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(Page prototype) {
+
+  public static Builder newBuilder(com.google.api.Page prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-  @Override
+
+  @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);
   }
 
-  @Override
-  protected Builder newBuilderForType(
-      BuilderParent parent) {
+  @java.lang.Override
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Represents a documentation page. A page can contain subpages to represent
    * nested documentation set structure.
@@ -464,21 +508,20 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.Page}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.Page)
       com.google.api.PageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.api.DocumentationProto.internal_static_google_api_Page_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return com.google.api.DocumentationProto.internal_static_google_api_Page_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              Page.class, Builder.class);
+              com.google.api.Page.class, com.google.api.Page.Builder.class);
     }
 
     // Construct using com.google.api.Page.newBuilder()
@@ -486,18 +529,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getSubpagesFieldBuilder();
       }
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       name_ = "";
@@ -506,98 +549,96 @@ public Builder clear() {
 
       if (subpagesBuilder_ == null) {
         subpages_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000004);
+        bitField0_ = (bitField0_ & ~0x00000001);
       } else {
         subpagesBuilder_.clear();
       }
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.api.DocumentationProto.internal_static_google_api_Page_descriptor;
     }
 
-    @Override
-    public Page getDefaultInstanceForType() {
-      return Page.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.Page getDefaultInstanceForType() {
+      return com.google.api.Page.getDefaultInstance();
     }
 
-    @Override
-    public Page build() {
-      Page result = buildPartial();
+    @java.lang.Override
+    public com.google.api.Page build() {
+      com.google.api.Page result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public Page buildPartial() {
-      Page result = new Page(this);
+    @java.lang.Override
+    public com.google.api.Page buildPartial() {
+      com.google.api.Page result = new com.google.api.Page(this);
       int from_bitField0_ = bitField0_;
-      int to_bitField0_ = 0;
       result.name_ = name_;
       result.content_ = content_;
       if (subpagesBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)) {
+        if (((bitField0_ & 0x00000001) != 0)) {
           subpages_ = java.util.Collections.unmodifiableList(subpages_);
-          bitField0_ = (bitField0_ & ~0x00000004);
+          bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.subpages_ = subpages_;
       } else {
         result.subpages_ = subpagesBuilder_.build();
       }
-      result.bitField0_ = to_bitField0_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof Page) {
-        return mergeFrom((Page)other);
+      if (other instanceof com.google.api.Page) {
+        return mergeFrom((com.google.api.Page) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(Page other) {
-      if (other == Page.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.Page other) {
+      if (other == com.google.api.Page.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -610,7 +651,7 @@ public Builder mergeFrom(Page other) {
         if (!other.subpages_.isEmpty()) {
           if (subpages_.isEmpty()) {
             subpages_ = other.subpages_;
-            bitField0_ = (bitField0_ & ~0x00000004);
+            bitField0_ = (bitField0_ & ~0x00000001);
           } else {
             ensureSubpagesIsMutable();
             subpages_.addAll(other.subpages_);
@@ -623,10 +664,11 @@ public Builder mergeFrom(Page other) {
             subpagesBuilder_.dispose();
             subpagesBuilder_ = null;
             subpages_ = other.subpages_;
-            bitField0_ = (bitField0_ & ~0x00000004);
-            subpagesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getSubpagesFieldBuilder() : null;
+            bitField0_ = (bitField0_ & ~0x00000001);
+            subpagesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getSubpagesFieldBuilder()
+                    : null;
           } else {
             subpagesBuilder_.addAllMessages(other.subpages_);
           }
@@ -637,21 +679,21 @@ public Builder mergeFrom(Page other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      Page parsedMessage = null;
+      com.google.api.Page parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (Page) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.Page) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -660,10 +702,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private Object name_ = "";
+    private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The name of the page. It will be used as an identity of the page to
      * generate URI of the page, text of the link to this page in navigation,
@@ -682,20 +727,23 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The name of the page. It will be used as an identity of the page to
      * generate URI of the page, text of the link to this page in navigation,
@@ -714,14 +762,14 @@ public String getName() {
      * 
* * string name = 1; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -729,6 +777,8 @@ public String getName() { } } /** + * + * *
      * The name of the page. It will be used as an identity of the page to
      * generate URI of the page, text of the link to this page in navigation,
@@ -747,18 +797,22 @@ public String getName() {
      * 
* * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ - public Builder setName( - String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The name of the page. It will be used as an identity of the page to
      * generate URI of the page, text of the link to this page in navigation,
@@ -777,14 +831,18 @@ public Builder setName(
      * 
* * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The name of the page. It will be used as an identity of the page to
      * generate URI of the page, text of the link to this page in navigation,
@@ -803,55 +861,62 @@ public Builder clearName() {
      * 
* * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private Object content_ = ""; + private java.lang.Object content_ = ""; /** + * + * *
      * The Markdown content of the page. You can use <code>&#40;== include {path}
      * ==&#41;</code> to include content from a Markdown file.
      * 
* * string content = 2; + * + * @return The content. */ - public String getContent() { - Object ref = content_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); content_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The Markdown content of the page. You can use <code>&#40;== include {path}
      * ==&#41;</code> to include content from a Markdown file.
      * 
* * string content = 2; + * + * @return The bytes for content. */ - public com.google.protobuf.ByteString - getContentBytes() { - Object ref = content_; + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -859,70 +924,85 @@ public String getContent() { } } /** + * + * *
      * The Markdown content of the page. You can use <code>&#40;== include {path}
      * ==&#41;</code> to include content from a Markdown file.
      * 
* * string content = 2; + * + * @param value The content to set. + * @return This builder for chaining. */ - public Builder setContent( - String value) { + public Builder setContent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + content_ = value; onChanged(); return this; } /** + * + * *
      * The Markdown content of the page. You can use <code>&#40;== include {path}
      * ==&#41;</code> to include content from a Markdown file.
      * 
* * string content = 2; + * + * @return This builder for chaining. */ public Builder clearContent() { - + content_ = getDefaultInstance().getContent(); onChanged(); return this; } /** + * + * *
      * The Markdown content of the page. You can use <code>&#40;== include {path}
      * ==&#41;</code> to include content from a Markdown file.
      * 
* * string content = 2; + * + * @param value The bytes for content to set. + * @return This builder for chaining. */ - public Builder setContentBytes( - com.google.protobuf.ByteString value) { + public Builder setContentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + content_ = value; onChanged(); return this; } - private java.util.List subpages_ = - java.util.Collections.emptyList(); + private java.util.List subpages_ = java.util.Collections.emptyList(); + private void ensureSubpagesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - subpages_ = new java.util.ArrayList(subpages_); - bitField0_ |= 0x00000004; - } + if (!((bitField0_ & 0x00000001) != 0)) { + subpages_ = new java.util.ArrayList(subpages_); + bitField0_ |= 0x00000001; + } } private com.google.protobuf.RepeatedFieldBuilderV3< - Page, Builder, com.google.api.PageOrBuilder> subpagesBuilder_; + com.google.api.Page, com.google.api.Page.Builder, com.google.api.PageOrBuilder> + subpagesBuilder_; /** + * + * *
      * Subpages of this page. The order of subpages specified here will be
      * honored in the generated docset.
@@ -930,7 +1010,7 @@ private void ensureSubpagesIsMutable() {
      *
      * repeated .google.api.Page subpages = 3;
      */
-    public java.util.List getSubpagesList() {
+    public java.util.List getSubpagesList() {
       if (subpagesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(subpages_);
       } else {
@@ -938,6 +1018,8 @@ public java.util.List getSubpagesList() {
       }
     }
     /**
+     *
+     *
      * 
      * Subpages of this page. The order of subpages specified here will be
      * honored in the generated docset.
@@ -953,6 +1035,8 @@ public int getSubpagesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Subpages of this page. The order of subpages specified here will be
      * honored in the generated docset.
@@ -960,7 +1044,7 @@ public int getSubpagesCount() {
      *
      * repeated .google.api.Page subpages = 3;
      */
-    public Page getSubpages(int index) {
+    public com.google.api.Page getSubpages(int index) {
       if (subpagesBuilder_ == null) {
         return subpages_.get(index);
       } else {
@@ -968,6 +1052,8 @@ public Page getSubpages(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Subpages of this page. The order of subpages specified here will be
      * honored in the generated docset.
@@ -975,8 +1061,7 @@ public Page getSubpages(int index) {
      *
      * repeated .google.api.Page subpages = 3;
      */
-    public Builder setSubpages(
-        int index, Page value) {
+    public Builder setSubpages(int index, com.google.api.Page value) {
       if (subpagesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -990,6 +1075,8 @@ public Builder setSubpages(
       return this;
     }
     /**
+     *
+     *
      * 
      * Subpages of this page. The order of subpages specified here will be
      * honored in the generated docset.
@@ -997,8 +1084,7 @@ public Builder setSubpages(
      *
      * repeated .google.api.Page subpages = 3;
      */
-    public Builder setSubpages(
-        int index, Builder builderForValue) {
+    public Builder setSubpages(int index, com.google.api.Page.Builder builderForValue) {
       if (subpagesBuilder_ == null) {
         ensureSubpagesIsMutable();
         subpages_.set(index, builderForValue.build());
@@ -1009,6 +1095,8 @@ public Builder setSubpages(
       return this;
     }
     /**
+     *
+     *
      * 
      * Subpages of this page. The order of subpages specified here will be
      * honored in the generated docset.
@@ -1016,7 +1104,7 @@ public Builder setSubpages(
      *
      * repeated .google.api.Page subpages = 3;
      */
-    public Builder addSubpages(Page value) {
+    public Builder addSubpages(com.google.api.Page value) {
       if (subpagesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1030,6 +1118,8 @@ public Builder addSubpages(Page value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Subpages of this page. The order of subpages specified here will be
      * honored in the generated docset.
@@ -1037,8 +1127,7 @@ public Builder addSubpages(Page value) {
      *
      * repeated .google.api.Page subpages = 3;
      */
-    public Builder addSubpages(
-        int index, Page value) {
+    public Builder addSubpages(int index, com.google.api.Page value) {
       if (subpagesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1052,6 +1141,8 @@ public Builder addSubpages(
       return this;
     }
     /**
+     *
+     *
      * 
      * Subpages of this page. The order of subpages specified here will be
      * honored in the generated docset.
@@ -1059,8 +1150,7 @@ public Builder addSubpages(
      *
      * repeated .google.api.Page subpages = 3;
      */
-    public Builder addSubpages(
-        Builder builderForValue) {
+    public Builder addSubpages(com.google.api.Page.Builder builderForValue) {
       if (subpagesBuilder_ == null) {
         ensureSubpagesIsMutable();
         subpages_.add(builderForValue.build());
@@ -1071,6 +1161,8 @@ public Builder addSubpages(
       return this;
     }
     /**
+     *
+     *
      * 
      * Subpages of this page. The order of subpages specified here will be
      * honored in the generated docset.
@@ -1078,8 +1170,7 @@ public Builder addSubpages(
      *
      * repeated .google.api.Page subpages = 3;
      */
-    public Builder addSubpages(
-        int index, Builder builderForValue) {
+    public Builder addSubpages(int index, com.google.api.Page.Builder builderForValue) {
       if (subpagesBuilder_ == null) {
         ensureSubpagesIsMutable();
         subpages_.add(index, builderForValue.build());
@@ -1090,6 +1181,8 @@ public Builder addSubpages(
       return this;
     }
     /**
+     *
+     *
      * 
      * Subpages of this page. The order of subpages specified here will be
      * honored in the generated docset.
@@ -1097,12 +1190,10 @@ public Builder addSubpages(
      *
      * repeated .google.api.Page subpages = 3;
      */
-    public Builder addAllSubpages(
-        Iterable values) {
+    public Builder addAllSubpages(java.lang.Iterable values) {
       if (subpagesBuilder_ == null) {
         ensureSubpagesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, subpages_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subpages_);
         onChanged();
       } else {
         subpagesBuilder_.addAllMessages(values);
@@ -1110,6 +1201,8 @@ public Builder addAllSubpages(
       return this;
     }
     /**
+     *
+     *
      * 
      * Subpages of this page. The order of subpages specified here will be
      * honored in the generated docset.
@@ -1120,7 +1213,7 @@ public Builder addAllSubpages(
     public Builder clearSubpages() {
       if (subpagesBuilder_ == null) {
         subpages_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000004);
+        bitField0_ = (bitField0_ & ~0x00000001);
         onChanged();
       } else {
         subpagesBuilder_.clear();
@@ -1128,6 +1221,8 @@ public Builder clearSubpages() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Subpages of this page. The order of subpages specified here will be
      * honored in the generated docset.
@@ -1146,6 +1241,8 @@ public Builder removeSubpages(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Subpages of this page. The order of subpages specified here will be
      * honored in the generated docset.
@@ -1153,11 +1250,12 @@ public Builder removeSubpages(int index) {
      *
      * repeated .google.api.Page subpages = 3;
      */
-    public Builder getSubpagesBuilder(
-        int index) {
+    public com.google.api.Page.Builder getSubpagesBuilder(int index) {
       return getSubpagesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Subpages of this page. The order of subpages specified here will be
      * honored in the generated docset.
@@ -1165,14 +1263,16 @@ public Builder getSubpagesBuilder(
      *
      * repeated .google.api.Page subpages = 3;
      */
-    public com.google.api.PageOrBuilder getSubpagesOrBuilder(
-        int index) {
+    public com.google.api.PageOrBuilder getSubpagesOrBuilder(int index) {
       if (subpagesBuilder_ == null) {
-        return subpages_.get(index);  } else {
+        return subpages_.get(index);
+      } else {
         return subpagesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Subpages of this page. The order of subpages specified here will be
      * honored in the generated docset.
@@ -1180,8 +1280,7 @@ public com.google.api.PageOrBuilder getSubpagesOrBuilder(
      *
      * repeated .google.api.Page subpages = 3;
      */
-    public java.util.List 
-         getSubpagesOrBuilderList() {
+    public java.util.List getSubpagesOrBuilderList() {
       if (subpagesBuilder_ != null) {
         return subpagesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1189,6 +1288,8 @@ public com.google.api.PageOrBuilder getSubpagesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Subpages of this page. The order of subpages specified here will be
      * honored in the generated docset.
@@ -1196,11 +1297,12 @@ public com.google.api.PageOrBuilder getSubpagesOrBuilder(
      *
      * repeated .google.api.Page subpages = 3;
      */
-    public Builder addSubpagesBuilder() {
-      return getSubpagesFieldBuilder().addBuilder(
-          Page.getDefaultInstance());
+    public com.google.api.Page.Builder addSubpagesBuilder() {
+      return getSubpagesFieldBuilder().addBuilder(com.google.api.Page.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Subpages of this page. The order of subpages specified here will be
      * honored in the generated docset.
@@ -1208,12 +1310,12 @@ public Builder addSubpagesBuilder() {
      *
      * repeated .google.api.Page subpages = 3;
      */
-    public Builder addSubpagesBuilder(
-        int index) {
-      return getSubpagesFieldBuilder().addBuilder(
-          index, Page.getDefaultInstance());
+    public com.google.api.Page.Builder addSubpagesBuilder(int index) {
+      return getSubpagesFieldBuilder().addBuilder(index, com.google.api.Page.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Subpages of this page. The order of subpages specified here will be
      * honored in the generated docset.
@@ -1221,74 +1323,70 @@ public Builder addSubpagesBuilder(
      *
      * repeated .google.api.Page subpages = 3;
      */
-    public java.util.List
-         getSubpagesBuilderList() {
+    public java.util.List getSubpagesBuilderList() {
       return getSubpagesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        Page, Builder, com.google.api.PageOrBuilder>
+            com.google.api.Page, com.google.api.Page.Builder, com.google.api.PageOrBuilder>
         getSubpagesFieldBuilder() {
       if (subpagesBuilder_ == null) {
-        subpagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            Page, Builder, com.google.api.PageOrBuilder>(
-                subpages_,
-                ((bitField0_ & 0x00000004) != 0),
-                getParentForChildren(),
-                isClean());
+        subpagesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.api.Page, com.google.api.Page.Builder, com.google.api.PageOrBuilder>(
+                subpages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         subpages_ = null;
       }
       return subpagesBuilder_;
     }
-    @Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+
+    @java.lang.Override
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
-    @Override
+    @java.lang.Override
     public final Builder mergeUnknownFields(
         final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.api.Page)
   }
 
   // @@protoc_insertion_point(class_scope:google.api.Page)
-  private static final Page DEFAULT_INSTANCE;
+  private static final com.google.api.Page DEFAULT_INSTANCE;
+
   static {
-    DEFAULT_INSTANCE = new Page();
+    DEFAULT_INSTANCE = new com.google.api.Page();
   }
 
-  public static Page getDefaultInstance() {
+  public static com.google.api.Page getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @Override
-    public Page parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Page(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Page parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Page(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
   }
 
-  @Override
+  @java.lang.Override
   public com.google.protobuf.Parser getParserForType() {
     return PARSER;
   }
 
-  @Override
-  public Page getDefaultInstanceForType() {
+  @java.lang.Override
+  public com.google.api.Page getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-common-protos/src/main/java/com/google/api/PageOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/PageOrBuilder.java
index 7f00525c..1e062111 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/PageOrBuilder.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/PageOrBuilder.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/documentation.proto
 
 package com.google.api;
 
-public interface PageOrBuilder extends
+public interface PageOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.api.Page)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The name of the page. It will be used as an identity of the page to
    * generate URI of the page, text of the link to this page in navigation,
@@ -26,9 +44,13 @@ public interface PageOrBuilder extends
    * 
* * string name = 1; + * + * @return The name. */ - String getName(); + java.lang.String getName(); /** + * + * *
    * The name of the page. It will be used as an identity of the page to
    * generate URI of the page, text of the link to this page in navigation,
@@ -47,31 +69,41 @@ public interface PageOrBuilder extends
    * 
* * string name = 1; + * + * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The Markdown content of the page. You can use <code>&#40;== include {path}
    * ==&#41;</code> to include content from a Markdown file.
    * 
* * string content = 2; + * + * @return The content. */ - String getContent(); + java.lang.String getContent(); /** + * + * *
    * The Markdown content of the page. You can use <code>&#40;== include {path}
    * ==&#41;</code> to include content from a Markdown file.
    * 
* * string content = 2; + * + * @return The bytes for content. */ - com.google.protobuf.ByteString - getContentBytes(); + com.google.protobuf.ByteString getContentBytes(); /** + * + * *
    * Subpages of this page. The order of subpages specified here will be
    * honored in the generated docset.
@@ -79,9 +111,10 @@ public interface PageOrBuilder extends
    *
    * repeated .google.api.Page subpages = 3;
    */
-  java.util.List
-      getSubpagesList();
+  java.util.List getSubpagesList();
   /**
+   *
+   *
    * 
    * Subpages of this page. The order of subpages specified here will be
    * honored in the generated docset.
@@ -89,8 +122,10 @@ public interface PageOrBuilder extends
    *
    * repeated .google.api.Page subpages = 3;
    */
-  Page getSubpages(int index);
+  com.google.api.Page getSubpages(int index);
   /**
+   *
+   *
    * 
    * Subpages of this page. The order of subpages specified here will be
    * honored in the generated docset.
@@ -100,6 +135,8 @@ public interface PageOrBuilder extends
    */
   int getSubpagesCount();
   /**
+   *
+   *
    * 
    * Subpages of this page. The order of subpages specified here will be
    * honored in the generated docset.
@@ -107,9 +144,10 @@ public interface PageOrBuilder extends
    *
    * repeated .google.api.Page subpages = 3;
    */
-  java.util.List
-      getSubpagesOrBuilderList();
+  java.util.List getSubpagesOrBuilderList();
   /**
+   *
+   *
    * 
    * Subpages of this page. The order of subpages specified here will be
    * honored in the generated docset.
@@ -117,6 +155,5 @@ public interface PageOrBuilder extends
    *
    * repeated .google.api.Page subpages = 3;
    */
-  PageOrBuilder getSubpagesOrBuilder(
-      int index);
+  com.google.api.PageOrBuilder getSubpagesOrBuilder(int index);
 }
diff --git a/proto-google-common-protos/src/main/java/com/google/api/ProjectProperties.java b/proto-google-common-protos/src/main/java/com/google/api/ProjectProperties.java
index b0e36510..665c71b5 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/ProjectProperties.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/ProjectProperties.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/consumer.proto
 
 package com.google.api;
 
 /**
+ *
+ *
  * 
  * A descriptor for defining project properties for a service. One service may
  * have many consumer projects, and the service may want to behave differently
@@ -23,31 +40,38 @@
  *
  * Protobuf type {@code google.api.ProjectProperties}
  */
-public  final class ProjectProperties extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ProjectProperties extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.ProjectProperties)
     ProjectPropertiesOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ProjectProperties.newBuilder() to construct.
   private ProjectProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ProjectProperties() {
     properties_ = java.util.Collections.emptyList();
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new ProjectProperties();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ProjectProperties(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -60,29 +84,29 @@ private ProjectProperties(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              properties_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                properties_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              properties_.add(
+                  input.readMessage(com.google.api.Property.parser(), extensionRegistry));
+              break;
             }
-            properties_.add(
-                input.readMessage(Property.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         properties_ = java.util.Collections.unmodifiableList(properties_);
@@ -91,43 +115,49 @@ private ProjectProperties(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return ConsumerProto.internal_static_google_api_ProjectProperties_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.api.ConsumerProto.internal_static_google_api_ProjectProperties_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return ConsumerProto.internal_static_google_api_ProjectProperties_fieldAccessorTable
+    return com.google.api.ConsumerProto
+        .internal_static_google_api_ProjectProperties_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            ProjectProperties.class, Builder.class);
+            com.google.api.ProjectProperties.class, com.google.api.ProjectProperties.Builder.class);
   }
 
   public static final int PROPERTIES_FIELD_NUMBER = 1;
-  private java.util.List properties_;
+  private java.util.List properties_;
   /**
+   *
+   *
    * 
    * List of per consumer project-specific properties.
    * 
* * repeated .google.api.Property properties = 1; */ - public java.util.List getPropertiesList() { + public java.util.List getPropertiesList() { return properties_; } /** + * + * *
    * List of per consumer project-specific properties.
    * 
* * repeated .google.api.Property properties = 1; */ - public java.util.List - getPropertiesOrBuilderList() { + public java.util.List getPropertiesOrBuilderList() { return properties_; } /** + * + * *
    * List of per consumer project-specific properties.
    * 
@@ -138,29 +168,33 @@ public int getPropertiesCount() { return properties_.size(); } /** + * + * *
    * List of per consumer project-specific properties.
    * 
* * repeated .google.api.Property properties = 1; */ - public Property getProperties(int index) { + public com.google.api.Property getProperties(int index) { return properties_.get(index); } /** + * + * *
    * List of per consumer project-specific properties.
    * 
* * repeated .google.api.Property properties = 1; */ - public com.google.api.PropertyOrBuilder getPropertiesOrBuilder( - int index) { + public com.google.api.PropertyOrBuilder getPropertiesOrBuilder(int index) { return properties_.get(index); } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -170,47 +204,44 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < properties_.size(); i++) { output.writeMessage(1, properties_.get(i)); } unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < properties_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, properties_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, properties_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof ProjectProperties)) { + if (!(obj instanceof com.google.api.ProjectProperties)) { return super.equals(obj); } - ProjectProperties other = (ProjectProperties) obj; + com.google.api.ProjectProperties other = (com.google.api.ProjectProperties) obj; - if (!getPropertiesList() - .equals(other.getPropertiesList())) return false; + if (!getPropertiesList().equals(other.getPropertiesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -226,97 +257,103 @@ public int hashCode() { return hash; } - public static ProjectProperties parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.ProjectProperties parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static ProjectProperties parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.ProjectProperties parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static ProjectProperties parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.api.ProjectProperties parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static ProjectProperties parseFrom( + + public static com.google.api.ProjectProperties parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static ProjectProperties parseFrom(byte[] data) + + public static com.google.api.ProjectProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static ProjectProperties parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.ProjectProperties parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static ProjectProperties parseFrom(java.io.InputStream input) + + public static com.google.api.ProjectProperties 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 ProjectProperties parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.ProjectProperties parseFrom( + 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 ProjectProperties parseDelimitedFrom(java.io.InputStream input) + + public static com.google.api.ProjectProperties 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 ProjectProperties parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.ProjectProperties parseDelimitedFrom( + 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 ProjectProperties parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.api.ProjectProperties parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static ProjectProperties parseFrom( + + public static com.google.api.ProjectProperties 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(ProjectProperties prototype) { + + public static Builder newBuilder(com.google.api.ProjectProperties prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A descriptor for defining project properties for a service. One service may
    * have many consumer projects, and the service may want to behave differently
@@ -336,21 +373,22 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.ProjectProperties}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.ProjectProperties)
       com.google.api.ProjectPropertiesOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return ConsumerProto.internal_static_google_api_ProjectProperties_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.api.ConsumerProto.internal_static_google_api_ProjectProperties_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return ConsumerProto.internal_static_google_api_ProjectProperties_fieldAccessorTable
+      return com.google.api.ConsumerProto
+          .internal_static_google_api_ProjectProperties_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              ProjectProperties.class, Builder.class);
+              com.google.api.ProjectProperties.class,
+              com.google.api.ProjectProperties.Builder.class);
     }
 
     // Construct using com.google.api.ProjectProperties.newBuilder()
@@ -358,18 +396,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getPropertiesFieldBuilder();
       }
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       if (propertiesBuilder_ == null) {
@@ -381,29 +419,28 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return ConsumerProto.internal_static_google_api_ProjectProperties_descriptor;
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.api.ConsumerProto.internal_static_google_api_ProjectProperties_descriptor;
     }
 
-    @Override
-    public ProjectProperties getDefaultInstanceForType() {
-      return ProjectProperties.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.ProjectProperties getDefaultInstanceForType() {
+      return com.google.api.ProjectProperties.getDefaultInstance();
     }
 
-    @Override
-    public ProjectProperties build() {
-      ProjectProperties result = buildPartial();
+    @java.lang.Override
+    public com.google.api.ProjectProperties build() {
+      com.google.api.ProjectProperties result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public ProjectProperties buildPartial() {
-      ProjectProperties result = new ProjectProperties(this);
+    @java.lang.Override
+    public com.google.api.ProjectProperties buildPartial() {
+      com.google.api.ProjectProperties result = new com.google.api.ProjectProperties(this);
       int from_bitField0_ = bitField0_;
       if (propertiesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -418,50 +455,51 @@ public ProjectProperties buildPartial() {
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof ProjectProperties) {
-        return mergeFrom((ProjectProperties)other);
+      if (other instanceof com.google.api.ProjectProperties) {
+        return mergeFrom((com.google.api.ProjectProperties) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(ProjectProperties other) {
-      if (other == ProjectProperties.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.ProjectProperties other) {
+      if (other == com.google.api.ProjectProperties.getDefaultInstance()) return this;
       if (propertiesBuilder_ == null) {
         if (!other.properties_.isEmpty()) {
           if (properties_.isEmpty()) {
@@ -480,9 +518,10 @@ public Builder mergeFrom(ProjectProperties other) {
             propertiesBuilder_ = null;
             properties_ = other.properties_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            propertiesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPropertiesFieldBuilder() : null;
+            propertiesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPropertiesFieldBuilder()
+                    : null;
           } else {
             propertiesBuilder_.addAllMessages(other.properties_);
           }
@@ -493,21 +532,21 @@ public Builder mergeFrom(ProjectProperties other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      ProjectProperties parsedMessage = null;
+      com.google.api.ProjectProperties parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (ProjectProperties) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.ProjectProperties) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -516,28 +555,34 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List properties_ =
-      java.util.Collections.emptyList();
+    private java.util.List properties_ = java.util.Collections.emptyList();
+
     private void ensurePropertiesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        properties_ = new java.util.ArrayList(properties_);
+        properties_ = new java.util.ArrayList(properties_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        Property, Property.Builder, com.google.api.PropertyOrBuilder> propertiesBuilder_;
+            com.google.api.Property,
+            com.google.api.Property.Builder,
+            com.google.api.PropertyOrBuilder>
+        propertiesBuilder_;
 
     /**
+     *
+     *
      * 
      * List of per consumer project-specific properties.
      * 
* * repeated .google.api.Property properties = 1; */ - public java.util.List getPropertiesList() { + public java.util.List getPropertiesList() { if (propertiesBuilder_ == null) { return java.util.Collections.unmodifiableList(properties_); } else { @@ -545,6 +590,8 @@ public java.util.List getPropertiesList() { } } /** + * + * *
      * List of per consumer project-specific properties.
      * 
@@ -559,13 +606,15 @@ public int getPropertiesCount() { } } /** + * + * *
      * List of per consumer project-specific properties.
      * 
* * repeated .google.api.Property properties = 1; */ - public Property getProperties(int index) { + public com.google.api.Property getProperties(int index) { if (propertiesBuilder_ == null) { return properties_.get(index); } else { @@ -573,14 +622,15 @@ public Property getProperties(int index) { } } /** + * + * *
      * List of per consumer project-specific properties.
      * 
* * repeated .google.api.Property properties = 1; */ - public Builder setProperties( - int index, Property value) { + public Builder setProperties(int index, com.google.api.Property value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -594,14 +644,15 @@ public Builder setProperties( return this; } /** + * + * *
      * List of per consumer project-specific properties.
      * 
* * repeated .google.api.Property properties = 1; */ - public Builder setProperties( - int index, Property.Builder builderForValue) { + public Builder setProperties(int index, com.google.api.Property.Builder builderForValue) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.set(index, builderForValue.build()); @@ -612,13 +663,15 @@ public Builder setProperties( return this; } /** + * + * *
      * List of per consumer project-specific properties.
      * 
* * repeated .google.api.Property properties = 1; */ - public Builder addProperties(Property value) { + public Builder addProperties(com.google.api.Property value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -632,14 +685,15 @@ public Builder addProperties(Property value) { return this; } /** + * + * *
      * List of per consumer project-specific properties.
      * 
* * repeated .google.api.Property properties = 1; */ - public Builder addProperties( - int index, Property value) { + public Builder addProperties(int index, com.google.api.Property value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -653,14 +707,15 @@ public Builder addProperties( return this; } /** + * + * *
      * List of per consumer project-specific properties.
      * 
* * repeated .google.api.Property properties = 1; */ - public Builder addProperties( - Property.Builder builderForValue) { + public Builder addProperties(com.google.api.Property.Builder builderForValue) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.add(builderForValue.build()); @@ -671,14 +726,15 @@ public Builder addProperties( return this; } /** + * + * *
      * List of per consumer project-specific properties.
      * 
* * repeated .google.api.Property properties = 1; */ - public Builder addProperties( - int index, Property.Builder builderForValue) { + public Builder addProperties(int index, com.google.api.Property.Builder builderForValue) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.add(index, builderForValue.build()); @@ -689,18 +745,18 @@ public Builder addProperties( return this; } /** + * + * *
      * List of per consumer project-specific properties.
      * 
* * repeated .google.api.Property properties = 1; */ - public Builder addAllProperties( - Iterable values) { + public Builder addAllProperties(java.lang.Iterable values) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, properties_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, properties_); onChanged(); } else { propertiesBuilder_.addAllMessages(values); @@ -708,6 +764,8 @@ public Builder addAllProperties( return this; } /** + * + * *
      * List of per consumer project-specific properties.
      * 
@@ -725,6 +783,8 @@ public Builder clearProperties() { return this; } /** + * + * *
      * List of per consumer project-specific properties.
      * 
@@ -742,39 +802,43 @@ public Builder removeProperties(int index) { return this; } /** + * + * *
      * List of per consumer project-specific properties.
      * 
* * repeated .google.api.Property properties = 1; */ - public Property.Builder getPropertiesBuilder( - int index) { + public com.google.api.Property.Builder getPropertiesBuilder(int index) { return getPropertiesFieldBuilder().getBuilder(index); } /** + * + * *
      * List of per consumer project-specific properties.
      * 
* * repeated .google.api.Property properties = 1; */ - public com.google.api.PropertyOrBuilder getPropertiesOrBuilder( - int index) { + public com.google.api.PropertyOrBuilder getPropertiesOrBuilder(int index) { if (propertiesBuilder_ == null) { - return properties_.get(index); } else { + return properties_.get(index); + } else { return propertiesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of per consumer project-specific properties.
      * 
* * repeated .google.api.Property properties = 1; */ - public java.util.List - getPropertiesOrBuilderList() { + public java.util.List getPropertiesOrBuilderList() { if (propertiesBuilder_ != null) { return propertiesBuilder_.getMessageOrBuilderList(); } else { @@ -782,103 +846,107 @@ public com.google.api.PropertyOrBuilder getPropertiesOrBuilder( } } /** + * + * *
      * List of per consumer project-specific properties.
      * 
* * repeated .google.api.Property properties = 1; */ - public Property.Builder addPropertiesBuilder() { - return getPropertiesFieldBuilder().addBuilder( - Property.getDefaultInstance()); + public com.google.api.Property.Builder addPropertiesBuilder() { + return getPropertiesFieldBuilder().addBuilder(com.google.api.Property.getDefaultInstance()); } /** + * + * *
      * List of per consumer project-specific properties.
      * 
* * repeated .google.api.Property properties = 1; */ - public Property.Builder addPropertiesBuilder( - int index) { - return getPropertiesFieldBuilder().addBuilder( - index, Property.getDefaultInstance()); + public com.google.api.Property.Builder addPropertiesBuilder(int index) { + return getPropertiesFieldBuilder() + .addBuilder(index, com.google.api.Property.getDefaultInstance()); } /** + * + * *
      * List of per consumer project-specific properties.
      * 
* * repeated .google.api.Property properties = 1; */ - public java.util.List - getPropertiesBuilderList() { + public java.util.List getPropertiesBuilderList() { return getPropertiesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - Property, Property.Builder, com.google.api.PropertyOrBuilder> + com.google.api.Property, + com.google.api.Property.Builder, + com.google.api.PropertyOrBuilder> getPropertiesFieldBuilder() { if (propertiesBuilder_ == null) { - propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - Property, Property.Builder, com.google.api.PropertyOrBuilder>( - properties_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + propertiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.api.Property, + com.google.api.Property.Builder, + com.google.api.PropertyOrBuilder>( + properties_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); properties_ = null; } return propertiesBuilder_; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.ProjectProperties) } // @@protoc_insertion_point(class_scope:google.api.ProjectProperties) - private static final ProjectProperties DEFAULT_INSTANCE; + private static final com.google.api.ProjectProperties DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new ProjectProperties(); + DEFAULT_INSTANCE = new com.google.api.ProjectProperties(); } - public static ProjectProperties getDefaultInstance() { + public static com.google.api.ProjectProperties getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public ProjectProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectProperties(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectProperties(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public ProjectProperties getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.ProjectProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/ProjectPropertiesOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/ProjectPropertiesOrBuilder.java index dedbcea8..7662b298 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/ProjectPropertiesOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/ProjectPropertiesOrBuilder.java @@ -1,30 +1,51 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/consumer.proto package com.google.api; -public interface ProjectPropertiesOrBuilder extends +public interface ProjectPropertiesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.ProjectProperties) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of per consumer project-specific properties.
    * 
* * repeated .google.api.Property properties = 1; */ - java.util.List - getPropertiesList(); + java.util.List getPropertiesList(); /** + * + * *
    * List of per consumer project-specific properties.
    * 
* * repeated .google.api.Property properties = 1; */ - Property getProperties(int index); + com.google.api.Property getProperties(int index); /** + * + * *
    * List of per consumer project-specific properties.
    * 
@@ -33,21 +54,23 @@ public interface ProjectPropertiesOrBuilder extends */ int getPropertiesCount(); /** + * + * *
    * List of per consumer project-specific properties.
    * 
* * repeated .google.api.Property properties = 1; */ - java.util.List - getPropertiesOrBuilderList(); + java.util.List getPropertiesOrBuilderList(); /** + * + * *
    * List of per consumer project-specific properties.
    * 
* * repeated .google.api.Property properties = 1; */ - PropertyOrBuilder getPropertiesOrBuilder( - int index); + com.google.api.PropertyOrBuilder getPropertiesOrBuilder(int index); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/Property.java b/proto-google-common-protos/src/main/java/com/google/api/Property.java index b1154969..3d241e6b 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/Property.java +++ b/proto-google-common-protos/src/main/java/com/google/api/Property.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/consumer.proto package com.google.api; /** + * + * *
  * Defines project properties.
  * API services can define properties that can be assigned to consumer projects
@@ -17,35 +34,41 @@
  *
  * Protobuf type {@code google.api.Property}
  */
-public  final class Property extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Property extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.Property)
     PropertyOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Property.newBuilder() to construct.
   private Property(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Property() {
     name_ = "";
     type_ = 0;
     description_ = "";
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new Property();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Property(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
-    int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
         com.google.protobuf.UnknownFieldSet.newBuilder();
     try {
@@ -56,66 +79,71 @@ private Property(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
+              name_ = s;
+              break;
+            }
+          case 16:
+            {
+              int rawValue = input.readEnum();
 
-            type_ = rawValue;
-            break;
-          }
-          case 26: {
-            String s = input.readStringRequireUtf8();
+              type_ = rawValue;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            description_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              description_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.ConsumerProto.internal_static_google_api_Property_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return com.google.api.ConsumerProto.internal_static_google_api_Property_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            Property.class, Builder.class);
+            com.google.api.Property.class, com.google.api.Property.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Supported data type of the property values
    * 
* * Protobuf enum {@code google.api.Property.PropertyType} */ - public enum PropertyType - implements com.google.protobuf.ProtocolMessageEnum { + public enum PropertyType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The type is unspecified, and will result in an error.
      * 
@@ -124,6 +152,8 @@ public enum PropertyType */ UNSPECIFIED(0), /** + * + * *
      * The type is `int64`.
      * 
@@ -132,6 +162,8 @@ public enum PropertyType */ INT64(1), /** + * + * *
      * The type is `bool`.
      * 
@@ -140,6 +172,8 @@ public enum PropertyType */ BOOL(2), /** + * + * *
      * The type is `string`.
      * 
@@ -148,6 +182,8 @@ public enum PropertyType */ STRING(3), /** + * + * *
      * The type is 'double'.
      * 
@@ -159,6 +195,8 @@ public enum PropertyType ; /** + * + * *
      * The type is unspecified, and will result in an error.
      * 
@@ -167,6 +205,8 @@ public enum PropertyType */ public static final int UNSPECIFIED_VALUE = 0; /** + * + * *
      * The type is `int64`.
      * 
@@ -175,6 +215,8 @@ public enum PropertyType */ public static final int INT64_VALUE = 1; /** + * + * *
      * The type is `bool`.
      * 
@@ -183,6 +225,8 @@ public enum PropertyType */ public static final int BOOL_VALUE = 2; /** + * + * *
      * The type is `string`.
      * 
@@ -191,6 +235,8 @@ public enum PropertyType */ public static final int STRING_VALUE = 3; /** + * + * *
      * The type is 'double'.
      * 
@@ -199,66 +245,73 @@ public enum PropertyType */ public static final int DOUBLE_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { - throw new IllegalArgumentException( + throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ - @Deprecated + @java.lang.Deprecated public static PropertyType valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static PropertyType forNumber(int value) { switch (value) { - case 0: return UNSPECIFIED; - case 1: return INT64; - case 2: return BOOL; - case 3: return STRING; - case 4: return DOUBLE; - default: return null; + case 0: + return UNSPECIFIED; + case 1: + return INT64; + case 2: + return BOOL; + case 3: + return STRING; + case 4: + return DOUBLE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - PropertyType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public PropertyType findValueByNumber(int number) { - return PropertyType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PropertyType findValueByNumber(int number) { + return PropertyType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return Property.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.api.Property.getDescriptor().getEnumTypes().get(0); } private static final PropertyType[] VALUES = values(); - public static PropertyType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static PropertyType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -276,40 +329,45 @@ private PropertyType(int value) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile Object name_; + private volatile java.lang.Object name_; /** + * + * *
    * The name of the property (a.k.a key).
    * 
* * string name = 1; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the property (a.k.a key).
    * 
* * string name = 1; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -320,63 +378,77 @@ public String getName() { public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** + * + * *
    * The type of this property.
    * 
* * .google.api.Property.PropertyType type = 2; + * + * @return The enum numeric value on the wire for type. */ public int getTypeValue() { return type_; } /** + * + * *
    * The type of this property.
    * 
* * .google.api.Property.PropertyType type = 2; + * + * @return The type. */ - public PropertyType getType() { + public com.google.api.Property.PropertyType getType() { @SuppressWarnings("deprecation") - PropertyType result = PropertyType.valueOf(type_); - return result == null ? PropertyType.UNRECOGNIZED : result; + com.google.api.Property.PropertyType result = + com.google.api.Property.PropertyType.valueOf(type_); + return result == null ? com.google.api.Property.PropertyType.UNRECOGNIZED : result; } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile Object description_; + private volatile java.lang.Object description_; /** + * + * *
    * The description of the property
    * 
* * string description = 3; + * + * @return The description. */ - public String getDescription() { - Object ref = description_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * The description of the property
    * 
* * string description = 3; + * + * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + 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); description_ = b; return b; } else { @@ -385,7 +457,8 @@ public String getDescription() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -395,13 +468,12 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (type_ != PropertyType.UNSPECIFIED.getNumber()) { + if (type_ != com.google.api.Property.PropertyType.UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } if (!getDescriptionBytes().isEmpty()) { @@ -410,7 +482,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -419,9 +491,8 @@ public int getSerializedSize() { if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (type_ != PropertyType.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); + if (type_ != com.google.api.Property.PropertyType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } if (!getDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); @@ -431,26 +502,24 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof Property)) { + if (!(obj instanceof com.google.api.Property)) { return super.equals(obj); } - Property other = (Property) obj; + com.google.api.Property other = (com.google.api.Property) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (type_ != other.type_) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -468,97 +537,103 @@ public int hashCode() { return hash; } - public static Property parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.Property parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Property parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Property parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Property parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.api.Property parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Property parseFrom( + + public static com.google.api.Property parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Property parseFrom(byte[] data) + + public static com.google.api.Property parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Property parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Property parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Property parseFrom(java.io.InputStream input) + + public static com.google.api.Property 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 Property parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Property parseFrom( + 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 Property parseDelimitedFrom(java.io.InputStream input) + + public static com.google.api.Property 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 Property parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Property parseDelimitedFrom( + 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 Property parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.api.Property 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 Property parseFrom( + + public static com.google.api.Property 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(Property prototype) { + + public static Builder newBuilder(com.google.api.Property prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Defines project properties.
    * API services can define properties that can be assigned to consumer projects
@@ -572,21 +647,20 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.Property}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.Property)
       com.google.api.PropertyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.api.ConsumerProto.internal_static_google_api_Property_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return com.google.api.ConsumerProto.internal_static_google_api_Property_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              Property.class, Builder.class);
+              com.google.api.Property.class, com.google.api.Property.Builder.class);
     }
 
     // Construct using com.google.api.Property.newBuilder()
@@ -594,17 +668,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       name_ = "";
@@ -616,29 +689,28 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.api.ConsumerProto.internal_static_google_api_Property_descriptor;
     }
 
-    @Override
-    public Property getDefaultInstanceForType() {
-      return Property.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.Property getDefaultInstanceForType() {
+      return com.google.api.Property.getDefaultInstance();
     }
 
-    @Override
-    public Property build() {
-      Property result = buildPartial();
+    @java.lang.Override
+    public com.google.api.Property build() {
+      com.google.api.Property result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public Property buildPartial() {
-      Property result = new Property(this);
+    @java.lang.Override
+    public com.google.api.Property buildPartial() {
+      com.google.api.Property result = new com.google.api.Property(this);
       result.name_ = name_;
       result.type_ = type_;
       result.description_ = description_;
@@ -646,50 +718,51 @@ public Property buildPartial() {
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof Property) {
-        return mergeFrom((Property)other);
+      if (other instanceof com.google.api.Property) {
+        return mergeFrom((com.google.api.Property) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(Property other) {
-      if (other == Property.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.Property other) {
+      if (other == com.google.api.Property.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -706,21 +779,21 @@ public Builder mergeFrom(Property other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      Property parsedMessage = null;
+      com.google.api.Property parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (Property) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.Property) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -730,40 +803,45 @@ public Builder mergeFrom(
       return this;
     }
 
-    private Object name_ = "";
+    private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The name of the property (a.k.a key).
      * 
* * string name = 1; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The name of the property (a.k.a key).
      * 
* * string name = 1; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -771,49 +849,61 @@ public String getName() { } } /** + * + * *
      * The name of the property (a.k.a key).
      * 
* * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ - public Builder setName( - String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The name of the property (a.k.a key).
      * 
* * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The name of the property (a.k.a key).
      * 
* * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -821,21 +911,30 @@ public Builder setNameBytes( private int type_ = 0; /** + * + * *
      * The type of this property.
      * 
* * .google.api.Property.PropertyType type = 2; + * + * @return The enum numeric value on the wire for type. */ public int getTypeValue() { return type_; } /** + * + * *
      * The type of this property.
      * 
* * .google.api.Property.PropertyType type = 2; + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; @@ -843,81 +942,100 @@ public Builder setTypeValue(int value) { return this; } /** + * + * *
      * The type of this property.
      * 
* * .google.api.Property.PropertyType type = 2; + * + * @return The type. */ - public PropertyType getType() { + public com.google.api.Property.PropertyType getType() { @SuppressWarnings("deprecation") - PropertyType result = PropertyType.valueOf(type_); - return result == null ? PropertyType.UNRECOGNIZED : result; + com.google.api.Property.PropertyType result = + com.google.api.Property.PropertyType.valueOf(type_); + return result == null ? com.google.api.Property.PropertyType.UNRECOGNIZED : result; } /** + * + * *
      * The type of this property.
      * 
* * .google.api.Property.PropertyType type = 2; + * + * @param value The type to set. + * @return This builder for chaining. */ - public Builder setType(PropertyType value) { + public Builder setType(com.google.api.Property.PropertyType value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The type of this property.
      * 
* * .google.api.Property.PropertyType type = 2; + * + * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private Object description_ = ""; + private java.lang.Object description_ = ""; /** + * + * *
      * The description of the property
      * 
* * string description = 3; + * + * @return The description. */ - public String getDescription() { - Object ref = description_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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; + java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The description of the property
      * 
* * string description = 3; + * + * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - Object ref = description_; + 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( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -925,103 +1043,113 @@ public String getDescription() { } } /** + * + * *
      * The description of the property
      * 
* * string description = 3; + * + * @param value The description to set. + * @return This builder for chaining. */ - public Builder setDescription( - String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * The description of the property
      * 
* * string description = 3; + * + * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * The description of the property
      * 
* * string description = 3; + * + * @param value The bytes for description to set. + * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.Property) } // @@protoc_insertion_point(class_scope:google.api.Property) - private static final Property DEFAULT_INSTANCE; + private static final com.google.api.Property DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new Property(); + DEFAULT_INSTANCE = new com.google.api.Property(); } - public static Property getDefaultInstance() { + public static com.google.api.Property getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public Property parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Property(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Property parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Property(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public Property getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.Property getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/PropertyOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/PropertyOrBuilder.java index 73606ea0..c537871c 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/PropertyOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/PropertyOrBuilder.java @@ -1,62 +1,100 @@ +/* + * 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/consumer.proto package com.google.api; -public interface PropertyOrBuilder extends +public interface PropertyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.Property) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the property (a.k.a key).
    * 
* * string name = 1; + * + * @return The name. */ - String getName(); + java.lang.String getName(); /** + * + * *
    * The name of the property (a.k.a key).
    * 
* * string name = 1; + * + * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The type of this property.
    * 
* * .google.api.Property.PropertyType type = 2; + * + * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * The type of this property.
    * 
* * .google.api.Property.PropertyType type = 2; + * + * @return The type. */ - Property.PropertyType getType(); + com.google.api.Property.PropertyType getType(); /** + * + * *
    * The description of the property
    * 
* * string description = 3; + * + * @return The description. */ - String getDescription(); + java.lang.String getDescription(); /** + * + * *
    * The description of the property
    * 
* * string description = 3; + * + * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/Quota.java b/proto-google-common-protos/src/main/java/com/google/api/Quota.java index 743cf246..354008bc 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/Quota.java +++ b/proto-google-common-protos/src/main/java/com/google/api/Quota.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/quota.proto package com.google.api; /** + * + * *
  * Quota configuration helps to achieve fairness and budgeting in service
  * usage.
@@ -49,32 +66,39 @@
  *
  * Protobuf type {@code google.api.Quota}
  */
-public  final class Quota extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Quota extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.Quota)
     QuotaOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Quota.newBuilder() to construct.
   private Quota(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Quota() {
     limits_ = java.util.Collections.emptyList();
     metricRules_ = java.util.Collections.emptyList();
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new Quota();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Quota(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -87,38 +111,38 @@ private Quota(
           case 0:
             done = true;
             break;
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              limits_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                limits_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              limits_.add(input.readMessage(com.google.api.QuotaLimit.parser(), extensionRegistry));
+              break;
             }
-            limits_.add(
-                input.readMessage(com.google.api.QuotaLimit.parser(), extensionRegistry));
-            break;
-          }
-          case 34: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              metricRules_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
+          case 34:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                metricRules_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              metricRules_.add(
+                  input.readMessage(com.google.api.MetricRule.parser(), extensionRegistry));
+              break;
             }
-            metricRules_.add(
-                input.readMessage(com.google.api.MetricRule.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         limits_ = java.util.Collections.unmodifiableList(limits_);
@@ -130,22 +154,24 @@ private Quota(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.QuotaProto.internal_static_google_api_Quota_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return com.google.api.QuotaProto.internal_static_google_api_Quota_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            Quota.class, Builder.class);
+            com.google.api.Quota.class, com.google.api.Quota.Builder.class);
   }
 
   public static final int LIMITS_FIELD_NUMBER = 3;
   private java.util.List limits_;
   /**
+   *
+   *
    * 
    * List of `QuotaLimit` definitions for the service.
    * 
@@ -156,17 +182,20 @@ public java.util.List getLimitsList() { return limits_; } /** + * + * *
    * List of `QuotaLimit` definitions for the service.
    * 
* * repeated .google.api.QuotaLimit limits = 3; */ - public java.util.List - getLimitsOrBuilderList() { + public java.util.List getLimitsOrBuilderList() { return limits_; } /** + * + * *
    * List of `QuotaLimit` definitions for the service.
    * 
@@ -177,6 +206,8 @@ public int getLimitsCount() { return limits_.size(); } /** + * + * *
    * List of `QuotaLimit` definitions for the service.
    * 
@@ -187,20 +218,23 @@ public com.google.api.QuotaLimit getLimits(int index) { return limits_.get(index); } /** + * + * *
    * List of `QuotaLimit` definitions for the service.
    * 
* * repeated .google.api.QuotaLimit limits = 3; */ - public com.google.api.QuotaLimitOrBuilder getLimitsOrBuilder( - int index) { + public com.google.api.QuotaLimitOrBuilder getLimitsOrBuilder(int index) { return limits_.get(index); } public static final int METRIC_RULES_FIELD_NUMBER = 4; private java.util.List metricRules_; /** + * + * *
    * List of `MetricRule` definitions, each one mapping a selected method to one
    * or more metrics.
@@ -212,6 +246,8 @@ public java.util.List getMetricRulesList() {
     return metricRules_;
   }
   /**
+   *
+   *
    * 
    * List of `MetricRule` definitions, each one mapping a selected method to one
    * or more metrics.
@@ -219,11 +255,13 @@ public java.util.List getMetricRulesList() {
    *
    * repeated .google.api.MetricRule metric_rules = 4;
    */
-  public java.util.List 
+  public java.util.List
       getMetricRulesOrBuilderList() {
     return metricRules_;
   }
   /**
+   *
+   *
    * 
    * List of `MetricRule` definitions, each one mapping a selected method to one
    * or more metrics.
@@ -235,6 +273,8 @@ public int getMetricRulesCount() {
     return metricRules_.size();
   }
   /**
+   *
+   *
    * 
    * List of `MetricRule` definitions, each one mapping a selected method to one
    * or more metrics.
@@ -246,6 +286,8 @@ public com.google.api.MetricRule getMetricRules(int index) {
     return metricRules_.get(index);
   }
   /**
+   *
+   *
    * 
    * List of `MetricRule` definitions, each one mapping a selected method to one
    * or more metrics.
@@ -253,13 +295,13 @@ public com.google.api.MetricRule getMetricRules(int index) {
    *
    * repeated .google.api.MetricRule metric_rules = 4;
    */
-  public com.google.api.MetricRuleOrBuilder getMetricRulesOrBuilder(
-      int index) {
+  public com.google.api.MetricRuleOrBuilder getMetricRulesOrBuilder(int index) {
     return metricRules_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-  @Override
+
+  @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
     if (isInitialized == 1) return true;
@@ -269,9 +311,8 @@ public final boolean isInitialized() {
     return true;
   }
 
-  @Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  @java.lang.Override
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < limits_.size(); i++) {
       output.writeMessage(3, limits_.get(i));
     }
@@ -281,44 +322,40 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     unknownFields.writeTo(output);
   }
 
-  @Override
+  @java.lang.Override
   public int getSerializedSize() {
     int size = memoizedSize;
     if (size != -1) return size;
 
     size = 0;
     for (int i = 0; i < limits_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, limits_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, limits_.get(i));
     }
     for (int i = 0; i < metricRules_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, metricRules_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, metricRules_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
     return size;
   }
 
-  @Override
-  public boolean equals(final Object obj) {
+  @java.lang.Override
+  public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
-    if (!(obj instanceof Quota)) {
+    if (!(obj instanceof com.google.api.Quota)) {
       return super.equals(obj);
     }
-    Quota other = (Quota) obj;
+    com.google.api.Quota other = (com.google.api.Quota) obj;
 
-    if (!getLimitsList()
-        .equals(other.getLimitsList())) return false;
-    if (!getMetricRulesList()
-        .equals(other.getMetricRulesList())) return false;
+    if (!getLimitsList().equals(other.getLimitsList())) return false;
+    if (!getMetricRulesList().equals(other.getMetricRulesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
 
-  @Override
+  @java.lang.Override
   public int hashCode() {
     if (memoizedHashCode != 0) {
       return memoizedHashCode;
@@ -338,97 +375,103 @@ public int hashCode() {
     return hash;
   }
 
-  public static Quota parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.api.Quota parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Quota parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Quota parseFrom(
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Quota parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.api.Quota parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Quota parseFrom(
+
+  public static com.google.api.Quota parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Quota parseFrom(byte[] data)
+
+  public static com.google.api.Quota parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Quota parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Quota parseFrom(
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Quota parseFrom(java.io.InputStream input)
+
+  public static com.google.api.Quota 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 Quota parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Quota parseFrom(
+      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 Quota parseDelimitedFrom(java.io.InputStream input)
+
+  public static com.google.api.Quota 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 Quota parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.Quota parseDelimitedFrom(
+      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 Quota parseFrom(
-      com.google.protobuf.CodedInputStream input)
+
+  public static com.google.api.Quota 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 Quota parseFrom(
+
+  public static com.google.api.Quota 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();
   }
 
-  @Override
-  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(Quota prototype) {
+
+  public static Builder newBuilder(com.google.api.Quota prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-  @Override
+
+  @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);
   }
 
-  @Override
-  protected Builder newBuilderForType(
-      BuilderParent parent) {
+  @java.lang.Override
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Quota configuration helps to achieve fairness and budgeting in service
    * usage.
@@ -474,21 +517,20 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.Quota}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.Quota)
       com.google.api.QuotaOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.api.QuotaProto.internal_static_google_api_Quota_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return com.google.api.QuotaProto.internal_static_google_api_Quota_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              Quota.class, Builder.class);
+              com.google.api.Quota.class, com.google.api.Quota.Builder.class);
     }
 
     // Construct using com.google.api.Quota.newBuilder()
@@ -496,19 +538,19 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getLimitsFieldBuilder();
         getMetricRulesFieldBuilder();
       }
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       if (limitsBuilder_ == null) {
@@ -526,29 +568,28 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.api.QuotaProto.internal_static_google_api_Quota_descriptor;
     }
 
-    @Override
-    public Quota getDefaultInstanceForType() {
-      return Quota.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.Quota getDefaultInstanceForType() {
+      return com.google.api.Quota.getDefaultInstance();
     }
 
-    @Override
-    public Quota build() {
-      Quota result = buildPartial();
+    @java.lang.Override
+    public com.google.api.Quota build() {
+      com.google.api.Quota result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public Quota buildPartial() {
-      Quota result = new Quota(this);
+    @java.lang.Override
+    public com.google.api.Quota buildPartial() {
+      com.google.api.Quota result = new com.google.api.Quota(this);
       int from_bitField0_ = bitField0_;
       if (limitsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -572,50 +613,51 @@ public Quota buildPartial() {
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof Quota) {
-        return mergeFrom((Quota)other);
+      if (other instanceof com.google.api.Quota) {
+        return mergeFrom((com.google.api.Quota) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(Quota other) {
-      if (other == Quota.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.Quota other) {
+      if (other == com.google.api.Quota.getDefaultInstance()) return this;
       if (limitsBuilder_ == null) {
         if (!other.limits_.isEmpty()) {
           if (limits_.isEmpty()) {
@@ -634,9 +676,10 @@ public Builder mergeFrom(Quota other) {
             limitsBuilder_ = null;
             limits_ = other.limits_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            limitsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getLimitsFieldBuilder() : null;
+            limitsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getLimitsFieldBuilder()
+                    : null;
           } else {
             limitsBuilder_.addAllMessages(other.limits_);
           }
@@ -660,9 +703,10 @@ public Builder mergeFrom(Quota other) {
             metricRulesBuilder_ = null;
             metricRules_ = other.metricRules_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            metricRulesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getMetricRulesFieldBuilder() : null;
+            metricRulesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getMetricRulesFieldBuilder()
+                    : null;
           } else {
             metricRulesBuilder_.addAllMessages(other.metricRules_);
           }
@@ -673,21 +717,21 @@ public Builder mergeFrom(Quota other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      Quota parsedMessage = null;
+      com.google.api.Quota parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (Quota) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.Quota) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -696,21 +740,27 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List limits_ =
-      java.util.Collections.emptyList();
+    private java.util.List limits_ = java.util.Collections.emptyList();
+
     private void ensureLimitsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         limits_ = new java.util.ArrayList(limits_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.api.QuotaLimit, com.google.api.QuotaLimit.Builder, com.google.api.QuotaLimitOrBuilder> limitsBuilder_;
+            com.google.api.QuotaLimit,
+            com.google.api.QuotaLimit.Builder,
+            com.google.api.QuotaLimitOrBuilder>
+        limitsBuilder_;
 
     /**
+     *
+     *
      * 
      * List of `QuotaLimit` definitions for the service.
      * 
@@ -725,6 +775,8 @@ public java.util.List getLimitsList() { } } /** + * + * *
      * List of `QuotaLimit` definitions for the service.
      * 
@@ -739,6 +791,8 @@ public int getLimitsCount() { } } /** + * + * *
      * List of `QuotaLimit` definitions for the service.
      * 
@@ -753,14 +807,15 @@ public com.google.api.QuotaLimit getLimits(int index) { } } /** + * + * *
      * List of `QuotaLimit` definitions for the service.
      * 
* * repeated .google.api.QuotaLimit limits = 3; */ - public Builder setLimits( - int index, com.google.api.QuotaLimit value) { + public Builder setLimits(int index, com.google.api.QuotaLimit value) { if (limitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -774,14 +829,15 @@ public Builder setLimits( return this; } /** + * + * *
      * List of `QuotaLimit` definitions for the service.
      * 
* * repeated .google.api.QuotaLimit limits = 3; */ - public Builder setLimits( - int index, com.google.api.QuotaLimit.Builder builderForValue) { + public Builder setLimits(int index, com.google.api.QuotaLimit.Builder builderForValue) { if (limitsBuilder_ == null) { ensureLimitsIsMutable(); limits_.set(index, builderForValue.build()); @@ -792,6 +848,8 @@ public Builder setLimits( return this; } /** + * + * *
      * List of `QuotaLimit` definitions for the service.
      * 
@@ -812,14 +870,15 @@ public Builder addLimits(com.google.api.QuotaLimit value) { return this; } /** + * + * *
      * List of `QuotaLimit` definitions for the service.
      * 
* * repeated .google.api.QuotaLimit limits = 3; */ - public Builder addLimits( - int index, com.google.api.QuotaLimit value) { + public Builder addLimits(int index, com.google.api.QuotaLimit value) { if (limitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -833,14 +892,15 @@ public Builder addLimits( return this; } /** + * + * *
      * List of `QuotaLimit` definitions for the service.
      * 
* * repeated .google.api.QuotaLimit limits = 3; */ - public Builder addLimits( - com.google.api.QuotaLimit.Builder builderForValue) { + public Builder addLimits(com.google.api.QuotaLimit.Builder builderForValue) { if (limitsBuilder_ == null) { ensureLimitsIsMutable(); limits_.add(builderForValue.build()); @@ -851,14 +911,15 @@ public Builder addLimits( return this; } /** + * + * *
      * List of `QuotaLimit` definitions for the service.
      * 
* * repeated .google.api.QuotaLimit limits = 3; */ - public Builder addLimits( - int index, com.google.api.QuotaLimit.Builder builderForValue) { + public Builder addLimits(int index, com.google.api.QuotaLimit.Builder builderForValue) { if (limitsBuilder_ == null) { ensureLimitsIsMutable(); limits_.add(index, builderForValue.build()); @@ -869,18 +930,18 @@ public Builder addLimits( return this; } /** + * + * *
      * List of `QuotaLimit` definitions for the service.
      * 
* * repeated .google.api.QuotaLimit limits = 3; */ - public Builder addAllLimits( - Iterable values) { + public Builder addAllLimits(java.lang.Iterable values) { if (limitsBuilder_ == null) { ensureLimitsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, limits_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, limits_); onChanged(); } else { limitsBuilder_.addAllMessages(values); @@ -888,6 +949,8 @@ public Builder addAllLimits( return this; } /** + * + * *
      * List of `QuotaLimit` definitions for the service.
      * 
@@ -905,6 +968,8 @@ public Builder clearLimits() { return this; } /** + * + * *
      * List of `QuotaLimit` definitions for the service.
      * 
@@ -922,39 +987,43 @@ public Builder removeLimits(int index) { return this; } /** + * + * *
      * List of `QuotaLimit` definitions for the service.
      * 
* * repeated .google.api.QuotaLimit limits = 3; */ - public com.google.api.QuotaLimit.Builder getLimitsBuilder( - int index) { + public com.google.api.QuotaLimit.Builder getLimitsBuilder(int index) { return getLimitsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of `QuotaLimit` definitions for the service.
      * 
* * repeated .google.api.QuotaLimit limits = 3; */ - public com.google.api.QuotaLimitOrBuilder getLimitsOrBuilder( - int index) { + public com.google.api.QuotaLimitOrBuilder getLimitsOrBuilder(int index) { if (limitsBuilder_ == null) { - return limits_.get(index); } else { + return limits_.get(index); + } else { return limitsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of `QuotaLimit` definitions for the service.
      * 
* * repeated .google.api.QuotaLimit limits = 3; */ - public java.util.List - getLimitsOrBuilderList() { + public java.util.List getLimitsOrBuilderList() { if (limitsBuilder_ != null) { return limitsBuilder_.getMessageOrBuilderList(); } else { @@ -962,6 +1031,8 @@ public com.google.api.QuotaLimitOrBuilder getLimitsOrBuilder( } } /** + * + * *
      * List of `QuotaLimit` definitions for the service.
      * 
@@ -969,60 +1040,70 @@ public com.google.api.QuotaLimitOrBuilder getLimitsOrBuilder( * repeated .google.api.QuotaLimit limits = 3; */ public com.google.api.QuotaLimit.Builder addLimitsBuilder() { - return getLimitsFieldBuilder().addBuilder( - com.google.api.QuotaLimit.getDefaultInstance()); + return getLimitsFieldBuilder().addBuilder(com.google.api.QuotaLimit.getDefaultInstance()); } /** + * + * *
      * List of `QuotaLimit` definitions for the service.
      * 
* * repeated .google.api.QuotaLimit limits = 3; */ - public com.google.api.QuotaLimit.Builder addLimitsBuilder( - int index) { - return getLimitsFieldBuilder().addBuilder( - index, com.google.api.QuotaLimit.getDefaultInstance()); + public com.google.api.QuotaLimit.Builder addLimitsBuilder(int index) { + return getLimitsFieldBuilder() + .addBuilder(index, com.google.api.QuotaLimit.getDefaultInstance()); } /** + * + * *
      * List of `QuotaLimit` definitions for the service.
      * 
* * repeated .google.api.QuotaLimit limits = 3; */ - public java.util.List - getLimitsBuilderList() { + public java.util.List getLimitsBuilderList() { return getLimitsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.QuotaLimit, com.google.api.QuotaLimit.Builder, com.google.api.QuotaLimitOrBuilder> + com.google.api.QuotaLimit, + com.google.api.QuotaLimit.Builder, + com.google.api.QuotaLimitOrBuilder> getLimitsFieldBuilder() { if (limitsBuilder_ == null) { - limitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.QuotaLimit, com.google.api.QuotaLimit.Builder, com.google.api.QuotaLimitOrBuilder>( - limits_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + limitsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.api.QuotaLimit, + com.google.api.QuotaLimit.Builder, + com.google.api.QuotaLimitOrBuilder>( + limits_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); limits_ = null; } return limitsBuilder_; } private java.util.List metricRules_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMetricRulesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { metricRules_ = new java.util.ArrayList(metricRules_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.MetricRule, com.google.api.MetricRule.Builder, com.google.api.MetricRuleOrBuilder> metricRulesBuilder_; + com.google.api.MetricRule, + com.google.api.MetricRule.Builder, + com.google.api.MetricRuleOrBuilder> + metricRulesBuilder_; /** + * + * *
      * List of `MetricRule` definitions, each one mapping a selected method to one
      * or more metrics.
@@ -1038,6 +1119,8 @@ public java.util.List getMetricRulesList() {
       }
     }
     /**
+     *
+     *
      * 
      * List of `MetricRule` definitions, each one mapping a selected method to one
      * or more metrics.
@@ -1053,6 +1136,8 @@ public int getMetricRulesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * List of `MetricRule` definitions, each one mapping a selected method to one
      * or more metrics.
@@ -1068,6 +1153,8 @@ public com.google.api.MetricRule getMetricRules(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * List of `MetricRule` definitions, each one mapping a selected method to one
      * or more metrics.
@@ -1075,8 +1162,7 @@ public com.google.api.MetricRule getMetricRules(int index) {
      *
      * repeated .google.api.MetricRule metric_rules = 4;
      */
-    public Builder setMetricRules(
-        int index, com.google.api.MetricRule value) {
+    public Builder setMetricRules(int index, com.google.api.MetricRule value) {
       if (metricRulesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1090,6 +1176,8 @@ public Builder setMetricRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of `MetricRule` definitions, each one mapping a selected method to one
      * or more metrics.
@@ -1097,8 +1185,7 @@ public Builder setMetricRules(
      *
      * repeated .google.api.MetricRule metric_rules = 4;
      */
-    public Builder setMetricRules(
-        int index, com.google.api.MetricRule.Builder builderForValue) {
+    public Builder setMetricRules(int index, com.google.api.MetricRule.Builder builderForValue) {
       if (metricRulesBuilder_ == null) {
         ensureMetricRulesIsMutable();
         metricRules_.set(index, builderForValue.build());
@@ -1109,6 +1196,8 @@ public Builder setMetricRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of `MetricRule` definitions, each one mapping a selected method to one
      * or more metrics.
@@ -1130,6 +1219,8 @@ public Builder addMetricRules(com.google.api.MetricRule value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of `MetricRule` definitions, each one mapping a selected method to one
      * or more metrics.
@@ -1137,8 +1228,7 @@ public Builder addMetricRules(com.google.api.MetricRule value) {
      *
      * repeated .google.api.MetricRule metric_rules = 4;
      */
-    public Builder addMetricRules(
-        int index, com.google.api.MetricRule value) {
+    public Builder addMetricRules(int index, com.google.api.MetricRule value) {
       if (metricRulesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1152,6 +1242,8 @@ public Builder addMetricRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of `MetricRule` definitions, each one mapping a selected method to one
      * or more metrics.
@@ -1159,8 +1251,7 @@ public Builder addMetricRules(
      *
      * repeated .google.api.MetricRule metric_rules = 4;
      */
-    public Builder addMetricRules(
-        com.google.api.MetricRule.Builder builderForValue) {
+    public Builder addMetricRules(com.google.api.MetricRule.Builder builderForValue) {
       if (metricRulesBuilder_ == null) {
         ensureMetricRulesIsMutable();
         metricRules_.add(builderForValue.build());
@@ -1171,6 +1262,8 @@ public Builder addMetricRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of `MetricRule` definitions, each one mapping a selected method to one
      * or more metrics.
@@ -1178,8 +1271,7 @@ public Builder addMetricRules(
      *
      * repeated .google.api.MetricRule metric_rules = 4;
      */
-    public Builder addMetricRules(
-        int index, com.google.api.MetricRule.Builder builderForValue) {
+    public Builder addMetricRules(int index, com.google.api.MetricRule.Builder builderForValue) {
       if (metricRulesBuilder_ == null) {
         ensureMetricRulesIsMutable();
         metricRules_.add(index, builderForValue.build());
@@ -1190,6 +1282,8 @@ public Builder addMetricRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of `MetricRule` definitions, each one mapping a selected method to one
      * or more metrics.
@@ -1198,11 +1292,10 @@ public Builder addMetricRules(
      * repeated .google.api.MetricRule metric_rules = 4;
      */
     public Builder addAllMetricRules(
-        Iterable values) {
+        java.lang.Iterable values) {
       if (metricRulesBuilder_ == null) {
         ensureMetricRulesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, metricRules_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricRules_);
         onChanged();
       } else {
         metricRulesBuilder_.addAllMessages(values);
@@ -1210,6 +1303,8 @@ public Builder addAllMetricRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of `MetricRule` definitions, each one mapping a selected method to one
      * or more metrics.
@@ -1228,6 +1323,8 @@ public Builder clearMetricRules() {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of `MetricRule` definitions, each one mapping a selected method to one
      * or more metrics.
@@ -1246,6 +1343,8 @@ public Builder removeMetricRules(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of `MetricRule` definitions, each one mapping a selected method to one
      * or more metrics.
@@ -1253,11 +1352,12 @@ public Builder removeMetricRules(int index) {
      *
      * repeated .google.api.MetricRule metric_rules = 4;
      */
-    public com.google.api.MetricRule.Builder getMetricRulesBuilder(
-        int index) {
+    public com.google.api.MetricRule.Builder getMetricRulesBuilder(int index) {
       return getMetricRulesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * List of `MetricRule` definitions, each one mapping a selected method to one
      * or more metrics.
@@ -1265,14 +1365,16 @@ public com.google.api.MetricRule.Builder getMetricRulesBuilder(
      *
      * repeated .google.api.MetricRule metric_rules = 4;
      */
-    public com.google.api.MetricRuleOrBuilder getMetricRulesOrBuilder(
-        int index) {
+    public com.google.api.MetricRuleOrBuilder getMetricRulesOrBuilder(int index) {
       if (metricRulesBuilder_ == null) {
-        return metricRules_.get(index);  } else {
+        return metricRules_.get(index);
+      } else {
         return metricRulesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * List of `MetricRule` definitions, each one mapping a selected method to one
      * or more metrics.
@@ -1280,8 +1382,8 @@ public com.google.api.MetricRuleOrBuilder getMetricRulesOrBuilder(
      *
      * repeated .google.api.MetricRule metric_rules = 4;
      */
-    public java.util.List 
-         getMetricRulesOrBuilderList() {
+    public java.util.List
+        getMetricRulesOrBuilderList() {
       if (metricRulesBuilder_ != null) {
         return metricRulesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1289,6 +1391,8 @@ public com.google.api.MetricRuleOrBuilder getMetricRulesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * List of `MetricRule` definitions, each one mapping a selected method to one
      * or more metrics.
@@ -1297,10 +1401,12 @@ public com.google.api.MetricRuleOrBuilder getMetricRulesOrBuilder(
      * repeated .google.api.MetricRule metric_rules = 4;
      */
     public com.google.api.MetricRule.Builder addMetricRulesBuilder() {
-      return getMetricRulesFieldBuilder().addBuilder(
-          com.google.api.MetricRule.getDefaultInstance());
+      return getMetricRulesFieldBuilder()
+          .addBuilder(com.google.api.MetricRule.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * List of `MetricRule` definitions, each one mapping a selected method to one
      * or more metrics.
@@ -1308,12 +1414,13 @@ public com.google.api.MetricRule.Builder addMetricRulesBuilder() {
      *
      * repeated .google.api.MetricRule metric_rules = 4;
      */
-    public com.google.api.MetricRule.Builder addMetricRulesBuilder(
-        int index) {
-      return getMetricRulesFieldBuilder().addBuilder(
-          index, com.google.api.MetricRule.getDefaultInstance());
+    public com.google.api.MetricRule.Builder addMetricRulesBuilder(int index) {
+      return getMetricRulesFieldBuilder()
+          .addBuilder(index, com.google.api.MetricRule.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * List of `MetricRule` definitions, each one mapping a selected method to one
      * or more metrics.
@@ -1321,74 +1428,74 @@ public com.google.api.MetricRule.Builder addMetricRulesBuilder(
      *
      * repeated .google.api.MetricRule metric_rules = 4;
      */
-    public java.util.List 
-         getMetricRulesBuilderList() {
+    public java.util.List getMetricRulesBuilderList() {
       return getMetricRulesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.api.MetricRule, com.google.api.MetricRule.Builder, com.google.api.MetricRuleOrBuilder> 
+            com.google.api.MetricRule,
+            com.google.api.MetricRule.Builder,
+            com.google.api.MetricRuleOrBuilder>
         getMetricRulesFieldBuilder() {
       if (metricRulesBuilder_ == null) {
-        metricRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.api.MetricRule, com.google.api.MetricRule.Builder, com.google.api.MetricRuleOrBuilder>(
-                metricRules_,
-                ((bitField0_ & 0x00000002) != 0),
-                getParentForChildren(),
-                isClean());
+        metricRulesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.api.MetricRule,
+                com.google.api.MetricRule.Builder,
+                com.google.api.MetricRuleOrBuilder>(
+                metricRules_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
         metricRules_ = null;
       }
       return metricRulesBuilder_;
     }
-    @Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+
+    @java.lang.Override
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
-    @Override
+    @java.lang.Override
     public final Builder mergeUnknownFields(
         final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.api.Quota)
   }
 
   // @@protoc_insertion_point(class_scope:google.api.Quota)
-  private static final Quota DEFAULT_INSTANCE;
+  private static final com.google.api.Quota DEFAULT_INSTANCE;
+
   static {
-    DEFAULT_INSTANCE = new Quota();
+    DEFAULT_INSTANCE = new com.google.api.Quota();
   }
 
-  public static Quota getDefaultInstance() {
+  public static com.google.api.Quota getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @Override
-    public Quota parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Quota(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Quota parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Quota(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
   }
 
-  @Override
+  @java.lang.Override
   public com.google.protobuf.Parser getParserForType() {
     return PARSER;
   }
 
-  @Override
-  public Quota getDefaultInstanceForType() {
+  @java.lang.Override
+  public com.google.api.Quota getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-common-protos/src/main/java/com/google/api/QuotaLimit.java b/proto-google-common-protos/src/main/java/com/google/api/QuotaLimit.java
index d9094d12..007e685a 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/QuotaLimit.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/QuotaLimit.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/quota.proto
 
 package com.google.api;
 
 /**
+ *
+ *
  * 
  * `QuotaLimit` defines a specific limit that applies over a specified duration
  * for a limit type. There can be at most one limit for a duration and limit
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.api.QuotaLimit}
  */
-public  final class QuotaLimit extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class QuotaLimit extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.QuotaLimit)
     QuotaLimitOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use QuotaLimit.newBuilder() to construct.
   private QuotaLimit(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private QuotaLimit() {
     name_ = "";
     description_ = "";
@@ -30,18 +48,24 @@ private QuotaLimit() {
     displayName_ = "";
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new QuotaLimit();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private QuotaLimit(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -54,118 +78,123 @@ private QuotaLimit(
           case 0:
             done = true;
             break;
-          case 18: {
-            String s = input.readStringRequireUtf8();
-
-            description_ = s;
-            break;
-          }
-          case 24: {
-
-            defaultLimit_ = input.readInt64();
-            break;
-          }
-          case 32: {
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            maxLimit_ = input.readInt64();
-            break;
-          }
-          case 42: {
-            String s = input.readStringRequireUtf8();
-
-            duration_ = s;
-            break;
-          }
-          case 50: {
-            String s = input.readStringRequireUtf8();
+              description_ = s;
+              break;
+            }
+          case 24:
+            {
+              defaultLimit_ = input.readInt64();
+              break;
+            }
+          case 32:
+            {
+              maxLimit_ = input.readInt64();
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 56: {
+              duration_ = s;
+              break;
+            }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            freeTier_ = input.readInt64();
-            break;
-          }
-          case 66: {
-            String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 56:
+            {
+              freeTier_ = input.readInt64();
+              break;
+            }
+          case 66:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            metric_ = s;
-            break;
-          }
-          case 74: {
-            String s = input.readStringRequireUtf8();
+              metric_ = s;
+              break;
+            }
+          case 74:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            unit_ = s;
-            break;
-          }
-          case 82: {
-            if (!((mutable_bitField0_ & 0x00000100) != 0)) {
-              values_ = com.google.protobuf.MapField.newMapField(
-                  ValuesDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000100;
+              unit_ = s;
+              break;
             }
-            com.google.protobuf.MapEntry
-            values__ = input.readMessage(
-                ValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            values_.getMutableMap().put(
-                values__.getKey(), values__.getValue());
-            break;
-          }
-          case 98: {
-            String s = input.readStringRequireUtf8();
+          case 82:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                values_ =
+                    com.google.protobuf.MapField.newMapField(ValuesDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry values__ =
+                  input.readMessage(
+                      ValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              values_.getMutableMap().put(values__.getKey(), values__.getValue());
+              break;
+            }
+          case 98:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            displayName_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              displayName_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.QuotaProto.internal_static_google_api_QuotaLimit_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
-  @Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  @java.lang.Override
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 10:
         return internalGetValues();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
-  @Override
-  protected FieldAccessorTable
+
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return com.google.api.QuotaProto.internal_static_google_api_QuotaLimit_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            QuotaLimit.class, Builder.class);
+            com.google.api.QuotaLimit.class, com.google.api.QuotaLimit.Builder.class);
   }
 
-  private int bitField0_;
   public static final int NAME_FIELD_NUMBER = 6;
-  private volatile Object name_;
+  private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Name of the quota limit.
    * The name must be provided, and it must be unique within the service. The
@@ -174,20 +203,23 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string name = 6; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Name of the quota limit.
    * The name must be provided, and it must be unique within the service. The
@@ -196,14 +228,14 @@ public String getName() {
    * 
* * string name = 6; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -212,8 +244,10 @@ public String getName() { } public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile Object description_; + private volatile java.lang.Object description_; /** + * + * *
    * Optional. User-visible, extended description for this quota limit.
    * Should be used only when more context is needed to understand this limit
@@ -221,20 +255,23 @@ public String getName() {
    * 
* * string description = 2; + * + * @return The description. */ - public String getDescription() { - Object ref = description_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Optional. User-visible, extended description for this quota limit.
    * Should be used only when more context is needed to understand this limit
@@ -242,14 +279,14 @@ public String getDescription() {
    * 
* * string description = 2; + * + * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + 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); description_ = b; return b; } else { @@ -260,6 +297,8 @@ public String getDescription() { public static final int DEFAULT_LIMIT_FIELD_NUMBER = 3; private long defaultLimit_; /** + * + * *
    * Default number of tokens that can be consumed during the specified
    * duration. This is the number of tokens assigned when a client
@@ -272,6 +311,8 @@ public String getDescription() {
    * 
* * int64 default_limit = 3; + * + * @return The defaultLimit. */ public long getDefaultLimit() { return defaultLimit_; @@ -280,6 +321,8 @@ public long getDefaultLimit() { public static final int MAX_LIMIT_FIELD_NUMBER = 4; private long maxLimit_; /** + * + * *
    * Maximum number of tokens that can be consumed during the specified
    * duration. Client application developers can override the default limit up
@@ -291,6 +334,8 @@ public long getDefaultLimit() {
    * 
* * int64 max_limit = 4; + * + * @return The maxLimit. */ public long getMaxLimit() { return maxLimit_; @@ -299,6 +344,8 @@ public long getMaxLimit() { public static final int FREE_TIER_FIELD_NUMBER = 7; private long freeTier_; /** + * + * *
    * Free tier value displayed in the Developers Console for this limit.
    * The free tier is the number of tokens that will be subtracted from the
@@ -310,14 +357,18 @@ public long getMaxLimit() {
    * 
* * int64 free_tier = 7; + * + * @return The freeTier. */ public long getFreeTier() { return freeTier_; } public static final int DURATION_FIELD_NUMBER = 5; - private volatile Object duration_; + private volatile java.lang.Object duration_; /** + * + * *
    * Duration of this limit in textual notation. Example: "100s", "24h", "1d".
    * For duration longer than a day, only multiple of days is supported. We
@@ -327,20 +378,23 @@ public long getFreeTier() {
    * 
* * string duration = 5; + * + * @return The duration. */ - public String getDuration() { - Object ref = duration_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getDuration() { + java.lang.Object ref = duration_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); duration_ = s; return s; } } /** + * + * *
    * Duration of this limit in textual notation. Example: "100s", "24h", "1d".
    * For duration longer than a day, only multiple of days is supported. We
@@ -350,14 +404,14 @@ public String getDuration() {
    * 
* * string duration = 5; + * + * @return The bytes for duration. */ - public com.google.protobuf.ByteString - getDurationBytes() { - Object ref = duration_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getDurationBytes() { + java.lang.Object ref = duration_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); duration_ = b; return b; } else { @@ -366,8 +420,10 @@ public String getDuration() { } public static final int METRIC_FIELD_NUMBER = 8; - private volatile Object metric_; + private volatile java.lang.Object metric_; /** + * + * *
    * The name of the metric this quota limit applies to. The quota limits with
    * the same metric will be checked together during runtime. The metric must be
@@ -375,20 +431,23 @@ public String getDuration() {
    * 
* * string metric = 8; + * + * @return The metric. */ - public String getMetric() { - Object ref = metric_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getMetric() { + java.lang.Object ref = metric_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); metric_ = s; return s; } } /** + * + * *
    * The name of the metric this quota limit applies to. The quota limits with
    * the same metric will be checked together during runtime. The metric must be
@@ -396,14 +455,14 @@ public String getMetric() {
    * 
* * string metric = 8; + * + * @return The bytes for metric. */ - public com.google.protobuf.ByteString - getMetricBytes() { - Object ref = metric_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getMetricBytes() { + java.lang.Object ref = metric_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); metric_ = b; return b; } else { @@ -412,8 +471,10 @@ public String getMetric() { } public static final int UNIT_FIELD_NUMBER = 9; - private volatile Object unit_; + private volatile java.lang.Object unit_; /** + * + * *
    * Specify the unit of the quota limit. It uses the same syntax as
    * [Metric.unit][]. The supported unit kinds are determined by the quota
@@ -425,20 +486,23 @@ public String getMetric() {
    * 
* * string unit = 9; + * + * @return The unit. */ - public String getUnit() { - Object ref = unit_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getUnit() { + java.lang.Object ref = unit_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); unit_ = s; return s; } } /** + * + * *
    * Specify the unit of the quota limit. It uses the same syntax as
    * [Metric.unit][]. The supported unit kinds are determined by the quota
@@ -450,14 +514,14 @@ public String getUnit() {
    * 
* * string unit = 9; + * + * @return The bytes for unit. */ - public com.google.protobuf.ByteString - getUnitBytes() { - Object ref = unit_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getUnitBytes() { + java.lang.Object ref = unit_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); unit_ = b; return b; } else { @@ -466,24 +530,22 @@ public String getUnit() { } public static final int VALUES_FIELD_NUMBER = 10; + private static final class ValuesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - String, Long> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.api.QuotaProto.internal_static_google_api_QuotaLimit_ValuesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.INT64, - 0L); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.api.QuotaProto.internal_static_google_api_QuotaLimit_ValuesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.INT64, + 0L); } - private com.google.protobuf.MapField< - String, Long> values_; - private com.google.protobuf.MapField - internalGetValues() { + + private com.google.protobuf.MapField values_; + + private com.google.protobuf.MapField internalGetValues() { if (values_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValuesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ValuesDefaultEntryHolder.defaultEntry); } return values_; } @@ -492,6 +554,8 @@ public int getValuesCount() { return internalGetValues().getMap().size(); } /** + * + * *
    * Tiered limit values. You must specify this as a key:value pair, with an
    * integer value that is the maximum number of requests allowed for the
@@ -500,20 +564,20 @@ public int getValuesCount() {
    *
    * map<string, int64> values = 10;
    */
-
-  public boolean containsValues(
-      String key) {
-    if (key == null) { throw new NullPointerException(); }
+  public boolean containsValues(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     return internalGetValues().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getValuesMap()} instead.
-   */
-  @Deprecated
-  public java.util.Map getValues() {
+  /** Use {@link #getValuesMap()} instead. */
+  @java.lang.Deprecated
+  public java.util.Map getValues() {
     return getValuesMap();
   }
   /**
+   *
+   *
    * 
    * Tiered limit values. You must specify this as a key:value pair, with an
    * integer value that is the maximum number of requests allowed for the
@@ -522,11 +586,12 @@ public java.util.Map getValues() {
    *
    * map<string, int64> values = 10;
    */
-
-  public java.util.Map getValuesMap() {
+  public java.util.Map getValuesMap() {
     return internalGetValues().getMap();
   }
   /**
+   *
+   *
    * 
    * Tiered limit values. You must specify this as a key:value pair, with an
    * integer value that is the maximum number of requests allowed for the
@@ -535,16 +600,16 @@ public java.util.Map getValuesMap() {
    *
    * map<string, int64> values = 10;
    */
-
-  public long getValuesOrDefault(
-      String key,
-      long defaultValue) {
-    if (key == null) { throw new NullPointerException(); }
-    java.util.Map map =
-        internalGetValues().getMap();
+  public long getValuesOrDefault(java.lang.String key, long defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetValues().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Tiered limit values. You must specify this as a key:value pair, with an
    * integer value that is the maximum number of requests allowed for the
@@ -553,21 +618,22 @@ public long getValuesOrDefault(
    *
    * map<string, int64> values = 10;
    */
-
-  public long getValuesOrThrow(
-      String key) {
-    if (key == null) { throw new NullPointerException(); }
-    java.util.Map map =
-        internalGetValues().getMap();
+  public long getValuesOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetValues().getMap();
     if (!map.containsKey(key)) {
-      throw new IllegalArgumentException();
+      throw new java.lang.IllegalArgumentException();
     }
     return map.get(key);
   }
 
   public static final int DISPLAY_NAME_FIELD_NUMBER = 12;
-  private volatile Object displayName_;
+  private volatile java.lang.Object displayName_;
   /**
+   *
+   *
    * 
    * User-visible display name for this limit.
    * Optional. If not set, the UI will provide a default display name based on
@@ -576,20 +642,23 @@ public long getValuesOrThrow(
    * 
* * string display_name = 12; + * + * @return The displayName. */ - public String getDisplayName() { - Object ref = displayName_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * User-visible display name for this limit.
    * Optional. If not set, the UI will provide a default display name based on
@@ -598,14 +667,14 @@ public String getDisplayName() {
    * 
* * string display_name = 12; + * + * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -614,7 +683,8 @@ public String getDisplayName() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -624,9 +694,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } @@ -651,19 +720,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getUnitBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, unit_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetValues(), - ValuesDefaultEntryHolder.defaultEntry, - 10); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetValues(), ValuesDefaultEntryHolder.defaultEntry, 10); if (!getDisplayNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, displayName_); } unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -673,12 +738,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (defaultLimit_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, defaultLimit_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, defaultLimit_); } if (maxLimit_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, maxLimit_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, maxLimit_); } if (!getDurationBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, duration_); @@ -687,8 +750,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); } if (freeTier_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, freeTier_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, freeTier_); } if (!getMetricBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, metric_); @@ -696,15 +758,15 @@ public int getSerializedSize() { if (!getUnitBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, unit_); } - for (java.util.Map.Entry entry - : internalGetValues().getMap().entrySet()) { - com.google.protobuf.MapEntry - values__ = ValuesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, values__); + for (java.util.Map.Entry entry : + internalGetValues().getMap().entrySet()) { + com.google.protobuf.MapEntry values__ = + ValuesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, values__); } if (!getDisplayNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, displayName_); @@ -714,41 +776,31 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof QuotaLimit)) { + if (!(obj instanceof com.google.api.QuotaLimit)) { return super.equals(obj); } - QuotaLimit other = (QuotaLimit) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (getDefaultLimit() - != other.getDefaultLimit()) return false; - if (getMaxLimit() - != other.getMaxLimit()) return false; - if (getFreeTier() - != other.getFreeTier()) return false; - if (!getDuration() - .equals(other.getDuration())) return false; - if (!getMetric() - .equals(other.getMetric())) return false; - if (!getUnit() - .equals(other.getUnit())) return false; - if (!internalGetValues().equals( - other.internalGetValues())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + com.google.api.QuotaLimit other = (com.google.api.QuotaLimit) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (getDefaultLimit() != other.getDefaultLimit()) return false; + if (getMaxLimit() != other.getMaxLimit()) return false; + if (getFreeTier() != other.getFreeTier()) return false; + if (!getDuration().equals(other.getDuration())) return false; + if (!getMetric().equals(other.getMetric())) return false; + if (!getUnit().equals(other.getUnit())) return false; + if (!internalGetValues().equals(other.internalGetValues())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -760,14 +812,11 @@ public int hashCode() { hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + DEFAULT_LIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDefaultLimit()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDefaultLimit()); hash = (37 * hash) + MAX_LIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxLimit()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxLimit()); hash = (37 * hash) + FREE_TIER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFreeTier()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFreeTier()); hash = (37 * hash) + DURATION_FIELD_NUMBER; hash = (53 * hash) + getDuration().hashCode(); hash = (37 * hash) + METRIC_FIELD_NUMBER; @@ -785,97 +834,103 @@ public int hashCode() { return hash; } - public static QuotaLimit parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.QuotaLimit parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static QuotaLimit parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.QuotaLimit parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static QuotaLimit parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.api.QuotaLimit parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static QuotaLimit parseFrom( + + public static com.google.api.QuotaLimit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static QuotaLimit parseFrom(byte[] data) + + public static com.google.api.QuotaLimit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static QuotaLimit parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.QuotaLimit parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static QuotaLimit parseFrom(java.io.InputStream input) + + public static com.google.api.QuotaLimit 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 QuotaLimit parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.QuotaLimit parseFrom( + 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 QuotaLimit parseDelimitedFrom(java.io.InputStream input) + + public static com.google.api.QuotaLimit 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 QuotaLimit parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.QuotaLimit parseDelimitedFrom( + 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 QuotaLimit parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.api.QuotaLimit 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 QuotaLimit parseFrom( + + public static com.google.api.QuotaLimit 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(QuotaLimit prototype) { + + public static Builder newBuilder(com.google.api.QuotaLimit prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * `QuotaLimit` defines a specific limit that applies over a specified duration
    * for a limit type. There can be at most one limit for a duration and limit
@@ -884,43 +939,40 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.QuotaLimit}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.QuotaLimit)
       com.google.api.QuotaLimitOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.api.QuotaProto.internal_static_google_api_QuotaLimit_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 10:
           return internalGetValues();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 10:
           return internalGetMutableValues();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
-    @Override
-    protected FieldAccessorTable
+
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return com.google.api.QuotaProto.internal_static_google_api_QuotaLimit_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              QuotaLimit.class, Builder.class);
+              com.google.api.QuotaLimit.class, com.google.api.QuotaLimit.Builder.class);
     }
 
     // Construct using com.google.api.QuotaLimit.newBuilder()
@@ -928,17 +980,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       name_ = "";
@@ -963,31 +1014,29 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.api.QuotaProto.internal_static_google_api_QuotaLimit_descriptor;
     }
 
-    @Override
-    public QuotaLimit getDefaultInstanceForType() {
-      return QuotaLimit.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.QuotaLimit getDefaultInstanceForType() {
+      return com.google.api.QuotaLimit.getDefaultInstance();
     }
 
-    @Override
-    public QuotaLimit build() {
-      QuotaLimit result = buildPartial();
+    @java.lang.Override
+    public com.google.api.QuotaLimit build() {
+      com.google.api.QuotaLimit result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public QuotaLimit buildPartial() {
-      QuotaLimit result = new QuotaLimit(this);
+    @java.lang.Override
+    public com.google.api.QuotaLimit buildPartial() {
+      com.google.api.QuotaLimit result = new com.google.api.QuotaLimit(this);
       int from_bitField0_ = bitField0_;
-      int to_bitField0_ = 0;
       result.name_ = name_;
       result.description_ = description_;
       result.defaultLimit_ = defaultLimit_;
@@ -999,55 +1048,55 @@ public QuotaLimit buildPartial() {
       result.values_ = internalGetValues();
       result.values_.makeImmutable();
       result.displayName_ = displayName_;
-      result.bitField0_ = to_bitField0_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof QuotaLimit) {
-        return mergeFrom((QuotaLimit)other);
+      if (other instanceof com.google.api.QuotaLimit) {
+        return mergeFrom((com.google.api.QuotaLimit) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(QuotaLimit other) {
-      if (other == QuotaLimit.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.QuotaLimit other) {
+      if (other == com.google.api.QuotaLimit.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1077,8 +1126,7 @@ public Builder mergeFrom(QuotaLimit other) {
         unit_ = other.unit_;
         onChanged();
       }
-      internalGetMutableValues().mergeFrom(
-          other.internalGetValues());
+      internalGetMutableValues().mergeFrom(other.internalGetValues());
       if (!other.getDisplayName().isEmpty()) {
         displayName_ = other.displayName_;
         onChanged();
@@ -1088,21 +1136,21 @@ public Builder mergeFrom(QuotaLimit other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      QuotaLimit parsedMessage = null;
+      com.google.api.QuotaLimit parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (QuotaLimit) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.QuotaLimit) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1111,10 +1159,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private Object name_ = "";
+    private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Name of the quota limit.
      * The name must be provided, and it must be unique within the service. The
@@ -1123,20 +1174,23 @@ public Builder mergeFrom(
      * 
* * string name = 6; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Name of the quota limit.
      * The name must be provided, and it must be unique within the service. The
@@ -1145,14 +1199,14 @@ public String getName() {
      * 
* * string name = 6; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1160,6 +1214,8 @@ public String getName() { } } /** + * + * *
      * Name of the quota limit.
      * The name must be provided, and it must be unique within the service. The
@@ -1168,18 +1224,22 @@ public String getName() {
      * 
* * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. */ - public Builder setName( - String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Name of the quota limit.
      * The name must be provided, and it must be unique within the service. The
@@ -1188,14 +1248,18 @@ public Builder setName(
      * 
* * string name = 6; + * + * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Name of the quota limit.
      * The name must be provided, and it must be unique within the service. The
@@ -1204,21 +1268,25 @@ public Builder clearName() {
      * 
* * string name = 6; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private Object description_ = ""; + private java.lang.Object description_ = ""; /** + * + * *
      * Optional. User-visible, extended description for this quota limit.
      * Should be used only when more context is needed to understand this limit
@@ -1226,20 +1294,23 @@ public Builder setNameBytes(
      * 
* * string description = 2; + * + * @return The description. */ - public String getDescription() { - Object ref = description_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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; + java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Optional. User-visible, extended description for this quota limit.
      * Should be used only when more context is needed to understand this limit
@@ -1247,14 +1318,14 @@ public String getDescription() {
      * 
* * string description = 2; + * + * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - Object ref = description_; + 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( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1262,6 +1333,8 @@ public String getDescription() { } } /** + * + * *
      * Optional. User-visible, extended description for this quota limit.
      * Should be used only when more context is needed to understand this limit
@@ -1269,18 +1342,22 @@ public String getDescription() {
      * 
* * string description = 2; + * + * @param value The description to set. + * @return This builder for chaining. */ - public Builder setDescription( - String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Optional. User-visible, extended description for this quota limit.
      * Should be used only when more context is needed to understand this limit
@@ -1288,14 +1365,18 @@ public Builder setDescription(
      * 
* * string description = 2; + * + * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Optional. User-visible, extended description for this quota limit.
      * Should be used only when more context is needed to understand this limit
@@ -1303,21 +1384,25 @@ public Builder clearDescription() {
      * 
* * string description = 2; + * + * @param value The bytes for description to set. + * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private long defaultLimit_ ; + private long defaultLimit_; /** + * + * *
      * Default number of tokens that can be consumed during the specified
      * duration. This is the number of tokens assigned when a client
@@ -1330,11 +1415,15 @@ public Builder setDescriptionBytes(
      * 
* * int64 default_limit = 3; + * + * @return The defaultLimit. */ public long getDefaultLimit() { return defaultLimit_; } /** + * + * *
      * Default number of tokens that can be consumed during the specified
      * duration. This is the number of tokens assigned when a client
@@ -1347,14 +1436,19 @@ public long getDefaultLimit() {
      * 
* * int64 default_limit = 3; + * + * @param value The defaultLimit to set. + * @return This builder for chaining. */ public Builder setDefaultLimit(long value) { - + defaultLimit_ = value; onChanged(); return this; } /** + * + * *
      * Default number of tokens that can be consumed during the specified
      * duration. This is the number of tokens assigned when a client
@@ -1367,16 +1461,20 @@ public Builder setDefaultLimit(long value) {
      * 
* * int64 default_limit = 3; + * + * @return This builder for chaining. */ public Builder clearDefaultLimit() { - + defaultLimit_ = 0L; onChanged(); return this; } - private long maxLimit_ ; + private long maxLimit_; /** + * + * *
      * Maximum number of tokens that can be consumed during the specified
      * duration. Client application developers can override the default limit up
@@ -1388,11 +1486,15 @@ public Builder clearDefaultLimit() {
      * 
* * int64 max_limit = 4; + * + * @return The maxLimit. */ public long getMaxLimit() { return maxLimit_; } /** + * + * *
      * Maximum number of tokens that can be consumed during the specified
      * duration. Client application developers can override the default limit up
@@ -1404,14 +1506,19 @@ public long getMaxLimit() {
      * 
* * int64 max_limit = 4; + * + * @param value The maxLimit to set. + * @return This builder for chaining. */ public Builder setMaxLimit(long value) { - + maxLimit_ = value; onChanged(); return this; } /** + * + * *
      * Maximum number of tokens that can be consumed during the specified
      * duration. Client application developers can override the default limit up
@@ -1423,16 +1530,20 @@ public Builder setMaxLimit(long value) {
      * 
* * int64 max_limit = 4; + * + * @return This builder for chaining. */ public Builder clearMaxLimit() { - + maxLimit_ = 0L; onChanged(); return this; } - private long freeTier_ ; + private long freeTier_; /** + * + * *
      * Free tier value displayed in the Developers Console for this limit.
      * The free tier is the number of tokens that will be subtracted from the
@@ -1444,11 +1555,15 @@ public Builder clearMaxLimit() {
      * 
* * int64 free_tier = 7; + * + * @return The freeTier. */ public long getFreeTier() { return freeTier_; } /** + * + * *
      * Free tier value displayed in the Developers Console for this limit.
      * The free tier is the number of tokens that will be subtracted from the
@@ -1460,14 +1575,19 @@ public long getFreeTier() {
      * 
* * int64 free_tier = 7; + * + * @param value The freeTier to set. + * @return This builder for chaining. */ public Builder setFreeTier(long value) { - + freeTier_ = value; onChanged(); return this; } /** + * + * *
      * Free tier value displayed in the Developers Console for this limit.
      * The free tier is the number of tokens that will be subtracted from the
@@ -1479,16 +1599,20 @@ public Builder setFreeTier(long value) {
      * 
* * int64 free_tier = 7; + * + * @return This builder for chaining. */ public Builder clearFreeTier() { - + freeTier_ = 0L; onChanged(); return this; } - private Object duration_ = ""; + private java.lang.Object duration_ = ""; /** + * + * *
      * Duration of this limit in textual notation. Example: "100s", "24h", "1d".
      * For duration longer than a day, only multiple of days is supported. We
@@ -1498,20 +1622,23 @@ public Builder clearFreeTier() {
      * 
* * string duration = 5; + * + * @return The duration. */ - public String getDuration() { - Object ref = duration_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getDuration() { + java.lang.Object ref = duration_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); duration_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Duration of this limit in textual notation. Example: "100s", "24h", "1d".
      * For duration longer than a day, only multiple of days is supported. We
@@ -1521,14 +1648,14 @@ public String getDuration() {
      * 
* * string duration = 5; + * + * @return The bytes for duration. */ - public com.google.protobuf.ByteString - getDurationBytes() { - Object ref = duration_; + public com.google.protobuf.ByteString getDurationBytes() { + java.lang.Object ref = duration_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); duration_ = b; return b; } else { @@ -1536,6 +1663,8 @@ public String getDuration() { } } /** + * + * *
      * Duration of this limit in textual notation. Example: "100s", "24h", "1d".
      * For duration longer than a day, only multiple of days is supported. We
@@ -1545,18 +1674,22 @@ public String getDuration() {
      * 
* * string duration = 5; + * + * @param value The duration to set. + * @return This builder for chaining. */ - public Builder setDuration( - String value) { + public Builder setDuration(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + duration_ = value; onChanged(); return this; } /** + * + * *
      * Duration of this limit in textual notation. Example: "100s", "24h", "1d".
      * For duration longer than a day, only multiple of days is supported. We
@@ -1566,14 +1699,18 @@ public Builder setDuration(
      * 
* * string duration = 5; + * + * @return This builder for chaining. */ public Builder clearDuration() { - + duration_ = getDefaultInstance().getDuration(); onChanged(); return this; } /** + * + * *
      * Duration of this limit in textual notation. Example: "100s", "24h", "1d".
      * For duration longer than a day, only multiple of days is supported. We
@@ -1583,21 +1720,25 @@ public Builder clearDuration() {
      * 
* * string duration = 5; + * + * @param value The bytes for duration to set. + * @return This builder for chaining. */ - public Builder setDurationBytes( - com.google.protobuf.ByteString value) { + public Builder setDurationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + duration_ = value; onChanged(); return this; } - private Object metric_ = ""; + private java.lang.Object metric_ = ""; /** + * + * *
      * The name of the metric this quota limit applies to. The quota limits with
      * the same metric will be checked together during runtime. The metric must be
@@ -1605,20 +1746,23 @@ public Builder setDurationBytes(
      * 
* * string metric = 8; + * + * @return The metric. */ - public String getMetric() { - Object ref = metric_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getMetric() { + java.lang.Object ref = metric_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); metric_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The name of the metric this quota limit applies to. The quota limits with
      * the same metric will be checked together during runtime. The metric must be
@@ -1626,14 +1770,14 @@ public String getMetric() {
      * 
* * string metric = 8; + * + * @return The bytes for metric. */ - public com.google.protobuf.ByteString - getMetricBytes() { - Object ref = metric_; + public com.google.protobuf.ByteString getMetricBytes() { + java.lang.Object ref = metric_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); metric_ = b; return b; } else { @@ -1641,6 +1785,8 @@ public String getMetric() { } } /** + * + * *
      * The name of the metric this quota limit applies to. The quota limits with
      * the same metric will be checked together during runtime. The metric must be
@@ -1648,18 +1794,22 @@ public String getMetric() {
      * 
* * string metric = 8; + * + * @param value The metric to set. + * @return This builder for chaining. */ - public Builder setMetric( - String value) { + public Builder setMetric(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + metric_ = value; onChanged(); return this; } /** + * + * *
      * The name of the metric this quota limit applies to. The quota limits with
      * the same metric will be checked together during runtime. The metric must be
@@ -1667,14 +1817,18 @@ public Builder setMetric(
      * 
* * string metric = 8; + * + * @return This builder for chaining. */ public Builder clearMetric() { - + metric_ = getDefaultInstance().getMetric(); onChanged(); return this; } /** + * + * *
      * The name of the metric this quota limit applies to. The quota limits with
      * the same metric will be checked together during runtime. The metric must be
@@ -1682,21 +1836,25 @@ public Builder clearMetric() {
      * 
* * string metric = 8; + * + * @param value The bytes for metric to set. + * @return This builder for chaining. */ - public Builder setMetricBytes( - com.google.protobuf.ByteString value) { + public Builder setMetricBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metric_ = value; onChanged(); return this; } - private Object unit_ = ""; + private java.lang.Object unit_ = ""; /** + * + * *
      * Specify the unit of the quota limit. It uses the same syntax as
      * [Metric.unit][]. The supported unit kinds are determined by the quota
@@ -1708,20 +1866,23 @@ public Builder setMetricBytes(
      * 
* * string unit = 9; + * + * @return The unit. */ - public String getUnit() { - Object ref = unit_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getUnit() { + java.lang.Object ref = unit_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); unit_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Specify the unit of the quota limit. It uses the same syntax as
      * [Metric.unit][]. The supported unit kinds are determined by the quota
@@ -1733,14 +1894,14 @@ public String getUnit() {
      * 
* * string unit = 9; + * + * @return The bytes for unit. */ - public com.google.protobuf.ByteString - getUnitBytes() { - Object ref = unit_; + public com.google.protobuf.ByteString getUnitBytes() { + java.lang.Object ref = unit_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); unit_ = b; return b; } else { @@ -1748,6 +1909,8 @@ public String getUnit() { } } /** + * + * *
      * Specify the unit of the quota limit. It uses the same syntax as
      * [Metric.unit][]. The supported unit kinds are determined by the quota
@@ -1759,18 +1922,22 @@ public String getUnit() {
      * 
* * string unit = 9; + * + * @param value The unit to set. + * @return This builder for chaining. */ - public Builder setUnit( - String value) { + public Builder setUnit(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + unit_ = value; onChanged(); return this; } /** + * + * *
      * Specify the unit of the quota limit. It uses the same syntax as
      * [Metric.unit][]. The supported unit kinds are determined by the quota
@@ -1782,14 +1949,18 @@ public Builder setUnit(
      * 
* * string unit = 9; + * + * @return This builder for chaining. */ public Builder clearUnit() { - + unit_ = getDefaultInstance().getUnit(); onChanged(); return this; } /** + * + * *
      * Specify the unit of the quota limit. It uses the same syntax as
      * [Metric.unit][]. The supported unit kinds are determined by the quota
@@ -1801,35 +1972,36 @@ public Builder clearUnit() {
      * 
* * string unit = 9; + * + * @param value The bytes for unit to set. + * @return This builder for chaining. */ - public Builder setUnitBytes( - com.google.protobuf.ByteString value) { + public Builder setUnitBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + unit_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - String, Long> values_; - private com.google.protobuf.MapField - internalGetValues() { + private com.google.protobuf.MapField values_; + + private com.google.protobuf.MapField internalGetValues() { if (values_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValuesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ValuesDefaultEntryHolder.defaultEntry); } return values_; } - private com.google.protobuf.MapField - internalGetMutableValues() { - onChanged();; + + private com.google.protobuf.MapField + internalGetMutableValues() { + onChanged(); + ; if (values_ == null) { - values_ = com.google.protobuf.MapField.newMapField( - ValuesDefaultEntryHolder.defaultEntry); + values_ = com.google.protobuf.MapField.newMapField(ValuesDefaultEntryHolder.defaultEntry); } if (!values_.isMutable()) { values_ = values_.copy(); @@ -1841,6 +2013,8 @@ public int getValuesCount() { return internalGetValues().getMap().size(); } /** + * + * *
      * Tiered limit values. You must specify this as a key:value pair, with an
      * integer value that is the maximum number of requests allowed for the
@@ -1849,20 +2023,20 @@ public int getValuesCount() {
      *
      * map<string, int64> values = 10;
      */
-
-    public boolean containsValues(
-        String key) {
-      if (key == null) { throw new NullPointerException(); }
+    public boolean containsValues(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       return internalGetValues().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getValuesMap()} instead.
-     */
-    @Deprecated
-    public java.util.Map getValues() {
+    /** Use {@link #getValuesMap()} instead. */
+    @java.lang.Deprecated
+    public java.util.Map getValues() {
       return getValuesMap();
     }
     /**
+     *
+     *
      * 
      * Tiered limit values. You must specify this as a key:value pair, with an
      * integer value that is the maximum number of requests allowed for the
@@ -1871,11 +2045,12 @@ public java.util.Map getValues() {
      *
      * map<string, int64> values = 10;
      */
-
-    public java.util.Map getValuesMap() {
+    public java.util.Map getValuesMap() {
       return internalGetValues().getMap();
     }
     /**
+     *
+     *
      * 
      * Tiered limit values. You must specify this as a key:value pair, with an
      * integer value that is the maximum number of requests allowed for the
@@ -1884,16 +2059,16 @@ public java.util.Map getValuesMap() {
      *
      * map<string, int64> values = 10;
      */
-
-    public long getValuesOrDefault(
-        String key,
-        long defaultValue) {
-      if (key == null) { throw new NullPointerException(); }
-      java.util.Map map =
-          internalGetValues().getMap();
+    public long getValuesOrDefault(java.lang.String key, long defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetValues().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Tiered limit values. You must specify this as a key:value pair, with an
      * integer value that is the maximum number of requests allowed for the
@@ -1902,24 +2077,24 @@ public long getValuesOrDefault(
      *
      * map<string, int64> values = 10;
      */
-
-    public long getValuesOrThrow(
-        String key) {
-      if (key == null) { throw new NullPointerException(); }
-      java.util.Map map =
-          internalGetValues().getMap();
+    public long getValuesOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetValues().getMap();
       if (!map.containsKey(key)) {
-        throw new IllegalArgumentException();
+        throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
 
     public Builder clearValues() {
-      internalGetMutableValues().getMutableMap()
-          .clear();
+      internalGetMutableValues().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Tiered limit values. You must specify this as a key:value pair, with an
      * integer value that is the maximum number of requests allowed for the
@@ -1928,23 +2103,21 @@ public Builder clearValues() {
      *
      * map<string, int64> values = 10;
      */
-
-    public Builder removeValues(
-        String key) {
-      if (key == null) { throw new NullPointerException(); }
-      internalGetMutableValues().getMutableMap()
-          .remove(key);
+    public Builder removeValues(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableValues().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
-    @Deprecated
-    public java.util.Map
-    getMutableValues() {
+    /** Use alternate mutation accessors instead. */
+    @java.lang.Deprecated
+    public java.util.Map getMutableValues() {
       return internalGetMutableValues().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Tiered limit values. You must specify this as a key:value pair, with an
      * integer value that is the maximum number of requests allowed for the
@@ -1953,16 +2126,17 @@ public Builder removeValues(
      *
      * map<string, int64> values = 10;
      */
-    public Builder putValues(
-        String key,
-        long value) {
-      if (key == null) { throw new NullPointerException(); }
-      
-      internalGetMutableValues().getMutableMap()
-          .put(key, value);
+    public Builder putValues(java.lang.String key, long value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+
+      internalGetMutableValues().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Tiered limit values. You must specify this as a key:value pair, with an
      * integer value that is the maximum number of requests allowed for the
@@ -1971,16 +2145,15 @@ public Builder putValues(
      *
      * map<string, int64> values = 10;
      */
-
-    public Builder putAllValues(
-        java.util.Map values) {
-      internalGetMutableValues().getMutableMap()
-          .putAll(values);
+    public Builder putAllValues(java.util.Map values) {
+      internalGetMutableValues().getMutableMap().putAll(values);
       return this;
     }
 
-    private Object displayName_ = "";
+    private java.lang.Object displayName_ = "";
     /**
+     *
+     *
      * 
      * User-visible display name for this limit.
      * Optional. If not set, the UI will provide a default display name based on
@@ -1989,20 +2162,23 @@ public Builder putAllValues(
      * 
* * string display_name = 12; + * + * @return The displayName. */ - public String getDisplayName() { - Object ref = displayName_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * User-visible display name for this limit.
      * Optional. If not set, the UI will provide a default display name based on
@@ -2011,14 +2187,14 @@ public String getDisplayName() {
      * 
* * string display_name = 12; + * + * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - Object ref = displayName_; + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -2026,6 +2202,8 @@ public String getDisplayName() { } } /** + * + * *
      * User-visible display name for this limit.
      * Optional. If not set, the UI will provide a default display name based on
@@ -2034,18 +2212,22 @@ public String getDisplayName() {
      * 
* * string display_name = 12; + * + * @param value The displayName to set. + * @return This builder for chaining. */ - public Builder setDisplayName( - String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * User-visible display name for this limit.
      * Optional. If not set, the UI will provide a default display name based on
@@ -2054,14 +2236,18 @@ public Builder setDisplayName(
      * 
* * string display_name = 12; + * + * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * User-visible display name for this limit.
      * Optional. If not set, the UI will provide a default display name based on
@@ -2070,68 +2256,68 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 12; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.QuotaLimit) } // @@protoc_insertion_point(class_scope:google.api.QuotaLimit) - private static final QuotaLimit DEFAULT_INSTANCE; + private static final com.google.api.QuotaLimit DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new QuotaLimit(); + DEFAULT_INSTANCE = new com.google.api.QuotaLimit(); } - public static QuotaLimit getDefaultInstance() { + public static com.google.api.QuotaLimit getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public QuotaLimit parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QuotaLimit(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QuotaLimit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QuotaLimit(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public QuotaLimit getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.QuotaLimit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/QuotaLimitOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/QuotaLimitOrBuilder.java index 1474c3d1..0499a0b5 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/QuotaLimitOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/QuotaLimitOrBuilder.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/quota.proto package com.google.api; -public interface QuotaLimitOrBuilder extends +public interface QuotaLimitOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.QuotaLimit) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Name of the quota limit.
    * The name must be provided, and it must be unique within the service. The
@@ -16,9 +34,13 @@ public interface QuotaLimitOrBuilder extends
    * 
* * string name = 6; + * + * @return The name. */ - String getName(); + java.lang.String getName(); /** + * + * *
    * Name of the quota limit.
    * The name must be provided, and it must be unique within the service. The
@@ -27,11 +49,14 @@ public interface QuotaLimitOrBuilder extends
    * 
* * string name = 6; + * + * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. User-visible, extended description for this quota limit.
    * Should be used only when more context is needed to understand this limit
@@ -39,9 +64,13 @@ public interface QuotaLimitOrBuilder extends
    * 
* * string description = 2; + * + * @return The description. */ - String getDescription(); + java.lang.String getDescription(); /** + * + * *
    * Optional. User-visible, extended description for this quota limit.
    * Should be used only when more context is needed to understand this limit
@@ -49,11 +78,14 @@ public interface QuotaLimitOrBuilder extends
    * 
* * string description = 2; + * + * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Default number of tokens that can be consumed during the specified
    * duration. This is the number of tokens assigned when a client
@@ -66,10 +98,14 @@ public interface QuotaLimitOrBuilder extends
    * 
* * int64 default_limit = 3; + * + * @return The defaultLimit. */ long getDefaultLimit(); /** + * + * *
    * Maximum number of tokens that can be consumed during the specified
    * duration. Client application developers can override the default limit up
@@ -81,10 +117,14 @@ public interface QuotaLimitOrBuilder extends
    * 
* * int64 max_limit = 4; + * + * @return The maxLimit. */ long getMaxLimit(); /** + * + * *
    * Free tier value displayed in the Developers Console for this limit.
    * The free tier is the number of tokens that will be subtracted from the
@@ -96,10 +136,14 @@ public interface QuotaLimitOrBuilder extends
    * 
* * int64 free_tier = 7; + * + * @return The freeTier. */ long getFreeTier(); /** + * + * *
    * Duration of this limit in textual notation. Example: "100s", "24h", "1d".
    * For duration longer than a day, only multiple of days is supported. We
@@ -109,9 +153,13 @@ public interface QuotaLimitOrBuilder extends
    * 
* * string duration = 5; + * + * @return The duration. */ - String getDuration(); + java.lang.String getDuration(); /** + * + * *
    * Duration of this limit in textual notation. Example: "100s", "24h", "1d".
    * For duration longer than a day, only multiple of days is supported. We
@@ -121,11 +169,14 @@ public interface QuotaLimitOrBuilder extends
    * 
* * string duration = 5; + * + * @return The bytes for duration. */ - com.google.protobuf.ByteString - getDurationBytes(); + com.google.protobuf.ByteString getDurationBytes(); /** + * + * *
    * The name of the metric this quota limit applies to. The quota limits with
    * the same metric will be checked together during runtime. The metric must be
@@ -133,9 +184,13 @@ public interface QuotaLimitOrBuilder extends
    * 
* * string metric = 8; + * + * @return The metric. */ - String getMetric(); + java.lang.String getMetric(); /** + * + * *
    * The name of the metric this quota limit applies to. The quota limits with
    * the same metric will be checked together during runtime. The metric must be
@@ -143,11 +198,14 @@ public interface QuotaLimitOrBuilder extends
    * 
* * string metric = 8; + * + * @return The bytes for metric. */ - com.google.protobuf.ByteString - getMetricBytes(); + com.google.protobuf.ByteString getMetricBytes(); /** + * + * *
    * Specify the unit of the quota limit. It uses the same syntax as
    * [Metric.unit][]. The supported unit kinds are determined by the quota
@@ -159,9 +217,13 @@ public interface QuotaLimitOrBuilder extends
    * 
* * string unit = 9; + * + * @return The unit. */ - String getUnit(); + java.lang.String getUnit(); /** + * + * *
    * Specify the unit of the quota limit. It uses the same syntax as
    * [Metric.unit][]. The supported unit kinds are determined by the quota
@@ -173,11 +235,14 @@ public interface QuotaLimitOrBuilder extends
    * 
* * string unit = 9; + * + * @return The bytes for unit. */ - com.google.protobuf.ByteString - getUnitBytes(); + com.google.protobuf.ByteString getUnitBytes(); /** + * + * *
    * Tiered limit values. You must specify this as a key:value pair, with an
    * integer value that is the maximum number of requests allowed for the
@@ -188,6 +253,8 @@ public interface QuotaLimitOrBuilder extends
    */
   int getValuesCount();
   /**
+   *
+   *
    * 
    * Tiered limit values. You must specify this as a key:value pair, with an
    * integer value that is the maximum number of requests allowed for the
@@ -196,15 +263,13 @@ public interface QuotaLimitOrBuilder extends
    *
    * map<string, int64> values = 10;
    */
-  boolean containsValues(
-      String key);
-  /**
-   * Use {@link #getValuesMap()} instead.
-   */
-  @Deprecated
-  java.util.Map
-  getValues();
+  boolean containsValues(java.lang.String key);
+  /** Use {@link #getValuesMap()} instead. */
+  @java.lang.Deprecated
+  java.util.Map getValues();
   /**
+   *
+   *
    * 
    * Tiered limit values. You must specify this as a key:value pair, with an
    * integer value that is the maximum number of requests allowed for the
@@ -213,9 +278,10 @@ boolean containsValues(
    *
    * map<string, int64> values = 10;
    */
-  java.util.Map
-  getValuesMap();
+  java.util.Map getValuesMap();
   /**
+   *
+   *
    * 
    * Tiered limit values. You must specify this as a key:value pair, with an
    * integer value that is the maximum number of requests allowed for the
@@ -224,11 +290,10 @@ boolean containsValues(
    *
    * map<string, int64> values = 10;
    */
-
-  long getValuesOrDefault(
-      String key,
-      long defaultValue);
+  long getValuesOrDefault(java.lang.String key, long defaultValue);
   /**
+   *
+   *
    * 
    * Tiered limit values. You must specify this as a key:value pair, with an
    * integer value that is the maximum number of requests allowed for the
@@ -237,11 +302,11 @@ long getValuesOrDefault(
    *
    * map<string, int64> values = 10;
    */
-
-  long getValuesOrThrow(
-      String key);
+  long getValuesOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * User-visible display name for this limit.
    * Optional. If not set, the UI will provide a default display name based on
@@ -250,9 +315,13 @@ long getValuesOrThrow(
    * 
* * string display_name = 12; + * + * @return The displayName. */ - String getDisplayName(); + java.lang.String getDisplayName(); /** + * + * *
    * User-visible display name for this limit.
    * Optional. If not set, the UI will provide a default display name based on
@@ -261,7 +330,8 @@ long getValuesOrThrow(
    * 
* * string display_name = 12; + * + * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/QuotaOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/QuotaOrBuilder.java index cbbeae79..bd53d4b4 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/QuotaOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/QuotaOrBuilder.java @@ -1,30 +1,51 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/quota.proto package com.google.api; -public interface QuotaOrBuilder extends +public interface QuotaOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.Quota) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of `QuotaLimit` definitions for the service.
    * 
* * repeated .google.api.QuotaLimit limits = 3; */ - java.util.List - getLimitsList(); + java.util.List getLimitsList(); /** + * + * *
    * List of `QuotaLimit` definitions for the service.
    * 
* * repeated .google.api.QuotaLimit limits = 3; */ - QuotaLimit getLimits(int index); + com.google.api.QuotaLimit getLimits(int index); /** + * + * *
    * List of `QuotaLimit` definitions for the service.
    * 
@@ -33,25 +54,29 @@ public interface QuotaOrBuilder extends */ int getLimitsCount(); /** + * + * *
    * List of `QuotaLimit` definitions for the service.
    * 
* * repeated .google.api.QuotaLimit limits = 3; */ - java.util.List - getLimitsOrBuilderList(); + java.util.List getLimitsOrBuilderList(); /** + * + * *
    * List of `QuotaLimit` definitions for the service.
    * 
* * repeated .google.api.QuotaLimit limits = 3; */ - com.google.api.QuotaLimitOrBuilder getLimitsOrBuilder( - int index); + com.google.api.QuotaLimitOrBuilder getLimitsOrBuilder(int index); /** + * + * *
    * List of `MetricRule` definitions, each one mapping a selected method to one
    * or more metrics.
@@ -59,9 +84,10 @@ com.google.api.QuotaLimitOrBuilder getLimitsOrBuilder(
    *
    * repeated .google.api.MetricRule metric_rules = 4;
    */
-  java.util.List
-      getMetricRulesList();
+  java.util.List getMetricRulesList();
   /**
+   *
+   *
    * 
    * List of `MetricRule` definitions, each one mapping a selected method to one
    * or more metrics.
@@ -69,8 +95,10 @@ com.google.api.QuotaLimitOrBuilder getLimitsOrBuilder(
    *
    * repeated .google.api.MetricRule metric_rules = 4;
    */
-  MetricRule getMetricRules(int index);
+  com.google.api.MetricRule getMetricRules(int index);
   /**
+   *
+   *
    * 
    * List of `MetricRule` definitions, each one mapping a selected method to one
    * or more metrics.
@@ -80,6 +108,8 @@ com.google.api.QuotaLimitOrBuilder getLimitsOrBuilder(
    */
   int getMetricRulesCount();
   /**
+   *
+   *
    * 
    * List of `MetricRule` definitions, each one mapping a selected method to one
    * or more metrics.
@@ -87,9 +117,10 @@ com.google.api.QuotaLimitOrBuilder getLimitsOrBuilder(
    *
    * repeated .google.api.MetricRule metric_rules = 4;
    */
-  java.util.List 
-      getMetricRulesOrBuilderList();
+  java.util.List getMetricRulesOrBuilderList();
   /**
+   *
+   *
    * 
    * List of `MetricRule` definitions, each one mapping a selected method to one
    * or more metrics.
@@ -97,6 +128,5 @@ com.google.api.QuotaLimitOrBuilder getLimitsOrBuilder(
    *
    * repeated .google.api.MetricRule metric_rules = 4;
    */
-  com.google.api.MetricRuleOrBuilder getMetricRulesOrBuilder(
-      int index);
+  com.google.api.MetricRuleOrBuilder getMetricRulesOrBuilder(int index);
 }
diff --git a/proto-google-common-protos/src/main/java/com/google/api/QuotaProto.java b/proto-google-common-protos/src/main/java/com/google/api/QuotaProto.java
index 25a31ff6..33c663c8 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/QuotaProto.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/QuotaProto.java
@@ -1,3 +1,18 @@
+/*
+ * 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/quota.proto
 
@@ -5,109 +20,109 @@
 
 public final class QuotaProto {
   private QuotaProto() {}
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistryLite registry) {
-  }
 
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions(
-        (com.google.protobuf.ExtensionRegistryLite) registry);
+  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_Quota_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_Quota_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_Quota_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_api_MetricRule_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_MetricRule_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_MetricRule_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_api_MetricRule_MetricCostsEntry_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_MetricRule_MetricCostsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_MetricRule_MetricCostsEntry_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_api_QuotaLimit_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_QuotaLimit_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_QuotaLimit_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_api_QuotaLimit_ValuesEntry_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_QuotaLimit_ValuesEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_QuotaLimit_ValuesEntry_fieldAccessorTable;
 
-  public static com.google.protobuf.Descriptors.FileDescriptor
-      getDescriptor() {
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     return descriptor;
   }
-  private static  com.google.protobuf.Descriptors.FileDescriptor
-      descriptor;
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
   static {
-    String[] descriptorData = {
-      "\n\026google/api/quota.proto\022\ngoogle.api\"]\n\005" +
-      "Quota\022&\n\006limits\030\003 \003(\0132\026.google.api.Quota" +
-      "Limit\022,\n\014metric_rules\030\004 \003(\0132\026.google.api" +
-      ".MetricRule\"\221\001\n\nMetricRule\022\020\n\010selector\030\001" +
-      " \001(\t\022=\n\014metric_costs\030\002 \003(\0132\'.google.api." +
-      "MetricRule.MetricCostsEntry\0322\n\020MetricCos" +
-      "tsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\"" +
-      "\225\002\n\nQuotaLimit\022\014\n\004name\030\006 \001(\t\022\023\n\013descript" +
-      "ion\030\002 \001(\t\022\025\n\rdefault_limit\030\003 \001(\003\022\021\n\tmax_" +
-      "limit\030\004 \001(\003\022\021\n\tfree_tier\030\007 \001(\003\022\020\n\010durati" +
-      "on\030\005 \001(\t\022\016\n\006metric\030\010 \001(\t\022\014\n\004unit\030\t \001(\t\0222" +
-      "\n\006values\030\n \003(\0132\".google.api.QuotaLimit.V" +
-      "aluesEntry\022\024\n\014display_name\030\014 \001(\t\032-\n\013Valu" +
-      "esEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001B" +
-      "l\n\016com.google.apiB\nQuotaProtoP\001ZEgoogle." +
-      "golang.org/genproto/googleapis/api/servi" +
-      "ceconfig;serviceconfig\242\002\004GAPIb\006proto3"
+    java.lang.String[] descriptorData = {
+      "\n\026google/api/quota.proto\022\ngoogle.api\"]\n\005"
+          + "Quota\022&\n\006limits\030\003 \003(\0132\026.google.api.Quota"
+          + "Limit\022,\n\014metric_rules\030\004 \003(\0132\026.google.api"
+          + ".MetricRule\"\221\001\n\nMetricRule\022\020\n\010selector\030\001"
+          + " \001(\t\022=\n\014metric_costs\030\002 \003(\0132\'.google.api."
+          + "MetricRule.MetricCostsEntry\0322\n\020MetricCos"
+          + "tsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\""
+          + "\225\002\n\nQuotaLimit\022\014\n\004name\030\006 \001(\t\022\023\n\013descript"
+          + "ion\030\002 \001(\t\022\025\n\rdefault_limit\030\003 \001(\003\022\021\n\tmax_"
+          + "limit\030\004 \001(\003\022\021\n\tfree_tier\030\007 \001(\003\022\020\n\010durati"
+          + "on\030\005 \001(\t\022\016\n\006metric\030\010 \001(\t\022\014\n\004unit\030\t \001(\t\0222"
+          + "\n\006values\030\n \003(\0132\".google.api.QuotaLimit.V"
+          + "aluesEntry\022\024\n\014display_name\030\014 \001(\t\032-\n\013Valu"
+          + "esEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001B"
+          + "l\n\016com.google.apiB\nQuotaProtoP\001ZEgoogle."
+          + "golang.org/genproto/googleapis/api/servi"
+          + "ceconfig;serviceconfig\242\002\004GAPIb\006proto3"
     };
-    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
-        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
-          public com.google.protobuf.ExtensionRegistry assignDescriptors(
-              com.google.protobuf.Descriptors.FileDescriptor root) {
-            descriptor = root;
-            return null;
-          }
-        };
-    com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-        }, assigner);
-    internal_static_google_api_Quota_descriptor =
-      getDescriptor().getMessageTypes().get(0);
-    internal_static_google_api_Quota_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_Quota_descriptor,
-        new String[] { "Limits", "MetricRules", });
-    internal_static_google_api_MetricRule_descriptor =
-      getDescriptor().getMessageTypes().get(1);
-    internal_static_google_api_MetricRule_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_MetricRule_descriptor,
-        new String[] { "Selector", "MetricCosts", });
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
+    internal_static_google_api_Quota_descriptor = getDescriptor().getMessageTypes().get(0);
+    internal_static_google_api_Quota_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_Quota_descriptor,
+            new java.lang.String[] {
+              "Limits", "MetricRules",
+            });
+    internal_static_google_api_MetricRule_descriptor = getDescriptor().getMessageTypes().get(1);
+    internal_static_google_api_MetricRule_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_MetricRule_descriptor,
+            new java.lang.String[] {
+              "Selector", "MetricCosts",
+            });
     internal_static_google_api_MetricRule_MetricCostsEntry_descriptor =
-      internal_static_google_api_MetricRule_descriptor.getNestedTypes().get(0);
-    internal_static_google_api_MetricRule_MetricCostsEntry_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_MetricRule_MetricCostsEntry_descriptor,
-        new String[] { "Key", "Value", });
-    internal_static_google_api_QuotaLimit_descriptor =
-      getDescriptor().getMessageTypes().get(2);
-    internal_static_google_api_QuotaLimit_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_QuotaLimit_descriptor,
-        new String[] { "Name", "Description", "DefaultLimit", "MaxLimit", "FreeTier", "Duration", "Metric", "Unit", "Values", "DisplayName", });
+        internal_static_google_api_MetricRule_descriptor.getNestedTypes().get(0);
+    internal_static_google_api_MetricRule_MetricCostsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_MetricRule_MetricCostsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_api_QuotaLimit_descriptor = getDescriptor().getMessageTypes().get(2);
+    internal_static_google_api_QuotaLimit_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_QuotaLimit_descriptor,
+            new java.lang.String[] {
+              "Name",
+              "Description",
+              "DefaultLimit",
+              "MaxLimit",
+              "FreeTier",
+              "Duration",
+              "Metric",
+              "Unit",
+              "Values",
+              "DisplayName",
+            });
     internal_static_google_api_QuotaLimit_ValuesEntry_descriptor =
-      internal_static_google_api_QuotaLimit_descriptor.getNestedTypes().get(0);
-    internal_static_google_api_QuotaLimit_ValuesEntry_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_QuotaLimit_ValuesEntry_descriptor,
-        new String[] { "Key", "Value", });
+        internal_static_google_api_QuotaLimit_descriptor.getNestedTypes().get(0);
+    internal_static_google_api_QuotaLimit_ValuesEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_QuotaLimit_ValuesEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
   }
 
   // @@protoc_insertion_point(outer_class_scope)
diff --git a/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptor.java b/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptor.java
index 1536669d..335f2abb 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptor.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptor.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/resource.proto
 
 package com.google.api;
 
 /**
+ *
+ *
  * 
  * A simple descriptor of a resource type.
  * ResourceDescriptor annotates a resource message (either by means of a
@@ -24,12 +41,12 @@
  *       };
  *     }
  * The ResourceDescriptor Yaml config will look like:
- *    resources:
- *    - type: "pubsub.googleapis.com/Topic"
- *      name_descriptor:
- *        - pattern: "projects/{project}/topics/{topic}"
- *          parent_type: "cloudresourcemanager.googleapis.com/Project"
- *          parent_name_extractor: "projects/{project}"
+ *     resources:
+ *     - type: "pubsub.googleapis.com/Topic"
+ *       name_descriptor:
+ *         - pattern: "projects/{project}/topics/{topic}"
+ *           parent_type: "cloudresourcemanager.googleapis.com/Project"
+ *           parent_name_extractor: "projects/{project}"
  * Sometimes, resources have multiple patterns, typically because they can
  * live under multiple parents.
  * Example:
@@ -102,15 +119,16 @@
  *
  * Protobuf type {@code google.api.ResourceDescriptor}
  */
-public  final class ResourceDescriptor extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ResourceDescriptor extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.ResourceDescriptor)
     ResourceDescriptorOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ResourceDescriptor.newBuilder() to construct.
   private ResourceDescriptor(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ResourceDescriptor() {
     type_ = "";
     pattern_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -120,18 +138,24 @@ private ResourceDescriptor() {
     singular_ = "";
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new ResourceDescriptor();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ResourceDescriptor(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -144,81 +168,90 @@ private ResourceDescriptor(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            type_ = s;
-            break;
-          }
-          case 18: {
-            String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              pattern_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000002;
+              type_ = s;
+              break;
             }
-            pattern_.add(s);
-            break;
-          }
-          case 26: {
-            String s = input.readStringRequireUtf8();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                pattern_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              pattern_.add(s);
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            nameField_ = s;
-            break;
-          }
-          case 32: {
-            int rawValue = input.readEnum();
+              nameField_ = s;
+              break;
+            }
+          case 32:
+            {
+              int rawValue = input.readEnum();
 
-            history_ = rawValue;
-            break;
-          }
-          case 42: {
-            String s = input.readStringRequireUtf8();
+              history_ = rawValue;
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            plural_ = s;
-            break;
-          }
-          case 50: {
-            String s = input.readStringRequireUtf8();
+              plural_ = s;
+              break;
+            }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            singular_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              singular_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
-      if (((mutable_bitField0_ & 0x00000002) != 0)) {
+      if (((mutable_bitField0_ & 0x00000001) != 0)) {
         pattern_ = pattern_.getUnmodifiableView();
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return ResourceProto.internal_static_google_api_ResourceDescriptor_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.api.ResourceProto.internal_static_google_api_ResourceDescriptor_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return ResourceProto.internal_static_google_api_ResourceDescriptor_fieldAccessorTable
+    return com.google.api.ResourceProto
+        .internal_static_google_api_ResourceDescriptor_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            ResourceDescriptor.class, Builder.class);
+            com.google.api.ResourceDescriptor.class,
+            com.google.api.ResourceDescriptor.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * A description of the historical or future-looking state of the
    * resource pattern.
@@ -226,9 +259,10 @@ private ResourceDescriptor(
    *
    * Protobuf enum {@code google.api.ResourceDescriptor.History}
    */
-  public enum History
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum History implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * The "unset" value.
      * 
@@ -237,6 +271,8 @@ public enum History */ HISTORY_UNSPECIFIED(0), /** + * + * *
      * The resource originally had one pattern and launched as such, and
      * additional patterns were added later.
@@ -246,6 +282,8 @@ public enum History
      */
     ORIGINALLY_SINGLE_PATTERN(1),
     /**
+     *
+     *
      * 
      * The resource has one pattern, but the API owner expects to add more
      * later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents
@@ -259,6 +297,8 @@ public enum History
     ;
 
     /**
+     *
+     *
      * 
      * The "unset" value.
      * 
@@ -267,6 +307,8 @@ public enum History */ public static final int HISTORY_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The resource originally had one pattern and launched as such, and
      * additional patterns were added later.
@@ -276,6 +318,8 @@ public enum History
      */
     public static final int ORIGINALLY_SINGLE_PATTERN_VALUE = 1;
     /**
+     *
+     *
      * 
      * The resource has one pattern, but the API owner expects to add more
      * later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents
@@ -286,64 +330,69 @@ public enum History
      */
     public static final int FUTURE_MULTI_PATTERN_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
-        throw new IllegalArgumentException(
+        throw new java.lang.IllegalArgumentException(
             "Can't get the number of an unknown enum value.");
       }
       return value;
     }
 
     /**
+     * @param value The numeric wire value of the corresponding enum entry.
+     * @return The enum associated with the given numeric wire value.
      * @deprecated Use {@link #forNumber(int)} instead.
      */
-    @Deprecated
+    @java.lang.Deprecated
     public static History valueOf(int value) {
       return forNumber(value);
     }
 
+    /**
+     * @param value The numeric wire value of the corresponding enum entry.
+     * @return The enum associated with the given numeric wire value.
+     */
     public static History forNumber(int value) {
       switch (value) {
-        case 0: return HISTORY_UNSPECIFIED;
-        case 1: return ORIGINALLY_SINGLE_PATTERN;
-        case 2: return FUTURE_MULTI_PATTERN;
-        default: return null;
+        case 0:
+          return HISTORY_UNSPECIFIED;
+        case 1:
+          return ORIGINALLY_SINGLE_PATTERN;
+        case 2:
+          return FUTURE_MULTI_PATTERN;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        History> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public History findValueByNumber(int number) {
-              return History.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public History findValueByNumber(int number) {
+            return History.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return ResourceDescriptor.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.api.ResourceDescriptor.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final History[] VALUES = values();
 
-    public static History valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static History valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -360,10 +409,11 @@ private History(int value) {
     // @@protoc_insertion_point(enum_scope:google.api.ResourceDescriptor.History)
   }
 
-  private int bitField0_;
   public static final int TYPE_FIELD_NUMBER = 1;
-  private volatile Object type_;
+  private volatile java.lang.Object type_;
   /**
+   *
+   *
    * 
    * The resource type. It must be in the format of
    * {service_name}/{resource_type_kind}. The `resource_type_kind` must be
@@ -376,20 +426,23 @@ private History(int value) {
    * 
* * string type = 1; + * + * @return The type. */ - public String getType() { - Object ref = type_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** + * + * *
    * The resource type. It must be in the format of
    * {service_name}/{resource_type_kind}. The `resource_type_kind` must be
@@ -402,14 +455,14 @@ public String getType() {
    * 
* * string type = 1; + * + * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { - Object ref = type_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -420,6 +473,8 @@ public String getType() { public static final int PATTERN_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList pattern_; /** + * + * *
    * Optional. The relative resource name pattern associated with this resource
    * type. The DNS prefix of the full resource name shouldn't be specified here.
@@ -438,12 +493,15 @@ public String getType() {
    * 
* * repeated string pattern = 2; + * + * @return A list containing the pattern. */ - public com.google.protobuf.ProtocolStringList - getPatternList() { + public com.google.protobuf.ProtocolStringList getPatternList() { return pattern_; } /** + * + * *
    * Optional. The relative resource name pattern associated with this resource
    * type. The DNS prefix of the full resource name shouldn't be specified here.
@@ -462,11 +520,15 @@ public String getType() {
    * 
* * repeated string pattern = 2; + * + * @return The count of pattern. */ public int getPatternCount() { return pattern_.size(); } /** + * + * *
    * Optional. The relative resource name pattern associated with this resource
    * type. The DNS prefix of the full resource name shouldn't be specified here.
@@ -485,11 +547,16 @@ public int getPatternCount() {
    * 
* * repeated string pattern = 2; + * + * @param index The index of the element to return. + * @return The pattern at the given index. */ - public String getPattern(int index) { + public java.lang.String getPattern(int index) { return pattern_.get(index); } /** + * + * *
    * Optional. The relative resource name pattern associated with this resource
    * type. The DNS prefix of the full resource name shouldn't be specified here.
@@ -508,49 +575,56 @@ public String getPattern(int index) {
    * 
* * repeated string pattern = 2; + * + * @param index The index of the value to return. + * @return The bytes of the pattern at the given index. */ - public com.google.protobuf.ByteString - getPatternBytes(int index) { + public com.google.protobuf.ByteString getPatternBytes(int index) { return pattern_.getByteString(index); } public static final int NAME_FIELD_FIELD_NUMBER = 3; - private volatile Object nameField_; + private volatile java.lang.Object nameField_; /** + * + * *
    * Optional. The field on the resource that designates the resource name
    * field. If omitted, this is assumed to be "name".
    * 
* * string name_field = 3; + * + * @return The nameField. */ - public String getNameField() { - Object ref = nameField_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getNameField() { + java.lang.Object ref = nameField_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); nameField_ = s; return s; } } /** + * + * *
    * Optional. The field on the resource that designates the resource name
    * field. If omitted, this is assumed to be "name".
    * 
* * string name_field = 3; + * + * @return The bytes for nameField. */ - public com.google.protobuf.ByteString - getNameFieldBytes() { - Object ref = nameField_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getNameFieldBytes() { + java.lang.Object ref = nameField_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nameField_ = b; return b; } else { @@ -561,6 +635,8 @@ public String getNameField() { public static final int HISTORY_FIELD_NUMBER = 4; private int history_; /** + * + * *
    * Optional. The historical or future-looking state of the resource pattern.
    * Example:
@@ -578,11 +654,15 @@ public String getNameField() {
    * 
* * .google.api.ResourceDescriptor.History history = 4; + * + * @return The enum numeric value on the wire for history. */ public int getHistoryValue() { return history_; } /** + * + * *
    * Optional. The historical or future-looking state of the resource pattern.
    * Example:
@@ -600,16 +680,21 @@ public int getHistoryValue() {
    * 
* * .google.api.ResourceDescriptor.History history = 4; + * + * @return The history. */ - public History getHistory() { + public com.google.api.ResourceDescriptor.History getHistory() { @SuppressWarnings("deprecation") - History result = History.valueOf(history_); - return result == null ? History.UNRECOGNIZED : result; + com.google.api.ResourceDescriptor.History result = + com.google.api.ResourceDescriptor.History.valueOf(history_); + return result == null ? com.google.api.ResourceDescriptor.History.UNRECOGNIZED : result; } public static final int PLURAL_FIELD_NUMBER = 5; - private volatile Object plural_; + private volatile java.lang.Object plural_; /** + * + * *
    * The plural name used in the resource name, such as 'projects' for
    * the name of 'projects/{project}'. It is the same concept of the `plural`
@@ -618,20 +703,23 @@ public History getHistory() {
    * 
* * string plural = 5; + * + * @return The plural. */ - public String getPlural() { - Object ref = plural_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getPlural() { + java.lang.Object ref = plural_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); plural_ = s; return s; } } /** + * + * *
    * The plural name used in the resource name, such as 'projects' for
    * the name of 'projects/{project}'. It is the same concept of the `plural`
@@ -640,14 +728,14 @@ public String getPlural() {
    * 
* * string plural = 5; + * + * @return The bytes for plural. */ - public com.google.protobuf.ByteString - getPluralBytes() { - Object ref = plural_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getPluralBytes() { + java.lang.Object ref = plural_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); plural_ = b; return b; } else { @@ -656,8 +744,10 @@ public String getPlural() { } public static final int SINGULAR_FIELD_NUMBER = 6; - private volatile Object singular_; + private volatile java.lang.Object singular_; /** + * + * *
    * The same concept of the `singular` field in k8s CRD spec
    * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
@@ -665,20 +755,23 @@ public String getPlural() {
    * 
* * string singular = 6; + * + * @return The singular. */ - public String getSingular() { - Object ref = singular_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getSingular() { + java.lang.Object ref = singular_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); singular_ = s; return s; } } /** + * + * *
    * The same concept of the `singular` field in k8s CRD spec
    * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
@@ -686,14 +779,14 @@ public String getSingular() {
    * 
* * string singular = 6; + * + * @return The bytes for singular. */ - public com.google.protobuf.ByteString - getSingularBytes() { - Object ref = singular_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getSingularBytes() { + java.lang.Object ref = singular_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); singular_ = b; return b; } else { @@ -702,7 +795,8 @@ public String getSingular() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -712,9 +806,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getTypeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } @@ -724,7 +817,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getNameFieldBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nameField_); } - if (history_ != History.HISTORY_UNSPECIFIED.getNumber()) { + if (history_ != com.google.api.ResourceDescriptor.History.HISTORY_UNSPECIFIED.getNumber()) { output.writeEnum(4, history_); } if (!getPluralBytes().isEmpty()) { @@ -736,7 +829,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -756,9 +849,8 @@ public int getSerializedSize() { if (!getNameFieldBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nameField_); } - if (history_ != History.HISTORY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, history_); + if (history_ != com.google.api.ResourceDescriptor.History.HISTORY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, history_); } if (!getPluralBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, plural_); @@ -771,32 +863,27 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof ResourceDescriptor)) { + if (!(obj instanceof com.google.api.ResourceDescriptor)) { return super.equals(obj); } - ResourceDescriptor other = (ResourceDescriptor) obj; + com.google.api.ResourceDescriptor other = (com.google.api.ResourceDescriptor) obj; - if (!getType() - .equals(other.getType())) return false; - if (!getPatternList() - .equals(other.getPatternList())) return false; - if (!getNameField() - .equals(other.getNameField())) return false; + if (!getType().equals(other.getType())) return false; + if (!getPatternList().equals(other.getPatternList())) return false; + if (!getNameField().equals(other.getNameField())) return false; if (history_ != other.history_) return false; - if (!getPlural() - .equals(other.getPlural())) return false; - if (!getSingular() - .equals(other.getSingular())) return false; + if (!getPlural().equals(other.getPlural())) return false; + if (!getSingular().equals(other.getSingular())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -822,97 +909,103 @@ public int hashCode() { return hash; } - public static ResourceDescriptor parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.ResourceDescriptor parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static ResourceDescriptor parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.ResourceDescriptor parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static ResourceDescriptor parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.api.ResourceDescriptor parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static ResourceDescriptor parseFrom( + + public static com.google.api.ResourceDescriptor parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static ResourceDescriptor parseFrom(byte[] data) + + public static com.google.api.ResourceDescriptor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static ResourceDescriptor parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.ResourceDescriptor parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static ResourceDescriptor parseFrom(java.io.InputStream input) + + public static com.google.api.ResourceDescriptor 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 ResourceDescriptor parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.ResourceDescriptor parseFrom( + 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 ResourceDescriptor parseDelimitedFrom(java.io.InputStream input) + + public static com.google.api.ResourceDescriptor 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 ResourceDescriptor parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.ResourceDescriptor parseDelimitedFrom( + 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 ResourceDescriptor parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.api.ResourceDescriptor parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static ResourceDescriptor parseFrom( + + public static com.google.api.ResourceDescriptor 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(ResourceDescriptor prototype) { + + public static Builder newBuilder(com.google.api.ResourceDescriptor prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A simple descriptor of a resource type.
    * ResourceDescriptor annotates a resource message (either by means of a
@@ -933,12 +1026,12 @@ protected Builder newBuilderForType(
    *       };
    *     }
    * The ResourceDescriptor Yaml config will look like:
-   *    resources:
-   *    - type: "pubsub.googleapis.com/Topic"
-   *      name_descriptor:
-   *        - pattern: "projects/{project}/topics/{topic}"
-   *          parent_type: "cloudresourcemanager.googleapis.com/Project"
-   *          parent_name_extractor: "projects/{project}"
+   *     resources:
+   *     - type: "pubsub.googleapis.com/Topic"
+   *       name_descriptor:
+   *         - pattern: "projects/{project}/topics/{topic}"
+   *           parent_type: "cloudresourcemanager.googleapis.com/Project"
+   *           parent_name_extractor: "projects/{project}"
    * Sometimes, resources have multiple patterns, typically because they can
    * live under multiple parents.
    * Example:
@@ -1011,21 +1104,22 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.ResourceDescriptor}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.ResourceDescriptor)
       com.google.api.ResourceDescriptorOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return ResourceProto.internal_static_google_api_ResourceDescriptor_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.api.ResourceProto.internal_static_google_api_ResourceDescriptor_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return ResourceProto.internal_static_google_api_ResourceDescriptor_fieldAccessorTable
+      return com.google.api.ResourceProto
+          .internal_static_google_api_ResourceDescriptor_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              ResourceDescriptor.class, Builder.class);
+              com.google.api.ResourceDescriptor.class,
+              com.google.api.ResourceDescriptor.Builder.class);
     }
 
     // Construct using com.google.api.ResourceDescriptor.newBuilder()
@@ -1033,23 +1127,22 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       type_ = "";
 
       pattern_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-      bitField0_ = (bitField0_ & ~0x00000002);
+      bitField0_ = (bitField0_ & ~0x00000001);
       nameField_ = "";
 
       history_ = 0;
@@ -1061,90 +1154,88 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return ResourceProto.internal_static_google_api_ResourceDescriptor_descriptor;
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.api.ResourceProto.internal_static_google_api_ResourceDescriptor_descriptor;
     }
 
-    @Override
-    public ResourceDescriptor getDefaultInstanceForType() {
-      return ResourceDescriptor.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.ResourceDescriptor getDefaultInstanceForType() {
+      return com.google.api.ResourceDescriptor.getDefaultInstance();
     }
 
-    @Override
-    public ResourceDescriptor build() {
-      ResourceDescriptor result = buildPartial();
+    @java.lang.Override
+    public com.google.api.ResourceDescriptor build() {
+      com.google.api.ResourceDescriptor result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public ResourceDescriptor buildPartial() {
-      ResourceDescriptor result = new ResourceDescriptor(this);
+    @java.lang.Override
+    public com.google.api.ResourceDescriptor buildPartial() {
+      com.google.api.ResourceDescriptor result = new com.google.api.ResourceDescriptor(this);
       int from_bitField0_ = bitField0_;
-      int to_bitField0_ = 0;
       result.type_ = type_;
-      if (((bitField0_ & 0x00000002) != 0)) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         pattern_ = pattern_.getUnmodifiableView();
-        bitField0_ = (bitField0_ & ~0x00000002);
+        bitField0_ = (bitField0_ & ~0x00000001);
       }
       result.pattern_ = pattern_;
       result.nameField_ = nameField_;
       result.history_ = history_;
       result.plural_ = plural_;
       result.singular_ = singular_;
-      result.bitField0_ = to_bitField0_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof ResourceDescriptor) {
-        return mergeFrom((ResourceDescriptor)other);
+      if (other instanceof com.google.api.ResourceDescriptor) {
+        return mergeFrom((com.google.api.ResourceDescriptor) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(ResourceDescriptor other) {
-      if (other == ResourceDescriptor.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.ResourceDescriptor other) {
+      if (other == com.google.api.ResourceDescriptor.getDefaultInstance()) return this;
       if (!other.getType().isEmpty()) {
         type_ = other.type_;
         onChanged();
@@ -1152,7 +1243,7 @@ public Builder mergeFrom(ResourceDescriptor other) {
       if (!other.pattern_.isEmpty()) {
         if (pattern_.isEmpty()) {
           pattern_ = other.pattern_;
-          bitField0_ = (bitField0_ & ~0x00000002);
+          bitField0_ = (bitField0_ & ~0x00000001);
         } else {
           ensurePatternIsMutable();
           pattern_.addAll(other.pattern_);
@@ -1179,21 +1270,21 @@ public Builder mergeFrom(ResourceDescriptor other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      ResourceDescriptor parsedMessage = null;
+      com.google.api.ResourceDescriptor parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (ResourceDescriptor) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.ResourceDescriptor) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1202,10 +1293,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private Object type_ = "";
+    private java.lang.Object type_ = "";
     /**
+     *
+     *
      * 
      * The resource type. It must be in the format of
      * {service_name}/{resource_type_kind}. The `resource_type_kind` must be
@@ -1218,20 +1312,23 @@ public Builder mergeFrom(
      * 
* * string type = 1; + * + * @return The type. */ - public String getType() { - Object ref = type_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The resource type. It must be in the format of
      * {service_name}/{resource_type_kind}. The `resource_type_kind` must be
@@ -1244,14 +1341,14 @@ public String getType() {
      * 
* * string type = 1; + * + * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { - Object ref = type_; + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -1259,6 +1356,8 @@ public String getType() { } } /** + * + * *
      * The resource type. It must be in the format of
      * {service_name}/{resource_type_kind}. The `resource_type_kind` must be
@@ -1271,18 +1370,22 @@ public String getType() {
      * 
* * string type = 1; + * + * @param value The type to set. + * @return This builder for chaining. */ - public Builder setType( - String value) { + public Builder setType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** + * + * *
      * The resource type. It must be in the format of
      * {service_name}/{resource_type_kind}. The `resource_type_kind` must be
@@ -1295,14 +1398,18 @@ public Builder setType(
      * 
* * string type = 1; + * + * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** + * + * *
      * The resource type. It must be in the format of
      * {service_name}/{resource_type_kind}. The `resource_type_kind` must be
@@ -1315,27 +1422,33 @@ public Builder clearType() {
      * 
* * string type = 1; + * + * @param value The bytes for type to set. + * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList pattern_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList pattern_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePatternIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { pattern_ = new com.google.protobuf.LazyStringArrayList(pattern_); - bitField0_ |= 0x00000002; - } + bitField0_ |= 0x00000001; + } } /** + * + * *
      * Optional. The relative resource name pattern associated with this resource
      * type. The DNS prefix of the full resource name shouldn't be specified here.
@@ -1354,12 +1467,15 @@ private void ensurePatternIsMutable() {
      * 
* * repeated string pattern = 2; + * + * @return A list containing the pattern. */ - public com.google.protobuf.ProtocolStringList - getPatternList() { + public com.google.protobuf.ProtocolStringList getPatternList() { return pattern_.getUnmodifiableView(); } /** + * + * *
      * Optional. The relative resource name pattern associated with this resource
      * type. The DNS prefix of the full resource name shouldn't be specified here.
@@ -1378,11 +1494,15 @@ private void ensurePatternIsMutable() {
      * 
* * repeated string pattern = 2; + * + * @return The count of pattern. */ public int getPatternCount() { return pattern_.size(); } /** + * + * *
      * Optional. The relative resource name pattern associated with this resource
      * type. The DNS prefix of the full resource name shouldn't be specified here.
@@ -1401,11 +1521,16 @@ public int getPatternCount() {
      * 
* * repeated string pattern = 2; + * + * @param index The index of the element to return. + * @return The pattern at the given index. */ - public String getPattern(int index) { + public java.lang.String getPattern(int index) { return pattern_.get(index); } /** + * + * *
      * Optional. The relative resource name pattern associated with this resource
      * type. The DNS prefix of the full resource name shouldn't be specified here.
@@ -1424,12 +1549,16 @@ public String getPattern(int index) {
      * 
* * repeated string pattern = 2; + * + * @param index The index of the value to return. + * @return The bytes of the pattern at the given index. */ - public com.google.protobuf.ByteString - getPatternBytes(int index) { + public com.google.protobuf.ByteString getPatternBytes(int index) { return pattern_.getByteString(index); } /** + * + * *
      * Optional. The relative resource name pattern associated with this resource
      * type. The DNS prefix of the full resource name shouldn't be specified here.
@@ -1448,18 +1577,23 @@ public String getPattern(int index) {
      * 
* * repeated string pattern = 2; + * + * @param index The index to set the value at. + * @param value The pattern to set. + * @return This builder for chaining. */ - public Builder setPattern( - int index, String value) { + public Builder setPattern(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePatternIsMutable(); + throw new NullPointerException(); + } + ensurePatternIsMutable(); pattern_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. The relative resource name pattern associated with this resource
      * type. The DNS prefix of the full resource name shouldn't be specified here.
@@ -1478,18 +1612,22 @@ public Builder setPattern(
      * 
* * repeated string pattern = 2; + * + * @param value The pattern to add. + * @return This builder for chaining. */ - public Builder addPattern( - String value) { + public Builder addPattern(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePatternIsMutable(); + throw new NullPointerException(); + } + ensurePatternIsMutable(); pattern_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. The relative resource name pattern associated with this resource
      * type. The DNS prefix of the full resource name shouldn't be specified here.
@@ -1508,16 +1646,19 @@ public Builder addPattern(
      * 
* * repeated string pattern = 2; + * + * @param values The pattern to add. + * @return This builder for chaining. */ - public Builder addAllPattern( - Iterable values) { + public Builder addAllPattern(java.lang.Iterable values) { ensurePatternIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pattern_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pattern_); onChanged(); return this; } /** + * + * *
      * Optional. The relative resource name pattern associated with this resource
      * type. The DNS prefix of the full resource name shouldn't be specified here.
@@ -1536,14 +1677,18 @@ public Builder addAllPattern(
      * 
* * repeated string pattern = 2; + * + * @return This builder for chaining. */ public Builder clearPattern() { pattern_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** + * + * *
      * Optional. The relative resource name pattern associated with this resource
      * type. The DNS prefix of the full resource name shouldn't be specified here.
@@ -1562,55 +1707,62 @@ public Builder clearPattern() {
      * 
* * repeated string pattern = 2; + * + * @param value The bytes of the pattern to add. + * @return This builder for chaining. */ - public Builder addPatternBytes( - com.google.protobuf.ByteString value) { + public Builder addPatternBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePatternIsMutable(); pattern_.add(value); onChanged(); return this; } - private Object nameField_ = ""; + private java.lang.Object nameField_ = ""; /** + * + * *
      * Optional. The field on the resource that designates the resource name
      * field. If omitted, this is assumed to be "name".
      * 
* * string name_field = 3; + * + * @return The nameField. */ - public String getNameField() { - Object ref = nameField_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getNameField() { + java.lang.Object ref = nameField_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); nameField_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Optional. The field on the resource that designates the resource name
      * field. If omitted, this is assumed to be "name".
      * 
* * string name_field = 3; + * + * @return The bytes for nameField. */ - public com.google.protobuf.ByteString - getNameFieldBytes() { - Object ref = nameField_; + public com.google.protobuf.ByteString getNameFieldBytes() { + java.lang.Object ref = nameField_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nameField_ = b; return b; } else { @@ -1618,52 +1770,64 @@ public String getNameField() { } } /** + * + * *
      * Optional. The field on the resource that designates the resource name
      * field. If omitted, this is assumed to be "name".
      * 
* * string name_field = 3; + * + * @param value The nameField to set. + * @return This builder for chaining. */ - public Builder setNameField( - String value) { + public Builder setNameField(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nameField_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The field on the resource that designates the resource name
      * field. If omitted, this is assumed to be "name".
      * 
* * string name_field = 3; + * + * @return This builder for chaining. */ public Builder clearNameField() { - + nameField_ = getDefaultInstance().getNameField(); onChanged(); return this; } /** + * + * *
      * Optional. The field on the resource that designates the resource name
      * field. If omitted, this is assumed to be "name".
      * 
* * string name_field = 3; + * + * @param value The bytes for nameField to set. + * @return This builder for chaining. */ - public Builder setNameFieldBytes( - com.google.protobuf.ByteString value) { + public Builder setNameFieldBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nameField_ = value; onChanged(); return this; @@ -1671,6 +1835,8 @@ public Builder setNameFieldBytes( private int history_ = 0; /** + * + * *
      * Optional. The historical or future-looking state of the resource pattern.
      * Example:
@@ -1688,11 +1854,15 @@ public Builder setNameFieldBytes(
      * 
* * .google.api.ResourceDescriptor.History history = 4; + * + * @return The enum numeric value on the wire for history. */ public int getHistoryValue() { return history_; } /** + * + * *
      * Optional. The historical or future-looking state of the resource pattern.
      * Example:
@@ -1710,6 +1880,9 @@ public int getHistoryValue() {
      * 
* * .google.api.ResourceDescriptor.History history = 4; + * + * @param value The enum numeric value on the wire for history to set. + * @return This builder for chaining. */ public Builder setHistoryValue(int value) { history_ = value; @@ -1717,6 +1890,8 @@ public Builder setHistoryValue(int value) { return this; } /** + * + * *
      * Optional. The historical or future-looking state of the resource pattern.
      * Example:
@@ -1734,13 +1909,18 @@ public Builder setHistoryValue(int value) {
      * 
* * .google.api.ResourceDescriptor.History history = 4; + * + * @return The history. */ - public History getHistory() { + public com.google.api.ResourceDescriptor.History getHistory() { @SuppressWarnings("deprecation") - History result = History.valueOf(history_); - return result == null ? History.UNRECOGNIZED : result; + com.google.api.ResourceDescriptor.History result = + com.google.api.ResourceDescriptor.History.valueOf(history_); + return result == null ? com.google.api.ResourceDescriptor.History.UNRECOGNIZED : result; } /** + * + * *
      * Optional. The historical or future-looking state of the resource pattern.
      * Example:
@@ -1758,17 +1938,22 @@ public History getHistory() {
      * 
* * .google.api.ResourceDescriptor.History history = 4; + * + * @param value The history to set. + * @return This builder for chaining. */ - public Builder setHistory(History value) { + public Builder setHistory(com.google.api.ResourceDescriptor.History value) { if (value == null) { throw new NullPointerException(); } - + history_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. The historical or future-looking state of the resource pattern.
      * Example:
@@ -1786,16 +1971,20 @@ public Builder setHistory(History value) {
      * 
* * .google.api.ResourceDescriptor.History history = 4; + * + * @return This builder for chaining. */ public Builder clearHistory() { - + history_ = 0; onChanged(); return this; } - private Object plural_ = ""; + private java.lang.Object plural_ = ""; /** + * + * *
      * The plural name used in the resource name, such as 'projects' for
      * the name of 'projects/{project}'. It is the same concept of the `plural`
@@ -1804,20 +1993,23 @@ public Builder clearHistory() {
      * 
* * string plural = 5; + * + * @return The plural. */ - public String getPlural() { - Object ref = plural_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getPlural() { + java.lang.Object ref = plural_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); plural_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The plural name used in the resource name, such as 'projects' for
      * the name of 'projects/{project}'. It is the same concept of the `plural`
@@ -1826,14 +2018,14 @@ public String getPlural() {
      * 
* * string plural = 5; + * + * @return The bytes for plural. */ - public com.google.protobuf.ByteString - getPluralBytes() { - Object ref = plural_; + public com.google.protobuf.ByteString getPluralBytes() { + java.lang.Object ref = plural_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); plural_ = b; return b; } else { @@ -1841,6 +2033,8 @@ public String getPlural() { } } /** + * + * *
      * The plural name used in the resource name, such as 'projects' for
      * the name of 'projects/{project}'. It is the same concept of the `plural`
@@ -1849,18 +2043,22 @@ public String getPlural() {
      * 
* * string plural = 5; + * + * @param value The plural to set. + * @return This builder for chaining. */ - public Builder setPlural( - String value) { + public Builder setPlural(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + plural_ = value; onChanged(); return this; } /** + * + * *
      * The plural name used in the resource name, such as 'projects' for
      * the name of 'projects/{project}'. It is the same concept of the `plural`
@@ -1869,14 +2067,18 @@ public Builder setPlural(
      * 
* * string plural = 5; + * + * @return This builder for chaining. */ public Builder clearPlural() { - + plural_ = getDefaultInstance().getPlural(); onChanged(); return this; } /** + * + * *
      * The plural name used in the resource name, such as 'projects' for
      * the name of 'projects/{project}'. It is the same concept of the `plural`
@@ -1885,21 +2087,25 @@ public Builder clearPlural() {
      * 
* * string plural = 5; + * + * @param value The bytes for plural to set. + * @return This builder for chaining. */ - public Builder setPluralBytes( - com.google.protobuf.ByteString value) { + public Builder setPluralBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + plural_ = value; onChanged(); return this; } - private Object singular_ = ""; + private java.lang.Object singular_ = ""; /** + * + * *
      * The same concept of the `singular` field in k8s CRD spec
      * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
@@ -1907,20 +2113,23 @@ public Builder setPluralBytes(
      * 
* * string singular = 6; + * + * @return The singular. */ - public String getSingular() { - Object ref = singular_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getSingular() { + java.lang.Object ref = singular_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); singular_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The same concept of the `singular` field in k8s CRD spec
      * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
@@ -1928,14 +2137,14 @@ public String getSingular() {
      * 
* * string singular = 6; + * + * @return The bytes for singular. */ - public com.google.protobuf.ByteString - getSingularBytes() { - Object ref = singular_; + public com.google.protobuf.ByteString getSingularBytes() { + java.lang.Object ref = singular_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); singular_ = b; return b; } else { @@ -1943,6 +2152,8 @@ public String getSingular() { } } /** + * + * *
      * The same concept of the `singular` field in k8s CRD spec
      * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
@@ -1950,18 +2161,22 @@ public String getSingular() {
      * 
* * string singular = 6; + * + * @param value The singular to set. + * @return This builder for chaining. */ - public Builder setSingular( - String value) { + public Builder setSingular(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + singular_ = value; onChanged(); return this; } /** + * + * *
      * The same concept of the `singular` field in k8s CRD spec
      * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
@@ -1969,14 +2184,18 @@ public Builder setSingular(
      * 
* * string singular = 6; + * + * @return This builder for chaining. */ public Builder clearSingular() { - + singular_ = getDefaultInstance().getSingular(); onChanged(); return this; } /** + * + * *
      * The same concept of the `singular` field in k8s CRD spec
      * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
@@ -1984,68 +2203,68 @@ public Builder clearSingular() {
      * 
* * string singular = 6; + * + * @param value The bytes for singular to set. + * @return This builder for chaining. */ - public Builder setSingularBytes( - com.google.protobuf.ByteString value) { + public Builder setSingularBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + singular_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.ResourceDescriptor) } // @@protoc_insertion_point(class_scope:google.api.ResourceDescriptor) - private static final ResourceDescriptor DEFAULT_INSTANCE; + private static final com.google.api.ResourceDescriptor DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new ResourceDescriptor(); + DEFAULT_INSTANCE = new com.google.api.ResourceDescriptor(); } - public static ResourceDescriptor getDefaultInstance() { + public static com.google.api.ResourceDescriptor getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public ResourceDescriptor parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceDescriptor(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceDescriptor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceDescriptor(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public ResourceDescriptor getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.ResourceDescriptor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptorOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptorOrBuilder.java index 86e12009..5bb7636e 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptorOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptorOrBuilder.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/resource.proto package com.google.api; -public interface ResourceDescriptorOrBuilder extends +public interface ResourceDescriptorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.ResourceDescriptor) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource type. It must be in the format of
    * {service_name}/{resource_type_kind}. The `resource_type_kind` must be
@@ -20,9 +38,13 @@ public interface ResourceDescriptorOrBuilder extends
    * 
* * string type = 1; + * + * @return The type. */ - String getType(); + java.lang.String getType(); /** + * + * *
    * The resource type. It must be in the format of
    * {service_name}/{resource_type_kind}. The `resource_type_kind` must be
@@ -35,11 +57,14 @@ public interface ResourceDescriptorOrBuilder extends
    * 
* * string type = 1; + * + * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); /** + * + * *
    * Optional. The relative resource name pattern associated with this resource
    * type. The DNS prefix of the full resource name shouldn't be specified here.
@@ -58,10 +83,13 @@ public interface ResourceDescriptorOrBuilder extends
    * 
* * repeated string pattern = 2; + * + * @return A list containing the pattern. */ - java.util.List - getPatternList(); + java.util.List getPatternList(); /** + * + * *
    * Optional. The relative resource name pattern associated with this resource
    * type. The DNS prefix of the full resource name shouldn't be specified here.
@@ -80,9 +108,13 @@ public interface ResourceDescriptorOrBuilder extends
    * 
* * repeated string pattern = 2; + * + * @return The count of pattern. */ int getPatternCount(); /** + * + * *
    * Optional. The relative resource name pattern associated with this resource
    * type. The DNS prefix of the full resource name shouldn't be specified here.
@@ -101,9 +133,14 @@ public interface ResourceDescriptorOrBuilder extends
    * 
* * repeated string pattern = 2; + * + * @param index The index of the element to return. + * @return The pattern at the given index. */ - String getPattern(int index); + java.lang.String getPattern(int index); /** + * + * *
    * Optional. The relative resource name pattern associated with this resource
    * type. The DNS prefix of the full resource name shouldn't be specified here.
@@ -122,31 +159,42 @@ public interface ResourceDescriptorOrBuilder extends
    * 
* * repeated string pattern = 2; + * + * @param index The index of the value to return. + * @return The bytes of the pattern at the given index. */ - com.google.protobuf.ByteString - getPatternBytes(int index); + com.google.protobuf.ByteString getPatternBytes(int index); /** + * + * *
    * Optional. The field on the resource that designates the resource name
    * field. If omitted, this is assumed to be "name".
    * 
* * string name_field = 3; + * + * @return The nameField. */ - String getNameField(); + java.lang.String getNameField(); /** + * + * *
    * Optional. The field on the resource that designates the resource name
    * field. If omitted, this is assumed to be "name".
    * 
* * string name_field = 3; + * + * @return The bytes for nameField. */ - com.google.protobuf.ByteString - getNameFieldBytes(); + com.google.protobuf.ByteString getNameFieldBytes(); /** + * + * *
    * Optional. The historical or future-looking state of the resource pattern.
    * Example:
@@ -164,9 +212,13 @@ public interface ResourceDescriptorOrBuilder extends
    * 
* * .google.api.ResourceDescriptor.History history = 4; + * + * @return The enum numeric value on the wire for history. */ int getHistoryValue(); /** + * + * *
    * Optional. The historical or future-looking state of the resource pattern.
    * Example:
@@ -184,10 +236,14 @@ public interface ResourceDescriptorOrBuilder extends
    * 
* * .google.api.ResourceDescriptor.History history = 4; + * + * @return The history. */ - ResourceDescriptor.History getHistory(); + com.google.api.ResourceDescriptor.History getHistory(); /** + * + * *
    * The plural name used in the resource name, such as 'projects' for
    * the name of 'projects/{project}'. It is the same concept of the `plural`
@@ -196,9 +252,13 @@ public interface ResourceDescriptorOrBuilder extends
    * 
* * string plural = 5; + * + * @return The plural. */ - String getPlural(); + java.lang.String getPlural(); /** + * + * *
    * The plural name used in the resource name, such as 'projects' for
    * the name of 'projects/{project}'. It is the same concept of the `plural`
@@ -207,11 +267,14 @@ public interface ResourceDescriptorOrBuilder extends
    * 
* * string plural = 5; + * + * @return The bytes for plural. */ - com.google.protobuf.ByteString - getPluralBytes(); + com.google.protobuf.ByteString getPluralBytes(); /** + * + * *
    * The same concept of the `singular` field in k8s CRD spec
    * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
@@ -219,9 +282,13 @@ public interface ResourceDescriptorOrBuilder extends
    * 
* * string singular = 6; + * + * @return The singular. */ - String getSingular(); + java.lang.String getSingular(); /** + * + * *
    * The same concept of the `singular` field in k8s CRD spec
    * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
@@ -229,7 +296,8 @@ public interface ResourceDescriptorOrBuilder extends
    * 
* * string singular = 6; + * + * @return The bytes for singular. */ - com.google.protobuf.ByteString - getSingularBytes(); + com.google.protobuf.ByteString getSingularBytes(); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/ResourceProto.java b/proto-google-common-protos/src/main/java/com/google/api/ResourceProto.java index a1507666..9b6f600e 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/ResourceProto.java +++ b/proto-google-common-protos/src/main/java/com/google/api/ResourceProto.java @@ -1,3 +1,18 @@ +/* + * 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/resource.proto @@ -5,20 +20,21 @@ public final class ResourceProto { private ResourceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - registry.add(ResourceProto.resourceReference); - registry.add(ResourceProto.resourceDefinition); - registry.add(ResourceProto.resource); + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resource); } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + public static final int RESOURCE_REFERENCE_FIELD_NUMBER = 1055; /** + * + * *
    * An annotation that describes a resource reference, see
    * [ResourceReference][].
@@ -26,15 +42,17 @@ public static void registerAllExtensions(
    *
    * extend .google.protobuf.FieldOptions { ... }
    */
-  public static final
-    com.google.protobuf.GeneratedMessage.GeneratedExtension<
-      com.google.protobuf.DescriptorProtos.FieldOptions,
-      com.google.api.ResourceReference> resourceReference = com.google.protobuf.GeneratedMessage
-          .newFileScopedGeneratedExtension(
-        com.google.api.ResourceReference.class,
-        com.google.api.ResourceReference.getDefaultInstance());
+  public static final com.google.protobuf.GeneratedMessage.GeneratedExtension<
+          com.google.protobuf.DescriptorProtos.FieldOptions, com.google.api.ResourceReference>
+      resourceReference =
+          com.google.protobuf.GeneratedMessage.newFileScopedGeneratedExtension(
+              com.google.api.ResourceReference.class,
+              com.google.api.ResourceReference.getDefaultInstance());
+
   public static final int RESOURCE_DEFINITION_FIELD_NUMBER = 1053;
   /**
+   *
+   *
    * 
    * An annotation that describes a resource definition without a corresponding
    * message; see [ResourceDescriptor][].
@@ -42,15 +60,18 @@ public static void registerAllExtensions(
    *
    * extend .google.protobuf.FileOptions { ... }
    */
-  public static final
-    com.google.protobuf.GeneratedMessage.GeneratedExtension<
-      com.google.protobuf.DescriptorProtos.FileOptions,
-      java.util.List> resourceDefinition = com.google.protobuf.GeneratedMessage
-          .newFileScopedGeneratedExtension(
-        com.google.api.ResourceDescriptor.class,
-        com.google.api.ResourceDescriptor.getDefaultInstance());
+  public static final com.google.protobuf.GeneratedMessage.GeneratedExtension<
+          com.google.protobuf.DescriptorProtos.FileOptions,
+          java.util.List>
+      resourceDefinition =
+          com.google.protobuf.GeneratedMessage.newFileScopedGeneratedExtension(
+              com.google.api.ResourceDescriptor.class,
+              com.google.api.ResourceDescriptor.getDefaultInstance());
+
   public static final int RESOURCE_FIELD_NUMBER = 1053;
   /**
+   *
+   *
    * 
    * An annotation that describes a resource definition, see
    * [ResourceDescriptor][].
@@ -58,78 +79,73 @@ public static void registerAllExtensions(
    *
    * extend .google.protobuf.MessageOptions { ... }
    */
-  public static final
-    com.google.protobuf.GeneratedMessage.GeneratedExtension<
-      com.google.protobuf.DescriptorProtos.MessageOptions,
-      com.google.api.ResourceDescriptor> resource = com.google.protobuf.GeneratedMessage
-          .newFileScopedGeneratedExtension(
-        com.google.api.ResourceDescriptor.class,
-        com.google.api.ResourceDescriptor.getDefaultInstance());
+  public static final com.google.protobuf.GeneratedMessage.GeneratedExtension<
+          com.google.protobuf.DescriptorProtos.MessageOptions, com.google.api.ResourceDescriptor>
+      resource =
+          com.google.protobuf.GeneratedMessage.newFileScopedGeneratedExtension(
+              com.google.api.ResourceDescriptor.class,
+              com.google.api.ResourceDescriptor.getDefaultInstance());
+
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_api_ResourceDescriptor_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_ResourceDescriptor_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_ResourceDescriptor_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_api_ResourceReference_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_api_ResourceReference_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_api_ResourceReference_fieldAccessorTable;
 
-  public static com.google.protobuf.Descriptors.FileDescriptor
-      getDescriptor() {
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     return descriptor;
   }
-  private static  com.google.protobuf.Descriptors.FileDescriptor
-      descriptor;
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
   static {
-    String[] descriptorData = {
-      "\n\031google/api/resource.proto\022\ngoogle.api\032" +
-      " google/protobuf/descriptor.proto\"\377\001\n\022Re" +
-      "sourceDescriptor\022\014\n\004type\030\001 \001(\t\022\017\n\007patter" +
-      "n\030\002 \003(\t\022\022\n\nname_field\030\003 \001(\t\0227\n\007history\030\004" +
-      " \001(\0162&.google.api.ResourceDescriptor.His" +
-      "tory\022\016\n\006plural\030\005 \001(\t\022\020\n\010singular\030\006 \001(\t\"[" +
-      "\n\007History\022\027\n\023HISTORY_UNSPECIFIED\020\000\022\035\n\031OR" +
-      "IGINALLY_SINGLE_PATTERN\020\001\022\030\n\024FUTURE_MULT" +
-      "I_PATTERN\020\002\"5\n\021ResourceReference\022\014\n\004type" +
-      "\030\001 \001(\t\022\022\n\nchild_type\030\002 \001(\t:Y\n\022resource_r" +
-      "eference\022\035.google.protobuf.FieldOptions\030" +
-      "\237\010 \001(\0132\035.google.api.ResourceReference:Z\n" +
-      "\023resource_definition\022\034.google.protobuf.F" +
-      "ileOptions\030\235\010 \003(\0132\036.google.api.ResourceD" +
-      "escriptor:R\n\010resource\022\037.google.protobuf." +
-      "MessageOptions\030\235\010 \001(\0132\036.google.api.Resou" +
-      "rceDescriptorBn\n\016com.google.apiB\rResourc" +
-      "eProtoP\001ZAgoogle.golang.org/genproto/goo" +
-      "gleapis/api/annotations;annotations\370\001\001\242\002" +
-      "\004GAPIb\006proto3"
+    java.lang.String[] descriptorData = {
+      "\n\031google/api/resource.proto\022\ngoogle.api\032"
+          + " google/protobuf/descriptor.proto\"\377\001\n\022Re"
+          + "sourceDescriptor\022\014\n\004type\030\001 \001(\t\022\017\n\007patter"
+          + "n\030\002 \003(\t\022\022\n\nname_field\030\003 \001(\t\0227\n\007history\030\004"
+          + " \001(\0162&.google.api.ResourceDescriptor.His"
+          + "tory\022\016\n\006plural\030\005 \001(\t\022\020\n\010singular\030\006 \001(\t\"["
+          + "\n\007History\022\027\n\023HISTORY_UNSPECIFIED\020\000\022\035\n\031OR"
+          + "IGINALLY_SINGLE_PATTERN\020\001\022\030\n\024FUTURE_MULT"
+          + "I_PATTERN\020\002\"5\n\021ResourceReference\022\014\n\004type"
+          + "\030\001 \001(\t\022\022\n\nchild_type\030\002 \001(\t:Y\n\022resource_r"
+          + "eference\022\035.google.protobuf.FieldOptions\030"
+          + "\237\010 \001(\0132\035.google.api.ResourceReference:Z\n"
+          + "\023resource_definition\022\034.google.protobuf.F"
+          + "ileOptions\030\235\010 \003(\0132\036.google.api.ResourceD"
+          + "escriptor:R\n\010resource\022\037.google.protobuf."
+          + "MessageOptions\030\235\010 \001(\0132\036.google.api.Resou"
+          + "rceDescriptorBn\n\016com.google.apiB\rResourc"
+          + "eProtoP\001ZAgoogle.golang.org/genproto/goo"
+          + "gleapis/api/annotations;annotations\370\001\001\242\002"
+          + "\004GAPIb\006proto3"
     };
-    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
-        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
-          public com.google.protobuf.ExtensionRegistry assignDescriptors(
-              com.google.protobuf.Descriptors.FileDescriptor root) {
-            descriptor = root;
-            return null;
-          }
-        };
-    com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-          com.google.protobuf.DescriptorProtos.getDescriptor(),
-        }, assigner);
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.protobuf.DescriptorProtos.getDescriptor(),
+            });
     internal_static_google_api_ResourceDescriptor_descriptor =
-      getDescriptor().getMessageTypes().get(0);
-    internal_static_google_api_ResourceDescriptor_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_ResourceDescriptor_descriptor,
-        new String[] { "Type", "Pattern", "NameField", "History", "Plural", "Singular", });
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_api_ResourceDescriptor_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_ResourceDescriptor_descriptor,
+            new java.lang.String[] {
+              "Type", "Pattern", "NameField", "History", "Plural", "Singular",
+            });
     internal_static_google_api_ResourceReference_descriptor =
-      getDescriptor().getMessageTypes().get(1);
-    internal_static_google_api_ResourceReference_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_api_ResourceReference_descriptor,
-        new String[] { "Type", "ChildType", });
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_api_ResourceReference_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_api_ResourceReference_descriptor,
+            new java.lang.String[] {
+              "Type", "ChildType",
+            });
     resourceReference.internalInit(descriptor.getExtensions().get(0));
     resourceDefinition.internalInit(descriptor.getExtensions().get(1));
     resource.internalInit(descriptor.getExtensions().get(2));
diff --git a/proto-google-common-protos/src/main/java/com/google/api/ResourceReference.java b/proto-google-common-protos/src/main/java/com/google/api/ResourceReference.java
index d8f0198d..28ff646b 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/ResourceReference.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/ResourceReference.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/resource.proto
 
 package com.google.api;
 
 /**
+ *
+ *
  * 
  * Defines a proto annotation that describes a string field that refers to
  * an API resource.
@@ -11,34 +28,40 @@
  *
  * Protobuf type {@code google.api.ResourceReference}
  */
-public  final class ResourceReference extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ResourceReference extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.ResourceReference)
     ResourceReferenceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ResourceReference.newBuilder() to construct.
   private ResourceReference(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ResourceReference() {
     type_ = "";
     childType_ = "";
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new ResourceReference();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ResourceReference(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
-    int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
         com.google.protobuf.UnknownFieldSet.newBuilder();
     try {
@@ -49,53 +72,57 @@ private ResourceReference(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            type_ = s;
-            break;
-          }
-          case 18: {
-            String s = input.readStringRequireUtf8();
+              type_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            childType_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              childType_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return ResourceProto.internal_static_google_api_ResourceReference_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.api.ResourceProto.internal_static_google_api_ResourceReference_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return ResourceProto.internal_static_google_api_ResourceReference_fieldAccessorTable
+    return com.google.api.ResourceProto
+        .internal_static_google_api_ResourceReference_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            ResourceReference.class, Builder.class);
+            com.google.api.ResourceReference.class, com.google.api.ResourceReference.Builder.class);
   }
 
   public static final int TYPE_FIELD_NUMBER = 1;
-  private volatile Object type_;
+  private volatile java.lang.Object type_;
   /**
+   *
+   *
    * 
    * The resource type that the annotated field references.
    * Example:
@@ -107,20 +134,23 @@ private ResourceReference(
    * 
* * string type = 1; + * + * @return The type. */ - public String getType() { - Object ref = type_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** + * + * *
    * The resource type that the annotated field references.
    * Example:
@@ -132,14 +162,14 @@ public String getType() {
    * 
* * string type = 1; + * + * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { - Object ref = type_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -148,56 +178,61 @@ public String getType() { } public static final int CHILD_TYPE_FIELD_NUMBER = 2; - private volatile Object childType_; + private volatile java.lang.Object childType_; /** + * + * *
    * The resource type of a child collection that the annotated field
    * references. This is useful for annotating the `parent` field that
    * doesn't have a fixed resource type.
    * Example:
-   *   message ListLogEntriesRequest {
-   *     string parent = 1 [(google.api.resource_reference) = {
-   *       child_type: "logging.googleapis.com/LogEntry"
-   *     };
-   *   }
+   *     message ListLogEntriesRequest {
+   *       string parent = 1 [(google.api.resource_reference) = {
+   *         child_type: "logging.googleapis.com/LogEntry"
+   *       };
+   *     }
    * 
* * string child_type = 2; + * + * @return The childType. */ - public String getChildType() { - Object ref = childType_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getChildType() { + java.lang.Object ref = childType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); childType_ = s; return s; } } /** + * + * *
    * The resource type of a child collection that the annotated field
    * references. This is useful for annotating the `parent` field that
    * doesn't have a fixed resource type.
    * Example:
-   *   message ListLogEntriesRequest {
-   *     string parent = 1 [(google.api.resource_reference) = {
-   *       child_type: "logging.googleapis.com/LogEntry"
-   *     };
-   *   }
+   *     message ListLogEntriesRequest {
+   *       string parent = 1 [(google.api.resource_reference) = {
+   *         child_type: "logging.googleapis.com/LogEntry"
+   *       };
+   *     }
    * 
* * string child_type = 2; + * + * @return The bytes for childType. */ - public com.google.protobuf.ByteString - getChildTypeBytes() { - Object ref = childType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getChildTypeBytes() { + java.lang.Object ref = childType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); childType_ = b; return b; } else { @@ -206,7 +241,8 @@ public String getChildType() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -216,9 +252,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getTypeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } @@ -228,7 +263,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -245,25 +280,23 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof ResourceReference)) { + if (!(obj instanceof com.google.api.ResourceReference)) { return super.equals(obj); } - ResourceReference other = (ResourceReference) obj; + com.google.api.ResourceReference other = (com.google.api.ResourceReference) obj; - if (!getType() - .equals(other.getType())) return false; - if (!getChildType() - .equals(other.getChildType())) return false; + if (!getType().equals(other.getType())) return false; + if (!getChildType().equals(other.getChildType())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -279,97 +312,103 @@ public int hashCode() { return hash; } - public static ResourceReference parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.ResourceReference parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static ResourceReference parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.ResourceReference parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static ResourceReference parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.api.ResourceReference parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static ResourceReference parseFrom( + + public static com.google.api.ResourceReference parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static ResourceReference parseFrom(byte[] data) + + public static com.google.api.ResourceReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static ResourceReference parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.ResourceReference parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static ResourceReference parseFrom(java.io.InputStream input) + + public static com.google.api.ResourceReference 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 ResourceReference parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.ResourceReference parseFrom( + 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 ResourceReference parseDelimitedFrom(java.io.InputStream input) + + public static com.google.api.ResourceReference 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 ResourceReference parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.ResourceReference parseDelimitedFrom( + 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 ResourceReference parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.api.ResourceReference parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static ResourceReference parseFrom( + + public static com.google.api.ResourceReference 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(ResourceReference prototype) { + + public static Builder newBuilder(com.google.api.ResourceReference prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Defines a proto annotation that describes a string field that refers to
    * an API resource.
@@ -377,21 +416,22 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.ResourceReference}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.ResourceReference)
       com.google.api.ResourceReferenceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return ResourceProto.internal_static_google_api_ResourceReference_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.api.ResourceProto.internal_static_google_api_ResourceReference_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return ResourceProto.internal_static_google_api_ResourceReference_fieldAccessorTable
+      return com.google.api.ResourceProto
+          .internal_static_google_api_ResourceReference_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              ResourceReference.class, Builder.class);
+              com.google.api.ResourceReference.class,
+              com.google.api.ResourceReference.Builder.class);
     }
 
     // Construct using com.google.api.ResourceReference.newBuilder()
@@ -399,17 +439,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       type_ = "";
@@ -419,79 +458,79 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return ResourceProto.internal_static_google_api_ResourceReference_descriptor;
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.api.ResourceProto.internal_static_google_api_ResourceReference_descriptor;
     }
 
-    @Override
-    public ResourceReference getDefaultInstanceForType() {
-      return ResourceReference.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.ResourceReference getDefaultInstanceForType() {
+      return com.google.api.ResourceReference.getDefaultInstance();
     }
 
-    @Override
-    public ResourceReference build() {
-      ResourceReference result = buildPartial();
+    @java.lang.Override
+    public com.google.api.ResourceReference build() {
+      com.google.api.ResourceReference result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public ResourceReference buildPartial() {
-      ResourceReference result = new ResourceReference(this);
+    @java.lang.Override
+    public com.google.api.ResourceReference buildPartial() {
+      com.google.api.ResourceReference result = new com.google.api.ResourceReference(this);
       result.type_ = type_;
       result.childType_ = childType_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof ResourceReference) {
-        return mergeFrom((ResourceReference)other);
+      if (other instanceof com.google.api.ResourceReference) {
+        return mergeFrom((com.google.api.ResourceReference) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(ResourceReference other) {
-      if (other == ResourceReference.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.ResourceReference other) {
+      if (other == com.google.api.ResourceReference.getDefaultInstance()) return this;
       if (!other.getType().isEmpty()) {
         type_ = other.type_;
         onChanged();
@@ -505,21 +544,21 @@ public Builder mergeFrom(ResourceReference other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      ResourceReference parsedMessage = null;
+      com.google.api.ResourceReference parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (ResourceReference) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.ResourceReference) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -529,8 +568,10 @@ public Builder mergeFrom(
       return this;
     }
 
-    private Object type_ = "";
+    private java.lang.Object type_ = "";
     /**
+     *
+     *
      * 
      * The resource type that the annotated field references.
      * Example:
@@ -542,20 +583,23 @@ public Builder mergeFrom(
      * 
* * string type = 1; + * + * @return The type. */ - public String getType() { - Object ref = type_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The resource type that the annotated field references.
      * Example:
@@ -567,14 +611,14 @@ public String getType() {
      * 
* * string type = 1; + * + * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { - Object ref = type_; + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -582,6 +626,8 @@ public String getType() { } } /** + * + * *
      * The resource type that the annotated field references.
      * Example:
@@ -593,18 +639,22 @@ public String getType() {
      * 
* * string type = 1; + * + * @param value The type to set. + * @return This builder for chaining. */ - public Builder setType( - String value) { + public Builder setType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** + * + * *
      * The resource type that the annotated field references.
      * Example:
@@ -616,14 +666,18 @@ public Builder setType(
      * 
* * string type = 1; + * + * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** + * + * *
      * The resource type that the annotated field references.
      * Example:
@@ -635,69 +689,76 @@ public Builder clearType() {
      * 
* * string type = 1; + * + * @param value The bytes for type to set. + * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; } - private Object childType_ = ""; + private java.lang.Object childType_ = ""; /** + * + * *
      * The resource type of a child collection that the annotated field
      * references. This is useful for annotating the `parent` field that
      * doesn't have a fixed resource type.
      * Example:
-     *   message ListLogEntriesRequest {
-     *     string parent = 1 [(google.api.resource_reference) = {
-     *       child_type: "logging.googleapis.com/LogEntry"
-     *     };
-     *   }
+     *     message ListLogEntriesRequest {
+     *       string parent = 1 [(google.api.resource_reference) = {
+     *         child_type: "logging.googleapis.com/LogEntry"
+     *       };
+     *     }
      * 
* * string child_type = 2; + * + * @return The childType. */ - public String getChildType() { - Object ref = childType_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getChildType() { + java.lang.Object ref = childType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); childType_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The resource type of a child collection that the annotated field
      * references. This is useful for annotating the `parent` field that
      * doesn't have a fixed resource type.
      * Example:
-     *   message ListLogEntriesRequest {
-     *     string parent = 1 [(google.api.resource_reference) = {
-     *       child_type: "logging.googleapis.com/LogEntry"
-     *     };
-     *   }
+     *     message ListLogEntriesRequest {
+     *       string parent = 1 [(google.api.resource_reference) = {
+     *         child_type: "logging.googleapis.com/LogEntry"
+     *       };
+     *     }
      * 
* * string child_type = 2; + * + * @return The bytes for childType. */ - public com.google.protobuf.ByteString - getChildTypeBytes() { - Object ref = childType_; + public com.google.protobuf.ByteString getChildTypeBytes() { + java.lang.Object ref = childType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); childType_ = b; return b; } else { @@ -705,127 +766,137 @@ public String getChildType() { } } /** + * + * *
      * The resource type of a child collection that the annotated field
      * references. This is useful for annotating the `parent` field that
      * doesn't have a fixed resource type.
      * Example:
-     *   message ListLogEntriesRequest {
-     *     string parent = 1 [(google.api.resource_reference) = {
-     *       child_type: "logging.googleapis.com/LogEntry"
-     *     };
-     *   }
+     *     message ListLogEntriesRequest {
+     *       string parent = 1 [(google.api.resource_reference) = {
+     *         child_type: "logging.googleapis.com/LogEntry"
+     *       };
+     *     }
      * 
* * string child_type = 2; + * + * @param value The childType to set. + * @return This builder for chaining. */ - public Builder setChildType( - String value) { + public Builder setChildType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + childType_ = value; onChanged(); return this; } /** + * + * *
      * The resource type of a child collection that the annotated field
      * references. This is useful for annotating the `parent` field that
      * doesn't have a fixed resource type.
      * Example:
-     *   message ListLogEntriesRequest {
-     *     string parent = 1 [(google.api.resource_reference) = {
-     *       child_type: "logging.googleapis.com/LogEntry"
-     *     };
-     *   }
+     *     message ListLogEntriesRequest {
+     *       string parent = 1 [(google.api.resource_reference) = {
+     *         child_type: "logging.googleapis.com/LogEntry"
+     *       };
+     *     }
      * 
* * string child_type = 2; + * + * @return This builder for chaining. */ public Builder clearChildType() { - + childType_ = getDefaultInstance().getChildType(); onChanged(); return this; } /** + * + * *
      * The resource type of a child collection that the annotated field
      * references. This is useful for annotating the `parent` field that
      * doesn't have a fixed resource type.
      * Example:
-     *   message ListLogEntriesRequest {
-     *     string parent = 1 [(google.api.resource_reference) = {
-     *       child_type: "logging.googleapis.com/LogEntry"
-     *     };
-     *   }
+     *     message ListLogEntriesRequest {
+     *       string parent = 1 [(google.api.resource_reference) = {
+     *         child_type: "logging.googleapis.com/LogEntry"
+     *       };
+     *     }
      * 
* * string child_type = 2; + * + * @param value The bytes for childType to set. + * @return This builder for chaining. */ - public Builder setChildTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setChildTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + childType_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.ResourceReference) } // @@protoc_insertion_point(class_scope:google.api.ResourceReference) - private static final ResourceReference DEFAULT_INSTANCE; + private static final com.google.api.ResourceReference DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new ResourceReference(); + DEFAULT_INSTANCE = new com.google.api.ResourceReference(); } - public static ResourceReference getDefaultInstance() { + public static com.google.api.ResourceReference getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public ResourceReference parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceReference(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceReference(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public ResourceReference getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.ResourceReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/ResourceReferenceOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/ResourceReferenceOrBuilder.java index 22aff41f..f2b70866 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/ResourceReferenceOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/ResourceReferenceOrBuilder.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/resource.proto package com.google.api; -public interface ResourceReferenceOrBuilder extends +public interface ResourceReferenceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.ResourceReference) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource type that the annotated field references.
    * Example:
@@ -19,9 +37,13 @@ public interface ResourceReferenceOrBuilder extends
    * 
* * string type = 1; + * + * @return The type. */ - String getType(); + java.lang.String getType(); /** + * + * *
    * The resource type that the annotated field references.
    * Example:
@@ -33,41 +55,49 @@ public interface ResourceReferenceOrBuilder extends
    * 
* * string type = 1; + * + * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); /** + * + * *
    * The resource type of a child collection that the annotated field
    * references. This is useful for annotating the `parent` field that
    * doesn't have a fixed resource type.
    * Example:
-   *   message ListLogEntriesRequest {
-   *     string parent = 1 [(google.api.resource_reference) = {
-   *       child_type: "logging.googleapis.com/LogEntry"
-   *     };
-   *   }
+   *     message ListLogEntriesRequest {
+   *       string parent = 1 [(google.api.resource_reference) = {
+   *         child_type: "logging.googleapis.com/LogEntry"
+   *       };
+   *     }
    * 
* * string child_type = 2; + * + * @return The childType. */ - String getChildType(); + java.lang.String getChildType(); /** + * + * *
    * The resource type of a child collection that the annotated field
    * references. This is useful for annotating the `parent` field that
    * doesn't have a fixed resource type.
    * Example:
-   *   message ListLogEntriesRequest {
-   *     string parent = 1 [(google.api.resource_reference) = {
-   *       child_type: "logging.googleapis.com/LogEntry"
-   *     };
-   *   }
+   *     message ListLogEntriesRequest {
+   *       string parent = 1 [(google.api.resource_reference) = {
+   *         child_type: "logging.googleapis.com/LogEntry"
+   *       };
+   *     }
    * 
* * string child_type = 2; + * + * @return The bytes for childType. */ - com.google.protobuf.ByteString - getChildTypeBytes(); + com.google.protobuf.ByteString getChildTypeBytes(); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/Service.java b/proto-google-common-protos/src/main/java/com/google/api/Service.java index 8ab850e7..eecc73ab 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/Service.java +++ b/proto-google-common-protos/src/main/java/com/google/api/Service.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/service.proto package com.google.api; /** + * + * *
  * `Service` is the root object of Google service configuration schema. It
  * describes basic information about a service, such as the name and the
@@ -30,15 +47,16 @@
  *
  * Protobuf type {@code google.api.Service}
  */
-public  final class Service extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Service extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.Service)
     ServiceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Service.newBuilder() to construct.
   private Service(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Service() {
     name_ = "";
     id_ = "";
@@ -53,18 +71,24 @@ private Service() {
     monitoredResources_ = java.util.Collections.emptyList();
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new Service();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Service(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -77,332 +101,362 @@ private Service(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 18: {
-            String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            title_ = s;
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000020) != 0)) {
-              apis_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000020;
-            }
-            apis_.add(
-                input.readMessage(com.google.protobuf.Api.parser(), extensionRegistry));
-            break;
-          }
-          case 34: {
-            if (!((mutable_bitField0_ & 0x00000040) != 0)) {
-              types_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000040;
-            }
-            types_.add(
-                input.readMessage(com.google.protobuf.Type.parser(), extensionRegistry));
-            break;
-          }
-          case 42: {
-            if (!((mutable_bitField0_ & 0x00000080) != 0)) {
-              enums_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000080;
-            }
-            enums_.add(
-                input.readMessage(com.google.protobuf.Enum.parser(), extensionRegistry));
-            break;
-          }
-          case 50: {
-            com.google.api.Documentation.Builder subBuilder = null;
-            if (documentation_ != null) {
-              subBuilder = documentation_.toBuilder();
-            }
-            documentation_ = input.readMessage(com.google.api.Documentation.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(documentation_);
-              documentation_ = subBuilder.buildPartial();
+              name_ = s;
+              break;
             }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 66: {
-            Backend.Builder subBuilder = null;
-            if (backend_ != null) {
-              subBuilder = backend_.toBuilder();
+              title_ = s;
+              break;
             }
-            backend_ = input.readMessage(Backend.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(backend_);
-              backend_ = subBuilder.buildPartial();
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                apis_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              apis_.add(input.readMessage(com.google.protobuf.Api.parser(), extensionRegistry));
+              break;
             }
-
-            break;
-          }
-          case 74: {
-            Http.Builder subBuilder = null;
-            if (http_ != null) {
-              subBuilder = http_.toBuilder();
+          case 34:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                types_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              types_.add(input.readMessage(com.google.protobuf.Type.parser(), extensionRegistry));
+              break;
             }
-            http_ = input.readMessage(Http.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(http_);
-              http_ = subBuilder.buildPartial();
+          case 42:
+            {
+              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+                enums_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000004;
+              }
+              enums_.add(input.readMessage(com.google.protobuf.Enum.parser(), extensionRegistry));
+              break;
             }
-
-            break;
-          }
-          case 82: {
-            Quota.Builder subBuilder = null;
-            if (quota_ != null) {
-              subBuilder = quota_.toBuilder();
+          case 50:
+            {
+              com.google.api.Documentation.Builder subBuilder = null;
+              if (documentation_ != null) {
+                subBuilder = documentation_.toBuilder();
+              }
+              documentation_ =
+                  input.readMessage(com.google.api.Documentation.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(documentation_);
+                documentation_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            quota_ = input.readMessage(Quota.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(quota_);
-              quota_ = subBuilder.buildPartial();
+          case 66:
+            {
+              com.google.api.Backend.Builder subBuilder = null;
+              if (backend_ != null) {
+                subBuilder = backend_.toBuilder();
+              }
+              backend_ = input.readMessage(com.google.api.Backend.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(backend_);
+                backend_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 90: {
-            com.google.api.Authentication.Builder subBuilder = null;
-            if (authentication_ != null) {
-              subBuilder = authentication_.toBuilder();
-            }
-            authentication_ = input.readMessage(com.google.api.Authentication.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(authentication_);
-              authentication_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 98: {
-            Context.Builder subBuilder = null;
-            if (context_ != null) {
-              subBuilder = context_.toBuilder();
+          case 74:
+            {
+              com.google.api.Http.Builder subBuilder = null;
+              if (http_ != null) {
+                subBuilder = http_.toBuilder();
+              }
+              http_ = input.readMessage(com.google.api.Http.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(http_);
+                http_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            context_ = input.readMessage(Context.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(context_);
-              context_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 122: {
-            Usage.Builder subBuilder = null;
-            if (usage_ != null) {
-              subBuilder = usage_.toBuilder();
+          case 82:
+            {
+              com.google.api.Quota.Builder subBuilder = null;
+              if (quota_ != null) {
+                subBuilder = quota_.toBuilder();
+              }
+              quota_ = input.readMessage(com.google.api.Quota.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(quota_);
+                quota_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            usage_ = input.readMessage(Usage.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(usage_);
-              usage_ = subBuilder.buildPartial();
+          case 90:
+            {
+              com.google.api.Authentication.Builder subBuilder = null;
+              if (authentication_ != null) {
+                subBuilder = authentication_.toBuilder();
+              }
+              authentication_ =
+                  input.readMessage(com.google.api.Authentication.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(authentication_);
+                authentication_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 146: {
-            if (!((mutable_bitField0_ & 0x00008000) != 0)) {
-              endpoints_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00008000;
+          case 98:
+            {
+              com.google.api.Context.Builder subBuilder = null;
+              if (context_ != null) {
+                subBuilder = context_.toBuilder();
+              }
+              context_ = input.readMessage(com.google.api.Context.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(context_);
+                context_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            endpoints_.add(
-                input.readMessage(com.google.api.Endpoint.parser(), extensionRegistry));
-            break;
-          }
-          case 162: {
-            com.google.protobuf.UInt32Value.Builder subBuilder = null;
-            if (configVersion_ != null) {
-              subBuilder = configVersion_.toBuilder();
+          case 122:
+            {
+              com.google.api.Usage.Builder subBuilder = null;
+              if (usage_ != null) {
+                subBuilder = usage_.toBuilder();
+              }
+              usage_ = input.readMessage(com.google.api.Usage.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(usage_);
+                usage_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            configVersion_ = input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(configVersion_);
-              configVersion_ = subBuilder.buildPartial();
+          case 146:
+            {
+              if (!((mutable_bitField0_ & 0x00000008) != 0)) {
+                endpoints_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000008;
+              }
+              endpoints_.add(
+                  input.readMessage(com.google.api.Endpoint.parser(), extensionRegistry));
+              break;
             }
-
-            break;
-          }
-          case 170: {
-            Control.Builder subBuilder = null;
-            if (control_ != null) {
-              subBuilder = control_.toBuilder();
+          case 162:
+            {
+              com.google.protobuf.UInt32Value.Builder subBuilder = null;
+              if (configVersion_ != null) {
+                subBuilder = configVersion_.toBuilder();
+              }
+              configVersion_ =
+                  input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(configVersion_);
+                configVersion_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            control_ = input.readMessage(Control.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(control_);
-              control_ = subBuilder.buildPartial();
+          case 170:
+            {
+              com.google.api.Control.Builder subBuilder = null;
+              if (control_ != null) {
+                subBuilder = control_.toBuilder();
+              }
+              control_ = input.readMessage(com.google.api.Control.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(control_);
+                control_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 178:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 178: {
-            String s = input.readStringRequireUtf8();
-
-            producerProjectId_ = s;
-            break;
-          }
-          case 186: {
-            if (!((mutable_bitField0_ & 0x00020000) != 0)) {
-              logs_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00020000;
+              producerProjectId_ = s;
+              break;
             }
-            logs_.add(
-                input.readMessage(com.google.api.LogDescriptor.parser(), extensionRegistry));
-            break;
-          }
-          case 194: {
-            if (!((mutable_bitField0_ & 0x00040000) != 0)) {
-              metrics_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00040000;
+          case 186:
+            {
+              if (!((mutable_bitField0_ & 0x00000010) != 0)) {
+                logs_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000010;
+              }
+              logs_.add(
+                  input.readMessage(com.google.api.LogDescriptor.parser(), extensionRegistry));
+              break;
             }
-            metrics_.add(
-                input.readMessage(com.google.api.MetricDescriptor.parser(), extensionRegistry));
-            break;
-          }
-          case 202: {
-            if (!((mutable_bitField0_ & 0x00080000) != 0)) {
-              monitoredResources_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00080000;
+          case 194:
+            {
+              if (!((mutable_bitField0_ & 0x00000020) != 0)) {
+                metrics_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000020;
+              }
+              metrics_.add(
+                  input.readMessage(com.google.api.MetricDescriptor.parser(), extensionRegistry));
+              break;
             }
-            monitoredResources_.add(
-                input.readMessage(com.google.api.MonitoredResourceDescriptor.parser(), extensionRegistry));
-            break;
-          }
-          case 210: {
-            Billing.Builder subBuilder = null;
-            if (billing_ != null) {
-              subBuilder = billing_.toBuilder();
+          case 202:
+            {
+              if (!((mutable_bitField0_ & 0x00000040) != 0)) {
+                monitoredResources_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000040;
+              }
+              monitoredResources_.add(
+                  input.readMessage(
+                      com.google.api.MonitoredResourceDescriptor.parser(), extensionRegistry));
+              break;
             }
-            billing_ = input.readMessage(Billing.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(billing_);
-              billing_ = subBuilder.buildPartial();
+          case 210:
+            {
+              com.google.api.Billing.Builder subBuilder = null;
+              if (billing_ != null) {
+                subBuilder = billing_.toBuilder();
+              }
+              billing_ = input.readMessage(com.google.api.Billing.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(billing_);
+                billing_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 218: {
-            Logging.Builder subBuilder = null;
-            if (logging_ != null) {
-              subBuilder = logging_.toBuilder();
-            }
-            logging_ = input.readMessage(Logging.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(logging_);
-              logging_ = subBuilder.buildPartial();
+          case 218:
+            {
+              com.google.api.Logging.Builder subBuilder = null;
+              if (logging_ != null) {
+                subBuilder = logging_.toBuilder();
+              }
+              logging_ = input.readMessage(com.google.api.Logging.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(logging_);
+                logging_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 226: {
-            com.google.api.Monitoring.Builder subBuilder = null;
-            if (monitoring_ != null) {
-              subBuilder = monitoring_.toBuilder();
+          case 226:
+            {
+              com.google.api.Monitoring.Builder subBuilder = null;
+              if (monitoring_ != null) {
+                subBuilder = monitoring_.toBuilder();
+              }
+              monitoring_ =
+                  input.readMessage(com.google.api.Monitoring.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(monitoring_);
+                monitoring_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            monitoring_ = input.readMessage(com.google.api.Monitoring.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(monitoring_);
-              monitoring_ = subBuilder.buildPartial();
+          case 234:
+            {
+              com.google.api.SystemParameters.Builder subBuilder = null;
+              if (systemParameters_ != null) {
+                subBuilder = systemParameters_.toBuilder();
+              }
+              systemParameters_ =
+                  input.readMessage(com.google.api.SystemParameters.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(systemParameters_);
+                systemParameters_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 266:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 234: {
-            com.google.api.SystemParameters.Builder subBuilder = null;
-            if (systemParameters_ != null) {
-              subBuilder = systemParameters_.toBuilder();
+              id_ = s;
+              break;
             }
-            systemParameters_ = input.readMessage(com.google.api.SystemParameters.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(systemParameters_);
-              systemParameters_ = subBuilder.buildPartial();
+          case 298:
+            {
+              com.google.api.SourceInfo.Builder subBuilder = null;
+              if (sourceInfo_ != null) {
+                subBuilder = sourceInfo_.toBuilder();
+              }
+              sourceInfo_ =
+                  input.readMessage(com.google.api.SourceInfo.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(sourceInfo_);
+                sourceInfo_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 266: {
-            String s = input.readStringRequireUtf8();
-
-            id_ = s;
-            break;
-          }
-          case 298: {
-            com.google.api.SourceInfo.Builder subBuilder = null;
-            if (sourceInfo_ != null) {
-              subBuilder = sourceInfo_.toBuilder();
-            }
-            sourceInfo_ = input.readMessage(com.google.api.SourceInfo.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(sourceInfo_);
-              sourceInfo_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
-      if (((mutable_bitField0_ & 0x00000020) != 0)) {
+      if (((mutable_bitField0_ & 0x00000001) != 0)) {
         apis_ = java.util.Collections.unmodifiableList(apis_);
       }
-      if (((mutable_bitField0_ & 0x00000040) != 0)) {
+      if (((mutable_bitField0_ & 0x00000002) != 0)) {
         types_ = java.util.Collections.unmodifiableList(types_);
       }
-      if (((mutable_bitField0_ & 0x00000080) != 0)) {
+      if (((mutable_bitField0_ & 0x00000004) != 0)) {
         enums_ = java.util.Collections.unmodifiableList(enums_);
       }
-      if (((mutable_bitField0_ & 0x00008000) != 0)) {
+      if (((mutable_bitField0_ & 0x00000008) != 0)) {
         endpoints_ = java.util.Collections.unmodifiableList(endpoints_);
       }
-      if (((mutable_bitField0_ & 0x00020000) != 0)) {
+      if (((mutable_bitField0_ & 0x00000010) != 0)) {
         logs_ = java.util.Collections.unmodifiableList(logs_);
       }
-      if (((mutable_bitField0_ & 0x00040000) != 0)) {
+      if (((mutable_bitField0_ & 0x00000020) != 0)) {
         metrics_ = java.util.Collections.unmodifiableList(metrics_);
       }
-      if (((mutable_bitField0_ & 0x00080000) != 0)) {
+      if (((mutable_bitField0_ & 0x00000040) != 0)) {
         monitoredResources_ = java.util.Collections.unmodifiableList(monitoredResources_);
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.ServiceProto.internal_static_google_api_Service_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return com.google.api.ServiceProto.internal_static_google_api_Service_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            Service.class, Builder.class);
+            com.google.api.Service.class, com.google.api.Service.Builder.class);
   }
 
-  private int bitField0_;
   public static final int CONFIG_VERSION_FIELD_NUMBER = 20;
   private com.google.protobuf.UInt32Value configVersion_;
   /**
+   *
+   *
    * 
    * The semantic version of the service configuration. The config version
    * affects the interpretation of the service configuration. For example,
@@ -411,11 +465,15 @@ private Service(
    * 
* * .google.protobuf.UInt32Value config_version = 20; + * + * @return Whether the configVersion field is set. */ public boolean hasConfigVersion() { return configVersion_ != null; } /** + * + * *
    * The semantic version of the service configuration. The config version
    * affects the interpretation of the service configuration. For example,
@@ -424,11 +482,17 @@ public boolean hasConfigVersion() {
    * 
* * .google.protobuf.UInt32Value config_version = 20; + * + * @return The configVersion. */ public com.google.protobuf.UInt32Value getConfigVersion() { - return configVersion_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : configVersion_; + return configVersion_ == null + ? com.google.protobuf.UInt32Value.getDefaultInstance() + : configVersion_; } /** + * + * *
    * The semantic version of the service configuration. The config version
    * affects the interpretation of the service configuration. For example,
@@ -443,8 +507,10 @@ public com.google.protobuf.UInt32ValueOrBuilder getConfigVersionOrBuilder() {
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-  private volatile Object name_;
+  private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * The service name, which is a DNS-like logical identifier for the
    * service, such as `calendar.googleapis.com`. The service name
@@ -453,20 +519,23 @@ public com.google.protobuf.UInt32ValueOrBuilder getConfigVersionOrBuilder() {
    * 
* * string name = 1; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The service name, which is a DNS-like logical identifier for the
    * service, such as `calendar.googleapis.com`. The service name
@@ -475,14 +544,14 @@ public String getName() {
    * 
* * string name = 1; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -491,8 +560,10 @@ public String getName() { } public static final int ID_FIELD_NUMBER = 33; - private volatile Object id_; + private volatile java.lang.Object id_; /** + * + * *
    * A unique ID for a specific instance of this message, typically assigned
    * by the client for tracking purpose. If empty, the server may choose to
@@ -500,20 +571,23 @@ public String getName() {
    * 
* * string id = 33; + * + * @return The id. */ - public String getId() { - Object ref = id_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** + * + * *
    * A unique ID for a specific instance of this message, typically assigned
    * by the client for tracking purpose. If empty, the server may choose to
@@ -521,14 +595,14 @@ public String getId() {
    * 
* * string id = 33; + * + * @return The bytes for id. */ - public com.google.protobuf.ByteString - getIdBytes() { - Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + 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); id_ = b; return b; } else { @@ -537,40 +611,45 @@ public String getId() { } public static final int TITLE_FIELD_NUMBER = 2; - private volatile Object title_; + private volatile java.lang.Object title_; /** + * + * *
    * The product title for this service.
    * 
* * string title = 2; + * + * @return The title. */ - public String getTitle() { - Object ref = title_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } } /** + * + * *
    * The product title for this service.
    * 
* * string title = 2; + * + * @return The bytes for title. */ - public com.google.protobuf.ByteString - getTitleBytes() { - Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); title_ = b; return b; } else { @@ -579,40 +658,45 @@ public String getTitle() { } public static final int PRODUCER_PROJECT_ID_FIELD_NUMBER = 22; - private volatile Object producerProjectId_; + private volatile java.lang.Object producerProjectId_; /** + * + * *
    * The Google project that owns this service.
    * 
* * string producer_project_id = 22; + * + * @return The producerProjectId. */ - public String getProducerProjectId() { - Object ref = producerProjectId_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getProducerProjectId() { + java.lang.Object ref = producerProjectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); producerProjectId_ = s; return s; } } /** + * + * *
    * The Google project that owns this service.
    * 
* * string producer_project_id = 22; + * + * @return The bytes for producerProjectId. */ - public com.google.protobuf.ByteString - getProducerProjectIdBytes() { - Object ref = producerProjectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getProducerProjectIdBytes() { + java.lang.Object ref = producerProjectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); producerProjectId_ = b; return b; } else { @@ -623,6 +707,8 @@ public String getProducerProjectId() { public static final int APIS_FIELD_NUMBER = 3; private java.util.List apis_; /** + * + * *
    * A list of API interfaces exported by this service. Only the `name` field
    * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
@@ -637,6 +723,8 @@ public java.util.List getApisList() {
     return apis_;
   }
   /**
+   *
+   *
    * 
    * A list of API interfaces exported by this service. Only the `name` field
    * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
@@ -647,11 +735,12 @@ public java.util.List getApisList() {
    *
    * repeated .google.protobuf.Api apis = 3;
    */
-  public java.util.List 
-      getApisOrBuilderList() {
+  public java.util.List getApisOrBuilderList() {
     return apis_;
   }
   /**
+   *
+   *
    * 
    * A list of API interfaces exported by this service. Only the `name` field
    * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
@@ -666,6 +755,8 @@ public int getApisCount() {
     return apis_.size();
   }
   /**
+   *
+   *
    * 
    * A list of API interfaces exported by this service. Only the `name` field
    * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
@@ -680,6 +771,8 @@ public com.google.protobuf.Api getApis(int index) {
     return apis_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of API interfaces exported by this service. Only the `name` field
    * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
@@ -690,14 +783,15 @@ public com.google.protobuf.Api getApis(int index) {
    *
    * repeated .google.protobuf.Api apis = 3;
    */
-  public com.google.protobuf.ApiOrBuilder getApisOrBuilder(
-      int index) {
+  public com.google.protobuf.ApiOrBuilder getApisOrBuilder(int index) {
     return apis_.get(index);
   }
 
   public static final int TYPES_FIELD_NUMBER = 4;
   private java.util.List types_;
   /**
+   *
+   *
    * 
    * A list of all proto message types included in this API service.
    * Types referenced directly or indirectly by the `apis` are
@@ -714,6 +808,8 @@ public java.util.List getTypesList() {
     return types_;
   }
   /**
+   *
+   *
    * 
    * A list of all proto message types included in this API service.
    * Types referenced directly or indirectly by the `apis` are
@@ -726,11 +822,12 @@ public java.util.List getTypesList() {
    *
    * repeated .google.protobuf.Type types = 4;
    */
-  public java.util.List 
-      getTypesOrBuilderList() {
+  public java.util.List getTypesOrBuilderList() {
     return types_;
   }
   /**
+   *
+   *
    * 
    * A list of all proto message types included in this API service.
    * Types referenced directly or indirectly by the `apis` are
@@ -747,6 +844,8 @@ public int getTypesCount() {
     return types_.size();
   }
   /**
+   *
+   *
    * 
    * A list of all proto message types included in this API service.
    * Types referenced directly or indirectly by the `apis` are
@@ -763,6 +862,8 @@ public com.google.protobuf.Type getTypes(int index) {
     return types_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of all proto message types included in this API service.
    * Types referenced directly or indirectly by the `apis` are
@@ -775,14 +876,15 @@ public com.google.protobuf.Type getTypes(int index) {
    *
    * repeated .google.protobuf.Type types = 4;
    */
-  public com.google.protobuf.TypeOrBuilder getTypesOrBuilder(
-      int index) {
+  public com.google.protobuf.TypeOrBuilder getTypesOrBuilder(int index) {
     return types_.get(index);
   }
 
   public static final int ENUMS_FIELD_NUMBER = 5;
   private java.util.List enums_;
   /**
+   *
+   *
    * 
    * A list of all enum types included in this API service.  Enums
    * referenced directly or indirectly by the `apis` are automatically
@@ -798,6 +900,8 @@ public java.util.List getEnumsList() {
     return enums_;
   }
   /**
+   *
+   *
    * 
    * A list of all enum types included in this API service.  Enums
    * referenced directly or indirectly by the `apis` are automatically
@@ -809,11 +913,12 @@ public java.util.List getEnumsList() {
    *
    * repeated .google.protobuf.Enum enums = 5;
    */
-  public java.util.List 
-      getEnumsOrBuilderList() {
+  public java.util.List getEnumsOrBuilderList() {
     return enums_;
   }
   /**
+   *
+   *
    * 
    * A list of all enum types included in this API service.  Enums
    * referenced directly or indirectly by the `apis` are automatically
@@ -829,6 +934,8 @@ public int getEnumsCount() {
     return enums_.size();
   }
   /**
+   *
+   *
    * 
    * A list of all enum types included in this API service.  Enums
    * referenced directly or indirectly by the `apis` are automatically
@@ -844,6 +951,8 @@ public com.google.protobuf.Enum getEnums(int index) {
     return enums_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of all enum types included in this API service.  Enums
    * referenced directly or indirectly by the `apis` are automatically
@@ -855,34 +964,45 @@ public com.google.protobuf.Enum getEnums(int index) {
    *
    * repeated .google.protobuf.Enum enums = 5;
    */
-  public com.google.protobuf.EnumOrBuilder getEnumsOrBuilder(
-      int index) {
+  public com.google.protobuf.EnumOrBuilder getEnumsOrBuilder(int index) {
     return enums_.get(index);
   }
 
   public static final int DOCUMENTATION_FIELD_NUMBER = 6;
   private com.google.api.Documentation documentation_;
   /**
+   *
+   *
    * 
    * Additional API documentation.
    * 
* * .google.api.Documentation documentation = 6; + * + * @return Whether the documentation field is set. */ public boolean hasDocumentation() { return documentation_ != null; } /** + * + * *
    * Additional API documentation.
    * 
* * .google.api.Documentation documentation = 6; + * + * @return The documentation. */ public com.google.api.Documentation getDocumentation() { - return documentation_ == null ? com.google.api.Documentation.getDefaultInstance() : documentation_; + return documentation_ == null + ? com.google.api.Documentation.getDefaultInstance() + : documentation_; } /** + * + * *
    * Additional API documentation.
    * 
@@ -894,28 +1014,38 @@ public com.google.api.DocumentationOrBuilder getDocumentationOrBuilder() { } public static final int BACKEND_FIELD_NUMBER = 8; - private Backend backend_; + private com.google.api.Backend backend_; /** + * + * *
    * API backend configuration.
    * 
* * .google.api.Backend backend = 8; + * + * @return Whether the backend field is set. */ public boolean hasBackend() { return backend_ != null; } /** + * + * *
    * API backend configuration.
    * 
* * .google.api.Backend backend = 8; + * + * @return The backend. */ - public Backend getBackend() { - return backend_ == null ? Backend.getDefaultInstance() : backend_; + public com.google.api.Backend getBackend() { + return backend_ == null ? com.google.api.Backend.getDefaultInstance() : backend_; } /** + * + * *
    * API backend configuration.
    * 
@@ -927,28 +1057,38 @@ public com.google.api.BackendOrBuilder getBackendOrBuilder() { } public static final int HTTP_FIELD_NUMBER = 9; - private Http http_; + private com.google.api.Http http_; /** + * + * *
    * HTTP configuration.
    * 
* * .google.api.Http http = 9; + * + * @return Whether the http field is set. */ public boolean hasHttp() { return http_ != null; } /** + * + * *
    * HTTP configuration.
    * 
* * .google.api.Http http = 9; + * + * @return The http. */ - public Http getHttp() { - return http_ == null ? Http.getDefaultInstance() : http_; + public com.google.api.Http getHttp() { + return http_ == null ? com.google.api.Http.getDefaultInstance() : http_; } /** + * + * *
    * HTTP configuration.
    * 
@@ -960,28 +1100,38 @@ public com.google.api.HttpOrBuilder getHttpOrBuilder() { } public static final int QUOTA_FIELD_NUMBER = 10; - private Quota quota_; + private com.google.api.Quota quota_; /** + * + * *
    * Quota configuration.
    * 
* * .google.api.Quota quota = 10; + * + * @return Whether the quota field is set. */ public boolean hasQuota() { return quota_ != null; } /** + * + * *
    * Quota configuration.
    * 
* * .google.api.Quota quota = 10; + * + * @return The quota. */ - public Quota getQuota() { - return quota_ == null ? Quota.getDefaultInstance() : quota_; + public com.google.api.Quota getQuota() { + return quota_ == null ? com.google.api.Quota.getDefaultInstance() : quota_; } /** + * + * *
    * Quota configuration.
    * 
@@ -995,26 +1145,38 @@ public com.google.api.QuotaOrBuilder getQuotaOrBuilder() { public static final int AUTHENTICATION_FIELD_NUMBER = 11; private com.google.api.Authentication authentication_; /** + * + * *
    * Auth configuration.
    * 
* * .google.api.Authentication authentication = 11; + * + * @return Whether the authentication field is set. */ public boolean hasAuthentication() { return authentication_ != null; } /** + * + * *
    * Auth configuration.
    * 
* * .google.api.Authentication authentication = 11; + * + * @return The authentication. */ public com.google.api.Authentication getAuthentication() { - return authentication_ == null ? com.google.api.Authentication.getDefaultInstance() : authentication_; + return authentication_ == null + ? com.google.api.Authentication.getDefaultInstance() + : authentication_; } /** + * + * *
    * Auth configuration.
    * 
@@ -1026,28 +1188,38 @@ public com.google.api.AuthenticationOrBuilder getAuthenticationOrBuilder() { } public static final int CONTEXT_FIELD_NUMBER = 12; - private Context context_; + private com.google.api.Context context_; /** + * + * *
    * Context configuration.
    * 
* * .google.api.Context context = 12; + * + * @return Whether the context field is set. */ public boolean hasContext() { return context_ != null; } /** + * + * *
    * Context configuration.
    * 
* * .google.api.Context context = 12; + * + * @return The context. */ - public Context getContext() { - return context_ == null ? Context.getDefaultInstance() : context_; + public com.google.api.Context getContext() { + return context_ == null ? com.google.api.Context.getDefaultInstance() : context_; } /** + * + * *
    * Context configuration.
    * 
@@ -1059,28 +1231,38 @@ public com.google.api.ContextOrBuilder getContextOrBuilder() { } public static final int USAGE_FIELD_NUMBER = 15; - private Usage usage_; + private com.google.api.Usage usage_; /** + * + * *
    * Configuration controlling usage of this service.
    * 
* * .google.api.Usage usage = 15; + * + * @return Whether the usage field is set. */ public boolean hasUsage() { return usage_ != null; } /** + * + * *
    * Configuration controlling usage of this service.
    * 
* * .google.api.Usage usage = 15; + * + * @return The usage. */ - public Usage getUsage() { - return usage_ == null ? Usage.getDefaultInstance() : usage_; + public com.google.api.Usage getUsage() { + return usage_ == null ? com.google.api.Usage.getDefaultInstance() : usage_; } /** + * + * *
    * Configuration controlling usage of this service.
    * 
@@ -1094,6 +1276,8 @@ public com.google.api.UsageOrBuilder getUsageOrBuilder() { public static final int ENDPOINTS_FIELD_NUMBER = 18; private java.util.List endpoints_; /** + * + * *
    * Configuration for network endpoints.  If this is empty, then an endpoint
    * with the same name as the service is automatically generated to service all
@@ -1106,6 +1290,8 @@ public java.util.List getEndpointsList() {
     return endpoints_;
   }
   /**
+   *
+   *
    * 
    * Configuration for network endpoints.  If this is empty, then an endpoint
    * with the same name as the service is automatically generated to service all
@@ -1114,11 +1300,12 @@ public java.util.List getEndpointsList() {
    *
    * repeated .google.api.Endpoint endpoints = 18;
    */
-  public java.util.List 
-      getEndpointsOrBuilderList() {
+  public java.util.List getEndpointsOrBuilderList() {
     return endpoints_;
   }
   /**
+   *
+   *
    * 
    * Configuration for network endpoints.  If this is empty, then an endpoint
    * with the same name as the service is automatically generated to service all
@@ -1131,6 +1318,8 @@ public int getEndpointsCount() {
     return endpoints_.size();
   }
   /**
+   *
+   *
    * 
    * Configuration for network endpoints.  If this is empty, then an endpoint
    * with the same name as the service is automatically generated to service all
@@ -1143,6 +1332,8 @@ public com.google.api.Endpoint getEndpoints(int index) {
     return endpoints_.get(index);
   }
   /**
+   *
+   *
    * 
    * Configuration for network endpoints.  If this is empty, then an endpoint
    * with the same name as the service is automatically generated to service all
@@ -1151,34 +1342,43 @@ public com.google.api.Endpoint getEndpoints(int index) {
    *
    * repeated .google.api.Endpoint endpoints = 18;
    */
-  public com.google.api.EndpointOrBuilder getEndpointsOrBuilder(
-      int index) {
+  public com.google.api.EndpointOrBuilder getEndpointsOrBuilder(int index) {
     return endpoints_.get(index);
   }
 
   public static final int CONTROL_FIELD_NUMBER = 21;
-  private Control control_;
+  private com.google.api.Control control_;
   /**
+   *
+   *
    * 
    * Configuration for the service control plane.
    * 
* * .google.api.Control control = 21; + * + * @return Whether the control field is set. */ public boolean hasControl() { return control_ != null; } /** + * + * *
    * Configuration for the service control plane.
    * 
* * .google.api.Control control = 21; + * + * @return The control. */ - public Control getControl() { - return control_ == null ? Control.getDefaultInstance() : control_; + public com.google.api.Control getControl() { + return control_ == null ? com.google.api.Control.getDefaultInstance() : control_; } /** + * + * *
    * Configuration for the service control plane.
    * 
@@ -1192,6 +1392,8 @@ public com.google.api.ControlOrBuilder getControlOrBuilder() { public static final int LOGS_FIELD_NUMBER = 23; private java.util.List logs_; /** + * + * *
    * Defines the logs used by this service.
    * 
@@ -1202,17 +1404,20 @@ public java.util.List getLogsList() { return logs_; } /** + * + * *
    * Defines the logs used by this service.
    * 
* * repeated .google.api.LogDescriptor logs = 23; */ - public java.util.List - getLogsOrBuilderList() { + public java.util.List getLogsOrBuilderList() { return logs_; } /** + * + * *
    * Defines the logs used by this service.
    * 
@@ -1223,6 +1428,8 @@ public int getLogsCount() { return logs_.size(); } /** + * + * *
    * Defines the logs used by this service.
    * 
@@ -1233,20 +1440,23 @@ public com.google.api.LogDescriptor getLogs(int index) { return logs_.get(index); } /** + * + * *
    * Defines the logs used by this service.
    * 
* * repeated .google.api.LogDescriptor logs = 23; */ - public com.google.api.LogDescriptorOrBuilder getLogsOrBuilder( - int index) { + public com.google.api.LogDescriptorOrBuilder getLogsOrBuilder(int index) { return logs_.get(index); } public static final int METRICS_FIELD_NUMBER = 24; private java.util.List metrics_; /** + * + * *
    * Defines the metrics used by this service.
    * 
@@ -1257,17 +1467,21 @@ public java.util.List getMetricsList() { return metrics_; } /** + * + * *
    * Defines the metrics used by this service.
    * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ - public java.util.List + public java.util.List getMetricsOrBuilderList() { return metrics_; } /** + * + * *
    * Defines the metrics used by this service.
    * 
@@ -1278,6 +1492,8 @@ public int getMetricsCount() { return metrics_.size(); } /** + * + * *
    * Defines the metrics used by this service.
    * 
@@ -1288,20 +1504,23 @@ public com.google.api.MetricDescriptor getMetrics(int index) { return metrics_.get(index); } /** + * + * *
    * Defines the metrics used by this service.
    * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ - public com.google.api.MetricDescriptorOrBuilder getMetricsOrBuilder( - int index) { + public com.google.api.MetricDescriptorOrBuilder getMetricsOrBuilder(int index) { return metrics_.get(index); } public static final int MONITORED_RESOURCES_FIELD_NUMBER = 25; private java.util.List monitoredResources_; /** + * + * *
    * Defines the monitored resources used by this service. This is required
    * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
@@ -1313,6 +1532,8 @@ public java.util.List getMonitoredRe
     return monitoredResources_;
   }
   /**
+   *
+   *
    * 
    * Defines the monitored resources used by this service. This is required
    * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
@@ -1320,11 +1541,13 @@ public java.util.List getMonitoredRe
    *
    * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
    */
-  public java.util.List 
+  public java.util.List
       getMonitoredResourcesOrBuilderList() {
     return monitoredResources_;
   }
   /**
+   *
+   *
    * 
    * Defines the monitored resources used by this service. This is required
    * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
@@ -1336,6 +1559,8 @@ public int getMonitoredResourcesCount() {
     return monitoredResources_.size();
   }
   /**
+   *
+   *
    * 
    * Defines the monitored resources used by this service. This is required
    * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
@@ -1347,6 +1572,8 @@ public com.google.api.MonitoredResourceDescriptor getMonitoredResources(int inde
     return monitoredResources_.get(index);
   }
   /**
+   *
+   *
    * 
    * Defines the monitored resources used by this service. This is required
    * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
@@ -1360,28 +1587,38 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getMonitoredResources
   }
 
   public static final int BILLING_FIELD_NUMBER = 26;
-  private Billing billing_;
+  private com.google.api.Billing billing_;
   /**
+   *
+   *
    * 
    * Billing configuration.
    * 
* * .google.api.Billing billing = 26; + * + * @return Whether the billing field is set. */ public boolean hasBilling() { return billing_ != null; } /** + * + * *
    * Billing configuration.
    * 
* * .google.api.Billing billing = 26; + * + * @return The billing. */ - public Billing getBilling() { - return billing_ == null ? Billing.getDefaultInstance() : billing_; + public com.google.api.Billing getBilling() { + return billing_ == null ? com.google.api.Billing.getDefaultInstance() : billing_; } /** + * + * *
    * Billing configuration.
    * 
@@ -1393,28 +1630,38 @@ public com.google.api.BillingOrBuilder getBillingOrBuilder() { } public static final int LOGGING_FIELD_NUMBER = 27; - private Logging logging_; + private com.google.api.Logging logging_; /** + * + * *
    * Logging configuration.
    * 
* * .google.api.Logging logging = 27; + * + * @return Whether the logging field is set. */ public boolean hasLogging() { return logging_ != null; } /** + * + * *
    * Logging configuration.
    * 
* * .google.api.Logging logging = 27; + * + * @return The logging. */ - public Logging getLogging() { - return logging_ == null ? Logging.getDefaultInstance() : logging_; + public com.google.api.Logging getLogging() { + return logging_ == null ? com.google.api.Logging.getDefaultInstance() : logging_; } /** + * + * *
    * Logging configuration.
    * 
@@ -1428,26 +1675,36 @@ public com.google.api.LoggingOrBuilder getLoggingOrBuilder() { public static final int MONITORING_FIELD_NUMBER = 28; private com.google.api.Monitoring monitoring_; /** + * + * *
    * Monitoring configuration.
    * 
* * .google.api.Monitoring monitoring = 28; + * + * @return Whether the monitoring field is set. */ public boolean hasMonitoring() { return monitoring_ != null; } /** + * + * *
    * Monitoring configuration.
    * 
* * .google.api.Monitoring monitoring = 28; + * + * @return The monitoring. */ public com.google.api.Monitoring getMonitoring() { return monitoring_ == null ? com.google.api.Monitoring.getDefaultInstance() : monitoring_; } /** + * + * *
    * Monitoring configuration.
    * 
@@ -1461,26 +1718,38 @@ public com.google.api.MonitoringOrBuilder getMonitoringOrBuilder() { public static final int SYSTEM_PARAMETERS_FIELD_NUMBER = 29; private com.google.api.SystemParameters systemParameters_; /** + * + * *
    * System parameter configuration.
    * 
* * .google.api.SystemParameters system_parameters = 29; + * + * @return Whether the systemParameters field is set. */ public boolean hasSystemParameters() { return systemParameters_ != null; } /** + * + * *
    * System parameter configuration.
    * 
* * .google.api.SystemParameters system_parameters = 29; + * + * @return The systemParameters. */ public com.google.api.SystemParameters getSystemParameters() { - return systemParameters_ == null ? com.google.api.SystemParameters.getDefaultInstance() : systemParameters_; + return systemParameters_ == null + ? com.google.api.SystemParameters.getDefaultInstance() + : systemParameters_; } /** + * + * *
    * System parameter configuration.
    * 
@@ -1494,26 +1763,36 @@ public com.google.api.SystemParametersOrBuilder getSystemParametersOrBuilder() { public static final int SOURCE_INFO_FIELD_NUMBER = 37; private com.google.api.SourceInfo sourceInfo_; /** + * + * *
    * Output only. The source information for this configuration if available.
    * 
* * .google.api.SourceInfo source_info = 37; + * + * @return Whether the sourceInfo field is set. */ public boolean hasSourceInfo() { return sourceInfo_ != null; } /** + * + * *
    * Output only. The source information for this configuration if available.
    * 
* * .google.api.SourceInfo source_info = 37; + * + * @return The sourceInfo. */ public com.google.api.SourceInfo getSourceInfo() { return sourceInfo_ == null ? com.google.api.SourceInfo.getDefaultInstance() : sourceInfo_; } /** + * + * *
    * Output only. The source information for this configuration if available.
    * 
@@ -1525,7 +1804,8 @@ public com.google.api.SourceInfoOrBuilder getSourceInfoOrBuilder() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1535,9 +1815,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1616,7 +1895,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -1629,207 +1908,162 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); } for (int i = 0; i < apis_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, apis_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, apis_.get(i)); } for (int i = 0; i < types_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, types_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, types_.get(i)); } for (int i = 0; i < enums_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, enums_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, enums_.get(i)); } if (documentation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getDocumentation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDocumentation()); } if (backend_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getBackend()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getBackend()); } if (http_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getHttp()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getHttp()); } if (quota_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getQuota()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getQuota()); } if (authentication_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getAuthentication()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getAuthentication()); } if (context_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getContext()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getContext()); } if (usage_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getUsage()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getUsage()); } for (int i = 0; i < endpoints_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, endpoints_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, endpoints_.get(i)); } if (configVersion_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getConfigVersion()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getConfigVersion()); } if (control_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, getControl()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getControl()); } if (!getProducerProjectIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, producerProjectId_); } for (int i = 0; i < logs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, logs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, logs_.get(i)); } for (int i = 0; i < metrics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(24, metrics_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, metrics_.get(i)); } for (int i = 0; i < monitoredResources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(25, monitoredResources_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(25, monitoredResources_.get(i)); } if (billing_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(26, getBilling()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getBilling()); } if (logging_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(27, getLogging()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, getLogging()); } if (monitoring_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(28, getMonitoring()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getMonitoring()); } if (systemParameters_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(29, getSystemParameters()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getSystemParameters()); } if (!getIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, id_); } if (sourceInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(37, getSourceInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(37, getSourceInfo()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof Service)) { + if (!(obj instanceof com.google.api.Service)) { return super.equals(obj); } - Service other = (Service) obj; + com.google.api.Service other = (com.google.api.Service) obj; if (hasConfigVersion() != other.hasConfigVersion()) return false; if (hasConfigVersion()) { - if (!getConfigVersion() - .equals(other.getConfigVersion())) return false; - } - if (!getName() - .equals(other.getName())) return false; - if (!getId() - .equals(other.getId())) return false; - if (!getTitle() - .equals(other.getTitle())) return false; - if (!getProducerProjectId() - .equals(other.getProducerProjectId())) return false; - if (!getApisList() - .equals(other.getApisList())) return false; - if (!getTypesList() - .equals(other.getTypesList())) return false; - if (!getEnumsList() - .equals(other.getEnumsList())) return false; + if (!getConfigVersion().equals(other.getConfigVersion())) return false; + } + if (!getName().equals(other.getName())) return false; + if (!getId().equals(other.getId())) return false; + if (!getTitle().equals(other.getTitle())) return false; + if (!getProducerProjectId().equals(other.getProducerProjectId())) return false; + if (!getApisList().equals(other.getApisList())) return false; + if (!getTypesList().equals(other.getTypesList())) return false; + if (!getEnumsList().equals(other.getEnumsList())) return false; if (hasDocumentation() != other.hasDocumentation()) return false; if (hasDocumentation()) { - if (!getDocumentation() - .equals(other.getDocumentation())) return false; + if (!getDocumentation().equals(other.getDocumentation())) return false; } if (hasBackend() != other.hasBackend()) return false; if (hasBackend()) { - if (!getBackend() - .equals(other.getBackend())) return false; + if (!getBackend().equals(other.getBackend())) return false; } if (hasHttp() != other.hasHttp()) return false; if (hasHttp()) { - if (!getHttp() - .equals(other.getHttp())) return false; + if (!getHttp().equals(other.getHttp())) return false; } if (hasQuota() != other.hasQuota()) return false; if (hasQuota()) { - if (!getQuota() - .equals(other.getQuota())) return false; + if (!getQuota().equals(other.getQuota())) return false; } if (hasAuthentication() != other.hasAuthentication()) return false; if (hasAuthentication()) { - if (!getAuthentication() - .equals(other.getAuthentication())) return false; + if (!getAuthentication().equals(other.getAuthentication())) return false; } if (hasContext() != other.hasContext()) return false; if (hasContext()) { - if (!getContext() - .equals(other.getContext())) return false; + if (!getContext().equals(other.getContext())) return false; } if (hasUsage() != other.hasUsage()) return false; if (hasUsage()) { - if (!getUsage() - .equals(other.getUsage())) return false; + if (!getUsage().equals(other.getUsage())) return false; } - if (!getEndpointsList() - .equals(other.getEndpointsList())) return false; + if (!getEndpointsList().equals(other.getEndpointsList())) return false; if (hasControl() != other.hasControl()) return false; if (hasControl()) { - if (!getControl() - .equals(other.getControl())) return false; - } - if (!getLogsList() - .equals(other.getLogsList())) return false; - if (!getMetricsList() - .equals(other.getMetricsList())) return false; - if (!getMonitoredResourcesList() - .equals(other.getMonitoredResourcesList())) return false; + if (!getControl().equals(other.getControl())) return false; + } + if (!getLogsList().equals(other.getLogsList())) return false; + if (!getMetricsList().equals(other.getMetricsList())) return false; + if (!getMonitoredResourcesList().equals(other.getMonitoredResourcesList())) return false; if (hasBilling() != other.hasBilling()) return false; if (hasBilling()) { - if (!getBilling() - .equals(other.getBilling())) return false; + if (!getBilling().equals(other.getBilling())) return false; } if (hasLogging() != other.hasLogging()) return false; if (hasLogging()) { - if (!getLogging() - .equals(other.getLogging())) return false; + if (!getLogging().equals(other.getLogging())) return false; } if (hasMonitoring() != other.hasMonitoring()) return false; if (hasMonitoring()) { - if (!getMonitoring() - .equals(other.getMonitoring())) return false; + if (!getMonitoring().equals(other.getMonitoring())) return false; } if (hasSystemParameters() != other.hasSystemParameters()) return false; if (hasSystemParameters()) { - if (!getSystemParameters() - .equals(other.getSystemParameters())) return false; + if (!getSystemParameters().equals(other.getSystemParameters())) return false; } if (hasSourceInfo() != other.hasSourceInfo()) return false; if (hasSourceInfo()) { - if (!getSourceInfo() - .equals(other.getSourceInfo())) return false; + if (!getSourceInfo().equals(other.getSourceInfo())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -1933,97 +2167,103 @@ public int hashCode() { return hash; } - public static Service parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.Service parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Service parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Service parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Service parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.api.Service parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Service parseFrom( + + public static com.google.api.Service parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Service parseFrom(byte[] data) + + public static com.google.api.Service parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Service parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Service parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Service parseFrom(java.io.InputStream input) + + public static com.google.api.Service 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 Service parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Service parseFrom( + 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 Service parseDelimitedFrom(java.io.InputStream input) + + public static com.google.api.Service 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 Service parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Service parseDelimitedFrom( + 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 Service parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.api.Service 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 Service parseFrom( + + public static com.google.api.Service 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(Service prototype) { + + public static Builder newBuilder(com.google.api.Service prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * `Service` is the root object of Google service configuration schema. It
    * describes basic information about a service, such as the name and the
@@ -2050,21 +2290,20 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.Service}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.Service)
       com.google.api.ServiceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.api.ServiceProto.internal_static_google_api_Service_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return com.google.api.ServiceProto.internal_static_google_api_Service_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              Service.class, Builder.class);
+              com.google.api.Service.class, com.google.api.Service.Builder.class);
     }
 
     // Construct using com.google.api.Service.newBuilder()
@@ -2072,14 +2311,13 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getApisFieldBuilder();
         getTypesFieldBuilder();
         getEnumsFieldBuilder();
@@ -2089,7 +2327,8 @@ private void maybeForceBuilderInitialization() {
         getMonitoredResourcesFieldBuilder();
       }
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       if (configVersionBuilder_ == null) {
@@ -2108,19 +2347,19 @@ public Builder clear() {
 
       if (apisBuilder_ == null) {
         apis_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000020);
+        bitField0_ = (bitField0_ & ~0x00000001);
       } else {
         apisBuilder_.clear();
       }
       if (typesBuilder_ == null) {
         types_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000040);
+        bitField0_ = (bitField0_ & ~0x00000002);
       } else {
         typesBuilder_.clear();
       }
       if (enumsBuilder_ == null) {
         enums_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000080);
+        bitField0_ = (bitField0_ & ~0x00000004);
       } else {
         enumsBuilder_.clear();
       }
@@ -2168,7 +2407,7 @@ public Builder clear() {
       }
       if (endpointsBuilder_ == null) {
         endpoints_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00008000);
+        bitField0_ = (bitField0_ & ~0x00000008);
       } else {
         endpointsBuilder_.clear();
       }
@@ -2180,19 +2419,19 @@ public Builder clear() {
       }
       if (logsBuilder_ == null) {
         logs_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00020000);
+        bitField0_ = (bitField0_ & ~0x00000010);
       } else {
         logsBuilder_.clear();
       }
       if (metricsBuilder_ == null) {
         metrics_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00040000);
+        bitField0_ = (bitField0_ & ~0x00000020);
       } else {
         metricsBuilder_.clear();
       }
       if (monitoredResourcesBuilder_ == null) {
         monitoredResources_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00080000);
+        bitField0_ = (bitField0_ & ~0x00000040);
       } else {
         monitoredResourcesBuilder_.clear();
       }
@@ -2229,31 +2468,29 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.api.ServiceProto.internal_static_google_api_Service_descriptor;
     }
 
-    @Override
-    public Service getDefaultInstanceForType() {
-      return Service.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.Service getDefaultInstanceForType() {
+      return com.google.api.Service.getDefaultInstance();
     }
 
-    @Override
-    public Service build() {
-      Service result = buildPartial();
+    @java.lang.Override
+    public com.google.api.Service build() {
+      com.google.api.Service result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public Service buildPartial() {
-      Service result = new Service(this);
+    @java.lang.Override
+    public com.google.api.Service buildPartial() {
+      com.google.api.Service result = new com.google.api.Service(this);
       int from_bitField0_ = bitField0_;
-      int to_bitField0_ = 0;
       if (configVersionBuilder_ == null) {
         result.configVersion_ = configVersion_;
       } else {
@@ -2264,27 +2501,27 @@ public Service buildPartial() {
       result.title_ = title_;
       result.producerProjectId_ = producerProjectId_;
       if (apisBuilder_ == null) {
-        if (((bitField0_ & 0x00000020) != 0)) {
+        if (((bitField0_ & 0x00000001) != 0)) {
           apis_ = java.util.Collections.unmodifiableList(apis_);
-          bitField0_ = (bitField0_ & ~0x00000020);
+          bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.apis_ = apis_;
       } else {
         result.apis_ = apisBuilder_.build();
       }
       if (typesBuilder_ == null) {
-        if (((bitField0_ & 0x00000040) != 0)) {
+        if (((bitField0_ & 0x00000002) != 0)) {
           types_ = java.util.Collections.unmodifiableList(types_);
-          bitField0_ = (bitField0_ & ~0x00000040);
+          bitField0_ = (bitField0_ & ~0x00000002);
         }
         result.types_ = types_;
       } else {
         result.types_ = typesBuilder_.build();
       }
       if (enumsBuilder_ == null) {
-        if (((bitField0_ & 0x00000080) != 0)) {
+        if (((bitField0_ & 0x00000004) != 0)) {
           enums_ = java.util.Collections.unmodifiableList(enums_);
-          bitField0_ = (bitField0_ & ~0x00000080);
+          bitField0_ = (bitField0_ & ~0x00000004);
         }
         result.enums_ = enums_;
       } else {
@@ -2326,9 +2563,9 @@ public Service buildPartial() {
         result.usage_ = usageBuilder_.build();
       }
       if (endpointsBuilder_ == null) {
-        if (((bitField0_ & 0x00008000) != 0)) {
+        if (((bitField0_ & 0x00000008) != 0)) {
           endpoints_ = java.util.Collections.unmodifiableList(endpoints_);
-          bitField0_ = (bitField0_ & ~0x00008000);
+          bitField0_ = (bitField0_ & ~0x00000008);
         }
         result.endpoints_ = endpoints_;
       } else {
@@ -2340,27 +2577,27 @@ public Service buildPartial() {
         result.control_ = controlBuilder_.build();
       }
       if (logsBuilder_ == null) {
-        if (((bitField0_ & 0x00020000) != 0)) {
+        if (((bitField0_ & 0x00000010) != 0)) {
           logs_ = java.util.Collections.unmodifiableList(logs_);
-          bitField0_ = (bitField0_ & ~0x00020000);
+          bitField0_ = (bitField0_ & ~0x00000010);
         }
         result.logs_ = logs_;
       } else {
         result.logs_ = logsBuilder_.build();
       }
       if (metricsBuilder_ == null) {
-        if (((bitField0_ & 0x00040000) != 0)) {
+        if (((bitField0_ & 0x00000020) != 0)) {
           metrics_ = java.util.Collections.unmodifiableList(metrics_);
-          bitField0_ = (bitField0_ & ~0x00040000);
+          bitField0_ = (bitField0_ & ~0x00000020);
         }
         result.metrics_ = metrics_;
       } else {
         result.metrics_ = metricsBuilder_.build();
       }
       if (monitoredResourcesBuilder_ == null) {
-        if (((bitField0_ & 0x00080000) != 0)) {
+        if (((bitField0_ & 0x00000040) != 0)) {
           monitoredResources_ = java.util.Collections.unmodifiableList(monitoredResources_);
-          bitField0_ = (bitField0_ & ~0x00080000);
+          bitField0_ = (bitField0_ & ~0x00000040);
         }
         result.monitoredResources_ = monitoredResources_;
       } else {
@@ -2391,55 +2628,55 @@ public Service buildPartial() {
       } else {
         result.sourceInfo_ = sourceInfoBuilder_.build();
       }
-      result.bitField0_ = to_bitField0_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof Service) {
-        return mergeFrom((Service)other);
+      if (other instanceof com.google.api.Service) {
+        return mergeFrom((com.google.api.Service) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(Service other) {
-      if (other == Service.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.Service other) {
+      if (other == com.google.api.Service.getDefaultInstance()) return this;
       if (other.hasConfigVersion()) {
         mergeConfigVersion(other.getConfigVersion());
       }
@@ -2463,7 +2700,7 @@ public Builder mergeFrom(Service other) {
         if (!other.apis_.isEmpty()) {
           if (apis_.isEmpty()) {
             apis_ = other.apis_;
-            bitField0_ = (bitField0_ & ~0x00000020);
+            bitField0_ = (bitField0_ & ~0x00000001);
           } else {
             ensureApisIsMutable();
             apis_.addAll(other.apis_);
@@ -2476,10 +2713,11 @@ public Builder mergeFrom(Service other) {
             apisBuilder_.dispose();
             apisBuilder_ = null;
             apis_ = other.apis_;
-            bitField0_ = (bitField0_ & ~0x00000020);
-            apisBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getApisFieldBuilder() : null;
+            bitField0_ = (bitField0_ & ~0x00000001);
+            apisBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getApisFieldBuilder()
+                    : null;
           } else {
             apisBuilder_.addAllMessages(other.apis_);
           }
@@ -2489,7 +2727,7 @@ public Builder mergeFrom(Service other) {
         if (!other.types_.isEmpty()) {
           if (types_.isEmpty()) {
             types_ = other.types_;
-            bitField0_ = (bitField0_ & ~0x00000040);
+            bitField0_ = (bitField0_ & ~0x00000002);
           } else {
             ensureTypesIsMutable();
             types_.addAll(other.types_);
@@ -2502,10 +2740,11 @@ public Builder mergeFrom(Service other) {
             typesBuilder_.dispose();
             typesBuilder_ = null;
             types_ = other.types_;
-            bitField0_ = (bitField0_ & ~0x00000040);
-            typesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getTypesFieldBuilder() : null;
+            bitField0_ = (bitField0_ & ~0x00000002);
+            typesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getTypesFieldBuilder()
+                    : null;
           } else {
             typesBuilder_.addAllMessages(other.types_);
           }
@@ -2515,7 +2754,7 @@ public Builder mergeFrom(Service other) {
         if (!other.enums_.isEmpty()) {
           if (enums_.isEmpty()) {
             enums_ = other.enums_;
-            bitField0_ = (bitField0_ & ~0x00000080);
+            bitField0_ = (bitField0_ & ~0x00000004);
           } else {
             ensureEnumsIsMutable();
             enums_.addAll(other.enums_);
@@ -2528,10 +2767,11 @@ public Builder mergeFrom(Service other) {
             enumsBuilder_.dispose();
             enumsBuilder_ = null;
             enums_ = other.enums_;
-            bitField0_ = (bitField0_ & ~0x00000080);
-            enumsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getEnumsFieldBuilder() : null;
+            bitField0_ = (bitField0_ & ~0x00000004);
+            enumsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getEnumsFieldBuilder()
+                    : null;
           } else {
             enumsBuilder_.addAllMessages(other.enums_);
           }
@@ -2562,7 +2802,7 @@ public Builder mergeFrom(Service other) {
         if (!other.endpoints_.isEmpty()) {
           if (endpoints_.isEmpty()) {
             endpoints_ = other.endpoints_;
-            bitField0_ = (bitField0_ & ~0x00008000);
+            bitField0_ = (bitField0_ & ~0x00000008);
           } else {
             ensureEndpointsIsMutable();
             endpoints_.addAll(other.endpoints_);
@@ -2575,10 +2815,11 @@ public Builder mergeFrom(Service other) {
             endpointsBuilder_.dispose();
             endpointsBuilder_ = null;
             endpoints_ = other.endpoints_;
-            bitField0_ = (bitField0_ & ~0x00008000);
-            endpointsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getEndpointsFieldBuilder() : null;
+            bitField0_ = (bitField0_ & ~0x00000008);
+            endpointsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getEndpointsFieldBuilder()
+                    : null;
           } else {
             endpointsBuilder_.addAllMessages(other.endpoints_);
           }
@@ -2591,7 +2832,7 @@ public Builder mergeFrom(Service other) {
         if (!other.logs_.isEmpty()) {
           if (logs_.isEmpty()) {
             logs_ = other.logs_;
-            bitField0_ = (bitField0_ & ~0x00020000);
+            bitField0_ = (bitField0_ & ~0x00000010);
           } else {
             ensureLogsIsMutable();
             logs_.addAll(other.logs_);
@@ -2604,10 +2845,11 @@ public Builder mergeFrom(Service other) {
             logsBuilder_.dispose();
             logsBuilder_ = null;
             logs_ = other.logs_;
-            bitField0_ = (bitField0_ & ~0x00020000);
-            logsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getLogsFieldBuilder() : null;
+            bitField0_ = (bitField0_ & ~0x00000010);
+            logsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getLogsFieldBuilder()
+                    : null;
           } else {
             logsBuilder_.addAllMessages(other.logs_);
           }
@@ -2617,7 +2859,7 @@ public Builder mergeFrom(Service other) {
         if (!other.metrics_.isEmpty()) {
           if (metrics_.isEmpty()) {
             metrics_ = other.metrics_;
-            bitField0_ = (bitField0_ & ~0x00040000);
+            bitField0_ = (bitField0_ & ~0x00000020);
           } else {
             ensureMetricsIsMutable();
             metrics_.addAll(other.metrics_);
@@ -2630,10 +2872,11 @@ public Builder mergeFrom(Service other) {
             metricsBuilder_.dispose();
             metricsBuilder_ = null;
             metrics_ = other.metrics_;
-            bitField0_ = (bitField0_ & ~0x00040000);
-            metricsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getMetricsFieldBuilder() : null;
+            bitField0_ = (bitField0_ & ~0x00000020);
+            metricsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getMetricsFieldBuilder()
+                    : null;
           } else {
             metricsBuilder_.addAllMessages(other.metrics_);
           }
@@ -2643,7 +2886,7 @@ public Builder mergeFrom(Service other) {
         if (!other.monitoredResources_.isEmpty()) {
           if (monitoredResources_.isEmpty()) {
             monitoredResources_ = other.monitoredResources_;
-            bitField0_ = (bitField0_ & ~0x00080000);
+            bitField0_ = (bitField0_ & ~0x00000040);
           } else {
             ensureMonitoredResourcesIsMutable();
             monitoredResources_.addAll(other.monitoredResources_);
@@ -2656,10 +2899,11 @@ public Builder mergeFrom(Service other) {
             monitoredResourcesBuilder_.dispose();
             monitoredResourcesBuilder_ = null;
             monitoredResources_ = other.monitoredResources_;
-            bitField0_ = (bitField0_ & ~0x00080000);
-            monitoredResourcesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getMonitoredResourcesFieldBuilder() : null;
+            bitField0_ = (bitField0_ & ~0x00000040);
+            monitoredResourcesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getMonitoredResourcesFieldBuilder()
+                    : null;
           } else {
             monitoredResourcesBuilder_.addAllMessages(other.monitoredResources_);
           }
@@ -2685,21 +2929,21 @@ public Builder mergeFrom(Service other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      Service parsedMessage = null;
+      com.google.api.Service parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (Service) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.Service) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2708,12 +2952,18 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.UInt32Value configVersion_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> configVersionBuilder_;
+            com.google.protobuf.UInt32Value,
+            com.google.protobuf.UInt32Value.Builder,
+            com.google.protobuf.UInt32ValueOrBuilder>
+        configVersionBuilder_;
     /**
+     *
+     *
      * 
      * The semantic version of the service configuration. The config version
      * affects the interpretation of the service configuration. For example,
@@ -2722,11 +2972,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.UInt32Value config_version = 20; + * + * @return Whether the configVersion field is set. */ public boolean hasConfigVersion() { return configVersionBuilder_ != null || configVersion_ != null; } /** + * + * *
      * The semantic version of the service configuration. The config version
      * affects the interpretation of the service configuration. For example,
@@ -2735,15 +2989,21 @@ public boolean hasConfigVersion() {
      * 
* * .google.protobuf.UInt32Value config_version = 20; + * + * @return The configVersion. */ public com.google.protobuf.UInt32Value getConfigVersion() { if (configVersionBuilder_ == null) { - return configVersion_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : configVersion_; + return configVersion_ == null + ? com.google.protobuf.UInt32Value.getDefaultInstance() + : configVersion_; } else { return configVersionBuilder_.getMessage(); } } /** + * + * *
      * The semantic version of the service configuration. The config version
      * affects the interpretation of the service configuration. For example,
@@ -2767,6 +3027,8 @@ public Builder setConfigVersion(com.google.protobuf.UInt32Value value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The semantic version of the service configuration. The config version
      * affects the interpretation of the service configuration. For example,
@@ -2776,8 +3038,7 @@ public Builder setConfigVersion(com.google.protobuf.UInt32Value value) {
      *
      * .google.protobuf.UInt32Value config_version = 20;
      */
-    public Builder setConfigVersion(
-        com.google.protobuf.UInt32Value.Builder builderForValue) {
+    public Builder setConfigVersion(com.google.protobuf.UInt32Value.Builder builderForValue) {
       if (configVersionBuilder_ == null) {
         configVersion_ = builderForValue.build();
         onChanged();
@@ -2788,6 +3049,8 @@ public Builder setConfigVersion(
       return this;
     }
     /**
+     *
+     *
      * 
      * The semantic version of the service configuration. The config version
      * affects the interpretation of the service configuration. For example,
@@ -2801,7 +3064,9 @@ public Builder mergeConfigVersion(com.google.protobuf.UInt32Value value) {
       if (configVersionBuilder_ == null) {
         if (configVersion_ != null) {
           configVersion_ =
-            com.google.protobuf.UInt32Value.newBuilder(configVersion_).mergeFrom(value).buildPartial();
+              com.google.protobuf.UInt32Value.newBuilder(configVersion_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           configVersion_ = value;
         }
@@ -2813,6 +3078,8 @@ public Builder mergeConfigVersion(com.google.protobuf.UInt32Value value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The semantic version of the service configuration. The config version
      * affects the interpretation of the service configuration. For example,
@@ -2834,6 +3101,8 @@ public Builder clearConfigVersion() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The semantic version of the service configuration. The config version
      * affects the interpretation of the service configuration. For example,
@@ -2844,11 +3113,13 @@ public Builder clearConfigVersion() {
      * .google.protobuf.UInt32Value config_version = 20;
      */
     public com.google.protobuf.UInt32Value.Builder getConfigVersionBuilder() {
-      
+
       onChanged();
       return getConfigVersionFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The semantic version of the service configuration. The config version
      * affects the interpretation of the service configuration. For example,
@@ -2862,11 +3133,14 @@ public com.google.protobuf.UInt32ValueOrBuilder getConfigVersionOrBuilder() {
       if (configVersionBuilder_ != null) {
         return configVersionBuilder_.getMessageOrBuilder();
       } else {
-        return configVersion_ == null ?
-            com.google.protobuf.UInt32Value.getDefaultInstance() : configVersion_;
+        return configVersion_ == null
+            ? com.google.protobuf.UInt32Value.getDefaultInstance()
+            : configVersion_;
       }
     }
     /**
+     *
+     *
      * 
      * The semantic version of the service configuration. The config version
      * affects the interpretation of the service configuration. For example,
@@ -2877,21 +3151,26 @@ public com.google.protobuf.UInt32ValueOrBuilder getConfigVersionOrBuilder() {
      * .google.protobuf.UInt32Value config_version = 20;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> 
+            com.google.protobuf.UInt32Value,
+            com.google.protobuf.UInt32Value.Builder,
+            com.google.protobuf.UInt32ValueOrBuilder>
         getConfigVersionFieldBuilder() {
       if (configVersionBuilder_ == null) {
-        configVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
-                getConfigVersion(),
-                getParentForChildren(),
-                isClean());
+        configVersionBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.UInt32Value,
+                com.google.protobuf.UInt32Value.Builder,
+                com.google.protobuf.UInt32ValueOrBuilder>(
+                getConfigVersion(), getParentForChildren(), isClean());
         configVersion_ = null;
       }
       return configVersionBuilder_;
     }
 
-    private Object name_ = "";
+    private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The service name, which is a DNS-like logical identifier for the
      * service, such as `calendar.googleapis.com`. The service name
@@ -2900,20 +3179,23 @@ public com.google.protobuf.UInt32ValueOrBuilder getConfigVersionOrBuilder() {
      * 
* * string name = 1; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The service name, which is a DNS-like logical identifier for the
      * service, such as `calendar.googleapis.com`. The service name
@@ -2922,14 +3204,14 @@ public String getName() {
      * 
* * string name = 1; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2937,6 +3219,8 @@ public String getName() { } } /** + * + * *
      * The service name, which is a DNS-like logical identifier for the
      * service, such as `calendar.googleapis.com`. The service name
@@ -2945,18 +3229,22 @@ public String getName() {
      * 
* * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ - public Builder setName( - String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The service name, which is a DNS-like logical identifier for the
      * service, such as `calendar.googleapis.com`. The service name
@@ -2965,14 +3253,18 @@ public Builder setName(
      * 
* * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The service name, which is a DNS-like logical identifier for the
      * service, such as `calendar.googleapis.com`. The service name
@@ -2981,21 +3273,25 @@ public Builder clearName() {
      * 
* * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private Object id_ = ""; + private java.lang.Object id_ = ""; /** + * + * *
      * A unique ID for a specific instance of this message, typically assigned
      * by the client for tracking purpose. If empty, the server may choose to
@@ -3003,20 +3299,23 @@ public Builder setNameBytes(
      * 
* * string id = 33; + * + * @return The id. */ - public String getId() { - Object ref = id_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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; + java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * A unique ID for a specific instance of this message, typically assigned
      * by the client for tracking purpose. If empty, the server may choose to
@@ -3024,14 +3323,14 @@ public String getId() {
      * 
* * string id = 33; + * + * @return The bytes for id. */ - public com.google.protobuf.ByteString - getIdBytes() { - Object ref = id_; + 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( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -3039,6 +3338,8 @@ public String getId() { } } /** + * + * *
      * A unique ID for a specific instance of this message, typically assigned
      * by the client for tracking purpose. If empty, the server may choose to
@@ -3046,18 +3347,22 @@ public String getId() {
      * 
* * string id = 33; + * + * @param value The id to set. + * @return This builder for chaining. */ - public Builder setId( - String value) { + public Builder setId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** + * + * *
      * A unique ID for a specific instance of this message, typically assigned
      * by the client for tracking purpose. If empty, the server may choose to
@@ -3065,14 +3370,18 @@ public Builder setId(
      * 
* * string id = 33; + * + * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
      * A unique ID for a specific instance of this message, typically assigned
      * by the client for tracking purpose. If empty, the server may choose to
@@ -3080,53 +3389,60 @@ public Builder clearId() {
      * 
* * string id = 33; + * + * @param value The bytes for id to set. + * @return This builder for chaining. */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { + public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; } - private Object title_ = ""; + private java.lang.Object title_ = ""; /** + * + * *
      * The product title for this service.
      * 
* * string title = 2; + * + * @return The title. */ - public String getTitle() { - Object ref = title_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The product title for this service.
      * 
* * string title = 2; + * + * @return The bytes for title. */ - public com.google.protobuf.ByteString - getTitleBytes() { - Object ref = title_; + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); title_ = b; return b; } else { @@ -3134,88 +3450,105 @@ public String getTitle() { } } /** + * + * *
      * The product title for this service.
      * 
* * string title = 2; + * + * @param value The title to set. + * @return This builder for chaining. */ - public Builder setTitle( - String value) { + public Builder setTitle(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + title_ = value; onChanged(); return this; } /** + * + * *
      * The product title for this service.
      * 
* * string title = 2; + * + * @return This builder for chaining. */ public Builder clearTitle() { - + title_ = getDefaultInstance().getTitle(); onChanged(); return this; } /** + * + * *
      * The product title for this service.
      * 
* * string title = 2; + * + * @param value The bytes for title to set. + * @return This builder for chaining. */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { + public Builder setTitleBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; onChanged(); return this; } - private Object producerProjectId_ = ""; + private java.lang.Object producerProjectId_ = ""; /** + * + * *
      * The Google project that owns this service.
      * 
* * string producer_project_id = 22; + * + * @return The producerProjectId. */ - public String getProducerProjectId() { - Object ref = producerProjectId_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getProducerProjectId() { + java.lang.Object ref = producerProjectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); producerProjectId_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The Google project that owns this service.
      * 
* * string producer_project_id = 22; + * + * @return The bytes for producerProjectId. */ - public com.google.protobuf.ByteString - getProducerProjectIdBytes() { - Object ref = producerProjectId_; + public com.google.protobuf.ByteString getProducerProjectIdBytes() { + java.lang.Object ref = producerProjectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); producerProjectId_ = b; return b; } else { @@ -3223,67 +3556,84 @@ public String getProducerProjectId() { } } /** + * + * *
      * The Google project that owns this service.
      * 
* * string producer_project_id = 22; + * + * @param value The producerProjectId to set. + * @return This builder for chaining. */ - public Builder setProducerProjectId( - String value) { + public Builder setProducerProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + producerProjectId_ = value; onChanged(); return this; } /** + * + * *
      * The Google project that owns this service.
      * 
* * string producer_project_id = 22; + * + * @return This builder for chaining. */ public Builder clearProducerProjectId() { - + producerProjectId_ = getDefaultInstance().getProducerProjectId(); onChanged(); return this; } /** + * + * *
      * The Google project that owns this service.
      * 
* * string producer_project_id = 22; + * + * @param value The bytes for producerProjectId to set. + * @return This builder for chaining. */ - public Builder setProducerProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProducerProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + producerProjectId_ = value; onChanged(); return this; } - private java.util.List apis_ = - java.util.Collections.emptyList(); + private java.util.List apis_ = java.util.Collections.emptyList(); + private void ensureApisIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { apis_ = new java.util.ArrayList(apis_); - bitField0_ |= 0x00000020; - } + bitField0_ |= 0x00000001; + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Api, com.google.protobuf.Api.Builder, com.google.protobuf.ApiOrBuilder> apisBuilder_; + com.google.protobuf.Api, + com.google.protobuf.Api.Builder, + com.google.protobuf.ApiOrBuilder> + apisBuilder_; /** + * + * *
      * A list of API interfaces exported by this service. Only the `name` field
      * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
@@ -3302,6 +3652,8 @@ public java.util.List getApisList() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of API interfaces exported by this service. Only the `name` field
      * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
@@ -3320,6 +3672,8 @@ public int getApisCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of API interfaces exported by this service. Only the `name` field
      * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
@@ -3338,6 +3692,8 @@ public com.google.protobuf.Api getApis(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of API interfaces exported by this service. Only the `name` field
      * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
@@ -3348,8 +3704,7 @@ public com.google.protobuf.Api getApis(int index) {
      *
      * repeated .google.protobuf.Api apis = 3;
      */
-    public Builder setApis(
-        int index, com.google.protobuf.Api value) {
+    public Builder setApis(int index, com.google.protobuf.Api value) {
       if (apisBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3363,6 +3718,8 @@ public Builder setApis(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of API interfaces exported by this service. Only the `name` field
      * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
@@ -3373,8 +3730,7 @@ public Builder setApis(
      *
      * repeated .google.protobuf.Api apis = 3;
      */
-    public Builder setApis(
-        int index, com.google.protobuf.Api.Builder builderForValue) {
+    public Builder setApis(int index, com.google.protobuf.Api.Builder builderForValue) {
       if (apisBuilder_ == null) {
         ensureApisIsMutable();
         apis_.set(index, builderForValue.build());
@@ -3385,6 +3741,8 @@ public Builder setApis(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of API interfaces exported by this service. Only the `name` field
      * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
@@ -3409,6 +3767,8 @@ public Builder addApis(com.google.protobuf.Api value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of API interfaces exported by this service. Only the `name` field
      * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
@@ -3419,8 +3779,7 @@ public Builder addApis(com.google.protobuf.Api value) {
      *
      * repeated .google.protobuf.Api apis = 3;
      */
-    public Builder addApis(
-        int index, com.google.protobuf.Api value) {
+    public Builder addApis(int index, com.google.protobuf.Api value) {
       if (apisBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3434,6 +3793,8 @@ public Builder addApis(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of API interfaces exported by this service. Only the `name` field
      * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
@@ -3444,8 +3805,7 @@ public Builder addApis(
      *
      * repeated .google.protobuf.Api apis = 3;
      */
-    public Builder addApis(
-        com.google.protobuf.Api.Builder builderForValue) {
+    public Builder addApis(com.google.protobuf.Api.Builder builderForValue) {
       if (apisBuilder_ == null) {
         ensureApisIsMutable();
         apis_.add(builderForValue.build());
@@ -3456,6 +3816,8 @@ public Builder addApis(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of API interfaces exported by this service. Only the `name` field
      * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
@@ -3466,8 +3828,7 @@ public Builder addApis(
      *
      * repeated .google.protobuf.Api apis = 3;
      */
-    public Builder addApis(
-        int index, com.google.protobuf.Api.Builder builderForValue) {
+    public Builder addApis(int index, com.google.protobuf.Api.Builder builderForValue) {
       if (apisBuilder_ == null) {
         ensureApisIsMutable();
         apis_.add(index, builderForValue.build());
@@ -3478,6 +3839,8 @@ public Builder addApis(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of API interfaces exported by this service. Only the `name` field
      * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
@@ -3488,12 +3851,10 @@ public Builder addApis(
      *
      * repeated .google.protobuf.Api apis = 3;
      */
-    public Builder addAllApis(
-        Iterable values) {
+    public Builder addAllApis(java.lang.Iterable values) {
       if (apisBuilder_ == null) {
         ensureApisIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, apis_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, apis_);
         onChanged();
       } else {
         apisBuilder_.addAllMessages(values);
@@ -3501,6 +3862,8 @@ public Builder addAllApis(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of API interfaces exported by this service. Only the `name` field
      * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
@@ -3514,7 +3877,7 @@ public Builder addAllApis(
     public Builder clearApis() {
       if (apisBuilder_ == null) {
         apis_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000020);
+        bitField0_ = (bitField0_ & ~0x00000001);
         onChanged();
       } else {
         apisBuilder_.clear();
@@ -3522,6 +3885,8 @@ public Builder clearApis() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of API interfaces exported by this service. Only the `name` field
      * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
@@ -3543,6 +3908,8 @@ public Builder removeApis(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of API interfaces exported by this service. Only the `name` field
      * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
@@ -3553,11 +3920,12 @@ public Builder removeApis(int index) {
      *
      * repeated .google.protobuf.Api apis = 3;
      */
-    public com.google.protobuf.Api.Builder getApisBuilder(
-        int index) {
+    public com.google.protobuf.Api.Builder getApisBuilder(int index) {
       return getApisFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of API interfaces exported by this service. Only the `name` field
      * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
@@ -3568,14 +3936,16 @@ public com.google.protobuf.Api.Builder getApisBuilder(
      *
      * repeated .google.protobuf.Api apis = 3;
      */
-    public com.google.protobuf.ApiOrBuilder getApisOrBuilder(
-        int index) {
+    public com.google.protobuf.ApiOrBuilder getApisOrBuilder(int index) {
       if (apisBuilder_ == null) {
-        return apis_.get(index);  } else {
+        return apis_.get(index);
+      } else {
         return apisBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of API interfaces exported by this service. Only the `name` field
      * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
@@ -3586,8 +3956,7 @@ public com.google.protobuf.ApiOrBuilder getApisOrBuilder(
      *
      * repeated .google.protobuf.Api apis = 3;
      */
-    public java.util.List 
-         getApisOrBuilderList() {
+    public java.util.List getApisOrBuilderList() {
       if (apisBuilder_ != null) {
         return apisBuilder_.getMessageOrBuilderList();
       } else {
@@ -3595,6 +3964,8 @@ public com.google.protobuf.ApiOrBuilder getApisOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * A list of API interfaces exported by this service. Only the `name` field
      * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
@@ -3606,10 +3977,11 @@ public com.google.protobuf.ApiOrBuilder getApisOrBuilder(
      * repeated .google.protobuf.Api apis = 3;
      */
     public com.google.protobuf.Api.Builder addApisBuilder() {
-      return getApisFieldBuilder().addBuilder(
-          com.google.protobuf.Api.getDefaultInstance());
+      return getApisFieldBuilder().addBuilder(com.google.protobuf.Api.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of API interfaces exported by this service. Only the `name` field
      * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
@@ -3620,12 +3992,12 @@ public com.google.protobuf.Api.Builder addApisBuilder() {
      *
      * repeated .google.protobuf.Api apis = 3;
      */
-    public com.google.protobuf.Api.Builder addApisBuilder(
-        int index) {
-      return getApisFieldBuilder().addBuilder(
-          index, com.google.protobuf.Api.getDefaultInstance());
+    public com.google.protobuf.Api.Builder addApisBuilder(int index) {
+      return getApisFieldBuilder().addBuilder(index, com.google.protobuf.Api.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of API interfaces exported by this service. Only the `name` field
      * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
@@ -3636,38 +4008,45 @@ public com.google.protobuf.Api.Builder addApisBuilder(
      *
      * repeated .google.protobuf.Api apis = 3;
      */
-    public java.util.List 
-         getApisBuilderList() {
+    public java.util.List getApisBuilderList() {
       return getApisFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.protobuf.Api, com.google.protobuf.Api.Builder, com.google.protobuf.ApiOrBuilder> 
+            com.google.protobuf.Api,
+            com.google.protobuf.Api.Builder,
+            com.google.protobuf.ApiOrBuilder>
         getApisFieldBuilder() {
       if (apisBuilder_ == null) {
-        apisBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.protobuf.Api, com.google.protobuf.Api.Builder, com.google.protobuf.ApiOrBuilder>(
-                apis_,
-                ((bitField0_ & 0x00000020) != 0),
-                getParentForChildren(),
-                isClean());
+        apisBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.protobuf.Api,
+                com.google.protobuf.Api.Builder,
+                com.google.protobuf.ApiOrBuilder>(
+                apis_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         apis_ = null;
       }
       return apisBuilder_;
     }
 
-    private java.util.List types_ =
-      java.util.Collections.emptyList();
+    private java.util.List types_ = java.util.Collections.emptyList();
+
     private void ensureTypesIsMutable() {
-      if (!((bitField0_ & 0x00000040) != 0)) {
+      if (!((bitField0_ & 0x00000002) != 0)) {
         types_ = new java.util.ArrayList(types_);
-        bitField0_ |= 0x00000040;
-       }
+        bitField0_ |= 0x00000002;
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.protobuf.Type, com.google.protobuf.Type.Builder, com.google.protobuf.TypeOrBuilder> typesBuilder_;
+            com.google.protobuf.Type,
+            com.google.protobuf.Type.Builder,
+            com.google.protobuf.TypeOrBuilder>
+        typesBuilder_;
 
     /**
+     *
+     *
      * 
      * A list of all proto message types included in this API service.
      * Types referenced directly or indirectly by the `apis` are
@@ -3688,6 +4067,8 @@ public java.util.List getTypesList() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of all proto message types included in this API service.
      * Types referenced directly or indirectly by the `apis` are
@@ -3708,6 +4089,8 @@ public int getTypesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of all proto message types included in this API service.
      * Types referenced directly or indirectly by the `apis` are
@@ -3728,6 +4111,8 @@ public com.google.protobuf.Type getTypes(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of all proto message types included in this API service.
      * Types referenced directly or indirectly by the `apis` are
@@ -3740,8 +4125,7 @@ public com.google.protobuf.Type getTypes(int index) {
      *
      * repeated .google.protobuf.Type types = 4;
      */
-    public Builder setTypes(
-        int index, com.google.protobuf.Type value) {
+    public Builder setTypes(int index, com.google.protobuf.Type value) {
       if (typesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3755,6 +4139,8 @@ public Builder setTypes(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of all proto message types included in this API service.
      * Types referenced directly or indirectly by the `apis` are
@@ -3767,8 +4153,7 @@ public Builder setTypes(
      *
      * repeated .google.protobuf.Type types = 4;
      */
-    public Builder setTypes(
-        int index, com.google.protobuf.Type.Builder builderForValue) {
+    public Builder setTypes(int index, com.google.protobuf.Type.Builder builderForValue) {
       if (typesBuilder_ == null) {
         ensureTypesIsMutable();
         types_.set(index, builderForValue.build());
@@ -3779,6 +4164,8 @@ public Builder setTypes(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of all proto message types included in this API service.
      * Types referenced directly or indirectly by the `apis` are
@@ -3805,6 +4192,8 @@ public Builder addTypes(com.google.protobuf.Type value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of all proto message types included in this API service.
      * Types referenced directly or indirectly by the `apis` are
@@ -3817,8 +4206,7 @@ public Builder addTypes(com.google.protobuf.Type value) {
      *
      * repeated .google.protobuf.Type types = 4;
      */
-    public Builder addTypes(
-        int index, com.google.protobuf.Type value) {
+    public Builder addTypes(int index, com.google.protobuf.Type value) {
       if (typesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3832,6 +4220,8 @@ public Builder addTypes(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of all proto message types included in this API service.
      * Types referenced directly or indirectly by the `apis` are
@@ -3844,8 +4234,7 @@ public Builder addTypes(
      *
      * repeated .google.protobuf.Type types = 4;
      */
-    public Builder addTypes(
-        com.google.protobuf.Type.Builder builderForValue) {
+    public Builder addTypes(com.google.protobuf.Type.Builder builderForValue) {
       if (typesBuilder_ == null) {
         ensureTypesIsMutable();
         types_.add(builderForValue.build());
@@ -3856,6 +4245,8 @@ public Builder addTypes(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of all proto message types included in this API service.
      * Types referenced directly or indirectly by the `apis` are
@@ -3868,8 +4259,7 @@ public Builder addTypes(
      *
      * repeated .google.protobuf.Type types = 4;
      */
-    public Builder addTypes(
-        int index, com.google.protobuf.Type.Builder builderForValue) {
+    public Builder addTypes(int index, com.google.protobuf.Type.Builder builderForValue) {
       if (typesBuilder_ == null) {
         ensureTypesIsMutable();
         types_.add(index, builderForValue.build());
@@ -3880,6 +4270,8 @@ public Builder addTypes(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of all proto message types included in this API service.
      * Types referenced directly or indirectly by the `apis` are
@@ -3892,12 +4284,10 @@ public Builder addTypes(
      *
      * repeated .google.protobuf.Type types = 4;
      */
-    public Builder addAllTypes(
-        Iterable values) {
+    public Builder addAllTypes(java.lang.Iterable values) {
       if (typesBuilder_ == null) {
         ensureTypesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, types_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, types_);
         onChanged();
       } else {
         typesBuilder_.addAllMessages(values);
@@ -3905,6 +4295,8 @@ public Builder addAllTypes(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of all proto message types included in this API service.
      * Types referenced directly or indirectly by the `apis` are
@@ -3920,7 +4312,7 @@ public Builder addAllTypes(
     public Builder clearTypes() {
       if (typesBuilder_ == null) {
         types_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000040);
+        bitField0_ = (bitField0_ & ~0x00000002);
         onChanged();
       } else {
         typesBuilder_.clear();
@@ -3928,6 +4320,8 @@ public Builder clearTypes() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of all proto message types included in this API service.
      * Types referenced directly or indirectly by the `apis` are
@@ -3951,6 +4345,8 @@ public Builder removeTypes(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of all proto message types included in this API service.
      * Types referenced directly or indirectly by the `apis` are
@@ -3963,11 +4359,12 @@ public Builder removeTypes(int index) {
      *
      * repeated .google.protobuf.Type types = 4;
      */
-    public com.google.protobuf.Type.Builder getTypesBuilder(
-        int index) {
+    public com.google.protobuf.Type.Builder getTypesBuilder(int index) {
       return getTypesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of all proto message types included in this API service.
      * Types referenced directly or indirectly by the `apis` are
@@ -3980,14 +4377,16 @@ public com.google.protobuf.Type.Builder getTypesBuilder(
      *
      * repeated .google.protobuf.Type types = 4;
      */
-    public com.google.protobuf.TypeOrBuilder getTypesOrBuilder(
-        int index) {
+    public com.google.protobuf.TypeOrBuilder getTypesOrBuilder(int index) {
       if (typesBuilder_ == null) {
-        return types_.get(index);  } else {
+        return types_.get(index);
+      } else {
         return typesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of all proto message types included in this API service.
      * Types referenced directly or indirectly by the `apis` are
@@ -4000,8 +4399,7 @@ public com.google.protobuf.TypeOrBuilder getTypesOrBuilder(
      *
      * repeated .google.protobuf.Type types = 4;
      */
-    public java.util.List 
-         getTypesOrBuilderList() {
+    public java.util.List getTypesOrBuilderList() {
       if (typesBuilder_ != null) {
         return typesBuilder_.getMessageOrBuilderList();
       } else {
@@ -4009,6 +4407,8 @@ public com.google.protobuf.TypeOrBuilder getTypesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * A list of all proto message types included in this API service.
      * Types referenced directly or indirectly by the `apis` are
@@ -4022,10 +4422,11 @@ public com.google.protobuf.TypeOrBuilder getTypesOrBuilder(
      * repeated .google.protobuf.Type types = 4;
      */
     public com.google.protobuf.Type.Builder addTypesBuilder() {
-      return getTypesFieldBuilder().addBuilder(
-          com.google.protobuf.Type.getDefaultInstance());
+      return getTypesFieldBuilder().addBuilder(com.google.protobuf.Type.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of all proto message types included in this API service.
      * Types referenced directly or indirectly by the `apis` are
@@ -4038,12 +4439,13 @@ public com.google.protobuf.Type.Builder addTypesBuilder() {
      *
      * repeated .google.protobuf.Type types = 4;
      */
-    public com.google.protobuf.Type.Builder addTypesBuilder(
-        int index) {
-      return getTypesFieldBuilder().addBuilder(
-          index, com.google.protobuf.Type.getDefaultInstance());
+    public com.google.protobuf.Type.Builder addTypesBuilder(int index) {
+      return getTypesFieldBuilder()
+          .addBuilder(index, com.google.protobuf.Type.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of all proto message types included in this API service.
      * Types referenced directly or indirectly by the `apis` are
@@ -4056,38 +4458,45 @@ public com.google.protobuf.Type.Builder addTypesBuilder(
      *
      * repeated .google.protobuf.Type types = 4;
      */
-    public java.util.List 
-         getTypesBuilderList() {
+    public java.util.List getTypesBuilderList() {
       return getTypesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.protobuf.Type, com.google.protobuf.Type.Builder, com.google.protobuf.TypeOrBuilder> 
+            com.google.protobuf.Type,
+            com.google.protobuf.Type.Builder,
+            com.google.protobuf.TypeOrBuilder>
         getTypesFieldBuilder() {
       if (typesBuilder_ == null) {
-        typesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.protobuf.Type, com.google.protobuf.Type.Builder, com.google.protobuf.TypeOrBuilder>(
-                types_,
-                ((bitField0_ & 0x00000040) != 0),
-                getParentForChildren(),
-                isClean());
+        typesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.protobuf.Type,
+                com.google.protobuf.Type.Builder,
+                com.google.protobuf.TypeOrBuilder>(
+                types_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
         types_ = null;
       }
       return typesBuilder_;
     }
 
-    private java.util.List enums_ =
-      java.util.Collections.emptyList();
+    private java.util.List enums_ = java.util.Collections.emptyList();
+
     private void ensureEnumsIsMutable() {
-      if (!((bitField0_ & 0x00000080) != 0)) {
+      if (!((bitField0_ & 0x00000004) != 0)) {
         enums_ = new java.util.ArrayList(enums_);
-        bitField0_ |= 0x00000080;
-       }
+        bitField0_ |= 0x00000004;
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.protobuf.Enum, com.google.protobuf.Enum.Builder, com.google.protobuf.EnumOrBuilder> enumsBuilder_;
+            com.google.protobuf.Enum,
+            com.google.protobuf.Enum.Builder,
+            com.google.protobuf.EnumOrBuilder>
+        enumsBuilder_;
 
     /**
+     *
+     *
      * 
      * A list of all enum types included in this API service.  Enums
      * referenced directly or indirectly by the `apis` are automatically
@@ -4107,6 +4516,8 @@ public java.util.List getEnumsList() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of all enum types included in this API service.  Enums
      * referenced directly or indirectly by the `apis` are automatically
@@ -4126,6 +4537,8 @@ public int getEnumsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of all enum types included in this API service.  Enums
      * referenced directly or indirectly by the `apis` are automatically
@@ -4145,6 +4558,8 @@ public com.google.protobuf.Enum getEnums(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of all enum types included in this API service.  Enums
      * referenced directly or indirectly by the `apis` are automatically
@@ -4156,8 +4571,7 @@ public com.google.protobuf.Enum getEnums(int index) {
      *
      * repeated .google.protobuf.Enum enums = 5;
      */
-    public Builder setEnums(
-        int index, com.google.protobuf.Enum value) {
+    public Builder setEnums(int index, com.google.protobuf.Enum value) {
       if (enumsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -4171,6 +4585,8 @@ public Builder setEnums(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of all enum types included in this API service.  Enums
      * referenced directly or indirectly by the `apis` are automatically
@@ -4182,8 +4598,7 @@ public Builder setEnums(
      *
      * repeated .google.protobuf.Enum enums = 5;
      */
-    public Builder setEnums(
-        int index, com.google.protobuf.Enum.Builder builderForValue) {
+    public Builder setEnums(int index, com.google.protobuf.Enum.Builder builderForValue) {
       if (enumsBuilder_ == null) {
         ensureEnumsIsMutable();
         enums_.set(index, builderForValue.build());
@@ -4194,6 +4609,8 @@ public Builder setEnums(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of all enum types included in this API service.  Enums
      * referenced directly or indirectly by the `apis` are automatically
@@ -4219,6 +4636,8 @@ public Builder addEnums(com.google.protobuf.Enum value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of all enum types included in this API service.  Enums
      * referenced directly or indirectly by the `apis` are automatically
@@ -4230,8 +4649,7 @@ public Builder addEnums(com.google.protobuf.Enum value) {
      *
      * repeated .google.protobuf.Enum enums = 5;
      */
-    public Builder addEnums(
-        int index, com.google.protobuf.Enum value) {
+    public Builder addEnums(int index, com.google.protobuf.Enum value) {
       if (enumsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -4245,6 +4663,8 @@ public Builder addEnums(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of all enum types included in this API service.  Enums
      * referenced directly or indirectly by the `apis` are automatically
@@ -4256,8 +4676,7 @@ public Builder addEnums(
      *
      * repeated .google.protobuf.Enum enums = 5;
      */
-    public Builder addEnums(
-        com.google.protobuf.Enum.Builder builderForValue) {
+    public Builder addEnums(com.google.protobuf.Enum.Builder builderForValue) {
       if (enumsBuilder_ == null) {
         ensureEnumsIsMutable();
         enums_.add(builderForValue.build());
@@ -4268,6 +4687,8 @@ public Builder addEnums(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of all enum types included in this API service.  Enums
      * referenced directly or indirectly by the `apis` are automatically
@@ -4279,8 +4700,7 @@ public Builder addEnums(
      *
      * repeated .google.protobuf.Enum enums = 5;
      */
-    public Builder addEnums(
-        int index, com.google.protobuf.Enum.Builder builderForValue) {
+    public Builder addEnums(int index, com.google.protobuf.Enum.Builder builderForValue) {
       if (enumsBuilder_ == null) {
         ensureEnumsIsMutable();
         enums_.add(index, builderForValue.build());
@@ -4291,6 +4711,8 @@ public Builder addEnums(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of all enum types included in this API service.  Enums
      * referenced directly or indirectly by the `apis` are automatically
@@ -4302,12 +4724,10 @@ public Builder addEnums(
      *
      * repeated .google.protobuf.Enum enums = 5;
      */
-    public Builder addAllEnums(
-        Iterable values) {
+    public Builder addAllEnums(java.lang.Iterable values) {
       if (enumsBuilder_ == null) {
         ensureEnumsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, enums_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, enums_);
         onChanged();
       } else {
         enumsBuilder_.addAllMessages(values);
@@ -4315,6 +4735,8 @@ public Builder addAllEnums(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of all enum types included in this API service.  Enums
      * referenced directly or indirectly by the `apis` are automatically
@@ -4329,7 +4751,7 @@ public Builder addAllEnums(
     public Builder clearEnums() {
       if (enumsBuilder_ == null) {
         enums_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000080);
+        bitField0_ = (bitField0_ & ~0x00000004);
         onChanged();
       } else {
         enumsBuilder_.clear();
@@ -4337,6 +4759,8 @@ public Builder clearEnums() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of all enum types included in this API service.  Enums
      * referenced directly or indirectly by the `apis` are automatically
@@ -4359,6 +4783,8 @@ public Builder removeEnums(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of all enum types included in this API service.  Enums
      * referenced directly or indirectly by the `apis` are automatically
@@ -4370,11 +4796,12 @@ public Builder removeEnums(int index) {
      *
      * repeated .google.protobuf.Enum enums = 5;
      */
-    public com.google.protobuf.Enum.Builder getEnumsBuilder(
-        int index) {
+    public com.google.protobuf.Enum.Builder getEnumsBuilder(int index) {
       return getEnumsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of all enum types included in this API service.  Enums
      * referenced directly or indirectly by the `apis` are automatically
@@ -4386,14 +4813,16 @@ public com.google.protobuf.Enum.Builder getEnumsBuilder(
      *
      * repeated .google.protobuf.Enum enums = 5;
      */
-    public com.google.protobuf.EnumOrBuilder getEnumsOrBuilder(
-        int index) {
+    public com.google.protobuf.EnumOrBuilder getEnumsOrBuilder(int index) {
       if (enumsBuilder_ == null) {
-        return enums_.get(index);  } else {
+        return enums_.get(index);
+      } else {
         return enumsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of all enum types included in this API service.  Enums
      * referenced directly or indirectly by the `apis` are automatically
@@ -4405,8 +4834,7 @@ public com.google.protobuf.EnumOrBuilder getEnumsOrBuilder(
      *
      * repeated .google.protobuf.Enum enums = 5;
      */
-    public java.util.List 
-         getEnumsOrBuilderList() {
+    public java.util.List getEnumsOrBuilderList() {
       if (enumsBuilder_ != null) {
         return enumsBuilder_.getMessageOrBuilderList();
       } else {
@@ -4414,6 +4842,8 @@ public com.google.protobuf.EnumOrBuilder getEnumsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * A list of all enum types included in this API service.  Enums
      * referenced directly or indirectly by the `apis` are automatically
@@ -4426,10 +4856,11 @@ public com.google.protobuf.EnumOrBuilder getEnumsOrBuilder(
      * repeated .google.protobuf.Enum enums = 5;
      */
     public com.google.protobuf.Enum.Builder addEnumsBuilder() {
-      return getEnumsFieldBuilder().addBuilder(
-          com.google.protobuf.Enum.getDefaultInstance());
+      return getEnumsFieldBuilder().addBuilder(com.google.protobuf.Enum.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of all enum types included in this API service.  Enums
      * referenced directly or indirectly by the `apis` are automatically
@@ -4441,12 +4872,13 @@ public com.google.protobuf.Enum.Builder addEnumsBuilder() {
      *
      * repeated .google.protobuf.Enum enums = 5;
      */
-    public com.google.protobuf.Enum.Builder addEnumsBuilder(
-        int index) {
-      return getEnumsFieldBuilder().addBuilder(
-          index, com.google.protobuf.Enum.getDefaultInstance());
+    public com.google.protobuf.Enum.Builder addEnumsBuilder(int index) {
+      return getEnumsFieldBuilder()
+          .addBuilder(index, com.google.protobuf.Enum.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of all enum types included in this API service.  Enums
      * referenced directly or indirectly by the `apis` are automatically
@@ -4458,20 +4890,22 @@ public com.google.protobuf.Enum.Builder addEnumsBuilder(
      *
      * repeated .google.protobuf.Enum enums = 5;
      */
-    public java.util.List 
-         getEnumsBuilderList() {
+    public java.util.List getEnumsBuilderList() {
       return getEnumsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.protobuf.Enum, com.google.protobuf.Enum.Builder, com.google.protobuf.EnumOrBuilder> 
+            com.google.protobuf.Enum,
+            com.google.protobuf.Enum.Builder,
+            com.google.protobuf.EnumOrBuilder>
         getEnumsFieldBuilder() {
       if (enumsBuilder_ == null) {
-        enumsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.protobuf.Enum, com.google.protobuf.Enum.Builder, com.google.protobuf.EnumOrBuilder>(
-                enums_,
-                ((bitField0_ & 0x00000080) != 0),
-                getParentForChildren(),
-                isClean());
+        enumsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.protobuf.Enum,
+                com.google.protobuf.Enum.Builder,
+                com.google.protobuf.EnumOrBuilder>(
+                enums_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
         enums_ = null;
       }
       return enumsBuilder_;
@@ -4479,32 +4913,47 @@ public com.google.protobuf.Enum.Builder addEnumsBuilder(
 
     private com.google.api.Documentation documentation_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.api.Documentation, com.google.api.Documentation.Builder, com.google.api.DocumentationOrBuilder> documentationBuilder_;
+            com.google.api.Documentation,
+            com.google.api.Documentation.Builder,
+            com.google.api.DocumentationOrBuilder>
+        documentationBuilder_;
     /**
+     *
+     *
      * 
      * Additional API documentation.
      * 
* * .google.api.Documentation documentation = 6; + * + * @return Whether the documentation field is set. */ public boolean hasDocumentation() { return documentationBuilder_ != null || documentation_ != null; } /** + * + * *
      * Additional API documentation.
      * 
* * .google.api.Documentation documentation = 6; + * + * @return The documentation. */ public com.google.api.Documentation getDocumentation() { if (documentationBuilder_ == null) { - return documentation_ == null ? com.google.api.Documentation.getDefaultInstance() : documentation_; + return documentation_ == null + ? com.google.api.Documentation.getDefaultInstance() + : documentation_; } else { return documentationBuilder_.getMessage(); } } /** + * + * *
      * Additional API documentation.
      * 
@@ -4525,14 +4974,15 @@ public Builder setDocumentation(com.google.api.Documentation value) { return this; } /** + * + * *
      * Additional API documentation.
      * 
* * .google.api.Documentation documentation = 6; */ - public Builder setDocumentation( - com.google.api.Documentation.Builder builderForValue) { + public Builder setDocumentation(com.google.api.Documentation.Builder builderForValue) { if (documentationBuilder_ == null) { documentation_ = builderForValue.build(); onChanged(); @@ -4543,6 +4993,8 @@ public Builder setDocumentation( return this; } /** + * + * *
      * Additional API documentation.
      * 
@@ -4553,7 +5005,9 @@ public Builder mergeDocumentation(com.google.api.Documentation value) { if (documentationBuilder_ == null) { if (documentation_ != null) { documentation_ = - com.google.api.Documentation.newBuilder(documentation_).mergeFrom(value).buildPartial(); + com.google.api.Documentation.newBuilder(documentation_) + .mergeFrom(value) + .buildPartial(); } else { documentation_ = value; } @@ -4565,6 +5019,8 @@ public Builder mergeDocumentation(com.google.api.Documentation value) { return this; } /** + * + * *
      * Additional API documentation.
      * 
@@ -4583,6 +5039,8 @@ public Builder clearDocumentation() { return this; } /** + * + * *
      * Additional API documentation.
      * 
@@ -4590,11 +5048,13 @@ public Builder clearDocumentation() { * .google.api.Documentation documentation = 6; */ public com.google.api.Documentation.Builder getDocumentationBuilder() { - + onChanged(); return getDocumentationFieldBuilder().getBuilder(); } /** + * + * *
      * Additional API documentation.
      * 
@@ -4605,11 +5065,14 @@ public com.google.api.DocumentationOrBuilder getDocumentationOrBuilder() { if (documentationBuilder_ != null) { return documentationBuilder_.getMessageOrBuilder(); } else { - return documentation_ == null ? - com.google.api.Documentation.getDefaultInstance() : documentation_; + return documentation_ == null + ? com.google.api.Documentation.getDefaultInstance() + : documentation_; } } /** + * + * *
      * Additional API documentation.
      * 
@@ -4617,54 +5080,68 @@ public com.google.api.DocumentationOrBuilder getDocumentationOrBuilder() { * .google.api.Documentation documentation = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.Documentation, com.google.api.Documentation.Builder, com.google.api.DocumentationOrBuilder> + com.google.api.Documentation, + com.google.api.Documentation.Builder, + com.google.api.DocumentationOrBuilder> getDocumentationFieldBuilder() { if (documentationBuilder_ == null) { - documentationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.api.Documentation, com.google.api.Documentation.Builder, com.google.api.DocumentationOrBuilder>( - getDocumentation(), - getParentForChildren(), - isClean()); + documentationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.Documentation, + com.google.api.Documentation.Builder, + com.google.api.DocumentationOrBuilder>( + getDocumentation(), getParentForChildren(), isClean()); documentation_ = null; } return documentationBuilder_; } - private Backend backend_; + private com.google.api.Backend backend_; private com.google.protobuf.SingleFieldBuilderV3< - Backend, Backend.Builder, com.google.api.BackendOrBuilder> backendBuilder_; + com.google.api.Backend, com.google.api.Backend.Builder, com.google.api.BackendOrBuilder> + backendBuilder_; /** + * + * *
      * API backend configuration.
      * 
* * .google.api.Backend backend = 8; + * + * @return Whether the backend field is set. */ public boolean hasBackend() { return backendBuilder_ != null || backend_ != null; } /** + * + * *
      * API backend configuration.
      * 
* * .google.api.Backend backend = 8; + * + * @return The backend. */ - public Backend getBackend() { + public com.google.api.Backend getBackend() { if (backendBuilder_ == null) { - return backend_ == null ? Backend.getDefaultInstance() : backend_; + return backend_ == null ? com.google.api.Backend.getDefaultInstance() : backend_; } else { return backendBuilder_.getMessage(); } } /** + * + * *
      * API backend configuration.
      * 
* * .google.api.Backend backend = 8; */ - public Builder setBackend(Backend value) { + public Builder setBackend(com.google.api.Backend value) { if (backendBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4678,14 +5155,15 @@ public Builder setBackend(Backend value) { return this; } /** + * + * *
      * API backend configuration.
      * 
* * .google.api.Backend backend = 8; */ - public Builder setBackend( - Backend.Builder builderForValue) { + public Builder setBackend(com.google.api.Backend.Builder builderForValue) { if (backendBuilder_ == null) { backend_ = builderForValue.build(); onChanged(); @@ -4696,17 +5174,18 @@ public Builder setBackend( return this; } /** + * + * *
      * API backend configuration.
      * 
* * .google.api.Backend backend = 8; */ - public Builder mergeBackend(Backend value) { + public Builder mergeBackend(com.google.api.Backend value) { if (backendBuilder_ == null) { if (backend_ != null) { - backend_ = - Backend.newBuilder(backend_).mergeFrom(value).buildPartial(); + backend_ = com.google.api.Backend.newBuilder(backend_).mergeFrom(value).buildPartial(); } else { backend_ = value; } @@ -4718,6 +5197,8 @@ public Builder mergeBackend(Backend value) { return this; } /** + * + * *
      * API backend configuration.
      * 
@@ -4736,18 +5217,22 @@ public Builder clearBackend() { return this; } /** + * + * *
      * API backend configuration.
      * 
* * .google.api.Backend backend = 8; */ - public Backend.Builder getBackendBuilder() { - + public com.google.api.Backend.Builder getBackendBuilder() { + onChanged(); return getBackendFieldBuilder().getBuilder(); } /** + * + * *
      * API backend configuration.
      * 
@@ -4758,11 +5243,12 @@ public com.google.api.BackendOrBuilder getBackendOrBuilder() { if (backendBuilder_ != null) { return backendBuilder_.getMessageOrBuilder(); } else { - return backend_ == null ? - Backend.getDefaultInstance() : backend_; + return backend_ == null ? com.google.api.Backend.getDefaultInstance() : backend_; } } /** + * + * *
      * API backend configuration.
      * 
@@ -4770,54 +5256,65 @@ public com.google.api.BackendOrBuilder getBackendOrBuilder() { * .google.api.Backend backend = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - Backend, Backend.Builder, com.google.api.BackendOrBuilder> + com.google.api.Backend, com.google.api.Backend.Builder, com.google.api.BackendOrBuilder> getBackendFieldBuilder() { if (backendBuilder_ == null) { - backendBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - Backend, Backend.Builder, com.google.api.BackendOrBuilder>( - getBackend(), - getParentForChildren(), - isClean()); + backendBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.Backend, + com.google.api.Backend.Builder, + com.google.api.BackendOrBuilder>(getBackend(), getParentForChildren(), isClean()); backend_ = null; } return backendBuilder_; } - private Http http_; + private com.google.api.Http http_; private com.google.protobuf.SingleFieldBuilderV3< - Http, Http.Builder, com.google.api.HttpOrBuilder> httpBuilder_; + com.google.api.Http, com.google.api.Http.Builder, com.google.api.HttpOrBuilder> + httpBuilder_; /** + * + * *
      * HTTP configuration.
      * 
* * .google.api.Http http = 9; + * + * @return Whether the http field is set. */ public boolean hasHttp() { return httpBuilder_ != null || http_ != null; } /** + * + * *
      * HTTP configuration.
      * 
* * .google.api.Http http = 9; + * + * @return The http. */ - public Http getHttp() { + public com.google.api.Http getHttp() { if (httpBuilder_ == null) { - return http_ == null ? Http.getDefaultInstance() : http_; + return http_ == null ? com.google.api.Http.getDefaultInstance() : http_; } else { return httpBuilder_.getMessage(); } } /** + * + * *
      * HTTP configuration.
      * 
* * .google.api.Http http = 9; */ - public Builder setHttp(Http value) { + public Builder setHttp(com.google.api.Http value) { if (httpBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4831,14 +5328,15 @@ public Builder setHttp(Http value) { return this; } /** + * + * *
      * HTTP configuration.
      * 
* * .google.api.Http http = 9; */ - public Builder setHttp( - Http.Builder builderForValue) { + public Builder setHttp(com.google.api.Http.Builder builderForValue) { if (httpBuilder_ == null) { http_ = builderForValue.build(); onChanged(); @@ -4849,17 +5347,18 @@ public Builder setHttp( return this; } /** + * + * *
      * HTTP configuration.
      * 
* * .google.api.Http http = 9; */ - public Builder mergeHttp(Http value) { + public Builder mergeHttp(com.google.api.Http value) { if (httpBuilder_ == null) { if (http_ != null) { - http_ = - Http.newBuilder(http_).mergeFrom(value).buildPartial(); + http_ = com.google.api.Http.newBuilder(http_).mergeFrom(value).buildPartial(); } else { http_ = value; } @@ -4871,6 +5370,8 @@ public Builder mergeHttp(Http value) { return this; } /** + * + * *
      * HTTP configuration.
      * 
@@ -4889,18 +5390,22 @@ public Builder clearHttp() { return this; } /** + * + * *
      * HTTP configuration.
      * 
* * .google.api.Http http = 9; */ - public Http.Builder getHttpBuilder() { - + public com.google.api.Http.Builder getHttpBuilder() { + onChanged(); return getHttpFieldBuilder().getBuilder(); } /** + * + * *
      * HTTP configuration.
      * 
@@ -4911,11 +5416,12 @@ public com.google.api.HttpOrBuilder getHttpOrBuilder() { if (httpBuilder_ != null) { return httpBuilder_.getMessageOrBuilder(); } else { - return http_ == null ? - Http.getDefaultInstance() : http_; + return http_ == null ? com.google.api.Http.getDefaultInstance() : http_; } } /** + * + * *
      * HTTP configuration.
      * 
@@ -4923,54 +5429,64 @@ public com.google.api.HttpOrBuilder getHttpOrBuilder() { * .google.api.Http http = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - Http, Http.Builder, com.google.api.HttpOrBuilder> + com.google.api.Http, com.google.api.Http.Builder, com.google.api.HttpOrBuilder> getHttpFieldBuilder() { if (httpBuilder_ == null) { - httpBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - Http, Http.Builder, com.google.api.HttpOrBuilder>( - getHttp(), - getParentForChildren(), - isClean()); + httpBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.Http, com.google.api.Http.Builder, com.google.api.HttpOrBuilder>( + getHttp(), getParentForChildren(), isClean()); http_ = null; } return httpBuilder_; } - private Quota quota_; + private com.google.api.Quota quota_; private com.google.protobuf.SingleFieldBuilderV3< - Quota, Quota.Builder, com.google.api.QuotaOrBuilder> quotaBuilder_; + com.google.api.Quota, com.google.api.Quota.Builder, com.google.api.QuotaOrBuilder> + quotaBuilder_; /** + * + * *
      * Quota configuration.
      * 
* * .google.api.Quota quota = 10; + * + * @return Whether the quota field is set. */ public boolean hasQuota() { return quotaBuilder_ != null || quota_ != null; } /** + * + * *
      * Quota configuration.
      * 
* * .google.api.Quota quota = 10; + * + * @return The quota. */ - public Quota getQuota() { + public com.google.api.Quota getQuota() { if (quotaBuilder_ == null) { - return quota_ == null ? Quota.getDefaultInstance() : quota_; + return quota_ == null ? com.google.api.Quota.getDefaultInstance() : quota_; } else { return quotaBuilder_.getMessage(); } } /** + * + * *
      * Quota configuration.
      * 
* * .google.api.Quota quota = 10; */ - public Builder setQuota(Quota value) { + public Builder setQuota(com.google.api.Quota value) { if (quotaBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4984,14 +5500,15 @@ public Builder setQuota(Quota value) { return this; } /** + * + * *
      * Quota configuration.
      * 
* * .google.api.Quota quota = 10; */ - public Builder setQuota( - Quota.Builder builderForValue) { + public Builder setQuota(com.google.api.Quota.Builder builderForValue) { if (quotaBuilder_ == null) { quota_ = builderForValue.build(); onChanged(); @@ -5002,17 +5519,18 @@ public Builder setQuota( return this; } /** + * + * *
      * Quota configuration.
      * 
* * .google.api.Quota quota = 10; */ - public Builder mergeQuota(Quota value) { + public Builder mergeQuota(com.google.api.Quota value) { if (quotaBuilder_ == null) { if (quota_ != null) { - quota_ = - Quota.newBuilder(quota_).mergeFrom(value).buildPartial(); + quota_ = com.google.api.Quota.newBuilder(quota_).mergeFrom(value).buildPartial(); } else { quota_ = value; } @@ -5024,6 +5542,8 @@ public Builder mergeQuota(Quota value) { return this; } /** + * + * *
      * Quota configuration.
      * 
@@ -5042,18 +5562,22 @@ public Builder clearQuota() { return this; } /** + * + * *
      * Quota configuration.
      * 
* * .google.api.Quota quota = 10; */ - public Quota.Builder getQuotaBuilder() { - + public com.google.api.Quota.Builder getQuotaBuilder() { + onChanged(); return getQuotaFieldBuilder().getBuilder(); } /** + * + * *
      * Quota configuration.
      * 
@@ -5064,11 +5588,12 @@ public com.google.api.QuotaOrBuilder getQuotaOrBuilder() { if (quotaBuilder_ != null) { return quotaBuilder_.getMessageOrBuilder(); } else { - return quota_ == null ? - Quota.getDefaultInstance() : quota_; + return quota_ == null ? com.google.api.Quota.getDefaultInstance() : quota_; } } /** + * + * *
      * Quota configuration.
      * 
@@ -5076,14 +5601,13 @@ public com.google.api.QuotaOrBuilder getQuotaOrBuilder() { * .google.api.Quota quota = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - Quota, Quota.Builder, com.google.api.QuotaOrBuilder> + com.google.api.Quota, com.google.api.Quota.Builder, com.google.api.QuotaOrBuilder> getQuotaFieldBuilder() { if (quotaBuilder_ == null) { - quotaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - Quota, Quota.Builder, com.google.api.QuotaOrBuilder>( - getQuota(), - getParentForChildren(), - isClean()); + quotaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.Quota, com.google.api.Quota.Builder, com.google.api.QuotaOrBuilder>( + getQuota(), getParentForChildren(), isClean()); quota_ = null; } return quotaBuilder_; @@ -5091,32 +5615,47 @@ public com.google.api.QuotaOrBuilder getQuotaOrBuilder() { private com.google.api.Authentication authentication_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.Authentication, com.google.api.Authentication.Builder, com.google.api.AuthenticationOrBuilder> authenticationBuilder_; + com.google.api.Authentication, + com.google.api.Authentication.Builder, + com.google.api.AuthenticationOrBuilder> + authenticationBuilder_; /** + * + * *
      * Auth configuration.
      * 
* * .google.api.Authentication authentication = 11; + * + * @return Whether the authentication field is set. */ public boolean hasAuthentication() { return authenticationBuilder_ != null || authentication_ != null; } /** + * + * *
      * Auth configuration.
      * 
* * .google.api.Authentication authentication = 11; + * + * @return The authentication. */ public com.google.api.Authentication getAuthentication() { if (authenticationBuilder_ == null) { - return authentication_ == null ? com.google.api.Authentication.getDefaultInstance() : authentication_; + return authentication_ == null + ? com.google.api.Authentication.getDefaultInstance() + : authentication_; } else { return authenticationBuilder_.getMessage(); } } /** + * + * *
      * Auth configuration.
      * 
@@ -5137,14 +5676,15 @@ public Builder setAuthentication(com.google.api.Authentication value) { return this; } /** + * + * *
      * Auth configuration.
      * 
* * .google.api.Authentication authentication = 11; */ - public Builder setAuthentication( - com.google.api.Authentication.Builder builderForValue) { + public Builder setAuthentication(com.google.api.Authentication.Builder builderForValue) { if (authenticationBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -5155,6 +5695,8 @@ public Builder setAuthentication( return this; } /** + * + * *
      * Auth configuration.
      * 
@@ -5165,7 +5707,9 @@ public Builder mergeAuthentication(com.google.api.Authentication value) { if (authenticationBuilder_ == null) { if (authentication_ != null) { authentication_ = - com.google.api.Authentication.newBuilder(authentication_).mergeFrom(value).buildPartial(); + com.google.api.Authentication.newBuilder(authentication_) + .mergeFrom(value) + .buildPartial(); } else { authentication_ = value; } @@ -5177,6 +5721,8 @@ public Builder mergeAuthentication(com.google.api.Authentication value) { return this; } /** + * + * *
      * Auth configuration.
      * 
@@ -5195,6 +5741,8 @@ public Builder clearAuthentication() { return this; } /** + * + * *
      * Auth configuration.
      * 
@@ -5202,11 +5750,13 @@ public Builder clearAuthentication() { * .google.api.Authentication authentication = 11; */ public com.google.api.Authentication.Builder getAuthenticationBuilder() { - + onChanged(); return getAuthenticationFieldBuilder().getBuilder(); } /** + * + * *
      * Auth configuration.
      * 
@@ -5217,11 +5767,14 @@ public com.google.api.AuthenticationOrBuilder getAuthenticationOrBuilder() { if (authenticationBuilder_ != null) { return authenticationBuilder_.getMessageOrBuilder(); } else { - return authentication_ == null ? - com.google.api.Authentication.getDefaultInstance() : authentication_; + return authentication_ == null + ? com.google.api.Authentication.getDefaultInstance() + : authentication_; } } /** + * + * *
      * Auth configuration.
      * 
@@ -5229,54 +5782,68 @@ public com.google.api.AuthenticationOrBuilder getAuthenticationOrBuilder() { * .google.api.Authentication authentication = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.Authentication, com.google.api.Authentication.Builder, com.google.api.AuthenticationOrBuilder> + com.google.api.Authentication, + com.google.api.Authentication.Builder, + com.google.api.AuthenticationOrBuilder> getAuthenticationFieldBuilder() { if (authenticationBuilder_ == null) { - authenticationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.api.Authentication, com.google.api.Authentication.Builder, com.google.api.AuthenticationOrBuilder>( - getAuthentication(), - getParentForChildren(), - isClean()); + authenticationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.Authentication, + com.google.api.Authentication.Builder, + com.google.api.AuthenticationOrBuilder>( + getAuthentication(), getParentForChildren(), isClean()); authentication_ = null; } return authenticationBuilder_; } - private Context context_; + private com.google.api.Context context_; private com.google.protobuf.SingleFieldBuilderV3< - Context, Context.Builder, com.google.api.ContextOrBuilder> contextBuilder_; + com.google.api.Context, com.google.api.Context.Builder, com.google.api.ContextOrBuilder> + contextBuilder_; /** + * + * *
      * Context configuration.
      * 
* * .google.api.Context context = 12; + * + * @return Whether the context field is set. */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** + * + * *
      * Context configuration.
      * 
* * .google.api.Context context = 12; + * + * @return The context. */ - public Context getContext() { + public com.google.api.Context getContext() { if (contextBuilder_ == null) { - return context_ == null ? Context.getDefaultInstance() : context_; + return context_ == null ? com.google.api.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** + * + * *
      * Context configuration.
      * 
* * .google.api.Context context = 12; */ - public Builder setContext(Context value) { + public Builder setContext(com.google.api.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5290,14 +5857,15 @@ public Builder setContext(Context value) { return this; } /** + * + * *
      * Context configuration.
      * 
* * .google.api.Context context = 12; */ - public Builder setContext( - Context.Builder builderForValue) { + public Builder setContext(com.google.api.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); @@ -5308,17 +5876,18 @@ public Builder setContext( return this; } /** + * + * *
      * Context configuration.
      * 
* * .google.api.Context context = 12; */ - public Builder mergeContext(Context value) { + public Builder mergeContext(com.google.api.Context value) { if (contextBuilder_ == null) { if (context_ != null) { - context_ = - Context.newBuilder(context_).mergeFrom(value).buildPartial(); + context_ = com.google.api.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } @@ -5330,6 +5899,8 @@ public Builder mergeContext(Context value) { return this; } /** + * + * *
      * Context configuration.
      * 
@@ -5348,18 +5919,22 @@ public Builder clearContext() { return this; } /** + * + * *
      * Context configuration.
      * 
* * .google.api.Context context = 12; */ - public Context.Builder getContextBuilder() { - + public com.google.api.Context.Builder getContextBuilder() { + onChanged(); return getContextFieldBuilder().getBuilder(); } /** + * + * *
      * Context configuration.
      * 
@@ -5370,11 +5945,12 @@ public com.google.api.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { - return context_ == null ? - Context.getDefaultInstance() : context_; + return context_ == null ? com.google.api.Context.getDefaultInstance() : context_; } } /** + * + * *
      * Context configuration.
      * 
@@ -5382,54 +5958,65 @@ public com.google.api.ContextOrBuilder getContextOrBuilder() { * .google.api.Context context = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - Context, Context.Builder, com.google.api.ContextOrBuilder> + com.google.api.Context, com.google.api.Context.Builder, com.google.api.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { - contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - Context, Context.Builder, com.google.api.ContextOrBuilder>( - getContext(), - getParentForChildren(), - isClean()); + contextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.Context, + com.google.api.Context.Builder, + com.google.api.ContextOrBuilder>(getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } - private Usage usage_; + private com.google.api.Usage usage_; private com.google.protobuf.SingleFieldBuilderV3< - Usage, Usage.Builder, com.google.api.UsageOrBuilder> usageBuilder_; + com.google.api.Usage, com.google.api.Usage.Builder, com.google.api.UsageOrBuilder> + usageBuilder_; /** + * + * *
      * Configuration controlling usage of this service.
      * 
* * .google.api.Usage usage = 15; + * + * @return Whether the usage field is set. */ public boolean hasUsage() { return usageBuilder_ != null || usage_ != null; } /** + * + * *
      * Configuration controlling usage of this service.
      * 
* * .google.api.Usage usage = 15; + * + * @return The usage. */ - public Usage getUsage() { + public com.google.api.Usage getUsage() { if (usageBuilder_ == null) { - return usage_ == null ? Usage.getDefaultInstance() : usage_; + return usage_ == null ? com.google.api.Usage.getDefaultInstance() : usage_; } else { return usageBuilder_.getMessage(); } } /** + * + * *
      * Configuration controlling usage of this service.
      * 
* * .google.api.Usage usage = 15; */ - public Builder setUsage(Usage value) { + public Builder setUsage(com.google.api.Usage value) { if (usageBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5443,14 +6030,15 @@ public Builder setUsage(Usage value) { return this; } /** + * + * *
      * Configuration controlling usage of this service.
      * 
* * .google.api.Usage usage = 15; */ - public Builder setUsage( - Usage.Builder builderForValue) { + public Builder setUsage(com.google.api.Usage.Builder builderForValue) { if (usageBuilder_ == null) { usage_ = builderForValue.build(); onChanged(); @@ -5461,17 +6049,18 @@ public Builder setUsage( return this; } /** + * + * *
      * Configuration controlling usage of this service.
      * 
* * .google.api.Usage usage = 15; */ - public Builder mergeUsage(Usage value) { + public Builder mergeUsage(com.google.api.Usage value) { if (usageBuilder_ == null) { if (usage_ != null) { - usage_ = - Usage.newBuilder(usage_).mergeFrom(value).buildPartial(); + usage_ = com.google.api.Usage.newBuilder(usage_).mergeFrom(value).buildPartial(); } else { usage_ = value; } @@ -5483,6 +6072,8 @@ public Builder mergeUsage(Usage value) { return this; } /** + * + * *
      * Configuration controlling usage of this service.
      * 
@@ -5501,18 +6092,22 @@ public Builder clearUsage() { return this; } /** + * + * *
      * Configuration controlling usage of this service.
      * 
* * .google.api.Usage usage = 15; */ - public Usage.Builder getUsageBuilder() { - + public com.google.api.Usage.Builder getUsageBuilder() { + onChanged(); return getUsageFieldBuilder().getBuilder(); } /** + * + * *
      * Configuration controlling usage of this service.
      * 
@@ -5523,11 +6118,12 @@ public com.google.api.UsageOrBuilder getUsageOrBuilder() { if (usageBuilder_ != null) { return usageBuilder_.getMessageOrBuilder(); } else { - return usage_ == null ? - Usage.getDefaultInstance() : usage_; + return usage_ == null ? com.google.api.Usage.getDefaultInstance() : usage_; } } /** + * + * *
      * Configuration controlling usage of this service.
      * 
@@ -5535,32 +6131,36 @@ public com.google.api.UsageOrBuilder getUsageOrBuilder() { * .google.api.Usage usage = 15; */ private com.google.protobuf.SingleFieldBuilderV3< - Usage, Usage.Builder, com.google.api.UsageOrBuilder> + com.google.api.Usage, com.google.api.Usage.Builder, com.google.api.UsageOrBuilder> getUsageFieldBuilder() { if (usageBuilder_ == null) { - usageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - Usage, Usage.Builder, com.google.api.UsageOrBuilder>( - getUsage(), - getParentForChildren(), - isClean()); + usageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.Usage, com.google.api.Usage.Builder, com.google.api.UsageOrBuilder>( + getUsage(), getParentForChildren(), isClean()); usage_ = null; } return usageBuilder_; } - private java.util.List endpoints_ = - java.util.Collections.emptyList(); + private java.util.List endpoints_ = java.util.Collections.emptyList(); + private void ensureEndpointsIsMutable() { - if (!((bitField0_ & 0x00008000) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { endpoints_ = new java.util.ArrayList(endpoints_); - bitField0_ |= 0x00008000; - } + bitField0_ |= 0x00000008; + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.Endpoint, com.google.api.Endpoint.Builder, com.google.api.EndpointOrBuilder> endpointsBuilder_; + com.google.api.Endpoint, + com.google.api.Endpoint.Builder, + com.google.api.EndpointOrBuilder> + endpointsBuilder_; /** + * + * *
      * Configuration for network endpoints.  If this is empty, then an endpoint
      * with the same name as the service is automatically generated to service all
@@ -5577,6 +6177,8 @@ public java.util.List getEndpointsList() {
       }
     }
     /**
+     *
+     *
      * 
      * Configuration for network endpoints.  If this is empty, then an endpoint
      * with the same name as the service is automatically generated to service all
@@ -5593,6 +6195,8 @@ public int getEndpointsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Configuration for network endpoints.  If this is empty, then an endpoint
      * with the same name as the service is automatically generated to service all
@@ -5609,6 +6213,8 @@ public com.google.api.Endpoint getEndpoints(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Configuration for network endpoints.  If this is empty, then an endpoint
      * with the same name as the service is automatically generated to service all
@@ -5617,8 +6223,7 @@ public com.google.api.Endpoint getEndpoints(int index) {
      *
      * repeated .google.api.Endpoint endpoints = 18;
      */
-    public Builder setEndpoints(
-        int index, com.google.api.Endpoint value) {
+    public Builder setEndpoints(int index, com.google.api.Endpoint value) {
       if (endpointsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -5632,6 +6237,8 @@ public Builder setEndpoints(
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration for network endpoints.  If this is empty, then an endpoint
      * with the same name as the service is automatically generated to service all
@@ -5640,8 +6247,7 @@ public Builder setEndpoints(
      *
      * repeated .google.api.Endpoint endpoints = 18;
      */
-    public Builder setEndpoints(
-        int index, com.google.api.Endpoint.Builder builderForValue) {
+    public Builder setEndpoints(int index, com.google.api.Endpoint.Builder builderForValue) {
       if (endpointsBuilder_ == null) {
         ensureEndpointsIsMutable();
         endpoints_.set(index, builderForValue.build());
@@ -5652,6 +6258,8 @@ public Builder setEndpoints(
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration for network endpoints.  If this is empty, then an endpoint
      * with the same name as the service is automatically generated to service all
@@ -5674,6 +6282,8 @@ public Builder addEndpoints(com.google.api.Endpoint value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration for network endpoints.  If this is empty, then an endpoint
      * with the same name as the service is automatically generated to service all
@@ -5682,8 +6292,7 @@ public Builder addEndpoints(com.google.api.Endpoint value) {
      *
      * repeated .google.api.Endpoint endpoints = 18;
      */
-    public Builder addEndpoints(
-        int index, com.google.api.Endpoint value) {
+    public Builder addEndpoints(int index, com.google.api.Endpoint value) {
       if (endpointsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -5697,6 +6306,8 @@ public Builder addEndpoints(
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration for network endpoints.  If this is empty, then an endpoint
      * with the same name as the service is automatically generated to service all
@@ -5705,8 +6316,7 @@ public Builder addEndpoints(
      *
      * repeated .google.api.Endpoint endpoints = 18;
      */
-    public Builder addEndpoints(
-        com.google.api.Endpoint.Builder builderForValue) {
+    public Builder addEndpoints(com.google.api.Endpoint.Builder builderForValue) {
       if (endpointsBuilder_ == null) {
         ensureEndpointsIsMutable();
         endpoints_.add(builderForValue.build());
@@ -5717,6 +6327,8 @@ public Builder addEndpoints(
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration for network endpoints.  If this is empty, then an endpoint
      * with the same name as the service is automatically generated to service all
@@ -5725,8 +6337,7 @@ public Builder addEndpoints(
      *
      * repeated .google.api.Endpoint endpoints = 18;
      */
-    public Builder addEndpoints(
-        int index, com.google.api.Endpoint.Builder builderForValue) {
+    public Builder addEndpoints(int index, com.google.api.Endpoint.Builder builderForValue) {
       if (endpointsBuilder_ == null) {
         ensureEndpointsIsMutable();
         endpoints_.add(index, builderForValue.build());
@@ -5737,6 +6348,8 @@ public Builder addEndpoints(
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration for network endpoints.  If this is empty, then an endpoint
      * with the same name as the service is automatically generated to service all
@@ -5745,12 +6358,10 @@ public Builder addEndpoints(
      *
      * repeated .google.api.Endpoint endpoints = 18;
      */
-    public Builder addAllEndpoints(
-        Iterable values) {
+    public Builder addAllEndpoints(java.lang.Iterable values) {
       if (endpointsBuilder_ == null) {
         ensureEndpointsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, endpoints_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, endpoints_);
         onChanged();
       } else {
         endpointsBuilder_.addAllMessages(values);
@@ -5758,6 +6369,8 @@ public Builder addAllEndpoints(
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration for network endpoints.  If this is empty, then an endpoint
      * with the same name as the service is automatically generated to service all
@@ -5769,7 +6382,7 @@ public Builder addAllEndpoints(
     public Builder clearEndpoints() {
       if (endpointsBuilder_ == null) {
         endpoints_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00008000);
+        bitField0_ = (bitField0_ & ~0x00000008);
         onChanged();
       } else {
         endpointsBuilder_.clear();
@@ -5777,6 +6390,8 @@ public Builder clearEndpoints() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration for network endpoints.  If this is empty, then an endpoint
      * with the same name as the service is automatically generated to service all
@@ -5796,6 +6411,8 @@ public Builder removeEndpoints(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration for network endpoints.  If this is empty, then an endpoint
      * with the same name as the service is automatically generated to service all
@@ -5804,11 +6421,12 @@ public Builder removeEndpoints(int index) {
      *
      * repeated .google.api.Endpoint endpoints = 18;
      */
-    public com.google.api.Endpoint.Builder getEndpointsBuilder(
-        int index) {
+    public com.google.api.Endpoint.Builder getEndpointsBuilder(int index) {
       return getEndpointsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Configuration for network endpoints.  If this is empty, then an endpoint
      * with the same name as the service is automatically generated to service all
@@ -5817,14 +6435,16 @@ public com.google.api.Endpoint.Builder getEndpointsBuilder(
      *
      * repeated .google.api.Endpoint endpoints = 18;
      */
-    public com.google.api.EndpointOrBuilder getEndpointsOrBuilder(
-        int index) {
+    public com.google.api.EndpointOrBuilder getEndpointsOrBuilder(int index) {
       if (endpointsBuilder_ == null) {
-        return endpoints_.get(index);  } else {
+        return endpoints_.get(index);
+      } else {
         return endpointsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Configuration for network endpoints.  If this is empty, then an endpoint
      * with the same name as the service is automatically generated to service all
@@ -5833,8 +6453,7 @@ public com.google.api.EndpointOrBuilder getEndpointsOrBuilder(
      *
      * repeated .google.api.Endpoint endpoints = 18;
      */
-    public java.util.List 
-         getEndpointsOrBuilderList() {
+    public java.util.List getEndpointsOrBuilderList() {
       if (endpointsBuilder_ != null) {
         return endpointsBuilder_.getMessageOrBuilderList();
       } else {
@@ -5842,6 +6461,8 @@ public com.google.api.EndpointOrBuilder getEndpointsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Configuration for network endpoints.  If this is empty, then an endpoint
      * with the same name as the service is automatically generated to service all
@@ -5851,10 +6472,11 @@ public com.google.api.EndpointOrBuilder getEndpointsOrBuilder(
      * repeated .google.api.Endpoint endpoints = 18;
      */
     public com.google.api.Endpoint.Builder addEndpointsBuilder() {
-      return getEndpointsFieldBuilder().addBuilder(
-          com.google.api.Endpoint.getDefaultInstance());
+      return getEndpointsFieldBuilder().addBuilder(com.google.api.Endpoint.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Configuration for network endpoints.  If this is empty, then an endpoint
      * with the same name as the service is automatically generated to service all
@@ -5863,12 +6485,13 @@ public com.google.api.Endpoint.Builder addEndpointsBuilder() {
      *
      * repeated .google.api.Endpoint endpoints = 18;
      */
-    public com.google.api.Endpoint.Builder addEndpointsBuilder(
-        int index) {
-      return getEndpointsFieldBuilder().addBuilder(
-          index, com.google.api.Endpoint.getDefaultInstance());
+    public com.google.api.Endpoint.Builder addEndpointsBuilder(int index) {
+      return getEndpointsFieldBuilder()
+          .addBuilder(index, com.google.api.Endpoint.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Configuration for network endpoints.  If this is empty, then an endpoint
      * with the same name as the service is automatically generated to service all
@@ -5877,60 +6500,73 @@ public com.google.api.Endpoint.Builder addEndpointsBuilder(
      *
      * repeated .google.api.Endpoint endpoints = 18;
      */
-    public java.util.List 
-         getEndpointsBuilderList() {
+    public java.util.List getEndpointsBuilderList() {
       return getEndpointsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.api.Endpoint, com.google.api.Endpoint.Builder, com.google.api.EndpointOrBuilder> 
+            com.google.api.Endpoint,
+            com.google.api.Endpoint.Builder,
+            com.google.api.EndpointOrBuilder>
         getEndpointsFieldBuilder() {
       if (endpointsBuilder_ == null) {
-        endpointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.api.Endpoint, com.google.api.Endpoint.Builder, com.google.api.EndpointOrBuilder>(
-                endpoints_,
-                ((bitField0_ & 0x00008000) != 0),
-                getParentForChildren(),
-                isClean());
+        endpointsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.api.Endpoint,
+                com.google.api.Endpoint.Builder,
+                com.google.api.EndpointOrBuilder>(
+                endpoints_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean());
         endpoints_ = null;
       }
       return endpointsBuilder_;
     }
 
-    private Control control_;
+    private com.google.api.Control control_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        Control, Control.Builder, com.google.api.ControlOrBuilder> controlBuilder_;
+            com.google.api.Control, com.google.api.Control.Builder, com.google.api.ControlOrBuilder>
+        controlBuilder_;
     /**
+     *
+     *
      * 
      * Configuration for the service control plane.
      * 
* * .google.api.Control control = 21; + * + * @return Whether the control field is set. */ public boolean hasControl() { return controlBuilder_ != null || control_ != null; } /** + * + * *
      * Configuration for the service control plane.
      * 
* * .google.api.Control control = 21; + * + * @return The control. */ - public Control getControl() { + public com.google.api.Control getControl() { if (controlBuilder_ == null) { - return control_ == null ? Control.getDefaultInstance() : control_; + return control_ == null ? com.google.api.Control.getDefaultInstance() : control_; } else { return controlBuilder_.getMessage(); } } /** + * + * *
      * Configuration for the service control plane.
      * 
* * .google.api.Control control = 21; */ - public Builder setControl(Control value) { + public Builder setControl(com.google.api.Control value) { if (controlBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5944,14 +6580,15 @@ public Builder setControl(Control value) { return this; } /** + * + * *
      * Configuration for the service control plane.
      * 
* * .google.api.Control control = 21; */ - public Builder setControl( - Control.Builder builderForValue) { + public Builder setControl(com.google.api.Control.Builder builderForValue) { if (controlBuilder_ == null) { control_ = builderForValue.build(); onChanged(); @@ -5962,17 +6599,18 @@ public Builder setControl( return this; } /** + * + * *
      * Configuration for the service control plane.
      * 
* * .google.api.Control control = 21; */ - public Builder mergeControl(Control value) { + public Builder mergeControl(com.google.api.Control value) { if (controlBuilder_ == null) { if (control_ != null) { - control_ = - Control.newBuilder(control_).mergeFrom(value).buildPartial(); + control_ = com.google.api.Control.newBuilder(control_).mergeFrom(value).buildPartial(); } else { control_ = value; } @@ -5984,6 +6622,8 @@ public Builder mergeControl(Control value) { return this; } /** + * + * *
      * Configuration for the service control plane.
      * 
@@ -6002,18 +6642,22 @@ public Builder clearControl() { return this; } /** + * + * *
      * Configuration for the service control plane.
      * 
* * .google.api.Control control = 21; */ - public Control.Builder getControlBuilder() { - + public com.google.api.Control.Builder getControlBuilder() { + onChanged(); return getControlFieldBuilder().getBuilder(); } /** + * + * *
      * Configuration for the service control plane.
      * 
@@ -6024,11 +6668,12 @@ public com.google.api.ControlOrBuilder getControlOrBuilder() { if (controlBuilder_ != null) { return controlBuilder_.getMessageOrBuilder(); } else { - return control_ == null ? - Control.getDefaultInstance() : control_; + return control_ == null ? com.google.api.Control.getDefaultInstance() : control_; } } /** + * + * *
      * Configuration for the service control plane.
      * 
@@ -6036,32 +6681,37 @@ public com.google.api.ControlOrBuilder getControlOrBuilder() { * .google.api.Control control = 21; */ private com.google.protobuf.SingleFieldBuilderV3< - Control, Control.Builder, com.google.api.ControlOrBuilder> + com.google.api.Control, com.google.api.Control.Builder, com.google.api.ControlOrBuilder> getControlFieldBuilder() { if (controlBuilder_ == null) { - controlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - Control, Control.Builder, com.google.api.ControlOrBuilder>( - getControl(), - getParentForChildren(), - isClean()); + controlBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.Control, + com.google.api.Control.Builder, + com.google.api.ControlOrBuilder>(getControl(), getParentForChildren(), isClean()); control_ = null; } return controlBuilder_; } - private java.util.List logs_ = - java.util.Collections.emptyList(); + private java.util.List logs_ = java.util.Collections.emptyList(); + private void ensureLogsIsMutable() { - if (!((bitField0_ & 0x00020000) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { logs_ = new java.util.ArrayList(logs_); - bitField0_ |= 0x00020000; - } + bitField0_ |= 0x00000010; + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.LogDescriptor, com.google.api.LogDescriptor.Builder, com.google.api.LogDescriptorOrBuilder> logsBuilder_; + com.google.api.LogDescriptor, + com.google.api.LogDescriptor.Builder, + com.google.api.LogDescriptorOrBuilder> + logsBuilder_; /** + * + * *
      * Defines the logs used by this service.
      * 
@@ -6076,6 +6726,8 @@ public java.util.List getLogsList() { } } /** + * + * *
      * Defines the logs used by this service.
      * 
@@ -6090,6 +6742,8 @@ public int getLogsCount() { } } /** + * + * *
      * Defines the logs used by this service.
      * 
@@ -6104,14 +6758,15 @@ public com.google.api.LogDescriptor getLogs(int index) { } } /** + * + * *
      * Defines the logs used by this service.
      * 
* * repeated .google.api.LogDescriptor logs = 23; */ - public Builder setLogs( - int index, com.google.api.LogDescriptor value) { + public Builder setLogs(int index, com.google.api.LogDescriptor value) { if (logsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6125,14 +6780,15 @@ public Builder setLogs( return this; } /** + * + * *
      * Defines the logs used by this service.
      * 
* * repeated .google.api.LogDescriptor logs = 23; */ - public Builder setLogs( - int index, com.google.api.LogDescriptor.Builder builderForValue) { + public Builder setLogs(int index, com.google.api.LogDescriptor.Builder builderForValue) { if (logsBuilder_ == null) { ensureLogsIsMutable(); logs_.set(index, builderForValue.build()); @@ -6143,6 +6799,8 @@ public Builder setLogs( return this; } /** + * + * *
      * Defines the logs used by this service.
      * 
@@ -6163,14 +6821,15 @@ public Builder addLogs(com.google.api.LogDescriptor value) { return this; } /** + * + * *
      * Defines the logs used by this service.
      * 
* * repeated .google.api.LogDescriptor logs = 23; */ - public Builder addLogs( - int index, com.google.api.LogDescriptor value) { + public Builder addLogs(int index, com.google.api.LogDescriptor value) { if (logsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6184,14 +6843,15 @@ public Builder addLogs( return this; } /** + * + * *
      * Defines the logs used by this service.
      * 
* * repeated .google.api.LogDescriptor logs = 23; */ - public Builder addLogs( - com.google.api.LogDescriptor.Builder builderForValue) { + public Builder addLogs(com.google.api.LogDescriptor.Builder builderForValue) { if (logsBuilder_ == null) { ensureLogsIsMutable(); logs_.add(builderForValue.build()); @@ -6202,14 +6862,15 @@ public Builder addLogs( return this; } /** + * + * *
      * Defines the logs used by this service.
      * 
* * repeated .google.api.LogDescriptor logs = 23; */ - public Builder addLogs( - int index, com.google.api.LogDescriptor.Builder builderForValue) { + public Builder addLogs(int index, com.google.api.LogDescriptor.Builder builderForValue) { if (logsBuilder_ == null) { ensureLogsIsMutable(); logs_.add(index, builderForValue.build()); @@ -6220,18 +6881,18 @@ public Builder addLogs( return this; } /** + * + * *
      * Defines the logs used by this service.
      * 
* * repeated .google.api.LogDescriptor logs = 23; */ - public Builder addAllLogs( - Iterable values) { + public Builder addAllLogs(java.lang.Iterable values) { if (logsBuilder_ == null) { ensureLogsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logs_); onChanged(); } else { logsBuilder_.addAllMessages(values); @@ -6239,6 +6900,8 @@ public Builder addAllLogs( return this; } /** + * + * *
      * Defines the logs used by this service.
      * 
@@ -6248,7 +6911,7 @@ public Builder addAllLogs( public Builder clearLogs() { if (logsBuilder_ == null) { logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { logsBuilder_.clear(); @@ -6256,6 +6919,8 @@ public Builder clearLogs() { return this; } /** + * + * *
      * Defines the logs used by this service.
      * 
@@ -6273,39 +6938,43 @@ public Builder removeLogs(int index) { return this; } /** + * + * *
      * Defines the logs used by this service.
      * 
* * repeated .google.api.LogDescriptor logs = 23; */ - public com.google.api.LogDescriptor.Builder getLogsBuilder( - int index) { + public com.google.api.LogDescriptor.Builder getLogsBuilder(int index) { return getLogsFieldBuilder().getBuilder(index); } /** + * + * *
      * Defines the logs used by this service.
      * 
* * repeated .google.api.LogDescriptor logs = 23; */ - public com.google.api.LogDescriptorOrBuilder getLogsOrBuilder( - int index) { + public com.google.api.LogDescriptorOrBuilder getLogsOrBuilder(int index) { if (logsBuilder_ == null) { - return logs_.get(index); } else { + return logs_.get(index); + } else { return logsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Defines the logs used by this service.
      * 
* * repeated .google.api.LogDescriptor logs = 23; */ - public java.util.List - getLogsOrBuilderList() { + public java.util.List getLogsOrBuilderList() { if (logsBuilder_ != null) { return logsBuilder_.getMessageOrBuilderList(); } else { @@ -6313,6 +6982,8 @@ public com.google.api.LogDescriptorOrBuilder getLogsOrBuilder( } } /** + * + * *
      * Defines the logs used by this service.
      * 
@@ -6320,60 +6991,70 @@ public com.google.api.LogDescriptorOrBuilder getLogsOrBuilder( * repeated .google.api.LogDescriptor logs = 23; */ public com.google.api.LogDescriptor.Builder addLogsBuilder() { - return getLogsFieldBuilder().addBuilder( - com.google.api.LogDescriptor.getDefaultInstance()); + return getLogsFieldBuilder().addBuilder(com.google.api.LogDescriptor.getDefaultInstance()); } /** + * + * *
      * Defines the logs used by this service.
      * 
* * repeated .google.api.LogDescriptor logs = 23; */ - public com.google.api.LogDescriptor.Builder addLogsBuilder( - int index) { - return getLogsFieldBuilder().addBuilder( - index, com.google.api.LogDescriptor.getDefaultInstance()); + public com.google.api.LogDescriptor.Builder addLogsBuilder(int index) { + return getLogsFieldBuilder() + .addBuilder(index, com.google.api.LogDescriptor.getDefaultInstance()); } /** + * + * *
      * Defines the logs used by this service.
      * 
* * repeated .google.api.LogDescriptor logs = 23; */ - public java.util.List - getLogsBuilderList() { + public java.util.List getLogsBuilderList() { return getLogsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.LogDescriptor, com.google.api.LogDescriptor.Builder, com.google.api.LogDescriptorOrBuilder> + com.google.api.LogDescriptor, + com.google.api.LogDescriptor.Builder, + com.google.api.LogDescriptorOrBuilder> getLogsFieldBuilder() { if (logsBuilder_ == null) { - logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.LogDescriptor, com.google.api.LogDescriptor.Builder, com.google.api.LogDescriptorOrBuilder>( - logs_, - ((bitField0_ & 0x00020000) != 0), - getParentForChildren(), - isClean()); + logsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.api.LogDescriptor, + com.google.api.LogDescriptor.Builder, + com.google.api.LogDescriptorOrBuilder>( + logs_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); logs_ = null; } return logsBuilder_; } private java.util.List metrics_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMetricsIsMutable() { - if (!((bitField0_ & 0x00040000) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { metrics_ = new java.util.ArrayList(metrics_); - bitField0_ |= 0x00040000; - } + bitField0_ |= 0x00000020; + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.MetricDescriptor, com.google.api.MetricDescriptor.Builder, com.google.api.MetricDescriptorOrBuilder> metricsBuilder_; + com.google.api.MetricDescriptor, + com.google.api.MetricDescriptor.Builder, + com.google.api.MetricDescriptorOrBuilder> + metricsBuilder_; /** + * + * *
      * Defines the metrics used by this service.
      * 
@@ -6388,6 +7069,8 @@ public java.util.List getMetricsList() { } } /** + * + * *
      * Defines the metrics used by this service.
      * 
@@ -6402,6 +7085,8 @@ public int getMetricsCount() { } } /** + * + * *
      * Defines the metrics used by this service.
      * 
@@ -6416,14 +7101,15 @@ public com.google.api.MetricDescriptor getMetrics(int index) { } } /** + * + * *
      * Defines the metrics used by this service.
      * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ - public Builder setMetrics( - int index, com.google.api.MetricDescriptor value) { + public Builder setMetrics(int index, com.google.api.MetricDescriptor value) { if (metricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6437,14 +7123,15 @@ public Builder setMetrics( return this; } /** + * + * *
      * Defines the metrics used by this service.
      * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ - public Builder setMetrics( - int index, com.google.api.MetricDescriptor.Builder builderForValue) { + public Builder setMetrics(int index, com.google.api.MetricDescriptor.Builder builderForValue) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.set(index, builderForValue.build()); @@ -6455,6 +7142,8 @@ public Builder setMetrics( return this; } /** + * + * *
      * Defines the metrics used by this service.
      * 
@@ -6475,14 +7164,15 @@ public Builder addMetrics(com.google.api.MetricDescriptor value) { return this; } /** + * + * *
      * Defines the metrics used by this service.
      * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ - public Builder addMetrics( - int index, com.google.api.MetricDescriptor value) { + public Builder addMetrics(int index, com.google.api.MetricDescriptor value) { if (metricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6496,14 +7186,15 @@ public Builder addMetrics( return this; } /** + * + * *
      * Defines the metrics used by this service.
      * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ - public Builder addMetrics( - com.google.api.MetricDescriptor.Builder builderForValue) { + public Builder addMetrics(com.google.api.MetricDescriptor.Builder builderForValue) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.add(builderForValue.build()); @@ -6514,14 +7205,15 @@ public Builder addMetrics( return this; } /** + * + * *
      * Defines the metrics used by this service.
      * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ - public Builder addMetrics( - int index, com.google.api.MetricDescriptor.Builder builderForValue) { + public Builder addMetrics(int index, com.google.api.MetricDescriptor.Builder builderForValue) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.add(index, builderForValue.build()); @@ -6532,6 +7224,8 @@ public Builder addMetrics( return this; } /** + * + * *
      * Defines the metrics used by this service.
      * 
@@ -6539,11 +7233,10 @@ public Builder addMetrics( * repeated .google.api.MetricDescriptor metrics = 24; */ public Builder addAllMetrics( - Iterable values) { + java.lang.Iterable values) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, metrics_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); onChanged(); } else { metricsBuilder_.addAllMessages(values); @@ -6551,6 +7244,8 @@ public Builder addAllMetrics( return this; } /** + * + * *
      * Defines the metrics used by this service.
      * 
@@ -6560,7 +7255,7 @@ public Builder addAllMetrics( public Builder clearMetrics() { if (metricsBuilder_ == null) { metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { metricsBuilder_.clear(); @@ -6568,6 +7263,8 @@ public Builder clearMetrics() { return this; } /** + * + * *
      * Defines the metrics used by this service.
      * 
@@ -6585,39 +7282,44 @@ public Builder removeMetrics(int index) { return this; } /** + * + * *
      * Defines the metrics used by this service.
      * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ - public com.google.api.MetricDescriptor.Builder getMetricsBuilder( - int index) { + public com.google.api.MetricDescriptor.Builder getMetricsBuilder(int index) { return getMetricsFieldBuilder().getBuilder(index); } /** + * + * *
      * Defines the metrics used by this service.
      * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ - public com.google.api.MetricDescriptorOrBuilder getMetricsOrBuilder( - int index) { + public com.google.api.MetricDescriptorOrBuilder getMetricsOrBuilder(int index) { if (metricsBuilder_ == null) { - return metrics_.get(index); } else { + return metrics_.get(index); + } else { return metricsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Defines the metrics used by this service.
      * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ - public java.util.List - getMetricsOrBuilderList() { + public java.util.List + getMetricsOrBuilderList() { if (metricsBuilder_ != null) { return metricsBuilder_.getMessageOrBuilderList(); } else { @@ -6625,6 +7327,8 @@ public com.google.api.MetricDescriptorOrBuilder getMetricsOrBuilder( } } /** + * + * *
      * Defines the metrics used by this service.
      * 
@@ -6632,60 +7336,73 @@ public com.google.api.MetricDescriptorOrBuilder getMetricsOrBuilder( * repeated .google.api.MetricDescriptor metrics = 24; */ public com.google.api.MetricDescriptor.Builder addMetricsBuilder() { - return getMetricsFieldBuilder().addBuilder( - com.google.api.MetricDescriptor.getDefaultInstance()); + return getMetricsFieldBuilder() + .addBuilder(com.google.api.MetricDescriptor.getDefaultInstance()); } /** + * + * *
      * Defines the metrics used by this service.
      * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ - public com.google.api.MetricDescriptor.Builder addMetricsBuilder( - int index) { - return getMetricsFieldBuilder().addBuilder( - index, com.google.api.MetricDescriptor.getDefaultInstance()); + public com.google.api.MetricDescriptor.Builder addMetricsBuilder(int index) { + return getMetricsFieldBuilder() + .addBuilder(index, com.google.api.MetricDescriptor.getDefaultInstance()); } /** + * + * *
      * Defines the metrics used by this service.
      * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ - public java.util.List - getMetricsBuilderList() { + public java.util.List getMetricsBuilderList() { return getMetricsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.MetricDescriptor, com.google.api.MetricDescriptor.Builder, com.google.api.MetricDescriptorOrBuilder> + com.google.api.MetricDescriptor, + com.google.api.MetricDescriptor.Builder, + com.google.api.MetricDescriptorOrBuilder> getMetricsFieldBuilder() { if (metricsBuilder_ == null) { - metricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.MetricDescriptor, com.google.api.MetricDescriptor.Builder, com.google.api.MetricDescriptorOrBuilder>( - metrics_, - ((bitField0_ & 0x00040000) != 0), - getParentForChildren(), - isClean()); + metricsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.api.MetricDescriptor, + com.google.api.MetricDescriptor.Builder, + com.google.api.MetricDescriptorOrBuilder>( + metrics_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); metrics_ = null; } return metricsBuilder_; } private java.util.List monitoredResources_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMonitoredResourcesIsMutable() { - if (!((bitField0_ & 0x00080000) != 0)) { - monitoredResources_ = new java.util.ArrayList(monitoredResources_); - bitField0_ |= 0x00080000; - } + if (!((bitField0_ & 0x00000040) != 0)) { + monitoredResources_ = + new java.util.ArrayList( + monitoredResources_); + bitField0_ |= 0x00000040; + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.MonitoredResourceDescriptor, com.google.api.MonitoredResourceDescriptor.Builder, com.google.api.MonitoredResourceDescriptorOrBuilder> monitoredResourcesBuilder_; + com.google.api.MonitoredResourceDescriptor, + com.google.api.MonitoredResourceDescriptor.Builder, + com.google.api.MonitoredResourceDescriptorOrBuilder> + monitoredResourcesBuilder_; /** + * + * *
      * Defines the monitored resources used by this service. This is required
      * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
@@ -6701,6 +7418,8 @@ public java.util.List getMonitoredRe
       }
     }
     /**
+     *
+     *
      * 
      * Defines the monitored resources used by this service. This is required
      * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
@@ -6716,6 +7435,8 @@ public int getMonitoredResourcesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Defines the monitored resources used by this service. This is required
      * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
@@ -6731,6 +7452,8 @@ public com.google.api.MonitoredResourceDescriptor getMonitoredResources(int inde
       }
     }
     /**
+     *
+     *
      * 
      * Defines the monitored resources used by this service. This is required
      * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
@@ -6753,6 +7476,8 @@ public Builder setMonitoredResources(
       return this;
     }
     /**
+     *
+     *
      * 
      * Defines the monitored resources used by this service. This is required
      * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
@@ -6772,6 +7497,8 @@ public Builder setMonitoredResources(
       return this;
     }
     /**
+     *
+     *
      * 
      * Defines the monitored resources used by this service. This is required
      * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
@@ -6793,6 +7520,8 @@ public Builder addMonitoredResources(com.google.api.MonitoredResourceDescriptor
       return this;
     }
     /**
+     *
+     *
      * 
      * Defines the monitored resources used by this service. This is required
      * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
@@ -6815,6 +7544,8 @@ public Builder addMonitoredResources(
       return this;
     }
     /**
+     *
+     *
      * 
      * Defines the monitored resources used by this service. This is required
      * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
@@ -6834,6 +7565,8 @@ public Builder addMonitoredResources(
       return this;
     }
     /**
+     *
+     *
      * 
      * Defines the monitored resources used by this service. This is required
      * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
@@ -6853,6 +7586,8 @@ public Builder addMonitoredResources(
       return this;
     }
     /**
+     *
+     *
      * 
      * Defines the monitored resources used by this service. This is required
      * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
@@ -6861,11 +7596,10 @@ public Builder addMonitoredResources(
      * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
      */
     public Builder addAllMonitoredResources(
-        Iterable values) {
+        java.lang.Iterable values) {
       if (monitoredResourcesBuilder_ == null) {
         ensureMonitoredResourcesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, monitoredResources_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, monitoredResources_);
         onChanged();
       } else {
         monitoredResourcesBuilder_.addAllMessages(values);
@@ -6873,6 +7607,8 @@ public Builder addAllMonitoredResources(
       return this;
     }
     /**
+     *
+     *
      * 
      * Defines the monitored resources used by this service. This is required
      * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
@@ -6883,7 +7619,7 @@ public Builder addAllMonitoredResources(
     public Builder clearMonitoredResources() {
       if (monitoredResourcesBuilder_ == null) {
         monitoredResources_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00080000);
+        bitField0_ = (bitField0_ & ~0x00000040);
         onChanged();
       } else {
         monitoredResourcesBuilder_.clear();
@@ -6891,6 +7627,8 @@ public Builder clearMonitoredResources() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Defines the monitored resources used by this service. This is required
      * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
@@ -6909,6 +7647,8 @@ public Builder removeMonitoredResources(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Defines the monitored resources used by this service. This is required
      * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
@@ -6921,6 +7661,8 @@ public com.google.api.MonitoredResourceDescriptor.Builder getMonitoredResourcesB
       return getMonitoredResourcesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Defines the monitored resources used by this service. This is required
      * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
@@ -6931,11 +7673,14 @@ public com.google.api.MonitoredResourceDescriptor.Builder getMonitoredResourcesB
     public com.google.api.MonitoredResourceDescriptorOrBuilder getMonitoredResourcesOrBuilder(
         int index) {
       if (monitoredResourcesBuilder_ == null) {
-        return monitoredResources_.get(index);  } else {
+        return monitoredResources_.get(index);
+      } else {
         return monitoredResourcesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Defines the monitored resources used by this service. This is required
      * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
@@ -6943,8 +7688,8 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getMonitoredResources
      *
      * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
      */
-    public java.util.List 
-         getMonitoredResourcesOrBuilderList() {
+    public java.util.List
+        getMonitoredResourcesOrBuilderList() {
       if (monitoredResourcesBuilder_ != null) {
         return monitoredResourcesBuilder_.getMessageOrBuilderList();
       } else {
@@ -6952,6 +7697,8 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getMonitoredResources
       }
     }
     /**
+     *
+     *
      * 
      * Defines the monitored resources used by this service. This is required
      * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
@@ -6960,10 +7707,12 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getMonitoredResources
      * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
      */
     public com.google.api.MonitoredResourceDescriptor.Builder addMonitoredResourcesBuilder() {
-      return getMonitoredResourcesFieldBuilder().addBuilder(
-          com.google.api.MonitoredResourceDescriptor.getDefaultInstance());
+      return getMonitoredResourcesFieldBuilder()
+          .addBuilder(com.google.api.MonitoredResourceDescriptor.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Defines the monitored resources used by this service. This is required
      * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
@@ -6973,10 +7722,12 @@ public com.google.api.MonitoredResourceDescriptor.Builder addMonitoredResourcesB
      */
     public com.google.api.MonitoredResourceDescriptor.Builder addMonitoredResourcesBuilder(
         int index) {
-      return getMonitoredResourcesFieldBuilder().addBuilder(
-          index, com.google.api.MonitoredResourceDescriptor.getDefaultInstance());
+      return getMonitoredResourcesFieldBuilder()
+          .addBuilder(index, com.google.api.MonitoredResourceDescriptor.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Defines the monitored resources used by this service. This is required
      * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
@@ -6984,18 +7735,24 @@ public com.google.api.MonitoredResourceDescriptor.Builder addMonitoredResourcesB
      *
      * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
      */
-    public java.util.List 
-         getMonitoredResourcesBuilderList() {
+    public java.util.List
+        getMonitoredResourcesBuilderList() {
       return getMonitoredResourcesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.api.MonitoredResourceDescriptor, com.google.api.MonitoredResourceDescriptor.Builder, com.google.api.MonitoredResourceDescriptorOrBuilder> 
+            com.google.api.MonitoredResourceDescriptor,
+            com.google.api.MonitoredResourceDescriptor.Builder,
+            com.google.api.MonitoredResourceDescriptorOrBuilder>
         getMonitoredResourcesFieldBuilder() {
       if (monitoredResourcesBuilder_ == null) {
-        monitoredResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.api.MonitoredResourceDescriptor, com.google.api.MonitoredResourceDescriptor.Builder, com.google.api.MonitoredResourceDescriptorOrBuilder>(
+        monitoredResourcesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.api.MonitoredResourceDescriptor,
+                com.google.api.MonitoredResourceDescriptor.Builder,
+                com.google.api.MonitoredResourceDescriptorOrBuilder>(
                 monitoredResources_,
-                ((bitField0_ & 0x00080000) != 0),
+                ((bitField0_ & 0x00000040) != 0),
                 getParentForChildren(),
                 isClean());
         monitoredResources_ = null;
@@ -7003,41 +7760,52 @@ public com.google.api.MonitoredResourceDescriptor.Builder addMonitoredResourcesB
       return monitoredResourcesBuilder_;
     }
 
-    private Billing billing_;
+    private com.google.api.Billing billing_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        Billing, Billing.Builder, com.google.api.BillingOrBuilder> billingBuilder_;
+            com.google.api.Billing, com.google.api.Billing.Builder, com.google.api.BillingOrBuilder>
+        billingBuilder_;
     /**
+     *
+     *
      * 
      * Billing configuration.
      * 
* * .google.api.Billing billing = 26; + * + * @return Whether the billing field is set. */ public boolean hasBilling() { return billingBuilder_ != null || billing_ != null; } /** + * + * *
      * Billing configuration.
      * 
* * .google.api.Billing billing = 26; + * + * @return The billing. */ - public Billing getBilling() { + public com.google.api.Billing getBilling() { if (billingBuilder_ == null) { - return billing_ == null ? Billing.getDefaultInstance() : billing_; + return billing_ == null ? com.google.api.Billing.getDefaultInstance() : billing_; } else { return billingBuilder_.getMessage(); } } /** + * + * *
      * Billing configuration.
      * 
* * .google.api.Billing billing = 26; */ - public Builder setBilling(Billing value) { + public Builder setBilling(com.google.api.Billing value) { if (billingBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7051,14 +7819,15 @@ public Builder setBilling(Billing value) { return this; } /** + * + * *
      * Billing configuration.
      * 
* * .google.api.Billing billing = 26; */ - public Builder setBilling( - Billing.Builder builderForValue) { + public Builder setBilling(com.google.api.Billing.Builder builderForValue) { if (billingBuilder_ == null) { billing_ = builderForValue.build(); onChanged(); @@ -7069,17 +7838,18 @@ public Builder setBilling( return this; } /** + * + * *
      * Billing configuration.
      * 
* * .google.api.Billing billing = 26; */ - public Builder mergeBilling(Billing value) { + public Builder mergeBilling(com.google.api.Billing value) { if (billingBuilder_ == null) { if (billing_ != null) { - billing_ = - Billing.newBuilder(billing_).mergeFrom(value).buildPartial(); + billing_ = com.google.api.Billing.newBuilder(billing_).mergeFrom(value).buildPartial(); } else { billing_ = value; } @@ -7091,6 +7861,8 @@ public Builder mergeBilling(Billing value) { return this; } /** + * + * *
      * Billing configuration.
      * 
@@ -7109,18 +7881,22 @@ public Builder clearBilling() { return this; } /** + * + * *
      * Billing configuration.
      * 
* * .google.api.Billing billing = 26; */ - public Billing.Builder getBillingBuilder() { - + public com.google.api.Billing.Builder getBillingBuilder() { + onChanged(); return getBillingFieldBuilder().getBuilder(); } /** + * + * *
      * Billing configuration.
      * 
@@ -7131,11 +7907,12 @@ public com.google.api.BillingOrBuilder getBillingOrBuilder() { if (billingBuilder_ != null) { return billingBuilder_.getMessageOrBuilder(); } else { - return billing_ == null ? - Billing.getDefaultInstance() : billing_; + return billing_ == null ? com.google.api.Billing.getDefaultInstance() : billing_; } } /** + * + * *
      * Billing configuration.
      * 
@@ -7143,54 +7920,65 @@ public com.google.api.BillingOrBuilder getBillingOrBuilder() { * .google.api.Billing billing = 26; */ private com.google.protobuf.SingleFieldBuilderV3< - Billing, Billing.Builder, com.google.api.BillingOrBuilder> + com.google.api.Billing, com.google.api.Billing.Builder, com.google.api.BillingOrBuilder> getBillingFieldBuilder() { if (billingBuilder_ == null) { - billingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - Billing, Billing.Builder, com.google.api.BillingOrBuilder>( - getBilling(), - getParentForChildren(), - isClean()); + billingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.Billing, + com.google.api.Billing.Builder, + com.google.api.BillingOrBuilder>(getBilling(), getParentForChildren(), isClean()); billing_ = null; } return billingBuilder_; } - private Logging logging_; + private com.google.api.Logging logging_; private com.google.protobuf.SingleFieldBuilderV3< - Logging, Logging.Builder, com.google.api.LoggingOrBuilder> loggingBuilder_; + com.google.api.Logging, com.google.api.Logging.Builder, com.google.api.LoggingOrBuilder> + loggingBuilder_; /** + * + * *
      * Logging configuration.
      * 
* * .google.api.Logging logging = 27; + * + * @return Whether the logging field is set. */ public boolean hasLogging() { return loggingBuilder_ != null || logging_ != null; } /** + * + * *
      * Logging configuration.
      * 
* * .google.api.Logging logging = 27; + * + * @return The logging. */ - public Logging getLogging() { + public com.google.api.Logging getLogging() { if (loggingBuilder_ == null) { - return logging_ == null ? Logging.getDefaultInstance() : logging_; + return logging_ == null ? com.google.api.Logging.getDefaultInstance() : logging_; } else { return loggingBuilder_.getMessage(); } } /** + * + * *
      * Logging configuration.
      * 
* * .google.api.Logging logging = 27; */ - public Builder setLogging(Logging value) { + public Builder setLogging(com.google.api.Logging value) { if (loggingBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7204,14 +7992,15 @@ public Builder setLogging(Logging value) { return this; } /** + * + * *
      * Logging configuration.
      * 
* * .google.api.Logging logging = 27; */ - public Builder setLogging( - Logging.Builder builderForValue) { + public Builder setLogging(com.google.api.Logging.Builder builderForValue) { if (loggingBuilder_ == null) { logging_ = builderForValue.build(); onChanged(); @@ -7222,17 +8011,18 @@ public Builder setLogging( return this; } /** + * + * *
      * Logging configuration.
      * 
* * .google.api.Logging logging = 27; */ - public Builder mergeLogging(Logging value) { + public Builder mergeLogging(com.google.api.Logging value) { if (loggingBuilder_ == null) { if (logging_ != null) { - logging_ = - Logging.newBuilder(logging_).mergeFrom(value).buildPartial(); + logging_ = com.google.api.Logging.newBuilder(logging_).mergeFrom(value).buildPartial(); } else { logging_ = value; } @@ -7244,6 +8034,8 @@ public Builder mergeLogging(Logging value) { return this; } /** + * + * *
      * Logging configuration.
      * 
@@ -7262,18 +8054,22 @@ public Builder clearLogging() { return this; } /** + * + * *
      * Logging configuration.
      * 
* * .google.api.Logging logging = 27; */ - public Logging.Builder getLoggingBuilder() { - + public com.google.api.Logging.Builder getLoggingBuilder() { + onChanged(); return getLoggingFieldBuilder().getBuilder(); } /** + * + * *
      * Logging configuration.
      * 
@@ -7284,11 +8080,12 @@ public com.google.api.LoggingOrBuilder getLoggingOrBuilder() { if (loggingBuilder_ != null) { return loggingBuilder_.getMessageOrBuilder(); } else { - return logging_ == null ? - Logging.getDefaultInstance() : logging_; + return logging_ == null ? com.google.api.Logging.getDefaultInstance() : logging_; } } /** + * + * *
      * Logging configuration.
      * 
@@ -7296,14 +8093,14 @@ public com.google.api.LoggingOrBuilder getLoggingOrBuilder() { * .google.api.Logging logging = 27; */ private com.google.protobuf.SingleFieldBuilderV3< - Logging, Logging.Builder, com.google.api.LoggingOrBuilder> + com.google.api.Logging, com.google.api.Logging.Builder, com.google.api.LoggingOrBuilder> getLoggingFieldBuilder() { if (loggingBuilder_ == null) { - loggingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - Logging, Logging.Builder, com.google.api.LoggingOrBuilder>( - getLogging(), - getParentForChildren(), - isClean()); + loggingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.Logging, + com.google.api.Logging.Builder, + com.google.api.LoggingOrBuilder>(getLogging(), getParentForChildren(), isClean()); logging_ = null; } return loggingBuilder_; @@ -7311,23 +8108,34 @@ public com.google.api.LoggingOrBuilder getLoggingOrBuilder() { private com.google.api.Monitoring monitoring_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.Monitoring, com.google.api.Monitoring.Builder, com.google.api.MonitoringOrBuilder> monitoringBuilder_; + com.google.api.Monitoring, + com.google.api.Monitoring.Builder, + com.google.api.MonitoringOrBuilder> + monitoringBuilder_; /** + * + * *
      * Monitoring configuration.
      * 
* * .google.api.Monitoring monitoring = 28; + * + * @return Whether the monitoring field is set. */ public boolean hasMonitoring() { return monitoringBuilder_ != null || monitoring_ != null; } /** + * + * *
      * Monitoring configuration.
      * 
* * .google.api.Monitoring monitoring = 28; + * + * @return The monitoring. */ public com.google.api.Monitoring getMonitoring() { if (monitoringBuilder_ == null) { @@ -7337,6 +8145,8 @@ public com.google.api.Monitoring getMonitoring() { } } /** + * + * *
      * Monitoring configuration.
      * 
@@ -7357,14 +8167,15 @@ public Builder setMonitoring(com.google.api.Monitoring value) { return this; } /** + * + * *
      * Monitoring configuration.
      * 
* * .google.api.Monitoring monitoring = 28; */ - public Builder setMonitoring( - com.google.api.Monitoring.Builder builderForValue) { + public Builder setMonitoring(com.google.api.Monitoring.Builder builderForValue) { if (monitoringBuilder_ == null) { monitoring_ = builderForValue.build(); onChanged(); @@ -7375,6 +8186,8 @@ public Builder setMonitoring( return this; } /** + * + * *
      * Monitoring configuration.
      * 
@@ -7385,7 +8198,7 @@ public Builder mergeMonitoring(com.google.api.Monitoring value) { if (monitoringBuilder_ == null) { if (monitoring_ != null) { monitoring_ = - com.google.api.Monitoring.newBuilder(monitoring_).mergeFrom(value).buildPartial(); + com.google.api.Monitoring.newBuilder(monitoring_).mergeFrom(value).buildPartial(); } else { monitoring_ = value; } @@ -7397,6 +8210,8 @@ public Builder mergeMonitoring(com.google.api.Monitoring value) { return this; } /** + * + * *
      * Monitoring configuration.
      * 
@@ -7415,6 +8230,8 @@ public Builder clearMonitoring() { return this; } /** + * + * *
      * Monitoring configuration.
      * 
@@ -7422,11 +8239,13 @@ public Builder clearMonitoring() { * .google.api.Monitoring monitoring = 28; */ public com.google.api.Monitoring.Builder getMonitoringBuilder() { - + onChanged(); return getMonitoringFieldBuilder().getBuilder(); } /** + * + * *
      * Monitoring configuration.
      * 
@@ -7437,11 +8256,12 @@ public com.google.api.MonitoringOrBuilder getMonitoringOrBuilder() { if (monitoringBuilder_ != null) { return monitoringBuilder_.getMessageOrBuilder(); } else { - return monitoring_ == null ? - com.google.api.Monitoring.getDefaultInstance() : monitoring_; + return monitoring_ == null ? com.google.api.Monitoring.getDefaultInstance() : monitoring_; } } /** + * + * *
      * Monitoring configuration.
      * 
@@ -7449,14 +8269,17 @@ public com.google.api.MonitoringOrBuilder getMonitoringOrBuilder() { * .google.api.Monitoring monitoring = 28; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.Monitoring, com.google.api.Monitoring.Builder, com.google.api.MonitoringOrBuilder> + com.google.api.Monitoring, + com.google.api.Monitoring.Builder, + com.google.api.MonitoringOrBuilder> getMonitoringFieldBuilder() { if (monitoringBuilder_ == null) { - monitoringBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.api.Monitoring, com.google.api.Monitoring.Builder, com.google.api.MonitoringOrBuilder>( - getMonitoring(), - getParentForChildren(), - isClean()); + monitoringBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.Monitoring, + com.google.api.Monitoring.Builder, + com.google.api.MonitoringOrBuilder>( + getMonitoring(), getParentForChildren(), isClean()); monitoring_ = null; } return monitoringBuilder_; @@ -7464,32 +8287,47 @@ public com.google.api.MonitoringOrBuilder getMonitoringOrBuilder() { private com.google.api.SystemParameters systemParameters_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.SystemParameters, com.google.api.SystemParameters.Builder, com.google.api.SystemParametersOrBuilder> systemParametersBuilder_; + com.google.api.SystemParameters, + com.google.api.SystemParameters.Builder, + com.google.api.SystemParametersOrBuilder> + systemParametersBuilder_; /** + * + * *
      * System parameter configuration.
      * 
* * .google.api.SystemParameters system_parameters = 29; + * + * @return Whether the systemParameters field is set. */ public boolean hasSystemParameters() { return systemParametersBuilder_ != null || systemParameters_ != null; } /** + * + * *
      * System parameter configuration.
      * 
* * .google.api.SystemParameters system_parameters = 29; + * + * @return The systemParameters. */ public com.google.api.SystemParameters getSystemParameters() { if (systemParametersBuilder_ == null) { - return systemParameters_ == null ? com.google.api.SystemParameters.getDefaultInstance() : systemParameters_; + return systemParameters_ == null + ? com.google.api.SystemParameters.getDefaultInstance() + : systemParameters_; } else { return systemParametersBuilder_.getMessage(); } } /** + * + * *
      * System parameter configuration.
      * 
@@ -7510,14 +8348,15 @@ public Builder setSystemParameters(com.google.api.SystemParameters value) { return this; } /** + * + * *
      * System parameter configuration.
      * 
* * .google.api.SystemParameters system_parameters = 29; */ - public Builder setSystemParameters( - com.google.api.SystemParameters.Builder builderForValue) { + public Builder setSystemParameters(com.google.api.SystemParameters.Builder builderForValue) { if (systemParametersBuilder_ == null) { systemParameters_ = builderForValue.build(); onChanged(); @@ -7528,6 +8367,8 @@ public Builder setSystemParameters( return this; } /** + * + * *
      * System parameter configuration.
      * 
@@ -7538,7 +8379,9 @@ public Builder mergeSystemParameters(com.google.api.SystemParameters value) { if (systemParametersBuilder_ == null) { if (systemParameters_ != null) { systemParameters_ = - com.google.api.SystemParameters.newBuilder(systemParameters_).mergeFrom(value).buildPartial(); + com.google.api.SystemParameters.newBuilder(systemParameters_) + .mergeFrom(value) + .buildPartial(); } else { systemParameters_ = value; } @@ -7550,6 +8393,8 @@ public Builder mergeSystemParameters(com.google.api.SystemParameters value) { return this; } /** + * + * *
      * System parameter configuration.
      * 
@@ -7568,6 +8413,8 @@ public Builder clearSystemParameters() { return this; } /** + * + * *
      * System parameter configuration.
      * 
@@ -7575,11 +8422,13 @@ public Builder clearSystemParameters() { * .google.api.SystemParameters system_parameters = 29; */ public com.google.api.SystemParameters.Builder getSystemParametersBuilder() { - + onChanged(); return getSystemParametersFieldBuilder().getBuilder(); } /** + * + * *
      * System parameter configuration.
      * 
@@ -7590,11 +8439,14 @@ public com.google.api.SystemParametersOrBuilder getSystemParametersOrBuilder() { if (systemParametersBuilder_ != null) { return systemParametersBuilder_.getMessageOrBuilder(); } else { - return systemParameters_ == null ? - com.google.api.SystemParameters.getDefaultInstance() : systemParameters_; + return systemParameters_ == null + ? com.google.api.SystemParameters.getDefaultInstance() + : systemParameters_; } } /** + * + * *
      * System parameter configuration.
      * 
@@ -7602,14 +8454,17 @@ public com.google.api.SystemParametersOrBuilder getSystemParametersOrBuilder() { * .google.api.SystemParameters system_parameters = 29; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.SystemParameters, com.google.api.SystemParameters.Builder, com.google.api.SystemParametersOrBuilder> + com.google.api.SystemParameters, + com.google.api.SystemParameters.Builder, + com.google.api.SystemParametersOrBuilder> getSystemParametersFieldBuilder() { if (systemParametersBuilder_ == null) { - systemParametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.api.SystemParameters, com.google.api.SystemParameters.Builder, com.google.api.SystemParametersOrBuilder>( - getSystemParameters(), - getParentForChildren(), - isClean()); + systemParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.SystemParameters, + com.google.api.SystemParameters.Builder, + com.google.api.SystemParametersOrBuilder>( + getSystemParameters(), getParentForChildren(), isClean()); systemParameters_ = null; } return systemParametersBuilder_; @@ -7617,23 +8472,34 @@ public com.google.api.SystemParametersOrBuilder getSystemParametersOrBuilder() { private com.google.api.SourceInfo sourceInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.SourceInfo, com.google.api.SourceInfo.Builder, com.google.api.SourceInfoOrBuilder> sourceInfoBuilder_; + com.google.api.SourceInfo, + com.google.api.SourceInfo.Builder, + com.google.api.SourceInfoOrBuilder> + sourceInfoBuilder_; /** + * + * *
      * Output only. The source information for this configuration if available.
      * 
* * .google.api.SourceInfo source_info = 37; + * + * @return Whether the sourceInfo field is set. */ public boolean hasSourceInfo() { return sourceInfoBuilder_ != null || sourceInfo_ != null; } /** + * + * *
      * Output only. The source information for this configuration if available.
      * 
* * .google.api.SourceInfo source_info = 37; + * + * @return The sourceInfo. */ public com.google.api.SourceInfo getSourceInfo() { if (sourceInfoBuilder_ == null) { @@ -7643,6 +8509,8 @@ public com.google.api.SourceInfo getSourceInfo() { } } /** + * + * *
      * Output only. The source information for this configuration if available.
      * 
@@ -7663,14 +8531,15 @@ public Builder setSourceInfo(com.google.api.SourceInfo value) { return this; } /** + * + * *
      * Output only. The source information for this configuration if available.
      * 
* * .google.api.SourceInfo source_info = 37; */ - public Builder setSourceInfo( - com.google.api.SourceInfo.Builder builderForValue) { + public Builder setSourceInfo(com.google.api.SourceInfo.Builder builderForValue) { if (sourceInfoBuilder_ == null) { sourceInfo_ = builderForValue.build(); onChanged(); @@ -7681,6 +8550,8 @@ public Builder setSourceInfo( return this; } /** + * + * *
      * Output only. The source information for this configuration if available.
      * 
@@ -7691,7 +8562,7 @@ public Builder mergeSourceInfo(com.google.api.SourceInfo value) { if (sourceInfoBuilder_ == null) { if (sourceInfo_ != null) { sourceInfo_ = - com.google.api.SourceInfo.newBuilder(sourceInfo_).mergeFrom(value).buildPartial(); + com.google.api.SourceInfo.newBuilder(sourceInfo_).mergeFrom(value).buildPartial(); } else { sourceInfo_ = value; } @@ -7703,6 +8574,8 @@ public Builder mergeSourceInfo(com.google.api.SourceInfo value) { return this; } /** + * + * *
      * Output only. The source information for this configuration if available.
      * 
@@ -7721,6 +8594,8 @@ public Builder clearSourceInfo() { return this; } /** + * + * *
      * Output only. The source information for this configuration if available.
      * 
@@ -7728,11 +8603,13 @@ public Builder clearSourceInfo() { * .google.api.SourceInfo source_info = 37; */ public com.google.api.SourceInfo.Builder getSourceInfoBuilder() { - + onChanged(); return getSourceInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The source information for this configuration if available.
      * 
@@ -7743,11 +8620,12 @@ public com.google.api.SourceInfoOrBuilder getSourceInfoOrBuilder() { if (sourceInfoBuilder_ != null) { return sourceInfoBuilder_.getMessageOrBuilder(); } else { - return sourceInfo_ == null ? - com.google.api.SourceInfo.getDefaultInstance() : sourceInfo_; + return sourceInfo_ == null ? com.google.api.SourceInfo.getDefaultInstance() : sourceInfo_; } } /** + * + * *
      * Output only. The source information for this configuration if available.
      * 
@@ -7755,68 +8633,69 @@ public com.google.api.SourceInfoOrBuilder getSourceInfoOrBuilder() { * .google.api.SourceInfo source_info = 37; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.SourceInfo, com.google.api.SourceInfo.Builder, com.google.api.SourceInfoOrBuilder> + com.google.api.SourceInfo, + com.google.api.SourceInfo.Builder, + com.google.api.SourceInfoOrBuilder> getSourceInfoFieldBuilder() { if (sourceInfoBuilder_ == null) { - sourceInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.api.SourceInfo, com.google.api.SourceInfo.Builder, com.google.api.SourceInfoOrBuilder>( - getSourceInfo(), - getParentForChildren(), - isClean()); + sourceInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.SourceInfo, + com.google.api.SourceInfo.Builder, + com.google.api.SourceInfoOrBuilder>( + getSourceInfo(), getParentForChildren(), isClean()); sourceInfo_ = null; } return sourceInfoBuilder_; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.Service) } // @@protoc_insertion_point(class_scope:google.api.Service) - private static final Service DEFAULT_INSTANCE; + private static final com.google.api.Service DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new Service(); + DEFAULT_INSTANCE = new com.google.api.Service(); } - public static Service getDefaultInstance() { + public static com.google.api.Service getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public Service parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Service(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Service parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Service(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public Service getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.Service getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.java index ad5a4768..8ef733bf 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.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/service.proto package com.google.api; -public interface ServiceOrBuilder extends +public interface ServiceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.Service) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The semantic version of the service configuration. The config version
    * affects the interpretation of the service configuration. For example,
@@ -16,9 +34,13 @@ public interface ServiceOrBuilder extends
    * 
* * .google.protobuf.UInt32Value config_version = 20; + * + * @return Whether the configVersion field is set. */ boolean hasConfigVersion(); /** + * + * *
    * The semantic version of the service configuration. The config version
    * affects the interpretation of the service configuration. For example,
@@ -27,9 +49,13 @@ public interface ServiceOrBuilder extends
    * 
* * .google.protobuf.UInt32Value config_version = 20; + * + * @return The configVersion. */ com.google.protobuf.UInt32Value getConfigVersion(); /** + * + * *
    * The semantic version of the service configuration. The config version
    * affects the interpretation of the service configuration. For example,
@@ -42,6 +68,8 @@ public interface ServiceOrBuilder extends
   com.google.protobuf.UInt32ValueOrBuilder getConfigVersionOrBuilder();
 
   /**
+   *
+   *
    * 
    * The service name, which is a DNS-like logical identifier for the
    * service, such as `calendar.googleapis.com`. The service name
@@ -50,9 +78,13 @@ public interface ServiceOrBuilder extends
    * 
* * string name = 1; + * + * @return The name. */ - String getName(); + java.lang.String getName(); /** + * + * *
    * The service name, which is a DNS-like logical identifier for the
    * service, such as `calendar.googleapis.com`. The service name
@@ -61,11 +93,14 @@ public interface ServiceOrBuilder extends
    * 
* * string name = 1; + * + * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * A unique ID for a specific instance of this message, typically assigned
    * by the client for tracking purpose. If empty, the server may choose to
@@ -73,9 +108,13 @@ public interface ServiceOrBuilder extends
    * 
* * string id = 33; + * + * @return The id. */ - String getId(); + java.lang.String getId(); /** + * + * *
    * A unique ID for a specific instance of this message, typically assigned
    * by the client for tracking purpose. If empty, the server may choose to
@@ -83,47 +122,64 @@ public interface ServiceOrBuilder extends
    * 
* * string id = 33; + * + * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * The product title for this service.
    * 
* * string title = 2; + * + * @return The title. */ - String getTitle(); + java.lang.String getTitle(); /** + * + * *
    * The product title for this service.
    * 
* * string title = 2; + * + * @return The bytes for title. */ - com.google.protobuf.ByteString - getTitleBytes(); + com.google.protobuf.ByteString getTitleBytes(); /** + * + * *
    * The Google project that owns this service.
    * 
* * string producer_project_id = 22; + * + * @return The producerProjectId. */ - String getProducerProjectId(); + java.lang.String getProducerProjectId(); /** + * + * *
    * The Google project that owns this service.
    * 
* * string producer_project_id = 22; + * + * @return The bytes for producerProjectId. */ - com.google.protobuf.ByteString - getProducerProjectIdBytes(); + com.google.protobuf.ByteString getProducerProjectIdBytes(); /** + * + * *
    * A list of API interfaces exported by this service. Only the `name` field
    * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
@@ -134,9 +190,10 @@ public interface ServiceOrBuilder extends
    *
    * repeated .google.protobuf.Api apis = 3;
    */
-  java.util.List 
-      getApisList();
+  java.util.List getApisList();
   /**
+   *
+   *
    * 
    * A list of API interfaces exported by this service. Only the `name` field
    * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
@@ -149,6 +206,8 @@ public interface ServiceOrBuilder extends
    */
   com.google.protobuf.Api getApis(int index);
   /**
+   *
+   *
    * 
    * A list of API interfaces exported by this service. Only the `name` field
    * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
@@ -161,6 +220,8 @@ public interface ServiceOrBuilder extends
    */
   int getApisCount();
   /**
+   *
+   *
    * 
    * A list of API interfaces exported by this service. Only the `name` field
    * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
@@ -171,9 +232,10 @@ public interface ServiceOrBuilder extends
    *
    * repeated .google.protobuf.Api apis = 3;
    */
-  java.util.List 
-      getApisOrBuilderList();
+  java.util.List getApisOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of API interfaces exported by this service. Only the `name` field
    * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
@@ -184,10 +246,11 @@ public interface ServiceOrBuilder extends
    *
    * repeated .google.protobuf.Api apis = 3;
    */
-  com.google.protobuf.ApiOrBuilder getApisOrBuilder(
-      int index);
+  com.google.protobuf.ApiOrBuilder getApisOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * A list of all proto message types included in this API service.
    * Types referenced directly or indirectly by the `apis` are
@@ -200,9 +263,10 @@ com.google.protobuf.ApiOrBuilder getApisOrBuilder(
    *
    * repeated .google.protobuf.Type types = 4;
    */
-  java.util.List 
-      getTypesList();
+  java.util.List getTypesList();
   /**
+   *
+   *
    * 
    * A list of all proto message types included in this API service.
    * Types referenced directly or indirectly by the `apis` are
@@ -217,6 +281,8 @@ com.google.protobuf.ApiOrBuilder getApisOrBuilder(
    */
   com.google.protobuf.Type getTypes(int index);
   /**
+   *
+   *
    * 
    * A list of all proto message types included in this API service.
    * Types referenced directly or indirectly by the `apis` are
@@ -231,6 +297,8 @@ com.google.protobuf.ApiOrBuilder getApisOrBuilder(
    */
   int getTypesCount();
   /**
+   *
+   *
    * 
    * A list of all proto message types included in this API service.
    * Types referenced directly or indirectly by the `apis` are
@@ -243,9 +311,10 @@ com.google.protobuf.ApiOrBuilder getApisOrBuilder(
    *
    * repeated .google.protobuf.Type types = 4;
    */
-  java.util.List 
-      getTypesOrBuilderList();
+  java.util.List getTypesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of all proto message types included in this API service.
    * Types referenced directly or indirectly by the `apis` are
@@ -258,10 +327,11 @@ com.google.protobuf.ApiOrBuilder getApisOrBuilder(
    *
    * repeated .google.protobuf.Type types = 4;
    */
-  com.google.protobuf.TypeOrBuilder getTypesOrBuilder(
-      int index);
+  com.google.protobuf.TypeOrBuilder getTypesOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * A list of all enum types included in this API service.  Enums
    * referenced directly or indirectly by the `apis` are automatically
@@ -273,9 +343,10 @@ com.google.protobuf.TypeOrBuilder getTypesOrBuilder(
    *
    * repeated .google.protobuf.Enum enums = 5;
    */
-  java.util.List 
-      getEnumsList();
+  java.util.List getEnumsList();
   /**
+   *
+   *
    * 
    * A list of all enum types included in this API service.  Enums
    * referenced directly or indirectly by the `apis` are automatically
@@ -289,6 +360,8 @@ com.google.protobuf.TypeOrBuilder getTypesOrBuilder(
    */
   com.google.protobuf.Enum getEnums(int index);
   /**
+   *
+   *
    * 
    * A list of all enum types included in this API service.  Enums
    * referenced directly or indirectly by the `apis` are automatically
@@ -302,6 +375,8 @@ com.google.protobuf.TypeOrBuilder getTypesOrBuilder(
    */
   int getEnumsCount();
   /**
+   *
+   *
    * 
    * A list of all enum types included in this API service.  Enums
    * referenced directly or indirectly by the `apis` are automatically
@@ -313,9 +388,10 @@ com.google.protobuf.TypeOrBuilder getTypesOrBuilder(
    *
    * repeated .google.protobuf.Enum enums = 5;
    */
-  java.util.List 
-      getEnumsOrBuilderList();
+  java.util.List getEnumsOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of all enum types included in this API service.  Enums
    * referenced directly or indirectly by the `apis` are automatically
@@ -327,26 +403,35 @@ com.google.protobuf.TypeOrBuilder getTypesOrBuilder(
    *
    * repeated .google.protobuf.Enum enums = 5;
    */
-  com.google.protobuf.EnumOrBuilder getEnumsOrBuilder(
-      int index);
+  com.google.protobuf.EnumOrBuilder getEnumsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Additional API documentation.
    * 
* * .google.api.Documentation documentation = 6; + * + * @return Whether the documentation field is set. */ boolean hasDocumentation(); /** + * + * *
    * Additional API documentation.
    * 
* * .google.api.Documentation documentation = 6; + * + * @return The documentation. */ - Documentation getDocumentation(); + com.google.api.Documentation getDocumentation(); /** + * + * *
    * Additional API documentation.
    * 
@@ -356,97 +441,137 @@ com.google.protobuf.EnumOrBuilder getEnumsOrBuilder( com.google.api.DocumentationOrBuilder getDocumentationOrBuilder(); /** + * + * *
    * API backend configuration.
    * 
* * .google.api.Backend backend = 8; + * + * @return Whether the backend field is set. */ boolean hasBackend(); /** + * + * *
    * API backend configuration.
    * 
* * .google.api.Backend backend = 8; + * + * @return The backend. */ - Backend getBackend(); + com.google.api.Backend getBackend(); /** + * + * *
    * API backend configuration.
    * 
* * .google.api.Backend backend = 8; */ - BackendOrBuilder getBackendOrBuilder(); + com.google.api.BackendOrBuilder getBackendOrBuilder(); /** + * + * *
    * HTTP configuration.
    * 
* * .google.api.Http http = 9; + * + * @return Whether the http field is set. */ boolean hasHttp(); /** + * + * *
    * HTTP configuration.
    * 
* * .google.api.Http http = 9; + * + * @return The http. */ - Http getHttp(); + com.google.api.Http getHttp(); /** + * + * *
    * HTTP configuration.
    * 
* * .google.api.Http http = 9; */ - HttpOrBuilder getHttpOrBuilder(); + com.google.api.HttpOrBuilder getHttpOrBuilder(); /** + * + * *
    * Quota configuration.
    * 
* * .google.api.Quota quota = 10; + * + * @return Whether the quota field is set. */ boolean hasQuota(); /** + * + * *
    * Quota configuration.
    * 
* * .google.api.Quota quota = 10; + * + * @return The quota. */ - Quota getQuota(); + com.google.api.Quota getQuota(); /** + * + * *
    * Quota configuration.
    * 
* * .google.api.Quota quota = 10; */ - QuotaOrBuilder getQuotaOrBuilder(); + com.google.api.QuotaOrBuilder getQuotaOrBuilder(); /** + * + * *
    * Auth configuration.
    * 
* * .google.api.Authentication authentication = 11; + * + * @return Whether the authentication field is set. */ boolean hasAuthentication(); /** + * + * *
    * Auth configuration.
    * 
* * .google.api.Authentication authentication = 11; + * + * @return The authentication. */ - Authentication getAuthentication(); + com.google.api.Authentication getAuthentication(); /** + * + * *
    * Auth configuration.
    * 
@@ -456,56 +581,78 @@ com.google.protobuf.EnumOrBuilder getEnumsOrBuilder( com.google.api.AuthenticationOrBuilder getAuthenticationOrBuilder(); /** + * + * *
    * Context configuration.
    * 
* * .google.api.Context context = 12; + * + * @return Whether the context field is set. */ boolean hasContext(); /** + * + * *
    * Context configuration.
    * 
* * .google.api.Context context = 12; + * + * @return The context. */ - Context getContext(); + com.google.api.Context getContext(); /** + * + * *
    * Context configuration.
    * 
* * .google.api.Context context = 12; */ - ContextOrBuilder getContextOrBuilder(); + com.google.api.ContextOrBuilder getContextOrBuilder(); /** + * + * *
    * Configuration controlling usage of this service.
    * 
* * .google.api.Usage usage = 15; + * + * @return Whether the usage field is set. */ boolean hasUsage(); /** + * + * *
    * Configuration controlling usage of this service.
    * 
* * .google.api.Usage usage = 15; + * + * @return The usage. */ - Usage getUsage(); + com.google.api.Usage getUsage(); /** + * + * *
    * Configuration controlling usage of this service.
    * 
* * .google.api.Usage usage = 15; */ - UsageOrBuilder getUsageOrBuilder(); + com.google.api.UsageOrBuilder getUsageOrBuilder(); /** + * + * *
    * Configuration for network endpoints.  If this is empty, then an endpoint
    * with the same name as the service is automatically generated to service all
@@ -514,9 +661,10 @@ com.google.protobuf.EnumOrBuilder getEnumsOrBuilder(
    *
    * repeated .google.api.Endpoint endpoints = 18;
    */
-  java.util.List
-      getEndpointsList();
+  java.util.List getEndpointsList();
   /**
+   *
+   *
    * 
    * Configuration for network endpoints.  If this is empty, then an endpoint
    * with the same name as the service is automatically generated to service all
@@ -525,8 +673,10 @@ com.google.protobuf.EnumOrBuilder getEnumsOrBuilder(
    *
    * repeated .google.api.Endpoint endpoints = 18;
    */
-  Endpoint getEndpoints(int index);
+  com.google.api.Endpoint getEndpoints(int index);
   /**
+   *
+   *
    * 
    * Configuration for network endpoints.  If this is empty, then an endpoint
    * with the same name as the service is automatically generated to service all
@@ -537,6 +687,8 @@ com.google.protobuf.EnumOrBuilder getEnumsOrBuilder(
    */
   int getEndpointsCount();
   /**
+   *
+   *
    * 
    * Configuration for network endpoints.  If this is empty, then an endpoint
    * with the same name as the service is automatically generated to service all
@@ -545,9 +697,10 @@ com.google.protobuf.EnumOrBuilder getEnumsOrBuilder(
    *
    * repeated .google.api.Endpoint endpoints = 18;
    */
-  java.util.List 
-      getEndpointsOrBuilderList();
+  java.util.List getEndpointsOrBuilderList();
   /**
+   *
+   *
    * 
    * Configuration for network endpoints.  If this is empty, then an endpoint
    * with the same name as the service is automatically generated to service all
@@ -556,52 +709,66 @@ com.google.protobuf.EnumOrBuilder getEnumsOrBuilder(
    *
    * repeated .google.api.Endpoint endpoints = 18;
    */
-  com.google.api.EndpointOrBuilder getEndpointsOrBuilder(
-      int index);
+  com.google.api.EndpointOrBuilder getEndpointsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Configuration for the service control plane.
    * 
* * .google.api.Control control = 21; + * + * @return Whether the control field is set. */ boolean hasControl(); /** + * + * *
    * Configuration for the service control plane.
    * 
* * .google.api.Control control = 21; + * + * @return The control. */ - Control getControl(); + com.google.api.Control getControl(); /** + * + * *
    * Configuration for the service control plane.
    * 
* * .google.api.Control control = 21; */ - ControlOrBuilder getControlOrBuilder(); + com.google.api.ControlOrBuilder getControlOrBuilder(); /** + * + * *
    * Defines the logs used by this service.
    * 
* * repeated .google.api.LogDescriptor logs = 23; */ - java.util.List - getLogsList(); + java.util.List getLogsList(); /** + * + * *
    * Defines the logs used by this service.
    * 
* * repeated .google.api.LogDescriptor logs = 23; */ - LogDescriptor getLogs(int index); + com.google.api.LogDescriptor getLogs(int index); /** + * + * *
    * Defines the logs used by this service.
    * 
@@ -610,42 +777,49 @@ com.google.api.EndpointOrBuilder getEndpointsOrBuilder( */ int getLogsCount(); /** + * + * *
    * Defines the logs used by this service.
    * 
* * repeated .google.api.LogDescriptor logs = 23; */ - java.util.List - getLogsOrBuilderList(); + java.util.List getLogsOrBuilderList(); /** + * + * *
    * Defines the logs used by this service.
    * 
* * repeated .google.api.LogDescriptor logs = 23; */ - com.google.api.LogDescriptorOrBuilder getLogsOrBuilder( - int index); + com.google.api.LogDescriptorOrBuilder getLogsOrBuilder(int index); /** + * + * *
    * Defines the metrics used by this service.
    * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ - java.util.List - getMetricsList(); + java.util.List getMetricsList(); /** + * + * *
    * Defines the metrics used by this service.
    * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ - MetricDescriptor getMetrics(int index); + com.google.api.MetricDescriptor getMetrics(int index); /** + * + * *
    * Defines the metrics used by this service.
    * 
@@ -654,25 +828,29 @@ com.google.api.LogDescriptorOrBuilder getLogsOrBuilder( */ int getMetricsCount(); /** + * + * *
    * Defines the metrics used by this service.
    * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ - java.util.List - getMetricsOrBuilderList(); + java.util.List getMetricsOrBuilderList(); /** + * + * *
    * Defines the metrics used by this service.
    * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ - com.google.api.MetricDescriptorOrBuilder getMetricsOrBuilder( - int index); + com.google.api.MetricDescriptorOrBuilder getMetricsOrBuilder(int index); /** + * + * *
    * Defines the monitored resources used by this service. This is required
    * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
@@ -680,9 +858,10 @@ com.google.api.MetricDescriptorOrBuilder getMetricsOrBuilder(
    *
    * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
    */
-  java.util.List 
-      getMonitoredResourcesList();
+  java.util.List getMonitoredResourcesList();
   /**
+   *
+   *
    * 
    * Defines the monitored resources used by this service. This is required
    * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
@@ -692,6 +871,8 @@ com.google.api.MetricDescriptorOrBuilder getMetricsOrBuilder(
    */
   com.google.api.MonitoredResourceDescriptor getMonitoredResources(int index);
   /**
+   *
+   *
    * 
    * Defines the monitored resources used by this service. This is required
    * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
@@ -701,6 +882,8 @@ com.google.api.MetricDescriptorOrBuilder getMetricsOrBuilder(
    */
   int getMonitoredResourcesCount();
   /**
+   *
+   *
    * 
    * Defines the monitored resources used by this service. This is required
    * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
@@ -708,9 +891,11 @@ com.google.api.MetricDescriptorOrBuilder getMetricsOrBuilder(
    *
    * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
    */
-  java.util.List 
+  java.util.List
       getMonitoredResourcesOrBuilderList();
   /**
+   *
+   *
    * 
    * Defines the monitored resources used by this service. This is required
    * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
@@ -718,76 +903,105 @@ com.google.api.MetricDescriptorOrBuilder getMetricsOrBuilder(
    *
    * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
    */
-  com.google.api.MonitoredResourceDescriptorOrBuilder getMonitoredResourcesOrBuilder(
-      int index);
+  com.google.api.MonitoredResourceDescriptorOrBuilder getMonitoredResourcesOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Billing configuration.
    * 
* * .google.api.Billing billing = 26; + * + * @return Whether the billing field is set. */ boolean hasBilling(); /** + * + * *
    * Billing configuration.
    * 
* * .google.api.Billing billing = 26; + * + * @return The billing. */ - Billing getBilling(); + com.google.api.Billing getBilling(); /** + * + * *
    * Billing configuration.
    * 
* * .google.api.Billing billing = 26; */ - BillingOrBuilder getBillingOrBuilder(); + com.google.api.BillingOrBuilder getBillingOrBuilder(); /** + * + * *
    * Logging configuration.
    * 
* * .google.api.Logging logging = 27; + * + * @return Whether the logging field is set. */ boolean hasLogging(); /** + * + * *
    * Logging configuration.
    * 
* * .google.api.Logging logging = 27; + * + * @return The logging. */ - Logging getLogging(); + com.google.api.Logging getLogging(); /** + * + * *
    * Logging configuration.
    * 
* * .google.api.Logging logging = 27; */ - LoggingOrBuilder getLoggingOrBuilder(); + com.google.api.LoggingOrBuilder getLoggingOrBuilder(); /** + * + * *
    * Monitoring configuration.
    * 
* * .google.api.Monitoring monitoring = 28; + * + * @return Whether the monitoring field is set. */ boolean hasMonitoring(); /** + * + * *
    * Monitoring configuration.
    * 
* * .google.api.Monitoring monitoring = 28; + * + * @return The monitoring. */ - Monitoring getMonitoring(); + com.google.api.Monitoring getMonitoring(); /** + * + * *
    * Monitoring configuration.
    * 
@@ -797,22 +1011,32 @@ com.google.api.MonitoredResourceDescriptorOrBuilder getMonitoredResourcesOrBuild com.google.api.MonitoringOrBuilder getMonitoringOrBuilder(); /** + * + * *
    * System parameter configuration.
    * 
* * .google.api.SystemParameters system_parameters = 29; + * + * @return Whether the systemParameters field is set. */ boolean hasSystemParameters(); /** + * + * *
    * System parameter configuration.
    * 
* * .google.api.SystemParameters system_parameters = 29; + * + * @return The systemParameters. */ com.google.api.SystemParameters getSystemParameters(); /** + * + * *
    * System parameter configuration.
    * 
@@ -822,22 +1046,32 @@ com.google.api.MonitoredResourceDescriptorOrBuilder getMonitoredResourcesOrBuild com.google.api.SystemParametersOrBuilder getSystemParametersOrBuilder(); /** + * + * *
    * Output only. The source information for this configuration if available.
    * 
* * .google.api.SourceInfo source_info = 37; + * + * @return Whether the sourceInfo field is set. */ boolean hasSourceInfo(); /** + * + * *
    * Output only. The source information for this configuration if available.
    * 
* * .google.api.SourceInfo source_info = 37; + * + * @return The sourceInfo. */ - SourceInfo getSourceInfo(); + com.google.api.SourceInfo getSourceInfo(); /** + * + * *
    * Output only. The source information for this configuration if available.
    * 
diff --git a/proto-google-common-protos/src/main/java/com/google/api/ServiceProto.java b/proto-google-common-protos/src/main/java/com/google/api/ServiceProto.java index 191eb161..a10c590f 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/ServiceProto.java +++ b/proto-google-common-protos/src/main/java/com/google/api/ServiceProto.java @@ -1,3 +1,18 @@ +/* + * 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/service.proto @@ -5,135 +20,150 @@ public final class ServiceProto { private ServiceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + 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_Service_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_Service_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_api_Service_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { - String[] descriptorData = { - "\n\030google/api/service.proto\022\ngoogle.api\032\025" + - "google/api/auth.proto\032\030google/api/backen" + - "d.proto\032\030google/api/billing.proto\032\030googl" + - "e/api/context.proto\032\030google/api/control." + - "proto\032\036google/api/documentation.proto\032\031g" + - "oogle/api/endpoint.proto\032\025google/api/htt" + - "p.proto\032\026google/api/label.proto\032\024google/" + - "api/log.proto\032\030google/api/logging.proto\032" + - "\027google/api/metric.proto\032#google/api/mon" + - "itored_resource.proto\032\033google/api/monito" + - "ring.proto\032\026google/api/quota.proto\032\031goog" + - "le/api/resource.proto\032\034google/api/source" + - "_info.proto\032!google/api/system_parameter" + - ".proto\032\026google/api/usage.proto\032\031google/p" + - "rotobuf/any.proto\032\031google/protobuf/api.p" + - "roto\032\032google/protobuf/type.proto\032\036google" + - "/protobuf/wrappers.proto\"\326\007\n\007Service\0224\n\016" + - "config_version\030\024 \001(\0132\034.google.protobuf.U" + - "Int32Value\022\014\n\004name\030\001 \001(\t\022\n\n\002id\030! \001(\t\022\r\n\005" + - "title\030\002 \001(\t\022\033\n\023producer_project_id\030\026 \001(\t" + - "\022\"\n\004apis\030\003 \003(\0132\024.google.protobuf.Api\022$\n\005" + - "types\030\004 \003(\0132\025.google.protobuf.Type\022$\n\005en" + - "ums\030\005 \003(\0132\025.google.protobuf.Enum\0220\n\rdocu" + - "mentation\030\006 \001(\0132\031.google.api.Documentati" + - "on\022$\n\007backend\030\010 \001(\0132\023.google.api.Backend" + - "\022\036\n\004http\030\t \001(\0132\020.google.api.Http\022 \n\005quot" + - "a\030\n \001(\0132\021.google.api.Quota\0222\n\016authentica" + - "tion\030\013 \001(\0132\032.google.api.Authentication\022$" + - "\n\007context\030\014 \001(\0132\023.google.api.Context\022 \n\005" + - "usage\030\017 \001(\0132\021.google.api.Usage\022\'\n\tendpoi" + - "nts\030\022 \003(\0132\024.google.api.Endpoint\022$\n\007contr" + - "ol\030\025 \001(\0132\023.google.api.Control\022\'\n\004logs\030\027 " + - "\003(\0132\031.google.api.LogDescriptor\022-\n\007metric" + - "s\030\030 \003(\0132\034.google.api.MetricDescriptor\022D\n" + - "\023monitored_resources\030\031 \003(\0132\'.google.api." + - "MonitoredResourceDescriptor\022$\n\007billing\030\032" + - " \001(\0132\023.google.api.Billing\022$\n\007logging\030\033 \001" + - "(\0132\023.google.api.Logging\022*\n\nmonitoring\030\034 " + - "\001(\0132\026.google.api.Monitoring\0227\n\021system_pa" + - "rameters\030\035 \001(\0132\034.google.api.SystemParame" + - "ters\022+\n\013source_info\030% \001(\0132\026.google.api.S" + - "ourceInfoBn\n\016com.google.apiB\014ServiceProt" + - "oP\001ZEgoogle.golang.org/genproto/googleap" + - "is/api/serviceconfig;serviceconfig\242\002\004GAP" + - "Ib\006proto3" + java.lang.String[] descriptorData = { + "\n\030google/api/service.proto\022\ngoogle.api\032\025" + + "google/api/auth.proto\032\030google/api/backen" + + "d.proto\032\030google/api/billing.proto\032\030googl" + + "e/api/context.proto\032\030google/api/control." + + "proto\032\036google/api/documentation.proto\032\031g" + + "oogle/api/endpoint.proto\032\025google/api/htt" + + "p.proto\032\026google/api/label.proto\032\024google/" + + "api/log.proto\032\030google/api/logging.proto\032" + + "\027google/api/metric.proto\032#google/api/mon" + + "itored_resource.proto\032\033google/api/monito" + + "ring.proto\032\026google/api/quota.proto\032\031goog" + + "le/api/resource.proto\032\034google/api/source" + + "_info.proto\032!google/api/system_parameter" + + ".proto\032\026google/api/usage.proto\032\031google/p" + + "rotobuf/any.proto\032\031google/protobuf/api.p" + + "roto\032\032google/protobuf/type.proto\032\036google" + + "/protobuf/wrappers.proto\"\326\007\n\007Service\0224\n\016" + + "config_version\030\024 \001(\0132\034.google.protobuf.U" + + "Int32Value\022\014\n\004name\030\001 \001(\t\022\n\n\002id\030! \001(\t\022\r\n\005" + + "title\030\002 \001(\t\022\033\n\023producer_project_id\030\026 \001(\t" + + "\022\"\n\004apis\030\003 \003(\0132\024.google.protobuf.Api\022$\n\005" + + "types\030\004 \003(\0132\025.google.protobuf.Type\022$\n\005en" + + "ums\030\005 \003(\0132\025.google.protobuf.Enum\0220\n\rdocu" + + "mentation\030\006 \001(\0132\031.google.api.Documentati" + + "on\022$\n\007backend\030\010 \001(\0132\023.google.api.Backend" + + "\022\036\n\004http\030\t \001(\0132\020.google.api.Http\022 \n\005quot" + + "a\030\n \001(\0132\021.google.api.Quota\0222\n\016authentica" + + "tion\030\013 \001(\0132\032.google.api.Authentication\022$" + + "\n\007context\030\014 \001(\0132\023.google.api.Context\022 \n\005" + + "usage\030\017 \001(\0132\021.google.api.Usage\022\'\n\tendpoi" + + "nts\030\022 \003(\0132\024.google.api.Endpoint\022$\n\007contr" + + "ol\030\025 \001(\0132\023.google.api.Control\022\'\n\004logs\030\027 " + + "\003(\0132\031.google.api.LogDescriptor\022-\n\007metric" + + "s\030\030 \003(\0132\034.google.api.MetricDescriptor\022D\n" + + "\023monitored_resources\030\031 \003(\0132\'.google.api." + + "MonitoredResourceDescriptor\022$\n\007billing\030\032" + + " \001(\0132\023.google.api.Billing\022$\n\007logging\030\033 \001" + + "(\0132\023.google.api.Logging\022*\n\nmonitoring\030\034 " + + "\001(\0132\026.google.api.Monitoring\0227\n\021system_pa" + + "rameters\030\035 \001(\0132\034.google.api.SystemParame" + + "ters\022+\n\013source_info\030% \001(\0132\026.google.api.S" + + "ourceInfoBn\n\016com.google.apiB\014ServiceProt" + + "oP\001ZEgoogle.golang.org/genproto/googleap" + + "is/api/serviceconfig;serviceconfig\242\002\004GAP" + + "Ib\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - AuthProto.getDescriptor(), - BackendProto.getDescriptor(), - BillingProto.getDescriptor(), - ContextProto.getDescriptor(), - ControlProto.getDescriptor(), - com.google.api.DocumentationProto.getDescriptor(), - com.google.api.EndpointProto.getDescriptor(), - HttpProto.getDescriptor(), - LabelProto.getDescriptor(), - LogProto.getDescriptor(), - LoggingProto.getDescriptor(), - MetricProto.getDescriptor(), - com.google.api.MonitoredResourceProto.getDescriptor(), - com.google.api.MonitoringProto.getDescriptor(), - QuotaProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.api.SourceInfoProto.getDescriptor(), - com.google.api.SystemParameterProto.getDescriptor(), - UsageProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.ApiProto.getDescriptor(), - com.google.protobuf.TypeProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - }, assigner); - internal_static_google_api_Service_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_api_Service_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_Service_descriptor, - new String[] { "ConfigVersion", "Name", "Id", "Title", "ProducerProjectId", "Apis", "Types", "Enums", "Documentation", "Backend", "Http", "Quota", "Authentication", "Context", "Usage", "Endpoints", "Control", "Logs", "Metrics", "MonitoredResources", "Billing", "Logging", "Monitoring", "SystemParameters", "SourceInfo", }); - AuthProto.getDescriptor(); - BackendProto.getDescriptor(); - BillingProto.getDescriptor(); - ContextProto.getDescriptor(); - ControlProto.getDescriptor(); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AuthProto.getDescriptor(), + com.google.api.BackendProto.getDescriptor(), + com.google.api.BillingProto.getDescriptor(), + com.google.api.ContextProto.getDescriptor(), + com.google.api.ControlProto.getDescriptor(), + com.google.api.DocumentationProto.getDescriptor(), + com.google.api.EndpointProto.getDescriptor(), + com.google.api.HttpProto.getDescriptor(), + com.google.api.LabelProto.getDescriptor(), + com.google.api.LogProto.getDescriptor(), + com.google.api.LoggingProto.getDescriptor(), + com.google.api.MetricProto.getDescriptor(), + com.google.api.MonitoredResourceProto.getDescriptor(), + com.google.api.MonitoringProto.getDescriptor(), + com.google.api.QuotaProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.api.SourceInfoProto.getDescriptor(), + com.google.api.SystemParameterProto.getDescriptor(), + com.google.api.UsageProto.getDescriptor(), + com.google.protobuf.AnyProto.getDescriptor(), + com.google.protobuf.ApiProto.getDescriptor(), + com.google.protobuf.TypeProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + }); + internal_static_google_api_Service_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_api_Service_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_Service_descriptor, + new java.lang.String[] { + "ConfigVersion", + "Name", + "Id", + "Title", + "ProducerProjectId", + "Apis", + "Types", + "Enums", + "Documentation", + "Backend", + "Http", + "Quota", + "Authentication", + "Context", + "Usage", + "Endpoints", + "Control", + "Logs", + "Metrics", + "MonitoredResources", + "Billing", + "Logging", + "Monitoring", + "SystemParameters", + "SourceInfo", + }); + com.google.api.AuthProto.getDescriptor(); + com.google.api.BackendProto.getDescriptor(); + com.google.api.BillingProto.getDescriptor(); + com.google.api.ContextProto.getDescriptor(); + com.google.api.ControlProto.getDescriptor(); com.google.api.DocumentationProto.getDescriptor(); com.google.api.EndpointProto.getDescriptor(); - HttpProto.getDescriptor(); - LabelProto.getDescriptor(); - LogProto.getDescriptor(); - LoggingProto.getDescriptor(); - MetricProto.getDescriptor(); + com.google.api.HttpProto.getDescriptor(); + com.google.api.LabelProto.getDescriptor(); + com.google.api.LogProto.getDescriptor(); + com.google.api.LoggingProto.getDescriptor(); + com.google.api.MetricProto.getDescriptor(); com.google.api.MonitoredResourceProto.getDescriptor(); com.google.api.MonitoringProto.getDescriptor(); - QuotaProto.getDescriptor(); + com.google.api.QuotaProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.api.SourceInfoProto.getDescriptor(); com.google.api.SystemParameterProto.getDescriptor(); - UsageProto.getDescriptor(); + com.google.api.UsageProto.getDescriptor(); com.google.protobuf.AnyProto.getDescriptor(); com.google.protobuf.ApiProto.getDescriptor(); com.google.protobuf.TypeProto.getDescriptor(); diff --git a/proto-google-common-protos/src/main/java/com/google/api/SourceInfo.java b/proto-google-common-protos/src/main/java/com/google/api/SourceInfo.java index dffdc9dd..86b24de7 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/SourceInfo.java +++ b/proto-google-common-protos/src/main/java/com/google/api/SourceInfo.java @@ -1,40 +1,64 @@ +/* + * 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/source_info.proto package com.google.api; /** + * + * *
  * Source information used to create a Service Config
  * 
* * Protobuf type {@code google.api.SourceInfo} */ -public final class SourceInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SourceInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.api.SourceInfo) SourceInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SourceInfo.newBuilder() to construct. private SourceInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SourceInfo() { sourceFiles_ = java.util.Collections.emptyList(); } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SourceInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SourceInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = @@ -47,29 +71,29 @@ private SourceInfo( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - sourceFiles_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + sourceFiles_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + sourceFiles_.add( + input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry)); + break; } - sourceFiles_.add( - input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { sourceFiles_ = java.util.Collections.unmodifiableList(sourceFiles_); @@ -78,22 +102,24 @@ private SourceInfo( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.SourceInfoProto.internal_static_google_api_SourceInfo_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.SourceInfoProto.internal_static_google_api_SourceInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - SourceInfo.class, Builder.class); + com.google.api.SourceInfo.class, com.google.api.SourceInfo.Builder.class); } public static final int SOURCE_FILES_FIELD_NUMBER = 1; private java.util.List sourceFiles_; /** + * + * *
    * All files used during config generation.
    * 
@@ -104,17 +130,20 @@ public java.util.List getSourceFilesList() { return sourceFiles_; } /** + * + * *
    * All files used during config generation.
    * 
* * repeated .google.protobuf.Any source_files = 1; */ - public java.util.List - getSourceFilesOrBuilderList() { + public java.util.List getSourceFilesOrBuilderList() { return sourceFiles_; } /** + * + * *
    * All files used during config generation.
    * 
@@ -125,6 +154,8 @@ public int getSourceFilesCount() { return sourceFiles_.size(); } /** + * + * *
    * All files used during config generation.
    * 
@@ -135,19 +166,21 @@ public com.google.protobuf.Any getSourceFiles(int index) { return sourceFiles_.get(index); } /** + * + * *
    * All files used during config generation.
    * 
* * repeated .google.protobuf.Any source_files = 1; */ - public com.google.protobuf.AnyOrBuilder getSourceFilesOrBuilder( - int index) { + public com.google.protobuf.AnyOrBuilder getSourceFilesOrBuilder(int index) { return sourceFiles_.get(index); } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -157,47 +190,44 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < sourceFiles_.size(); i++) { output.writeMessage(1, sourceFiles_.get(i)); } unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < sourceFiles_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, sourceFiles_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sourceFiles_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof SourceInfo)) { + if (!(obj instanceof com.google.api.SourceInfo)) { return super.equals(obj); } - SourceInfo other = (SourceInfo) obj; + com.google.api.SourceInfo other = (com.google.api.SourceInfo) obj; - if (!getSourceFilesList() - .equals(other.getSourceFilesList())) return false; + if (!getSourceFilesList().equals(other.getSourceFilesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -213,118 +243,123 @@ public int hashCode() { return hash; } - public static SourceInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.SourceInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static SourceInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.SourceInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static SourceInfo parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.api.SourceInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static SourceInfo parseFrom( + + public static com.google.api.SourceInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static SourceInfo parseFrom(byte[] data) + + public static com.google.api.SourceInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static SourceInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.SourceInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static SourceInfo parseFrom(java.io.InputStream input) + + public static com.google.api.SourceInfo 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 SourceInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.SourceInfo parseFrom( + 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 SourceInfo parseDelimitedFrom(java.io.InputStream input) + + public static com.google.api.SourceInfo 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 SourceInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.SourceInfo parseDelimitedFrom( + 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 SourceInfo parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.api.SourceInfo 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 SourceInfo parseFrom( + + public static com.google.api.SourceInfo 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(SourceInfo prototype) { + + public static Builder newBuilder(com.google.api.SourceInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Source information used to create a Service Config
    * 
* * Protobuf type {@code google.api.SourceInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.api.SourceInfo) com.google.api.SourceInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.SourceInfoProto.internal_static_google_api_SourceInfo_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.SourceInfoProto.internal_static_google_api_SourceInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - SourceInfo.class, Builder.class); + com.google.api.SourceInfo.class, com.google.api.SourceInfo.Builder.class); } // Construct using com.google.api.SourceInfo.newBuilder() @@ -332,18 +367,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSourceFilesFieldBuilder(); } } - @Override + + @java.lang.Override public Builder clear() { super.clear(); if (sourceFilesBuilder_ == null) { @@ -355,29 +390,28 @@ public Builder clear() { return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.api.SourceInfoProto.internal_static_google_api_SourceInfo_descriptor; } - @Override - public SourceInfo getDefaultInstanceForType() { - return SourceInfo.getDefaultInstance(); + @java.lang.Override + public com.google.api.SourceInfo getDefaultInstanceForType() { + return com.google.api.SourceInfo.getDefaultInstance(); } - @Override - public SourceInfo build() { - SourceInfo result = buildPartial(); + @java.lang.Override + public com.google.api.SourceInfo build() { + com.google.api.SourceInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public SourceInfo buildPartial() { - SourceInfo result = new SourceInfo(this); + @java.lang.Override + public com.google.api.SourceInfo buildPartial() { + com.google.api.SourceInfo result = new com.google.api.SourceInfo(this); int from_bitField0_ = bitField0_; if (sourceFilesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -392,50 +426,51 @@ public SourceInfo buildPartial() { return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof SourceInfo) { - return mergeFrom((SourceInfo)other); + if (other instanceof com.google.api.SourceInfo) { + return mergeFrom((com.google.api.SourceInfo) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(SourceInfo other) { - if (other == SourceInfo.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.api.SourceInfo other) { + if (other == com.google.api.SourceInfo.getDefaultInstance()) return this; if (sourceFilesBuilder_ == null) { if (!other.sourceFiles_.isEmpty()) { if (sourceFiles_.isEmpty()) { @@ -454,9 +489,10 @@ public Builder mergeFrom(SourceInfo other) { sourceFilesBuilder_ = null; sourceFiles_ = other.sourceFiles_; bitField0_ = (bitField0_ & ~0x00000001); - sourceFilesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSourceFilesFieldBuilder() : null; + sourceFilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSourceFilesFieldBuilder() + : null; } else { sourceFilesBuilder_.addAllMessages(other.sourceFiles_); } @@ -467,21 +503,21 @@ public Builder mergeFrom(SourceInfo other) { return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - SourceInfo parsedMessage = null; + com.google.api.SourceInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (SourceInfo) e.getUnfinishedMessage(); + parsedMessage = (com.google.api.SourceInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -490,21 +526,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List sourceFiles_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSourceFilesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { sourceFiles_ = new java.util.ArrayList(sourceFiles_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> sourceFilesBuilder_; + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder> + sourceFilesBuilder_; /** + * + * *
      * All files used during config generation.
      * 
@@ -519,6 +562,8 @@ public java.util.List getSourceFilesList() { } } /** + * + * *
      * All files used during config generation.
      * 
@@ -533,6 +578,8 @@ public int getSourceFilesCount() { } } /** + * + * *
      * All files used during config generation.
      * 
@@ -547,14 +594,15 @@ public com.google.protobuf.Any getSourceFiles(int index) { } } /** + * + * *
      * All files used during config generation.
      * 
* * repeated .google.protobuf.Any source_files = 1; */ - public Builder setSourceFiles( - int index, com.google.protobuf.Any value) { + public Builder setSourceFiles(int index, com.google.protobuf.Any value) { if (sourceFilesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -568,14 +616,15 @@ public Builder setSourceFiles( return this; } /** + * + * *
      * All files used during config generation.
      * 
* * repeated .google.protobuf.Any source_files = 1; */ - public Builder setSourceFiles( - int index, com.google.protobuf.Any.Builder builderForValue) { + public Builder setSourceFiles(int index, com.google.protobuf.Any.Builder builderForValue) { if (sourceFilesBuilder_ == null) { ensureSourceFilesIsMutable(); sourceFiles_.set(index, builderForValue.build()); @@ -586,6 +635,8 @@ public Builder setSourceFiles( return this; } /** + * + * *
      * All files used during config generation.
      * 
@@ -606,14 +657,15 @@ public Builder addSourceFiles(com.google.protobuf.Any value) { return this; } /** + * + * *
      * All files used during config generation.
      * 
* * repeated .google.protobuf.Any source_files = 1; */ - public Builder addSourceFiles( - int index, com.google.protobuf.Any value) { + public Builder addSourceFiles(int index, com.google.protobuf.Any value) { if (sourceFilesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -627,14 +679,15 @@ public Builder addSourceFiles( return this; } /** + * + * *
      * All files used during config generation.
      * 
* * repeated .google.protobuf.Any source_files = 1; */ - public Builder addSourceFiles( - com.google.protobuf.Any.Builder builderForValue) { + public Builder addSourceFiles(com.google.protobuf.Any.Builder builderForValue) { if (sourceFilesBuilder_ == null) { ensureSourceFilesIsMutable(); sourceFiles_.add(builderForValue.build()); @@ -645,14 +698,15 @@ public Builder addSourceFiles( return this; } /** + * + * *
      * All files used during config generation.
      * 
* * repeated .google.protobuf.Any source_files = 1; */ - public Builder addSourceFiles( - int index, com.google.protobuf.Any.Builder builderForValue) { + public Builder addSourceFiles(int index, com.google.protobuf.Any.Builder builderForValue) { if (sourceFilesBuilder_ == null) { ensureSourceFilesIsMutable(); sourceFiles_.add(index, builderForValue.build()); @@ -663,18 +717,18 @@ public Builder addSourceFiles( return this; } /** + * + * *
      * All files used during config generation.
      * 
* * repeated .google.protobuf.Any source_files = 1; */ - public Builder addAllSourceFiles( - Iterable values) { + public Builder addAllSourceFiles(java.lang.Iterable values) { if (sourceFilesBuilder_ == null) { ensureSourceFilesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, sourceFiles_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sourceFiles_); onChanged(); } else { sourceFilesBuilder_.addAllMessages(values); @@ -682,6 +736,8 @@ public Builder addAllSourceFiles( return this; } /** + * + * *
      * All files used during config generation.
      * 
@@ -699,6 +755,8 @@ public Builder clearSourceFiles() { return this; } /** + * + * *
      * All files used during config generation.
      * 
@@ -716,39 +774,44 @@ public Builder removeSourceFiles(int index) { return this; } /** + * + * *
      * All files used during config generation.
      * 
* * repeated .google.protobuf.Any source_files = 1; */ - public com.google.protobuf.Any.Builder getSourceFilesBuilder( - int index) { + public com.google.protobuf.Any.Builder getSourceFilesBuilder(int index) { return getSourceFilesFieldBuilder().getBuilder(index); } /** + * + * *
      * All files used during config generation.
      * 
* * repeated .google.protobuf.Any source_files = 1; */ - public com.google.protobuf.AnyOrBuilder getSourceFilesOrBuilder( - int index) { + public com.google.protobuf.AnyOrBuilder getSourceFilesOrBuilder(int index) { if (sourceFilesBuilder_ == null) { - return sourceFiles_.get(index); } else { + return sourceFiles_.get(index); + } else { return sourceFilesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * All files used during config generation.
      * 
* * repeated .google.protobuf.Any source_files = 1; */ - public java.util.List - getSourceFilesOrBuilderList() { + public java.util.List + getSourceFilesOrBuilderList() { if (sourceFilesBuilder_ != null) { return sourceFilesBuilder_.getMessageOrBuilderList(); } else { @@ -756,6 +819,8 @@ public com.google.protobuf.AnyOrBuilder getSourceFilesOrBuilder( } } /** + * + * *
      * All files used during config generation.
      * 
@@ -763,96 +828,98 @@ public com.google.protobuf.AnyOrBuilder getSourceFilesOrBuilder( * repeated .google.protobuf.Any source_files = 1; */ public com.google.protobuf.Any.Builder addSourceFilesBuilder() { - return getSourceFilesFieldBuilder().addBuilder( - com.google.protobuf.Any.getDefaultInstance()); + return getSourceFilesFieldBuilder().addBuilder(com.google.protobuf.Any.getDefaultInstance()); } /** + * + * *
      * All files used during config generation.
      * 
* * repeated .google.protobuf.Any source_files = 1; */ - public com.google.protobuf.Any.Builder addSourceFilesBuilder( - int index) { - return getSourceFilesFieldBuilder().addBuilder( - index, com.google.protobuf.Any.getDefaultInstance()); + public com.google.protobuf.Any.Builder addSourceFilesBuilder(int index) { + return getSourceFilesFieldBuilder() + .addBuilder(index, com.google.protobuf.Any.getDefaultInstance()); } /** + * + * *
      * All files used during config generation.
      * 
* * repeated .google.protobuf.Any source_files = 1; */ - public java.util.List - getSourceFilesBuilderList() { + public java.util.List getSourceFilesBuilderList() { return getSourceFilesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder> getSourceFilesFieldBuilder() { if (sourceFilesBuilder_ == null) { - sourceFilesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - sourceFiles_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + sourceFilesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder>( + sourceFiles_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); sourceFiles_ = null; } return sourceFilesBuilder_; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.SourceInfo) } // @@protoc_insertion_point(class_scope:google.api.SourceInfo) - private static final SourceInfo DEFAULT_INSTANCE; + private static final com.google.api.SourceInfo DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new SourceInfo(); + DEFAULT_INSTANCE = new com.google.api.SourceInfo(); } - public static SourceInfo getDefaultInstance() { + public static com.google.api.SourceInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public SourceInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SourceInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SourceInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public SourceInfo getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.SourceInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/SourceInfoOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/SourceInfoOrBuilder.java index 9b52923e..48ca89dd 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/SourceInfoOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/SourceInfoOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/source_info.proto package com.google.api; -public interface SourceInfoOrBuilder extends +public interface SourceInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.SourceInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * All files used during config generation.
    * 
* * repeated .google.protobuf.Any source_files = 1; */ - java.util.List - getSourceFilesList(); + java.util.List getSourceFilesList(); /** + * + * *
    * All files used during config generation.
    * 
@@ -25,6 +44,8 @@ public interface SourceInfoOrBuilder extends */ com.google.protobuf.Any getSourceFiles(int index); /** + * + * *
    * All files used during config generation.
    * 
@@ -33,21 +54,23 @@ public interface SourceInfoOrBuilder extends */ int getSourceFilesCount(); /** + * + * *
    * All files used during config generation.
    * 
* * repeated .google.protobuf.Any source_files = 1; */ - java.util.List - getSourceFilesOrBuilderList(); + java.util.List getSourceFilesOrBuilderList(); /** + * + * *
    * All files used during config generation.
    * 
* * repeated .google.protobuf.Any source_files = 1; */ - com.google.protobuf.AnyOrBuilder getSourceFilesOrBuilder( - int index); + com.google.protobuf.AnyOrBuilder getSourceFilesOrBuilder(int index); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/SourceInfoProto.java b/proto-google-common-protos/src/main/java/com/google/api/SourceInfoProto.java index 38e7fe73..7c1b540d 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/SourceInfoProto.java +++ b/proto-google-common-protos/src/main/java/com/google/api/SourceInfoProto.java @@ -1,3 +1,18 @@ +/* + * 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/source_info.proto @@ -5,56 +20,47 @@ public final class SourceInfoProto { private SourceInfoProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + 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_SourceInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_SourceInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_api_SourceInfo_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { - String[] descriptorData = { - "\n\034google/api/source_info.proto\022\ngoogle.a" + - "pi\032\031google/protobuf/any.proto\"8\n\nSourceI" + - "nfo\022*\n\014source_files\030\001 \003(\0132\024.google.proto" + - "buf.AnyBq\n\016com.google.apiB\017SourceInfoPro" + - "toP\001ZEgoogle.golang.org/genproto/googlea" + - "pis/api/serviceconfig;serviceconfig\242\002\004GA" + - "PIb\006proto3" + java.lang.String[] descriptorData = { + "\n\034google/api/source_info.proto\022\ngoogle.a" + + "pi\032\031google/protobuf/any.proto\"8\n\nSourceI" + + "nfo\022*\n\014source_files\030\001 \003(\0132\024.google.proto" + + "buf.AnyBq\n\016com.google.apiB\017SourceInfoPro" + + "toP\001ZEgoogle.golang.org/genproto/googlea" + + "pis/api/serviceconfig;serviceconfig\242\002\004GA" + + "PIb\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.AnyProto.getDescriptor(), - }, assigner); - internal_static_google_api_SourceInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_api_SourceInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_SourceInfo_descriptor, - new String[] { "SourceFiles", }); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.AnyProto.getDescriptor(), + }); + internal_static_google_api_SourceInfo_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_api_SourceInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_SourceInfo_descriptor, + new java.lang.String[] { + "SourceFiles", + }); com.google.protobuf.AnyProto.getDescriptor(); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/SystemParameter.java b/proto-google-common-protos/src/main/java/com/google/api/SystemParameter.java index e9249afe..356bac42 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/SystemParameter.java +++ b/proto-google-common-protos/src/main/java/com/google/api/SystemParameter.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/system_parameter.proto package com.google.api; /** + * + * *
  * Define a parameter's name and location. The parameter may be passed as either
  * an HTTP header or a URL query parameter, and if both are passed the behavior
@@ -12,35 +29,41 @@
  *
  * Protobuf type {@code google.api.SystemParameter}
  */
-public  final class SystemParameter extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SystemParameter extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.SystemParameter)
     SystemParameterOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SystemParameter.newBuilder() to construct.
   private SystemParameter(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SystemParameter() {
     name_ = "";
     httpHeader_ = "";
     urlQueryParameter_ = "";
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new SystemParameter();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private SystemParameter(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
-    int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
         com.google.protobuf.UnknownFieldSet.newBuilder();
     try {
@@ -51,91 +74,100 @@ private SystemParameter(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            httpHeader_ = s;
-            break;
-          }
-          case 26: {
-            String s = input.readStringRequireUtf8();
+              httpHeader_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            urlQueryParameter_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              urlQueryParameter_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.api.SystemParameterProto.internal_static_google_api_SystemParameter_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.api.SystemParameterProto
+        .internal_static_google_api_SystemParameter_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.api.SystemParameterProto.internal_static_google_api_SystemParameter_fieldAccessorTable
+    return com.google.api.SystemParameterProto
+        .internal_static_google_api_SystemParameter_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            SystemParameter.class, Builder.class);
+            com.google.api.SystemParameter.class, com.google.api.SystemParameter.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-  private volatile Object name_;
+  private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Define the name of the parameter, such as "api_key" . It is case sensitive.
    * 
* * string name = 1; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Define the name of the parameter, such as "api_key" . It is case sensitive.
    * 
* * string name = 1; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,42 +176,47 @@ public String getName() { } public static final int HTTP_HEADER_FIELD_NUMBER = 2; - private volatile Object httpHeader_; + private volatile java.lang.Object httpHeader_; /** + * + * *
    * Define the HTTP header name to use for the parameter. It is case
    * insensitive.
    * 
* * string http_header = 2; + * + * @return The httpHeader. */ - public String getHttpHeader() { - Object ref = httpHeader_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getHttpHeader() { + java.lang.Object ref = httpHeader_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); httpHeader_ = s; return s; } } /** + * + * *
    * Define the HTTP header name to use for the parameter. It is case
    * insensitive.
    * 
* * string http_header = 2; + * + * @return The bytes for httpHeader. */ - public com.google.protobuf.ByteString - getHttpHeaderBytes() { - Object ref = httpHeader_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getHttpHeaderBytes() { + java.lang.Object ref = httpHeader_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); httpHeader_ = b; return b; } else { @@ -188,42 +225,47 @@ public String getHttpHeader() { } public static final int URL_QUERY_PARAMETER_FIELD_NUMBER = 3; - private volatile Object urlQueryParameter_; + private volatile java.lang.Object urlQueryParameter_; /** + * + * *
    * Define the URL query parameter name to use for the parameter. It is case
    * sensitive.
    * 
* * string url_query_parameter = 3; + * + * @return The urlQueryParameter. */ - public String getUrlQueryParameter() { - Object ref = urlQueryParameter_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getUrlQueryParameter() { + java.lang.Object ref = urlQueryParameter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); urlQueryParameter_ = s; return s; } } /** + * + * *
    * Define the URL query parameter name to use for the parameter. It is case
    * sensitive.
    * 
* * string url_query_parameter = 3; + * + * @return The bytes for urlQueryParameter. */ - public com.google.protobuf.ByteString - getUrlQueryParameterBytes() { - Object ref = urlQueryParameter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getUrlQueryParameterBytes() { + java.lang.Object ref = urlQueryParameter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); urlQueryParameter_ = b; return b; } else { @@ -232,7 +274,8 @@ public String getUrlQueryParameter() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -242,9 +285,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -257,7 +299,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -277,27 +319,24 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof SystemParameter)) { + if (!(obj instanceof com.google.api.SystemParameter)) { return super.equals(obj); } - SystemParameter other = (SystemParameter) obj; + com.google.api.SystemParameter other = (com.google.api.SystemParameter) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getHttpHeader() - .equals(other.getHttpHeader())) return false; - if (!getUrlQueryParameter() - .equals(other.getUrlQueryParameter())) return false; + if (!getName().equals(other.getName())) return false; + if (!getHttpHeader().equals(other.getHttpHeader())) return false; + if (!getUrlQueryParameter().equals(other.getUrlQueryParameter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -315,97 +354,103 @@ public int hashCode() { return hash; } - public static SystemParameter parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.SystemParameter parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static SystemParameter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.SystemParameter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static SystemParameter parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.api.SystemParameter parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static SystemParameter parseFrom( + + public static com.google.api.SystemParameter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static SystemParameter parseFrom(byte[] data) + + public static com.google.api.SystemParameter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static SystemParameter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.SystemParameter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static SystemParameter parseFrom(java.io.InputStream input) + + public static com.google.api.SystemParameter 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 SystemParameter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.SystemParameter parseFrom( + 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 SystemParameter parseDelimitedFrom(java.io.InputStream input) + + public static com.google.api.SystemParameter 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 SystemParameter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.SystemParameter parseDelimitedFrom( + 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 SystemParameter parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.api.SystemParameter 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 SystemParameter parseFrom( + + public static com.google.api.SystemParameter 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(SystemParameter prototype) { + + public static Builder newBuilder(com.google.api.SystemParameter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Define a parameter's name and location. The parameter may be passed as either
    * an HTTP header or a URL query parameter, and if both are passed the behavior
@@ -414,21 +459,22 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.SystemParameter}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.SystemParameter)
       com.google.api.SystemParameterOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.api.SystemParameterProto.internal_static_google_api_SystemParameter_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.api.SystemParameterProto
+          .internal_static_google_api_SystemParameter_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.api.SystemParameterProto.internal_static_google_api_SystemParameter_fieldAccessorTable
+      return com.google.api.SystemParameterProto
+          .internal_static_google_api_SystemParameter_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              SystemParameter.class, Builder.class);
+              com.google.api.SystemParameter.class, com.google.api.SystemParameter.Builder.class);
     }
 
     // Construct using com.google.api.SystemParameter.newBuilder()
@@ -436,17 +482,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       name_ = "";
@@ -458,29 +503,29 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.api.SystemParameterProto.internal_static_google_api_SystemParameter_descriptor;
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.api.SystemParameterProto
+          .internal_static_google_api_SystemParameter_descriptor;
     }
 
-    @Override
-    public SystemParameter getDefaultInstanceForType() {
-      return SystemParameter.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.SystemParameter getDefaultInstanceForType() {
+      return com.google.api.SystemParameter.getDefaultInstance();
     }
 
-    @Override
-    public SystemParameter build() {
-      SystemParameter result = buildPartial();
+    @java.lang.Override
+    public com.google.api.SystemParameter build() {
+      com.google.api.SystemParameter result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public SystemParameter buildPartial() {
-      SystemParameter result = new SystemParameter(this);
+    @java.lang.Override
+    public com.google.api.SystemParameter buildPartial() {
+      com.google.api.SystemParameter result = new com.google.api.SystemParameter(this);
       result.name_ = name_;
       result.httpHeader_ = httpHeader_;
       result.urlQueryParameter_ = urlQueryParameter_;
@@ -488,50 +533,51 @@ public SystemParameter buildPartial() {
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof SystemParameter) {
-        return mergeFrom((SystemParameter)other);
+      if (other instanceof com.google.api.SystemParameter) {
+        return mergeFrom((com.google.api.SystemParameter) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(SystemParameter other) {
-      if (other == SystemParameter.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.SystemParameter other) {
+      if (other == com.google.api.SystemParameter.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -549,21 +595,21 @@ public Builder mergeFrom(SystemParameter other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      SystemParameter parsedMessage = null;
+      com.google.api.SystemParameter parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (SystemParameter) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.SystemParameter) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -573,40 +619,45 @@ public Builder mergeFrom(
       return this;
     }
 
-    private Object name_ = "";
+    private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Define the name of the parameter, such as "api_key" . It is case sensitive.
      * 
* * string name = 1; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Define the name of the parameter, such as "api_key" . It is case sensitive.
      * 
* * string name = 1; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -614,90 +665,107 @@ public String getName() { } } /** + * + * *
      * Define the name of the parameter, such as "api_key" . It is case sensitive.
      * 
* * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ - public Builder setName( - String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Define the name of the parameter, such as "api_key" . It is case sensitive.
      * 
* * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Define the name of the parameter, such as "api_key" . It is case sensitive.
      * 
* * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private Object httpHeader_ = ""; + private java.lang.Object httpHeader_ = ""; /** + * + * *
      * Define the HTTP header name to use for the parameter. It is case
      * insensitive.
      * 
* * string http_header = 2; + * + * @return The httpHeader. */ - public String getHttpHeader() { - Object ref = httpHeader_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getHttpHeader() { + java.lang.Object ref = httpHeader_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); httpHeader_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Define the HTTP header name to use for the parameter. It is case
      * insensitive.
      * 
* * string http_header = 2; + * + * @return The bytes for httpHeader. */ - public com.google.protobuf.ByteString - getHttpHeaderBytes() { - Object ref = httpHeader_; + public com.google.protobuf.ByteString getHttpHeaderBytes() { + java.lang.Object ref = httpHeader_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); httpHeader_ = b; return b; } else { @@ -705,93 +773,110 @@ public String getHttpHeader() { } } /** + * + * *
      * Define the HTTP header name to use for the parameter. It is case
      * insensitive.
      * 
* * string http_header = 2; + * + * @param value The httpHeader to set. + * @return This builder for chaining. */ - public Builder setHttpHeader( - String value) { + public Builder setHttpHeader(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + httpHeader_ = value; onChanged(); return this; } /** + * + * *
      * Define the HTTP header name to use for the parameter. It is case
      * insensitive.
      * 
* * string http_header = 2; + * + * @return This builder for chaining. */ public Builder clearHttpHeader() { - + httpHeader_ = getDefaultInstance().getHttpHeader(); onChanged(); return this; } /** + * + * *
      * Define the HTTP header name to use for the parameter. It is case
      * insensitive.
      * 
* * string http_header = 2; + * + * @param value The bytes for httpHeader to set. + * @return This builder for chaining. */ - public Builder setHttpHeaderBytes( - com.google.protobuf.ByteString value) { + public Builder setHttpHeaderBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + httpHeader_ = value; onChanged(); return this; } - private Object urlQueryParameter_ = ""; + private java.lang.Object urlQueryParameter_ = ""; /** + * + * *
      * Define the URL query parameter name to use for the parameter. It is case
      * sensitive.
      * 
* * string url_query_parameter = 3; + * + * @return The urlQueryParameter. */ - public String getUrlQueryParameter() { - Object ref = urlQueryParameter_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getUrlQueryParameter() { + java.lang.Object ref = urlQueryParameter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); urlQueryParameter_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Define the URL query parameter name to use for the parameter. It is case
      * sensitive.
      * 
* * string url_query_parameter = 3; + * + * @return The bytes for urlQueryParameter. */ - public com.google.protobuf.ByteString - getUrlQueryParameterBytes() { - Object ref = urlQueryParameter_; + public com.google.protobuf.ByteString getUrlQueryParameterBytes() { + java.lang.Object ref = urlQueryParameter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); urlQueryParameter_ = b; return b; } else { @@ -799,106 +884,116 @@ public String getUrlQueryParameter() { } } /** + * + * *
      * Define the URL query parameter name to use for the parameter. It is case
      * sensitive.
      * 
* * string url_query_parameter = 3; + * + * @param value The urlQueryParameter to set. + * @return This builder for chaining. */ - public Builder setUrlQueryParameter( - String value) { + public Builder setUrlQueryParameter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + urlQueryParameter_ = value; onChanged(); return this; } /** + * + * *
      * Define the URL query parameter name to use for the parameter. It is case
      * sensitive.
      * 
* * string url_query_parameter = 3; + * + * @return This builder for chaining. */ public Builder clearUrlQueryParameter() { - + urlQueryParameter_ = getDefaultInstance().getUrlQueryParameter(); onChanged(); return this; } /** + * + * *
      * Define the URL query parameter name to use for the parameter. It is case
      * sensitive.
      * 
* * string url_query_parameter = 3; + * + * @param value The bytes for urlQueryParameter to set. + * @return This builder for chaining. */ - public Builder setUrlQueryParameterBytes( - com.google.protobuf.ByteString value) { + public Builder setUrlQueryParameterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + urlQueryParameter_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.SystemParameter) } // @@protoc_insertion_point(class_scope:google.api.SystemParameter) - private static final SystemParameter DEFAULT_INSTANCE; + private static final com.google.api.SystemParameter DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new SystemParameter(); + DEFAULT_INSTANCE = new com.google.api.SystemParameter(); } - public static SystemParameter getDefaultInstance() { + public static com.google.api.SystemParameter getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public SystemParameter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SystemParameter(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SystemParameter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SystemParameter(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public SystemParameter getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.SystemParameter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/SystemParameterOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/SystemParameterOrBuilder.java index 2a956b36..6460d973 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/SystemParameterOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/SystemParameterOrBuilder.java @@ -1,67 +1,104 @@ +/* + * 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/system_parameter.proto package com.google.api; -public interface SystemParameterOrBuilder extends +public interface SystemParameterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.SystemParameter) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Define the name of the parameter, such as "api_key" . It is case sensitive.
    * 
* * string name = 1; + * + * @return The name. */ - String getName(); + java.lang.String getName(); /** + * + * *
    * Define the name of the parameter, such as "api_key" . It is case sensitive.
    * 
* * string name = 1; + * + * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Define the HTTP header name to use for the parameter. It is case
    * insensitive.
    * 
* * string http_header = 2; + * + * @return The httpHeader. */ - String getHttpHeader(); + java.lang.String getHttpHeader(); /** + * + * *
    * Define the HTTP header name to use for the parameter. It is case
    * insensitive.
    * 
* * string http_header = 2; + * + * @return The bytes for httpHeader. */ - com.google.protobuf.ByteString - getHttpHeaderBytes(); + com.google.protobuf.ByteString getHttpHeaderBytes(); /** + * + * *
    * Define the URL query parameter name to use for the parameter. It is case
    * sensitive.
    * 
* * string url_query_parameter = 3; + * + * @return The urlQueryParameter. */ - String getUrlQueryParameter(); + java.lang.String getUrlQueryParameter(); /** + * + * *
    * Define the URL query parameter name to use for the parameter. It is case
    * sensitive.
    * 
* * string url_query_parameter = 3; + * + * @return The bytes for urlQueryParameter. */ - com.google.protobuf.ByteString - getUrlQueryParameterBytes(); + com.google.protobuf.ByteString getUrlQueryParameterBytes(); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/SystemParameterProto.java b/proto-google-common-protos/src/main/java/com/google/api/SystemParameterProto.java index b8ac1d67..1d1b9c28 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/SystemParameterProto.java +++ b/proto-google-common-protos/src/main/java/com/google/api/SystemParameterProto.java @@ -1,3 +1,18 @@ +/* + * 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/system_parameter.proto @@ -5,81 +20,73 @@ public final class SystemParameterProto { private SystemParameterProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + 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_SystemParameters_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_SystemParameters_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_api_SystemParameters_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_api_SystemParameterRule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_SystemParameterRule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_api_SystemParameterRule_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_api_SystemParameter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_SystemParameter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_api_SystemParameter_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { - String[] descriptorData = { - "\n!google/api/system_parameter.proto\022\ngoo" + - "gle.api\"B\n\020SystemParameters\022.\n\005rules\030\001 \003" + - "(\0132\037.google.api.SystemParameterRule\"X\n\023S" + - "ystemParameterRule\022\020\n\010selector\030\001 \001(\t\022/\n\n" + - "parameters\030\002 \003(\0132\033.google.api.SystemPara" + - "meter\"Q\n\017SystemParameter\022\014\n\004name\030\001 \001(\t\022\023" + - "\n\013http_header\030\002 \001(\t\022\033\n\023url_query_paramet" + - "er\030\003 \001(\tBv\n\016com.google.apiB\024SystemParame" + - "terProtoP\001ZEgoogle.golang.org/genproto/g" + - "oogleapis/api/serviceconfig;serviceconfi" + - "g\242\002\004GAPIb\006proto3" + java.lang.String[] descriptorData = { + "\n!google/api/system_parameter.proto\022\ngoo" + + "gle.api\"B\n\020SystemParameters\022.\n\005rules\030\001 \003" + + "(\0132\037.google.api.SystemParameterRule\"X\n\023S" + + "ystemParameterRule\022\020\n\010selector\030\001 \001(\t\022/\n\n" + + "parameters\030\002 \003(\0132\033.google.api.SystemPara" + + "meter\"Q\n\017SystemParameter\022\014\n\004name\030\001 \001(\t\022\023" + + "\n\013http_header\030\002 \001(\t\022\033\n\023url_query_paramet" + + "er\030\003 \001(\tBv\n\016com.google.apiB\024SystemParame" + + "terProtoP\001ZEgoogle.golang.org/genproto/g" + + "oogleapis/api/serviceconfig;serviceconfi" + + "g\242\002\004GAPIb\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); internal_static_google_api_SystemParameters_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_api_SystemParameters_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_SystemParameters_descriptor, - new String[] { "Rules", }); + getDescriptor().getMessageTypes().get(0); + internal_static_google_api_SystemParameters_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_SystemParameters_descriptor, + new java.lang.String[] { + "Rules", + }); internal_static_google_api_SystemParameterRule_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_api_SystemParameterRule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_SystemParameterRule_descriptor, - new String[] { "Selector", "Parameters", }); + getDescriptor().getMessageTypes().get(1); + internal_static_google_api_SystemParameterRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_SystemParameterRule_descriptor, + new java.lang.String[] { + "Selector", "Parameters", + }); internal_static_google_api_SystemParameter_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_api_SystemParameter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_SystemParameter_descriptor, - new String[] { "Name", "HttpHeader", "UrlQueryParameter", }); + getDescriptor().getMessageTypes().get(2); + internal_static_google_api_SystemParameter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_SystemParameter_descriptor, + new java.lang.String[] { + "Name", "HttpHeader", "UrlQueryParameter", + }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRule.java b/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRule.java index ee345565..4931a87f 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRule.java +++ b/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRule.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/system_parameter.proto package com.google.api; /** + * + * *
  * Define a system parameter rule mapping system parameter definitions to
  * methods.
@@ -11,32 +28,39 @@
  *
  * Protobuf type {@code google.api.SystemParameterRule}
  */
-public  final class SystemParameterRule extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SystemParameterRule extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.SystemParameterRule)
     SystemParameterRuleOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SystemParameterRule.newBuilder() to construct.
   private SystemParameterRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SystemParameterRule() {
     selector_ = "";
     parameters_ = java.util.Collections.emptyList();
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new SystemParameterRule();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private SystemParameterRule(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -49,60 +73,65 @@ private SystemParameterRule(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            selector_ = s;
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              parameters_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
+              selector_ = s;
+              break;
             }
-            parameters_.add(
-                input.readMessage(SystemParameter.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                parameters_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              parameters_.add(
+                  input.readMessage(com.google.api.SystemParameter.parser(), extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
-      if (((mutable_bitField0_ & 0x00000002) != 0)) {
+      if (((mutable_bitField0_ & 0x00000001) != 0)) {
         parameters_ = java.util.Collections.unmodifiableList(parameters_);
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.api.SystemParameterProto.internal_static_google_api_SystemParameterRule_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.api.SystemParameterProto
+        .internal_static_google_api_SystemParameterRule_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.api.SystemParameterProto.internal_static_google_api_SystemParameterRule_fieldAccessorTable
+    return com.google.api.SystemParameterProto
+        .internal_static_google_api_SystemParameterRule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            SystemParameterRule.class, Builder.class);
+            com.google.api.SystemParameterRule.class,
+            com.google.api.SystemParameterRule.Builder.class);
   }
 
-  private int bitField0_;
   public static final int SELECTOR_FIELD_NUMBER = 1;
-  private volatile Object selector_;
+  private volatile java.lang.Object selector_;
   /**
+   *
+   *
    * 
    * Selects the methods to which this rule applies. Use '*' to indicate all
    * methods in all APIs.
@@ -110,20 +139,23 @@ private SystemParameterRule(
    * 
* * string selector = 1; + * + * @return The selector. */ - public String getSelector() { - Object ref = selector_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getSelector() { + java.lang.Object ref = selector_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); selector_ = s; return s; } } /** + * + * *
    * Selects the methods to which this rule applies. Use '*' to indicate all
    * methods in all APIs.
@@ -131,14 +163,14 @@ public String getSelector() {
    * 
* * string selector = 1; + * + * @return The bytes for selector. */ - public com.google.protobuf.ByteString - getSelectorBytes() { - Object ref = selector_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getSelectorBytes() { + java.lang.Object ref = selector_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); selector_ = b; return b; } else { @@ -147,8 +179,10 @@ public String getSelector() { } public static final int PARAMETERS_FIELD_NUMBER = 2; - private java.util.List parameters_; + private java.util.List parameters_; /** + * + * *
    * Define parameters. Multiple names may be defined for a parameter.
    * For a given method call, only one of them should be used. If multiple
@@ -159,10 +193,12 @@ public String getSelector() {
    *
    * repeated .google.api.SystemParameter parameters = 2;
    */
-  public java.util.List getParametersList() {
+  public java.util.List getParametersList() {
     return parameters_;
   }
   /**
+   *
+   *
    * 
    * Define parameters. Multiple names may be defined for a parameter.
    * For a given method call, only one of them should be used. If multiple
@@ -173,11 +209,13 @@ public java.util.List getParametersList() {
    *
    * repeated .google.api.SystemParameter parameters = 2;
    */
-  public java.util.List 
+  public java.util.List
       getParametersOrBuilderList() {
     return parameters_;
   }
   /**
+   *
+   *
    * 
    * Define parameters. Multiple names may be defined for a parameter.
    * For a given method call, only one of them should be used. If multiple
@@ -192,6 +230,8 @@ public int getParametersCount() {
     return parameters_.size();
   }
   /**
+   *
+   *
    * 
    * Define parameters. Multiple names may be defined for a parameter.
    * For a given method call, only one of them should be used. If multiple
@@ -202,10 +242,12 @@ public int getParametersCount() {
    *
    * repeated .google.api.SystemParameter parameters = 2;
    */
-  public SystemParameter getParameters(int index) {
+  public com.google.api.SystemParameter getParameters(int index) {
     return parameters_.get(index);
   }
   /**
+   *
+   *
    * 
    * Define parameters. Multiple names may be defined for a parameter.
    * For a given method call, only one of them should be used. If multiple
@@ -216,13 +258,13 @@ public SystemParameter getParameters(int index) {
    *
    * repeated .google.api.SystemParameter parameters = 2;
    */
-  public com.google.api.SystemParameterOrBuilder getParametersOrBuilder(
-      int index) {
+  public com.google.api.SystemParameterOrBuilder getParametersOrBuilder(int index) {
     return parameters_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-  @Override
+
+  @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
     if (isInitialized == 1) return true;
@@ -232,9 +274,8 @@ public final boolean isInitialized() {
     return true;
   }
 
-  @Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  @java.lang.Override
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!getSelectorBytes().isEmpty()) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selector_);
     }
@@ -244,7 +285,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     unknownFields.writeTo(output);
   }
 
-  @Override
+  @java.lang.Override
   public int getSerializedSize() {
     int size = memoizedSize;
     if (size != -1) return size;
@@ -254,33 +295,30 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, selector_);
     }
     for (int i = 0; i < parameters_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, parameters_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, parameters_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
     return size;
   }
 
-  @Override
-  public boolean equals(final Object obj) {
+  @java.lang.Override
+  public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
-    if (!(obj instanceof SystemParameterRule)) {
+    if (!(obj instanceof com.google.api.SystemParameterRule)) {
       return super.equals(obj);
     }
-    SystemParameterRule other = (SystemParameterRule) obj;
+    com.google.api.SystemParameterRule other = (com.google.api.SystemParameterRule) obj;
 
-    if (!getSelector()
-        .equals(other.getSelector())) return false;
-    if (!getParametersList()
-        .equals(other.getParametersList())) return false;
+    if (!getSelector().equals(other.getSelector())) return false;
+    if (!getParametersList().equals(other.getParametersList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
 
-  @Override
+  @java.lang.Override
   public int hashCode() {
     if (memoizedHashCode != 0) {
       return memoizedHashCode;
@@ -298,97 +336,103 @@ public int hashCode() {
     return hash;
   }
 
-  public static SystemParameterRule parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.api.SystemParameterRule parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static SystemParameterRule parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.SystemParameterRule parseFrom(
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static SystemParameterRule parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.api.SystemParameterRule parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static SystemParameterRule parseFrom(
+
+  public static com.google.api.SystemParameterRule parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static SystemParameterRule parseFrom(byte[] data)
+
+  public static com.google.api.SystemParameterRule parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static SystemParameterRule parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.SystemParameterRule parseFrom(
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static SystemParameterRule parseFrom(java.io.InputStream input)
+
+  public static com.google.api.SystemParameterRule 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 SystemParameterRule parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.SystemParameterRule parseFrom(
+      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 SystemParameterRule parseDelimitedFrom(java.io.InputStream input)
+
+  public static com.google.api.SystemParameterRule 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 SystemParameterRule parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.SystemParameterRule parseDelimitedFrom(
+      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 SystemParameterRule parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.api.SystemParameterRule parseFrom(
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
-  public static SystemParameterRule parseFrom(
+
+  public static com.google.api.SystemParameterRule 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();
   }
 
-  @Override
-  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(SystemParameterRule prototype) {
+
+  public static Builder newBuilder(com.google.api.SystemParameterRule prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-  @Override
+
+  @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);
   }
 
-  @Override
-  protected Builder newBuilderForType(
-      BuilderParent parent) {
+  @java.lang.Override
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Define a system parameter rule mapping system parameter definitions to
    * methods.
@@ -396,21 +440,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.SystemParameterRule}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.SystemParameterRule)
       com.google.api.SystemParameterRuleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.api.SystemParameterProto.internal_static_google_api_SystemParameterRule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.api.SystemParameterProto
+          .internal_static_google_api_SystemParameterRule_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.api.SystemParameterProto.internal_static_google_api_SystemParameterRule_fieldAccessorTable
+      return com.google.api.SystemParameterProto
+          .internal_static_google_api_SystemParameterRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              SystemParameterRule.class, Builder.class);
+              com.google.api.SystemParameterRule.class,
+              com.google.api.SystemParameterRule.Builder.class);
     }
 
     // Construct using com.google.api.SystemParameterRule.newBuilder()
@@ -418,115 +464,114 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getParametersFieldBuilder();
       }
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       selector_ = "";
 
       if (parametersBuilder_ == null) {
         parameters_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000002);
+        bitField0_ = (bitField0_ & ~0x00000001);
       } else {
         parametersBuilder_.clear();
       }
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.api.SystemParameterProto.internal_static_google_api_SystemParameterRule_descriptor;
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.api.SystemParameterProto
+          .internal_static_google_api_SystemParameterRule_descriptor;
     }
 
-    @Override
-    public SystemParameterRule getDefaultInstanceForType() {
-      return SystemParameterRule.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.SystemParameterRule getDefaultInstanceForType() {
+      return com.google.api.SystemParameterRule.getDefaultInstance();
     }
 
-    @Override
-    public SystemParameterRule build() {
-      SystemParameterRule result = buildPartial();
+    @java.lang.Override
+    public com.google.api.SystemParameterRule build() {
+      com.google.api.SystemParameterRule result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public SystemParameterRule buildPartial() {
-      SystemParameterRule result = new SystemParameterRule(this);
+    @java.lang.Override
+    public com.google.api.SystemParameterRule buildPartial() {
+      com.google.api.SystemParameterRule result = new com.google.api.SystemParameterRule(this);
       int from_bitField0_ = bitField0_;
-      int to_bitField0_ = 0;
       result.selector_ = selector_;
       if (parametersBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)) {
+        if (((bitField0_ & 0x00000001) != 0)) {
           parameters_ = java.util.Collections.unmodifiableList(parameters_);
-          bitField0_ = (bitField0_ & ~0x00000002);
+          bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.parameters_ = parameters_;
       } else {
         result.parameters_ = parametersBuilder_.build();
       }
-      result.bitField0_ = to_bitField0_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof SystemParameterRule) {
-        return mergeFrom((SystemParameterRule)other);
+      if (other instanceof com.google.api.SystemParameterRule) {
+        return mergeFrom((com.google.api.SystemParameterRule) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(SystemParameterRule other) {
-      if (other == SystemParameterRule.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.SystemParameterRule other) {
+      if (other == com.google.api.SystemParameterRule.getDefaultInstance()) return this;
       if (!other.getSelector().isEmpty()) {
         selector_ = other.selector_;
         onChanged();
@@ -535,7 +580,7 @@ public Builder mergeFrom(SystemParameterRule other) {
         if (!other.parameters_.isEmpty()) {
           if (parameters_.isEmpty()) {
             parameters_ = other.parameters_;
-            bitField0_ = (bitField0_ & ~0x00000002);
+            bitField0_ = (bitField0_ & ~0x00000001);
           } else {
             ensureParametersIsMutable();
             parameters_.addAll(other.parameters_);
@@ -548,10 +593,11 @@ public Builder mergeFrom(SystemParameterRule other) {
             parametersBuilder_.dispose();
             parametersBuilder_ = null;
             parameters_ = other.parameters_;
-            bitField0_ = (bitField0_ & ~0x00000002);
-            parametersBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getParametersFieldBuilder() : null;
+            bitField0_ = (bitField0_ & ~0x00000001);
+            parametersBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getParametersFieldBuilder()
+                    : null;
           } else {
             parametersBuilder_.addAllMessages(other.parameters_);
           }
@@ -562,21 +608,21 @@ public Builder mergeFrom(SystemParameterRule other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      SystemParameterRule parsedMessage = null;
+      com.google.api.SystemParameterRule parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (SystemParameterRule) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.SystemParameterRule) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -585,10 +631,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private Object selector_ = "";
+    private java.lang.Object selector_ = "";
     /**
+     *
+     *
      * 
      * Selects the methods to which this rule applies. Use '*' to indicate all
      * methods in all APIs.
@@ -596,20 +645,23 @@ public Builder mergeFrom(
      * 
* * string selector = 1; + * + * @return The selector. */ - public String getSelector() { - Object ref = selector_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getSelector() { + java.lang.Object ref = selector_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); selector_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Selects the methods to which this rule applies. Use '*' to indicate all
      * methods in all APIs.
@@ -617,14 +669,14 @@ public String getSelector() {
      * 
* * string selector = 1; + * + * @return The bytes for selector. */ - public com.google.protobuf.ByteString - getSelectorBytes() { - Object ref = selector_; + public com.google.protobuf.ByteString getSelectorBytes() { + java.lang.Object ref = selector_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); selector_ = b; return b; } else { @@ -632,6 +684,8 @@ public String getSelector() { } } /** + * + * *
      * Selects the methods to which this rule applies. Use '*' to indicate all
      * methods in all APIs.
@@ -639,18 +693,22 @@ public String getSelector() {
      * 
* * string selector = 1; + * + * @param value The selector to set. + * @return This builder for chaining. */ - public Builder setSelector( - String value) { + public Builder setSelector(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + selector_ = value; onChanged(); return this; } /** + * + * *
      * Selects the methods to which this rule applies. Use '*' to indicate all
      * methods in all APIs.
@@ -658,14 +716,18 @@ public Builder setSelector(
      * 
* * string selector = 1; + * + * @return This builder for chaining. */ public Builder clearSelector() { - + selector_ = getDefaultInstance().getSelector(); onChanged(); return this; } /** + * + * *
      * Selects the methods to which this rule applies. Use '*' to indicate all
      * methods in all APIs.
@@ -673,32 +735,40 @@ public Builder clearSelector() {
      * 
* * string selector = 1; + * + * @param value The bytes for selector to set. + * @return This builder for chaining. */ - public Builder setSelectorBytes( - com.google.protobuf.ByteString value) { + public Builder setSelectorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + selector_ = value; onChanged(); return this; } - private java.util.List parameters_ = - java.util.Collections.emptyList(); + private java.util.List parameters_ = + java.util.Collections.emptyList(); + private void ensureParametersIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - parameters_ = new java.util.ArrayList(parameters_); - bitField0_ |= 0x00000002; - } + if (!((bitField0_ & 0x00000001) != 0)) { + parameters_ = new java.util.ArrayList(parameters_); + bitField0_ |= 0x00000001; + } } private com.google.protobuf.RepeatedFieldBuilderV3< - SystemParameter, SystemParameter.Builder, com.google.api.SystemParameterOrBuilder> parametersBuilder_; + com.google.api.SystemParameter, + com.google.api.SystemParameter.Builder, + com.google.api.SystemParameterOrBuilder> + parametersBuilder_; /** + * + * *
      * Define parameters. Multiple names may be defined for a parameter.
      * For a given method call, only one of them should be used. If multiple
@@ -709,7 +779,7 @@ private void ensureParametersIsMutable() {
      *
      * repeated .google.api.SystemParameter parameters = 2;
      */
-    public java.util.List getParametersList() {
+    public java.util.List getParametersList() {
       if (parametersBuilder_ == null) {
         return java.util.Collections.unmodifiableList(parameters_);
       } else {
@@ -717,6 +787,8 @@ public java.util.List getParametersList() {
       }
     }
     /**
+     *
+     *
      * 
      * Define parameters. Multiple names may be defined for a parameter.
      * For a given method call, only one of them should be used. If multiple
@@ -735,6 +807,8 @@ public int getParametersCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Define parameters. Multiple names may be defined for a parameter.
      * For a given method call, only one of them should be used. If multiple
@@ -745,7 +819,7 @@ public int getParametersCount() {
      *
      * repeated .google.api.SystemParameter parameters = 2;
      */
-    public SystemParameter getParameters(int index) {
+    public com.google.api.SystemParameter getParameters(int index) {
       if (parametersBuilder_ == null) {
         return parameters_.get(index);
       } else {
@@ -753,6 +827,8 @@ public SystemParameter getParameters(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Define parameters. Multiple names may be defined for a parameter.
      * For a given method call, only one of them should be used. If multiple
@@ -763,8 +839,7 @@ public SystemParameter getParameters(int index) {
      *
      * repeated .google.api.SystemParameter parameters = 2;
      */
-    public Builder setParameters(
-        int index, SystemParameter value) {
+    public Builder setParameters(int index, com.google.api.SystemParameter value) {
       if (parametersBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -778,6 +853,8 @@ public Builder setParameters(
       return this;
     }
     /**
+     *
+     *
      * 
      * Define parameters. Multiple names may be defined for a parameter.
      * For a given method call, only one of them should be used. If multiple
@@ -789,7 +866,7 @@ public Builder setParameters(
      * repeated .google.api.SystemParameter parameters = 2;
      */
     public Builder setParameters(
-        int index, SystemParameter.Builder builderForValue) {
+        int index, com.google.api.SystemParameter.Builder builderForValue) {
       if (parametersBuilder_ == null) {
         ensureParametersIsMutable();
         parameters_.set(index, builderForValue.build());
@@ -800,6 +877,8 @@ public Builder setParameters(
       return this;
     }
     /**
+     *
+     *
      * 
      * Define parameters. Multiple names may be defined for a parameter.
      * For a given method call, only one of them should be used. If multiple
@@ -810,7 +889,7 @@ public Builder setParameters(
      *
      * repeated .google.api.SystemParameter parameters = 2;
      */
-    public Builder addParameters(SystemParameter value) {
+    public Builder addParameters(com.google.api.SystemParameter value) {
       if (parametersBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -824,6 +903,8 @@ public Builder addParameters(SystemParameter value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Define parameters. Multiple names may be defined for a parameter.
      * For a given method call, only one of them should be used. If multiple
@@ -834,8 +915,7 @@ public Builder addParameters(SystemParameter value) {
      *
      * repeated .google.api.SystemParameter parameters = 2;
      */
-    public Builder addParameters(
-        int index, SystemParameter value) {
+    public Builder addParameters(int index, com.google.api.SystemParameter value) {
       if (parametersBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -849,6 +929,8 @@ public Builder addParameters(
       return this;
     }
     /**
+     *
+     *
      * 
      * Define parameters. Multiple names may be defined for a parameter.
      * For a given method call, only one of them should be used. If multiple
@@ -859,8 +941,7 @@ public Builder addParameters(
      *
      * repeated .google.api.SystemParameter parameters = 2;
      */
-    public Builder addParameters(
-        SystemParameter.Builder builderForValue) {
+    public Builder addParameters(com.google.api.SystemParameter.Builder builderForValue) {
       if (parametersBuilder_ == null) {
         ensureParametersIsMutable();
         parameters_.add(builderForValue.build());
@@ -871,6 +952,8 @@ public Builder addParameters(
       return this;
     }
     /**
+     *
+     *
      * 
      * Define parameters. Multiple names may be defined for a parameter.
      * For a given method call, only one of them should be used. If multiple
@@ -882,7 +965,7 @@ public Builder addParameters(
      * repeated .google.api.SystemParameter parameters = 2;
      */
     public Builder addParameters(
-        int index, SystemParameter.Builder builderForValue) {
+        int index, com.google.api.SystemParameter.Builder builderForValue) {
       if (parametersBuilder_ == null) {
         ensureParametersIsMutable();
         parameters_.add(index, builderForValue.build());
@@ -893,6 +976,8 @@ public Builder addParameters(
       return this;
     }
     /**
+     *
+     *
      * 
      * Define parameters. Multiple names may be defined for a parameter.
      * For a given method call, only one of them should be used. If multiple
@@ -904,11 +989,10 @@ public Builder addParameters(
      * repeated .google.api.SystemParameter parameters = 2;
      */
     public Builder addAllParameters(
-        Iterable values) {
+        java.lang.Iterable values) {
       if (parametersBuilder_ == null) {
         ensureParametersIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, parameters_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameters_);
         onChanged();
       } else {
         parametersBuilder_.addAllMessages(values);
@@ -916,6 +1000,8 @@ public Builder addAllParameters(
       return this;
     }
     /**
+     *
+     *
      * 
      * Define parameters. Multiple names may be defined for a parameter.
      * For a given method call, only one of them should be used. If multiple
@@ -929,7 +1015,7 @@ public Builder addAllParameters(
     public Builder clearParameters() {
       if (parametersBuilder_ == null) {
         parameters_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000002);
+        bitField0_ = (bitField0_ & ~0x00000001);
         onChanged();
       } else {
         parametersBuilder_.clear();
@@ -937,6 +1023,8 @@ public Builder clearParameters() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Define parameters. Multiple names may be defined for a parameter.
      * For a given method call, only one of them should be used. If multiple
@@ -958,6 +1046,8 @@ public Builder removeParameters(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Define parameters. Multiple names may be defined for a parameter.
      * For a given method call, only one of them should be used. If multiple
@@ -968,11 +1058,12 @@ public Builder removeParameters(int index) {
      *
      * repeated .google.api.SystemParameter parameters = 2;
      */
-    public SystemParameter.Builder getParametersBuilder(
-        int index) {
+    public com.google.api.SystemParameter.Builder getParametersBuilder(int index) {
       return getParametersFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Define parameters. Multiple names may be defined for a parameter.
      * For a given method call, only one of them should be used. If multiple
@@ -983,14 +1074,16 @@ public SystemParameter.Builder getParametersBuilder(
      *
      * repeated .google.api.SystemParameter parameters = 2;
      */
-    public com.google.api.SystemParameterOrBuilder getParametersOrBuilder(
-        int index) {
+    public com.google.api.SystemParameterOrBuilder getParametersOrBuilder(int index) {
       if (parametersBuilder_ == null) {
-        return parameters_.get(index);  } else {
+        return parameters_.get(index);
+      } else {
         return parametersBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Define parameters. Multiple names may be defined for a parameter.
      * For a given method call, only one of them should be used. If multiple
@@ -1001,8 +1094,8 @@ public com.google.api.SystemParameterOrBuilder getParametersOrBuilder(
      *
      * repeated .google.api.SystemParameter parameters = 2;
      */
-    public java.util.List 
-         getParametersOrBuilderList() {
+    public java.util.List
+        getParametersOrBuilderList() {
       if (parametersBuilder_ != null) {
         return parametersBuilder_.getMessageOrBuilderList();
       } else {
@@ -1010,6 +1103,8 @@ public com.google.api.SystemParameterOrBuilder getParametersOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Define parameters. Multiple names may be defined for a parameter.
      * For a given method call, only one of them should be used. If multiple
@@ -1020,11 +1115,13 @@ public com.google.api.SystemParameterOrBuilder getParametersOrBuilder(
      *
      * repeated .google.api.SystemParameter parameters = 2;
      */
-    public SystemParameter.Builder addParametersBuilder() {
-      return getParametersFieldBuilder().addBuilder(
-          SystemParameter.getDefaultInstance());
+    public com.google.api.SystemParameter.Builder addParametersBuilder() {
+      return getParametersFieldBuilder()
+          .addBuilder(com.google.api.SystemParameter.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Define parameters. Multiple names may be defined for a parameter.
      * For a given method call, only one of them should be used. If multiple
@@ -1035,12 +1132,13 @@ public SystemParameter.Builder addParametersBuilder() {
      *
      * repeated .google.api.SystemParameter parameters = 2;
      */
-    public SystemParameter.Builder addParametersBuilder(
-        int index) {
-      return getParametersFieldBuilder().addBuilder(
-          index, SystemParameter.getDefaultInstance());
+    public com.google.api.SystemParameter.Builder addParametersBuilder(int index) {
+      return getParametersFieldBuilder()
+          .addBuilder(index, com.google.api.SystemParameter.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Define parameters. Multiple names may be defined for a parameter.
      * For a given method call, only one of them should be used. If multiple
@@ -1051,74 +1149,74 @@ public SystemParameter.Builder addParametersBuilder(
      *
      * repeated .google.api.SystemParameter parameters = 2;
      */
-    public java.util.List
-         getParametersBuilderList() {
+    public java.util.List getParametersBuilderList() {
       return getParametersFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        SystemParameter, SystemParameter.Builder, com.google.api.SystemParameterOrBuilder>
+            com.google.api.SystemParameter,
+            com.google.api.SystemParameter.Builder,
+            com.google.api.SystemParameterOrBuilder>
         getParametersFieldBuilder() {
       if (parametersBuilder_ == null) {
-        parametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            SystemParameter, SystemParameter.Builder, com.google.api.SystemParameterOrBuilder>(
-                parameters_,
-                ((bitField0_ & 0x00000002) != 0),
-                getParentForChildren(),
-                isClean());
+        parametersBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.api.SystemParameter,
+                com.google.api.SystemParameter.Builder,
+                com.google.api.SystemParameterOrBuilder>(
+                parameters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         parameters_ = null;
       }
       return parametersBuilder_;
     }
-    @Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+
+    @java.lang.Override
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
-    @Override
+    @java.lang.Override
     public final Builder mergeUnknownFields(
         final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.api.SystemParameterRule)
   }
 
   // @@protoc_insertion_point(class_scope:google.api.SystemParameterRule)
-  private static final SystemParameterRule DEFAULT_INSTANCE;
+  private static final com.google.api.SystemParameterRule DEFAULT_INSTANCE;
+
   static {
-    DEFAULT_INSTANCE = new SystemParameterRule();
+    DEFAULT_INSTANCE = new com.google.api.SystemParameterRule();
   }
 
-  public static SystemParameterRule getDefaultInstance() {
+  public static com.google.api.SystemParameterRule getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @Override
-    public SystemParameterRule parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new SystemParameterRule(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SystemParameterRule parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new SystemParameterRule(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
   }
 
-  @Override
+  @java.lang.Override
   public com.google.protobuf.Parser getParserForType() {
     return PARSER;
   }
 
-  @Override
-  public SystemParameterRule getDefaultInstanceForType() {
+  @java.lang.Override
+  public com.google.api.SystemParameterRule getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRuleOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRuleOrBuilder.java
index 0598a603..cfdbef70 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRuleOrBuilder.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRuleOrBuilder.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/system_parameter.proto
 
 package com.google.api;
 
-public interface SystemParameterRuleOrBuilder extends
+public interface SystemParameterRuleOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.api.SystemParameterRule)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Selects the methods to which this rule applies. Use '*' to indicate all
    * methods in all APIs.
@@ -15,9 +33,13 @@ public interface SystemParameterRuleOrBuilder extends
    * 
* * string selector = 1; + * + * @return The selector. */ - String getSelector(); + java.lang.String getSelector(); /** + * + * *
    * Selects the methods to which this rule applies. Use '*' to indicate all
    * methods in all APIs.
@@ -25,11 +47,14 @@ public interface SystemParameterRuleOrBuilder extends
    * 
* * string selector = 1; + * + * @return The bytes for selector. */ - com.google.protobuf.ByteString - getSelectorBytes(); + com.google.protobuf.ByteString getSelectorBytes(); /** + * + * *
    * Define parameters. Multiple names may be defined for a parameter.
    * For a given method call, only one of them should be used. If multiple
@@ -40,9 +65,10 @@ public interface SystemParameterRuleOrBuilder extends
    *
    * repeated .google.api.SystemParameter parameters = 2;
    */
-  java.util.List
-      getParametersList();
+  java.util.List getParametersList();
   /**
+   *
+   *
    * 
    * Define parameters. Multiple names may be defined for a parameter.
    * For a given method call, only one of them should be used. If multiple
@@ -53,8 +79,10 @@ public interface SystemParameterRuleOrBuilder extends
    *
    * repeated .google.api.SystemParameter parameters = 2;
    */
-  SystemParameter getParameters(int index);
+  com.google.api.SystemParameter getParameters(int index);
   /**
+   *
+   *
    * 
    * Define parameters. Multiple names may be defined for a parameter.
    * For a given method call, only one of them should be used. If multiple
@@ -67,6 +95,8 @@ public interface SystemParameterRuleOrBuilder extends
    */
   int getParametersCount();
   /**
+   *
+   *
    * 
    * Define parameters. Multiple names may be defined for a parameter.
    * For a given method call, only one of them should be used. If multiple
@@ -77,9 +107,10 @@ public interface SystemParameterRuleOrBuilder extends
    *
    * repeated .google.api.SystemParameter parameters = 2;
    */
-  java.util.List
-      getParametersOrBuilderList();
+  java.util.List getParametersOrBuilderList();
   /**
+   *
+   *
    * 
    * Define parameters. Multiple names may be defined for a parameter.
    * For a given method call, only one of them should be used. If multiple
@@ -90,6 +121,5 @@ public interface SystemParameterRuleOrBuilder extends
    *
    * repeated .google.api.SystemParameter parameters = 2;
    */
-  SystemParameterOrBuilder getParametersOrBuilder(
-      int index);
+  com.google.api.SystemParameterOrBuilder getParametersOrBuilder(int index);
 }
diff --git a/proto-google-common-protos/src/main/java/com/google/api/SystemParameters.java b/proto-google-common-protos/src/main/java/com/google/api/SystemParameters.java
index 4a131b4b..3b70e40b 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/SystemParameters.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/SystemParameters.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/system_parameter.proto
 
 package com.google.api;
 
 /**
+ *
+ *
  * 
  * ### System parameter configuration
  * A system parameter is a special kind of parameter defined by the API
@@ -14,31 +31,38 @@
  *
  * Protobuf type {@code google.api.SystemParameters}
  */
-public  final class SystemParameters extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SystemParameters extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.SystemParameters)
     SystemParametersOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SystemParameters.newBuilder() to construct.
   private SystemParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SystemParameters() {
     rules_ = java.util.Collections.emptyList();
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new SystemParameters();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private SystemParameters(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -51,29 +75,30 @@ private SystemParameters(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              rules_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                rules_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              rules_.add(
+                  input.readMessage(
+                      com.google.api.SystemParameterRule.parser(), extensionRegistry));
+              break;
             }
-            rules_.add(
-                input.readMessage(com.google.api.SystemParameterRule.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         rules_ = java.util.Collections.unmodifiableList(rules_);
@@ -82,22 +107,26 @@ private SystemParameters(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.api.SystemParameterProto.internal_static_google_api_SystemParameters_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.api.SystemParameterProto
+        .internal_static_google_api_SystemParameters_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.api.SystemParameterProto.internal_static_google_api_SystemParameters_fieldAccessorTable
+    return com.google.api.SystemParameterProto
+        .internal_static_google_api_SystemParameters_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            SystemParameters.class, Builder.class);
+            com.google.api.SystemParameters.class, com.google.api.SystemParameters.Builder.class);
   }
 
   public static final int RULES_FIELD_NUMBER = 1;
   private java.util.List rules_;
   /**
+   *
+   *
    * 
    * Define system parameters.
    * The parameters defined here will override the default parameters
@@ -129,6 +158,8 @@ public java.util.List getRulesList() {
     return rules_;
   }
   /**
+   *
+   *
    * 
    * Define system parameters.
    * The parameters defined here will override the default parameters
@@ -156,11 +187,13 @@ public java.util.List getRulesList() {
    *
    * repeated .google.api.SystemParameterRule rules = 1;
    */
-  public java.util.List 
+  public java.util.List
       getRulesOrBuilderList() {
     return rules_;
   }
   /**
+   *
+   *
    * 
    * Define system parameters.
    * The parameters defined here will override the default parameters
@@ -192,6 +225,8 @@ public int getRulesCount() {
     return rules_.size();
   }
   /**
+   *
+   *
    * 
    * Define system parameters.
    * The parameters defined here will override the default parameters
@@ -223,6 +258,8 @@ public com.google.api.SystemParameterRule getRules(int index) {
     return rules_.get(index);
   }
   /**
+   *
+   *
    * 
    * Define system parameters.
    * The parameters defined here will override the default parameters
@@ -250,13 +287,13 @@ public com.google.api.SystemParameterRule getRules(int index) {
    *
    * repeated .google.api.SystemParameterRule rules = 1;
    */
-  public com.google.api.SystemParameterRuleOrBuilder getRulesOrBuilder(
-      int index) {
+  public com.google.api.SystemParameterRuleOrBuilder getRulesOrBuilder(int index) {
     return rules_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-  @Override
+
+  @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
     if (isInitialized == 1) return true;
@@ -266,47 +303,44 @@ public final boolean isInitialized() {
     return true;
   }
 
-  @Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  @java.lang.Override
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < rules_.size(); i++) {
       output.writeMessage(1, rules_.get(i));
     }
     unknownFields.writeTo(output);
   }
 
-  @Override
+  @java.lang.Override
   public int getSerializedSize() {
     int size = memoizedSize;
     if (size != -1) return size;
 
     size = 0;
     for (int i = 0; i < rules_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, rules_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, rules_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
     return size;
   }
 
-  @Override
-  public boolean equals(final Object obj) {
+  @java.lang.Override
+  public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
-    if (!(obj instanceof SystemParameters)) {
+    if (!(obj instanceof com.google.api.SystemParameters)) {
       return super.equals(obj);
     }
-    SystemParameters other = (SystemParameters) obj;
+    com.google.api.SystemParameters other = (com.google.api.SystemParameters) obj;
 
-    if (!getRulesList()
-        .equals(other.getRulesList())) return false;
+    if (!getRulesList().equals(other.getRulesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
 
-  @Override
+  @java.lang.Override
   public int hashCode() {
     if (memoizedHashCode != 0) {
       return memoizedHashCode;
@@ -322,97 +356,103 @@ public int hashCode() {
     return hash;
   }
 
-  public static SystemParameters parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.api.SystemParameters parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static SystemParameters parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.SystemParameters parseFrom(
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static SystemParameters parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.api.SystemParameters parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static SystemParameters parseFrom(
+
+  public static com.google.api.SystemParameters parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static SystemParameters parseFrom(byte[] data)
+
+  public static com.google.api.SystemParameters parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static SystemParameters parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.SystemParameters parseFrom(
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static SystemParameters parseFrom(java.io.InputStream input)
+
+  public static com.google.api.SystemParameters 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 SystemParameters parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.SystemParameters parseFrom(
+      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 SystemParameters parseDelimitedFrom(java.io.InputStream input)
+
+  public static com.google.api.SystemParameters 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 SystemParameters parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.api.SystemParameters parseDelimitedFrom(
+      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 SystemParameters parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.api.SystemParameters parseFrom(
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
-  public static SystemParameters parseFrom(
+
+  public static com.google.api.SystemParameters 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();
   }
 
-  @Override
-  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(SystemParameters prototype) {
+
+  public static Builder newBuilder(com.google.api.SystemParameters prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-  @Override
+
+  @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);
   }
 
-  @Override
-  protected Builder newBuilderForType(
-      BuilderParent parent) {
+  @java.lang.Override
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * ### System parameter configuration
    * A system parameter is a special kind of parameter defined by the API
@@ -423,21 +463,22 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.SystemParameters}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.SystemParameters)
       com.google.api.SystemParametersOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.api.SystemParameterProto.internal_static_google_api_SystemParameters_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.api.SystemParameterProto
+          .internal_static_google_api_SystemParameters_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.api.SystemParameterProto.internal_static_google_api_SystemParameters_fieldAccessorTable
+      return com.google.api.SystemParameterProto
+          .internal_static_google_api_SystemParameters_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              SystemParameters.class, Builder.class);
+              com.google.api.SystemParameters.class, com.google.api.SystemParameters.Builder.class);
     }
 
     // Construct using com.google.api.SystemParameters.newBuilder()
@@ -445,18 +486,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getRulesFieldBuilder();
       }
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       if (rulesBuilder_ == null) {
@@ -468,29 +509,29 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.api.SystemParameterProto.internal_static_google_api_SystemParameters_descriptor;
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.api.SystemParameterProto
+          .internal_static_google_api_SystemParameters_descriptor;
     }
 
-    @Override
-    public SystemParameters getDefaultInstanceForType() {
-      return SystemParameters.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.SystemParameters getDefaultInstanceForType() {
+      return com.google.api.SystemParameters.getDefaultInstance();
     }
 
-    @Override
-    public SystemParameters build() {
-      SystemParameters result = buildPartial();
+    @java.lang.Override
+    public com.google.api.SystemParameters build() {
+      com.google.api.SystemParameters result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public SystemParameters buildPartial() {
-      SystemParameters result = new SystemParameters(this);
+    @java.lang.Override
+    public com.google.api.SystemParameters buildPartial() {
+      com.google.api.SystemParameters result = new com.google.api.SystemParameters(this);
       int from_bitField0_ = bitField0_;
       if (rulesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -505,50 +546,51 @@ public SystemParameters buildPartial() {
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof SystemParameters) {
-        return mergeFrom((SystemParameters)other);
+      if (other instanceof com.google.api.SystemParameters) {
+        return mergeFrom((com.google.api.SystemParameters) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(SystemParameters other) {
-      if (other == SystemParameters.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.SystemParameters other) {
+      if (other == com.google.api.SystemParameters.getDefaultInstance()) return this;
       if (rulesBuilder_ == null) {
         if (!other.rules_.isEmpty()) {
           if (rules_.isEmpty()) {
@@ -567,9 +609,10 @@ public Builder mergeFrom(SystemParameters 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_);
           }
@@ -580,21 +623,21 @@ public Builder mergeFrom(SystemParameters other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      SystemParameters parsedMessage = null;
+      com.google.api.SystemParameters parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (SystemParameters) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.SystemParameters) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -603,21 +646,28 @@ public Builder mergeFrom(
       }
       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.SystemParameterRule, com.google.api.SystemParameterRule.Builder, com.google.api.SystemParameterRuleOrBuilder> rulesBuilder_;
+            com.google.api.SystemParameterRule,
+            com.google.api.SystemParameterRule.Builder,
+            com.google.api.SystemParameterRuleOrBuilder>
+        rulesBuilder_;
 
     /**
+     *
+     *
      * 
      * Define system parameters.
      * The parameters defined here will override the default parameters
@@ -653,6 +703,8 @@ public java.util.List getRulesList() {
       }
     }
     /**
+     *
+     *
      * 
      * Define system parameters.
      * The parameters defined here will override the default parameters
@@ -688,6 +740,8 @@ public int getRulesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Define system parameters.
      * The parameters defined here will override the default parameters
@@ -723,6 +777,8 @@ public com.google.api.SystemParameterRule getRules(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Define system parameters.
      * The parameters defined here will override the default parameters
@@ -750,8 +806,7 @@ public com.google.api.SystemParameterRule getRules(int index) {
      *
      * repeated .google.api.SystemParameterRule rules = 1;
      */
-    public Builder setRules(
-        int index, com.google.api.SystemParameterRule value) {
+    public Builder setRules(int index, com.google.api.SystemParameterRule value) {
       if (rulesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -765,6 +820,8 @@ public Builder setRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * Define system parameters.
      * The parameters defined here will override the default parameters
@@ -792,8 +849,7 @@ public Builder setRules(
      *
      * repeated .google.api.SystemParameterRule rules = 1;
      */
-    public Builder setRules(
-        int index, com.google.api.SystemParameterRule.Builder builderForValue) {
+    public Builder setRules(int index, com.google.api.SystemParameterRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.set(index, builderForValue.build());
@@ -804,6 +860,8 @@ public Builder setRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * Define system parameters.
      * The parameters defined here will override the default parameters
@@ -845,6 +903,8 @@ public Builder addRules(com.google.api.SystemParameterRule value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Define system parameters.
      * The parameters defined here will override the default parameters
@@ -872,8 +932,7 @@ public Builder addRules(com.google.api.SystemParameterRule value) {
      *
      * repeated .google.api.SystemParameterRule rules = 1;
      */
-    public Builder addRules(
-        int index, com.google.api.SystemParameterRule value) {
+    public Builder addRules(int index, com.google.api.SystemParameterRule value) {
       if (rulesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -887,6 +946,8 @@ public Builder addRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * Define system parameters.
      * The parameters defined here will override the default parameters
@@ -914,8 +975,7 @@ public Builder addRules(
      *
      * repeated .google.api.SystemParameterRule rules = 1;
      */
-    public Builder addRules(
-        com.google.api.SystemParameterRule.Builder builderForValue) {
+    public Builder addRules(com.google.api.SystemParameterRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.add(builderForValue.build());
@@ -926,6 +986,8 @@ public Builder addRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * Define system parameters.
      * The parameters defined here will override the default parameters
@@ -953,8 +1015,7 @@ public Builder addRules(
      *
      * repeated .google.api.SystemParameterRule rules = 1;
      */
-    public Builder addRules(
-        int index, com.google.api.SystemParameterRule.Builder builderForValue) {
+    public Builder addRules(int index, com.google.api.SystemParameterRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.add(index, builderForValue.build());
@@ -965,6 +1026,8 @@ public Builder addRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * Define system parameters.
      * The parameters defined here will override the default parameters
@@ -993,11 +1056,10 @@ public Builder addRules(
      * repeated .google.api.SystemParameterRule rules = 1;
      */
     public Builder addAllRules(
-        Iterable values) {
+        java.lang.Iterable 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);
@@ -1005,6 +1067,8 @@ public Builder addAllRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * Define system parameters.
      * The parameters defined here will override the default parameters
@@ -1043,6 +1107,8 @@ public Builder clearRules() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Define system parameters.
      * The parameters defined here will override the default parameters
@@ -1081,6 +1147,8 @@ public Builder removeRules(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Define system parameters.
      * The parameters defined here will override the default parameters
@@ -1108,11 +1176,12 @@ public Builder removeRules(int index) {
      *
      * repeated .google.api.SystemParameterRule rules = 1;
      */
-    public com.google.api.SystemParameterRule.Builder getRulesBuilder(
-        int index) {
+    public com.google.api.SystemParameterRule.Builder getRulesBuilder(int index) {
       return getRulesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Define system parameters.
      * The parameters defined here will override the default parameters
@@ -1140,14 +1209,16 @@ public com.google.api.SystemParameterRule.Builder getRulesBuilder(
      *
      * repeated .google.api.SystemParameterRule rules = 1;
      */
-    public com.google.api.SystemParameterRuleOrBuilder getRulesOrBuilder(
-        int index) {
+    public com.google.api.SystemParameterRuleOrBuilder getRulesOrBuilder(int index) {
       if (rulesBuilder_ == null) {
-        return rules_.get(index);  } else {
+        return rules_.get(index);
+      } else {
         return rulesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Define system parameters.
      * The parameters defined here will override the default parameters
@@ -1175,8 +1246,8 @@ public com.google.api.SystemParameterRuleOrBuilder getRulesOrBuilder(
      *
      * repeated .google.api.SystemParameterRule rules = 1;
      */
-    public java.util.List 
-         getRulesOrBuilderList() {
+    public java.util.List
+        getRulesOrBuilderList() {
       if (rulesBuilder_ != null) {
         return rulesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1184,6 +1255,8 @@ public com.google.api.SystemParameterRuleOrBuilder getRulesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Define system parameters.
      * The parameters defined here will override the default parameters
@@ -1212,10 +1285,12 @@ public com.google.api.SystemParameterRuleOrBuilder getRulesOrBuilder(
      * repeated .google.api.SystemParameterRule rules = 1;
      */
     public com.google.api.SystemParameterRule.Builder addRulesBuilder() {
-      return getRulesFieldBuilder().addBuilder(
-          com.google.api.SystemParameterRule.getDefaultInstance());
+      return getRulesFieldBuilder()
+          .addBuilder(com.google.api.SystemParameterRule.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Define system parameters.
      * The parameters defined here will override the default parameters
@@ -1243,12 +1318,13 @@ public com.google.api.SystemParameterRule.Builder addRulesBuilder() {
      *
      * repeated .google.api.SystemParameterRule rules = 1;
      */
-    public com.google.api.SystemParameterRule.Builder addRulesBuilder(
-        int index) {
-      return getRulesFieldBuilder().addBuilder(
-          index, com.google.api.SystemParameterRule.getDefaultInstance());
+    public com.google.api.SystemParameterRule.Builder addRulesBuilder(int index) {
+      return getRulesFieldBuilder()
+          .addBuilder(index, com.google.api.SystemParameterRule.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Define system parameters.
      * The parameters defined here will override the default parameters
@@ -1276,74 +1352,74 @@ public com.google.api.SystemParameterRule.Builder addRulesBuilder(
      *
      * repeated .google.api.SystemParameterRule rules = 1;
      */
-    public java.util.List 
-         getRulesBuilderList() {
+    public java.util.List getRulesBuilderList() {
       return getRulesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.api.SystemParameterRule, com.google.api.SystemParameterRule.Builder, com.google.api.SystemParameterRuleOrBuilder> 
+            com.google.api.SystemParameterRule,
+            com.google.api.SystemParameterRule.Builder,
+            com.google.api.SystemParameterRuleOrBuilder>
         getRulesFieldBuilder() {
       if (rulesBuilder_ == null) {
-        rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.api.SystemParameterRule, com.google.api.SystemParameterRule.Builder, com.google.api.SystemParameterRuleOrBuilder>(
-                rules_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        rulesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.api.SystemParameterRule,
+                com.google.api.SystemParameterRule.Builder,
+                com.google.api.SystemParameterRuleOrBuilder>(
+                rules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         rules_ = null;
       }
       return rulesBuilder_;
     }
-    @Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+
+    @java.lang.Override
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
-    @Override
+    @java.lang.Override
     public final Builder mergeUnknownFields(
         final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.api.SystemParameters)
   }
 
   // @@protoc_insertion_point(class_scope:google.api.SystemParameters)
-  private static final SystemParameters DEFAULT_INSTANCE;
+  private static final com.google.api.SystemParameters DEFAULT_INSTANCE;
+
   static {
-    DEFAULT_INSTANCE = new SystemParameters();
+    DEFAULT_INSTANCE = new com.google.api.SystemParameters();
   }
 
-  public static SystemParameters getDefaultInstance() {
+  public static com.google.api.SystemParameters getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @Override
-    public SystemParameters parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new SystemParameters(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SystemParameters parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new SystemParameters(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
   }
 
-  @Override
+  @java.lang.Override
   public com.google.protobuf.Parser getParserForType() {
     return PARSER;
   }
 
-  @Override
-  public SystemParameters getDefaultInstanceForType() {
+  @java.lang.Override
+  public com.google.api.SystemParameters getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-common-protos/src/main/java/com/google/api/SystemParametersOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/SystemParametersOrBuilder.java
index e0abc600..a9898041 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/SystemParametersOrBuilder.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/SystemParametersOrBuilder.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/system_parameter.proto
 
 package com.google.api;
 
-public interface SystemParametersOrBuilder extends
+public interface SystemParametersOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.api.SystemParameters)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Define system parameters.
    * The parameters defined here will override the default parameters
@@ -35,9 +53,10 @@ public interface SystemParametersOrBuilder extends
    *
    * repeated .google.api.SystemParameterRule rules = 1;
    */
-  java.util.List
-      getRulesList();
+  java.util.List getRulesList();
   /**
+   *
+   *
    * 
    * Define system parameters.
    * The parameters defined here will override the default parameters
@@ -65,8 +84,10 @@ public interface SystemParametersOrBuilder extends
    *
    * repeated .google.api.SystemParameterRule rules = 1;
    */
-  SystemParameterRule getRules(int index);
+  com.google.api.SystemParameterRule getRules(int index);
   /**
+   *
+   *
    * 
    * Define system parameters.
    * The parameters defined here will override the default parameters
@@ -96,6 +117,8 @@ public interface SystemParametersOrBuilder extends
    */
   int getRulesCount();
   /**
+   *
+   *
    * 
    * Define system parameters.
    * The parameters defined here will override the default parameters
@@ -123,9 +146,10 @@ public interface SystemParametersOrBuilder extends
    *
    * repeated .google.api.SystemParameterRule rules = 1;
    */
-  java.util.List 
-      getRulesOrBuilderList();
+  java.util.List getRulesOrBuilderList();
   /**
+   *
+   *
    * 
    * Define system parameters.
    * The parameters defined here will override the default parameters
@@ -153,6 +177,5 @@ public interface SystemParametersOrBuilder extends
    *
    * repeated .google.api.SystemParameterRule rules = 1;
    */
-  com.google.api.SystemParameterRuleOrBuilder getRulesOrBuilder(
-      int index);
+  com.google.api.SystemParameterRuleOrBuilder getRulesOrBuilder(int index);
 }
diff --git a/proto-google-common-protos/src/main/java/com/google/api/Usage.java b/proto-google-common-protos/src/main/java/com/google/api/Usage.java
index f6ed17e9..ea76e68d 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/Usage.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/Usage.java
@@ -1,42 +1,66 @@
+/*
+ * 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/usage.proto
 
 package com.google.api;
 
 /**
+ *
+ *
  * 
  * Configuration controlling usage of a service.
  * 
* * Protobuf type {@code google.api.Usage} */ -public final class Usage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Usage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.api.Usage) UsageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Usage.newBuilder() to construct. private Usage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Usage() { requirements_ = com.google.protobuf.LazyStringArrayList.EMPTY; rules_ = java.util.Collections.emptyList(); producerNotificationChannel_ = ""; } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Usage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Usage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = @@ -49,44 +73,45 @@ private Usage( case 0: done = true; break; - case 10: { - String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - requirements_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + requirements_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + requirements_.add(s); + break; } - requirements_.add(s); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - rules_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 50: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + rules_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + rules_.add(input.readMessage(com.google.api.UsageRule.parser(), extensionRegistry)); + break; } - rules_.add( - input.readMessage(com.google.api.UsageRule.parser(), extensionRegistry)); - break; - } - case 58: { - String s = input.readStringRequireUtf8(); + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - producerNotificationChannel_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + producerNotificationChannel_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { requirements_ = requirements_.getUnmodifiableView(); @@ -98,23 +123,24 @@ private Usage( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.UsageProto.internal_static_google_api_Usage_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.UsageProto.internal_static_google_api_Usage_fieldAccessorTable .ensureFieldAccessorsInitialized( - Usage.class, Builder.class); + com.google.api.Usage.class, com.google.api.Usage.Builder.class); } - private int bitField0_; public static final int REQUIREMENTS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList requirements_; /** + * + * *
    * Requirements that must be satisfied before a consumer project can use the
    * service. Each requirement is of the form <service.name>/<requirement-id>;
@@ -122,12 +148,15 @@ private Usage(
    * 
* * repeated string requirements = 1; + * + * @return A list containing the requirements. */ - public com.google.protobuf.ProtocolStringList - getRequirementsList() { + public com.google.protobuf.ProtocolStringList getRequirementsList() { return requirements_; } /** + * + * *
    * Requirements that must be satisfied before a consumer project can use the
    * service. Each requirement is of the form <service.name>/<requirement-id>;
@@ -135,11 +164,15 @@ private Usage(
    * 
* * repeated string requirements = 1; + * + * @return The count of requirements. */ public int getRequirementsCount() { return requirements_.size(); } /** + * + * *
    * Requirements that must be satisfied before a consumer project can use the
    * service. Each requirement is of the form <service.name>/<requirement-id>;
@@ -147,11 +180,16 @@ public int getRequirementsCount() {
    * 
* * repeated string requirements = 1; + * + * @param index The index of the element to return. + * @return The requirements at the given index. */ - public String getRequirements(int index) { + public java.lang.String getRequirements(int index) { return requirements_.get(index); } /** + * + * *
    * Requirements that must be satisfied before a consumer project can use the
    * service. Each requirement is of the form <service.name>/<requirement-id>;
@@ -159,15 +197,19 @@ public String getRequirements(int index) {
    * 
* * repeated string requirements = 1; + * + * @param index The index of the value to return. + * @return The bytes of the requirements at the given index. */ - public com.google.protobuf.ByteString - getRequirementsBytes(int index) { + public com.google.protobuf.ByteString getRequirementsBytes(int index) { return requirements_.getByteString(index); } public static final int RULES_FIELD_NUMBER = 6; private java.util.List rules_; /** + * + * *
    * A list of usage rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -179,6 +221,8 @@ public java.util.List getRulesList() {
     return rules_;
   }
   /**
+   *
+   *
    * 
    * A list of usage rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -186,11 +230,12 @@ public java.util.List getRulesList() {
    *
    * repeated .google.api.UsageRule rules = 6;
    */
-  public java.util.List 
-      getRulesOrBuilderList() {
+  public java.util.List getRulesOrBuilderList() {
     return rules_;
   }
   /**
+   *
+   *
    * 
    * A list of usage rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -202,6 +247,8 @@ public int getRulesCount() {
     return rules_.size();
   }
   /**
+   *
+   *
    * 
    * A list of usage rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -213,6 +260,8 @@ public com.google.api.UsageRule getRules(int index) {
     return rules_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of usage rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -220,14 +269,15 @@ public com.google.api.UsageRule getRules(int index) {
    *
    * repeated .google.api.UsageRule rules = 6;
    */
-  public com.google.api.UsageRuleOrBuilder getRulesOrBuilder(
-      int index) {
+  public com.google.api.UsageRuleOrBuilder getRulesOrBuilder(int index) {
     return rules_.get(index);
   }
 
   public static final int PRODUCER_NOTIFICATION_CHANNEL_FIELD_NUMBER = 7;
-  private volatile Object producerNotificationChannel_;
+  private volatile java.lang.Object producerNotificationChannel_;
   /**
+   *
+   *
    * 
    * The full resource name of a channel used for sending notifications to the
    * service producer.
@@ -239,20 +289,23 @@ public com.google.api.UsageRuleOrBuilder getRulesOrBuilder(
    * 
* * string producer_notification_channel = 7; + * + * @return The producerNotificationChannel. */ - public String getProducerNotificationChannel() { - Object ref = producerNotificationChannel_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getProducerNotificationChannel() { + java.lang.Object ref = producerNotificationChannel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); producerNotificationChannel_ = s; return s; } } /** + * + * *
    * The full resource name of a channel used for sending notifications to the
    * service producer.
@@ -264,14 +317,14 @@ public String getProducerNotificationChannel() {
    * 
* * string producer_notification_channel = 7; + * + * @return The bytes for producerNotificationChannel. */ - public com.google.protobuf.ByteString - getProducerNotificationChannelBytes() { - Object ref = producerNotificationChannel_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getProducerNotificationChannelBytes() { + java.lang.Object ref = producerNotificationChannel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); producerNotificationChannel_ = b; return b; } else { @@ -280,7 +333,8 @@ public String getProducerNotificationChannel() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -290,9 +344,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < requirements_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requirements_.getRaw(i)); } @@ -305,7 +358,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -320,38 +373,36 @@ public int getSerializedSize() { size += 1 * getRequirementsList().size(); } for (int i = 0; i < rules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, rules_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, rules_.get(i)); } if (!getProducerNotificationChannelBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, producerNotificationChannel_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(7, producerNotificationChannel_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof Usage)) { + if (!(obj instanceof com.google.api.Usage)) { return super.equals(obj); } - Usage other = (Usage) obj; + com.google.api.Usage other = (com.google.api.Usage) obj; - if (!getRequirementsList() - .equals(other.getRequirementsList())) return false; - if (!getRulesList() - .equals(other.getRulesList())) return false; - if (!getProducerNotificationChannel() - .equals(other.getProducerNotificationChannel())) return false; + if (!getRequirementsList().equals(other.getRequirementsList())) return false; + if (!getRulesList().equals(other.getRulesList())) return false; + if (!getProducerNotificationChannel().equals(other.getProducerNotificationChannel())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -373,118 +424,123 @@ public int hashCode() { return hash; } - public static Usage parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.Usage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Usage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Usage parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Usage parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.api.Usage parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Usage parseFrom( + + public static com.google.api.Usage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Usage parseFrom(byte[] data) + + public static com.google.api.Usage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Usage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Usage parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Usage parseFrom(java.io.InputStream input) + + public static com.google.api.Usage 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 Usage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Usage parseFrom( + 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 Usage parseDelimitedFrom(java.io.InputStream input) + + public static com.google.api.Usage 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 Usage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.Usage parseDelimitedFrom( + 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 Usage parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.api.Usage 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 Usage parseFrom( + + public static com.google.api.Usage 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(Usage prototype) { + + public static Builder newBuilder(com.google.api.Usage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Configuration controlling usage of a service.
    * 
* * Protobuf type {@code google.api.Usage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.api.Usage) com.google.api.UsageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.UsageProto.internal_static_google_api_Usage_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.UsageProto.internal_static_google_api_Usage_fieldAccessorTable .ensureFieldAccessorsInitialized( - Usage.class, Builder.class); + com.google.api.Usage.class, com.google.api.Usage.Builder.class); } // Construct using com.google.api.Usage.newBuilder() @@ -492,18 +548,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRulesFieldBuilder(); } } - @Override + + @java.lang.Override public Builder clear() { super.clear(); requirements_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -519,31 +575,29 @@ public Builder clear() { return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.api.UsageProto.internal_static_google_api_Usage_descriptor; } - @Override - public Usage getDefaultInstanceForType() { - return Usage.getDefaultInstance(); + @java.lang.Override + public com.google.api.Usage getDefaultInstanceForType() { + return com.google.api.Usage.getDefaultInstance(); } - @Override - public Usage build() { - Usage result = buildPartial(); + @java.lang.Override + public com.google.api.Usage build() { + com.google.api.Usage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public Usage buildPartial() { - Usage result = new Usage(this); + @java.lang.Override + public com.google.api.Usage buildPartial() { + com.google.api.Usage result = new com.google.api.Usage(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) != 0)) { requirements_ = requirements_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -559,55 +613,55 @@ public Usage buildPartial() { result.rules_ = rulesBuilder_.build(); } result.producerNotificationChannel_ = producerNotificationChannel_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof Usage) { - return mergeFrom((Usage)other); + if (other instanceof com.google.api.Usage) { + return mergeFrom((com.google.api.Usage) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(Usage other) { - if (other == Usage.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.api.Usage other) { + if (other == com.google.api.Usage.getDefaultInstance()) return this; if (!other.requirements_.isEmpty()) { if (requirements_.isEmpty()) { requirements_ = other.requirements_; @@ -636,9 +690,10 @@ public Builder mergeFrom(Usage other) { rulesBuilder_ = null; rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000002); - rulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRulesFieldBuilder() : null; + rulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRulesFieldBuilder() + : null; } else { rulesBuilder_.addAllMessages(other.rules_); } @@ -653,21 +708,21 @@ public Builder mergeFrom(Usage other) { return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Usage parsedMessage = null; + com.google.api.Usage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Usage) e.getUnfinishedMessage(); + parsedMessage = (com.google.api.Usage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -676,16 +731,21 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList requirements_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList requirements_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRequirementsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { requirements_ = new com.google.protobuf.LazyStringArrayList(requirements_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Requirements that must be satisfied before a consumer project can use the
      * service. Each requirement is of the form <service.name>/<requirement-id>;
@@ -693,12 +753,15 @@ private void ensureRequirementsIsMutable() {
      * 
* * repeated string requirements = 1; + * + * @return A list containing the requirements. */ - public com.google.protobuf.ProtocolStringList - getRequirementsList() { + public com.google.protobuf.ProtocolStringList getRequirementsList() { return requirements_.getUnmodifiableView(); } /** + * + * *
      * Requirements that must be satisfied before a consumer project can use the
      * service. Each requirement is of the form <service.name>/<requirement-id>;
@@ -706,11 +769,15 @@ private void ensureRequirementsIsMutable() {
      * 
* * repeated string requirements = 1; + * + * @return The count of requirements. */ public int getRequirementsCount() { return requirements_.size(); } /** + * + * *
      * Requirements that must be satisfied before a consumer project can use the
      * service. Each requirement is of the form <service.name>/<requirement-id>;
@@ -718,11 +785,16 @@ public int getRequirementsCount() {
      * 
* * repeated string requirements = 1; + * + * @param index The index of the element to return. + * @return The requirements at the given index. */ - public String getRequirements(int index) { + public java.lang.String getRequirements(int index) { return requirements_.get(index); } /** + * + * *
      * Requirements that must be satisfied before a consumer project can use the
      * service. Each requirement is of the form <service.name>/<requirement-id>;
@@ -730,12 +802,16 @@ public String getRequirements(int index) {
      * 
* * repeated string requirements = 1; + * + * @param index The index of the value to return. + * @return The bytes of the requirements at the given index. */ - public com.google.protobuf.ByteString - getRequirementsBytes(int index) { + public com.google.protobuf.ByteString getRequirementsBytes(int index) { return requirements_.getByteString(index); } /** + * + * *
      * Requirements that must be satisfied before a consumer project can use the
      * service. Each requirement is of the form <service.name>/<requirement-id>;
@@ -743,18 +819,23 @@ public String getRequirements(int index) {
      * 
* * repeated string requirements = 1; + * + * @param index The index to set the value at. + * @param value The requirements to set. + * @return This builder for chaining. */ - public Builder setRequirements( - int index, String value) { + public Builder setRequirements(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRequirementsIsMutable(); + throw new NullPointerException(); + } + ensureRequirementsIsMutable(); requirements_.set(index, value); onChanged(); return this; } /** + * + * *
      * Requirements that must be satisfied before a consumer project can use the
      * service. Each requirement is of the form <service.name>/<requirement-id>;
@@ -762,18 +843,22 @@ public Builder setRequirements(
      * 
* * repeated string requirements = 1; + * + * @param value The requirements to add. + * @return This builder for chaining. */ - public Builder addRequirements( - String value) { + public Builder addRequirements(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRequirementsIsMutable(); + throw new NullPointerException(); + } + ensureRequirementsIsMutable(); requirements_.add(value); onChanged(); return this; } /** + * + * *
      * Requirements that must be satisfied before a consumer project can use the
      * service. Each requirement is of the form <service.name>/<requirement-id>;
@@ -781,16 +866,19 @@ public Builder addRequirements(
      * 
* * repeated string requirements = 1; + * + * @param values The requirements to add. + * @return This builder for chaining. */ - public Builder addAllRequirements( - Iterable values) { + public Builder addAllRequirements(java.lang.Iterable values) { ensureRequirementsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requirements_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requirements_); onChanged(); return this; } /** + * + * *
      * Requirements that must be satisfied before a consumer project can use the
      * service. Each requirement is of the form <service.name>/<requirement-id>;
@@ -798,6 +886,8 @@ public Builder addAllRequirements(
      * 
* * repeated string requirements = 1; + * + * @return This builder for chaining. */ public Builder clearRequirements() { requirements_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -806,6 +896,8 @@ public Builder clearRequirements() { return this; } /** + * + * *
      * Requirements that must be satisfied before a consumer project can use the
      * service. Each requirement is of the form <service.name>/<requirement-id>;
@@ -813,32 +905,39 @@ public Builder clearRequirements() {
      * 
* * repeated string requirements = 1; + * + * @param value The bytes of the requirements to add. + * @return This builder for chaining. */ - public Builder addRequirementsBytes( - com.google.protobuf.ByteString value) { + public Builder addRequirementsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureRequirementsIsMutable(); requirements_.add(value); onChanged(); return this; } - private java.util.List rules_ = - java.util.Collections.emptyList(); + private java.util.List rules_ = java.util.Collections.emptyList(); + private void ensureRulesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { rules_ = new java.util.ArrayList(rules_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.UsageRule, com.google.api.UsageRule.Builder, com.google.api.UsageRuleOrBuilder> rulesBuilder_; + com.google.api.UsageRule, + com.google.api.UsageRule.Builder, + com.google.api.UsageRuleOrBuilder> + rulesBuilder_; /** + * + * *
      * A list of usage rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -854,6 +953,8 @@ public java.util.List getRulesList() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of usage rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -869,6 +970,8 @@ public int getRulesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of usage rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -884,6 +987,8 @@ public com.google.api.UsageRule getRules(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of usage rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -891,8 +996,7 @@ public com.google.api.UsageRule getRules(int index) {
      *
      * repeated .google.api.UsageRule rules = 6;
      */
-    public Builder setRules(
-        int index, com.google.api.UsageRule value) {
+    public Builder setRules(int index, com.google.api.UsageRule value) {
       if (rulesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -906,6 +1010,8 @@ public Builder setRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of usage rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -913,8 +1019,7 @@ public Builder setRules(
      *
      * repeated .google.api.UsageRule rules = 6;
      */
-    public Builder setRules(
-        int index, com.google.api.UsageRule.Builder builderForValue) {
+    public Builder setRules(int index, com.google.api.UsageRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.set(index, builderForValue.build());
@@ -925,6 +1030,8 @@ public Builder setRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of usage rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -946,6 +1053,8 @@ public Builder addRules(com.google.api.UsageRule value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of usage rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -953,8 +1062,7 @@ public Builder addRules(com.google.api.UsageRule value) {
      *
      * repeated .google.api.UsageRule rules = 6;
      */
-    public Builder addRules(
-        int index, com.google.api.UsageRule value) {
+    public Builder addRules(int index, com.google.api.UsageRule value) {
       if (rulesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -968,6 +1076,8 @@ public Builder addRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of usage rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -975,8 +1085,7 @@ public Builder addRules(
      *
      * repeated .google.api.UsageRule rules = 6;
      */
-    public Builder addRules(
-        com.google.api.UsageRule.Builder builderForValue) {
+    public Builder addRules(com.google.api.UsageRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.add(builderForValue.build());
@@ -987,6 +1096,8 @@ public Builder addRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of usage rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -994,8 +1105,7 @@ public Builder addRules(
      *
      * repeated .google.api.UsageRule rules = 6;
      */
-    public Builder addRules(
-        int index, com.google.api.UsageRule.Builder builderForValue) {
+    public Builder addRules(int index, com.google.api.UsageRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.add(index, builderForValue.build());
@@ -1006,6 +1116,8 @@ public Builder addRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of usage rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -1013,12 +1125,10 @@ public Builder addRules(
      *
      * repeated .google.api.UsageRule rules = 6;
      */
-    public Builder addAllRules(
-        Iterable values) {
+    public Builder addAllRules(java.lang.Iterable 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);
@@ -1026,6 +1136,8 @@ public Builder addAllRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of usage rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -1044,6 +1156,8 @@ public Builder clearRules() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of usage rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -1062,6 +1176,8 @@ public Builder removeRules(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of usage rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -1069,11 +1185,12 @@ public Builder removeRules(int index) {
      *
      * repeated .google.api.UsageRule rules = 6;
      */
-    public com.google.api.UsageRule.Builder getRulesBuilder(
-        int index) {
+    public com.google.api.UsageRule.Builder getRulesBuilder(int index) {
       return getRulesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of usage rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -1081,14 +1198,16 @@ public com.google.api.UsageRule.Builder getRulesBuilder(
      *
      * repeated .google.api.UsageRule rules = 6;
      */
-    public com.google.api.UsageRuleOrBuilder getRulesOrBuilder(
-        int index) {
+    public com.google.api.UsageRuleOrBuilder getRulesOrBuilder(int index) {
       if (rulesBuilder_ == null) {
-        return rules_.get(index);  } else {
+        return rules_.get(index);
+      } else {
         return rulesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of usage rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -1096,8 +1215,7 @@ public com.google.api.UsageRuleOrBuilder getRulesOrBuilder(
      *
      * repeated .google.api.UsageRule rules = 6;
      */
-    public java.util.List 
-         getRulesOrBuilderList() {
+    public java.util.List getRulesOrBuilderList() {
       if (rulesBuilder_ != null) {
         return rulesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1105,6 +1223,8 @@ public com.google.api.UsageRuleOrBuilder getRulesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * A list of usage rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -1113,10 +1233,11 @@ public com.google.api.UsageRuleOrBuilder getRulesOrBuilder(
      * repeated .google.api.UsageRule rules = 6;
      */
     public com.google.api.UsageRule.Builder addRulesBuilder() {
-      return getRulesFieldBuilder().addBuilder(
-          com.google.api.UsageRule.getDefaultInstance());
+      return getRulesFieldBuilder().addBuilder(com.google.api.UsageRule.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of usage rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -1124,12 +1245,13 @@ public com.google.api.UsageRule.Builder addRulesBuilder() {
      *
      * repeated .google.api.UsageRule rules = 6;
      */
-    public com.google.api.UsageRule.Builder addRulesBuilder(
-        int index) {
-      return getRulesFieldBuilder().addBuilder(
-          index, com.google.api.UsageRule.getDefaultInstance());
+    public com.google.api.UsageRule.Builder addRulesBuilder(int index) {
+      return getRulesFieldBuilder()
+          .addBuilder(index, com.google.api.UsageRule.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of usage rules that apply to individual API methods.
      * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -1137,27 +1259,31 @@ public com.google.api.UsageRule.Builder addRulesBuilder(
      *
      * repeated .google.api.UsageRule rules = 6;
      */
-    public java.util.List 
-         getRulesBuilderList() {
+    public java.util.List getRulesBuilderList() {
       return getRulesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.api.UsageRule, com.google.api.UsageRule.Builder, com.google.api.UsageRuleOrBuilder> 
+            com.google.api.UsageRule,
+            com.google.api.UsageRule.Builder,
+            com.google.api.UsageRuleOrBuilder>
         getRulesFieldBuilder() {
       if (rulesBuilder_ == null) {
-        rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.api.UsageRule, com.google.api.UsageRule.Builder, com.google.api.UsageRuleOrBuilder>(
-                rules_,
-                ((bitField0_ & 0x00000002) != 0),
-                getParentForChildren(),
-                isClean());
+        rulesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.api.UsageRule,
+                com.google.api.UsageRule.Builder,
+                com.google.api.UsageRuleOrBuilder>(
+                rules_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
         rules_ = null;
       }
       return rulesBuilder_;
     }
 
-    private Object producerNotificationChannel_ = "";
+    private java.lang.Object producerNotificationChannel_ = "";
     /**
+     *
+     *
      * 
      * The full resource name of a channel used for sending notifications to the
      * service producer.
@@ -1169,20 +1295,23 @@ public com.google.api.UsageRule.Builder addRulesBuilder(
      * 
* * string producer_notification_channel = 7; + * + * @return The producerNotificationChannel. */ - public String getProducerNotificationChannel() { - Object ref = producerNotificationChannel_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getProducerNotificationChannel() { + java.lang.Object ref = producerNotificationChannel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); producerNotificationChannel_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The full resource name of a channel used for sending notifications to the
      * service producer.
@@ -1194,14 +1323,14 @@ public String getProducerNotificationChannel() {
      * 
* * string producer_notification_channel = 7; + * + * @return The bytes for producerNotificationChannel. */ - public com.google.protobuf.ByteString - getProducerNotificationChannelBytes() { - Object ref = producerNotificationChannel_; + public com.google.protobuf.ByteString getProducerNotificationChannelBytes() { + java.lang.Object ref = producerNotificationChannel_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); producerNotificationChannel_ = b; return b; } else { @@ -1209,6 +1338,8 @@ public String getProducerNotificationChannel() { } } /** + * + * *
      * The full resource name of a channel used for sending notifications to the
      * service producer.
@@ -1220,18 +1351,22 @@ public String getProducerNotificationChannel() {
      * 
* * string producer_notification_channel = 7; + * + * @param value The producerNotificationChannel to set. + * @return This builder for chaining. */ - public Builder setProducerNotificationChannel( - String value) { + public Builder setProducerNotificationChannel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + producerNotificationChannel_ = value; onChanged(); return this; } /** + * + * *
      * The full resource name of a channel used for sending notifications to the
      * service producer.
@@ -1243,14 +1378,18 @@ public Builder setProducerNotificationChannel(
      * 
* * string producer_notification_channel = 7; + * + * @return This builder for chaining. */ public Builder clearProducerNotificationChannel() { - + producerNotificationChannel_ = getDefaultInstance().getProducerNotificationChannel(); onChanged(); return this; } /** + * + * *
      * The full resource name of a channel used for sending notifications to the
      * service producer.
@@ -1262,68 +1401,68 @@ public Builder clearProducerNotificationChannel() {
      * 
* * string producer_notification_channel = 7; + * + * @param value The bytes for producerNotificationChannel to set. + * @return This builder for chaining. */ - public Builder setProducerNotificationChannelBytes( - com.google.protobuf.ByteString value) { + public Builder setProducerNotificationChannelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + producerNotificationChannel_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.Usage) } // @@protoc_insertion_point(class_scope:google.api.Usage) - private static final Usage DEFAULT_INSTANCE; + private static final com.google.api.Usage DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new Usage(); + DEFAULT_INSTANCE = new com.google.api.Usage(); } - public static Usage getDefaultInstance() { + public static com.google.api.Usage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public Usage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Usage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Usage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Usage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public Usage getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.Usage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/UsageOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/UsageOrBuilder.java index 23d319b5..92081cd6 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/UsageOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/UsageOrBuilder.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/usage.proto package com.google.api; -public interface UsageOrBuilder extends +public interface UsageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.Usage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Requirements that must be satisfied before a consumer project can use the
    * service. Each requirement is of the form <service.name>/<requirement-id>;
@@ -15,10 +33,13 @@ public interface UsageOrBuilder extends
    * 
* * repeated string requirements = 1; + * + * @return A list containing the requirements. */ - java.util.List - getRequirementsList(); + java.util.List getRequirementsList(); /** + * + * *
    * Requirements that must be satisfied before a consumer project can use the
    * service. Each requirement is of the form <service.name>/<requirement-id>;
@@ -26,9 +47,13 @@ public interface UsageOrBuilder extends
    * 
* * repeated string requirements = 1; + * + * @return The count of requirements. */ int getRequirementsCount(); /** + * + * *
    * Requirements that must be satisfied before a consumer project can use the
    * service. Each requirement is of the form <service.name>/<requirement-id>;
@@ -36,9 +61,14 @@ public interface UsageOrBuilder extends
    * 
* * repeated string requirements = 1; + * + * @param index The index of the element to return. + * @return The requirements at the given index. */ - String getRequirements(int index); + java.lang.String getRequirements(int index); /** + * + * *
    * Requirements that must be satisfied before a consumer project can use the
    * service. Each requirement is of the form <service.name>/<requirement-id>;
@@ -46,11 +76,15 @@ public interface UsageOrBuilder extends
    * 
* * repeated string requirements = 1; + * + * @param index The index of the value to return. + * @return The bytes of the requirements at the given index. */ - com.google.protobuf.ByteString - getRequirementsBytes(int index); + com.google.protobuf.ByteString getRequirementsBytes(int index); /** + * + * *
    * A list of usage rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -58,9 +92,10 @@ public interface UsageOrBuilder extends
    *
    * repeated .google.api.UsageRule rules = 6;
    */
-  java.util.List
-      getRulesList();
+  java.util.List getRulesList();
   /**
+   *
+   *
    * 
    * A list of usage rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -68,8 +103,10 @@ public interface UsageOrBuilder extends
    *
    * repeated .google.api.UsageRule rules = 6;
    */
-  UsageRule getRules(int index);
+  com.google.api.UsageRule getRules(int index);
   /**
+   *
+   *
    * 
    * A list of usage rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -79,6 +116,8 @@ public interface UsageOrBuilder extends
    */
   int getRulesCount();
   /**
+   *
+   *
    * 
    * A list of usage rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -86,9 +125,10 @@ public interface UsageOrBuilder extends
    *
    * repeated .google.api.UsageRule rules = 6;
    */
-  java.util.List 
-      getRulesOrBuilderList();
+  java.util.List getRulesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of usage rules that apply to individual API methods.
    * **NOTE:** All service configuration rules follow "last one wins" order.
@@ -96,10 +136,11 @@ public interface UsageOrBuilder extends
    *
    * repeated .google.api.UsageRule rules = 6;
    */
-  com.google.api.UsageRuleOrBuilder getRulesOrBuilder(
-      int index);
+  com.google.api.UsageRuleOrBuilder getRulesOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * The full resource name of a channel used for sending notifications to the
    * service producer.
@@ -111,9 +152,13 @@ com.google.api.UsageRuleOrBuilder getRulesOrBuilder(
    * 
* * string producer_notification_channel = 7; + * + * @return The producerNotificationChannel. */ - String getProducerNotificationChannel(); + java.lang.String getProducerNotificationChannel(); /** + * + * *
    * The full resource name of a channel used for sending notifications to the
    * service producer.
@@ -125,7 +170,8 @@ com.google.api.UsageRuleOrBuilder getRulesOrBuilder(
    * 
* * string producer_notification_channel = 7; + * + * @return The bytes for producerNotificationChannel. */ - com.google.protobuf.ByteString - getProducerNotificationChannelBytes(); + com.google.protobuf.ByteString getProducerNotificationChannelBytes(); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/UsageProto.java b/proto-google-common-protos/src/main/java/com/google/api/UsageProto.java index 2e8959e2..07163a82 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/UsageProto.java +++ b/proto-google-common-protos/src/main/java/com/google/api/UsageProto.java @@ -1,3 +1,18 @@ +/* + * 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/usage.proto @@ -5,68 +20,57 @@ public final class UsageProto { private UsageProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + 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_Usage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_Usage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_api_Usage_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_api_UsageRule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_UsageRule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_api_UsageRule_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { - String[] descriptorData = { - "\n\026google/api/usage.proto\022\ngoogle.api\"j\n\005" + - "Usage\022\024\n\014requirements\030\001 \003(\t\022$\n\005rules\030\006 \003" + - "(\0132\025.google.api.UsageRule\022%\n\035producer_no" + - "tification_channel\030\007 \001(\t\"]\n\tUsageRule\022\020\n" + - "\010selector\030\001 \001(\t\022 \n\030allow_unregistered_ca" + - "lls\030\002 \001(\010\022\034\n\024skip_service_control\030\003 \001(\010B" + - "l\n\016com.google.apiB\nUsageProtoP\001ZEgoogle." + - "golang.org/genproto/googleapis/api/servi" + - "ceconfig;serviceconfig\242\002\004GAPIb\006proto3" + java.lang.String[] descriptorData = { + "\n\026google/api/usage.proto\022\ngoogle.api\"j\n\005" + + "Usage\022\024\n\014requirements\030\001 \003(\t\022$\n\005rules\030\006 \003" + + "(\0132\025.google.api.UsageRule\022%\n\035producer_no" + + "tification_channel\030\007 \001(\t\"]\n\tUsageRule\022\020\n" + + "\010selector\030\001 \001(\t\022 \n\030allow_unregistered_ca" + + "lls\030\002 \001(\010\022\034\n\024skip_service_control\030\003 \001(\010B" + + "l\n\016com.google.apiB\nUsageProtoP\001ZEgoogle." + + "golang.org/genproto/googleapis/api/servi" + + "ceconfig;serviceconfig\242\002\004GAPIb\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_google_api_Usage_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_api_Usage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_Usage_descriptor, - new String[] { "Requirements", "Rules", "ProducerNotificationChannel", }); - internal_static_google_api_UsageRule_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_api_UsageRule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_api_UsageRule_descriptor, - new String[] { "Selector", "AllowUnregisteredCalls", "SkipServiceControl", }); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_api_Usage_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_api_Usage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_Usage_descriptor, + new java.lang.String[] { + "Requirements", "Rules", "ProducerNotificationChannel", + }); + internal_static_google_api_UsageRule_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_google_api_UsageRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_UsageRule_descriptor, + new java.lang.String[] { + "Selector", "AllowUnregisteredCalls", "SkipServiceControl", + }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-common-protos/src/main/java/com/google/api/UsageRule.java b/proto-google-common-protos/src/main/java/com/google/api/UsageRule.java index 746accde..67238402 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/UsageRule.java +++ b/proto-google-common-protos/src/main/java/com/google/api/UsageRule.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/usage.proto package com.google.api; /** + * + * *
  * Usage configuration rules for the service.
  * NOTE: Under development.
@@ -27,33 +44,39 @@
  *
  * Protobuf type {@code google.api.UsageRule}
  */
-public  final class UsageRule extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UsageRule extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.api.UsageRule)
     UsageRuleOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UsageRule.newBuilder() to construct.
   private UsageRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private UsageRule() {
     selector_ = "";
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new UsageRule();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private UsageRule(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
-    int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
         com.google.protobuf.UnknownFieldSet.newBuilder();
     try {
@@ -64,57 +87,59 @@ private UsageRule(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
-
-            selector_ = s;
-            break;
-          }
-          case 16: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            allowUnregisteredCalls_ = input.readBool();
-            break;
-          }
-          case 24: {
-
-            skipServiceControl_ = input.readBool();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              selector_ = s;
+              break;
+            }
+          case 16:
+            {
+              allowUnregisteredCalls_ = input.readBool();
+              break;
+            }
+          case 24:
+            {
+              skipServiceControl_ = input.readBool();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.api.UsageProto.internal_static_google_api_UsageRule_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return com.google.api.UsageProto.internal_static_google_api_UsageRule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            UsageRule.class, Builder.class);
+            com.google.api.UsageRule.class, com.google.api.UsageRule.Builder.class);
   }
 
   public static final int SELECTOR_FIELD_NUMBER = 1;
-  private volatile Object selector_;
+  private volatile java.lang.Object selector_;
   /**
+   *
+   *
    * 
    * Selects the methods to which this rule applies. Use '*' to indicate all
    * methods in all APIs.
@@ -122,20 +147,23 @@ private UsageRule(
    * 
* * string selector = 1; + * + * @return The selector. */ - public String getSelector() { - Object ref = selector_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getSelector() { + java.lang.Object ref = selector_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); selector_ = s; return s; } } /** + * + * *
    * Selects the methods to which this rule applies. Use '*' to indicate all
    * methods in all APIs.
@@ -143,14 +171,14 @@ public String getSelector() {
    * 
* * string selector = 1; + * + * @return The bytes for selector. */ - public com.google.protobuf.ByteString - getSelectorBytes() { - Object ref = selector_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getSelectorBytes() { + java.lang.Object ref = selector_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); selector_ = b; return b; } else { @@ -161,12 +189,16 @@ public String getSelector() { public static final int ALLOW_UNREGISTERED_CALLS_FIELD_NUMBER = 2; private boolean allowUnregisteredCalls_; /** + * + * *
    * If true, the selected method allows unregistered calls, e.g. calls
    * that don't identify any user or application.
    * 
* * bool allow_unregistered_calls = 2; + * + * @return The allowUnregisteredCalls. */ public boolean getAllowUnregisteredCalls() { return allowUnregisteredCalls_; @@ -175,6 +207,8 @@ public boolean getAllowUnregisteredCalls() { public static final int SKIP_SERVICE_CONTROL_FIELD_NUMBER = 3; private boolean skipServiceControl_; /** + * + * *
    * If true, the selected method should skip service control and the control
    * plane features, such as quota and billing, will not be available.
@@ -183,13 +217,16 @@ public boolean getAllowUnregisteredCalls() {
    * 
* * bool skip_service_control = 3; + * + * @return The skipServiceControl. */ public boolean getSkipServiceControl() { return skipServiceControl_; } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -199,9 +236,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSelectorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selector_); } @@ -214,7 +250,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -224,39 +260,34 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, selector_); } if (allowUnregisteredCalls_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, allowUnregisteredCalls_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, allowUnregisteredCalls_); } if (skipServiceControl_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, skipServiceControl_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, skipServiceControl_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof UsageRule)) { + if (!(obj instanceof com.google.api.UsageRule)) { return super.equals(obj); } - UsageRule other = (UsageRule) obj; + com.google.api.UsageRule other = (com.google.api.UsageRule) obj; - if (!getSelector() - .equals(other.getSelector())) return false; - if (getAllowUnregisteredCalls() - != other.getAllowUnregisteredCalls()) return false; - if (getSkipServiceControl() - != other.getSkipServiceControl()) return false; + if (!getSelector().equals(other.getSelector())) return false; + if (getAllowUnregisteredCalls() != other.getAllowUnregisteredCalls()) return false; + if (getSkipServiceControl() != other.getSkipServiceControl()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -266,107 +297,111 @@ public int hashCode() { hash = (37 * hash) + SELECTOR_FIELD_NUMBER; hash = (53 * hash) + getSelector().hashCode(); hash = (37 * hash) + ALLOW_UNREGISTERED_CALLS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowUnregisteredCalls()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowUnregisteredCalls()); hash = (37 * hash) + SKIP_SERVICE_CONTROL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSkipServiceControl()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipServiceControl()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static UsageRule parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.UsageRule parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static UsageRule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.UsageRule parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static UsageRule parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.api.UsageRule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static UsageRule parseFrom( + + public static com.google.api.UsageRule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static UsageRule parseFrom(byte[] data) + + public static com.google.api.UsageRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static UsageRule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.UsageRule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static UsageRule parseFrom(java.io.InputStream input) + + public static com.google.api.UsageRule 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 UsageRule parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.UsageRule parseFrom( + 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 UsageRule parseDelimitedFrom(java.io.InputStream input) + + public static com.google.api.UsageRule 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 UsageRule parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.api.UsageRule parseDelimitedFrom( + 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 UsageRule parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.api.UsageRule 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 UsageRule parseFrom( + + public static com.google.api.UsageRule 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(UsageRule prototype) { + + public static Builder newBuilder(com.google.api.UsageRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Usage configuration rules for the service.
    * NOTE: Under development.
@@ -390,21 +425,20 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.api.UsageRule}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.api.UsageRule)
       com.google.api.UsageRuleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.api.UsageProto.internal_static_google_api_UsageRule_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return com.google.api.UsageProto.internal_static_google_api_UsageRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              UsageRule.class, Builder.class);
+              com.google.api.UsageRule.class, com.google.api.UsageRule.Builder.class);
     }
 
     // Construct using com.google.api.UsageRule.newBuilder()
@@ -412,17 +446,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       selector_ = "";
@@ -434,29 +467,28 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.api.UsageProto.internal_static_google_api_UsageRule_descriptor;
     }
 
-    @Override
-    public UsageRule getDefaultInstanceForType() {
-      return UsageRule.getDefaultInstance();
+    @java.lang.Override
+    public com.google.api.UsageRule getDefaultInstanceForType() {
+      return com.google.api.UsageRule.getDefaultInstance();
     }
 
-    @Override
-    public UsageRule build() {
-      UsageRule result = buildPartial();
+    @java.lang.Override
+    public com.google.api.UsageRule build() {
+      com.google.api.UsageRule result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public UsageRule buildPartial() {
-      UsageRule result = new UsageRule(this);
+    @java.lang.Override
+    public com.google.api.UsageRule buildPartial() {
+      com.google.api.UsageRule result = new com.google.api.UsageRule(this);
       result.selector_ = selector_;
       result.allowUnregisteredCalls_ = allowUnregisteredCalls_;
       result.skipServiceControl_ = skipServiceControl_;
@@ -464,50 +496,51 @@ public UsageRule buildPartial() {
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof UsageRule) {
-        return mergeFrom((UsageRule)other);
+      if (other instanceof com.google.api.UsageRule) {
+        return mergeFrom((com.google.api.UsageRule) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(UsageRule other) {
-      if (other == UsageRule.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.api.UsageRule other) {
+      if (other == com.google.api.UsageRule.getDefaultInstance()) return this;
       if (!other.getSelector().isEmpty()) {
         selector_ = other.selector_;
         onChanged();
@@ -523,21 +556,21 @@ public Builder mergeFrom(UsageRule other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      UsageRule parsedMessage = null;
+      com.google.api.UsageRule parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (UsageRule) e.getUnfinishedMessage();
+        parsedMessage = (com.google.api.UsageRule) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -547,8 +580,10 @@ public Builder mergeFrom(
       return this;
     }
 
-    private Object selector_ = "";
+    private java.lang.Object selector_ = "";
     /**
+     *
+     *
      * 
      * Selects the methods to which this rule applies. Use '*' to indicate all
      * methods in all APIs.
@@ -556,20 +591,23 @@ public Builder mergeFrom(
      * 
* * string selector = 1; + * + * @return The selector. */ - public String getSelector() { - Object ref = selector_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getSelector() { + java.lang.Object ref = selector_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); selector_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Selects the methods to which this rule applies. Use '*' to indicate all
      * methods in all APIs.
@@ -577,14 +615,14 @@ public String getSelector() {
      * 
* * string selector = 1; + * + * @return The bytes for selector. */ - public com.google.protobuf.ByteString - getSelectorBytes() { - Object ref = selector_; + public com.google.protobuf.ByteString getSelectorBytes() { + java.lang.Object ref = selector_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); selector_ = b; return b; } else { @@ -592,6 +630,8 @@ public String getSelector() { } } /** + * + * *
      * Selects the methods to which this rule applies. Use '*' to indicate all
      * methods in all APIs.
@@ -599,18 +639,22 @@ public String getSelector() {
      * 
* * string selector = 1; + * + * @param value The selector to set. + * @return This builder for chaining. */ - public Builder setSelector( - String value) { + public Builder setSelector(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + selector_ = value; onChanged(); return this; } /** + * + * *
      * Selects the methods to which this rule applies. Use '*' to indicate all
      * methods in all APIs.
@@ -618,14 +662,18 @@ public Builder setSelector(
      * 
* * string selector = 1; + * + * @return This builder for chaining. */ public Builder clearSelector() { - + selector_ = getDefaultInstance().getSelector(); onChanged(); return this; } /** + * + * *
      * Selects the methods to which this rule applies. Use '*' to indicate all
      * methods in all APIs.
@@ -633,62 +681,79 @@ public Builder clearSelector() {
      * 
* * string selector = 1; + * + * @param value The bytes for selector to set. + * @return This builder for chaining. */ - public Builder setSelectorBytes( - com.google.protobuf.ByteString value) { + public Builder setSelectorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + selector_ = value; onChanged(); return this; } - private boolean allowUnregisteredCalls_ ; + private boolean allowUnregisteredCalls_; /** + * + * *
      * If true, the selected method allows unregistered calls, e.g. calls
      * that don't identify any user or application.
      * 
* * bool allow_unregistered_calls = 2; + * + * @return The allowUnregisteredCalls. */ public boolean getAllowUnregisteredCalls() { return allowUnregisteredCalls_; } /** + * + * *
      * If true, the selected method allows unregistered calls, e.g. calls
      * that don't identify any user or application.
      * 
* * bool allow_unregistered_calls = 2; + * + * @param value The allowUnregisteredCalls to set. + * @return This builder for chaining. */ public Builder setAllowUnregisteredCalls(boolean value) { - + allowUnregisteredCalls_ = value; onChanged(); return this; } /** + * + * *
      * If true, the selected method allows unregistered calls, e.g. calls
      * that don't identify any user or application.
      * 
* * bool allow_unregistered_calls = 2; + * + * @return This builder for chaining. */ public Builder clearAllowUnregisteredCalls() { - + allowUnregisteredCalls_ = false; onChanged(); return this; } - private boolean skipServiceControl_ ; + private boolean skipServiceControl_; /** + * + * *
      * If true, the selected method should skip service control and the control
      * plane features, such as quota and billing, will not be available.
@@ -697,11 +762,15 @@ public Builder clearAllowUnregisteredCalls() {
      * 
* * bool skip_service_control = 3; + * + * @return The skipServiceControl. */ public boolean getSkipServiceControl() { return skipServiceControl_; } /** + * + * *
      * If true, the selected method should skip service control and the control
      * plane features, such as quota and billing, will not be available.
@@ -710,14 +779,19 @@ public boolean getSkipServiceControl() {
      * 
* * bool skip_service_control = 3; + * + * @param value The skipServiceControl to set. + * @return This builder for chaining. */ public Builder setSkipServiceControl(boolean value) { - + skipServiceControl_ = value; onChanged(); return this; } /** + * + * *
      * If true, the selected method should skip service control and the control
      * plane features, such as quota and billing, will not be available.
@@ -726,63 +800,63 @@ public Builder setSkipServiceControl(boolean value) {
      * 
* * bool skip_service_control = 3; + * + * @return This builder for chaining. */ public Builder clearSkipServiceControl() { - + skipServiceControl_ = false; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.UsageRule) } // @@protoc_insertion_point(class_scope:google.api.UsageRule) - private static final UsageRule DEFAULT_INSTANCE; + private static final com.google.api.UsageRule DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new UsageRule(); + DEFAULT_INSTANCE = new com.google.api.UsageRule(); } - public static UsageRule getDefaultInstance() { + public static com.google.api.UsageRule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public UsageRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UsageRule(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UsageRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UsageRule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public UsageRule getDefaultInstanceForType() { + @java.lang.Override + public com.google.api.UsageRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/api/UsageRuleOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/UsageRuleOrBuilder.java index 2f2298a7..f3c94877 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/UsageRuleOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/UsageRuleOrBuilder.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/usage.proto package com.google.api; -public interface UsageRuleOrBuilder extends +public interface UsageRuleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.UsageRule) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Selects the methods to which this rule applies. Use '*' to indicate all
    * methods in all APIs.
@@ -15,9 +33,13 @@ public interface UsageRuleOrBuilder extends
    * 
* * string selector = 1; + * + * @return The selector. */ - String getSelector(); + java.lang.String getSelector(); /** + * + * *
    * Selects the methods to which this rule applies. Use '*' to indicate all
    * methods in all APIs.
@@ -25,21 +47,28 @@ public interface UsageRuleOrBuilder extends
    * 
* * string selector = 1; + * + * @return The bytes for selector. */ - com.google.protobuf.ByteString - getSelectorBytes(); + com.google.protobuf.ByteString getSelectorBytes(); /** + * + * *
    * If true, the selected method allows unregistered calls, e.g. calls
    * that don't identify any user or application.
    * 
* * bool allow_unregistered_calls = 2; + * + * @return The allowUnregisteredCalls. */ boolean getAllowUnregisteredCalls(); /** + * + * *
    * If true, the selected method should skip service control and the control
    * plane features, such as quota and billing, will not be available.
@@ -48,6 +77,8 @@ public interface UsageRuleOrBuilder extends
    * 
* * bool skip_service_control = 3; + * + * @return The skipServiceControl. */ boolean getSkipServiceControl(); } diff --git a/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLog.java b/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLog.java index 119608c8..9e45b183 100644 --- a/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLog.java +++ b/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLog.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/audit/audit_log.proto package com.google.cloud.audit; /** + * + * *
  * Common audit log format for Google Cloud Platform API operations.
  * 
* * Protobuf type {@code google.cloud.audit.AuditLog} */ -public final class AuditLog extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AuditLog extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.audit.AuditLog) AuditLogOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AuditLog.newBuilder() to construct. private AuditLog(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AuditLog() { serviceName_ = ""; methodName_ = ""; @@ -26,18 +44,24 @@ private AuditLog() { authorizationInfo_ = java.util.Collections.emptyList(); } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AuditLog(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AuditLog( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = @@ -50,189 +74,210 @@ private AuditLog( case 0: done = true; break; - case 18: { - com.google.rpc.Status.Builder subBuilder = null; - if (status_ != null) { - subBuilder = status_.toBuilder(); - } - status_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(status_); - status_ = subBuilder.buildPartial(); + case 18: + { + com.google.rpc.Status.Builder subBuilder = null; + if (status_ != null) { + subBuilder = status_.toBuilder(); + } + status_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(status_); + status_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 26: { - com.google.cloud.audit.AuthenticationInfo.Builder subBuilder = null; - if (authenticationInfo_ != null) { - subBuilder = authenticationInfo_.toBuilder(); + case 26: + { + com.google.cloud.audit.AuthenticationInfo.Builder subBuilder = null; + if (authenticationInfo_ != null) { + subBuilder = authenticationInfo_.toBuilder(); + } + authenticationInfo_ = + input.readMessage( + com.google.cloud.audit.AuthenticationInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(authenticationInfo_); + authenticationInfo_ = subBuilder.buildPartial(); + } + + break; } - authenticationInfo_ = input.readMessage(com.google.cloud.audit.AuthenticationInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authenticationInfo_); - authenticationInfo_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.audit.RequestMetadata.Builder subBuilder = null; + if (requestMetadata_ != null) { + subBuilder = requestMetadata_.toBuilder(); + } + requestMetadata_ = + input.readMessage( + com.google.cloud.audit.RequestMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requestMetadata_); + requestMetadata_ = subBuilder.buildPartial(); + } + + break; } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 34: { - com.google.cloud.audit.RequestMetadata.Builder subBuilder = null; - if (requestMetadata_ != null) { - subBuilder = requestMetadata_.toBuilder(); - } - requestMetadata_ = input.readMessage(com.google.cloud.audit.RequestMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(requestMetadata_); - requestMetadata_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - String s = input.readStringRequireUtf8(); - - serviceName_ = s; - break; - } - case 66: { - String s = input.readStringRequireUtf8(); - - methodName_ = s; - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { - authorizationInfo_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; + serviceName_ = s; + break; } - authorizationInfo_.add( - input.readMessage(com.google.cloud.audit.AuthorizationInfo.parser(), extensionRegistry)); - break; - } - case 90: { - String s = input.readStringRequireUtf8(); + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - resourceName_ = s; - break; - } - case 96: { - - numResponseItems_ = input.readInt64(); - break; - } - case 122: { - com.google.protobuf.Any.Builder subBuilder = null; - if (serviceData_ != null) { - subBuilder = serviceData_.toBuilder(); + methodName_ = s; + break; } - serviceData_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(serviceData_); - serviceData_ = subBuilder.buildPartial(); + case 74: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + authorizationInfo_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + authorizationInfo_.add( + input.readMessage( + com.google.cloud.audit.AuthorizationInfo.parser(), extensionRegistry)); + break; } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 130: { - com.google.protobuf.Struct.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); + resourceName_ = s; + break; } - request_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); + case 96: + { + numResponseItems_ = input.readInt64(); + break; } - - break; - } - case 138: { - com.google.protobuf.Struct.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); + case 122: + { + com.google.protobuf.Any.Builder subBuilder = null; + if (serviceData_ != null) { + subBuilder = serviceData_.toBuilder(); + } + serviceData_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(serviceData_); + serviceData_ = subBuilder.buildPartial(); + } + + break; } - response_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); + case 130: + { + com.google.protobuf.Struct.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 138: + { + com.google.protobuf.Struct.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000040) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { authorizationInfo_ = java.util.Collections.unmodifiableList(authorizationInfo_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.audit.AuditLogProto.internal_static_google_cloud_audit_AuditLog_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.audit.AuditLogProto + .internal_static_google_cloud_audit_AuditLog_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.audit.AuditLogProto.internal_static_google_cloud_audit_AuditLog_fieldAccessorTable + return com.google.cloud.audit.AuditLogProto + .internal_static_google_cloud_audit_AuditLog_fieldAccessorTable .ensureFieldAccessorsInitialized( - AuditLog.class, Builder.class); + com.google.cloud.audit.AuditLog.class, com.google.cloud.audit.AuditLog.Builder.class); } - private int bitField0_; public static final int SERVICE_NAME_FIELD_NUMBER = 7; - private volatile Object serviceName_; + private volatile java.lang.Object serviceName_; /** + * + * *
    * The name of the API service performing the operation. For example,
    * `"datastore.googleapis.com"`.
    * 
* * string service_name = 7; + * + * @return The serviceName. */ - public String getServiceName() { - Object ref = serviceName_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getServiceName() { + java.lang.Object ref = serviceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); serviceName_ = s; return s; } } /** + * + * *
    * The name of the API service performing the operation. For example,
    * `"datastore.googleapis.com"`.
    * 
* * string service_name = 7; + * + * @return The bytes for serviceName. */ - public com.google.protobuf.ByteString - getServiceNameBytes() { - Object ref = serviceName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getServiceNameBytes() { + java.lang.Object ref = serviceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceName_ = b; return b; } else { @@ -241,8 +286,10 @@ public String getServiceName() { } public static final int METHOD_NAME_FIELD_NUMBER = 8; - private volatile Object methodName_; + private volatile java.lang.Object methodName_; /** + * + * *
    * The name of the service method or operation.
    * For API calls, this should be the name of the API method.
@@ -252,20 +299,23 @@ public String getServiceName() {
    * 
* * string method_name = 8; + * + * @return The methodName. */ - public String getMethodName() { - Object ref = methodName_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getMethodName() { + java.lang.Object ref = methodName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); methodName_ = s; return s; } } /** + * + * *
    * The name of the service method or operation.
    * For API calls, this should be the name of the API method.
@@ -275,14 +325,14 @@ public String getMethodName() {
    * 
* * string method_name = 8; + * + * @return The bytes for methodName. */ - public com.google.protobuf.ByteString - getMethodNameBytes() { - Object ref = methodName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getMethodNameBytes() { + java.lang.Object ref = methodName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); methodName_ = b; return b; } else { @@ -291,8 +341,10 @@ public String getMethodName() { } public static final int RESOURCE_NAME_FIELD_NUMBER = 11; - private volatile Object resourceName_; + private volatile java.lang.Object resourceName_; /** + * + * *
    * The resource or collection that is the target of the operation.
    * The name is a scheme-less URI, not including the API service name.
@@ -302,20 +354,23 @@ public String getMethodName() {
    * 
* * string resource_name = 11; + * + * @return The resourceName. */ - public String getResourceName() { - Object ref = resourceName_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } } /** + * + * *
    * The resource or collection that is the target of the operation.
    * The name is a scheme-less URI, not including the API service name.
@@ -325,14 +380,14 @@ public String getResourceName() {
    * 
* * string resource_name = 11; + * + * @return The bytes for resourceName. */ - public com.google.protobuf.ByteString - getResourceNameBytes() { - Object ref = resourceName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceName_ = b; return b; } else { @@ -343,12 +398,16 @@ public String getResourceName() { public static final int NUM_RESPONSE_ITEMS_FIELD_NUMBER = 12; private long numResponseItems_; /** + * + * *
    * The number of items returned from a List or Query API method,
    * if applicable.
    * 
* * int64 num_response_items = 12; + * + * @return The numResponseItems. */ public long getNumResponseItems() { return numResponseItems_; @@ -357,26 +416,36 @@ public long getNumResponseItems() { public static final int STATUS_FIELD_NUMBER = 2; private com.google.rpc.Status status_; /** + * + * *
    * The status of the overall operation.
    * 
* * .google.rpc.Status status = 2; + * + * @return Whether the status field is set. */ public boolean hasStatus() { return status_ != null; } /** + * + * *
    * The status of the overall operation.
    * 
* * .google.rpc.Status status = 2; + * + * @return The status. */ public com.google.rpc.Status getStatus() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } /** + * + * *
    * The status of the overall operation.
    * 
@@ -390,26 +459,38 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { public static final int AUTHENTICATION_INFO_FIELD_NUMBER = 3; private com.google.cloud.audit.AuthenticationInfo authenticationInfo_; /** + * + * *
    * Authentication information.
    * 
* * .google.cloud.audit.AuthenticationInfo authentication_info = 3; + * + * @return Whether the authenticationInfo field is set. */ public boolean hasAuthenticationInfo() { return authenticationInfo_ != null; } /** + * + * *
    * Authentication information.
    * 
* * .google.cloud.audit.AuthenticationInfo authentication_info = 3; + * + * @return The authenticationInfo. */ public com.google.cloud.audit.AuthenticationInfo getAuthenticationInfo() { - return authenticationInfo_ == null ? com.google.cloud.audit.AuthenticationInfo.getDefaultInstance() : authenticationInfo_; + return authenticationInfo_ == null + ? com.google.cloud.audit.AuthenticationInfo.getDefaultInstance() + : authenticationInfo_; } /** + * + * *
    * Authentication information.
    * 
@@ -423,6 +504,8 @@ public com.google.cloud.audit.AuthenticationInfoOrBuilder getAuthenticationInfoO public static final int AUTHORIZATION_INFO_FIELD_NUMBER = 9; private java.util.List authorizationInfo_; /** + * + * *
    * Authorization information. If there are multiple
    * resources or permissions involved, then there is
@@ -435,6 +518,8 @@ public java.util.List getAuthorization
     return authorizationInfo_;
   }
   /**
+   *
+   *
    * 
    * Authorization information. If there are multiple
    * resources or permissions involved, then there is
@@ -443,11 +528,13 @@ public java.util.List getAuthorization
    *
    * repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
    */
-  public java.util.List 
+  public java.util.List
       getAuthorizationInfoOrBuilderList() {
     return authorizationInfo_;
   }
   /**
+   *
+   *
    * 
    * Authorization information. If there are multiple
    * resources or permissions involved, then there is
@@ -460,6 +547,8 @@ public int getAuthorizationInfoCount() {
     return authorizationInfo_.size();
   }
   /**
+   *
+   *
    * 
    * Authorization information. If there are multiple
    * resources or permissions involved, then there is
@@ -472,6 +561,8 @@ public com.google.cloud.audit.AuthorizationInfo getAuthorizationInfo(int index)
     return authorizationInfo_.get(index);
   }
   /**
+   *
+   *
    * 
    * Authorization information. If there are multiple
    * resources or permissions involved, then there is
@@ -488,26 +579,38 @@ public com.google.cloud.audit.AuthorizationInfoOrBuilder getAuthorizationInfoOrB
   public static final int REQUEST_METADATA_FIELD_NUMBER = 4;
   private com.google.cloud.audit.RequestMetadata requestMetadata_;
   /**
+   *
+   *
    * 
    * Metadata about the operation.
    * 
* * .google.cloud.audit.RequestMetadata request_metadata = 4; + * + * @return Whether the requestMetadata field is set. */ public boolean hasRequestMetadata() { return requestMetadata_ != null; } /** + * + * *
    * Metadata about the operation.
    * 
* * .google.cloud.audit.RequestMetadata request_metadata = 4; + * + * @return The requestMetadata. */ public com.google.cloud.audit.RequestMetadata getRequestMetadata() { - return requestMetadata_ == null ? com.google.cloud.audit.RequestMetadata.getDefaultInstance() : requestMetadata_; + return requestMetadata_ == null + ? com.google.cloud.audit.RequestMetadata.getDefaultInstance() + : requestMetadata_; } /** + * + * *
    * Metadata about the operation.
    * 
@@ -521,6 +624,8 @@ public com.google.cloud.audit.RequestMetadataOrBuilder getRequestMetadataOrBuild public static final int REQUEST_FIELD_NUMBER = 16; private com.google.protobuf.Struct request_; /** + * + * *
    * The operation request. This may not include all request parameters,
    * such as those that are too large, privacy-sensitive, or duplicated
@@ -531,11 +636,15 @@ public com.google.cloud.audit.RequestMetadataOrBuilder getRequestMetadataOrBuild
    * 
* * .google.protobuf.Struct request = 16; + * + * @return Whether the request field is set. */ public boolean hasRequest() { return request_ != null; } /** + * + * *
    * The operation request. This may not include all request parameters,
    * such as those that are too large, privacy-sensitive, or duplicated
@@ -546,11 +655,15 @@ public boolean hasRequest() {
    * 
* * .google.protobuf.Struct request = 16; + * + * @return The request. */ public com.google.protobuf.Struct getRequest() { return request_ == null ? com.google.protobuf.Struct.getDefaultInstance() : request_; } /** + * + * *
    * The operation request. This may not include all request parameters,
    * such as those that are too large, privacy-sensitive, or duplicated
@@ -569,6 +682,8 @@ public com.google.protobuf.StructOrBuilder getRequestOrBuilder() {
   public static final int RESPONSE_FIELD_NUMBER = 17;
   private com.google.protobuf.Struct response_;
   /**
+   *
+   *
    * 
    * The operation response. This may not include all response elements,
    * such as those that are too large, privacy-sensitive, or duplicated
@@ -579,11 +694,15 @@ public com.google.protobuf.StructOrBuilder getRequestOrBuilder() {
    * 
* * .google.protobuf.Struct response = 17; + * + * @return Whether the response field is set. */ public boolean hasResponse() { return response_ != null; } /** + * + * *
    * The operation response. This may not include all response elements,
    * such as those that are too large, privacy-sensitive, or duplicated
@@ -594,11 +713,15 @@ public boolean hasResponse() {
    * 
* * .google.protobuf.Struct response = 17; + * + * @return The response. */ public com.google.protobuf.Struct getResponse() { return response_ == null ? com.google.protobuf.Struct.getDefaultInstance() : response_; } /** + * + * *
    * The operation response. This may not include all response elements,
    * such as those that are too large, privacy-sensitive, or duplicated
@@ -617,28 +740,38 @@ public com.google.protobuf.StructOrBuilder getResponseOrBuilder() {
   public static final int SERVICE_DATA_FIELD_NUMBER = 15;
   private com.google.protobuf.Any serviceData_;
   /**
+   *
+   *
    * 
    * Other service-specific data about the request, response, and other
    * activities.
    * 
* * .google.protobuf.Any service_data = 15; + * + * @return Whether the serviceData field is set. */ public boolean hasServiceData() { return serviceData_ != null; } /** + * + * *
    * Other service-specific data about the request, response, and other
    * activities.
    * 
* * .google.protobuf.Any service_data = 15; + * + * @return The serviceData. */ public com.google.protobuf.Any getServiceData() { return serviceData_ == null ? com.google.protobuf.Any.getDefaultInstance() : serviceData_; } /** + * + * *
    * Other service-specific data about the request, response, and other
    * activities.
@@ -651,7 +784,8 @@ public com.google.protobuf.AnyOrBuilder getServiceDataOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-  @Override
+
+  @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
     if (isInitialized == 1) return true;
@@ -661,9 +795,8 @@ public final boolean isInitialized() {
     return true;
   }
 
-  @Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  @java.lang.Override
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (status_ != null) {
       output.writeMessage(2, getStatus());
     }
@@ -700,23 +833,20 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     unknownFields.writeTo(output);
   }
 
-  @Override
+  @java.lang.Override
   public int getSerializedSize() {
     int size = memoizedSize;
     if (size != -1) return size;
 
     size = 0;
     if (status_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getStatus());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStatus());
     }
     if (authenticationInfo_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getAuthenticationInfo());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAuthenticationInfo());
     }
     if (requestMetadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getRequestMetadata());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRequestMetadata());
     }
     if (!getServiceNameBytes().isEmpty()) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, serviceName_);
@@ -725,88 +855,73 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, methodName_);
     }
     for (int i = 0; i < authorizationInfo_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(9, authorizationInfo_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(9, authorizationInfo_.get(i));
     }
     if (!getResourceNameBytes().isEmpty()) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, resourceName_);
     }
     if (numResponseItems_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(12, numResponseItems_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(12, numResponseItems_);
     }
     if (serviceData_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(15, getServiceData());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getServiceData());
     }
     if (request_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(16, getRequest());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getRequest());
     }
     if (response_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(17, getResponse());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getResponse());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
     return size;
   }
 
-  @Override
-  public boolean equals(final Object obj) {
+  @java.lang.Override
+  public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
-    if (!(obj instanceof AuditLog)) {
+    if (!(obj instanceof com.google.cloud.audit.AuditLog)) {
       return super.equals(obj);
     }
-    AuditLog other = (AuditLog) obj;
+    com.google.cloud.audit.AuditLog other = (com.google.cloud.audit.AuditLog) obj;
 
-    if (!getServiceName()
-        .equals(other.getServiceName())) return false;
-    if (!getMethodName()
-        .equals(other.getMethodName())) return false;
-    if (!getResourceName()
-        .equals(other.getResourceName())) return false;
-    if (getNumResponseItems()
-        != other.getNumResponseItems()) return false;
+    if (!getServiceName().equals(other.getServiceName())) return false;
+    if (!getMethodName().equals(other.getMethodName())) return false;
+    if (!getResourceName().equals(other.getResourceName())) return false;
+    if (getNumResponseItems() != other.getNumResponseItems()) return false;
     if (hasStatus() != other.hasStatus()) return false;
     if (hasStatus()) {
-      if (!getStatus()
-          .equals(other.getStatus())) return false;
+      if (!getStatus().equals(other.getStatus())) return false;
     }
     if (hasAuthenticationInfo() != other.hasAuthenticationInfo()) return false;
     if (hasAuthenticationInfo()) {
-      if (!getAuthenticationInfo()
-          .equals(other.getAuthenticationInfo())) return false;
+      if (!getAuthenticationInfo().equals(other.getAuthenticationInfo())) return false;
     }
-    if (!getAuthorizationInfoList()
-        .equals(other.getAuthorizationInfoList())) return false;
+    if (!getAuthorizationInfoList().equals(other.getAuthorizationInfoList())) return false;
     if (hasRequestMetadata() != other.hasRequestMetadata()) return false;
     if (hasRequestMetadata()) {
-      if (!getRequestMetadata()
-          .equals(other.getRequestMetadata())) return false;
+      if (!getRequestMetadata().equals(other.getRequestMetadata())) return false;
     }
     if (hasRequest() != other.hasRequest()) return false;
     if (hasRequest()) {
-      if (!getRequest()
-          .equals(other.getRequest())) return false;
+      if (!getRequest().equals(other.getRequest())) return false;
     }
     if (hasResponse() != other.hasResponse()) return false;
     if (hasResponse()) {
-      if (!getResponse()
-          .equals(other.getResponse())) return false;
+      if (!getResponse().equals(other.getResponse())) return false;
     }
     if (hasServiceData() != other.hasServiceData()) return false;
     if (hasServiceData()) {
-      if (!getServiceData()
-          .equals(other.getServiceData())) return false;
+      if (!getServiceData().equals(other.getServiceData())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
 
-  @Override
+  @java.lang.Override
   public int hashCode() {
     if (memoizedHashCode != 0) {
       return memoizedHashCode;
@@ -820,8 +935,7 @@ public int hashCode() {
     hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER;
     hash = (53 * hash) + getResourceName().hashCode();
     hash = (37 * hash) + NUM_RESPONSE_ITEMS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getNumResponseItems());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNumResponseItems());
     if (hasStatus()) {
       hash = (37 * hash) + STATUS_FIELD_NUMBER;
       hash = (53 * hash) + getStatus().hashCode();
@@ -855,118 +969,125 @@ public int hashCode() {
     return hash;
   }
 
-  public static AuditLog parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.audit.AuditLog parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static AuditLog parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.cloud.audit.AuditLog parseFrom(
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static AuditLog parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.cloud.audit.AuditLog parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static AuditLog parseFrom(
+
+  public static com.google.cloud.audit.AuditLog parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static AuditLog parseFrom(byte[] data)
+
+  public static com.google.cloud.audit.AuditLog parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static AuditLog parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.cloud.audit.AuditLog parseFrom(
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static AuditLog parseFrom(java.io.InputStream input)
+
+  public static com.google.cloud.audit.AuditLog 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 AuditLog parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.cloud.audit.AuditLog parseFrom(
+      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 AuditLog parseDelimitedFrom(java.io.InputStream input)
+
+  public static com.google.cloud.audit.AuditLog 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 AuditLog parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.cloud.audit.AuditLog parseDelimitedFrom(
+      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 AuditLog parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.audit.AuditLog parseFrom(
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
-  public static AuditLog parseFrom(
+
+  public static com.google.cloud.audit.AuditLog 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();
   }
 
-  @Override
-  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(AuditLog prototype) {
+
+  public static Builder newBuilder(com.google.cloud.audit.AuditLog prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-  @Override
+
+  @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);
   }
 
-  @Override
-  protected Builder newBuilderForType(
-      BuilderParent parent) {
+  @java.lang.Override
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Common audit log format for Google Cloud Platform API operations.
    * 
* * Protobuf type {@code google.cloud.audit.AuditLog} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.audit.AuditLog) com.google.cloud.audit.AuditLogOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.audit.AuditLogProto.internal_static_google_cloud_audit_AuditLog_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.audit.AuditLogProto + .internal_static_google_cloud_audit_AuditLog_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.audit.AuditLogProto.internal_static_google_cloud_audit_AuditLog_fieldAccessorTable + return com.google.cloud.audit.AuditLogProto + .internal_static_google_cloud_audit_AuditLog_fieldAccessorTable .ensureFieldAccessorsInitialized( - AuditLog.class, Builder.class); + com.google.cloud.audit.AuditLog.class, com.google.cloud.audit.AuditLog.Builder.class); } // Construct using com.google.cloud.audit.AuditLog.newBuilder() @@ -974,18 +1095,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAuthorizationInfoFieldBuilder(); } } - @Override + + @java.lang.Override public Builder clear() { super.clear(); serviceName_ = ""; @@ -1010,7 +1131,7 @@ public Builder clear() { } if (authorizationInfoBuilder_ == null) { authorizationInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000001); } else { authorizationInfoBuilder_.clear(); } @@ -1041,31 +1162,30 @@ public Builder clear() { return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.audit.AuditLogProto.internal_static_google_cloud_audit_AuditLog_descriptor; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.audit.AuditLogProto + .internal_static_google_cloud_audit_AuditLog_descriptor; } - @Override - public AuditLog getDefaultInstanceForType() { - return AuditLog.getDefaultInstance(); + @java.lang.Override + public com.google.cloud.audit.AuditLog getDefaultInstanceForType() { + return com.google.cloud.audit.AuditLog.getDefaultInstance(); } - @Override - public AuditLog build() { - AuditLog result = buildPartial(); + @java.lang.Override + public com.google.cloud.audit.AuditLog build() { + com.google.cloud.audit.AuditLog result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public AuditLog buildPartial() { - AuditLog result = new AuditLog(this); + @java.lang.Override + public com.google.cloud.audit.AuditLog buildPartial() { + com.google.cloud.audit.AuditLog result = new com.google.cloud.audit.AuditLog(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.serviceName_ = serviceName_; result.methodName_ = methodName_; result.resourceName_ = resourceName_; @@ -1081,9 +1201,9 @@ public AuditLog buildPartial() { result.authenticationInfo_ = authenticationInfoBuilder_.build(); } if (authorizationInfoBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { authorizationInfo_ = java.util.Collections.unmodifiableList(authorizationInfo_); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000001); } result.authorizationInfo_ = authorizationInfo_; } else { @@ -1109,55 +1229,55 @@ public AuditLog buildPartial() { } else { result.serviceData_ = serviceDataBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof AuditLog) { - return mergeFrom((AuditLog)other); + if (other instanceof com.google.cloud.audit.AuditLog) { + return mergeFrom((com.google.cloud.audit.AuditLog) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(AuditLog other) { - if (other == AuditLog.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.audit.AuditLog other) { + if (other == com.google.cloud.audit.AuditLog.getDefaultInstance()) return this; if (!other.getServiceName().isEmpty()) { serviceName_ = other.serviceName_; onChanged(); @@ -1183,7 +1303,7 @@ public Builder mergeFrom(AuditLog other) { if (!other.authorizationInfo_.isEmpty()) { if (authorizationInfo_.isEmpty()) { authorizationInfo_ = other.authorizationInfo_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAuthorizationInfoIsMutable(); authorizationInfo_.addAll(other.authorizationInfo_); @@ -1196,10 +1316,11 @@ public Builder mergeFrom(AuditLog other) { authorizationInfoBuilder_.dispose(); authorizationInfoBuilder_ = null; authorizationInfo_ = other.authorizationInfo_; - bitField0_ = (bitField0_ & ~0x00000040); - authorizationInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAuthorizationInfoFieldBuilder() : null; + bitField0_ = (bitField0_ & ~0x00000001); + authorizationInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAuthorizationInfoFieldBuilder() + : null; } else { authorizationInfoBuilder_.addAllMessages(other.authorizationInfo_); } @@ -1222,21 +1343,21 @@ public Builder mergeFrom(AuditLog other) { return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - AuditLog parsedMessage = null; + com.google.cloud.audit.AuditLog parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (AuditLog) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.audit.AuditLog) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1245,44 +1366,50 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private Object serviceName_ = ""; + private java.lang.Object serviceName_ = ""; /** + * + * *
      * The name of the API service performing the operation. For example,
      * `"datastore.googleapis.com"`.
      * 
* * string service_name = 7; + * + * @return The serviceName. */ - public String getServiceName() { - Object ref = serviceName_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getServiceName() { + java.lang.Object ref = serviceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); serviceName_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The name of the API service performing the operation. For example,
      * `"datastore.googleapis.com"`.
      * 
* * string service_name = 7; + * + * @return The bytes for serviceName. */ - public com.google.protobuf.ByteString - getServiceNameBytes() { - Object ref = serviceName_; + public com.google.protobuf.ByteString getServiceNameBytes() { + java.lang.Object ref = serviceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceName_ = b; return b; } else { @@ -1290,59 +1417,73 @@ public String getServiceName() { } } /** + * + * *
      * The name of the API service performing the operation. For example,
      * `"datastore.googleapis.com"`.
      * 
* * string service_name = 7; + * + * @param value The serviceName to set. + * @return This builder for chaining. */ - public Builder setServiceName( - String value) { + public Builder setServiceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceName_ = value; onChanged(); return this; } /** + * + * *
      * The name of the API service performing the operation. For example,
      * `"datastore.googleapis.com"`.
      * 
* * string service_name = 7; + * + * @return This builder for chaining. */ public Builder clearServiceName() { - + serviceName_ = getDefaultInstance().getServiceName(); onChanged(); return this; } /** + * + * *
      * The name of the API service performing the operation. For example,
      * `"datastore.googleapis.com"`.
      * 
* * string service_name = 7; + * + * @param value The bytes for serviceName to set. + * @return This builder for chaining. */ - public Builder setServiceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceName_ = value; onChanged(); return this; } - private Object methodName_ = ""; + private java.lang.Object methodName_ = ""; /** + * + * *
      * The name of the service method or operation.
      * For API calls, this should be the name of the API method.
@@ -1352,20 +1493,23 @@ public Builder setServiceNameBytes(
      * 
* * string method_name = 8; + * + * @return The methodName. */ - public String getMethodName() { - Object ref = methodName_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getMethodName() { + java.lang.Object ref = methodName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); methodName_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The name of the service method or operation.
      * For API calls, this should be the name of the API method.
@@ -1375,14 +1519,14 @@ public String getMethodName() {
      * 
* * string method_name = 8; + * + * @return The bytes for methodName. */ - public com.google.protobuf.ByteString - getMethodNameBytes() { - Object ref = methodName_; + public com.google.protobuf.ByteString getMethodNameBytes() { + java.lang.Object ref = methodName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); methodName_ = b; return b; } else { @@ -1390,6 +1534,8 @@ public String getMethodName() { } } /** + * + * *
      * The name of the service method or operation.
      * For API calls, this should be the name of the API method.
@@ -1399,18 +1545,22 @@ public String getMethodName() {
      * 
* * string method_name = 8; + * + * @param value The methodName to set. + * @return This builder for chaining. */ - public Builder setMethodName( - String value) { + public Builder setMethodName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + methodName_ = value; onChanged(); return this; } /** + * + * *
      * The name of the service method or operation.
      * For API calls, this should be the name of the API method.
@@ -1420,14 +1570,18 @@ public Builder setMethodName(
      * 
* * string method_name = 8; + * + * @return This builder for chaining. */ public Builder clearMethodName() { - + methodName_ = getDefaultInstance().getMethodName(); onChanged(); return this; } /** + * + * *
      * The name of the service method or operation.
      * For API calls, this should be the name of the API method.
@@ -1437,21 +1591,25 @@ public Builder clearMethodName() {
      * 
* * string method_name = 8; + * + * @param value The bytes for methodName to set. + * @return This builder for chaining. */ - public Builder setMethodNameBytes( - com.google.protobuf.ByteString value) { + public Builder setMethodNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + methodName_ = value; onChanged(); return this; } - private Object resourceName_ = ""; + private java.lang.Object resourceName_ = ""; /** + * + * *
      * The resource or collection that is the target of the operation.
      * The name is a scheme-less URI, not including the API service name.
@@ -1461,20 +1619,23 @@ public Builder setMethodNameBytes(
      * 
* * string resource_name = 11; + * + * @return The resourceName. */ - public String getResourceName() { - Object ref = resourceName_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The resource or collection that is the target of the operation.
      * The name is a scheme-less URI, not including the API service name.
@@ -1484,14 +1645,14 @@ public String getResourceName() {
      * 
* * string resource_name = 11; + * + * @return The bytes for resourceName. */ - public com.google.protobuf.ByteString - getResourceNameBytes() { - Object ref = resourceName_; + public com.google.protobuf.ByteString getResourceNameBytes() { + java.lang.Object ref = resourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceName_ = b; return b; } else { @@ -1499,6 +1660,8 @@ public String getResourceName() { } } /** + * + * *
      * The resource or collection that is the target of the operation.
      * The name is a scheme-less URI, not including the API service name.
@@ -1508,18 +1671,22 @@ public String getResourceName() {
      * 
* * string resource_name = 11; + * + * @param value The resourceName to set. + * @return This builder for chaining. */ - public Builder setResourceName( - String value) { + public Builder setResourceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceName_ = value; onChanged(); return this; } /** + * + * *
      * The resource or collection that is the target of the operation.
      * The name is a scheme-less URI, not including the API service name.
@@ -1529,14 +1696,18 @@ public Builder setResourceName(
      * 
* * string resource_name = 11; + * + * @return This builder for chaining. */ public Builder clearResourceName() { - + resourceName_ = getDefaultInstance().getResourceName(); onChanged(); return this; } /** + * + * *
      * The resource or collection that is the target of the operation.
      * The name is a scheme-less URI, not including the API service name.
@@ -1546,55 +1717,70 @@ public Builder clearResourceName() {
      * 
* * string resource_name = 11; + * + * @param value The bytes for resourceName to set. + * @return This builder for chaining. */ - public Builder setResourceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceName_ = value; onChanged(); return this; } - private long numResponseItems_ ; + private long numResponseItems_; /** + * + * *
      * The number of items returned from a List or Query API method,
      * if applicable.
      * 
* * int64 num_response_items = 12; + * + * @return The numResponseItems. */ public long getNumResponseItems() { return numResponseItems_; } /** + * + * *
      * The number of items returned from a List or Query API method,
      * if applicable.
      * 
* * int64 num_response_items = 12; + * + * @param value The numResponseItems to set. + * @return This builder for chaining. */ public Builder setNumResponseItems(long value) { - + numResponseItems_ = value; onChanged(); return this; } /** + * + * *
      * The number of items returned from a List or Query API method,
      * if applicable.
      * 
* * int64 num_response_items = 12; + * + * @return This builder for chaining. */ public Builder clearNumResponseItems() { - + numResponseItems_ = 0L; onChanged(); return this; @@ -1602,23 +1788,32 @@ public Builder clearNumResponseItems() { private com.google.rpc.Status status_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + statusBuilder_; /** + * + * *
      * The status of the overall operation.
      * 
* * .google.rpc.Status status = 2; + * + * @return Whether the status field is set. */ public boolean hasStatus() { return statusBuilder_ != null || status_ != null; } /** + * + * *
      * The status of the overall operation.
      * 
* * .google.rpc.Status status = 2; + * + * @return The status. */ public com.google.rpc.Status getStatus() { if (statusBuilder_ == null) { @@ -1628,6 +1823,8 @@ public com.google.rpc.Status getStatus() { } } /** + * + * *
      * The status of the overall operation.
      * 
@@ -1648,14 +1845,15 @@ public Builder setStatus(com.google.rpc.Status value) { return this; } /** + * + * *
      * The status of the overall operation.
      * 
* * .google.rpc.Status status = 2; */ - public Builder setStatus( - com.google.rpc.Status.Builder builderForValue) { + public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); @@ -1666,6 +1864,8 @@ public Builder setStatus( return this; } /** + * + * *
      * The status of the overall operation.
      * 
@@ -1675,8 +1875,7 @@ public Builder setStatus( public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { if (status_ != null) { - status_ = - com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial(); + status_ = com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial(); } else { status_ = value; } @@ -1688,6 +1887,8 @@ public Builder mergeStatus(com.google.rpc.Status value) { return this; } /** + * + * *
      * The status of the overall operation.
      * 
@@ -1706,6 +1907,8 @@ public Builder clearStatus() { return this; } /** + * + * *
      * The status of the overall operation.
      * 
@@ -1713,11 +1916,13 @@ public Builder clearStatus() { * .google.rpc.Status status = 2; */ public com.google.rpc.Status.Builder getStatusBuilder() { - + onChanged(); return getStatusFieldBuilder().getBuilder(); } /** + * + * *
      * The status of the overall operation.
      * 
@@ -1728,11 +1933,12 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null ? - com.google.rpc.Status.getDefaultInstance() : status_; + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } } /** + * + * *
      * The status of the overall operation.
      * 
@@ -1740,14 +1946,14 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { * .google.rpc.Status status = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - getStatus(), - getParentForChildren(), - isClean()); + statusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; @@ -1755,32 +1961,47 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { private com.google.cloud.audit.AuthenticationInfo authenticationInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.audit.AuthenticationInfo, com.google.cloud.audit.AuthenticationInfo.Builder, com.google.cloud.audit.AuthenticationInfoOrBuilder> authenticationInfoBuilder_; + com.google.cloud.audit.AuthenticationInfo, + com.google.cloud.audit.AuthenticationInfo.Builder, + com.google.cloud.audit.AuthenticationInfoOrBuilder> + authenticationInfoBuilder_; /** + * + * *
      * Authentication information.
      * 
* * .google.cloud.audit.AuthenticationInfo authentication_info = 3; + * + * @return Whether the authenticationInfo field is set. */ public boolean hasAuthenticationInfo() { return authenticationInfoBuilder_ != null || authenticationInfo_ != null; } /** + * + * *
      * Authentication information.
      * 
* * .google.cloud.audit.AuthenticationInfo authentication_info = 3; + * + * @return The authenticationInfo. */ public com.google.cloud.audit.AuthenticationInfo getAuthenticationInfo() { if (authenticationInfoBuilder_ == null) { - return authenticationInfo_ == null ? com.google.cloud.audit.AuthenticationInfo.getDefaultInstance() : authenticationInfo_; + return authenticationInfo_ == null + ? com.google.cloud.audit.AuthenticationInfo.getDefaultInstance() + : authenticationInfo_; } else { return authenticationInfoBuilder_.getMessage(); } } /** + * + * *
      * Authentication information.
      * 
@@ -1801,6 +2022,8 @@ public Builder setAuthenticationInfo(com.google.cloud.audit.AuthenticationInfo v return this; } /** + * + * *
      * Authentication information.
      * 
@@ -1819,6 +2042,8 @@ public Builder setAuthenticationInfo( return this; } /** + * + * *
      * Authentication information.
      * 
@@ -1829,7 +2054,9 @@ public Builder mergeAuthenticationInfo(com.google.cloud.audit.AuthenticationInfo if (authenticationInfoBuilder_ == null) { if (authenticationInfo_ != null) { authenticationInfo_ = - com.google.cloud.audit.AuthenticationInfo.newBuilder(authenticationInfo_).mergeFrom(value).buildPartial(); + com.google.cloud.audit.AuthenticationInfo.newBuilder(authenticationInfo_) + .mergeFrom(value) + .buildPartial(); } else { authenticationInfo_ = value; } @@ -1841,6 +2068,8 @@ public Builder mergeAuthenticationInfo(com.google.cloud.audit.AuthenticationInfo return this; } /** + * + * *
      * Authentication information.
      * 
@@ -1859,6 +2088,8 @@ public Builder clearAuthenticationInfo() { return this; } /** + * + * *
      * Authentication information.
      * 
@@ -1866,11 +2097,13 @@ public Builder clearAuthenticationInfo() { * .google.cloud.audit.AuthenticationInfo authentication_info = 3; */ public com.google.cloud.audit.AuthenticationInfo.Builder getAuthenticationInfoBuilder() { - + onChanged(); return getAuthenticationInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Authentication information.
      * 
@@ -1881,11 +2114,14 @@ public com.google.cloud.audit.AuthenticationInfoOrBuilder getAuthenticationInfoO if (authenticationInfoBuilder_ != null) { return authenticationInfoBuilder_.getMessageOrBuilder(); } else { - return authenticationInfo_ == null ? - com.google.cloud.audit.AuthenticationInfo.getDefaultInstance() : authenticationInfo_; + return authenticationInfo_ == null + ? com.google.cloud.audit.AuthenticationInfo.getDefaultInstance() + : authenticationInfo_; } } /** + * + * *
      * Authentication information.
      * 
@@ -1893,32 +2129,42 @@ public com.google.cloud.audit.AuthenticationInfoOrBuilder getAuthenticationInfoO * .google.cloud.audit.AuthenticationInfo authentication_info = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.audit.AuthenticationInfo, com.google.cloud.audit.AuthenticationInfo.Builder, com.google.cloud.audit.AuthenticationInfoOrBuilder> + com.google.cloud.audit.AuthenticationInfo, + com.google.cloud.audit.AuthenticationInfo.Builder, + com.google.cloud.audit.AuthenticationInfoOrBuilder> getAuthenticationInfoFieldBuilder() { if (authenticationInfoBuilder_ == null) { - authenticationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.audit.AuthenticationInfo, com.google.cloud.audit.AuthenticationInfo.Builder, com.google.cloud.audit.AuthenticationInfoOrBuilder>( - getAuthenticationInfo(), - getParentForChildren(), - isClean()); + authenticationInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.audit.AuthenticationInfo, + com.google.cloud.audit.AuthenticationInfo.Builder, + com.google.cloud.audit.AuthenticationInfoOrBuilder>( + getAuthenticationInfo(), getParentForChildren(), isClean()); authenticationInfo_ = null; } return authenticationInfoBuilder_; } private java.util.List authorizationInfo_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAuthorizationInfoIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - authorizationInfo_ = new java.util.ArrayList(authorizationInfo_); - bitField0_ |= 0x00000040; - } + if (!((bitField0_ & 0x00000001) != 0)) { + authorizationInfo_ = + new java.util.ArrayList(authorizationInfo_); + bitField0_ |= 0x00000001; + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.audit.AuthorizationInfo, com.google.cloud.audit.AuthorizationInfo.Builder, com.google.cloud.audit.AuthorizationInfoOrBuilder> authorizationInfoBuilder_; + com.google.cloud.audit.AuthorizationInfo, + com.google.cloud.audit.AuthorizationInfo.Builder, + com.google.cloud.audit.AuthorizationInfoOrBuilder> + authorizationInfoBuilder_; /** + * + * *
      * Authorization information. If there are multiple
      * resources or permissions involved, then there is
@@ -1935,6 +2181,8 @@ public java.util.List getAuthorization
       }
     }
     /**
+     *
+     *
      * 
      * Authorization information. If there are multiple
      * resources or permissions involved, then there is
@@ -1951,6 +2199,8 @@ public int getAuthorizationInfoCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Authorization information. If there are multiple
      * resources or permissions involved, then there is
@@ -1967,6 +2217,8 @@ public com.google.cloud.audit.AuthorizationInfo getAuthorizationInfo(int index)
       }
     }
     /**
+     *
+     *
      * 
      * Authorization information. If there are multiple
      * resources or permissions involved, then there is
@@ -1975,8 +2227,7 @@ public com.google.cloud.audit.AuthorizationInfo getAuthorizationInfo(int index)
      *
      * repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
      */
-    public Builder setAuthorizationInfo(
-        int index, com.google.cloud.audit.AuthorizationInfo value) {
+    public Builder setAuthorizationInfo(int index, com.google.cloud.audit.AuthorizationInfo value) {
       if (authorizationInfoBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1990,6 +2241,8 @@ public Builder setAuthorizationInfo(
       return this;
     }
     /**
+     *
+     *
      * 
      * Authorization information. If there are multiple
      * resources or permissions involved, then there is
@@ -2010,6 +2263,8 @@ public Builder setAuthorizationInfo(
       return this;
     }
     /**
+     *
+     *
      * 
      * Authorization information. If there are multiple
      * resources or permissions involved, then there is
@@ -2032,6 +2287,8 @@ public Builder addAuthorizationInfo(com.google.cloud.audit.AuthorizationInfo val
       return this;
     }
     /**
+     *
+     *
      * 
      * Authorization information. If there are multiple
      * resources or permissions involved, then there is
@@ -2040,8 +2297,7 @@ public Builder addAuthorizationInfo(com.google.cloud.audit.AuthorizationInfo val
      *
      * repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
      */
-    public Builder addAuthorizationInfo(
-        int index, com.google.cloud.audit.AuthorizationInfo value) {
+    public Builder addAuthorizationInfo(int index, com.google.cloud.audit.AuthorizationInfo value) {
       if (authorizationInfoBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2055,6 +2311,8 @@ public Builder addAuthorizationInfo(
       return this;
     }
     /**
+     *
+     *
      * 
      * Authorization information. If there are multiple
      * resources or permissions involved, then there is
@@ -2075,6 +2333,8 @@ public Builder addAuthorizationInfo(
       return this;
     }
     /**
+     *
+     *
      * 
      * Authorization information. If there are multiple
      * resources or permissions involved, then there is
@@ -2095,6 +2355,8 @@ public Builder addAuthorizationInfo(
       return this;
     }
     /**
+     *
+     *
      * 
      * Authorization information. If there are multiple
      * resources or permissions involved, then there is
@@ -2104,11 +2366,10 @@ public Builder addAuthorizationInfo(
      * repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
      */
     public Builder addAllAuthorizationInfo(
-        Iterable values) {
+        java.lang.Iterable values) {
       if (authorizationInfoBuilder_ == null) {
         ensureAuthorizationInfoIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, authorizationInfo_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, authorizationInfo_);
         onChanged();
       } else {
         authorizationInfoBuilder_.addAllMessages(values);
@@ -2116,6 +2377,8 @@ public Builder addAllAuthorizationInfo(
       return this;
     }
     /**
+     *
+     *
      * 
      * Authorization information. If there are multiple
      * resources or permissions involved, then there is
@@ -2127,7 +2390,7 @@ public Builder addAllAuthorizationInfo(
     public Builder clearAuthorizationInfo() {
       if (authorizationInfoBuilder_ == null) {
         authorizationInfo_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000040);
+        bitField0_ = (bitField0_ & ~0x00000001);
         onChanged();
       } else {
         authorizationInfoBuilder_.clear();
@@ -2135,6 +2398,8 @@ public Builder clearAuthorizationInfo() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Authorization information. If there are multiple
      * resources or permissions involved, then there is
@@ -2154,6 +2419,8 @@ public Builder removeAuthorizationInfo(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Authorization information. If there are multiple
      * resources or permissions involved, then there is
@@ -2162,11 +2429,12 @@ public Builder removeAuthorizationInfo(int index) {
      *
      * repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
      */
-    public com.google.cloud.audit.AuthorizationInfo.Builder getAuthorizationInfoBuilder(
-        int index) {
+    public com.google.cloud.audit.AuthorizationInfo.Builder getAuthorizationInfoBuilder(int index) {
       return getAuthorizationInfoFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Authorization information. If there are multiple
      * resources or permissions involved, then there is
@@ -2178,11 +2446,14 @@ public com.google.cloud.audit.AuthorizationInfo.Builder getAuthorizationInfoBuil
     public com.google.cloud.audit.AuthorizationInfoOrBuilder getAuthorizationInfoOrBuilder(
         int index) {
       if (authorizationInfoBuilder_ == null) {
-        return authorizationInfo_.get(index);  } else {
+        return authorizationInfo_.get(index);
+      } else {
         return authorizationInfoBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Authorization information. If there are multiple
      * resources or permissions involved, then there is
@@ -2191,8 +2462,8 @@ public com.google.cloud.audit.AuthorizationInfoOrBuilder getAuthorizationInfoOrB
      *
      * repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
      */
-    public java.util.List 
-         getAuthorizationInfoOrBuilderList() {
+    public java.util.List
+        getAuthorizationInfoOrBuilderList() {
       if (authorizationInfoBuilder_ != null) {
         return authorizationInfoBuilder_.getMessageOrBuilderList();
       } else {
@@ -2200,6 +2471,8 @@ public com.google.cloud.audit.AuthorizationInfoOrBuilder getAuthorizationInfoOrB
       }
     }
     /**
+     *
+     *
      * 
      * Authorization information. If there are multiple
      * resources or permissions involved, then there is
@@ -2209,10 +2482,12 @@ public com.google.cloud.audit.AuthorizationInfoOrBuilder getAuthorizationInfoOrB
      * repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
      */
     public com.google.cloud.audit.AuthorizationInfo.Builder addAuthorizationInfoBuilder() {
-      return getAuthorizationInfoFieldBuilder().addBuilder(
-          com.google.cloud.audit.AuthorizationInfo.getDefaultInstance());
+      return getAuthorizationInfoFieldBuilder()
+          .addBuilder(com.google.cloud.audit.AuthorizationInfo.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Authorization information. If there are multiple
      * resources or permissions involved, then there is
@@ -2221,12 +2496,13 @@ public com.google.cloud.audit.AuthorizationInfo.Builder addAuthorizationInfoBuil
      *
      * repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
      */
-    public com.google.cloud.audit.AuthorizationInfo.Builder addAuthorizationInfoBuilder(
-        int index) {
-      return getAuthorizationInfoFieldBuilder().addBuilder(
-          index, com.google.cloud.audit.AuthorizationInfo.getDefaultInstance());
+    public com.google.cloud.audit.AuthorizationInfo.Builder addAuthorizationInfoBuilder(int index) {
+      return getAuthorizationInfoFieldBuilder()
+          .addBuilder(index, com.google.cloud.audit.AuthorizationInfo.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Authorization information. If there are multiple
      * resources or permissions involved, then there is
@@ -2235,18 +2511,24 @@ public com.google.cloud.audit.AuthorizationInfo.Builder addAuthorizationInfoBuil
      *
      * repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
      */
-    public java.util.List 
-         getAuthorizationInfoBuilderList() {
+    public java.util.List
+        getAuthorizationInfoBuilderList() {
       return getAuthorizationInfoFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.audit.AuthorizationInfo, com.google.cloud.audit.AuthorizationInfo.Builder, com.google.cloud.audit.AuthorizationInfoOrBuilder> 
+            com.google.cloud.audit.AuthorizationInfo,
+            com.google.cloud.audit.AuthorizationInfo.Builder,
+            com.google.cloud.audit.AuthorizationInfoOrBuilder>
         getAuthorizationInfoFieldBuilder() {
       if (authorizationInfoBuilder_ == null) {
-        authorizationInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.audit.AuthorizationInfo, com.google.cloud.audit.AuthorizationInfo.Builder, com.google.cloud.audit.AuthorizationInfoOrBuilder>(
+        authorizationInfoBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.audit.AuthorizationInfo,
+                com.google.cloud.audit.AuthorizationInfo.Builder,
+                com.google.cloud.audit.AuthorizationInfoOrBuilder>(
                 authorizationInfo_,
-                ((bitField0_ & 0x00000040) != 0),
+                ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
                 isClean());
         authorizationInfo_ = null;
@@ -2256,32 +2538,47 @@ public com.google.cloud.audit.AuthorizationInfo.Builder addAuthorizationInfoBuil
 
     private com.google.cloud.audit.RequestMetadata requestMetadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.audit.RequestMetadata, com.google.cloud.audit.RequestMetadata.Builder, com.google.cloud.audit.RequestMetadataOrBuilder> requestMetadataBuilder_;
+            com.google.cloud.audit.RequestMetadata,
+            com.google.cloud.audit.RequestMetadata.Builder,
+            com.google.cloud.audit.RequestMetadataOrBuilder>
+        requestMetadataBuilder_;
     /**
+     *
+     *
      * 
      * Metadata about the operation.
      * 
* * .google.cloud.audit.RequestMetadata request_metadata = 4; + * + * @return Whether the requestMetadata field is set. */ public boolean hasRequestMetadata() { return requestMetadataBuilder_ != null || requestMetadata_ != null; } /** + * + * *
      * Metadata about the operation.
      * 
* * .google.cloud.audit.RequestMetadata request_metadata = 4; + * + * @return The requestMetadata. */ public com.google.cloud.audit.RequestMetadata getRequestMetadata() { if (requestMetadataBuilder_ == null) { - return requestMetadata_ == null ? com.google.cloud.audit.RequestMetadata.getDefaultInstance() : requestMetadata_; + return requestMetadata_ == null + ? com.google.cloud.audit.RequestMetadata.getDefaultInstance() + : requestMetadata_; } else { return requestMetadataBuilder_.getMessage(); } } /** + * + * *
      * Metadata about the operation.
      * 
@@ -2302,6 +2599,8 @@ public Builder setRequestMetadata(com.google.cloud.audit.RequestMetadata value) return this; } /** + * + * *
      * Metadata about the operation.
      * 
@@ -2320,6 +2619,8 @@ public Builder setRequestMetadata( return this; } /** + * + * *
      * Metadata about the operation.
      * 
@@ -2330,7 +2631,9 @@ public Builder mergeRequestMetadata(com.google.cloud.audit.RequestMetadata value if (requestMetadataBuilder_ == null) { if (requestMetadata_ != null) { requestMetadata_ = - com.google.cloud.audit.RequestMetadata.newBuilder(requestMetadata_).mergeFrom(value).buildPartial(); + com.google.cloud.audit.RequestMetadata.newBuilder(requestMetadata_) + .mergeFrom(value) + .buildPartial(); } else { requestMetadata_ = value; } @@ -2342,6 +2645,8 @@ public Builder mergeRequestMetadata(com.google.cloud.audit.RequestMetadata value return this; } /** + * + * *
      * Metadata about the operation.
      * 
@@ -2360,6 +2665,8 @@ public Builder clearRequestMetadata() { return this; } /** + * + * *
      * Metadata about the operation.
      * 
@@ -2367,11 +2674,13 @@ public Builder clearRequestMetadata() { * .google.cloud.audit.RequestMetadata request_metadata = 4; */ public com.google.cloud.audit.RequestMetadata.Builder getRequestMetadataBuilder() { - + onChanged(); return getRequestMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata about the operation.
      * 
@@ -2382,11 +2691,14 @@ public com.google.cloud.audit.RequestMetadataOrBuilder getRequestMetadataOrBuild if (requestMetadataBuilder_ != null) { return requestMetadataBuilder_.getMessageOrBuilder(); } else { - return requestMetadata_ == null ? - com.google.cloud.audit.RequestMetadata.getDefaultInstance() : requestMetadata_; + return requestMetadata_ == null + ? com.google.cloud.audit.RequestMetadata.getDefaultInstance() + : requestMetadata_; } } /** + * + * *
      * Metadata about the operation.
      * 
@@ -2394,14 +2706,17 @@ public com.google.cloud.audit.RequestMetadataOrBuilder getRequestMetadataOrBuild * .google.cloud.audit.RequestMetadata request_metadata = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.audit.RequestMetadata, com.google.cloud.audit.RequestMetadata.Builder, com.google.cloud.audit.RequestMetadataOrBuilder> + com.google.cloud.audit.RequestMetadata, + com.google.cloud.audit.RequestMetadata.Builder, + com.google.cloud.audit.RequestMetadataOrBuilder> getRequestMetadataFieldBuilder() { if (requestMetadataBuilder_ == null) { - requestMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.audit.RequestMetadata, com.google.cloud.audit.RequestMetadata.Builder, com.google.cloud.audit.RequestMetadataOrBuilder>( - getRequestMetadata(), - getParentForChildren(), - isClean()); + requestMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.audit.RequestMetadata, + com.google.cloud.audit.RequestMetadata.Builder, + com.google.cloud.audit.RequestMetadataOrBuilder>( + getRequestMetadata(), getParentForChildren(), isClean()); requestMetadata_ = null; } return requestMetadataBuilder_; @@ -2409,8 +2724,13 @@ public com.google.cloud.audit.RequestMetadataOrBuilder getRequestMetadataOrBuild private com.google.protobuf.Struct request_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> requestBuilder_; + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + requestBuilder_; /** + * + * *
      * The operation request. This may not include all request parameters,
      * such as those that are too large, privacy-sensitive, or duplicated
@@ -2421,11 +2741,15 @@ public com.google.cloud.audit.RequestMetadataOrBuilder getRequestMetadataOrBuild
      * 
* * .google.protobuf.Struct request = 16; + * + * @return Whether the request field is set. */ public boolean hasRequest() { return requestBuilder_ != null || request_ != null; } /** + * + * *
      * The operation request. This may not include all request parameters,
      * such as those that are too large, privacy-sensitive, or duplicated
@@ -2436,6 +2760,8 @@ public boolean hasRequest() {
      * 
* * .google.protobuf.Struct request = 16; + * + * @return The request. */ public com.google.protobuf.Struct getRequest() { if (requestBuilder_ == null) { @@ -2445,6 +2771,8 @@ public com.google.protobuf.Struct getRequest() { } } /** + * + * *
      * The operation request. This may not include all request parameters,
      * such as those that are too large, privacy-sensitive, or duplicated
@@ -2470,6 +2798,8 @@ public Builder setRequest(com.google.protobuf.Struct value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The operation request. This may not include all request parameters,
      * such as those that are too large, privacy-sensitive, or duplicated
@@ -2481,8 +2811,7 @@ public Builder setRequest(com.google.protobuf.Struct value) {
      *
      * .google.protobuf.Struct request = 16;
      */
-    public Builder setRequest(
-        com.google.protobuf.Struct.Builder builderForValue) {
+    public Builder setRequest(com.google.protobuf.Struct.Builder builderForValue) {
       if (requestBuilder_ == null) {
         request_ = builderForValue.build();
         onChanged();
@@ -2493,6 +2822,8 @@ public Builder setRequest(
       return this;
     }
     /**
+     *
+     *
      * 
      * The operation request. This may not include all request parameters,
      * such as those that are too large, privacy-sensitive, or duplicated
@@ -2508,7 +2839,7 @@ public Builder mergeRequest(com.google.protobuf.Struct value) {
       if (requestBuilder_ == null) {
         if (request_ != null) {
           request_ =
-            com.google.protobuf.Struct.newBuilder(request_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Struct.newBuilder(request_).mergeFrom(value).buildPartial();
         } else {
           request_ = value;
         }
@@ -2520,6 +2851,8 @@ public Builder mergeRequest(com.google.protobuf.Struct value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The operation request. This may not include all request parameters,
      * such as those that are too large, privacy-sensitive, or duplicated
@@ -2543,6 +2876,8 @@ public Builder clearRequest() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The operation request. This may not include all request parameters,
      * such as those that are too large, privacy-sensitive, or duplicated
@@ -2555,11 +2890,13 @@ public Builder clearRequest() {
      * .google.protobuf.Struct request = 16;
      */
     public com.google.protobuf.Struct.Builder getRequestBuilder() {
-      
+
       onChanged();
       return getRequestFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The operation request. This may not include all request parameters,
      * such as those that are too large, privacy-sensitive, or duplicated
@@ -2575,11 +2912,12 @@ public com.google.protobuf.StructOrBuilder getRequestOrBuilder() {
       if (requestBuilder_ != null) {
         return requestBuilder_.getMessageOrBuilder();
       } else {
-        return request_ == null ?
-            com.google.protobuf.Struct.getDefaultInstance() : request_;
+        return request_ == null ? com.google.protobuf.Struct.getDefaultInstance() : request_;
       }
     }
     /**
+     *
+     *
      * 
      * The operation request. This may not include all request parameters,
      * such as those that are too large, privacy-sensitive, or duplicated
@@ -2592,14 +2930,17 @@ public com.google.protobuf.StructOrBuilder getRequestOrBuilder() {
      * .google.protobuf.Struct request = 16;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
+            com.google.protobuf.Struct,
+            com.google.protobuf.Struct.Builder,
+            com.google.protobuf.StructOrBuilder>
         getRequestFieldBuilder() {
       if (requestBuilder_ == null) {
-        requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
-                getRequest(),
-                getParentForChildren(),
-                isClean());
+        requestBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Struct,
+                com.google.protobuf.Struct.Builder,
+                com.google.protobuf.StructOrBuilder>(
+                getRequest(), getParentForChildren(), isClean());
         request_ = null;
       }
       return requestBuilder_;
@@ -2607,8 +2948,13 @@ public com.google.protobuf.StructOrBuilder getRequestOrBuilder() {
 
     private com.google.protobuf.Struct response_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> responseBuilder_;
+            com.google.protobuf.Struct,
+            com.google.protobuf.Struct.Builder,
+            com.google.protobuf.StructOrBuilder>
+        responseBuilder_;
     /**
+     *
+     *
      * 
      * The operation response. This may not include all response elements,
      * such as those that are too large, privacy-sensitive, or duplicated
@@ -2619,11 +2965,15 @@ public com.google.protobuf.StructOrBuilder getRequestOrBuilder() {
      * 
* * .google.protobuf.Struct response = 17; + * + * @return Whether the response field is set. */ public boolean hasResponse() { return responseBuilder_ != null || response_ != null; } /** + * + * *
      * The operation response. This may not include all response elements,
      * such as those that are too large, privacy-sensitive, or duplicated
@@ -2634,6 +2984,8 @@ public boolean hasResponse() {
      * 
* * .google.protobuf.Struct response = 17; + * + * @return The response. */ public com.google.protobuf.Struct getResponse() { if (responseBuilder_ == null) { @@ -2643,6 +2995,8 @@ public com.google.protobuf.Struct getResponse() { } } /** + * + * *
      * The operation response. This may not include all response elements,
      * such as those that are too large, privacy-sensitive, or duplicated
@@ -2668,6 +3022,8 @@ public Builder setResponse(com.google.protobuf.Struct value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The operation response. This may not include all response elements,
      * such as those that are too large, privacy-sensitive, or duplicated
@@ -2679,8 +3035,7 @@ public Builder setResponse(com.google.protobuf.Struct value) {
      *
      * .google.protobuf.Struct response = 17;
      */
-    public Builder setResponse(
-        com.google.protobuf.Struct.Builder builderForValue) {
+    public Builder setResponse(com.google.protobuf.Struct.Builder builderForValue) {
       if (responseBuilder_ == null) {
         response_ = builderForValue.build();
         onChanged();
@@ -2691,6 +3046,8 @@ public Builder setResponse(
       return this;
     }
     /**
+     *
+     *
      * 
      * The operation response. This may not include all response elements,
      * such as those that are too large, privacy-sensitive, or duplicated
@@ -2706,7 +3063,7 @@ public Builder mergeResponse(com.google.protobuf.Struct value) {
       if (responseBuilder_ == null) {
         if (response_ != null) {
           response_ =
-            com.google.protobuf.Struct.newBuilder(response_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Struct.newBuilder(response_).mergeFrom(value).buildPartial();
         } else {
           response_ = value;
         }
@@ -2718,6 +3075,8 @@ public Builder mergeResponse(com.google.protobuf.Struct value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The operation response. This may not include all response elements,
      * such as those that are too large, privacy-sensitive, or duplicated
@@ -2741,6 +3100,8 @@ public Builder clearResponse() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The operation response. This may not include all response elements,
      * such as those that are too large, privacy-sensitive, or duplicated
@@ -2753,11 +3114,13 @@ public Builder clearResponse() {
      * .google.protobuf.Struct response = 17;
      */
     public com.google.protobuf.Struct.Builder getResponseBuilder() {
-      
+
       onChanged();
       return getResponseFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The operation response. This may not include all response elements,
      * such as those that are too large, privacy-sensitive, or duplicated
@@ -2773,11 +3136,12 @@ public com.google.protobuf.StructOrBuilder getResponseOrBuilder() {
       if (responseBuilder_ != null) {
         return responseBuilder_.getMessageOrBuilder();
       } else {
-        return response_ == null ?
-            com.google.protobuf.Struct.getDefaultInstance() : response_;
+        return response_ == null ? com.google.protobuf.Struct.getDefaultInstance() : response_;
       }
     }
     /**
+     *
+     *
      * 
      * The operation response. This may not include all response elements,
      * such as those that are too large, privacy-sensitive, or duplicated
@@ -2790,14 +3154,17 @@ public com.google.protobuf.StructOrBuilder getResponseOrBuilder() {
      * .google.protobuf.Struct response = 17;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
+            com.google.protobuf.Struct,
+            com.google.protobuf.Struct.Builder,
+            com.google.protobuf.StructOrBuilder>
         getResponseFieldBuilder() {
       if (responseBuilder_ == null) {
-        responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
-                getResponse(),
-                getParentForChildren(),
-                isClean());
+        responseBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Struct,
+                com.google.protobuf.Struct.Builder,
+                com.google.protobuf.StructOrBuilder>(
+                getResponse(), getParentForChildren(), isClean());
         response_ = null;
       }
       return responseBuilder_;
@@ -2805,25 +3172,36 @@ public com.google.protobuf.StructOrBuilder getResponseOrBuilder() {
 
     private com.google.protobuf.Any serviceData_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> serviceDataBuilder_;
+            com.google.protobuf.Any,
+            com.google.protobuf.Any.Builder,
+            com.google.protobuf.AnyOrBuilder>
+        serviceDataBuilder_;
     /**
+     *
+     *
      * 
      * Other service-specific data about the request, response, and other
      * activities.
      * 
* * .google.protobuf.Any service_data = 15; + * + * @return Whether the serviceData field is set. */ public boolean hasServiceData() { return serviceDataBuilder_ != null || serviceData_ != null; } /** + * + * *
      * Other service-specific data about the request, response, and other
      * activities.
      * 
* * .google.protobuf.Any service_data = 15; + * + * @return The serviceData. */ public com.google.protobuf.Any getServiceData() { if (serviceDataBuilder_ == null) { @@ -2833,6 +3211,8 @@ public com.google.protobuf.Any getServiceData() { } } /** + * + * *
      * Other service-specific data about the request, response, and other
      * activities.
@@ -2854,6 +3234,8 @@ public Builder setServiceData(com.google.protobuf.Any value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Other service-specific data about the request, response, and other
      * activities.
@@ -2861,8 +3243,7 @@ public Builder setServiceData(com.google.protobuf.Any value) {
      *
      * .google.protobuf.Any service_data = 15;
      */
-    public Builder setServiceData(
-        com.google.protobuf.Any.Builder builderForValue) {
+    public Builder setServiceData(com.google.protobuf.Any.Builder builderForValue) {
       if (serviceDataBuilder_ == null) {
         serviceData_ = builderForValue.build();
         onChanged();
@@ -2873,6 +3254,8 @@ public Builder setServiceData(
       return this;
     }
     /**
+     *
+     *
      * 
      * Other service-specific data about the request, response, and other
      * activities.
@@ -2884,7 +3267,7 @@ public Builder mergeServiceData(com.google.protobuf.Any value) {
       if (serviceDataBuilder_ == null) {
         if (serviceData_ != null) {
           serviceData_ =
-            com.google.protobuf.Any.newBuilder(serviceData_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Any.newBuilder(serviceData_).mergeFrom(value).buildPartial();
         } else {
           serviceData_ = value;
         }
@@ -2896,6 +3279,8 @@ public Builder mergeServiceData(com.google.protobuf.Any value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Other service-specific data about the request, response, and other
      * activities.
@@ -2915,6 +3300,8 @@ public Builder clearServiceData() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Other service-specific data about the request, response, and other
      * activities.
@@ -2923,11 +3310,13 @@ public Builder clearServiceData() {
      * .google.protobuf.Any service_data = 15;
      */
     public com.google.protobuf.Any.Builder getServiceDataBuilder() {
-      
+
       onChanged();
       return getServiceDataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Other service-specific data about the request, response, and other
      * activities.
@@ -2939,11 +3328,12 @@ public com.google.protobuf.AnyOrBuilder getServiceDataOrBuilder() {
       if (serviceDataBuilder_ != null) {
         return serviceDataBuilder_.getMessageOrBuilder();
       } else {
-        return serviceData_ == null ?
-            com.google.protobuf.Any.getDefaultInstance() : serviceData_;
+        return serviceData_ == null ? com.google.protobuf.Any.getDefaultInstance() : serviceData_;
       }
     }
     /**
+     *
+     *
      * 
      * Other service-specific data about the request, response, and other
      * activities.
@@ -2952,68 +3342,69 @@ public com.google.protobuf.AnyOrBuilder getServiceDataOrBuilder() {
      * .google.protobuf.Any service_data = 15;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> 
+            com.google.protobuf.Any,
+            com.google.protobuf.Any.Builder,
+            com.google.protobuf.AnyOrBuilder>
         getServiceDataFieldBuilder() {
       if (serviceDataBuilder_ == null) {
-        serviceDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
-                getServiceData(),
-                getParentForChildren(),
-                isClean());
+        serviceDataBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Any,
+                com.google.protobuf.Any.Builder,
+                com.google.protobuf.AnyOrBuilder>(
+                getServiceData(), getParentForChildren(), isClean());
         serviceData_ = null;
       }
       return serviceDataBuilder_;
     }
-    @Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+
+    @java.lang.Override
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
-    @Override
+    @java.lang.Override
     public final Builder mergeUnknownFields(
         final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.audit.AuditLog)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.audit.AuditLog)
-  private static final AuditLog DEFAULT_INSTANCE;
+  private static final com.google.cloud.audit.AuditLog DEFAULT_INSTANCE;
+
   static {
-    DEFAULT_INSTANCE = new AuditLog();
+    DEFAULT_INSTANCE = new com.google.cloud.audit.AuditLog();
   }
 
-  public static AuditLog getDefaultInstance() {
+  public static com.google.cloud.audit.AuditLog getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @Override
-    public AuditLog parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new AuditLog(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public AuditLog parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new AuditLog(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
   }
 
-  @Override
+  @java.lang.Override
   public com.google.protobuf.Parser getParserForType() {
     return PARSER;
   }
 
-  @Override
-  public AuditLog getDefaultInstanceForType() {
+  @java.lang.Override
+  public com.google.cloud.audit.AuditLog getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogOrBuilder.java
index 4886ab82..a5553e18 100644
--- a/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogOrBuilder.java
+++ b/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogOrBuilder.java
@@ -1,33 +1,58 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/audit/audit_log.proto
 
 package com.google.cloud.audit;
 
-public interface AuditLogOrBuilder extends
+public interface AuditLogOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.audit.AuditLog)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The name of the API service performing the operation. For example,
    * `"datastore.googleapis.com"`.
    * 
* * string service_name = 7; + * + * @return The serviceName. */ - String getServiceName(); + java.lang.String getServiceName(); /** + * + * *
    * The name of the API service performing the operation. For example,
    * `"datastore.googleapis.com"`.
    * 
* * string service_name = 7; + * + * @return The bytes for serviceName. */ - com.google.protobuf.ByteString - getServiceNameBytes(); + com.google.protobuf.ByteString getServiceNameBytes(); /** + * + * *
    * The name of the service method or operation.
    * For API calls, this should be the name of the API method.
@@ -37,9 +62,13 @@ public interface AuditLogOrBuilder extends
    * 
* * string method_name = 8; + * + * @return The methodName. */ - String getMethodName(); + java.lang.String getMethodName(); /** + * + * *
    * The name of the service method or operation.
    * For API calls, this should be the name of the API method.
@@ -49,11 +78,14 @@ public interface AuditLogOrBuilder extends
    * 
* * string method_name = 8; + * + * @return The bytes for methodName. */ - com.google.protobuf.ByteString - getMethodNameBytes(); + com.google.protobuf.ByteString getMethodNameBytes(); /** + * + * *
    * The resource or collection that is the target of the operation.
    * The name is a scheme-less URI, not including the API service name.
@@ -63,9 +95,13 @@ public interface AuditLogOrBuilder extends
    * 
* * string resource_name = 11; + * + * @return The resourceName. */ - String getResourceName(); + java.lang.String getResourceName(); /** + * + * *
    * The resource or collection that is the target of the operation.
    * The name is a scheme-less URI, not including the API service name.
@@ -75,37 +111,52 @@ public interface AuditLogOrBuilder extends
    * 
* * string resource_name = 11; + * + * @return The bytes for resourceName. */ - com.google.protobuf.ByteString - getResourceNameBytes(); + com.google.protobuf.ByteString getResourceNameBytes(); /** + * + * *
    * The number of items returned from a List or Query API method,
    * if applicable.
    * 
* * int64 num_response_items = 12; + * + * @return The numResponseItems. */ long getNumResponseItems(); /** + * + * *
    * The status of the overall operation.
    * 
* * .google.rpc.Status status = 2; + * + * @return Whether the status field is set. */ boolean hasStatus(); /** + * + * *
    * The status of the overall operation.
    * 
* * .google.rpc.Status status = 2; + * + * @return The status. */ com.google.rpc.Status getStatus(); /** + * + * *
    * The status of the overall operation.
    * 
@@ -115,22 +166,32 @@ public interface AuditLogOrBuilder extends com.google.rpc.StatusOrBuilder getStatusOrBuilder(); /** + * + * *
    * Authentication information.
    * 
* * .google.cloud.audit.AuthenticationInfo authentication_info = 3; + * + * @return Whether the authenticationInfo field is set. */ boolean hasAuthenticationInfo(); /** + * + * *
    * Authentication information.
    * 
* * .google.cloud.audit.AuthenticationInfo authentication_info = 3; + * + * @return The authenticationInfo. */ com.google.cloud.audit.AuthenticationInfo getAuthenticationInfo(); /** + * + * *
    * Authentication information.
    * 
@@ -140,6 +201,8 @@ public interface AuditLogOrBuilder extends com.google.cloud.audit.AuthenticationInfoOrBuilder getAuthenticationInfoOrBuilder(); /** + * + * *
    * Authorization information. If there are multiple
    * resources or permissions involved, then there is
@@ -148,9 +211,10 @@ public interface AuditLogOrBuilder extends
    *
    * repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
    */
-  java.util.List 
-      getAuthorizationInfoList();
+  java.util.List getAuthorizationInfoList();
   /**
+   *
+   *
    * 
    * Authorization information. If there are multiple
    * resources or permissions involved, then there is
@@ -161,6 +225,8 @@ public interface AuditLogOrBuilder extends
    */
   com.google.cloud.audit.AuthorizationInfo getAuthorizationInfo(int index);
   /**
+   *
+   *
    * 
    * Authorization information. If there are multiple
    * resources or permissions involved, then there is
@@ -171,6 +237,8 @@ public interface AuditLogOrBuilder extends
    */
   int getAuthorizationInfoCount();
   /**
+   *
+   *
    * 
    * Authorization information. If there are multiple
    * resources or permissions involved, then there is
@@ -179,9 +247,11 @@ public interface AuditLogOrBuilder extends
    *
    * repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
    */
-  java.util.List 
+  java.util.List
       getAuthorizationInfoOrBuilderList();
   /**
+   *
+   *
    * 
    * Authorization information. If there are multiple
    * resources or permissions involved, then there is
@@ -190,26 +260,35 @@ public interface AuditLogOrBuilder extends
    *
    * repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
    */
-  com.google.cloud.audit.AuthorizationInfoOrBuilder getAuthorizationInfoOrBuilder(
-      int index);
+  com.google.cloud.audit.AuthorizationInfoOrBuilder getAuthorizationInfoOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Metadata about the operation.
    * 
* * .google.cloud.audit.RequestMetadata request_metadata = 4; + * + * @return Whether the requestMetadata field is set. */ boolean hasRequestMetadata(); /** + * + * *
    * Metadata about the operation.
    * 
* * .google.cloud.audit.RequestMetadata request_metadata = 4; + * + * @return The requestMetadata. */ - RequestMetadata getRequestMetadata(); + com.google.cloud.audit.RequestMetadata getRequestMetadata(); /** + * + * *
    * Metadata about the operation.
    * 
@@ -219,6 +298,8 @@ com.google.cloud.audit.AuthorizationInfoOrBuilder getAuthorizationInfoOrBuilder( com.google.cloud.audit.RequestMetadataOrBuilder getRequestMetadataOrBuilder(); /** + * + * *
    * The operation request. This may not include all request parameters,
    * such as those that are too large, privacy-sensitive, or duplicated
@@ -229,9 +310,13 @@ com.google.cloud.audit.AuthorizationInfoOrBuilder getAuthorizationInfoOrBuilder(
    * 
* * .google.protobuf.Struct request = 16; + * + * @return Whether the request field is set. */ boolean hasRequest(); /** + * + * *
    * The operation request. This may not include all request parameters,
    * such as those that are too large, privacy-sensitive, or duplicated
@@ -242,9 +327,13 @@ com.google.cloud.audit.AuthorizationInfoOrBuilder getAuthorizationInfoOrBuilder(
    * 
* * .google.protobuf.Struct request = 16; + * + * @return The request. */ com.google.protobuf.Struct getRequest(); /** + * + * *
    * The operation request. This may not include all request parameters,
    * such as those that are too large, privacy-sensitive, or duplicated
@@ -259,6 +348,8 @@ com.google.cloud.audit.AuthorizationInfoOrBuilder getAuthorizationInfoOrBuilder(
   com.google.protobuf.StructOrBuilder getRequestOrBuilder();
 
   /**
+   *
+   *
    * 
    * The operation response. This may not include all response elements,
    * such as those that are too large, privacy-sensitive, or duplicated
@@ -269,9 +360,13 @@ com.google.cloud.audit.AuthorizationInfoOrBuilder getAuthorizationInfoOrBuilder(
    * 
* * .google.protobuf.Struct response = 17; + * + * @return Whether the response field is set. */ boolean hasResponse(); /** + * + * *
    * The operation response. This may not include all response elements,
    * such as those that are too large, privacy-sensitive, or duplicated
@@ -282,9 +377,13 @@ com.google.cloud.audit.AuthorizationInfoOrBuilder getAuthorizationInfoOrBuilder(
    * 
* * .google.protobuf.Struct response = 17; + * + * @return The response. */ com.google.protobuf.Struct getResponse(); /** + * + * *
    * The operation response. This may not include all response elements,
    * such as those that are too large, privacy-sensitive, or duplicated
@@ -299,24 +398,34 @@ com.google.cloud.audit.AuthorizationInfoOrBuilder getAuthorizationInfoOrBuilder(
   com.google.protobuf.StructOrBuilder getResponseOrBuilder();
 
   /**
+   *
+   *
    * 
    * Other service-specific data about the request, response, and other
    * activities.
    * 
* * .google.protobuf.Any service_data = 15; + * + * @return Whether the serviceData field is set. */ boolean hasServiceData(); /** + * + * *
    * Other service-specific data about the request, response, and other
    * activities.
    * 
* * .google.protobuf.Any service_data = 15; + * + * @return The serviceData. */ com.google.protobuf.Any getServiceData(); /** + * + * *
    * Other service-specific data about the request, response, and other
    * activities.
diff --git a/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogProto.java b/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogProto.java
index d16a9164..9a77b543 100644
--- a/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogProto.java
+++ b/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogProto.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/audit/audit_log.proto
 
@@ -5,109 +20,114 @@
 
 public final class AuditLogProto {
   private AuditLogProto() {}
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistryLite registry) {
-  }
 
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions(
-        (com.google.protobuf.ExtensionRegistryLite) registry);
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
   }
+
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_audit_AuditLog_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_audit_AuditLog_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_audit_AuditLog_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_audit_AuthenticationInfo_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_audit_AuthenticationInfo_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_audit_AuthenticationInfo_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_audit_AuthorizationInfo_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_audit_AuthorizationInfo_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_audit_AuthorizationInfo_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_audit_RequestMetadata_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_audit_RequestMetadata_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_audit_RequestMetadata_fieldAccessorTable;
 
-  public static com.google.protobuf.Descriptors.FileDescriptor
-      getDescriptor() {
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     return descriptor;
   }
-  private static  com.google.protobuf.Descriptors.FileDescriptor
-      descriptor;
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
   static {
-    String[] descriptorData = {
-      "\n\"google/cloud/audit/audit_log.proto\022\022go" +
-      "ogle.cloud.audit\032\034google/api/annotations" +
-      ".proto\032\031google/protobuf/any.proto\032\034googl" +
-      "e/protobuf/struct.proto\032\027google/rpc/stat" +
-      "us.proto\"\324\003\n\010AuditLog\022\024\n\014service_name\030\007 " +
-      "\001(\t\022\023\n\013method_name\030\010 \001(\t\022\025\n\rresource_nam" +
-      "e\030\013 \001(\t\022\032\n\022num_response_items\030\014 \001(\003\022\"\n\006s" +
-      "tatus\030\002 \001(\0132\022.google.rpc.Status\022C\n\023authe" +
-      "ntication_info\030\003 \001(\0132&.google.cloud.audi" +
-      "t.AuthenticationInfo\022A\n\022authorization_in" +
-      "fo\030\t \003(\0132%.google.cloud.audit.Authorizat" +
-      "ionInfo\022=\n\020request_metadata\030\004 \001(\0132#.goog" +
-      "le.cloud.audit.RequestMetadata\022(\n\007reques" +
-      "t\030\020 \001(\0132\027.google.protobuf.Struct\022)\n\010resp" +
-      "onse\030\021 \001(\0132\027.google.protobuf.Struct\022*\n\014s" +
-      "ervice_data\030\017 \001(\0132\024.google.protobuf.Any\"" +
-      "-\n\022AuthenticationInfo\022\027\n\017principal_email" +
-      "\030\001 \001(\t\"J\n\021AuthorizationInfo\022\020\n\010resource\030" +
-      "\001 \001(\t\022\022\n\npermission\030\002 \001(\t\022\017\n\007granted\030\003 \001" +
-      "(\010\"H\n\017RequestMetadata\022\021\n\tcaller_ip\030\001 \001(\t" +
-      "\022\"\n\032caller_supplied_user_agent\030\002 \001(\tBb\n\026" +
-      "com.google.cloud.auditB\rAuditLogProtoP\001Z" +
-      "7google.golang.org/genproto/googleapis/c" +
-      "loud/audit;auditb\006proto3"
+    java.lang.String[] descriptorData = {
+      "\n\"google/cloud/audit/audit_log.proto\022\022go"
+          + "ogle.cloud.audit\032\034google/api/annotations"
+          + ".proto\032\031google/protobuf/any.proto\032\034googl"
+          + "e/protobuf/struct.proto\032\027google/rpc/stat"
+          + "us.proto\"\324\003\n\010AuditLog\022\024\n\014service_name\030\007 "
+          + "\001(\t\022\023\n\013method_name\030\010 \001(\t\022\025\n\rresource_nam"
+          + "e\030\013 \001(\t\022\032\n\022num_response_items\030\014 \001(\003\022\"\n\006s"
+          + "tatus\030\002 \001(\0132\022.google.rpc.Status\022C\n\023authe"
+          + "ntication_info\030\003 \001(\0132&.google.cloud.audi"
+          + "t.AuthenticationInfo\022A\n\022authorization_in"
+          + "fo\030\t \003(\0132%.google.cloud.audit.Authorizat"
+          + "ionInfo\022=\n\020request_metadata\030\004 \001(\0132#.goog"
+          + "le.cloud.audit.RequestMetadata\022(\n\007reques"
+          + "t\030\020 \001(\0132\027.google.protobuf.Struct\022)\n\010resp"
+          + "onse\030\021 \001(\0132\027.google.protobuf.Struct\022*\n\014s"
+          + "ervice_data\030\017 \001(\0132\024.google.protobuf.Any\""
+          + "-\n\022AuthenticationInfo\022\027\n\017principal_email"
+          + "\030\001 \001(\t\"J\n\021AuthorizationInfo\022\020\n\010resource\030"
+          + "\001 \001(\t\022\022\n\npermission\030\002 \001(\t\022\017\n\007granted\030\003 \001"
+          + "(\010\"H\n\017RequestMetadata\022\021\n\tcaller_ip\030\001 \001(\t"
+          + "\022\"\n\032caller_supplied_user_agent\030\002 \001(\tBb\n\026"
+          + "com.google.cloud.auditB\rAuditLogProtoP\001Z"
+          + "7google.golang.org/genproto/googleapis/c"
+          + "loud/audit;auditb\006proto3"
     };
-    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
-        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
-          public com.google.protobuf.ExtensionRegistry assignDescriptors(
-              com.google.protobuf.Descriptors.FileDescriptor root) {
-            descriptor = root;
-            return null;
-          }
-        };
-    com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-          com.google.api.AnnotationsProto.getDescriptor(),
-          com.google.protobuf.AnyProto.getDescriptor(),
-          com.google.protobuf.StructProto.getDescriptor(),
-          com.google.rpc.StatusProto.getDescriptor(),
-        }, assigner);
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.AnnotationsProto.getDescriptor(),
+              com.google.protobuf.AnyProto.getDescriptor(),
+              com.google.protobuf.StructProto.getDescriptor(),
+              com.google.rpc.StatusProto.getDescriptor(),
+            });
     internal_static_google_cloud_audit_AuditLog_descriptor =
-      getDescriptor().getMessageTypes().get(0);
-    internal_static_google_cloud_audit_AuditLog_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_audit_AuditLog_descriptor,
-        new String[] { "ServiceName", "MethodName", "ResourceName", "NumResponseItems", "Status", "AuthenticationInfo", "AuthorizationInfo", "RequestMetadata", "Request", "Response", "ServiceData", });
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_audit_AuditLog_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_audit_AuditLog_descriptor,
+            new java.lang.String[] {
+              "ServiceName",
+              "MethodName",
+              "ResourceName",
+              "NumResponseItems",
+              "Status",
+              "AuthenticationInfo",
+              "AuthorizationInfo",
+              "RequestMetadata",
+              "Request",
+              "Response",
+              "ServiceData",
+            });
     internal_static_google_cloud_audit_AuthenticationInfo_descriptor =
-      getDescriptor().getMessageTypes().get(1);
-    internal_static_google_cloud_audit_AuthenticationInfo_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_audit_AuthenticationInfo_descriptor,
-        new String[] { "PrincipalEmail", });
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_audit_AuthenticationInfo_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_audit_AuthenticationInfo_descriptor,
+            new java.lang.String[] {
+              "PrincipalEmail",
+            });
     internal_static_google_cloud_audit_AuthorizationInfo_descriptor =
-      getDescriptor().getMessageTypes().get(2);
-    internal_static_google_cloud_audit_AuthorizationInfo_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_audit_AuthorizationInfo_descriptor,
-        new String[] { "Resource", "Permission", "Granted", });
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_audit_AuthorizationInfo_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_audit_AuthorizationInfo_descriptor,
+            new java.lang.String[] {
+              "Resource", "Permission", "Granted",
+            });
     internal_static_google_cloud_audit_RequestMetadata_descriptor =
-      getDescriptor().getMessageTypes().get(3);
-    internal_static_google_cloud_audit_RequestMetadata_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_audit_RequestMetadata_descriptor,
-        new String[] { "CallerIp", "CallerSuppliedUserAgent", });
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_audit_RequestMetadata_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_audit_RequestMetadata_descriptor,
+            new java.lang.String[] {
+              "CallerIp", "CallerSuppliedUserAgent",
+            });
     com.google.api.AnnotationsProto.getDescriptor();
     com.google.protobuf.AnyProto.getDescriptor();
     com.google.protobuf.StructProto.getDescriptor();
diff --git a/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfo.java b/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfo.java
index 2856f5b9..187c3ff7 100644
--- a/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfo.java
+++ b/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfo.java
@@ -1,42 +1,65 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/audit/audit_log.proto
 
 package com.google.cloud.audit;
 
 /**
+ *
+ *
  * 
  * Authentication information for the operation.
  * 
* * Protobuf type {@code google.cloud.audit.AuthenticationInfo} */ -public final class AuthenticationInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AuthenticationInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.audit.AuthenticationInfo) AuthenticationInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AuthenticationInfo.newBuilder() to construct. private AuthenticationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AuthenticationInfo() { principalEmail_ = ""; } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AuthenticationInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AuthenticationInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -47,79 +70,87 @@ private AuthenticationInfo( case 0: done = true; break; - case 10: { - String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - principalEmail_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + principalEmail_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return AuditLogProto.internal_static_google_cloud_audit_AuthenticationInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.audit.AuditLogProto + .internal_static_google_cloud_audit_AuthenticationInfo_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return AuditLogProto.internal_static_google_cloud_audit_AuthenticationInfo_fieldAccessorTable + return com.google.cloud.audit.AuditLogProto + .internal_static_google_cloud_audit_AuthenticationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - AuthenticationInfo.class, Builder.class); + com.google.cloud.audit.AuthenticationInfo.class, + com.google.cloud.audit.AuthenticationInfo.Builder.class); } public static final int PRINCIPAL_EMAIL_FIELD_NUMBER = 1; - private volatile Object principalEmail_; + private volatile java.lang.Object principalEmail_; /** + * + * *
    * The email address of the authenticated user making the request.
    * 
* * string principal_email = 1; + * + * @return The principalEmail. */ - public String getPrincipalEmail() { - Object ref = principalEmail_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getPrincipalEmail() { + java.lang.Object ref = principalEmail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); principalEmail_ = s; return s; } } /** + * + * *
    * The email address of the authenticated user making the request.
    * 
* * string principal_email = 1; + * + * @return The bytes for principalEmail. */ - public com.google.protobuf.ByteString - getPrincipalEmailBytes() { - Object ref = principalEmail_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getPrincipalEmailBytes() { + java.lang.Object ref = principalEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); principalEmail_ = b; return b; } else { @@ -128,7 +159,8 @@ public String getPrincipalEmail() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -138,16 +170,15 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getPrincipalEmailBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, principalEmail_); } unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -161,23 +192,23 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof AuthenticationInfo)) { + if (!(obj instanceof com.google.cloud.audit.AuthenticationInfo)) { return super.equals(obj); } - AuthenticationInfo other = (AuthenticationInfo) obj; + com.google.cloud.audit.AuthenticationInfo other = + (com.google.cloud.audit.AuthenticationInfo) obj; - if (!getPrincipalEmail() - .equals(other.getPrincipalEmail())) return false; + if (!getPrincipalEmail().equals(other.getPrincipalEmail())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -191,118 +222,127 @@ public int hashCode() { return hash; } - public static AuthenticationInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.audit.AuthenticationInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static AuthenticationInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.cloud.audit.AuthenticationInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static AuthenticationInfo parseFrom( + + public static com.google.cloud.audit.AuthenticationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static AuthenticationInfo parseFrom( + + public static com.google.cloud.audit.AuthenticationInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static AuthenticationInfo parseFrom(byte[] data) + + public static com.google.cloud.audit.AuthenticationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static AuthenticationInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.cloud.audit.AuthenticationInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static AuthenticationInfo parseFrom(java.io.InputStream input) + + public static com.google.cloud.audit.AuthenticationInfo 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 AuthenticationInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.cloud.audit.AuthenticationInfo parseFrom( + 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 AuthenticationInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.audit.AuthenticationInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static AuthenticationInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.cloud.audit.AuthenticationInfo parseDelimitedFrom( + 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 AuthenticationInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.audit.AuthenticationInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static AuthenticationInfo parseFrom( + + public static com.google.cloud.audit.AuthenticationInfo 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(AuthenticationInfo prototype) { + + public static Builder newBuilder(com.google.cloud.audit.AuthenticationInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Authentication information for the operation.
    * 
* * Protobuf type {@code google.cloud.audit.AuthenticationInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.audit.AuthenticationInfo) com.google.cloud.audit.AuthenticationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return AuditLogProto.internal_static_google_cloud_audit_AuthenticationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.audit.AuditLogProto + .internal_static_google_cloud_audit_AuthenticationInfo_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return AuditLogProto.internal_static_google_cloud_audit_AuthenticationInfo_fieldAccessorTable + return com.google.cloud.audit.AuditLogProto + .internal_static_google_cloud_audit_AuthenticationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - AuthenticationInfo.class, Builder.class); + com.google.cloud.audit.AuthenticationInfo.class, + com.google.cloud.audit.AuthenticationInfo.Builder.class); } // Construct using com.google.cloud.audit.AuthenticationInfo.newBuilder() @@ -310,17 +350,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @Override + + @java.lang.Override public Builder clear() { super.clear(); principalEmail_ = ""; @@ -328,78 +367,80 @@ public Builder clear() { return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return AuditLogProto.internal_static_google_cloud_audit_AuthenticationInfo_descriptor; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.audit.AuditLogProto + .internal_static_google_cloud_audit_AuthenticationInfo_descriptor; } - @Override - public AuthenticationInfo getDefaultInstanceForType() { - return AuthenticationInfo.getDefaultInstance(); + @java.lang.Override + public com.google.cloud.audit.AuthenticationInfo getDefaultInstanceForType() { + return com.google.cloud.audit.AuthenticationInfo.getDefaultInstance(); } - @Override - public AuthenticationInfo build() { - AuthenticationInfo result = buildPartial(); + @java.lang.Override + public com.google.cloud.audit.AuthenticationInfo build() { + com.google.cloud.audit.AuthenticationInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public AuthenticationInfo buildPartial() { - AuthenticationInfo result = new AuthenticationInfo(this); + @java.lang.Override + public com.google.cloud.audit.AuthenticationInfo buildPartial() { + com.google.cloud.audit.AuthenticationInfo result = + new com.google.cloud.audit.AuthenticationInfo(this); result.principalEmail_ = principalEmail_; onBuilt(); return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof AuthenticationInfo) { - return mergeFrom((AuthenticationInfo)other); + if (other instanceof com.google.cloud.audit.AuthenticationInfo) { + return mergeFrom((com.google.cloud.audit.AuthenticationInfo) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(AuthenticationInfo other) { - if (other == AuthenticationInfo.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.audit.AuthenticationInfo other) { + if (other == com.google.cloud.audit.AuthenticationInfo.getDefaultInstance()) return this; if (!other.getPrincipalEmail().isEmpty()) { principalEmail_ = other.principalEmail_; onChanged(); @@ -409,21 +450,21 @@ public Builder mergeFrom(AuthenticationInfo other) { return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - AuthenticationInfo parsedMessage = null; + com.google.cloud.audit.AuthenticationInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (AuthenticationInfo) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.audit.AuthenticationInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -433,40 +474,45 @@ public Builder mergeFrom( return this; } - private Object principalEmail_ = ""; + private java.lang.Object principalEmail_ = ""; /** + * + * *
      * The email address of the authenticated user making the request.
      * 
* * string principal_email = 1; + * + * @return The principalEmail. */ - public String getPrincipalEmail() { - Object ref = principalEmail_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getPrincipalEmail() { + java.lang.Object ref = principalEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); principalEmail_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The email address of the authenticated user making the request.
      * 
* * string principal_email = 1; + * + * @return The bytes for principalEmail. */ - public com.google.protobuf.ByteString - getPrincipalEmailBytes() { - Object ref = principalEmail_; + public com.google.protobuf.ByteString getPrincipalEmailBytes() { + java.lang.Object ref = principalEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); principalEmail_ = b; return b; } else { @@ -474,103 +520,113 @@ public String getPrincipalEmail() { } } /** + * + * *
      * The email address of the authenticated user making the request.
      * 
* * string principal_email = 1; + * + * @param value The principalEmail to set. + * @return This builder for chaining. */ - public Builder setPrincipalEmail( - String value) { + public Builder setPrincipalEmail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + principalEmail_ = value; onChanged(); return this; } /** + * + * *
      * The email address of the authenticated user making the request.
      * 
* * string principal_email = 1; + * + * @return This builder for chaining. */ public Builder clearPrincipalEmail() { - + principalEmail_ = getDefaultInstance().getPrincipalEmail(); onChanged(); return this; } /** + * + * *
      * The email address of the authenticated user making the request.
      * 
* * string principal_email = 1; + * + * @param value The bytes for principalEmail to set. + * @return This builder for chaining. */ - public Builder setPrincipalEmailBytes( - com.google.protobuf.ByteString value) { + public Builder setPrincipalEmailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + principalEmail_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.audit.AuthenticationInfo) } // @@protoc_insertion_point(class_scope:google.cloud.audit.AuthenticationInfo) - private static final AuthenticationInfo DEFAULT_INSTANCE; + private static final com.google.cloud.audit.AuthenticationInfo DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new AuthenticationInfo(); + DEFAULT_INSTANCE = new com.google.cloud.audit.AuthenticationInfo(); } - public static AuthenticationInfo getDefaultInstance() { + public static com.google.cloud.audit.AuthenticationInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public AuthenticationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AuthenticationInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthenticationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthenticationInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public AuthenticationInfo getDefaultInstanceForType() { + @java.lang.Override + public com.google.cloud.audit.AuthenticationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfoOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfoOrBuilder.java index cd64ce80..e5f091fd 100644 --- a/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfoOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfoOrBuilder.java @@ -1,27 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/audit/audit_log.proto package com.google.cloud.audit; -public interface AuthenticationInfoOrBuilder extends +public interface AuthenticationInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.audit.AuthenticationInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The email address of the authenticated user making the request.
    * 
* * string principal_email = 1; + * + * @return The principalEmail. */ - String getPrincipalEmail(); + java.lang.String getPrincipalEmail(); /** + * + * *
    * The email address of the authenticated user making the request.
    * 
* * string principal_email = 1; + * + * @return The bytes for principalEmail. */ - com.google.protobuf.ByteString - getPrincipalEmailBytes(); + com.google.protobuf.ByteString getPrincipalEmailBytes(); } diff --git a/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfo.java b/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfo.java index 0e749fa1..c80fbe5c 100644 --- a/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfo.java +++ b/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfo.java @@ -1,43 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/audit/audit_log.proto package com.google.cloud.audit; /** + * + * *
  * Authorization information for the operation.
  * 
* * Protobuf type {@code google.cloud.audit.AuthorizationInfo} */ -public final class AuthorizationInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AuthorizationInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.audit.AuthorizationInfo) AuthorizationInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AuthorizationInfo.newBuilder() to construct. private AuthorizationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AuthorizationInfo() { resource_ = ""; permission_ = ""; } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AuthorizationInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AuthorizationInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -48,92 +71,101 @@ private AuthorizationInfo( case 0: done = true; break; - case 10: { - String s = input.readStringRequireUtf8(); - - resource_ = s; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - permission_ = s; - break; - } - case 24: { + resource_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - granted_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + permission_ = s; + break; + } + case 24: + { + granted_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return AuditLogProto.internal_static_google_cloud_audit_AuthorizationInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.audit.AuditLogProto + .internal_static_google_cloud_audit_AuthorizationInfo_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return AuditLogProto.internal_static_google_cloud_audit_AuthorizationInfo_fieldAccessorTable + return com.google.cloud.audit.AuditLogProto + .internal_static_google_cloud_audit_AuthorizationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - AuthorizationInfo.class, Builder.class); + com.google.cloud.audit.AuthorizationInfo.class, + com.google.cloud.audit.AuthorizationInfo.Builder.class); } public static final int RESOURCE_FIELD_NUMBER = 1; - private volatile Object resource_; + private volatile java.lang.Object resource_; /** + * + * *
    * The resource being accessed, as a REST-style string. For example:
    *     bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID
    * 
* * string resource = 1; + * + * @return The resource. */ - public String getResource() { - Object ref = resource_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** + * + * *
    * The resource being accessed, as a REST-style string. For example:
    *     bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID
    * 
* * string resource = 1; + * + * @return The bytes for resource. */ - public com.google.protobuf.ByteString - getResourceBytes() { - Object ref = resource_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -142,40 +174,45 @@ public String getResource() { } public static final int PERMISSION_FIELD_NUMBER = 2; - private volatile Object permission_; + private volatile java.lang.Object permission_; /** + * + * *
    * The required IAM permission.
    * 
* * string permission = 2; + * + * @return The permission. */ - public String getPermission() { - Object ref = permission_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getPermission() { + java.lang.Object ref = permission_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); permission_ = s; return s; } } /** + * + * *
    * The required IAM permission.
    * 
* * string permission = 2; + * + * @return The bytes for permission. */ - public com.google.protobuf.ByteString - getPermissionBytes() { - Object ref = permission_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getPermissionBytes() { + java.lang.Object ref = permission_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); permission_ = b; return b; } else { @@ -186,19 +223,24 @@ public String getPermission() { public static final int GRANTED_FIELD_NUMBER = 3; private boolean granted_; /** + * + * *
    * Whether or not authorization for `resource` and `permission`
    * was granted.
    * 
* * bool granted = 3; + * + * @return The granted. */ public boolean getGranted() { return granted_; } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -208,9 +250,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getResourceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); } @@ -223,7 +264,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -236,35 +277,31 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, permission_); } if (granted_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, granted_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, granted_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof AuthorizationInfo)) { + if (!(obj instanceof com.google.cloud.audit.AuthorizationInfo)) { return super.equals(obj); } - AuthorizationInfo other = (AuthorizationInfo) obj; + com.google.cloud.audit.AuthorizationInfo other = (com.google.cloud.audit.AuthorizationInfo) obj; - if (!getResource() - .equals(other.getResource())) return false; - if (!getPermission() - .equals(other.getPermission())) return false; - if (getGranted() - != other.getGranted()) return false; + if (!getResource().equals(other.getResource())) return false; + if (!getPermission().equals(other.getPermission())) return false; + if (getGranted() != other.getGranted()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -276,125 +313,133 @@ public int hashCode() { hash = (37 * hash) + PERMISSION_FIELD_NUMBER; hash = (53 * hash) + getPermission().hashCode(); hash = (37 * hash) + GRANTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getGranted()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGranted()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static AuthorizationInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.audit.AuthorizationInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static AuthorizationInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.cloud.audit.AuthorizationInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static AuthorizationInfo parseFrom( + + public static com.google.cloud.audit.AuthorizationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static AuthorizationInfo parseFrom( + + public static com.google.cloud.audit.AuthorizationInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static AuthorizationInfo parseFrom(byte[] data) + + public static com.google.cloud.audit.AuthorizationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static AuthorizationInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.cloud.audit.AuthorizationInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static AuthorizationInfo parseFrom(java.io.InputStream input) + + public static com.google.cloud.audit.AuthorizationInfo 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 AuthorizationInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.cloud.audit.AuthorizationInfo parseFrom( + 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 AuthorizationInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.audit.AuthorizationInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static AuthorizationInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.cloud.audit.AuthorizationInfo parseDelimitedFrom( + 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 AuthorizationInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.audit.AuthorizationInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static AuthorizationInfo parseFrom( + + public static com.google.cloud.audit.AuthorizationInfo 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(AuthorizationInfo prototype) { + + public static Builder newBuilder(com.google.cloud.audit.AuthorizationInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Authorization information for the operation.
    * 
* * Protobuf type {@code google.cloud.audit.AuthorizationInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.audit.AuthorizationInfo) com.google.cloud.audit.AuthorizationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return AuditLogProto.internal_static_google_cloud_audit_AuthorizationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.audit.AuditLogProto + .internal_static_google_cloud_audit_AuthorizationInfo_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return AuditLogProto.internal_static_google_cloud_audit_AuthorizationInfo_fieldAccessorTable + return com.google.cloud.audit.AuditLogProto + .internal_static_google_cloud_audit_AuthorizationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - AuthorizationInfo.class, Builder.class); + com.google.cloud.audit.AuthorizationInfo.class, + com.google.cloud.audit.AuthorizationInfo.Builder.class); } // Construct using com.google.cloud.audit.AuthorizationInfo.newBuilder() @@ -402,17 +447,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @Override + + @java.lang.Override public Builder clear() { super.clear(); resource_ = ""; @@ -424,29 +468,30 @@ public Builder clear() { return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return AuditLogProto.internal_static_google_cloud_audit_AuthorizationInfo_descriptor; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.audit.AuditLogProto + .internal_static_google_cloud_audit_AuthorizationInfo_descriptor; } - @Override - public AuthorizationInfo getDefaultInstanceForType() { - return AuthorizationInfo.getDefaultInstance(); + @java.lang.Override + public com.google.cloud.audit.AuthorizationInfo getDefaultInstanceForType() { + return com.google.cloud.audit.AuthorizationInfo.getDefaultInstance(); } - @Override - public AuthorizationInfo build() { - AuthorizationInfo result = buildPartial(); + @java.lang.Override + public com.google.cloud.audit.AuthorizationInfo build() { + com.google.cloud.audit.AuthorizationInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public AuthorizationInfo buildPartial() { - AuthorizationInfo result = new AuthorizationInfo(this); + @java.lang.Override + public com.google.cloud.audit.AuthorizationInfo buildPartial() { + com.google.cloud.audit.AuthorizationInfo result = + new com.google.cloud.audit.AuthorizationInfo(this); result.resource_ = resource_; result.permission_ = permission_; result.granted_ = granted_; @@ -454,50 +499,51 @@ public AuthorizationInfo buildPartial() { return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof AuthorizationInfo) { - return mergeFrom((AuthorizationInfo)other); + if (other instanceof com.google.cloud.audit.AuthorizationInfo) { + return mergeFrom((com.google.cloud.audit.AuthorizationInfo) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(AuthorizationInfo other) { - if (other == AuthorizationInfo.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.audit.AuthorizationInfo other) { + if (other == com.google.cloud.audit.AuthorizationInfo.getDefaultInstance()) return this; if (!other.getResource().isEmpty()) { resource_ = other.resource_; onChanged(); @@ -514,21 +560,21 @@ public Builder mergeFrom(AuthorizationInfo other) { return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - AuthorizationInfo parsedMessage = null; + com.google.cloud.audit.AuthorizationInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (AuthorizationInfo) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.audit.AuthorizationInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -538,42 +584,47 @@ public Builder mergeFrom( return this; } - private Object resource_ = ""; + private java.lang.Object resource_ = ""; /** + * + * *
      * The resource being accessed, as a REST-style string. For example:
      *     bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID
      * 
* * string resource = 1; + * + * @return The resource. */ - public String getResource() { - Object ref = resource_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The resource being accessed, as a REST-style string. For example:
      *     bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID
      * 
* * string resource = 1; + * + * @return The bytes for resource. */ - public com.google.protobuf.ByteString - getResourceBytes() { - Object ref = resource_; + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -581,91 +632,108 @@ public String getResource() { } } /** + * + * *
      * The resource being accessed, as a REST-style string. For example:
      *     bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID
      * 
* * string resource = 1; + * + * @param value The resource to set. + * @return This builder for chaining. */ - public Builder setResource( - String value) { + public Builder setResource(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resource_ = value; onChanged(); return this; } /** + * + * *
      * The resource being accessed, as a REST-style string. For example:
      *     bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID
      * 
* * string resource = 1; + * + * @return This builder for chaining. */ public Builder clearResource() { - + resource_ = getDefaultInstance().getResource(); onChanged(); return this; } /** + * + * *
      * The resource being accessed, as a REST-style string. For example:
      *     bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID
      * 
* * string resource = 1; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. */ - public Builder setResourceBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; onChanged(); return this; } - private Object permission_ = ""; + private java.lang.Object permission_ = ""; /** + * + * *
      * The required IAM permission.
      * 
* * string permission = 2; + * + * @return The permission. */ - public String getPermission() { - Object ref = permission_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getPermission() { + java.lang.Object ref = permission_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); permission_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The required IAM permission.
      * 
* * string permission = 2; + * + * @return The bytes for permission. */ - public com.google.protobuf.ByteString - getPermissionBytes() { - Object ref = permission_; + public com.google.protobuf.ByteString getPermissionBytes() { + java.lang.Object ref = permission_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); permission_ = b; return b; } else { @@ -673,144 +741,167 @@ public String getPermission() { } } /** + * + * *
      * The required IAM permission.
      * 
* * string permission = 2; + * + * @param value The permission to set. + * @return This builder for chaining. */ - public Builder setPermission( - String value) { + public Builder setPermission(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + permission_ = value; onChanged(); return this; } /** + * + * *
      * The required IAM permission.
      * 
* * string permission = 2; + * + * @return This builder for chaining. */ public Builder clearPermission() { - + permission_ = getDefaultInstance().getPermission(); onChanged(); return this; } /** + * + * *
      * The required IAM permission.
      * 
* * string permission = 2; + * + * @param value The bytes for permission to set. + * @return This builder for chaining. */ - public Builder setPermissionBytes( - com.google.protobuf.ByteString value) { + public Builder setPermissionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + permission_ = value; onChanged(); return this; } - private boolean granted_ ; + private boolean granted_; /** + * + * *
      * Whether or not authorization for `resource` and `permission`
      * was granted.
      * 
* * bool granted = 3; + * + * @return The granted. */ public boolean getGranted() { return granted_; } /** + * + * *
      * Whether or not authorization for `resource` and `permission`
      * was granted.
      * 
* * bool granted = 3; + * + * @param value The granted to set. + * @return This builder for chaining. */ public Builder setGranted(boolean value) { - + granted_ = value; onChanged(); return this; } /** + * + * *
      * Whether or not authorization for `resource` and `permission`
      * was granted.
      * 
* * bool granted = 3; + * + * @return This builder for chaining. */ public Builder clearGranted() { - + granted_ = false; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.audit.AuthorizationInfo) } // @@protoc_insertion_point(class_scope:google.cloud.audit.AuthorizationInfo) - private static final AuthorizationInfo DEFAULT_INSTANCE; + private static final com.google.cloud.audit.AuthorizationInfo DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new AuthorizationInfo(); + DEFAULT_INSTANCE = new com.google.cloud.audit.AuthorizationInfo(); } - public static AuthorizationInfo getDefaultInstance() { + public static com.google.cloud.audit.AuthorizationInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public AuthorizationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AuthorizationInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthorizationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthorizationInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public AuthorizationInfo getDefaultInstanceForType() { + @java.lang.Override + public com.google.cloud.audit.AuthorizationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfoOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfoOrBuilder.java index dbaffa4a..81cbeaef 100644 --- a/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfoOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfoOrBuilder.java @@ -1,57 +1,91 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/audit/audit_log.proto package com.google.cloud.audit; -public interface AuthorizationInfoOrBuilder extends +public interface AuthorizationInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.audit.AuthorizationInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource being accessed, as a REST-style string. For example:
    *     bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID
    * 
* * string resource = 1; + * + * @return The resource. */ - String getResource(); + java.lang.String getResource(); /** + * + * *
    * The resource being accessed, as a REST-style string. For example:
    *     bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID
    * 
* * string resource = 1; + * + * @return The bytes for resource. */ - com.google.protobuf.ByteString - getResourceBytes(); + com.google.protobuf.ByteString getResourceBytes(); /** + * + * *
    * The required IAM permission.
    * 
* * string permission = 2; + * + * @return The permission. */ - String getPermission(); + java.lang.String getPermission(); /** + * + * *
    * The required IAM permission.
    * 
* * string permission = 2; + * + * @return The bytes for permission. */ - com.google.protobuf.ByteString - getPermissionBytes(); + com.google.protobuf.ByteString getPermissionBytes(); /** + * + * *
    * Whether or not authorization for `resource` and `permission`
    * was granted.
    * 
* * bool granted = 3; + * + * @return The granted. */ boolean getGranted(); } diff --git a/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadata.java b/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadata.java index 2dd8dae2..e862bc0b 100644 --- a/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadata.java +++ b/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadata.java @@ -1,43 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/audit/audit_log.proto package com.google.cloud.audit; /** + * + * *
  * Metadata about the request.
  * 
* * Protobuf type {@code google.cloud.audit.RequestMetadata} */ -public final class RequestMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RequestMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.audit.RequestMetadata) RequestMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RequestMetadata.newBuilder() to construct. private RequestMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RequestMetadata() { callerIp_ = ""; callerSuppliedUserAgent_ = ""; } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RequestMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RequestMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -48,85 +71,94 @@ private RequestMetadata( case 0: done = true; break; - case 10: { - String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - callerIp_ = s; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); + callerIp_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - callerSuppliedUserAgent_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + callerSuppliedUserAgent_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return AuditLogProto.internal_static_google_cloud_audit_RequestMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.audit.AuditLogProto + .internal_static_google_cloud_audit_RequestMetadata_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return AuditLogProto.internal_static_google_cloud_audit_RequestMetadata_fieldAccessorTable + return com.google.cloud.audit.AuditLogProto + .internal_static_google_cloud_audit_RequestMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - RequestMetadata.class, Builder.class); + com.google.cloud.audit.RequestMetadata.class, + com.google.cloud.audit.RequestMetadata.Builder.class); } public static final int CALLER_IP_FIELD_NUMBER = 1; - private volatile Object callerIp_; + private volatile java.lang.Object callerIp_; /** + * + * *
    * The IP address of the caller.
    * 
* * string caller_ip = 1; + * + * @return The callerIp. */ - public String getCallerIp() { - Object ref = callerIp_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getCallerIp() { + java.lang.Object ref = callerIp_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); callerIp_ = s; return s; } } /** + * + * *
    * The IP address of the caller.
    * 
* * string caller_ip = 1; + * + * @return The bytes for callerIp. */ - public com.google.protobuf.ByteString - getCallerIpBytes() { - Object ref = callerIp_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getCallerIpBytes() { + java.lang.Object ref = callerIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); callerIp_ = b; return b; } else { @@ -135,8 +167,10 @@ public String getCallerIp() { } public static final int CALLER_SUPPLIED_USER_AGENT_FIELD_NUMBER = 2; - private volatile Object callerSuppliedUserAgent_; + private volatile java.lang.Object callerSuppliedUserAgent_; /** + * + * *
    * The user agent of the caller.
    * This information is not authenticated and should be treated accordingly.
@@ -151,20 +185,23 @@ public String getCallerIp() {
    * 
* * string caller_supplied_user_agent = 2; + * + * @return The callerSuppliedUserAgent. */ - public String getCallerSuppliedUserAgent() { - Object ref = callerSuppliedUserAgent_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getCallerSuppliedUserAgent() { + java.lang.Object ref = callerSuppliedUserAgent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); callerSuppliedUserAgent_ = s; return s; } } /** + * + * *
    * The user agent of the caller.
    * This information is not authenticated and should be treated accordingly.
@@ -179,14 +216,14 @@ public String getCallerSuppliedUserAgent() {
    * 
* * string caller_supplied_user_agent = 2; + * + * @return The bytes for callerSuppliedUserAgent. */ - public com.google.protobuf.ByteString - getCallerSuppliedUserAgentBytes() { - Object ref = callerSuppliedUserAgent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getCallerSuppliedUserAgentBytes() { + java.lang.Object ref = callerSuppliedUserAgent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); callerSuppliedUserAgent_ = b; return b; } else { @@ -195,7 +232,8 @@ public String getCallerSuppliedUserAgent() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -205,9 +243,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getCallerIpBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, callerIp_); } @@ -217,7 +254,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -234,25 +271,23 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof RequestMetadata)) { + if (!(obj instanceof com.google.cloud.audit.RequestMetadata)) { return super.equals(obj); } - RequestMetadata other = (RequestMetadata) obj; + com.google.cloud.audit.RequestMetadata other = (com.google.cloud.audit.RequestMetadata) obj; - if (!getCallerIp() - .equals(other.getCallerIp())) return false; - if (!getCallerSuppliedUserAgent() - .equals(other.getCallerSuppliedUserAgent())) return false; + if (!getCallerIp().equals(other.getCallerIp())) return false; + if (!getCallerSuppliedUserAgent().equals(other.getCallerSuppliedUserAgent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -268,118 +303,127 @@ public int hashCode() { return hash; } - public static RequestMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.audit.RequestMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static RequestMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.cloud.audit.RequestMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static RequestMetadata parseFrom( + + public static com.google.cloud.audit.RequestMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static RequestMetadata parseFrom( + + public static com.google.cloud.audit.RequestMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static RequestMetadata parseFrom(byte[] data) + + public static com.google.cloud.audit.RequestMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static RequestMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.cloud.audit.RequestMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static RequestMetadata parseFrom(java.io.InputStream input) + + public static com.google.cloud.audit.RequestMetadata 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 RequestMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.cloud.audit.RequestMetadata parseFrom( + 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 RequestMetadata parseDelimitedFrom(java.io.InputStream input) + + public static com.google.cloud.audit.RequestMetadata 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 RequestMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.cloud.audit.RequestMetadata parseDelimitedFrom( + 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 RequestMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.audit.RequestMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static RequestMetadata parseFrom( + + public static com.google.cloud.audit.RequestMetadata 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(RequestMetadata prototype) { + + public static Builder newBuilder(com.google.cloud.audit.RequestMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Metadata about the request.
    * 
* * Protobuf type {@code google.cloud.audit.RequestMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.audit.RequestMetadata) com.google.cloud.audit.RequestMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return AuditLogProto.internal_static_google_cloud_audit_RequestMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.audit.AuditLogProto + .internal_static_google_cloud_audit_RequestMetadata_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return AuditLogProto.internal_static_google_cloud_audit_RequestMetadata_fieldAccessorTable + return com.google.cloud.audit.AuditLogProto + .internal_static_google_cloud_audit_RequestMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - RequestMetadata.class, Builder.class); + com.google.cloud.audit.RequestMetadata.class, + com.google.cloud.audit.RequestMetadata.Builder.class); } // Construct using com.google.cloud.audit.RequestMetadata.newBuilder() @@ -387,17 +431,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @Override + + @java.lang.Override public Builder clear() { super.clear(); callerIp_ = ""; @@ -407,79 +450,81 @@ public Builder clear() { return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return AuditLogProto.internal_static_google_cloud_audit_RequestMetadata_descriptor; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.audit.AuditLogProto + .internal_static_google_cloud_audit_RequestMetadata_descriptor; } - @Override - public RequestMetadata getDefaultInstanceForType() { - return RequestMetadata.getDefaultInstance(); + @java.lang.Override + public com.google.cloud.audit.RequestMetadata getDefaultInstanceForType() { + return com.google.cloud.audit.RequestMetadata.getDefaultInstance(); } - @Override - public RequestMetadata build() { - RequestMetadata result = buildPartial(); + @java.lang.Override + public com.google.cloud.audit.RequestMetadata build() { + com.google.cloud.audit.RequestMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public RequestMetadata buildPartial() { - RequestMetadata result = new RequestMetadata(this); + @java.lang.Override + public com.google.cloud.audit.RequestMetadata buildPartial() { + com.google.cloud.audit.RequestMetadata result = + new com.google.cloud.audit.RequestMetadata(this); result.callerIp_ = callerIp_; result.callerSuppliedUserAgent_ = callerSuppliedUserAgent_; onBuilt(); return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof RequestMetadata) { - return mergeFrom((RequestMetadata)other); + if (other instanceof com.google.cloud.audit.RequestMetadata) { + return mergeFrom((com.google.cloud.audit.RequestMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(RequestMetadata other) { - if (other == RequestMetadata.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.audit.RequestMetadata other) { + if (other == com.google.cloud.audit.RequestMetadata.getDefaultInstance()) return this; if (!other.getCallerIp().isEmpty()) { callerIp_ = other.callerIp_; onChanged(); @@ -493,21 +538,21 @@ public Builder mergeFrom(RequestMetadata other) { return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - RequestMetadata parsedMessage = null; + com.google.cloud.audit.RequestMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (RequestMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.audit.RequestMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -517,40 +562,45 @@ public Builder mergeFrom( return this; } - private Object callerIp_ = ""; + private java.lang.Object callerIp_ = ""; /** + * + * *
      * The IP address of the caller.
      * 
* * string caller_ip = 1; + * + * @return The callerIp. */ - public String getCallerIp() { - Object ref = callerIp_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getCallerIp() { + java.lang.Object ref = callerIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); callerIp_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The IP address of the caller.
      * 
* * string caller_ip = 1; + * + * @return The bytes for callerIp. */ - public com.google.protobuf.ByteString - getCallerIpBytes() { - Object ref = callerIp_; + public com.google.protobuf.ByteString getCallerIpBytes() { + java.lang.Object ref = callerIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); callerIp_ = b; return b; } else { @@ -558,56 +608,70 @@ public String getCallerIp() { } } /** + * + * *
      * The IP address of the caller.
      * 
* * string caller_ip = 1; + * + * @param value The callerIp to set. + * @return This builder for chaining. */ - public Builder setCallerIp( - String value) { + public Builder setCallerIp(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + callerIp_ = value; onChanged(); return this; } /** + * + * *
      * The IP address of the caller.
      * 
* * string caller_ip = 1; + * + * @return This builder for chaining. */ public Builder clearCallerIp() { - + callerIp_ = getDefaultInstance().getCallerIp(); onChanged(); return this; } /** + * + * *
      * The IP address of the caller.
      * 
* * string caller_ip = 1; + * + * @param value The bytes for callerIp to set. + * @return This builder for chaining. */ - public Builder setCallerIpBytes( - com.google.protobuf.ByteString value) { + public Builder setCallerIpBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + callerIp_ = value; onChanged(); return this; } - private Object callerSuppliedUserAgent_ = ""; + private java.lang.Object callerSuppliedUserAgent_ = ""; /** + * + * *
      * The user agent of the caller.
      * This information is not authenticated and should be treated accordingly.
@@ -622,20 +686,23 @@ public Builder setCallerIpBytes(
      * 
* * string caller_supplied_user_agent = 2; + * + * @return The callerSuppliedUserAgent. */ - public String getCallerSuppliedUserAgent() { - Object ref = callerSuppliedUserAgent_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getCallerSuppliedUserAgent() { + java.lang.Object ref = callerSuppliedUserAgent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); callerSuppliedUserAgent_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The user agent of the caller.
      * This information is not authenticated and should be treated accordingly.
@@ -650,14 +717,14 @@ public String getCallerSuppliedUserAgent() {
      * 
* * string caller_supplied_user_agent = 2; + * + * @return The bytes for callerSuppliedUserAgent. */ - public com.google.protobuf.ByteString - getCallerSuppliedUserAgentBytes() { - Object ref = callerSuppliedUserAgent_; + public com.google.protobuf.ByteString getCallerSuppliedUserAgentBytes() { + java.lang.Object ref = callerSuppliedUserAgent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); callerSuppliedUserAgent_ = b; return b; } else { @@ -665,6 +732,8 @@ public String getCallerSuppliedUserAgent() { } } /** + * + * *
      * The user agent of the caller.
      * This information is not authenticated and should be treated accordingly.
@@ -679,18 +748,22 @@ public String getCallerSuppliedUserAgent() {
      * 
* * string caller_supplied_user_agent = 2; + * + * @param value The callerSuppliedUserAgent to set. + * @return This builder for chaining. */ - public Builder setCallerSuppliedUserAgent( - String value) { + public Builder setCallerSuppliedUserAgent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + callerSuppliedUserAgent_ = value; onChanged(); return this; } /** + * + * *
      * The user agent of the caller.
      * This information is not authenticated and should be treated accordingly.
@@ -705,14 +778,18 @@ public Builder setCallerSuppliedUserAgent(
      * 
* * string caller_supplied_user_agent = 2; + * + * @return This builder for chaining. */ public Builder clearCallerSuppliedUserAgent() { - + callerSuppliedUserAgent_ = getDefaultInstance().getCallerSuppliedUserAgent(); onChanged(); return this; } /** + * + * *
      * The user agent of the caller.
      * This information is not authenticated and should be treated accordingly.
@@ -727,68 +804,68 @@ public Builder clearCallerSuppliedUserAgent() {
      * 
* * string caller_supplied_user_agent = 2; + * + * @param value The bytes for callerSuppliedUserAgent to set. + * @return This builder for chaining. */ - public Builder setCallerSuppliedUserAgentBytes( - com.google.protobuf.ByteString value) { + public Builder setCallerSuppliedUserAgentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + callerSuppliedUserAgent_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.audit.RequestMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.audit.RequestMetadata) - private static final RequestMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.audit.RequestMetadata DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new RequestMetadata(); + DEFAULT_INSTANCE = new com.google.cloud.audit.RequestMetadata(); } - public static RequestMetadata getDefaultInstance() { + public static com.google.cloud.audit.RequestMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public RequestMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RequestMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RequestMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RequestMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public RequestMetadata getDefaultInstanceForType() { + @java.lang.Override + public com.google.cloud.audit.RequestMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadataOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadataOrBuilder.java index bf0ca048..5c433e32 100644 --- a/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadataOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadataOrBuilder.java @@ -1,31 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/audit/audit_log.proto package com.google.cloud.audit; -public interface RequestMetadataOrBuilder extends +public interface RequestMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.audit.RequestMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The IP address of the caller.
    * 
* * string caller_ip = 1; + * + * @return The callerIp. */ - String getCallerIp(); + java.lang.String getCallerIp(); /** + * + * *
    * The IP address of the caller.
    * 
* * string caller_ip = 1; + * + * @return The bytes for callerIp. */ - com.google.protobuf.ByteString - getCallerIpBytes(); + com.google.protobuf.ByteString getCallerIpBytes(); /** + * + * *
    * The user agent of the caller.
    * This information is not authenticated and should be treated accordingly.
@@ -40,9 +65,13 @@ public interface RequestMetadataOrBuilder extends
    * 
* * string caller_supplied_user_agent = 2; + * + * @return The callerSuppliedUserAgent. */ - String getCallerSuppliedUserAgent(); + java.lang.String getCallerSuppliedUserAgent(); /** + * + * *
    * The user agent of the caller.
    * This information is not authenticated and should be treated accordingly.
@@ -57,7 +86,8 @@ public interface RequestMetadataOrBuilder extends
    * 
* * string caller_supplied_user_agent = 2; + * + * @return The bytes for callerSuppliedUserAgent. */ - com.google.protobuf.ByteString - getCallerSuppliedUserAgentBytes(); + com.google.protobuf.ByteString getCallerSuppliedUserAgentBytes(); } diff --git a/proto-google-common-protos/src/main/java/com/google/geo/type/Viewport.java b/proto-google-common-protos/src/main/java/com/google/geo/type/Viewport.java index 16e005d8..bf8a660d 100644 --- a/proto-google-common-protos/src/main/java/com/google/geo/type/Viewport.java +++ b/proto-google-common-protos/src/main/java/com/google/geo/type/Viewport.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/geo/type/viewport.proto package com.google.geo.type; /** + * + * *
  * A latitude-longitude viewport, represented as two diagonally opposite `low`
  * and `high` points. A viewport is considered a closed region, i.e. it includes
@@ -36,32 +53,37 @@
  *
  * Protobuf type {@code google.geo.type.Viewport}
  */
-public  final class Viewport extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Viewport extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.geo.type.Viewport)
     ViewportOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Viewport.newBuilder() to construct.
   private Viewport(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private Viewport() {
+
+  private Viewport() {}
+
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new Viewport();
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Viewport(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
-    int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
         com.google.protobuf.UnknownFieldSet.newBuilder();
     try {
@@ -72,87 +94,99 @@ private Viewport(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.type.LatLng.Builder subBuilder = null;
-            if (low_ != null) {
-              subBuilder = low_.toBuilder();
-            }
-            low_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(low_);
-              low_ = subBuilder.buildPartial();
+          case 10:
+            {
+              com.google.type.LatLng.Builder subBuilder = null;
+              if (low_ != null) {
+                subBuilder = low_.toBuilder();
+              }
+              low_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(low_);
+                low_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 18: {
-            com.google.type.LatLng.Builder subBuilder = null;
-            if (high_ != null) {
-              subBuilder = high_.toBuilder();
+          case 18:
+            {
+              com.google.type.LatLng.Builder subBuilder = null;
+              if (high_ != null) {
+                subBuilder = high_.toBuilder();
+              }
+              high_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(high_);
+                high_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            high_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(high_);
-              high_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.geo.type.ViewportProto.internal_static_google_geo_type_Viewport_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.geo.type.ViewportProto.internal_static_google_geo_type_Viewport_fieldAccessorTable
+    return com.google.geo.type.ViewportProto
+        .internal_static_google_geo_type_Viewport_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            Viewport.class, Builder.class);
+            com.google.geo.type.Viewport.class, com.google.geo.type.Viewport.Builder.class);
   }
 
   public static final int LOW_FIELD_NUMBER = 1;
   private com.google.type.LatLng low_;
   /**
+   *
+   *
    * 
    * Required. The low point of the viewport.
    * 
* * .google.type.LatLng low = 1; + * + * @return Whether the low field is set. */ public boolean hasLow() { return low_ != null; } /** + * + * *
    * Required. The low point of the viewport.
    * 
* * .google.type.LatLng low = 1; + * + * @return The low. */ public com.google.type.LatLng getLow() { return low_ == null ? com.google.type.LatLng.getDefaultInstance() : low_; } /** + * + * *
    * Required. The low point of the viewport.
    * 
@@ -166,26 +200,36 @@ public com.google.type.LatLngOrBuilder getLowOrBuilder() { public static final int HIGH_FIELD_NUMBER = 2; private com.google.type.LatLng high_; /** + * + * *
    * Required. The high point of the viewport.
    * 
* * .google.type.LatLng high = 2; + * + * @return Whether the high field is set. */ public boolean hasHigh() { return high_ != null; } /** + * + * *
    * Required. The high point of the viewport.
    * 
* * .google.type.LatLng high = 2; + * + * @return The high. */ public com.google.type.LatLng getHigh() { return high_ == null ? com.google.type.LatLng.getDefaultInstance() : high_; } /** + * + * *
    * Required. The high point of the viewport.
    * 
@@ -197,7 +241,8 @@ public com.google.type.LatLngOrBuilder getHighOrBuilder() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -207,9 +252,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (low_ != null) { output.writeMessage(1, getLow()); } @@ -219,50 +263,46 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (low_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getLow()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLow()); } if (high_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getHigh()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHigh()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof Viewport)) { + if (!(obj instanceof com.google.geo.type.Viewport)) { return super.equals(obj); } - Viewport other = (Viewport) obj; + com.google.geo.type.Viewport other = (com.google.geo.type.Viewport) obj; if (hasLow() != other.hasLow()) return false; if (hasLow()) { - if (!getLow() - .equals(other.getLow())) return false; + if (!getLow().equals(other.getLow())) return false; } if (hasHigh() != other.hasHigh()) return false; if (hasHigh()) { - if (!getHigh() - .equals(other.getHigh())) return false; + if (!getHigh().equals(other.getHigh())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -282,97 +322,103 @@ public int hashCode() { return hash; } - public static Viewport parseFrom( - java.nio.ByteBuffer data) + public static com.google.geo.type.Viewport parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Viewport parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.geo.type.Viewport parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Viewport parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.geo.type.Viewport parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Viewport parseFrom( + + public static com.google.geo.type.Viewport parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Viewport parseFrom(byte[] data) + + public static com.google.geo.type.Viewport parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Viewport parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.geo.type.Viewport parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Viewport parseFrom(java.io.InputStream input) + + public static com.google.geo.type.Viewport 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 Viewport parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.geo.type.Viewport parseFrom( + 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 Viewport parseDelimitedFrom(java.io.InputStream input) + + public static com.google.geo.type.Viewport 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 Viewport parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.geo.type.Viewport parseDelimitedFrom( + 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 Viewport parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.geo.type.Viewport 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 Viewport parseFrom( + + public static com.google.geo.type.Viewport 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(Viewport prototype) { + + public static Builder newBuilder(com.google.geo.type.Viewport prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A latitude-longitude viewport, represented as two diagonally opposite `low`
    * and `high` points. A viewport is considered a closed region, i.e. it includes
@@ -405,21 +451,21 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.geo.type.Viewport}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.geo.type.Viewport)
       com.google.geo.type.ViewportOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.geo.type.ViewportProto.internal_static_google_geo_type_Viewport_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.geo.type.ViewportProto.internal_static_google_geo_type_Viewport_fieldAccessorTable
+      return com.google.geo.type.ViewportProto
+          .internal_static_google_geo_type_Viewport_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              Viewport.class, Builder.class);
+              com.google.geo.type.Viewport.class, com.google.geo.type.Viewport.Builder.class);
     }
 
     // Construct using com.google.geo.type.Viewport.newBuilder()
@@ -427,17 +473,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       if (lowBuilder_ == null) {
@@ -455,29 +500,28 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.geo.type.ViewportProto.internal_static_google_geo_type_Viewport_descriptor;
     }
 
-    @Override
-    public Viewport getDefaultInstanceForType() {
-      return Viewport.getDefaultInstance();
+    @java.lang.Override
+    public com.google.geo.type.Viewport getDefaultInstanceForType() {
+      return com.google.geo.type.Viewport.getDefaultInstance();
     }
 
-    @Override
-    public Viewport build() {
-      Viewport result = buildPartial();
+    @java.lang.Override
+    public com.google.geo.type.Viewport build() {
+      com.google.geo.type.Viewport result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public Viewport buildPartial() {
-      Viewport result = new Viewport(this);
+    @java.lang.Override
+    public com.google.geo.type.Viewport buildPartial() {
+      com.google.geo.type.Viewport result = new com.google.geo.type.Viewport(this);
       if (lowBuilder_ == null) {
         result.low_ = low_;
       } else {
@@ -492,50 +536,51 @@ public Viewport buildPartial() {
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof Viewport) {
-        return mergeFrom((Viewport)other);
+      if (other instanceof com.google.geo.type.Viewport) {
+        return mergeFrom((com.google.geo.type.Viewport) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(Viewport other) {
-      if (other == Viewport.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.geo.type.Viewport other) {
+      if (other == com.google.geo.type.Viewport.getDefaultInstance()) return this;
       if (other.hasLow()) {
         mergeLow(other.getLow());
       }
@@ -547,21 +592,21 @@ public Builder mergeFrom(Viewport other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      Viewport parsedMessage = null;
+      com.google.geo.type.Viewport parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (Viewport) e.getUnfinishedMessage();
+        parsedMessage = (com.google.geo.type.Viewport) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -573,23 +618,32 @@ public Builder mergeFrom(
 
     private com.google.type.LatLng low_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> lowBuilder_;
+            com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>
+        lowBuilder_;
     /**
+     *
+     *
      * 
      * Required. The low point of the viewport.
      * 
* * .google.type.LatLng low = 1; + * + * @return Whether the low field is set. */ public boolean hasLow() { return lowBuilder_ != null || low_ != null; } /** + * + * *
      * Required. The low point of the viewport.
      * 
* * .google.type.LatLng low = 1; + * + * @return The low. */ public com.google.type.LatLng getLow() { if (lowBuilder_ == null) { @@ -599,6 +653,8 @@ public com.google.type.LatLng getLow() { } } /** + * + * *
      * Required. The low point of the viewport.
      * 
@@ -619,14 +675,15 @@ public Builder setLow(com.google.type.LatLng value) { return this; } /** + * + * *
      * Required. The low point of the viewport.
      * 
* * .google.type.LatLng low = 1; */ - public Builder setLow( - com.google.type.LatLng.Builder builderForValue) { + public Builder setLow(com.google.type.LatLng.Builder builderForValue) { if (lowBuilder_ == null) { low_ = builderForValue.build(); onChanged(); @@ -637,6 +694,8 @@ public Builder setLow( return this; } /** + * + * *
      * Required. The low point of the viewport.
      * 
@@ -646,8 +705,7 @@ public Builder setLow( public Builder mergeLow(com.google.type.LatLng value) { if (lowBuilder_ == null) { if (low_ != null) { - low_ = - com.google.type.LatLng.newBuilder(low_).mergeFrom(value).buildPartial(); + low_ = com.google.type.LatLng.newBuilder(low_).mergeFrom(value).buildPartial(); } else { low_ = value; } @@ -659,6 +717,8 @@ public Builder mergeLow(com.google.type.LatLng value) { return this; } /** + * + * *
      * Required. The low point of the viewport.
      * 
@@ -677,6 +737,8 @@ public Builder clearLow() { return this; } /** + * + * *
      * Required. The low point of the viewport.
      * 
@@ -684,11 +746,13 @@ public Builder clearLow() { * .google.type.LatLng low = 1; */ public com.google.type.LatLng.Builder getLowBuilder() { - + onChanged(); return getLowFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The low point of the viewport.
      * 
@@ -699,11 +763,12 @@ public com.google.type.LatLngOrBuilder getLowOrBuilder() { if (lowBuilder_ != null) { return lowBuilder_.getMessageOrBuilder(); } else { - return low_ == null ? - com.google.type.LatLng.getDefaultInstance() : low_; + return low_ == null ? com.google.type.LatLng.getDefaultInstance() : low_; } } /** + * + * *
      * Required. The low point of the viewport.
      * 
@@ -711,14 +776,14 @@ public com.google.type.LatLngOrBuilder getLowOrBuilder() { * .google.type.LatLng low = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getLowFieldBuilder() { if (lowBuilder_ == null) { - lowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( - getLow(), - getParentForChildren(), - isClean()); + lowBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>(getLow(), getParentForChildren(), isClean()); low_ = null; } return lowBuilder_; @@ -726,23 +791,32 @@ public com.google.type.LatLngOrBuilder getLowOrBuilder() { private com.google.type.LatLng high_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> highBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + highBuilder_; /** + * + * *
      * Required. The high point of the viewport.
      * 
* * .google.type.LatLng high = 2; + * + * @return Whether the high field is set. */ public boolean hasHigh() { return highBuilder_ != null || high_ != null; } /** + * + * *
      * Required. The high point of the viewport.
      * 
* * .google.type.LatLng high = 2; + * + * @return The high. */ public com.google.type.LatLng getHigh() { if (highBuilder_ == null) { @@ -752,6 +826,8 @@ public com.google.type.LatLng getHigh() { } } /** + * + * *
      * Required. The high point of the viewport.
      * 
@@ -772,14 +848,15 @@ public Builder setHigh(com.google.type.LatLng value) { return this; } /** + * + * *
      * Required. The high point of the viewport.
      * 
* * .google.type.LatLng high = 2; */ - public Builder setHigh( - com.google.type.LatLng.Builder builderForValue) { + public Builder setHigh(com.google.type.LatLng.Builder builderForValue) { if (highBuilder_ == null) { high_ = builderForValue.build(); onChanged(); @@ -790,6 +867,8 @@ public Builder setHigh( return this; } /** + * + * *
      * Required. The high point of the viewport.
      * 
@@ -799,8 +878,7 @@ public Builder setHigh( public Builder mergeHigh(com.google.type.LatLng value) { if (highBuilder_ == null) { if (high_ != null) { - high_ = - com.google.type.LatLng.newBuilder(high_).mergeFrom(value).buildPartial(); + high_ = com.google.type.LatLng.newBuilder(high_).mergeFrom(value).buildPartial(); } else { high_ = value; } @@ -812,6 +890,8 @@ public Builder mergeHigh(com.google.type.LatLng value) { return this; } /** + * + * *
      * Required. The high point of the viewport.
      * 
@@ -830,6 +910,8 @@ public Builder clearHigh() { return this; } /** + * + * *
      * Required. The high point of the viewport.
      * 
@@ -837,11 +919,13 @@ public Builder clearHigh() { * .google.type.LatLng high = 2; */ public com.google.type.LatLng.Builder getHighBuilder() { - + onChanged(); return getHighFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The high point of the viewport.
      * 
@@ -852,11 +936,12 @@ public com.google.type.LatLngOrBuilder getHighOrBuilder() { if (highBuilder_ != null) { return highBuilder_.getMessageOrBuilder(); } else { - return high_ == null ? - com.google.type.LatLng.getDefaultInstance() : high_; + return high_ == null ? com.google.type.LatLng.getDefaultInstance() : high_; } } /** + * + * *
      * Required. The high point of the viewport.
      * 
@@ -864,68 +949,66 @@ public com.google.type.LatLngOrBuilder getHighOrBuilder() { * .google.type.LatLng high = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getHighFieldBuilder() { if (highBuilder_ == null) { - highBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( - getHigh(), - getParentForChildren(), - isClean()); + highBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>(getHigh(), getParentForChildren(), isClean()); high_ = null; } return highBuilder_; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.geo.type.Viewport) } // @@protoc_insertion_point(class_scope:google.geo.type.Viewport) - private static final Viewport DEFAULT_INSTANCE; + private static final com.google.geo.type.Viewport DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new Viewport(); + DEFAULT_INSTANCE = new com.google.geo.type.Viewport(); } - public static Viewport getDefaultInstance() { + public static com.google.geo.type.Viewport getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public Viewport parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Viewport(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Viewport parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Viewport(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public Viewport getDefaultInstanceForType() { + @java.lang.Override + public com.google.geo.type.Viewport getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/geo/type/ViewportOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/geo/type/ViewportOrBuilder.java index 3187872c..a0299e25 100644 --- a/proto-google-common-protos/src/main/java/com/google/geo/type/ViewportOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/geo/type/ViewportOrBuilder.java @@ -1,29 +1,55 @@ +/* + * 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/geo/type/viewport.proto package com.google.geo.type; -public interface ViewportOrBuilder extends +public interface ViewportOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.geo.type.Viewport) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The low point of the viewport.
    * 
* * .google.type.LatLng low = 1; + * + * @return Whether the low field is set. */ boolean hasLow(); /** + * + * *
    * Required. The low point of the viewport.
    * 
* * .google.type.LatLng low = 1; + * + * @return The low. */ com.google.type.LatLng getLow(); /** + * + * *
    * Required. The low point of the viewport.
    * 
@@ -33,22 +59,32 @@ public interface ViewportOrBuilder extends com.google.type.LatLngOrBuilder getLowOrBuilder(); /** + * + * *
    * Required. The high point of the viewport.
    * 
* * .google.type.LatLng high = 2; + * + * @return Whether the high field is set. */ boolean hasHigh(); /** + * + * *
    * Required. The high point of the viewport.
    * 
* * .google.type.LatLng high = 2; + * + * @return The high. */ com.google.type.LatLng getHigh(); /** + * + * *
    * Required. The high point of the viewport.
    * 
diff --git a/proto-google-common-protos/src/main/java/com/google/geo/type/ViewportProto.java b/proto-google-common-protos/src/main/java/com/google/geo/type/ViewportProto.java index 373af954..2d6c618e 100644 --- a/proto-google-common-protos/src/main/java/com/google/geo/type/ViewportProto.java +++ b/proto-google-common-protos/src/main/java/com/google/geo/type/ViewportProto.java @@ -1,3 +1,18 @@ +/* + * 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/geo/type/viewport.proto @@ -5,56 +20,47 @@ public final class ViewportProto { private ViewportProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + 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_geo_type_Viewport_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_geo_type_Viewport_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_geo_type_Viewport_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { - String[] descriptorData = { - "\n\036google/geo/type/viewport.proto\022\017google" + - ".geo.type\032\030google/type/latlng.proto\"O\n\010V" + - "iewport\022 \n\003low\030\001 \001(\0132\023.google.type.LatLn" + - "g\022!\n\004high\030\002 \001(\0132\023.google.type.LatLngBo\n\023" + - "com.google.geo.typeB\rViewportProtoP\001Z@go" + - "ogle.golang.org/genproto/googleapis/geo/" + - "type/viewport;viewport\242\002\004GGTPb\006proto3" + java.lang.String[] descriptorData = { + "\n\036google/geo/type/viewport.proto\022\017google" + + ".geo.type\032\030google/type/latlng.proto\"O\n\010V" + + "iewport\022 \n\003low\030\001 \001(\0132\023.google.type.LatLn" + + "g\022!\n\004high\030\002 \001(\0132\023.google.type.LatLngBo\n\023" + + "com.google.geo.typeB\rViewportProtoP\001Z@go" + + "ogle.golang.org/genproto/googleapis/geo/" + + "type/viewport;viewport\242\002\004GGTPb\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.type.LatLngProto.getDescriptor(), - }, assigner); - internal_static_google_geo_type_Viewport_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_geo_type_Viewport_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_geo_type_Viewport_descriptor, - new String[] { "Low", "High", }); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.type.LatLngProto.getDescriptor(), + }); + internal_static_google_geo_type_Viewport_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_geo_type_Viewport_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_geo_type_Viewport_descriptor, + new java.lang.String[] { + "Low", "High", + }); com.google.type.LatLngProto.getDescriptor(); } diff --git a/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequest.java b/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequest.java index bd18d415..b18d66f3 100644 --- a/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequest.java +++ b/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequest.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/logging/type/http_request.proto package com.google.logging.type; /** + * + * *
  * A common proto for logging HTTP requests. Only contains semantics
  * defined by the HTTP specification. Product-specific logging
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.logging.type.HttpRequest}
  */
-public  final class HttpRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class HttpRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.logging.type.HttpRequest)
     HttpRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use HttpRequest.newBuilder() to construct.
   private HttpRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private HttpRequest() {
     requestMethod_ = "";
     requestUrl_ = "";
@@ -31,20 +49,25 @@ private HttpRequest() {
     protocol_ = "";
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new HttpRequest();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private HttpRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
-    int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
         com.google.protobuf.UnknownFieldSet.newBuilder();
     try {
@@ -55,163 +78,179 @@ private HttpRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
-
-            requestMethod_ = s;
-            break;
-          }
-          case 18: {
-            String s = input.readStringRequireUtf8();
-
-            requestUrl_ = s;
-            break;
-          }
-          case 24: {
-
-            requestSize_ = input.readInt64();
-            break;
-          }
-          case 32: {
-
-            status_ = input.readInt32();
-            break;
-          }
-          case 40: {
-
-            responseSize_ = input.readInt64();
-            break;
-          }
-          case 50: {
-            String s = input.readStringRequireUtf8();
-
-            userAgent_ = s;
-            break;
-          }
-          case 58: {
-            String s = input.readStringRequireUtf8();
-
-            remoteIp_ = s;
-            break;
-          }
-          case 66: {
-            String s = input.readStringRequireUtf8();
-
-            referer_ = s;
-            break;
-          }
-          case 72: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            cacheHit_ = input.readBool();
-            break;
-          }
-          case 80: {
+              requestMethod_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            cacheValidatedWithOriginServer_ = input.readBool();
-            break;
-          }
-          case 88: {
+              requestUrl_ = s;
+              break;
+            }
+          case 24:
+            {
+              requestSize_ = input.readInt64();
+              break;
+            }
+          case 32:
+            {
+              status_ = input.readInt32();
+              break;
+            }
+          case 40:
+            {
+              responseSize_ = input.readInt64();
+              break;
+            }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            cacheLookup_ = input.readBool();
-            break;
-          }
-          case 96: {
+              userAgent_ = s;
+              break;
+            }
+          case 58:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            cacheFillBytes_ = input.readInt64();
-            break;
-          }
-          case 106: {
-            String s = input.readStringRequireUtf8();
+              remoteIp_ = s;
+              break;
+            }
+          case 66:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            serverIp_ = s;
-            break;
-          }
-          case 114: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (latency_ != null) {
-              subBuilder = latency_.toBuilder();
+              referer_ = s;
+              break;
+            }
+          case 72:
+            {
+              cacheHit_ = input.readBool();
+              break;
             }
-            latency_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(latency_);
-              latency_ = subBuilder.buildPartial();
+          case 80:
+            {
+              cacheValidatedWithOriginServer_ = input.readBool();
+              break;
             }
+          case 88:
+            {
+              cacheLookup_ = input.readBool();
+              break;
+            }
+          case 96:
+            {
+              cacheFillBytes_ = input.readInt64();
+              break;
+            }
+          case 106:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 122: {
-            String s = input.readStringRequireUtf8();
+              serverIp_ = s;
+              break;
+            }
+          case 114:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (latency_ != null) {
+                subBuilder = latency_.toBuilder();
+              }
+              latency_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(latency_);
+                latency_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 122:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            protocol_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              protocol_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.logging.type.HttpRequestProto.internal_static_google_logging_type_HttpRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.logging.type.HttpRequestProto
+        .internal_static_google_logging_type_HttpRequest_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.logging.type.HttpRequestProto.internal_static_google_logging_type_HttpRequest_fieldAccessorTable
+    return com.google.logging.type.HttpRequestProto
+        .internal_static_google_logging_type_HttpRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            HttpRequest.class, Builder.class);
+            com.google.logging.type.HttpRequest.class,
+            com.google.logging.type.HttpRequest.Builder.class);
   }
 
   public static final int REQUEST_METHOD_FIELD_NUMBER = 1;
-  private volatile Object requestMethod_;
+  private volatile java.lang.Object requestMethod_;
   /**
+   *
+   *
    * 
    * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
    * 
* * string request_method = 1; + * + * @return The requestMethod. */ - public String getRequestMethod() { - Object ref = requestMethod_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getRequestMethod() { + java.lang.Object ref = requestMethod_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); requestMethod_ = s; return s; } } /** + * + * *
    * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
    * 
* * string request_method = 1; + * + * @return The bytes for requestMethod. */ - public com.google.protobuf.ByteString - getRequestMethodBytes() { - Object ref = requestMethod_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getRequestMethodBytes() { + java.lang.Object ref = requestMethod_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestMethod_ = b; return b; } else { @@ -220,8 +259,10 @@ public String getRequestMethod() { } public static final int REQUEST_URL_FIELD_NUMBER = 2; - private volatile Object requestUrl_; + private volatile java.lang.Object requestUrl_; /** + * + * *
    * The scheme (http, https), the host name, the path and the query
    * portion of the URL that was requested.
@@ -229,20 +270,23 @@ public String getRequestMethod() {
    * 
* * string request_url = 2; + * + * @return The requestUrl. */ - public String getRequestUrl() { - Object ref = requestUrl_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getRequestUrl() { + java.lang.Object ref = requestUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); requestUrl_ = s; return s; } } /** + * + * *
    * The scheme (http, https), the host name, the path and the query
    * portion of the URL that was requested.
@@ -250,14 +294,14 @@ public String getRequestUrl() {
    * 
* * string request_url = 2; + * + * @return The bytes for requestUrl. */ - public com.google.protobuf.ByteString - getRequestUrlBytes() { - Object ref = requestUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getRequestUrlBytes() { + java.lang.Object ref = requestUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestUrl_ = b; return b; } else { @@ -268,12 +312,16 @@ public String getRequestUrl() { public static final int REQUEST_SIZE_FIELD_NUMBER = 3; private long requestSize_; /** + * + * *
    * The size of the HTTP request message in bytes, including the request
    * headers and the request body.
    * 
* * int64 request_size = 3; + * + * @return The requestSize. */ public long getRequestSize() { return requestSize_; @@ -282,12 +330,16 @@ public long getRequestSize() { public static final int STATUS_FIELD_NUMBER = 4; private int status_; /** + * + * *
    * The response code indicating the status of response.
    * Examples: 200, 404.
    * 
* * int32 status = 4; + * + * @return The status. */ public int getStatus() { return status_; @@ -296,20 +348,26 @@ public int getStatus() { public static final int RESPONSE_SIZE_FIELD_NUMBER = 5; private long responseSize_; /** + * + * *
    * The size of the HTTP response message sent back to the client, in bytes,
    * including the response headers and the response body.
    * 
* * int64 response_size = 5; + * + * @return The responseSize. */ public long getResponseSize() { return responseSize_; } public static final int USER_AGENT_FIELD_NUMBER = 6; - private volatile Object userAgent_; + private volatile java.lang.Object userAgent_; /** + * + * *
    * The user agent sent by the client. Example:
    * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
@@ -317,20 +375,23 @@ public long getResponseSize() {
    * 
* * string user_agent = 6; + * + * @return The userAgent. */ - public String getUserAgent() { - Object ref = userAgent_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getUserAgent() { + java.lang.Object ref = userAgent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); userAgent_ = s; return s; } } /** + * + * *
    * The user agent sent by the client. Example:
    * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
@@ -338,14 +399,14 @@ public String getUserAgent() {
    * 
* * string user_agent = 6; + * + * @return The bytes for userAgent. */ - public com.google.protobuf.ByteString - getUserAgentBytes() { - Object ref = userAgent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getUserAgentBytes() { + java.lang.Object ref = userAgent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userAgent_ = b; return b; } else { @@ -354,42 +415,47 @@ public String getUserAgent() { } public static final int REMOTE_IP_FIELD_NUMBER = 7; - private volatile Object remoteIp_; + private volatile java.lang.Object remoteIp_; /** + * + * *
    * The IP address (IPv4 or IPv6) of the client that issued the HTTP
    * request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
    * 
* * string remote_ip = 7; + * + * @return The remoteIp. */ - public String getRemoteIp() { - Object ref = remoteIp_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getRemoteIp() { + java.lang.Object ref = remoteIp_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); remoteIp_ = s; return s; } } /** + * + * *
    * The IP address (IPv4 or IPv6) of the client that issued the HTTP
    * request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
    * 
* * string remote_ip = 7; + * + * @return The bytes for remoteIp. */ - public com.google.protobuf.ByteString - getRemoteIpBytes() { - Object ref = remoteIp_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getRemoteIpBytes() { + java.lang.Object ref = remoteIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); remoteIp_ = b; return b; } else { @@ -398,42 +464,47 @@ public String getRemoteIp() { } public static final int SERVER_IP_FIELD_NUMBER = 13; - private volatile Object serverIp_; + private volatile java.lang.Object serverIp_; /** + * + * *
    * The IP address (IPv4 or IPv6) of the origin server that the request was
    * sent to.
    * 
* * string server_ip = 13; + * + * @return The serverIp. */ - public String getServerIp() { - Object ref = serverIp_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getServerIp() { + java.lang.Object ref = serverIp_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); serverIp_ = s; return s; } } /** + * + * *
    * The IP address (IPv4 or IPv6) of the origin server that the request was
    * sent to.
    * 
* * string server_ip = 13; + * + * @return The bytes for serverIp. */ - public com.google.protobuf.ByteString - getServerIpBytes() { - Object ref = serverIp_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getServerIpBytes() { + java.lang.Object ref = serverIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serverIp_ = b; return b; } else { @@ -442,8 +513,10 @@ public String getServerIp() { } public static final int REFERER_FIELD_NUMBER = 8; - private volatile Object referer_; + private volatile java.lang.Object referer_; /** + * + * *
    * The referer URL of the request, as defined in
    * [HTTP/1.1 Header Field
@@ -451,20 +524,23 @@ public String getServerIp() {
    * 
* * string referer = 8; + * + * @return The referer. */ - public String getReferer() { - Object ref = referer_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getReferer() { + java.lang.Object ref = referer_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); referer_ = s; return s; } } /** + * + * *
    * The referer URL of the request, as defined in
    * [HTTP/1.1 Header Field
@@ -472,14 +548,14 @@ public String getReferer() {
    * 
* * string referer = 8; + * + * @return The bytes for referer. */ - public com.google.protobuf.ByteString - getRefererBytes() { - Object ref = referer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getRefererBytes() { + java.lang.Object ref = referer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); referer_ = b; return b; } else { @@ -490,28 +566,38 @@ public String getReferer() { public static final int LATENCY_FIELD_NUMBER = 14; private com.google.protobuf.Duration latency_; /** + * + * *
    * The request processing latency on the server, from the time the request was
    * received until the response was sent.
    * 
* * .google.protobuf.Duration latency = 14; + * + * @return Whether the latency field is set. */ public boolean hasLatency() { return latency_ != null; } /** + * + * *
    * The request processing latency on the server, from the time the request was
    * received until the response was sent.
    * 
* * .google.protobuf.Duration latency = 14; + * + * @return The latency. */ public com.google.protobuf.Duration getLatency() { return latency_ == null ? com.google.protobuf.Duration.getDefaultInstance() : latency_; } /** + * + * *
    * The request processing latency on the server, from the time the request was
    * received until the response was sent.
@@ -526,11 +612,15 @@ public com.google.protobuf.DurationOrBuilder getLatencyOrBuilder() {
   public static final int CACHE_LOOKUP_FIELD_NUMBER = 11;
   private boolean cacheLookup_;
   /**
+   *
+   *
    * 
    * Whether or not a cache lookup was attempted.
    * 
* * bool cache_lookup = 11; + * + * @return The cacheLookup. */ public boolean getCacheLookup() { return cacheLookup_; @@ -539,12 +629,16 @@ public boolean getCacheLookup() { public static final int CACHE_HIT_FIELD_NUMBER = 9; private boolean cacheHit_; /** + * + * *
    * Whether or not an entity was served from cache
    * (with or without validation).
    * 
* * bool cache_hit = 9; + * + * @return The cacheHit. */ public boolean getCacheHit() { return cacheHit_; @@ -553,6 +647,8 @@ public boolean getCacheHit() { public static final int CACHE_VALIDATED_WITH_ORIGIN_SERVER_FIELD_NUMBER = 10; private boolean cacheValidatedWithOriginServer_; /** + * + * *
    * Whether or not the response was validated with the origin server before
    * being served from cache. This field is only meaningful if `cache_hit` is
@@ -560,6 +656,8 @@ public boolean getCacheHit() {
    * 
* * bool cache_validated_with_origin_server = 10; + * + * @return The cacheValidatedWithOriginServer. */ public boolean getCacheValidatedWithOriginServer() { return cacheValidatedWithOriginServer_; @@ -568,52 +666,61 @@ public boolean getCacheValidatedWithOriginServer() { public static final int CACHE_FILL_BYTES_FIELD_NUMBER = 12; private long cacheFillBytes_; /** + * + * *
    * The number of HTTP response bytes inserted into cache. Set only when a
    * cache fill was attempted.
    * 
* * int64 cache_fill_bytes = 12; + * + * @return The cacheFillBytes. */ public long getCacheFillBytes() { return cacheFillBytes_; } public static final int PROTOCOL_FIELD_NUMBER = 15; - private volatile Object protocol_; + private volatile java.lang.Object protocol_; /** + * + * *
    * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
    * 
* * string protocol = 15; + * + * @return The protocol. */ - public String getProtocol() { - Object ref = protocol_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getProtocol() { + java.lang.Object ref = protocol_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); protocol_ = s; return s; } } /** + * + * *
    * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
    * 
* * string protocol = 15; + * + * @return The bytes for protocol. */ - public com.google.protobuf.ByteString - getProtocolBytes() { - Object ref = protocol_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getProtocolBytes() { + java.lang.Object ref = protocol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); protocol_ = b; return b; } else { @@ -622,7 +729,8 @@ public String getProtocol() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -632,9 +740,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getRequestMethodBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestMethod_); } @@ -683,7 +790,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -696,16 +803,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestUrl_); } if (requestSize_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, requestSize_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, requestSize_); } if (status_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, status_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, status_); } if (responseSize_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, responseSize_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, responseSize_); } if (!getUserAgentBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, userAgent_); @@ -717,27 +821,24 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, referer_); } if (cacheHit_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(9, cacheHit_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, cacheHit_); } if (cacheValidatedWithOriginServer_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(10, cacheValidatedWithOriginServer_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 10, cacheValidatedWithOriginServer_); } if (cacheLookup_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(11, cacheLookup_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, cacheLookup_); } if (cacheFillBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(12, cacheFillBytes_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(12, cacheFillBytes_); } if (!getServerIpBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, serverIp_); } if (latency_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getLatency()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getLatency()); } if (!getProtocolBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, protocol_); @@ -747,54 +848,40 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof HttpRequest)) { + if (!(obj instanceof com.google.logging.type.HttpRequest)) { return super.equals(obj); } - HttpRequest other = (HttpRequest) obj; - - if (!getRequestMethod() - .equals(other.getRequestMethod())) return false; - if (!getRequestUrl() - .equals(other.getRequestUrl())) return false; - if (getRequestSize() - != other.getRequestSize()) return false; - if (getStatus() - != other.getStatus()) return false; - if (getResponseSize() - != other.getResponseSize()) return false; - if (!getUserAgent() - .equals(other.getUserAgent())) return false; - if (!getRemoteIp() - .equals(other.getRemoteIp())) return false; - if (!getServerIp() - .equals(other.getServerIp())) return false; - if (!getReferer() - .equals(other.getReferer())) return false; + com.google.logging.type.HttpRequest other = (com.google.logging.type.HttpRequest) obj; + + if (!getRequestMethod().equals(other.getRequestMethod())) return false; + if (!getRequestUrl().equals(other.getRequestUrl())) return false; + if (getRequestSize() != other.getRequestSize()) return false; + if (getStatus() != other.getStatus()) return false; + if (getResponseSize() != other.getResponseSize()) return false; + if (!getUserAgent().equals(other.getUserAgent())) return false; + if (!getRemoteIp().equals(other.getRemoteIp())) return false; + if (!getServerIp().equals(other.getServerIp())) return false; + if (!getReferer().equals(other.getReferer())) return false; if (hasLatency() != other.hasLatency()) return false; if (hasLatency()) { - if (!getLatency() - .equals(other.getLatency())) return false; - } - if (getCacheLookup() - != other.getCacheLookup()) return false; - if (getCacheHit() - != other.getCacheHit()) return false; - if (getCacheValidatedWithOriginServer() - != other.getCacheValidatedWithOriginServer()) return false; - if (getCacheFillBytes() - != other.getCacheFillBytes()) return false; - if (!getProtocol() - .equals(other.getProtocol())) return false; + if (!getLatency().equals(other.getLatency())) return false; + } + if (getCacheLookup() != other.getCacheLookup()) return false; + if (getCacheHit() != other.getCacheHit()) return false; + if (getCacheValidatedWithOriginServer() != other.getCacheValidatedWithOriginServer()) + return false; + if (getCacheFillBytes() != other.getCacheFillBytes()) return false; + if (!getProtocol().equals(other.getProtocol())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -806,13 +893,11 @@ public int hashCode() { hash = (37 * hash) + REQUEST_URL_FIELD_NUMBER; hash = (53 * hash) + getRequestUrl().hashCode(); hash = (37 * hash) + REQUEST_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRequestSize()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestSize()); hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus(); hash = (37 * hash) + RESPONSE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getResponseSize()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getResponseSize()); hash = (37 * hash) + USER_AGENT_FIELD_NUMBER; hash = (53 * hash) + getUserAgent().hashCode(); hash = (37 * hash) + REMOTE_IP_FIELD_NUMBER; @@ -826,17 +911,14 @@ public int hashCode() { hash = (53 * hash) + getLatency().hashCode(); } hash = (37 * hash) + CACHE_LOOKUP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCacheLookup()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCacheLookup()); hash = (37 * hash) + CACHE_HIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCacheHit()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCacheHit()); hash = (37 * hash) + CACHE_VALIDATED_WITH_ORIGIN_SERVER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCacheValidatedWithOriginServer()); + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCacheValidatedWithOriginServer()); hash = (37 * hash) + CACHE_FILL_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCacheFillBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCacheFillBytes()); hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; hash = (53 * hash) + getProtocol().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -844,97 +926,103 @@ public int hashCode() { return hash; } - public static HttpRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.type.HttpRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static HttpRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.logging.type.HttpRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static HttpRequest parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.logging.type.HttpRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static HttpRequest parseFrom( + + public static com.google.logging.type.HttpRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static HttpRequest parseFrom(byte[] data) + + public static com.google.logging.type.HttpRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static HttpRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.logging.type.HttpRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static HttpRequest parseFrom(java.io.InputStream input) + + public static com.google.logging.type.HttpRequest 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 HttpRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.logging.type.HttpRequest parseFrom( + 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 HttpRequest parseDelimitedFrom(java.io.InputStream input) + + public static com.google.logging.type.HttpRequest 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 HttpRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.logging.type.HttpRequest parseDelimitedFrom( + 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 HttpRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.logging.type.HttpRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static HttpRequest parseFrom( + + public static com.google.logging.type.HttpRequest 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(HttpRequest prototype) { + + public static Builder newBuilder(com.google.logging.type.HttpRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A common proto for logging HTTP requests. Only contains semantics
    * defined by the HTTP specification. Product-specific logging
@@ -943,21 +1031,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.logging.type.HttpRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.logging.type.HttpRequest)
       com.google.logging.type.HttpRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.logging.type.HttpRequestProto.internal_static_google_logging_type_HttpRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.logging.type.HttpRequestProto
+          .internal_static_google_logging_type_HttpRequest_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.logging.type.HttpRequestProto.internal_static_google_logging_type_HttpRequest_fieldAccessorTable
+      return com.google.logging.type.HttpRequestProto
+          .internal_static_google_logging_type_HttpRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              HttpRequest.class, Builder.class);
+              com.google.logging.type.HttpRequest.class,
+              com.google.logging.type.HttpRequest.Builder.class);
     }
 
     // Construct using com.google.logging.type.HttpRequest.newBuilder()
@@ -965,17 +1055,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       requestMethod_ = "";
@@ -1015,29 +1104,29 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.logging.type.HttpRequestProto.internal_static_google_logging_type_HttpRequest_descriptor;
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.logging.type.HttpRequestProto
+          .internal_static_google_logging_type_HttpRequest_descriptor;
     }
 
-    @Override
-    public HttpRequest getDefaultInstanceForType() {
-      return HttpRequest.getDefaultInstance();
+    @java.lang.Override
+    public com.google.logging.type.HttpRequest getDefaultInstanceForType() {
+      return com.google.logging.type.HttpRequest.getDefaultInstance();
     }
 
-    @Override
-    public HttpRequest build() {
-      HttpRequest result = buildPartial();
+    @java.lang.Override
+    public com.google.logging.type.HttpRequest build() {
+      com.google.logging.type.HttpRequest result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public HttpRequest buildPartial() {
-      HttpRequest result = new HttpRequest(this);
+    @java.lang.Override
+    public com.google.logging.type.HttpRequest buildPartial() {
+      com.google.logging.type.HttpRequest result = new com.google.logging.type.HttpRequest(this);
       result.requestMethod_ = requestMethod_;
       result.requestUrl_ = requestUrl_;
       result.requestSize_ = requestSize_;
@@ -1061,50 +1150,51 @@ public HttpRequest buildPartial() {
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof HttpRequest) {
-        return mergeFrom((HttpRequest)other);
+      if (other instanceof com.google.logging.type.HttpRequest) {
+        return mergeFrom((com.google.logging.type.HttpRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(HttpRequest other) {
-      if (other == HttpRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.logging.type.HttpRequest other) {
+      if (other == com.google.logging.type.HttpRequest.getDefaultInstance()) return this;
       if (!other.getRequestMethod().isEmpty()) {
         requestMethod_ = other.requestMethod_;
         onChanged();
@@ -1162,21 +1252,21 @@ public Builder mergeFrom(HttpRequest other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      HttpRequest parsedMessage = null;
+      com.google.logging.type.HttpRequest parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (HttpRequest) e.getUnfinishedMessage();
+        parsedMessage = (com.google.logging.type.HttpRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1186,40 +1276,45 @@ public Builder mergeFrom(
       return this;
     }
 
-    private Object requestMethod_ = "";
+    private java.lang.Object requestMethod_ = "";
     /**
+     *
+     *
      * 
      * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
      * 
* * string request_method = 1; + * + * @return The requestMethod. */ - public String getRequestMethod() { - Object ref = requestMethod_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getRequestMethod() { + java.lang.Object ref = requestMethod_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); requestMethod_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
      * 
* * string request_method = 1; + * + * @return The bytes for requestMethod. */ - public com.google.protobuf.ByteString - getRequestMethodBytes() { - Object ref = requestMethod_; + public com.google.protobuf.ByteString getRequestMethodBytes() { + java.lang.Object ref = requestMethod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestMethod_ = b; return b; } else { @@ -1227,56 +1322,70 @@ public String getRequestMethod() { } } /** + * + * *
      * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
      * 
* * string request_method = 1; + * + * @param value The requestMethod to set. + * @return This builder for chaining. */ - public Builder setRequestMethod( - String value) { + public Builder setRequestMethod(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestMethod_ = value; onChanged(); return this; } /** + * + * *
      * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
      * 
* * string request_method = 1; + * + * @return This builder for chaining. */ public Builder clearRequestMethod() { - + requestMethod_ = getDefaultInstance().getRequestMethod(); onChanged(); return this; } /** + * + * *
      * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
      * 
* * string request_method = 1; + * + * @param value The bytes for requestMethod to set. + * @return This builder for chaining. */ - public Builder setRequestMethodBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestMethodBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestMethod_ = value; onChanged(); return this; } - private Object requestUrl_ = ""; + private java.lang.Object requestUrl_ = ""; /** + * + * *
      * The scheme (http, https), the host name, the path and the query
      * portion of the URL that was requested.
@@ -1284,20 +1393,23 @@ public Builder setRequestMethodBytes(
      * 
* * string request_url = 2; + * + * @return The requestUrl. */ - public String getRequestUrl() { - Object ref = requestUrl_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getRequestUrl() { + java.lang.Object ref = requestUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); requestUrl_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The scheme (http, https), the host name, the path and the query
      * portion of the URL that was requested.
@@ -1305,14 +1417,14 @@ public String getRequestUrl() {
      * 
* * string request_url = 2; + * + * @return The bytes for requestUrl. */ - public com.google.protobuf.ByteString - getRequestUrlBytes() { - Object ref = requestUrl_; + public com.google.protobuf.ByteString getRequestUrlBytes() { + java.lang.Object ref = requestUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestUrl_ = b; return b; } else { @@ -1320,6 +1432,8 @@ public String getRequestUrl() { } } /** + * + * *
      * The scheme (http, https), the host name, the path and the query
      * portion of the URL that was requested.
@@ -1327,18 +1441,22 @@ public String getRequestUrl() {
      * 
* * string request_url = 2; + * + * @param value The requestUrl to set. + * @return This builder for chaining. */ - public Builder setRequestUrl( - String value) { + public Builder setRequestUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestUrl_ = value; onChanged(); return this; } /** + * + * *
      * The scheme (http, https), the host name, the path and the query
      * portion of the URL that was requested.
@@ -1346,14 +1464,18 @@ public Builder setRequestUrl(
      * 
* * string request_url = 2; + * + * @return This builder for chaining. */ public Builder clearRequestUrl() { - + requestUrl_ = getDefaultInstance().getRequestUrl(); onChanged(); return this; } /** + * + * *
      * The scheme (http, https), the host name, the path and the query
      * portion of the URL that was requested.
@@ -1361,144 +1483,187 @@ public Builder clearRequestUrl() {
      * 
* * string request_url = 2; + * + * @param value The bytes for requestUrl to set. + * @return This builder for chaining. */ - public Builder setRequestUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestUrl_ = value; onChanged(); return this; } - private long requestSize_ ; + private long requestSize_; /** + * + * *
      * The size of the HTTP request message in bytes, including the request
      * headers and the request body.
      * 
* * int64 request_size = 3; + * + * @return The requestSize. */ public long getRequestSize() { return requestSize_; } /** + * + * *
      * The size of the HTTP request message in bytes, including the request
      * headers and the request body.
      * 
* * int64 request_size = 3; + * + * @param value The requestSize to set. + * @return This builder for chaining. */ public Builder setRequestSize(long value) { - + requestSize_ = value; onChanged(); return this; } /** + * + * *
      * The size of the HTTP request message in bytes, including the request
      * headers and the request body.
      * 
* * int64 request_size = 3; + * + * @return This builder for chaining. */ public Builder clearRequestSize() { - + requestSize_ = 0L; onChanged(); return this; } - private int status_ ; + private int status_; /** + * + * *
      * The response code indicating the status of response.
      * Examples: 200, 404.
      * 
* * int32 status = 4; + * + * @return The status. */ public int getStatus() { return status_; } /** + * + * *
      * The response code indicating the status of response.
      * Examples: 200, 404.
      * 
* * int32 status = 4; + * + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(int value) { - + status_ = value; onChanged(); return this; } /** + * + * *
      * The response code indicating the status of response.
      * Examples: 200, 404.
      * 
* * int32 status = 4; + * + * @return This builder for chaining. */ public Builder clearStatus() { - + status_ = 0; onChanged(); return this; } - private long responseSize_ ; + private long responseSize_; /** + * + * *
      * The size of the HTTP response message sent back to the client, in bytes,
      * including the response headers and the response body.
      * 
* * int64 response_size = 5; + * + * @return The responseSize. */ public long getResponseSize() { return responseSize_; } /** + * + * *
      * The size of the HTTP response message sent back to the client, in bytes,
      * including the response headers and the response body.
      * 
* * int64 response_size = 5; + * + * @param value The responseSize to set. + * @return This builder for chaining. */ public Builder setResponseSize(long value) { - + responseSize_ = value; onChanged(); return this; } /** + * + * *
      * The size of the HTTP response message sent back to the client, in bytes,
      * including the response headers and the response body.
      * 
* * int64 response_size = 5; + * + * @return This builder for chaining. */ public Builder clearResponseSize() { - + responseSize_ = 0L; onChanged(); return this; } - private Object userAgent_ = ""; + private java.lang.Object userAgent_ = ""; /** + * + * *
      * The user agent sent by the client. Example:
      * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
@@ -1506,20 +1671,23 @@ public Builder clearResponseSize() {
      * 
* * string user_agent = 6; + * + * @return The userAgent. */ - public String getUserAgent() { - Object ref = userAgent_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getUserAgent() { + java.lang.Object ref = userAgent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); userAgent_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The user agent sent by the client. Example:
      * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
@@ -1527,14 +1695,14 @@ public String getUserAgent() {
      * 
* * string user_agent = 6; + * + * @return The bytes for userAgent. */ - public com.google.protobuf.ByteString - getUserAgentBytes() { - Object ref = userAgent_; + public com.google.protobuf.ByteString getUserAgentBytes() { + java.lang.Object ref = userAgent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userAgent_ = b; return b; } else { @@ -1542,6 +1710,8 @@ public String getUserAgent() { } } /** + * + * *
      * The user agent sent by the client. Example:
      * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
@@ -1549,18 +1719,22 @@ public String getUserAgent() {
      * 
* * string user_agent = 6; + * + * @param value The userAgent to set. + * @return This builder for chaining. */ - public Builder setUserAgent( - String value) { + public Builder setUserAgent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + userAgent_ = value; onChanged(); return this; } /** + * + * *
      * The user agent sent by the client. Example:
      * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
@@ -1568,14 +1742,18 @@ public Builder setUserAgent(
      * 
* * string user_agent = 6; + * + * @return This builder for chaining. */ public Builder clearUserAgent() { - + userAgent_ = getDefaultInstance().getUserAgent(); onChanged(); return this; } /** + * + * *
      * The user agent sent by the client. Example:
      * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
@@ -1583,55 +1761,62 @@ public Builder clearUserAgent() {
      * 
* * string user_agent = 6; + * + * @param value The bytes for userAgent to set. + * @return This builder for chaining. */ - public Builder setUserAgentBytes( - com.google.protobuf.ByteString value) { + public Builder setUserAgentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userAgent_ = value; onChanged(); return this; } - private Object remoteIp_ = ""; + private java.lang.Object remoteIp_ = ""; /** + * + * *
      * The IP address (IPv4 or IPv6) of the client that issued the HTTP
      * request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
      * 
* * string remote_ip = 7; + * + * @return The remoteIp. */ - public String getRemoteIp() { - Object ref = remoteIp_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getRemoteIp() { + java.lang.Object ref = remoteIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); remoteIp_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The IP address (IPv4 or IPv6) of the client that issued the HTTP
      * request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
      * 
* * string remote_ip = 7; + * + * @return The bytes for remoteIp. */ - public com.google.protobuf.ByteString - getRemoteIpBytes() { - Object ref = remoteIp_; + public com.google.protobuf.ByteString getRemoteIpBytes() { + java.lang.Object ref = remoteIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); remoteIp_ = b; return b; } else { @@ -1639,93 +1824,110 @@ public String getRemoteIp() { } } /** + * + * *
      * The IP address (IPv4 or IPv6) of the client that issued the HTTP
      * request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
      * 
* * string remote_ip = 7; + * + * @param value The remoteIp to set. + * @return This builder for chaining. */ - public Builder setRemoteIp( - String value) { + public Builder setRemoteIp(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + remoteIp_ = value; onChanged(); return this; } /** + * + * *
      * The IP address (IPv4 or IPv6) of the client that issued the HTTP
      * request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
      * 
* * string remote_ip = 7; + * + * @return This builder for chaining. */ public Builder clearRemoteIp() { - + remoteIp_ = getDefaultInstance().getRemoteIp(); onChanged(); return this; } /** + * + * *
      * The IP address (IPv4 or IPv6) of the client that issued the HTTP
      * request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
      * 
* * string remote_ip = 7; + * + * @param value The bytes for remoteIp to set. + * @return This builder for chaining. */ - public Builder setRemoteIpBytes( - com.google.protobuf.ByteString value) { + public Builder setRemoteIpBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + remoteIp_ = value; onChanged(); return this; } - private Object serverIp_ = ""; + private java.lang.Object serverIp_ = ""; /** + * + * *
      * The IP address (IPv4 or IPv6) of the origin server that the request was
      * sent to.
      * 
* * string server_ip = 13; + * + * @return The serverIp. */ - public String getServerIp() { - Object ref = serverIp_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getServerIp() { + java.lang.Object ref = serverIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); serverIp_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The IP address (IPv4 or IPv6) of the origin server that the request was
      * sent to.
      * 
* * string server_ip = 13; + * + * @return The bytes for serverIp. */ - public com.google.protobuf.ByteString - getServerIpBytes() { - Object ref = serverIp_; + public com.google.protobuf.ByteString getServerIpBytes() { + java.lang.Object ref = serverIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serverIp_ = b; return b; } else { @@ -1733,59 +1935,73 @@ public String getServerIp() { } } /** + * + * *
      * The IP address (IPv4 or IPv6) of the origin server that the request was
      * sent to.
      * 
* * string server_ip = 13; + * + * @param value The serverIp to set. + * @return This builder for chaining. */ - public Builder setServerIp( - String value) { + public Builder setServerIp(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serverIp_ = value; onChanged(); return this; } /** + * + * *
      * The IP address (IPv4 or IPv6) of the origin server that the request was
      * sent to.
      * 
* * string server_ip = 13; + * + * @return This builder for chaining. */ public Builder clearServerIp() { - + serverIp_ = getDefaultInstance().getServerIp(); onChanged(); return this; } /** + * + * *
      * The IP address (IPv4 or IPv6) of the origin server that the request was
      * sent to.
      * 
* * string server_ip = 13; + * + * @param value The bytes for serverIp to set. + * @return This builder for chaining. */ - public Builder setServerIpBytes( - com.google.protobuf.ByteString value) { + public Builder setServerIpBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serverIp_ = value; onChanged(); return this; } - private Object referer_ = ""; + private java.lang.Object referer_ = ""; /** + * + * *
      * The referer URL of the request, as defined in
      * [HTTP/1.1 Header Field
@@ -1793,20 +2009,23 @@ public Builder setServerIpBytes(
      * 
* * string referer = 8; + * + * @return The referer. */ - public String getReferer() { - Object ref = referer_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getReferer() { + java.lang.Object ref = referer_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); referer_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The referer URL of the request, as defined in
      * [HTTP/1.1 Header Field
@@ -1814,14 +2033,14 @@ public String getReferer() {
      * 
* * string referer = 8; + * + * @return The bytes for referer. */ - public com.google.protobuf.ByteString - getRefererBytes() { - Object ref = referer_; + public com.google.protobuf.ByteString getRefererBytes() { + java.lang.Object ref = referer_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); referer_ = b; return b; } else { @@ -1829,6 +2048,8 @@ public String getReferer() { } } /** + * + * *
      * The referer URL of the request, as defined in
      * [HTTP/1.1 Header Field
@@ -1836,18 +2057,22 @@ public String getReferer() {
      * 
* * string referer = 8; + * + * @param value The referer to set. + * @return This builder for chaining. */ - public Builder setReferer( - String value) { + public Builder setReferer(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + referer_ = value; onChanged(); return this; } /** + * + * *
      * The referer URL of the request, as defined in
      * [HTTP/1.1 Header Field
@@ -1855,14 +2080,18 @@ public Builder setReferer(
      * 
* * string referer = 8; + * + * @return This builder for chaining. */ public Builder clearReferer() { - + referer_ = getDefaultInstance().getReferer(); onChanged(); return this; } /** + * + * *
      * The referer URL of the request, as defined in
      * [HTTP/1.1 Header Field
@@ -1870,14 +2099,16 @@ public Builder clearReferer() {
      * 
* * string referer = 8; + * + * @param value The bytes for referer to set. + * @return This builder for chaining. */ - public Builder setRefererBytes( - com.google.protobuf.ByteString value) { + public Builder setRefererBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + referer_ = value; onChanged(); return this; @@ -1885,25 +2116,36 @@ public Builder setRefererBytes( private com.google.protobuf.Duration latency_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> latencyBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + latencyBuilder_; /** + * + * *
      * The request processing latency on the server, from the time the request was
      * received until the response was sent.
      * 
* * .google.protobuf.Duration latency = 14; + * + * @return Whether the latency field is set. */ public boolean hasLatency() { return latencyBuilder_ != null || latency_ != null; } /** + * + * *
      * The request processing latency on the server, from the time the request was
      * received until the response was sent.
      * 
* * .google.protobuf.Duration latency = 14; + * + * @return The latency. */ public com.google.protobuf.Duration getLatency() { if (latencyBuilder_ == null) { @@ -1913,6 +2155,8 @@ public com.google.protobuf.Duration getLatency() { } } /** + * + * *
      * The request processing latency on the server, from the time the request was
      * received until the response was sent.
@@ -1934,6 +2178,8 @@ public Builder setLatency(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The request processing latency on the server, from the time the request was
      * received until the response was sent.
@@ -1941,8 +2187,7 @@ public Builder setLatency(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration latency = 14;
      */
-    public Builder setLatency(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setLatency(com.google.protobuf.Duration.Builder builderForValue) {
       if (latencyBuilder_ == null) {
         latency_ = builderForValue.build();
         onChanged();
@@ -1953,6 +2198,8 @@ public Builder setLatency(
       return this;
     }
     /**
+     *
+     *
      * 
      * The request processing latency on the server, from the time the request was
      * received until the response was sent.
@@ -1964,7 +2211,7 @@ public Builder mergeLatency(com.google.protobuf.Duration value) {
       if (latencyBuilder_ == null) {
         if (latency_ != null) {
           latency_ =
-            com.google.protobuf.Duration.newBuilder(latency_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(latency_).mergeFrom(value).buildPartial();
         } else {
           latency_ = value;
         }
@@ -1976,6 +2223,8 @@ public Builder mergeLatency(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The request processing latency on the server, from the time the request was
      * received until the response was sent.
@@ -1995,6 +2244,8 @@ public Builder clearLatency() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The request processing latency on the server, from the time the request was
      * received until the response was sent.
@@ -2003,11 +2254,13 @@ public Builder clearLatency() {
      * .google.protobuf.Duration latency = 14;
      */
     public com.google.protobuf.Duration.Builder getLatencyBuilder() {
-      
+
       onChanged();
       return getLatencyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The request processing latency on the server, from the time the request was
      * received until the response was sent.
@@ -2019,11 +2272,12 @@ public com.google.protobuf.DurationOrBuilder getLatencyOrBuilder() {
       if (latencyBuilder_ != null) {
         return latencyBuilder_.getMessageOrBuilder();
       } else {
-        return latency_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : latency_;
+        return latency_ == null ? com.google.protobuf.Duration.getDefaultInstance() : latency_;
       }
     }
     /**
+     *
+     *
      * 
      * The request processing latency on the server, from the time the request was
      * received until the response was sent.
@@ -2032,100 +2286,131 @@ public com.google.protobuf.DurationOrBuilder getLatencyOrBuilder() {
      * .google.protobuf.Duration latency = 14;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getLatencyFieldBuilder() {
       if (latencyBuilder_ == null) {
-        latencyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getLatency(),
-                getParentForChildren(),
-                isClean());
+        latencyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getLatency(), getParentForChildren(), isClean());
         latency_ = null;
       }
       return latencyBuilder_;
     }
 
-    private boolean cacheLookup_ ;
+    private boolean cacheLookup_;
     /**
+     *
+     *
      * 
      * Whether or not a cache lookup was attempted.
      * 
* * bool cache_lookup = 11; + * + * @return The cacheLookup. */ public boolean getCacheLookup() { return cacheLookup_; } /** + * + * *
      * Whether or not a cache lookup was attempted.
      * 
* * bool cache_lookup = 11; + * + * @param value The cacheLookup to set. + * @return This builder for chaining. */ public Builder setCacheLookup(boolean value) { - + cacheLookup_ = value; onChanged(); return this; } /** + * + * *
      * Whether or not a cache lookup was attempted.
      * 
* * bool cache_lookup = 11; + * + * @return This builder for chaining. */ public Builder clearCacheLookup() { - + cacheLookup_ = false; onChanged(); return this; } - private boolean cacheHit_ ; + private boolean cacheHit_; /** + * + * *
      * Whether or not an entity was served from cache
      * (with or without validation).
      * 
* * bool cache_hit = 9; + * + * @return The cacheHit. */ public boolean getCacheHit() { return cacheHit_; } /** + * + * *
      * Whether or not an entity was served from cache
      * (with or without validation).
      * 
* * bool cache_hit = 9; + * + * @param value The cacheHit to set. + * @return This builder for chaining. */ public Builder setCacheHit(boolean value) { - + cacheHit_ = value; onChanged(); return this; } /** + * + * *
      * Whether or not an entity was served from cache
      * (with or without validation).
      * 
* * bool cache_hit = 9; + * + * @return This builder for chaining. */ public Builder clearCacheHit() { - + cacheHit_ = false; onChanged(); return this; } - private boolean cacheValidatedWithOriginServer_ ; + private boolean cacheValidatedWithOriginServer_; /** + * + * *
      * Whether or not the response was validated with the origin server before
      * being served from cache. This field is only meaningful if `cache_hit` is
@@ -2133,11 +2418,15 @@ public Builder clearCacheHit() {
      * 
* * bool cache_validated_with_origin_server = 10; + * + * @return The cacheValidatedWithOriginServer. */ public boolean getCacheValidatedWithOriginServer() { return cacheValidatedWithOriginServer_; } /** + * + * *
      * Whether or not the response was validated with the origin server before
      * being served from cache. This field is only meaningful if `cache_hit` is
@@ -2145,14 +2434,19 @@ public boolean getCacheValidatedWithOriginServer() {
      * 
* * bool cache_validated_with_origin_server = 10; + * + * @param value The cacheValidatedWithOriginServer to set. + * @return This builder for chaining. */ public Builder setCacheValidatedWithOriginServer(boolean value) { - + cacheValidatedWithOriginServer_ = value; onChanged(); return this; } /** + * + * *
      * Whether or not the response was validated with the origin server before
      * being served from cache. This field is only meaningful if `cache_hit` is
@@ -2160,89 +2454,109 @@ public Builder setCacheValidatedWithOriginServer(boolean value) {
      * 
* * bool cache_validated_with_origin_server = 10; + * + * @return This builder for chaining. */ public Builder clearCacheValidatedWithOriginServer() { - + cacheValidatedWithOriginServer_ = false; onChanged(); return this; } - private long cacheFillBytes_ ; + private long cacheFillBytes_; /** + * + * *
      * The number of HTTP response bytes inserted into cache. Set only when a
      * cache fill was attempted.
      * 
* * int64 cache_fill_bytes = 12; + * + * @return The cacheFillBytes. */ public long getCacheFillBytes() { return cacheFillBytes_; } /** + * + * *
      * The number of HTTP response bytes inserted into cache. Set only when a
      * cache fill was attempted.
      * 
* * int64 cache_fill_bytes = 12; + * + * @param value The cacheFillBytes to set. + * @return This builder for chaining. */ public Builder setCacheFillBytes(long value) { - + cacheFillBytes_ = value; onChanged(); return this; } /** + * + * *
      * The number of HTTP response bytes inserted into cache. Set only when a
      * cache fill was attempted.
      * 
* * int64 cache_fill_bytes = 12; + * + * @return This builder for chaining. */ public Builder clearCacheFillBytes() { - + cacheFillBytes_ = 0L; onChanged(); return this; } - private Object protocol_ = ""; + private java.lang.Object protocol_ = ""; /** + * + * *
      * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
      * 
* * string protocol = 15; + * + * @return The protocol. */ - public String getProtocol() { - Object ref = protocol_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getProtocol() { + java.lang.Object ref = protocol_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); protocol_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
      * 
* * string protocol = 15; + * + * @return The bytes for protocol. */ - public com.google.protobuf.ByteString - getProtocolBytes() { - Object ref = protocol_; + public com.google.protobuf.ByteString getProtocolBytes() { + java.lang.Object ref = protocol_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); protocol_ = b; return b; } else { @@ -2250,103 +2564,113 @@ public String getProtocol() { } } /** + * + * *
      * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
      * 
* * string protocol = 15; + * + * @param value The protocol to set. + * @return This builder for chaining. */ - public Builder setProtocol( - String value) { + public Builder setProtocol(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + protocol_ = value; onChanged(); return this; } /** + * + * *
      * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
      * 
* * string protocol = 15; + * + * @return This builder for chaining. */ public Builder clearProtocol() { - + protocol_ = getDefaultInstance().getProtocol(); onChanged(); return this; } /** + * + * *
      * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
      * 
* * string protocol = 15; + * + * @param value The bytes for protocol to set. + * @return This builder for chaining. */ - public Builder setProtocolBytes( - com.google.protobuf.ByteString value) { + public Builder setProtocolBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + protocol_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.type.HttpRequest) } // @@protoc_insertion_point(class_scope:google.logging.type.HttpRequest) - private static final HttpRequest DEFAULT_INSTANCE; + private static final com.google.logging.type.HttpRequest DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new HttpRequest(); + DEFAULT_INSTANCE = new com.google.logging.type.HttpRequest(); } - public static HttpRequest getDefaultInstance() { + public static com.google.logging.type.HttpRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public HttpRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HttpRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HttpRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HttpRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public HttpRequest getDefaultInstanceForType() { + @java.lang.Override + public com.google.logging.type.HttpRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequestOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequestOrBuilder.java index 600f8f93..7b2fbc35 100644 --- a/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequestOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequestOrBuilder.java @@ -1,31 +1,56 @@ +/* + * 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/logging/type/http_request.proto package com.google.logging.type; -public interface HttpRequestOrBuilder extends +public interface HttpRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.type.HttpRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
    * 
* * string request_method = 1; + * + * @return The requestMethod. */ - String getRequestMethod(); + java.lang.String getRequestMethod(); /** + * + * *
    * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
    * 
* * string request_method = 1; + * + * @return The bytes for requestMethod. */ - com.google.protobuf.ByteString - getRequestMethodBytes(); + com.google.protobuf.ByteString getRequestMethodBytes(); /** + * + * *
    * The scheme (http, https), the host name, the path and the query
    * portion of the URL that was requested.
@@ -33,9 +58,13 @@ public interface HttpRequestOrBuilder extends
    * 
* * string request_url = 2; + * + * @return The requestUrl. */ - String getRequestUrl(); + java.lang.String getRequestUrl(); /** + * + * *
    * The scheme (http, https), the host name, the path and the query
    * portion of the URL that was requested.
@@ -43,41 +72,56 @@ public interface HttpRequestOrBuilder extends
    * 
* * string request_url = 2; + * + * @return The bytes for requestUrl. */ - com.google.protobuf.ByteString - getRequestUrlBytes(); + com.google.protobuf.ByteString getRequestUrlBytes(); /** + * + * *
    * The size of the HTTP request message in bytes, including the request
    * headers and the request body.
    * 
* * int64 request_size = 3; + * + * @return The requestSize. */ long getRequestSize(); /** + * + * *
    * The response code indicating the status of response.
    * Examples: 200, 404.
    * 
* * int32 status = 4; + * + * @return The status. */ int getStatus(); /** + * + * *
    * The size of the HTTP response message sent back to the client, in bytes,
    * including the response headers and the response body.
    * 
* * int64 response_size = 5; + * + * @return The responseSize. */ long getResponseSize(); /** + * + * *
    * The user agent sent by the client. Example:
    * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
@@ -85,9 +129,13 @@ public interface HttpRequestOrBuilder extends
    * 
* * string user_agent = 6; + * + * @return The userAgent. */ - String getUserAgent(); + java.lang.String getUserAgent(); /** + * + * *
    * The user agent sent by the client. Example:
    * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
@@ -95,51 +143,68 @@ public interface HttpRequestOrBuilder extends
    * 
* * string user_agent = 6; + * + * @return The bytes for userAgent. */ - com.google.protobuf.ByteString - getUserAgentBytes(); + com.google.protobuf.ByteString getUserAgentBytes(); /** + * + * *
    * The IP address (IPv4 or IPv6) of the client that issued the HTTP
    * request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
    * 
* * string remote_ip = 7; + * + * @return The remoteIp. */ - String getRemoteIp(); + java.lang.String getRemoteIp(); /** + * + * *
    * The IP address (IPv4 or IPv6) of the client that issued the HTTP
    * request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
    * 
* * string remote_ip = 7; + * + * @return The bytes for remoteIp. */ - com.google.protobuf.ByteString - getRemoteIpBytes(); + com.google.protobuf.ByteString getRemoteIpBytes(); /** + * + * *
    * The IP address (IPv4 or IPv6) of the origin server that the request was
    * sent to.
    * 
* * string server_ip = 13; + * + * @return The serverIp. */ - String getServerIp(); + java.lang.String getServerIp(); /** + * + * *
    * The IP address (IPv4 or IPv6) of the origin server that the request was
    * sent to.
    * 
* * string server_ip = 13; + * + * @return The bytes for serverIp. */ - com.google.protobuf.ByteString - getServerIpBytes(); + com.google.protobuf.ByteString getServerIpBytes(); /** + * + * *
    * The referer URL of the request, as defined in
    * [HTTP/1.1 Header Field
@@ -147,9 +212,13 @@ public interface HttpRequestOrBuilder extends
    * 
* * string referer = 8; + * + * @return The referer. */ - String getReferer(); + java.lang.String getReferer(); /** + * + * *
    * The referer URL of the request, as defined in
    * [HTTP/1.1 Header Field
@@ -157,29 +226,40 @@ public interface HttpRequestOrBuilder extends
    * 
* * string referer = 8; + * + * @return The bytes for referer. */ - com.google.protobuf.ByteString - getRefererBytes(); + com.google.protobuf.ByteString getRefererBytes(); /** + * + * *
    * The request processing latency on the server, from the time the request was
    * received until the response was sent.
    * 
* * .google.protobuf.Duration latency = 14; + * + * @return Whether the latency field is set. */ boolean hasLatency(); /** + * + * *
    * The request processing latency on the server, from the time the request was
    * received until the response was sent.
    * 
* * .google.protobuf.Duration latency = 14; + * + * @return The latency. */ com.google.protobuf.Duration getLatency(); /** + * + * *
    * The request processing latency on the server, from the time the request was
    * received until the response was sent.
@@ -190,25 +270,35 @@ public interface HttpRequestOrBuilder extends
   com.google.protobuf.DurationOrBuilder getLatencyOrBuilder();
 
   /**
+   *
+   *
    * 
    * Whether or not a cache lookup was attempted.
    * 
* * bool cache_lookup = 11; + * + * @return The cacheLookup. */ boolean getCacheLookup(); /** + * + * *
    * Whether or not an entity was served from cache
    * (with or without validation).
    * 
* * bool cache_hit = 9; + * + * @return The cacheHit. */ boolean getCacheHit(); /** + * + * *
    * Whether or not the response was validated with the origin server before
    * being served from cache. This field is only meaningful if `cache_hit` is
@@ -216,34 +306,47 @@ public interface HttpRequestOrBuilder extends
    * 
* * bool cache_validated_with_origin_server = 10; + * + * @return The cacheValidatedWithOriginServer. */ boolean getCacheValidatedWithOriginServer(); /** + * + * *
    * The number of HTTP response bytes inserted into cache. Set only when a
    * cache fill was attempted.
    * 
* * int64 cache_fill_bytes = 12; + * + * @return The cacheFillBytes. */ long getCacheFillBytes(); /** + * + * *
    * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
    * 
* * string protocol = 15; + * + * @return The protocol. */ - String getProtocol(); + java.lang.String getProtocol(); /** + * + * *
    * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
    * 
* * string protocol = 15; + * + * @return The bytes for protocol. */ - com.google.protobuf.ByteString - getProtocolBytes(); + com.google.protobuf.ByteString getProtocolBytes(); } diff --git a/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequestProto.java b/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequestProto.java index f0124bb6..dcc05e05 100644 --- a/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequestProto.java +++ b/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequestProto.java @@ -1,3 +1,18 @@ +/* + * 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/logging/type/http_request.proto @@ -5,67 +20,73 @@ public final class HttpRequestProto { private HttpRequestProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + 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_logging_type_HttpRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_type_HttpRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_logging_type_HttpRequest_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { - String[] descriptorData = { - "\n&google/logging/type/http_request.proto" + - "\022\023google.logging.type\032\036google/protobuf/d" + - "uration.proto\032\034google/api/annotations.pr" + - "oto\"\357\002\n\013HttpRequest\022\026\n\016request_method\030\001 " + - "\001(\t\022\023\n\013request_url\030\002 \001(\t\022\024\n\014request_size" + - "\030\003 \001(\003\022\016\n\006status\030\004 \001(\005\022\025\n\rresponse_size\030" + - "\005 \001(\003\022\022\n\nuser_agent\030\006 \001(\t\022\021\n\tremote_ip\030\007" + - " \001(\t\022\021\n\tserver_ip\030\r \001(\t\022\017\n\007referer\030\010 \001(\t" + - "\022*\n\007latency\030\016 \001(\0132\031.google.protobuf.Dura" + - "tion\022\024\n\014cache_lookup\030\013 \001(\010\022\021\n\tcache_hit\030" + - "\t \001(\010\022*\n\"cache_validated_with_origin_ser" + - "ver\030\n \001(\010\022\030\n\020cache_fill_bytes\030\014 \001(\003\022\020\n\010p" + - "rotocol\030\017 \001(\tB\237\001\n\027com.google.logging.typ" + - "eB\020HttpRequestProtoP\001Z8google.golang.org" + - "/genproto/googleapis/logging/type;ltype\252" + - "\002\031Google.Cloud.Logging.Type\312\002\031Google\\Clo" + - "ud\\Logging\\Typeb\006proto3" + java.lang.String[] descriptorData = { + "\n&google/logging/type/http_request.proto" + + "\022\023google.logging.type\032\036google/protobuf/d" + + "uration.proto\032\034google/api/annotations.pr" + + "oto\"\357\002\n\013HttpRequest\022\026\n\016request_method\030\001 " + + "\001(\t\022\023\n\013request_url\030\002 \001(\t\022\024\n\014request_size" + + "\030\003 \001(\003\022\016\n\006status\030\004 \001(\005\022\025\n\rresponse_size\030" + + "\005 \001(\003\022\022\n\nuser_agent\030\006 \001(\t\022\021\n\tremote_ip\030\007" + + " \001(\t\022\021\n\tserver_ip\030\r \001(\t\022\017\n\007referer\030\010 \001(\t" + + "\022*\n\007latency\030\016 \001(\0132\031.google.protobuf.Dura" + + "tion\022\024\n\014cache_lookup\030\013 \001(\010\022\021\n\tcache_hit\030" + + "\t \001(\010\022*\n\"cache_validated_with_origin_ser" + + "ver\030\n \001(\010\022\030\n\020cache_fill_bytes\030\014 \001(\003\022\020\n\010p" + + "rotocol\030\017 \001(\tB\237\001\n\027com.google.logging.typ" + + "eB\020HttpRequestProtoP\001Z8google.golang.org" + + "/genproto/googleapis/logging/type;ltype\252" + + "\002\031Google.Cloud.Logging.Type\312\002\031Google\\Clo" + + "ud\\Logging\\Typeb\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.DurationProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }, assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DurationProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); internal_static_google_logging_type_HttpRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_logging_type_HttpRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_type_HttpRequest_descriptor, - new String[] { "RequestMethod", "RequestUrl", "RequestSize", "Status", "ResponseSize", "UserAgent", "RemoteIp", "ServerIp", "Referer", "Latency", "CacheLookup", "CacheHit", "CacheValidatedWithOriginServer", "CacheFillBytes", "Protocol", }); + getDescriptor().getMessageTypes().get(0); + internal_static_google_logging_type_HttpRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_type_HttpRequest_descriptor, + new java.lang.String[] { + "RequestMethod", + "RequestUrl", + "RequestSize", + "Status", + "ResponseSize", + "UserAgent", + "RemoteIp", + "ServerIp", + "Referer", + "Latency", + "CacheLookup", + "CacheHit", + "CacheValidatedWithOriginServer", + "CacheFillBytes", + "Protocol", + }); com.google.protobuf.DurationProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); } diff --git a/proto-google-common-protos/src/main/java/com/google/logging/type/LogSeverity.java b/proto-google-common-protos/src/main/java/com/google/logging/type/LogSeverity.java index eb997cf5..6e1118dd 100644 --- a/proto-google-common-protos/src/main/java/com/google/logging/type/LogSeverity.java +++ b/proto-google-common-protos/src/main/java/com/google/logging/type/LogSeverity.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/logging/type/log_severity.proto package com.google.logging.type; /** + * + * *
  * The severity of the event described in a log entry, expressed as one of the
  * standard severity levels listed below.  For your reference, the levels are
@@ -21,9 +38,10 @@
  *
  * Protobuf enum {@code google.logging.type.LogSeverity}
  */
-public enum LogSeverity
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum LogSeverity implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * (0) The log entry has no assigned severity level.
    * 
@@ -32,6 +50,8 @@ public enum LogSeverity */ DEFAULT(0), /** + * + * *
    * (100) Debug or trace information.
    * 
@@ -40,6 +60,8 @@ public enum LogSeverity */ DEBUG(100), /** + * + * *
    * (200) Routine information, such as ongoing status or performance.
    * 
@@ -48,6 +70,8 @@ public enum LogSeverity */ INFO(200), /** + * + * *
    * (300) Normal but significant events, such as start up, shut down, or
    * a configuration change.
@@ -57,6 +81,8 @@ public enum LogSeverity
    */
   NOTICE(300),
   /**
+   *
+   *
    * 
    * (400) Warning events might cause problems.
    * 
@@ -65,6 +91,8 @@ public enum LogSeverity */ WARNING(400), /** + * + * *
    * (500) Error events are likely to cause problems.
    * 
@@ -73,6 +101,8 @@ public enum LogSeverity */ ERROR(500), /** + * + * *
    * (600) Critical events cause more severe problems or outages.
    * 
@@ -81,6 +111,8 @@ public enum LogSeverity */ CRITICAL(600), /** + * + * *
    * (700) A person must take an action immediately.
    * 
@@ -89,6 +121,8 @@ public enum LogSeverity */ ALERT(700), /** + * + * *
    * (800) One or more systems are unusable.
    * 
@@ -100,6 +134,8 @@ public enum LogSeverity ; /** + * + * *
    * (0) The log entry has no assigned severity level.
    * 
@@ -108,6 +144,8 @@ public enum LogSeverity */ public static final int DEFAULT_VALUE = 0; /** + * + * *
    * (100) Debug or trace information.
    * 
@@ -116,6 +154,8 @@ public enum LogSeverity */ public static final int DEBUG_VALUE = 100; /** + * + * *
    * (200) Routine information, such as ongoing status or performance.
    * 
@@ -124,6 +164,8 @@ public enum LogSeverity */ public static final int INFO_VALUE = 200; /** + * + * *
    * (300) Normal but significant events, such as start up, shut down, or
    * a configuration change.
@@ -133,6 +175,8 @@ public enum LogSeverity
    */
   public static final int NOTICE_VALUE = 300;
   /**
+   *
+   *
    * 
    * (400) Warning events might cause problems.
    * 
@@ -141,6 +185,8 @@ public enum LogSeverity */ public static final int WARNING_VALUE = 400; /** + * + * *
    * (500) Error events are likely to cause problems.
    * 
@@ -149,6 +195,8 @@ public enum LogSeverity */ public static final int ERROR_VALUE = 500; /** + * + * *
    * (600) Critical events cause more severe problems or outages.
    * 
@@ -157,6 +205,8 @@ public enum LogSeverity */ public static final int CRITICAL_VALUE = 600; /** + * + * *
    * (700) A person must take an action immediately.
    * 
@@ -165,6 +215,8 @@ public enum LogSeverity */ public static final int ALERT_VALUE = 700; /** + * + * *
    * (800) One or more systems are unusable.
    * 
@@ -173,70 +225,81 @@ public enum LogSeverity */ public static final int EMERGENCY_VALUE = 800; - public final int getNumber() { if (this == UNRECOGNIZED) { - throw new IllegalArgumentException( + throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ - @Deprecated + @java.lang.Deprecated public static LogSeverity valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static LogSeverity forNumber(int value) { switch (value) { - case 0: return DEFAULT; - case 100: return DEBUG; - case 200: return INFO; - case 300: return NOTICE; - case 400: return WARNING; - case 500: return ERROR; - case 600: return CRITICAL; - case 700: return ALERT; - case 800: return EMERGENCY; - default: return null; + case 0: + return DEFAULT; + case 100: + return DEBUG; + case 200: + return INFO; + case 300: + return NOTICE; + case 400: + return WARNING; + case 500: + return ERROR; + case 600: + return CRITICAL; + case 700: + return ALERT; + case 800: + return EMERGENCY; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - LogSeverity> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LogSeverity findValueByNumber(int number) { - return LogSeverity.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LogSeverity findValueByNumber(int number) { + return LogSeverity.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.logging.type.LogSeverityProto.getDescriptor().getEnumTypes().get(0); } private static final LogSeverity[] VALUES = values(); - public static LogSeverity valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static LogSeverity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -252,4 +315,3 @@ private LogSeverity(int value) { // @@protoc_insertion_point(enum_scope:google.logging.type.LogSeverity) } - diff --git a/proto-google-common-protos/src/main/java/com/google/logging/type/LogSeverityProto.java b/proto-google-common-protos/src/main/java/com/google/logging/type/LogSeverityProto.java index 6697d2ca..322793bb 100644 --- a/proto-google-common-protos/src/main/java/com/google/logging/type/LogSeverityProto.java +++ b/proto-google-common-protos/src/main/java/com/google/logging/type/LogSeverityProto.java @@ -1,3 +1,18 @@ +/* + * 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/logging/type/log_severity.proto @@ -5,48 +20,38 @@ public final class LogSeverityProto { private LogSeverityProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { - String[] descriptorData = { - "\n&google/logging/type/log_severity.proto" + - "\022\023google.logging.type\032\034google/api/annota" + - "tions.proto*\202\001\n\013LogSeverity\022\013\n\007DEFAULT\020\000" + - "\022\t\n\005DEBUG\020d\022\t\n\004INFO\020\310\001\022\013\n\006NOTICE\020\254\002\022\014\n\007W" + - "ARNING\020\220\003\022\n\n\005ERROR\020\364\003\022\r\n\010CRITICAL\020\330\004\022\n\n\005" + - "ALERT\020\274\005\022\016\n\tEMERGENCY\020\240\006B\237\001\n\027com.google." + - "logging.typeB\020LogSeverityProtoP\001Z8google" + - ".golang.org/genproto/googleapis/logging/" + - "type;ltype\252\002\031Google.Cloud.Logging.Type\312\002" + - "\031Google\\Cloud\\Logging\\Typeb\006proto3" + java.lang.String[] descriptorData = { + "\n&google/logging/type/log_severity.proto" + + "\022\023google.logging.type\032\034google/api/annota" + + "tions.proto*\202\001\n\013LogSeverity\022\013\n\007DEFAULT\020\000" + + "\022\t\n\005DEBUG\020d\022\t\n\004INFO\020\310\001\022\013\n\006NOTICE\020\254\002\022\014\n\007W" + + "ARNING\020\220\003\022\n\n\005ERROR\020\364\003\022\r\n\010CRITICAL\020\330\004\022\n\n\005" + + "ALERT\020\274\005\022\016\n\tEMERGENCY\020\240\006B\237\001\n\027com.google." + + "logging.typeB\020LogSeverityProtoP\001Z8google" + + ".golang.org/genproto/googleapis/logging/" + + "type;ltype\252\002\031Google.Cloud.Logging.Type\312\002" + + "\031Google\\Cloud\\Logging\\Typeb\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }, assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); com.google.api.AnnotationsProto.getDescriptor(); } diff --git a/proto-google-common-protos/src/main/java/com/google/longrunning/CancelOperationRequest.java b/proto-google-common-protos/src/main/java/com/google/longrunning/CancelOperationRequest.java index 0c9d64ff..c7b048ea 100644 --- a/proto-google-common-protos/src/main/java/com/google/longrunning/CancelOperationRequest.java +++ b/proto-google-common-protos/src/main/java/com/google/longrunning/CancelOperationRequest.java @@ -1,42 +1,65 @@ +/* + * 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/longrunning/operations.proto package com.google.longrunning; /** + * + * *
  * The request message for [Operations.CancelOperation][google.longrunning.Operations.CancelOperation].
  * 
* * Protobuf type {@code google.longrunning.CancelOperationRequest} */ -public final class CancelOperationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CancelOperationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.longrunning.CancelOperationRequest) CancelOperationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CancelOperationRequest.newBuilder() to construct. private CancelOperationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CancelOperationRequest() { name_ = ""; } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CancelOperationRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CancelOperationRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -47,79 +70,87 @@ private CancelOperationRequest( case 0: done = true; break; - case 10: { - String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return OperationsProto.internal_static_google_longrunning_CancelOperationRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_CancelOperationRequest_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return OperationsProto.internal_static_google_longrunning_CancelOperationRequest_fieldAccessorTable + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_CancelOperationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - CancelOperationRequest.class, Builder.class); + com.google.longrunning.CancelOperationRequest.class, + com.google.longrunning.CancelOperationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - private volatile Object name_; + private volatile java.lang.Object name_; /** + * + * *
    * The name of the operation resource to be cancelled.
    * 
* * string name = 1; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the operation resource to be cancelled.
    * 
* * string name = 1; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -128,7 +159,8 @@ public String getName() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -138,16 +170,15 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -161,23 +192,23 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof CancelOperationRequest)) { + if (!(obj instanceof com.google.longrunning.CancelOperationRequest)) { return super.equals(obj); } - CancelOperationRequest other = (CancelOperationRequest) obj; + com.google.longrunning.CancelOperationRequest other = + (com.google.longrunning.CancelOperationRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -191,118 +222,127 @@ public int hashCode() { return hash; } - public static CancelOperationRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.longrunning.CancelOperationRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static CancelOperationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.longrunning.CancelOperationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static CancelOperationRequest parseFrom( + + public static com.google.longrunning.CancelOperationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static CancelOperationRequest parseFrom( + + public static com.google.longrunning.CancelOperationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static CancelOperationRequest parseFrom(byte[] data) + + public static com.google.longrunning.CancelOperationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static CancelOperationRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.longrunning.CancelOperationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static CancelOperationRequest parseFrom(java.io.InputStream input) + + public static com.google.longrunning.CancelOperationRequest 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 CancelOperationRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.longrunning.CancelOperationRequest parseFrom( + 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 CancelOperationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.longrunning.CancelOperationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static CancelOperationRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.longrunning.CancelOperationRequest parseDelimitedFrom( + 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 CancelOperationRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.longrunning.CancelOperationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static CancelOperationRequest parseFrom( + + public static com.google.longrunning.CancelOperationRequest 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(CancelOperationRequest prototype) { + + public static Builder newBuilder(com.google.longrunning.CancelOperationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message for [Operations.CancelOperation][google.longrunning.Operations.CancelOperation].
    * 
* * Protobuf type {@code google.longrunning.CancelOperationRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.longrunning.CancelOperationRequest) com.google.longrunning.CancelOperationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return OperationsProto.internal_static_google_longrunning_CancelOperationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_CancelOperationRequest_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return OperationsProto.internal_static_google_longrunning_CancelOperationRequest_fieldAccessorTable + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_CancelOperationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - CancelOperationRequest.class, Builder.class); + com.google.longrunning.CancelOperationRequest.class, + com.google.longrunning.CancelOperationRequest.Builder.class); } // Construct using com.google.longrunning.CancelOperationRequest.newBuilder() @@ -310,17 +350,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @Override + + @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -328,78 +367,80 @@ public Builder clear() { return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return OperationsProto.internal_static_google_longrunning_CancelOperationRequest_descriptor; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_CancelOperationRequest_descriptor; } - @Override - public CancelOperationRequest getDefaultInstanceForType() { - return CancelOperationRequest.getDefaultInstance(); + @java.lang.Override + public com.google.longrunning.CancelOperationRequest getDefaultInstanceForType() { + return com.google.longrunning.CancelOperationRequest.getDefaultInstance(); } - @Override - public CancelOperationRequest build() { - CancelOperationRequest result = buildPartial(); + @java.lang.Override + public com.google.longrunning.CancelOperationRequest build() { + com.google.longrunning.CancelOperationRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public CancelOperationRequest buildPartial() { - CancelOperationRequest result = new CancelOperationRequest(this); + @java.lang.Override + public com.google.longrunning.CancelOperationRequest buildPartial() { + com.google.longrunning.CancelOperationRequest result = + new com.google.longrunning.CancelOperationRequest(this); result.name_ = name_; onBuilt(); return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof CancelOperationRequest) { - return mergeFrom((CancelOperationRequest)other); + if (other instanceof com.google.longrunning.CancelOperationRequest) { + return mergeFrom((com.google.longrunning.CancelOperationRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(CancelOperationRequest other) { - if (other == CancelOperationRequest.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.longrunning.CancelOperationRequest other) { + if (other == com.google.longrunning.CancelOperationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -409,21 +450,21 @@ public Builder mergeFrom(CancelOperationRequest other) { return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - CancelOperationRequest parsedMessage = null; + com.google.longrunning.CancelOperationRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (CancelOperationRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.longrunning.CancelOperationRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -433,40 +474,45 @@ public Builder mergeFrom( return this; } - private Object name_ = ""; + private java.lang.Object name_ = ""; /** + * + * *
      * The name of the operation resource to be cancelled.
      * 
* * string name = 1; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The name of the operation resource to be cancelled.
      * 
* * string name = 1; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -474,103 +520,113 @@ public String getName() { } } /** + * + * *
      * The name of the operation resource to be cancelled.
      * 
* * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ - public Builder setName( - String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The name of the operation resource to be cancelled.
      * 
* * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The name of the operation resource to be cancelled.
      * 
* * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.longrunning.CancelOperationRequest) } // @@protoc_insertion_point(class_scope:google.longrunning.CancelOperationRequest) - private static final CancelOperationRequest DEFAULT_INSTANCE; + private static final com.google.longrunning.CancelOperationRequest DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new CancelOperationRequest(); + DEFAULT_INSTANCE = new com.google.longrunning.CancelOperationRequest(); } - public static CancelOperationRequest getDefaultInstance() { + public static com.google.longrunning.CancelOperationRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public CancelOperationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CancelOperationRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CancelOperationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CancelOperationRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public CancelOperationRequest getDefaultInstanceForType() { + @java.lang.Override + public com.google.longrunning.CancelOperationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/longrunning/CancelOperationRequestOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/longrunning/CancelOperationRequestOrBuilder.java index a42886a8..6dbf21a0 100644 --- a/proto-google-common-protos/src/main/java/com/google/longrunning/CancelOperationRequestOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/longrunning/CancelOperationRequestOrBuilder.java @@ -1,27 +1,50 @@ +/* + * 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/longrunning/operations.proto package com.google.longrunning; -public interface CancelOperationRequestOrBuilder extends +public interface CancelOperationRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.longrunning.CancelOperationRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the operation resource to be cancelled.
    * 
* * string name = 1; + * + * @return The name. */ - String getName(); + java.lang.String getName(); /** + * + * *
    * The name of the operation resource to be cancelled.
    * 
* * string name = 1; + * + * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-common-protos/src/main/java/com/google/longrunning/DeleteOperationRequest.java b/proto-google-common-protos/src/main/java/com/google/longrunning/DeleteOperationRequest.java index f89e69b4..9e1e6175 100644 --- a/proto-google-common-protos/src/main/java/com/google/longrunning/DeleteOperationRequest.java +++ b/proto-google-common-protos/src/main/java/com/google/longrunning/DeleteOperationRequest.java @@ -1,42 +1,65 @@ +/* + * 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/longrunning/operations.proto package com.google.longrunning; /** + * + * *
  * The request message for [Operations.DeleteOperation][google.longrunning.Operations.DeleteOperation].
  * 
* * Protobuf type {@code google.longrunning.DeleteOperationRequest} */ -public final class DeleteOperationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteOperationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.longrunning.DeleteOperationRequest) DeleteOperationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteOperationRequest.newBuilder() to construct. private DeleteOperationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteOperationRequest() { name_ = ""; } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteOperationRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteOperationRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -47,79 +70,87 @@ private DeleteOperationRequest( case 0: done = true; break; - case 10: { - String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return OperationsProto.internal_static_google_longrunning_DeleteOperationRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_DeleteOperationRequest_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return OperationsProto.internal_static_google_longrunning_DeleteOperationRequest_fieldAccessorTable + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_DeleteOperationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - DeleteOperationRequest.class, Builder.class); + com.google.longrunning.DeleteOperationRequest.class, + com.google.longrunning.DeleteOperationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - private volatile Object name_; + private volatile java.lang.Object name_; /** + * + * *
    * The name of the operation resource to be deleted.
    * 
* * string name = 1; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the operation resource to be deleted.
    * 
* * string name = 1; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -128,7 +159,8 @@ public String getName() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -138,16 +170,15 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -161,23 +192,23 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof DeleteOperationRequest)) { + if (!(obj instanceof com.google.longrunning.DeleteOperationRequest)) { return super.equals(obj); } - DeleteOperationRequest other = (DeleteOperationRequest) obj; + com.google.longrunning.DeleteOperationRequest other = + (com.google.longrunning.DeleteOperationRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -191,118 +222,127 @@ public int hashCode() { return hash; } - public static DeleteOperationRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.longrunning.DeleteOperationRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static DeleteOperationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.longrunning.DeleteOperationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static DeleteOperationRequest parseFrom( + + public static com.google.longrunning.DeleteOperationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static DeleteOperationRequest parseFrom( + + public static com.google.longrunning.DeleteOperationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static DeleteOperationRequest parseFrom(byte[] data) + + public static com.google.longrunning.DeleteOperationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static DeleteOperationRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.longrunning.DeleteOperationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static DeleteOperationRequest parseFrom(java.io.InputStream input) + + public static com.google.longrunning.DeleteOperationRequest 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 DeleteOperationRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.longrunning.DeleteOperationRequest parseFrom( + 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 DeleteOperationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.longrunning.DeleteOperationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static DeleteOperationRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.longrunning.DeleteOperationRequest parseDelimitedFrom( + 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 DeleteOperationRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.longrunning.DeleteOperationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static DeleteOperationRequest parseFrom( + + public static com.google.longrunning.DeleteOperationRequest 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(DeleteOperationRequest prototype) { + + public static Builder newBuilder(com.google.longrunning.DeleteOperationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message for [Operations.DeleteOperation][google.longrunning.Operations.DeleteOperation].
    * 
* * Protobuf type {@code google.longrunning.DeleteOperationRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.longrunning.DeleteOperationRequest) com.google.longrunning.DeleteOperationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return OperationsProto.internal_static_google_longrunning_DeleteOperationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_DeleteOperationRequest_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return OperationsProto.internal_static_google_longrunning_DeleteOperationRequest_fieldAccessorTable + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_DeleteOperationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - DeleteOperationRequest.class, Builder.class); + com.google.longrunning.DeleteOperationRequest.class, + com.google.longrunning.DeleteOperationRequest.Builder.class); } // Construct using com.google.longrunning.DeleteOperationRequest.newBuilder() @@ -310,17 +350,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @Override + + @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -328,78 +367,80 @@ public Builder clear() { return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return OperationsProto.internal_static_google_longrunning_DeleteOperationRequest_descriptor; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_DeleteOperationRequest_descriptor; } - @Override - public DeleteOperationRequest getDefaultInstanceForType() { - return DeleteOperationRequest.getDefaultInstance(); + @java.lang.Override + public com.google.longrunning.DeleteOperationRequest getDefaultInstanceForType() { + return com.google.longrunning.DeleteOperationRequest.getDefaultInstance(); } - @Override - public DeleteOperationRequest build() { - DeleteOperationRequest result = buildPartial(); + @java.lang.Override + public com.google.longrunning.DeleteOperationRequest build() { + com.google.longrunning.DeleteOperationRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public DeleteOperationRequest buildPartial() { - DeleteOperationRequest result = new DeleteOperationRequest(this); + @java.lang.Override + public com.google.longrunning.DeleteOperationRequest buildPartial() { + com.google.longrunning.DeleteOperationRequest result = + new com.google.longrunning.DeleteOperationRequest(this); result.name_ = name_; onBuilt(); return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof DeleteOperationRequest) { - return mergeFrom((DeleteOperationRequest)other); + if (other instanceof com.google.longrunning.DeleteOperationRequest) { + return mergeFrom((com.google.longrunning.DeleteOperationRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(DeleteOperationRequest other) { - if (other == DeleteOperationRequest.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.longrunning.DeleteOperationRequest other) { + if (other == com.google.longrunning.DeleteOperationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -409,21 +450,21 @@ public Builder mergeFrom(DeleteOperationRequest other) { return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - DeleteOperationRequest parsedMessage = null; + com.google.longrunning.DeleteOperationRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (DeleteOperationRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.longrunning.DeleteOperationRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -433,40 +474,45 @@ public Builder mergeFrom( return this; } - private Object name_ = ""; + private java.lang.Object name_ = ""; /** + * + * *
      * The name of the operation resource to be deleted.
      * 
* * string name = 1; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The name of the operation resource to be deleted.
      * 
* * string name = 1; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -474,103 +520,113 @@ public String getName() { } } /** + * + * *
      * The name of the operation resource to be deleted.
      * 
* * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ - public Builder setName( - String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The name of the operation resource to be deleted.
      * 
* * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The name of the operation resource to be deleted.
      * 
* * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.longrunning.DeleteOperationRequest) } // @@protoc_insertion_point(class_scope:google.longrunning.DeleteOperationRequest) - private static final DeleteOperationRequest DEFAULT_INSTANCE; + private static final com.google.longrunning.DeleteOperationRequest DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new DeleteOperationRequest(); + DEFAULT_INSTANCE = new com.google.longrunning.DeleteOperationRequest(); } - public static DeleteOperationRequest getDefaultInstance() { + public static com.google.longrunning.DeleteOperationRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public DeleteOperationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteOperationRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteOperationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteOperationRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public DeleteOperationRequest getDefaultInstanceForType() { + @java.lang.Override + public com.google.longrunning.DeleteOperationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/longrunning/DeleteOperationRequestOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/longrunning/DeleteOperationRequestOrBuilder.java index 2674ede9..3d39fee2 100644 --- a/proto-google-common-protos/src/main/java/com/google/longrunning/DeleteOperationRequestOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/longrunning/DeleteOperationRequestOrBuilder.java @@ -1,27 +1,50 @@ +/* + * 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/longrunning/operations.proto package com.google.longrunning; -public interface DeleteOperationRequestOrBuilder extends +public interface DeleteOperationRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.longrunning.DeleteOperationRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the operation resource to be deleted.
    * 
* * string name = 1; + * + * @return The name. */ - String getName(); + java.lang.String getName(); /** + * + * *
    * The name of the operation resource to be deleted.
    * 
* * string name = 1; + * + * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-common-protos/src/main/java/com/google/longrunning/GetOperationRequest.java b/proto-google-common-protos/src/main/java/com/google/longrunning/GetOperationRequest.java index 18f40efb..89f675bd 100644 --- a/proto-google-common-protos/src/main/java/com/google/longrunning/GetOperationRequest.java +++ b/proto-google-common-protos/src/main/java/com/google/longrunning/GetOperationRequest.java @@ -1,42 +1,65 @@ +/* + * 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/longrunning/operations.proto package com.google.longrunning; /** + * + * *
  * The request message for [Operations.GetOperation][google.longrunning.Operations.GetOperation].
  * 
* * Protobuf type {@code google.longrunning.GetOperationRequest} */ -public final class GetOperationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetOperationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.longrunning.GetOperationRequest) GetOperationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetOperationRequest.newBuilder() to construct. private GetOperationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetOperationRequest() { name_ = ""; } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetOperationRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetOperationRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -47,79 +70,87 @@ private GetOperationRequest( case 0: done = true; break; - case 10: { - String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return OperationsProto.internal_static_google_longrunning_GetOperationRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_GetOperationRequest_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return OperationsProto.internal_static_google_longrunning_GetOperationRequest_fieldAccessorTable + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_GetOperationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - GetOperationRequest.class, Builder.class); + com.google.longrunning.GetOperationRequest.class, + com.google.longrunning.GetOperationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - private volatile Object name_; + private volatile java.lang.Object name_; /** + * + * *
    * The name of the operation resource.
    * 
* * string name = 1; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the operation resource.
    * 
* * string name = 1; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -128,7 +159,8 @@ public String getName() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -138,16 +170,15 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -161,23 +192,23 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof GetOperationRequest)) { + if (!(obj instanceof com.google.longrunning.GetOperationRequest)) { return super.equals(obj); } - GetOperationRequest other = (GetOperationRequest) obj; + com.google.longrunning.GetOperationRequest other = + (com.google.longrunning.GetOperationRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -191,118 +222,127 @@ public int hashCode() { return hash; } - public static GetOperationRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.longrunning.GetOperationRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static GetOperationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.longrunning.GetOperationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static GetOperationRequest parseFrom( + + public static com.google.longrunning.GetOperationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static GetOperationRequest parseFrom( + + public static com.google.longrunning.GetOperationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static GetOperationRequest parseFrom(byte[] data) + + public static com.google.longrunning.GetOperationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static GetOperationRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.longrunning.GetOperationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static GetOperationRequest parseFrom(java.io.InputStream input) + + public static com.google.longrunning.GetOperationRequest 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 GetOperationRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.longrunning.GetOperationRequest parseFrom( + 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 GetOperationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.longrunning.GetOperationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static GetOperationRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.longrunning.GetOperationRequest parseDelimitedFrom( + 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 GetOperationRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.longrunning.GetOperationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static GetOperationRequest parseFrom( + + public static com.google.longrunning.GetOperationRequest 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(GetOperationRequest prototype) { + + public static Builder newBuilder(com.google.longrunning.GetOperationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message for [Operations.GetOperation][google.longrunning.Operations.GetOperation].
    * 
* * Protobuf type {@code google.longrunning.GetOperationRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.longrunning.GetOperationRequest) com.google.longrunning.GetOperationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return OperationsProto.internal_static_google_longrunning_GetOperationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_GetOperationRequest_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return OperationsProto.internal_static_google_longrunning_GetOperationRequest_fieldAccessorTable + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_GetOperationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - GetOperationRequest.class, Builder.class); + com.google.longrunning.GetOperationRequest.class, + com.google.longrunning.GetOperationRequest.Builder.class); } // Construct using com.google.longrunning.GetOperationRequest.newBuilder() @@ -310,17 +350,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @Override + + @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -328,78 +367,80 @@ public Builder clear() { return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return OperationsProto.internal_static_google_longrunning_GetOperationRequest_descriptor; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_GetOperationRequest_descriptor; } - @Override - public GetOperationRequest getDefaultInstanceForType() { - return GetOperationRequest.getDefaultInstance(); + @java.lang.Override + public com.google.longrunning.GetOperationRequest getDefaultInstanceForType() { + return com.google.longrunning.GetOperationRequest.getDefaultInstance(); } - @Override - public GetOperationRequest build() { - GetOperationRequest result = buildPartial(); + @java.lang.Override + public com.google.longrunning.GetOperationRequest build() { + com.google.longrunning.GetOperationRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public GetOperationRequest buildPartial() { - GetOperationRequest result = new GetOperationRequest(this); + @java.lang.Override + public com.google.longrunning.GetOperationRequest buildPartial() { + com.google.longrunning.GetOperationRequest result = + new com.google.longrunning.GetOperationRequest(this); result.name_ = name_; onBuilt(); return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof GetOperationRequest) { - return mergeFrom((GetOperationRequest)other); + if (other instanceof com.google.longrunning.GetOperationRequest) { + return mergeFrom((com.google.longrunning.GetOperationRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(GetOperationRequest other) { - if (other == GetOperationRequest.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.longrunning.GetOperationRequest other) { + if (other == com.google.longrunning.GetOperationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -409,21 +450,21 @@ public Builder mergeFrom(GetOperationRequest other) { return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - GetOperationRequest parsedMessage = null; + com.google.longrunning.GetOperationRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (GetOperationRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.longrunning.GetOperationRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -433,40 +474,45 @@ public Builder mergeFrom( return this; } - private Object name_ = ""; + private java.lang.Object name_ = ""; /** + * + * *
      * The name of the operation resource.
      * 
* * string name = 1; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The name of the operation resource.
      * 
* * string name = 1; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -474,103 +520,113 @@ public String getName() { } } /** + * + * *
      * The name of the operation resource.
      * 
* * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ - public Builder setName( - String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The name of the operation resource.
      * 
* * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The name of the operation resource.
      * 
* * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.longrunning.GetOperationRequest) } // @@protoc_insertion_point(class_scope:google.longrunning.GetOperationRequest) - private static final GetOperationRequest DEFAULT_INSTANCE; + private static final com.google.longrunning.GetOperationRequest DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new GetOperationRequest(); + DEFAULT_INSTANCE = new com.google.longrunning.GetOperationRequest(); } - public static GetOperationRequest getDefaultInstance() { + public static com.google.longrunning.GetOperationRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public GetOperationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetOperationRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOperationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetOperationRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public GetOperationRequest getDefaultInstanceForType() { + @java.lang.Override + public com.google.longrunning.GetOperationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/longrunning/GetOperationRequestOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/longrunning/GetOperationRequestOrBuilder.java index 27ba1c62..fb60fb1f 100644 --- a/proto-google-common-protos/src/main/java/com/google/longrunning/GetOperationRequestOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/longrunning/GetOperationRequestOrBuilder.java @@ -1,27 +1,50 @@ +/* + * 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/longrunning/operations.proto package com.google.longrunning; -public interface GetOperationRequestOrBuilder extends +public interface GetOperationRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.longrunning.GetOperationRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the operation resource.
    * 
* * string name = 1; + * + * @return The name. */ - String getName(); + java.lang.String getName(); /** + * + * *
    * The name of the operation resource.
    * 
* * string name = 1; + * + * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsRequest.java b/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsRequest.java index e27e3ae1..f37b3a67 100644 --- a/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsRequest.java +++ b/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsRequest.java @@ -1,44 +1,67 @@ +/* + * 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/longrunning/operations.proto package com.google.longrunning; /** + * + * *
  * The request message for [Operations.ListOperations][google.longrunning.Operations.ListOperations].
  * 
* * Protobuf type {@code google.longrunning.ListOperationsRequest} */ -public final class ListOperationsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListOperationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.longrunning.ListOperationsRequest) ListOperationsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListOperationsRequest.newBuilder() to construct. private ListOperationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListOperationsRequest() { name_ = ""; filter_ = ""; pageToken_ = ""; } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListOperationsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListOperationsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -49,96 +72,106 @@ private ListOperationsRequest( case 0: done = true; break; - case 10: { - String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return OperationsProto.internal_static_google_longrunning_ListOperationsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_ListOperationsRequest_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return OperationsProto.internal_static_google_longrunning_ListOperationsRequest_fieldAccessorTable + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_ListOperationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - ListOperationsRequest.class, Builder.class); + com.google.longrunning.ListOperationsRequest.class, + com.google.longrunning.ListOperationsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 4; - private volatile Object name_; + private volatile java.lang.Object name_; /** + * + * *
    * The name of the operation's parent resource.
    * 
* * string name = 4; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the operation's parent resource.
    * 
* * string name = 4; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -147,40 +180,45 @@ public String getName() { } public static final int FILTER_FIELD_NUMBER = 1; - private volatile Object filter_; + private volatile java.lang.Object filter_; /** + * + * *
    * The standard list filter.
    * 
* * string filter = 1; + * + * @return The filter. */ - public String getFilter() { - Object ref = filter_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * The standard list filter.
    * 
* * string filter = 1; + * + * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { - Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -191,51 +229,60 @@ public String getFilter() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The standard list page size.
    * 
* * int32 page_size = 2; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile Object pageToken_; + private volatile java.lang.Object pageToken_; /** + * + * *
    * The standard list page token.
    * 
* * string page_token = 3; + * + * @return The pageToken. */ - public String getPageToken() { - Object ref = pageToken_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The standard list page token.
    * 
* * string page_token = 3; + * + * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -244,7 +291,8 @@ public String getPageToken() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -254,9 +302,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getFilterBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filter_); } @@ -272,7 +319,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -282,8 +329,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!getPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -296,29 +342,26 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof ListOperationsRequest)) { + if (!(obj instanceof com.google.longrunning.ListOperationsRequest)) { return super.equals(obj); } - ListOperationsRequest other = (ListOperationsRequest) obj; + com.google.longrunning.ListOperationsRequest other = + (com.google.longrunning.ListOperationsRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getName().equals(other.getName())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -338,118 +381,127 @@ public int hashCode() { return hash; } - public static ListOperationsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.longrunning.ListOperationsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static ListOperationsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.longrunning.ListOperationsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static ListOperationsRequest parseFrom( + + public static com.google.longrunning.ListOperationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static ListOperationsRequest parseFrom( + + public static com.google.longrunning.ListOperationsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static ListOperationsRequest parseFrom(byte[] data) + + public static com.google.longrunning.ListOperationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static ListOperationsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.longrunning.ListOperationsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static ListOperationsRequest parseFrom(java.io.InputStream input) + + public static com.google.longrunning.ListOperationsRequest 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 ListOperationsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.longrunning.ListOperationsRequest parseFrom( + 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 ListOperationsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.longrunning.ListOperationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static ListOperationsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.longrunning.ListOperationsRequest parseDelimitedFrom( + 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 ListOperationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.longrunning.ListOperationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static ListOperationsRequest parseFrom( + + public static com.google.longrunning.ListOperationsRequest 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(ListOperationsRequest prototype) { + + public static Builder newBuilder(com.google.longrunning.ListOperationsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message for [Operations.ListOperations][google.longrunning.Operations.ListOperations].
    * 
* * Protobuf type {@code google.longrunning.ListOperationsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.longrunning.ListOperationsRequest) com.google.longrunning.ListOperationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return OperationsProto.internal_static_google_longrunning_ListOperationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_ListOperationsRequest_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return OperationsProto.internal_static_google_longrunning_ListOperationsRequest_fieldAccessorTable + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_ListOperationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - ListOperationsRequest.class, Builder.class); + com.google.longrunning.ListOperationsRequest.class, + com.google.longrunning.ListOperationsRequest.Builder.class); } // Construct using com.google.longrunning.ListOperationsRequest.newBuilder() @@ -457,17 +509,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @Override + + @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -481,29 +532,30 @@ public Builder clear() { return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return OperationsProto.internal_static_google_longrunning_ListOperationsRequest_descriptor; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_ListOperationsRequest_descriptor; } - @Override - public ListOperationsRequest getDefaultInstanceForType() { - return ListOperationsRequest.getDefaultInstance(); + @java.lang.Override + public com.google.longrunning.ListOperationsRequest getDefaultInstanceForType() { + return com.google.longrunning.ListOperationsRequest.getDefaultInstance(); } - @Override - public ListOperationsRequest build() { - ListOperationsRequest result = buildPartial(); + @java.lang.Override + public com.google.longrunning.ListOperationsRequest build() { + com.google.longrunning.ListOperationsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public ListOperationsRequest buildPartial() { - ListOperationsRequest result = new ListOperationsRequest(this); + @java.lang.Override + public com.google.longrunning.ListOperationsRequest buildPartial() { + com.google.longrunning.ListOperationsRequest result = + new com.google.longrunning.ListOperationsRequest(this); result.name_ = name_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -512,50 +564,51 @@ public ListOperationsRequest buildPartial() { return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ListOperationsRequest) { - return mergeFrom((ListOperationsRequest)other); + if (other instanceof com.google.longrunning.ListOperationsRequest) { + return mergeFrom((com.google.longrunning.ListOperationsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(ListOperationsRequest other) { - if (other == ListOperationsRequest.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.longrunning.ListOperationsRequest other) { + if (other == com.google.longrunning.ListOperationsRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -576,21 +629,21 @@ public Builder mergeFrom(ListOperationsRequest other) { return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - ListOperationsRequest parsedMessage = null; + com.google.longrunning.ListOperationsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ListOperationsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.longrunning.ListOperationsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -600,40 +653,45 @@ public Builder mergeFrom( return this; } - private Object name_ = ""; + private java.lang.Object name_ = ""; /** + * + * *
      * The name of the operation's parent resource.
      * 
* * string name = 4; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The name of the operation's parent resource.
      * 
* * string name = 4; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -641,88 +699,105 @@ public String getName() { } } /** + * + * *
      * The name of the operation's parent resource.
      * 
* * string name = 4; + * + * @param value The name to set. + * @return This builder for chaining. */ - public Builder setName( - String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The name of the operation's parent resource.
      * 
* * string name = 4; + * + * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The name of the operation's parent resource.
      * 
* * string name = 4; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private Object filter_ = ""; + private java.lang.Object filter_ = ""; /** + * + * *
      * The standard list filter.
      * 
* * string filter = 1; + * + * @return The filter. */ - public String getFilter() { - Object ref = filter_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The standard list filter.
      * 
* * string filter = 1; + * + * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { - Object ref = filter_; + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -730,126 +805,156 @@ public String getFilter() { } } /** + * + * *
      * The standard list filter.
      * 
* * string filter = 1; + * + * @param value The filter to set. + * @return This builder for chaining. */ - public Builder setFilter( - String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * The standard list filter.
      * 
* * string filter = 1; + * + * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * The standard list filter.
      * 
* * string filter = 1; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The standard list page size.
      * 
* * int32 page_size = 2; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; } /** + * + * *
      * The standard list page size.
      * 
* * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The standard list page size.
      * 
* * int32 page_size = 2; + * + * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - private Object pageToken_ = ""; + private java.lang.Object pageToken_ = ""; /** + * + * *
      * The standard list page token.
      * 
* * string page_token = 3; + * + * @return The pageToken. */ - public String getPageToken() { - Object ref = pageToken_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The standard list page token.
      * 
* * string page_token = 3; + * + * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - Object ref = pageToken_; + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -857,103 +962,113 @@ public String getPageToken() { } } /** + * + * *
      * The standard list page token.
      * 
* * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. */ - public Builder setPageToken( - String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The standard list page token.
      * 
* * string page_token = 3; + * + * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The standard list page token.
      * 
* * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.longrunning.ListOperationsRequest) } // @@protoc_insertion_point(class_scope:google.longrunning.ListOperationsRequest) - private static final ListOperationsRequest DEFAULT_INSTANCE; + private static final com.google.longrunning.ListOperationsRequest DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new ListOperationsRequest(); + DEFAULT_INSTANCE = new com.google.longrunning.ListOperationsRequest(); } - public static ListOperationsRequest getDefaultInstance() { + public static com.google.longrunning.ListOperationsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public ListOperationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListOperationsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOperationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListOperationsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public ListOperationsRequest getDefaultInstanceForType() { + @java.lang.Override + public com.google.longrunning.ListOperationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsRequestOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsRequestOrBuilder.java index 194fe787..1b2dbeea 100644 --- a/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsRequestOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsRequestOrBuilder.java @@ -1,72 +1,113 @@ +/* + * 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/longrunning/operations.proto package com.google.longrunning; -public interface ListOperationsRequestOrBuilder extends +public interface ListOperationsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.longrunning.ListOperationsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the operation's parent resource.
    * 
* * string name = 4; + * + * @return The name. */ - String getName(); + java.lang.String getName(); /** + * + * *
    * The name of the operation's parent resource.
    * 
* * string name = 4; + * + * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The standard list filter.
    * 
* * string filter = 1; + * + * @return The filter. */ - String getFilter(); + java.lang.String getFilter(); /** + * + * *
    * The standard list filter.
    * 
* * string filter = 1; + * + * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * The standard list page size.
    * 
* * int32 page_size = 2; + * + * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The standard list page token.
    * 
* * string page_token = 3; + * + * @return The pageToken. */ - String getPageToken(); + java.lang.String getPageToken(); /** + * + * *
    * The standard list page token.
    * 
* * string page_token = 3; + * + * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsResponse.java b/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsResponse.java index 3d5c21b1..60243e84 100644 --- a/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsResponse.java +++ b/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsResponse.java @@ -1,41 +1,65 @@ +/* + * 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/longrunning/operations.proto package com.google.longrunning; /** + * + * *
  * The response message for [Operations.ListOperations][google.longrunning.Operations.ListOperations].
  * 
* * Protobuf type {@code google.longrunning.ListOperationsResponse} */ -public final class ListOperationsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListOperationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.longrunning.ListOperationsResponse) ListOperationsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListOperationsResponse.newBuilder() to construct. private ListOperationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListOperationsResponse() { operations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListOperationsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListOperationsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = @@ -48,35 +72,36 @@ private ListOperationsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - operations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + operations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + operations_.add( + input.readMessage(com.google.longrunning.Operation.parser(), extensionRegistry)); + break; } - operations_.add( - input.readMessage(Operation.parser(), extensionRegistry)); - break; - } - case 18: { - String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { operations_ = java.util.Collections.unmodifiableList(operations_); @@ -85,44 +110,52 @@ private ListOperationsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return OperationsProto.internal_static_google_longrunning_ListOperationsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_ListOperationsResponse_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return OperationsProto.internal_static_google_longrunning_ListOperationsResponse_fieldAccessorTable + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_ListOperationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - ListOperationsResponse.class, Builder.class); + com.google.longrunning.ListOperationsResponse.class, + com.google.longrunning.ListOperationsResponse.Builder.class); } - private int bitField0_; public static final int OPERATIONS_FIELD_NUMBER = 1; - private java.util.List operations_; + private java.util.List operations_; /** + * + * *
    * A list of operations that matches the specified filter in the request.
    * 
* * repeated .google.longrunning.Operation operations = 1; */ - public java.util.List getOperationsList() { + public java.util.List getOperationsList() { return operations_; } /** + * + * *
    * A list of operations that matches the specified filter in the request.
    * 
* * repeated .google.longrunning.Operation operations = 1; */ - public java.util.List + public java.util.List getOperationsOrBuilderList() { return operations_; } /** + * + * *
    * A list of operations that matches the specified filter in the request.
    * 
@@ -133,62 +166,70 @@ public int getOperationsCount() { return operations_.size(); } /** + * + * *
    * A list of operations that matches the specified filter in the request.
    * 
* * repeated .google.longrunning.Operation operations = 1; */ - public Operation getOperations(int index) { + public com.google.longrunning.Operation getOperations(int index) { return operations_.get(index); } /** + * + * *
    * A list of operations that matches the specified filter in the request.
    * 
* * repeated .google.longrunning.Operation operations = 1; */ - public OperationOrBuilder getOperationsOrBuilder( - int index) { + public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(int index) { return operations_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile Object nextPageToken_; + private volatile java.lang.Object nextPageToken_; /** + * + * *
    * The standard List next-page token.
    * 
* * string next_page_token = 2; + * + * @return The nextPageToken. */ - public String getNextPageToken() { - Object ref = nextPageToken_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The standard List next-page token.
    * 
* * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -197,7 +238,8 @@ public String getNextPageToken() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -207,9 +249,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < operations_.size(); i++) { output.writeMessage(1, operations_.get(i)); } @@ -219,15 +260,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < operations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, operations_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, operations_.get(i)); } if (!getNextPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -237,25 +277,24 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof ListOperationsResponse)) { + if (!(obj instanceof com.google.longrunning.ListOperationsResponse)) { return super.equals(obj); } - ListOperationsResponse other = (ListOperationsResponse) obj; + com.google.longrunning.ListOperationsResponse other = + (com.google.longrunning.ListOperationsResponse) obj; - if (!getOperationsList() - .equals(other.getOperationsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getOperationsList().equals(other.getOperationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -273,118 +312,127 @@ public int hashCode() { return hash; } - public static ListOperationsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.longrunning.ListOperationsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static ListOperationsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.longrunning.ListOperationsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static ListOperationsResponse parseFrom( + + public static com.google.longrunning.ListOperationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static ListOperationsResponse parseFrom( + + public static com.google.longrunning.ListOperationsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static ListOperationsResponse parseFrom(byte[] data) + + public static com.google.longrunning.ListOperationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static ListOperationsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.longrunning.ListOperationsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static ListOperationsResponse parseFrom(java.io.InputStream input) + + public static com.google.longrunning.ListOperationsResponse 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 ListOperationsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.longrunning.ListOperationsResponse parseFrom( + 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 ListOperationsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.longrunning.ListOperationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static ListOperationsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.longrunning.ListOperationsResponse parseDelimitedFrom( + 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 ListOperationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.longrunning.ListOperationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static ListOperationsResponse parseFrom( + + public static com.google.longrunning.ListOperationsResponse 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(ListOperationsResponse prototype) { + + public static Builder newBuilder(com.google.longrunning.ListOperationsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response message for [Operations.ListOperations][google.longrunning.Operations.ListOperations].
    * 
* * Protobuf type {@code google.longrunning.ListOperationsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.longrunning.ListOperationsResponse) com.google.longrunning.ListOperationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return OperationsProto.internal_static_google_longrunning_ListOperationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_ListOperationsResponse_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return OperationsProto.internal_static_google_longrunning_ListOperationsResponse_fieldAccessorTable + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_ListOperationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - ListOperationsResponse.class, Builder.class); + com.google.longrunning.ListOperationsResponse.class, + com.google.longrunning.ListOperationsResponse.Builder.class); } // Construct using com.google.longrunning.ListOperationsResponse.newBuilder() @@ -392,18 +440,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getOperationsFieldBuilder(); } } - @Override + + @java.lang.Override public Builder clear() { super.clear(); if (operationsBuilder_ == null) { @@ -417,31 +465,31 @@ public Builder clear() { return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return OperationsProto.internal_static_google_longrunning_ListOperationsResponse_descriptor; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_ListOperationsResponse_descriptor; } - @Override - public ListOperationsResponse getDefaultInstanceForType() { - return ListOperationsResponse.getDefaultInstance(); + @java.lang.Override + public com.google.longrunning.ListOperationsResponse getDefaultInstanceForType() { + return com.google.longrunning.ListOperationsResponse.getDefaultInstance(); } - @Override - public ListOperationsResponse build() { - ListOperationsResponse result = buildPartial(); + @java.lang.Override + public com.google.longrunning.ListOperationsResponse build() { + com.google.longrunning.ListOperationsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public ListOperationsResponse buildPartial() { - ListOperationsResponse result = new ListOperationsResponse(this); + @java.lang.Override + public com.google.longrunning.ListOperationsResponse buildPartial() { + com.google.longrunning.ListOperationsResponse result = + new com.google.longrunning.ListOperationsResponse(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (operationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { operations_ = java.util.Collections.unmodifiableList(operations_); @@ -452,55 +500,55 @@ public ListOperationsResponse buildPartial() { result.operations_ = operationsBuilder_.build(); } result.nextPageToken_ = nextPageToken_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ListOperationsResponse) { - return mergeFrom((ListOperationsResponse)other); + if (other instanceof com.google.longrunning.ListOperationsResponse) { + return mergeFrom((com.google.longrunning.ListOperationsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(ListOperationsResponse other) { - if (other == ListOperationsResponse.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.longrunning.ListOperationsResponse other) { + if (other == com.google.longrunning.ListOperationsResponse.getDefaultInstance()) return this; if (operationsBuilder_ == null) { if (!other.operations_.isEmpty()) { if (operations_.isEmpty()) { @@ -519,9 +567,10 @@ public Builder mergeFrom(ListOperationsResponse other) { operationsBuilder_ = null; operations_ = other.operations_; bitField0_ = (bitField0_ & ~0x00000001); - operationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOperationsFieldBuilder() : null; + operationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOperationsFieldBuilder() + : null; } else { operationsBuilder_.addAllMessages(other.operations_); } @@ -536,21 +585,21 @@ public Builder mergeFrom(ListOperationsResponse other) { return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - ListOperationsResponse parsedMessage = null; + com.google.longrunning.ListOperationsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ListOperationsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.longrunning.ListOperationsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -559,28 +608,35 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List operations_ = - java.util.Collections.emptyList(); + private java.util.List operations_ = + java.util.Collections.emptyList(); + private void ensureOperationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - operations_ = new java.util.ArrayList(operations_); + operations_ = new java.util.ArrayList(operations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - Operation, Operation.Builder, OperationOrBuilder> operationsBuilder_; + com.google.longrunning.Operation, + com.google.longrunning.Operation.Builder, + com.google.longrunning.OperationOrBuilder> + operationsBuilder_; /** + * + * *
      * A list of operations that matches the specified filter in the request.
      * 
* * repeated .google.longrunning.Operation operations = 1; */ - public java.util.List getOperationsList() { + public java.util.List getOperationsList() { if (operationsBuilder_ == null) { return java.util.Collections.unmodifiableList(operations_); } else { @@ -588,6 +644,8 @@ public java.util.List getOperationsList() { } } /** + * + * *
      * A list of operations that matches the specified filter in the request.
      * 
@@ -602,13 +660,15 @@ public int getOperationsCount() { } } /** + * + * *
      * A list of operations that matches the specified filter in the request.
      * 
* * repeated .google.longrunning.Operation operations = 1; */ - public Operation getOperations(int index) { + public com.google.longrunning.Operation getOperations(int index) { if (operationsBuilder_ == null) { return operations_.get(index); } else { @@ -616,14 +676,15 @@ public Operation getOperations(int index) { } } /** + * + * *
      * A list of operations that matches the specified filter in the request.
      * 
* * repeated .google.longrunning.Operation operations = 1; */ - public Builder setOperations( - int index, Operation value) { + public Builder setOperations(int index, com.google.longrunning.Operation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -637,6 +698,8 @@ public Builder setOperations( return this; } /** + * + * *
      * A list of operations that matches the specified filter in the request.
      * 
@@ -644,7 +707,7 @@ public Builder setOperations( * repeated .google.longrunning.Operation operations = 1; */ public Builder setOperations( - int index, Operation.Builder builderForValue) { + int index, com.google.longrunning.Operation.Builder builderForValue) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.set(index, builderForValue.build()); @@ -655,13 +718,15 @@ public Builder setOperations( return this; } /** + * + * *
      * A list of operations that matches the specified filter in the request.
      * 
* * repeated .google.longrunning.Operation operations = 1; */ - public Builder addOperations(Operation value) { + public Builder addOperations(com.google.longrunning.Operation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -675,14 +740,15 @@ public Builder addOperations(Operation value) { return this; } /** + * + * *
      * A list of operations that matches the specified filter in the request.
      * 
* * repeated .google.longrunning.Operation operations = 1; */ - public Builder addOperations( - int index, Operation value) { + public Builder addOperations(int index, com.google.longrunning.Operation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -696,14 +762,15 @@ public Builder addOperations( return this; } /** + * + * *
      * A list of operations that matches the specified filter in the request.
      * 
* * repeated .google.longrunning.Operation operations = 1; */ - public Builder addOperations( - Operation.Builder builderForValue) { + public Builder addOperations(com.google.longrunning.Operation.Builder builderForValue) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.add(builderForValue.build()); @@ -714,6 +781,8 @@ public Builder addOperations( return this; } /** + * + * *
      * A list of operations that matches the specified filter in the request.
      * 
@@ -721,7 +790,7 @@ public Builder addOperations( * repeated .google.longrunning.Operation operations = 1; */ public Builder addOperations( - int index, Operation.Builder builderForValue) { + int index, com.google.longrunning.Operation.Builder builderForValue) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.add(index, builderForValue.build()); @@ -732,6 +801,8 @@ public Builder addOperations( return this; } /** + * + * *
      * A list of operations that matches the specified filter in the request.
      * 
@@ -739,11 +810,10 @@ public Builder addOperations( * repeated .google.longrunning.Operation operations = 1; */ public Builder addAllOperations( - Iterable values) { + java.lang.Iterable values) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, operations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, operations_); onChanged(); } else { operationsBuilder_.addAllMessages(values); @@ -751,6 +821,8 @@ public Builder addAllOperations( return this; } /** + * + * *
      * A list of operations that matches the specified filter in the request.
      * 
@@ -768,6 +840,8 @@ public Builder clearOperations() { return this; } /** + * + * *
      * A list of operations that matches the specified filter in the request.
      * 
@@ -785,39 +859,44 @@ public Builder removeOperations(int index) { return this; } /** + * + * *
      * A list of operations that matches the specified filter in the request.
      * 
* * repeated .google.longrunning.Operation operations = 1; */ - public Operation.Builder getOperationsBuilder( - int index) { + public com.google.longrunning.Operation.Builder getOperationsBuilder(int index) { return getOperationsFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of operations that matches the specified filter in the request.
      * 
* * repeated .google.longrunning.Operation operations = 1; */ - public OperationOrBuilder getOperationsOrBuilder( - int index) { + public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(int index) { if (operationsBuilder_ == null) { - return operations_.get(index); } else { + return operations_.get(index); + } else { return operationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of operations that matches the specified filter in the request.
      * 
* * repeated .google.longrunning.Operation operations = 1; */ - public java.util.List - getOperationsOrBuilderList() { + public java.util.List + getOperationsOrBuilderList() { if (operationsBuilder_ != null) { return operationsBuilder_.getMessageOrBuilderList(); } else { @@ -825,88 +904,100 @@ public OperationOrBuilder getOperationsOrBuilder( } } /** + * + * *
      * A list of operations that matches the specified filter in the request.
      * 
* * repeated .google.longrunning.Operation operations = 1; */ - public Operation.Builder addOperationsBuilder() { - return getOperationsFieldBuilder().addBuilder( - Operation.getDefaultInstance()); + public com.google.longrunning.Operation.Builder addOperationsBuilder() { + return getOperationsFieldBuilder() + .addBuilder(com.google.longrunning.Operation.getDefaultInstance()); } /** + * + * *
      * A list of operations that matches the specified filter in the request.
      * 
* * repeated .google.longrunning.Operation operations = 1; */ - public Operation.Builder addOperationsBuilder( - int index) { - return getOperationsFieldBuilder().addBuilder( - index, Operation.getDefaultInstance()); + public com.google.longrunning.Operation.Builder addOperationsBuilder(int index) { + return getOperationsFieldBuilder() + .addBuilder(index, com.google.longrunning.Operation.getDefaultInstance()); } /** + * + * *
      * A list of operations that matches the specified filter in the request.
      * 
* * repeated .google.longrunning.Operation operations = 1; */ - public java.util.List - getOperationsBuilderList() { + public java.util.List getOperationsBuilderList() { return getOperationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - Operation, Operation.Builder, OperationOrBuilder> + com.google.longrunning.Operation, + com.google.longrunning.Operation.Builder, + com.google.longrunning.OperationOrBuilder> getOperationsFieldBuilder() { if (operationsBuilder_ == null) { - operationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - Operation, Operation.Builder, OperationOrBuilder>( - operations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + operationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.longrunning.Operation, + com.google.longrunning.Operation.Builder, + com.google.longrunning.OperationOrBuilder>( + operations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); operations_ = null; } return operationsBuilder_; } - private Object nextPageToken_ = ""; + private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The standard List next-page token.
      * 
* * string next_page_token = 2; + * + * @return The nextPageToken. */ - public String getNextPageToken() { - Object ref = nextPageToken_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The standard List next-page token.
      * 
* * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - Object ref = nextPageToken_; + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -914,103 +1005,113 @@ public String getNextPageToken() { } } /** + * + * *
      * The standard List next-page token.
      * 
* * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. */ - public Builder setNextPageToken( - String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * The standard List next-page token.
      * 
* * string next_page_token = 2; + * + * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * The standard List next-page token.
      * 
* * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.longrunning.ListOperationsResponse) } // @@protoc_insertion_point(class_scope:google.longrunning.ListOperationsResponse) - private static final ListOperationsResponse DEFAULT_INSTANCE; + private static final com.google.longrunning.ListOperationsResponse DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new ListOperationsResponse(); + DEFAULT_INSTANCE = new com.google.longrunning.ListOperationsResponse(); } - public static ListOperationsResponse getDefaultInstance() { + public static com.google.longrunning.ListOperationsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public ListOperationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListOperationsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOperationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListOperationsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public ListOperationsResponse getDefaultInstanceForType() { + @java.lang.Override + public com.google.longrunning.ListOperationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsResponseOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsResponseOrBuilder.java index 3116fd7d..405051b9 100644 --- a/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsResponseOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsResponseOrBuilder.java @@ -1,30 +1,51 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/longrunning/operations.proto package com.google.longrunning; -public interface ListOperationsResponseOrBuilder extends +public interface ListOperationsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.longrunning.ListOperationsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of operations that matches the specified filter in the request.
    * 
* * repeated .google.longrunning.Operation operations = 1; */ - java.util.List - getOperationsList(); + java.util.List getOperationsList(); /** + * + * *
    * A list of operations that matches the specified filter in the request.
    * 
* * repeated .google.longrunning.Operation operations = 1; */ - Operation getOperations(int index); + com.google.longrunning.Operation getOperations(int index); /** + * + * *
    * A list of operations that matches the specified filter in the request.
    * 
@@ -33,39 +54,48 @@ public interface ListOperationsResponseOrBuilder extends */ int getOperationsCount(); /** + * + * *
    * A list of operations that matches the specified filter in the request.
    * 
* * repeated .google.longrunning.Operation operations = 1; */ - java.util.List - getOperationsOrBuilderList(); + java.util.List getOperationsOrBuilderList(); /** + * + * *
    * A list of operations that matches the specified filter in the request.
    * 
* * repeated .google.longrunning.Operation operations = 1; */ - OperationOrBuilder getOperationsOrBuilder( - int index); + com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(int index); /** + * + * *
    * The standard List next-page token.
    * 
* * string next_page_token = 2; + * + * @return The nextPageToken. */ - String getNextPageToken(); + java.lang.String getNextPageToken(); /** + * + * *
    * The standard List next-page token.
    * 
* * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/proto-google-common-protos/src/main/java/com/google/longrunning/Operation.java b/proto-google-common-protos/src/main/java/com/google/longrunning/Operation.java index 65bb220d..bc1d5fe8 100644 --- a/proto-google-common-protos/src/main/java/com/google/longrunning/Operation.java +++ b/proto-google-common-protos/src/main/java/com/google/longrunning/Operation.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/longrunning/operations.proto package com.google.longrunning; /** + * + * *
  * This resource represents a long-running operation that is the result of a
  * network API call.
@@ -11,33 +28,39 @@
  *
  * Protobuf type {@code google.longrunning.Operation}
  */
-public  final class Operation extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Operation extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.longrunning.Operation)
     OperationOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Operation.newBuilder() to construct.
   private Operation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Operation() {
     name_ = "";
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new Operation();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Operation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
-    int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
         com.google.protobuf.UnknownFieldSet.newBuilder();
     try {
@@ -48,167 +71,184 @@ private Operation(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            com.google.protobuf.Any.Builder subBuilder = null;
-            if (metadata_ != null) {
-              subBuilder = metadata_.toBuilder();
-            }
-            metadata_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(metadata_);
-              metadata_ = subBuilder.buildPartial();
+              name_ = s;
+              break;
             }
+          case 18:
+            {
+              com.google.protobuf.Any.Builder subBuilder = null;
+              if (metadata_ != null) {
+                subBuilder = metadata_.toBuilder();
+              }
+              metadata_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(metadata_);
+                metadata_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 24: {
-
-            done_ = input.readBool();
-            break;
-          }
-          case 34: {
-            com.google.rpc.Status.Builder subBuilder = null;
-            if (resultCase_ == 4) {
-              subBuilder = ((com.google.rpc.Status) result_).toBuilder();
+              break;
             }
-            result_ =
-                input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.rpc.Status) result_);
-              result_ = subBuilder.buildPartial();
+          case 24:
+            {
+              done_ = input.readBool();
+              break;
             }
-            resultCase_ = 4;
-            break;
-          }
-          case 42: {
-            com.google.protobuf.Any.Builder subBuilder = null;
-            if (resultCase_ == 5) {
-              subBuilder = ((com.google.protobuf.Any) result_).toBuilder();
+          case 34:
+            {
+              com.google.rpc.Status.Builder subBuilder = null;
+              if (resultCase_ == 4) {
+                subBuilder = ((com.google.rpc.Status) result_).toBuilder();
+              }
+              result_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.rpc.Status) result_);
+                result_ = subBuilder.buildPartial();
+              }
+              resultCase_ = 4;
+              break;
             }
-            result_ =
-                input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.protobuf.Any) result_);
-              result_ = subBuilder.buildPartial();
+          case 42:
+            {
+              com.google.protobuf.Any.Builder subBuilder = null;
+              if (resultCase_ == 5) {
+                subBuilder = ((com.google.protobuf.Any) result_).toBuilder();
+              }
+              result_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.protobuf.Any) result_);
+                result_ = subBuilder.buildPartial();
+              }
+              resultCase_ = 5;
+              break;
             }
-            resultCase_ = 5;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.longrunning.OperationsProto.internal_static_google_longrunning_Operation_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.longrunning.OperationsProto
+        .internal_static_google_longrunning_Operation_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.longrunning.OperationsProto.internal_static_google_longrunning_Operation_fieldAccessorTable
+    return com.google.longrunning.OperationsProto
+        .internal_static_google_longrunning_Operation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            Operation.class, Builder.class);
+            com.google.longrunning.Operation.class, com.google.longrunning.Operation.Builder.class);
   }
 
   private int resultCase_ = 0;
-  private Object result_;
+  private java.lang.Object result_;
+
   public enum ResultCase
-      implements com.google.protobuf.Internal.EnumLite {
+      implements
+          com.google.protobuf.Internal.EnumLite,
+          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     ERROR(4),
     RESPONSE(5),
     RESULT_NOT_SET(0);
     private final int value;
+
     private ResultCase(int value) {
       this.value = value;
     }
     /**
+     * @param value The number of the enum to look for.
+     * @return The enum associated with the given number.
      * @deprecated Use {@link #forNumber(int)} instead.
      */
-    @Deprecated
+    @java.lang.Deprecated
     public static ResultCase valueOf(int value) {
       return forNumber(value);
     }
 
     public static ResultCase forNumber(int value) {
       switch (value) {
-        case 4: return ERROR;
-        case 5: return RESPONSE;
-        case 0: return RESULT_NOT_SET;
-        default: return null;
+        case 4:
+          return ERROR;
+        case 5:
+          return RESPONSE;
+        case 0:
+          return RESULT_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public ResultCase
-  getResultCase() {
-    return ResultCase.forNumber(
-        resultCase_);
+  public ResultCase getResultCase() {
+    return ResultCase.forNumber(resultCase_);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-  private volatile Object name_;
+  private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * The server-assigned name, which is only unique within the same service that
    * originally returns it. If you use the default HTTP mapping, the
-   * `name` should have the format of `operations/some/unique/name`.
+   * `name` should be a resource name ending with `operations/{unique_id}`.
    * 
* * string name = 1; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The server-assigned name, which is only unique within the same service that
    * originally returns it. If you use the default HTTP mapping, the
-   * `name` should have the format of `operations/some/unique/name`.
+   * `name` should be a resource name ending with `operations/{unique_id}`.
    * 
* * string name = 1; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -219,6 +259,8 @@ public String getName() { public static final int METADATA_FIELD_NUMBER = 2; private com.google.protobuf.Any metadata_; /** + * + * *
    * Service-specific metadata associated with the operation.  It typically
    * contains progress information and common metadata such as create time.
@@ -227,11 +269,15 @@ public String getName() {
    * 
* * .google.protobuf.Any metadata = 2; + * + * @return Whether the metadata field is set. */ public boolean hasMetadata() { return metadata_ != null; } /** + * + * *
    * Service-specific metadata associated with the operation.  It typically
    * contains progress information and common metadata such as create time.
@@ -240,11 +286,15 @@ public boolean hasMetadata() {
    * 
* * .google.protobuf.Any metadata = 2; + * + * @return The metadata. */ public com.google.protobuf.Any getMetadata() { return metadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : metadata_; } /** + * + * *
    * Service-specific metadata associated with the operation.  It typically
    * contains progress information and common metadata such as create time.
@@ -261,6 +311,8 @@ public com.google.protobuf.AnyOrBuilder getMetadataOrBuilder() {
   public static final int DONE_FIELD_NUMBER = 3;
   private boolean done_;
   /**
+   *
+   *
    * 
    * If the value is `false`, it means the operation is still in progress.
    * If `true`, the operation is completed, and either `error` or `response` is
@@ -268,6 +320,8 @@ public com.google.protobuf.AnyOrBuilder getMetadataOrBuilder() {
    * 
* * bool done = 3; + * + * @return The done. */ public boolean getDone() { return done_; @@ -275,29 +329,39 @@ public boolean getDone() { public static final int ERROR_FIELD_NUMBER = 4; /** + * + * *
    * The error result of the operation in case of failure or cancellation.
    * 
* * .google.rpc.Status error = 4; + * + * @return Whether the error field is set. */ public boolean hasError() { return resultCase_ == 4; } /** + * + * *
    * The error result of the operation in case of failure or cancellation.
    * 
* * .google.rpc.Status error = 4; + * + * @return The error. */ public com.google.rpc.Status getError() { if (resultCase_ == 4) { - return (com.google.rpc.Status) result_; + return (com.google.rpc.Status) result_; } return com.google.rpc.Status.getDefaultInstance(); } /** + * + * *
    * The error result of the operation in case of failure or cancellation.
    * 
@@ -306,13 +370,15 @@ public com.google.rpc.Status getError() { */ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { if (resultCase_ == 4) { - return (com.google.rpc.Status) result_; + return (com.google.rpc.Status) result_; } return com.google.rpc.Status.getDefaultInstance(); } public static final int RESPONSE_FIELD_NUMBER = 5; /** + * + * *
    * The normal response of the operation in case of success.  If the original
    * method returns no data on success, such as `Delete`, the response is
@@ -325,11 +391,15 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
    * 
* * .google.protobuf.Any response = 5; + * + * @return Whether the response field is set. */ public boolean hasResponse() { return resultCase_ == 5; } /** + * + * *
    * The normal response of the operation in case of success.  If the original
    * method returns no data on success, such as `Delete`, the response is
@@ -342,14 +412,18 @@ public boolean hasResponse() {
    * 
* * .google.protobuf.Any response = 5; + * + * @return The response. */ public com.google.protobuf.Any getResponse() { if (resultCase_ == 5) { - return (com.google.protobuf.Any) result_; + return (com.google.protobuf.Any) result_; } return com.google.protobuf.Any.getDefaultInstance(); } /** + * + * *
    * The normal response of the operation in case of success.  If the original
    * method returns no data on success, such as `Delete`, the response is
@@ -365,13 +439,14 @@ public com.google.protobuf.Any getResponse() {
    */
   public com.google.protobuf.AnyOrBuilder getResponseOrBuilder() {
     if (resultCase_ == 5) {
-       return (com.google.protobuf.Any) result_;
+      return (com.google.protobuf.Any) result_;
     }
     return com.google.protobuf.Any.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-  @Override
+
+  @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
     if (isInitialized == 1) return true;
@@ -381,9 +456,8 @@ public final boolean isInitialized() {
     return true;
   }
 
-  @Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  @java.lang.Override
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!getNameBytes().isEmpty()) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -402,7 +476,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     unknownFields.writeTo(output);
   }
 
-  @Override
+  @java.lang.Override
   public int getSerializedSize() {
     int size = memoizedSize;
     if (size != -1) return size;
@@ -412,54 +486,49 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (metadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getMetadata());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetadata());
     }
     if (done_ != false) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeBoolSize(3, done_);
+      size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, done_);
     }
     if (resultCase_ == 4) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, (com.google.rpc.Status) result_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              4, (com.google.rpc.Status) result_);
     }
     if (resultCase_ == 5) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, (com.google.protobuf.Any) result_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              5, (com.google.protobuf.Any) result_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
     return size;
   }
 
-  @Override
-  public boolean equals(final Object obj) {
+  @java.lang.Override
+  public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
-    if (!(obj instanceof Operation)) {
+    if (!(obj instanceof com.google.longrunning.Operation)) {
       return super.equals(obj);
     }
-    Operation other = (Operation) obj;
+    com.google.longrunning.Operation other = (com.google.longrunning.Operation) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (hasMetadata() != other.hasMetadata()) return false;
     if (hasMetadata()) {
-      if (!getMetadata()
-          .equals(other.getMetadata())) return false;
+      if (!getMetadata().equals(other.getMetadata())) return false;
     }
-    if (getDone()
-        != other.getDone()) return false;
+    if (getDone() != other.getDone()) return false;
     if (!getResultCase().equals(other.getResultCase())) return false;
     switch (resultCase_) {
       case 4:
-        if (!getError()
-            .equals(other.getError())) return false;
+        if (!getError().equals(other.getError())) return false;
         break;
       case 5:
-        if (!getResponse()
-            .equals(other.getResponse())) return false;
+        if (!getResponse().equals(other.getResponse())) return false;
         break;
       case 0:
       default:
@@ -468,7 +537,7 @@ public boolean equals(final Object obj) {
     return true;
   }
 
-  @Override
+  @java.lang.Override
   public int hashCode() {
     if (memoizedHashCode != 0) {
       return memoizedHashCode;
@@ -482,8 +551,7 @@ public int hashCode() {
       hash = (53 * hash) + getMetadata().hashCode();
     }
     hash = (37 * hash) + DONE_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
-        getDone());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDone());
     switch (resultCase_) {
       case 4:
         hash = (37 * hash) + ERROR_FIELD_NUMBER;
@@ -501,97 +569,103 @@ public int hashCode() {
     return hash;
   }
 
-  public static Operation parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.longrunning.Operation parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Operation parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.longrunning.Operation parseFrom(
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Operation parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.longrunning.Operation parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Operation parseFrom(
+
+  public static com.google.longrunning.Operation parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Operation parseFrom(byte[] data)
+
+  public static com.google.longrunning.Operation parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Operation parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.longrunning.Operation parseFrom(
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Operation parseFrom(java.io.InputStream input)
+
+  public static com.google.longrunning.Operation 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 Operation parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.longrunning.Operation parseFrom(
+      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 Operation parseDelimitedFrom(java.io.InputStream input)
+
+  public static com.google.longrunning.Operation 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 Operation parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.longrunning.Operation parseDelimitedFrom(
+      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 Operation parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.longrunning.Operation parseFrom(
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
-  public static Operation parseFrom(
+
+  public static com.google.longrunning.Operation 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();
   }
 
-  @Override
-  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(Operation prototype) {
+
+  public static Builder newBuilder(com.google.longrunning.Operation prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-  @Override
+
+  @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);
   }
 
-  @Override
-  protected Builder newBuilderForType(
-      BuilderParent parent) {
+  @java.lang.Override
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * This resource represents a long-running operation that is the result of a
    * network API call.
@@ -599,21 +673,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.longrunning.Operation}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.longrunning.Operation)
       com.google.longrunning.OperationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.longrunning.OperationsProto.internal_static_google_longrunning_Operation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.longrunning.OperationsProto
+          .internal_static_google_longrunning_Operation_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.longrunning.OperationsProto.internal_static_google_longrunning_Operation_fieldAccessorTable
+      return com.google.longrunning.OperationsProto
+          .internal_static_google_longrunning_Operation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              Operation.class, Builder.class);
+              com.google.longrunning.Operation.class,
+              com.google.longrunning.Operation.Builder.class);
     }
 
     // Construct using com.google.longrunning.Operation.newBuilder()
@@ -621,17 +697,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       name_ = "";
@@ -649,29 +724,29 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.longrunning.OperationsProto.internal_static_google_longrunning_Operation_descriptor;
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.longrunning.OperationsProto
+          .internal_static_google_longrunning_Operation_descriptor;
     }
 
-    @Override
-    public Operation getDefaultInstanceForType() {
-      return Operation.getDefaultInstance();
+    @java.lang.Override
+    public com.google.longrunning.Operation getDefaultInstanceForType() {
+      return com.google.longrunning.Operation.getDefaultInstance();
     }
 
-    @Override
-    public Operation build() {
-      Operation result = buildPartial();
+    @java.lang.Override
+    public com.google.longrunning.Operation build() {
+      com.google.longrunning.Operation result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public Operation buildPartial() {
-      Operation result = new Operation(this);
+    @java.lang.Override
+    public com.google.longrunning.Operation buildPartial() {
+      com.google.longrunning.Operation result = new com.google.longrunning.Operation(this);
       result.name_ = name_;
       if (metadataBuilder_ == null) {
         result.metadata_ = metadata_;
@@ -698,50 +773,51 @@ public Operation buildPartial() {
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof Operation) {
-        return mergeFrom((Operation)other);
+      if (other instanceof com.google.longrunning.Operation) {
+        return mergeFrom((com.google.longrunning.Operation) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(Operation other) {
-      if (other == Operation.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.longrunning.Operation other) {
+      if (other == com.google.longrunning.Operation.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -753,38 +829,41 @@ public Builder mergeFrom(Operation other) {
         setDone(other.getDone());
       }
       switch (other.getResultCase()) {
-        case ERROR: {
-          mergeError(other.getError());
-          break;
-        }
-        case RESPONSE: {
-          mergeResponse(other.getResponse());
-          break;
-        }
-        case RESULT_NOT_SET: {
-          break;
-        }
+        case ERROR:
+          {
+            mergeError(other.getError());
+            break;
+          }
+        case RESPONSE:
+          {
+            mergeResponse(other.getResponse());
+            break;
+          }
+        case RESULT_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      Operation parsedMessage = null;
+      com.google.longrunning.Operation parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (Operation) e.getUnfinishedMessage();
+        parsedMessage = (com.google.longrunning.Operation) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -793,12 +872,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int resultCase_ = 0;
-    private Object result_;
-    public ResultCase
-        getResultCase() {
-      return ResultCase.forNumber(
-          resultCase_);
+    private java.lang.Object result_;
+
+    public ResultCase getResultCase() {
+      return ResultCase.forNumber(resultCase_);
     }
 
     public Builder clearResult() {
@@ -808,45 +887,49 @@ public Builder clearResult() {
       return this;
     }
 
-
-    private Object name_ = "";
+    private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The server-assigned name, which is only unique within the same service that
      * originally returns it. If you use the default HTTP mapping, the
-     * `name` should have the format of `operations/some/unique/name`.
+     * `name` should be a resource name ending with `operations/{unique_id}`.
      * 
* * string name = 1; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The server-assigned name, which is only unique within the same service that
      * originally returns it. If you use the default HTTP mapping, the
-     * `name` should have the format of `operations/some/unique/name`.
+     * `name` should be a resource name ending with `operations/{unique_id}`.
      * 
* * string name = 1; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -854,55 +937,67 @@ public String getName() { } } /** + * + * *
      * The server-assigned name, which is only unique within the same service that
      * originally returns it. If you use the default HTTP mapping, the
-     * `name` should have the format of `operations/some/unique/name`.
+     * `name` should be a resource name ending with `operations/{unique_id}`.
      * 
* * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ - public Builder setName( - String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The server-assigned name, which is only unique within the same service that
      * originally returns it. If you use the default HTTP mapping, the
-     * `name` should have the format of `operations/some/unique/name`.
+     * `name` should be a resource name ending with `operations/{unique_id}`.
      * 
* * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The server-assigned name, which is only unique within the same service that
      * originally returns it. If you use the default HTTP mapping, the
-     * `name` should have the format of `operations/some/unique/name`.
+     * `name` should be a resource name ending with `operations/{unique_id}`.
      * 
* * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -910,8 +1005,13 @@ public Builder setNameBytes( private com.google.protobuf.Any metadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> metadataBuilder_; + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder> + metadataBuilder_; /** + * + * *
      * Service-specific metadata associated with the operation.  It typically
      * contains progress information and common metadata such as create time.
@@ -920,11 +1020,15 @@ public Builder setNameBytes(
      * 
* * .google.protobuf.Any metadata = 2; + * + * @return Whether the metadata field is set. */ public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** + * + * *
      * Service-specific metadata associated with the operation.  It typically
      * contains progress information and common metadata such as create time.
@@ -933,6 +1037,8 @@ public boolean hasMetadata() {
      * 
* * .google.protobuf.Any metadata = 2; + * + * @return The metadata. */ public com.google.protobuf.Any getMetadata() { if (metadataBuilder_ == null) { @@ -942,6 +1048,8 @@ public com.google.protobuf.Any getMetadata() { } } /** + * + * *
      * Service-specific metadata associated with the operation.  It typically
      * contains progress information and common metadata such as create time.
@@ -965,6 +1073,8 @@ public Builder setMetadata(com.google.protobuf.Any value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Service-specific metadata associated with the operation.  It typically
      * contains progress information and common metadata such as create time.
@@ -974,8 +1084,7 @@ public Builder setMetadata(com.google.protobuf.Any value) {
      *
      * .google.protobuf.Any metadata = 2;
      */
-    public Builder setMetadata(
-        com.google.protobuf.Any.Builder builderForValue) {
+    public Builder setMetadata(com.google.protobuf.Any.Builder builderForValue) {
       if (metadataBuilder_ == null) {
         metadata_ = builderForValue.build();
         onChanged();
@@ -986,6 +1095,8 @@ public Builder setMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * Service-specific metadata associated with the operation.  It typically
      * contains progress information and common metadata such as create time.
@@ -998,8 +1109,7 @@ public Builder setMetadata(
     public Builder mergeMetadata(com.google.protobuf.Any value) {
       if (metadataBuilder_ == null) {
         if (metadata_ != null) {
-          metadata_ =
-            com.google.protobuf.Any.newBuilder(metadata_).mergeFrom(value).buildPartial();
+          metadata_ = com.google.protobuf.Any.newBuilder(metadata_).mergeFrom(value).buildPartial();
         } else {
           metadata_ = value;
         }
@@ -1011,6 +1121,8 @@ public Builder mergeMetadata(com.google.protobuf.Any value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Service-specific metadata associated with the operation.  It typically
      * contains progress information and common metadata such as create time.
@@ -1032,6 +1144,8 @@ public Builder clearMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Service-specific metadata associated with the operation.  It typically
      * contains progress information and common metadata such as create time.
@@ -1042,11 +1156,13 @@ public Builder clearMetadata() {
      * .google.protobuf.Any metadata = 2;
      */
     public com.google.protobuf.Any.Builder getMetadataBuilder() {
-      
+
       onChanged();
       return getMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Service-specific metadata associated with the operation.  It typically
      * contains progress information and common metadata such as create time.
@@ -1060,11 +1176,12 @@ public com.google.protobuf.AnyOrBuilder getMetadataOrBuilder() {
       if (metadataBuilder_ != null) {
         return metadataBuilder_.getMessageOrBuilder();
       } else {
-        return metadata_ == null ?
-            com.google.protobuf.Any.getDefaultInstance() : metadata_;
+        return metadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : metadata_;
       }
     }
     /**
+     *
+     *
      * 
      * Service-specific metadata associated with the operation.  It typically
      * contains progress information and common metadata such as create time.
@@ -1075,21 +1192,25 @@ public com.google.protobuf.AnyOrBuilder getMetadataOrBuilder() {
      * .google.protobuf.Any metadata = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> 
+            com.google.protobuf.Any,
+            com.google.protobuf.Any.Builder,
+            com.google.protobuf.AnyOrBuilder>
         getMetadataFieldBuilder() {
       if (metadataBuilder_ == null) {
-        metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
-                getMetadata(),
-                getParentForChildren(),
-                isClean());
+        metadataBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Any,
+                com.google.protobuf.Any.Builder,
+                com.google.protobuf.AnyOrBuilder>(getMetadata(), getParentForChildren(), isClean());
         metadata_ = null;
       }
       return metadataBuilder_;
     }
 
-    private boolean done_ ;
+    private boolean done_;
     /**
+     *
+     *
      * 
      * If the value is `false`, it means the operation is still in progress.
      * If `true`, the operation is completed, and either `error` or `response` is
@@ -1097,11 +1218,15 @@ public com.google.protobuf.AnyOrBuilder getMetadataOrBuilder() {
      * 
* * bool done = 3; + * + * @return The done. */ public boolean getDone() { return done_; } /** + * + * *
      * If the value is `false`, it means the operation is still in progress.
      * If `true`, the operation is completed, and either `error` or `response` is
@@ -1109,14 +1234,19 @@ public boolean getDone() {
      * 
* * bool done = 3; + * + * @param value The done to set. + * @return This builder for chaining. */ public Builder setDone(boolean value) { - + done_ = value; onChanged(); return this; } /** + * + * *
      * If the value is `false`, it means the operation is still in progress.
      * If `true`, the operation is completed, and either `error` or `response` is
@@ -1124,32 +1254,43 @@ public Builder setDone(boolean value) {
      * 
* * bool done = 3; + * + * @return This builder for chaining. */ public Builder clearDone() { - + done_ = false; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; /** + * + * *
      * The error result of the operation in case of failure or cancellation.
      * 
* * .google.rpc.Status error = 4; + * + * @return Whether the error field is set. */ public boolean hasError() { return resultCase_ == 4; } /** + * + * *
      * The error result of the operation in case of failure or cancellation.
      * 
* * .google.rpc.Status error = 4; + * + * @return The error. */ public com.google.rpc.Status getError() { if (errorBuilder_ == null) { @@ -1165,6 +1306,8 @@ public com.google.rpc.Status getError() { } } /** + * + * *
      * The error result of the operation in case of failure or cancellation.
      * 
@@ -1185,14 +1328,15 @@ public Builder setError(com.google.rpc.Status value) { return this; } /** + * + * *
      * The error result of the operation in case of failure or cancellation.
      * 
* * .google.rpc.Status error = 4; */ - public Builder setError( - com.google.rpc.Status.Builder builderForValue) { + public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { result_ = builderForValue.build(); onChanged(); @@ -1203,6 +1347,8 @@ public Builder setError( return this; } /** + * + * *
      * The error result of the operation in case of failure or cancellation.
      * 
@@ -1211,10 +1357,11 @@ public Builder setError( */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (resultCase_ == 4 && - result_ != com.google.rpc.Status.getDefaultInstance()) { - result_ = com.google.rpc.Status.newBuilder((com.google.rpc.Status) result_) - .mergeFrom(value).buildPartial(); + if (resultCase_ == 4 && result_ != com.google.rpc.Status.getDefaultInstance()) { + result_ = + com.google.rpc.Status.newBuilder((com.google.rpc.Status) result_) + .mergeFrom(value) + .buildPartial(); } else { result_ = value; } @@ -1229,6 +1376,8 @@ public Builder mergeError(com.google.rpc.Status value) { return this; } /** + * + * *
      * The error result of the operation in case of failure or cancellation.
      * 
@@ -1252,6 +1401,8 @@ public Builder clearError() { return this; } /** + * + * *
      * The error result of the operation in case of failure or cancellation.
      * 
@@ -1262,6 +1413,8 @@ public com.google.rpc.Status.Builder getErrorBuilder() { return getErrorFieldBuilder().getBuilder(); } /** + * + * *
      * The error result of the operation in case of failure or cancellation.
      * 
@@ -1279,6 +1432,8 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { } } /** + * + * *
      * The error result of the operation in case of failure or cancellation.
      * 
@@ -1286,27 +1441,34 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * .google.rpc.Status error = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { if (!(resultCase_ == 4)) { result_ = com.google.rpc.Status.getDefaultInstance(); } - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - (com.google.rpc.Status) result_, - getParentForChildren(), - isClean()); + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + (com.google.rpc.Status) result_, getParentForChildren(), isClean()); result_ = null; } resultCase_ = 4; - onChanged();; + onChanged(); + ; return errorBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> responseBuilder_; + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder> + responseBuilder_; /** + * + * *
      * The normal response of the operation in case of success.  If the original
      * method returns no data on success, such as `Delete`, the response is
@@ -1319,11 +1481,15 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * 
* * .google.protobuf.Any response = 5; + * + * @return Whether the response field is set. */ public boolean hasResponse() { return resultCase_ == 5; } /** + * + * *
      * The normal response of the operation in case of success.  If the original
      * method returns no data on success, such as `Delete`, the response is
@@ -1336,6 +1502,8 @@ public boolean hasResponse() {
      * 
* * .google.protobuf.Any response = 5; + * + * @return The response. */ public com.google.protobuf.Any getResponse() { if (responseBuilder_ == null) { @@ -1351,6 +1519,8 @@ public com.google.protobuf.Any getResponse() { } } /** + * + * *
      * The normal response of the operation in case of success.  If the original
      * method returns no data on success, such as `Delete`, the response is
@@ -1378,6 +1548,8 @@ public Builder setResponse(com.google.protobuf.Any value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The normal response of the operation in case of success.  If the original
      * method returns no data on success, such as `Delete`, the response is
@@ -1391,8 +1563,7 @@ public Builder setResponse(com.google.protobuf.Any value) {
      *
      * .google.protobuf.Any response = 5;
      */
-    public Builder setResponse(
-        com.google.protobuf.Any.Builder builderForValue) {
+    public Builder setResponse(com.google.protobuf.Any.Builder builderForValue) {
       if (responseBuilder_ == null) {
         result_ = builderForValue.build();
         onChanged();
@@ -1403,6 +1574,8 @@ public Builder setResponse(
       return this;
     }
     /**
+     *
+     *
      * 
      * The normal response of the operation in case of success.  If the original
      * method returns no data on success, such as `Delete`, the response is
@@ -1418,10 +1591,11 @@ public Builder setResponse(
      */
     public Builder mergeResponse(com.google.protobuf.Any value) {
       if (responseBuilder_ == null) {
-        if (resultCase_ == 5 &&
-            result_ != com.google.protobuf.Any.getDefaultInstance()) {
-          result_ = com.google.protobuf.Any.newBuilder((com.google.protobuf.Any) result_)
-              .mergeFrom(value).buildPartial();
+        if (resultCase_ == 5 && result_ != com.google.protobuf.Any.getDefaultInstance()) {
+          result_ =
+              com.google.protobuf.Any.newBuilder((com.google.protobuf.Any) result_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           result_ = value;
         }
@@ -1436,6 +1610,8 @@ public Builder mergeResponse(com.google.protobuf.Any value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The normal response of the operation in case of success.  If the original
      * method returns no data on success, such as `Delete`, the response is
@@ -1466,6 +1642,8 @@ public Builder clearResponse() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The normal response of the operation in case of success.  If the original
      * method returns no data on success, such as `Delete`, the response is
@@ -1483,6 +1661,8 @@ public com.google.protobuf.Any.Builder getResponseBuilder() {
       return getResponseFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The normal response of the operation in case of success.  If the original
      * method returns no data on success, such as `Delete`, the response is
@@ -1507,6 +1687,8 @@ public com.google.protobuf.AnyOrBuilder getResponseOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * The normal response of the operation in case of success.  If the original
      * method returns no data on success, such as `Delete`, the response is
@@ -1521,73 +1703,75 @@ public com.google.protobuf.AnyOrBuilder getResponseOrBuilder() {
      * .google.protobuf.Any response = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> 
+            com.google.protobuf.Any,
+            com.google.protobuf.Any.Builder,
+            com.google.protobuf.AnyOrBuilder>
         getResponseFieldBuilder() {
       if (responseBuilder_ == null) {
         if (!(resultCase_ == 5)) {
           result_ = com.google.protobuf.Any.getDefaultInstance();
         }
-        responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
-                (com.google.protobuf.Any) result_,
-                getParentForChildren(),
-                isClean());
+        responseBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Any,
+                com.google.protobuf.Any.Builder,
+                com.google.protobuf.AnyOrBuilder>(
+                (com.google.protobuf.Any) result_, getParentForChildren(), isClean());
         result_ = null;
       }
       resultCase_ = 5;
-      onChanged();;
+      onChanged();
+      ;
       return responseBuilder_;
     }
-    @Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+
+    @java.lang.Override
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
-    @Override
+    @java.lang.Override
     public final Builder mergeUnknownFields(
         final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.longrunning.Operation)
   }
 
   // @@protoc_insertion_point(class_scope:google.longrunning.Operation)
-  private static final Operation DEFAULT_INSTANCE;
+  private static final com.google.longrunning.Operation DEFAULT_INSTANCE;
+
   static {
-    DEFAULT_INSTANCE = new Operation();
+    DEFAULT_INSTANCE = new com.google.longrunning.Operation();
   }
 
-  public static Operation getDefaultInstance() {
+  public static com.google.longrunning.Operation getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @Override
-    public Operation parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Operation(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Operation parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Operation(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
   }
 
-  @Override
+  @java.lang.Override
   public com.google.protobuf.Parser getParserForType() {
     return PARSER;
   }
 
-  @Override
-  public Operation getDefaultInstanceForType() {
+  @java.lang.Override
+  public com.google.longrunning.Operation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfo.java b/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfo.java
index 6766c983..68f2da7e 100644
--- a/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfo.java
+++ b/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfo.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/longrunning/operations.proto
 
 package com.google.longrunning;
 
 /**
+ *
+ *
  * 
  * A message representing the message types used by a long-running operation.
  * Example:
@@ -18,34 +35,40 @@
  *
  * Protobuf type {@code google.longrunning.OperationInfo}
  */
-public  final class OperationInfo extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class OperationInfo extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.longrunning.OperationInfo)
     OperationInfoOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use OperationInfo.newBuilder() to construct.
   private OperationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private OperationInfo() {
     responseType_ = "";
     metadataType_ = "";
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new OperationInfo();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private OperationInfo(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
-    int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
         com.google.protobuf.UnknownFieldSet.newBuilder();
     try {
@@ -56,53 +79,59 @@ private OperationInfo(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            responseType_ = s;
-            break;
-          }
-          case 18: {
-            String s = input.readStringRequireUtf8();
+              responseType_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            metadataType_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              metadataType_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.longrunning.OperationsProto.internal_static_google_longrunning_OperationInfo_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.longrunning.OperationsProto
+        .internal_static_google_longrunning_OperationInfo_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.longrunning.OperationsProto.internal_static_google_longrunning_OperationInfo_fieldAccessorTable
+    return com.google.longrunning.OperationsProto
+        .internal_static_google_longrunning_OperationInfo_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            OperationInfo.class, Builder.class);
+            com.google.longrunning.OperationInfo.class,
+            com.google.longrunning.OperationInfo.Builder.class);
   }
 
   public static final int RESPONSE_TYPE_FIELD_NUMBER = 1;
-  private volatile Object responseType_;
+  private volatile java.lang.Object responseType_;
   /**
+   *
+   *
    * 
    * Required. The message name of the primary return type for this
    * long-running operation.
@@ -113,20 +142,23 @@ private OperationInfo(
    * 
* * string response_type = 1; + * + * @return The responseType. */ - public String getResponseType() { - Object ref = responseType_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getResponseType() { + java.lang.Object ref = responseType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); responseType_ = s; return s; } } /** + * + * *
    * Required. The message name of the primary return type for this
    * long-running operation.
@@ -137,14 +169,14 @@ public String getResponseType() {
    * 
* * string response_type = 1; + * + * @return The bytes for responseType. */ - public com.google.protobuf.ByteString - getResponseTypeBytes() { - Object ref = responseType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getResponseTypeBytes() { + java.lang.Object ref = responseType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); responseType_ = b; return b; } else { @@ -153,8 +185,10 @@ public String getResponseType() { } public static final int METADATA_TYPE_FIELD_NUMBER = 2; - private volatile Object metadataType_; + private volatile java.lang.Object metadataType_; /** + * + * *
    * Required. The message name of the metadata type for this long-running
    * operation.
@@ -164,20 +198,23 @@ public String getResponseType() {
    * 
* * string metadata_type = 2; + * + * @return The metadataType. */ - public String getMetadataType() { - Object ref = metadataType_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getMetadataType() { + java.lang.Object ref = metadataType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); metadataType_ = s; return s; } } /** + * + * *
    * Required. The message name of the metadata type for this long-running
    * operation.
@@ -187,14 +224,14 @@ public String getMetadataType() {
    * 
* * string metadata_type = 2; + * + * @return The bytes for metadataType. */ - public com.google.protobuf.ByteString - getMetadataTypeBytes() { - Object ref = metadataType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getMetadataTypeBytes() { + java.lang.Object ref = metadataType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); metadataType_ = b; return b; } else { @@ -203,7 +240,8 @@ public String getMetadataType() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -213,9 +251,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getResponseTypeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, responseType_); } @@ -225,7 +262,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -242,25 +279,23 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof OperationInfo)) { + if (!(obj instanceof com.google.longrunning.OperationInfo)) { return super.equals(obj); } - OperationInfo other = (OperationInfo) obj; + com.google.longrunning.OperationInfo other = (com.google.longrunning.OperationInfo) obj; - if (!getResponseType() - .equals(other.getResponseType())) return false; - if (!getMetadataType() - .equals(other.getMetadataType())) return false; + if (!getResponseType().equals(other.getResponseType())) return false; + if (!getMetadataType().equals(other.getMetadataType())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -276,97 +311,103 @@ public int hashCode() { return hash; } - public static OperationInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.longrunning.OperationInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static OperationInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.longrunning.OperationInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static OperationInfo parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.longrunning.OperationInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static OperationInfo parseFrom( + + public static com.google.longrunning.OperationInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static OperationInfo parseFrom(byte[] data) + + public static com.google.longrunning.OperationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static OperationInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.longrunning.OperationInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static OperationInfo parseFrom(java.io.InputStream input) + + public static com.google.longrunning.OperationInfo 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 OperationInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.longrunning.OperationInfo parseFrom( + 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 OperationInfo parseDelimitedFrom(java.io.InputStream input) + + public static com.google.longrunning.OperationInfo 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 OperationInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.longrunning.OperationInfo parseDelimitedFrom( + 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 OperationInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.longrunning.OperationInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static OperationInfo parseFrom( + + public static com.google.longrunning.OperationInfo 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(OperationInfo prototype) { + + public static Builder newBuilder(com.google.longrunning.OperationInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A message representing the message types used by a long-running operation.
    * Example:
@@ -381,21 +422,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.longrunning.OperationInfo}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.longrunning.OperationInfo)
       com.google.longrunning.OperationInfoOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.longrunning.OperationsProto.internal_static_google_longrunning_OperationInfo_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.longrunning.OperationsProto
+          .internal_static_google_longrunning_OperationInfo_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.longrunning.OperationsProto.internal_static_google_longrunning_OperationInfo_fieldAccessorTable
+      return com.google.longrunning.OperationsProto
+          .internal_static_google_longrunning_OperationInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              OperationInfo.class, Builder.class);
+              com.google.longrunning.OperationInfo.class,
+              com.google.longrunning.OperationInfo.Builder.class);
     }
 
     // Construct using com.google.longrunning.OperationInfo.newBuilder()
@@ -403,17 +446,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       responseType_ = "";
@@ -423,79 +465,80 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.longrunning.OperationsProto.internal_static_google_longrunning_OperationInfo_descriptor;
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.longrunning.OperationsProto
+          .internal_static_google_longrunning_OperationInfo_descriptor;
     }
 
-    @Override
-    public OperationInfo getDefaultInstanceForType() {
-      return OperationInfo.getDefaultInstance();
+    @java.lang.Override
+    public com.google.longrunning.OperationInfo getDefaultInstanceForType() {
+      return com.google.longrunning.OperationInfo.getDefaultInstance();
     }
 
-    @Override
-    public OperationInfo build() {
-      OperationInfo result = buildPartial();
+    @java.lang.Override
+    public com.google.longrunning.OperationInfo build() {
+      com.google.longrunning.OperationInfo result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public OperationInfo buildPartial() {
-      OperationInfo result = new OperationInfo(this);
+    @java.lang.Override
+    public com.google.longrunning.OperationInfo buildPartial() {
+      com.google.longrunning.OperationInfo result = new com.google.longrunning.OperationInfo(this);
       result.responseType_ = responseType_;
       result.metadataType_ = metadataType_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof OperationInfo) {
-        return mergeFrom((OperationInfo)other);
+      if (other instanceof com.google.longrunning.OperationInfo) {
+        return mergeFrom((com.google.longrunning.OperationInfo) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(OperationInfo other) {
-      if (other == OperationInfo.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.longrunning.OperationInfo other) {
+      if (other == com.google.longrunning.OperationInfo.getDefaultInstance()) return this;
       if (!other.getResponseType().isEmpty()) {
         responseType_ = other.responseType_;
         onChanged();
@@ -509,21 +552,21 @@ public Builder mergeFrom(OperationInfo other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      OperationInfo parsedMessage = null;
+      com.google.longrunning.OperationInfo parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (OperationInfo) e.getUnfinishedMessage();
+        parsedMessage = (com.google.longrunning.OperationInfo) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -533,8 +576,10 @@ public Builder mergeFrom(
       return this;
     }
 
-    private Object responseType_ = "";
+    private java.lang.Object responseType_ = "";
     /**
+     *
+     *
      * 
      * Required. The message name of the primary return type for this
      * long-running operation.
@@ -545,20 +590,23 @@ public Builder mergeFrom(
      * 
* * string response_type = 1; + * + * @return The responseType. */ - public String getResponseType() { - Object ref = responseType_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getResponseType() { + java.lang.Object ref = responseType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); responseType_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Required. The message name of the primary return type for this
      * long-running operation.
@@ -569,14 +617,14 @@ public String getResponseType() {
      * 
* * string response_type = 1; + * + * @return The bytes for responseType. */ - public com.google.protobuf.ByteString - getResponseTypeBytes() { - Object ref = responseType_; + public com.google.protobuf.ByteString getResponseTypeBytes() { + java.lang.Object ref = responseType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); responseType_ = b; return b; } else { @@ -584,6 +632,8 @@ public String getResponseType() { } } /** + * + * *
      * Required. The message name of the primary return type for this
      * long-running operation.
@@ -594,18 +644,22 @@ public String getResponseType() {
      * 
* * string response_type = 1; + * + * @param value The responseType to set. + * @return This builder for chaining. */ - public Builder setResponseType( - String value) { + public Builder setResponseType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + responseType_ = value; onChanged(); return this; } /** + * + * *
      * Required. The message name of the primary return type for this
      * long-running operation.
@@ -616,14 +670,18 @@ public Builder setResponseType(
      * 
* * string response_type = 1; + * + * @return This builder for chaining. */ public Builder clearResponseType() { - + responseType_ = getDefaultInstance().getResponseType(); onChanged(); return this; } /** + * + * *
      * Required. The message name of the primary return type for this
      * long-running operation.
@@ -634,21 +692,25 @@ public Builder clearResponseType() {
      * 
* * string response_type = 1; + * + * @param value The bytes for responseType to set. + * @return This builder for chaining. */ - public Builder setResponseTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setResponseTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + responseType_ = value; onChanged(); return this; } - private Object metadataType_ = ""; + private java.lang.Object metadataType_ = ""; /** + * + * *
      * Required. The message name of the metadata type for this long-running
      * operation.
@@ -658,20 +720,23 @@ public Builder setResponseTypeBytes(
      * 
* * string metadata_type = 2; + * + * @return The metadataType. */ - public String getMetadataType() { - Object ref = metadataType_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getMetadataType() { + java.lang.Object ref = metadataType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); metadataType_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Required. The message name of the metadata type for this long-running
      * operation.
@@ -681,14 +746,14 @@ public String getMetadataType() {
      * 
* * string metadata_type = 2; + * + * @return The bytes for metadataType. */ - public com.google.protobuf.ByteString - getMetadataTypeBytes() { - Object ref = metadataType_; + public com.google.protobuf.ByteString getMetadataTypeBytes() { + java.lang.Object ref = metadataType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); metadataType_ = b; return b; } else { @@ -696,6 +761,8 @@ public String getMetadataType() { } } /** + * + * *
      * Required. The message name of the metadata type for this long-running
      * operation.
@@ -705,18 +772,22 @@ public String getMetadataType() {
      * 
* * string metadata_type = 2; + * + * @param value The metadataType to set. + * @return This builder for chaining. */ - public Builder setMetadataType( - String value) { + public Builder setMetadataType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + metadataType_ = value; onChanged(); return this; } /** + * + * *
      * Required. The message name of the metadata type for this long-running
      * operation.
@@ -726,14 +797,18 @@ public Builder setMetadataType(
      * 
* * string metadata_type = 2; + * + * @return This builder for chaining. */ public Builder clearMetadataType() { - + metadataType_ = getDefaultInstance().getMetadataType(); onChanged(); return this; } /** + * + * *
      * Required. The message name of the metadata type for this long-running
      * operation.
@@ -743,68 +818,68 @@ public Builder clearMetadataType() {
      * 
* * string metadata_type = 2; + * + * @param value The bytes for metadataType to set. + * @return This builder for chaining. */ - public Builder setMetadataTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setMetadataTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metadataType_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.longrunning.OperationInfo) } // @@protoc_insertion_point(class_scope:google.longrunning.OperationInfo) - private static final OperationInfo DEFAULT_INSTANCE; + private static final com.google.longrunning.OperationInfo DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new OperationInfo(); + DEFAULT_INSTANCE = new com.google.longrunning.OperationInfo(); } - public static OperationInfo getDefaultInstance() { + public static com.google.longrunning.OperationInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public OperationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public OperationInfo getDefaultInstanceForType() { + @java.lang.Override + public com.google.longrunning.OperationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfoOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfoOrBuilder.java index 1675eeb2..2e65c6e6 100644 --- a/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfoOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfoOrBuilder.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/longrunning/operations.proto package com.google.longrunning; -public interface OperationInfoOrBuilder extends +public interface OperationInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.longrunning.OperationInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The message name of the primary return type for this
    * long-running operation.
@@ -18,9 +36,13 @@ public interface OperationInfoOrBuilder extends
    * 
* * string response_type = 1; + * + * @return The responseType. */ - String getResponseType(); + java.lang.String getResponseType(); /** + * + * *
    * Required. The message name of the primary return type for this
    * long-running operation.
@@ -31,11 +53,14 @@ public interface OperationInfoOrBuilder extends
    * 
* * string response_type = 1; + * + * @return The bytes for responseType. */ - com.google.protobuf.ByteString - getResponseTypeBytes(); + com.google.protobuf.ByteString getResponseTypeBytes(); /** + * + * *
    * Required. The message name of the metadata type for this long-running
    * operation.
@@ -45,9 +70,13 @@ public interface OperationInfoOrBuilder extends
    * 
* * string metadata_type = 2; + * + * @return The metadataType. */ - String getMetadataType(); + java.lang.String getMetadataType(); /** + * + * *
    * Required. The message name of the metadata type for this long-running
    * operation.
@@ -57,7 +86,8 @@ public interface OperationInfoOrBuilder extends
    * 
* * string metadata_type = 2; + * + * @return The bytes for metadataType. */ - com.google.protobuf.ByteString - getMetadataTypeBytes(); + com.google.protobuf.ByteString getMetadataTypeBytes(); } diff --git a/proto-google-common-protos/src/main/java/com/google/longrunning/OperationOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/longrunning/OperationOrBuilder.java index e6d3f60e..beb4b5e4 100644 --- a/proto-google-common-protos/src/main/java/com/google/longrunning/OperationOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/longrunning/OperationOrBuilder.java @@ -1,35 +1,60 @@ +/* + * 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/longrunning/operations.proto package com.google.longrunning; -public interface OperationOrBuilder extends +public interface OperationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.longrunning.Operation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The server-assigned name, which is only unique within the same service that
    * originally returns it. If you use the default HTTP mapping, the
-   * `name` should have the format of `operations/some/unique/name`.
+   * `name` should be a resource name ending with `operations/{unique_id}`.
    * 
* * string name = 1; + * + * @return The name. */ - String getName(); + java.lang.String getName(); /** + * + * *
    * The server-assigned name, which is only unique within the same service that
    * originally returns it. If you use the default HTTP mapping, the
-   * `name` should have the format of `operations/some/unique/name`.
+   * `name` should be a resource name ending with `operations/{unique_id}`.
    * 
* * string name = 1; + * + * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Service-specific metadata associated with the operation.  It typically
    * contains progress information and common metadata such as create time.
@@ -38,9 +63,13 @@ public interface OperationOrBuilder extends
    * 
* * .google.protobuf.Any metadata = 2; + * + * @return Whether the metadata field is set. */ boolean hasMetadata(); /** + * + * *
    * Service-specific metadata associated with the operation.  It typically
    * contains progress information and common metadata such as create time.
@@ -49,9 +78,13 @@ public interface OperationOrBuilder extends
    * 
* * .google.protobuf.Any metadata = 2; + * + * @return The metadata. */ com.google.protobuf.Any getMetadata(); /** + * + * *
    * Service-specific metadata associated with the operation.  It typically
    * contains progress information and common metadata such as create time.
@@ -64,6 +97,8 @@ public interface OperationOrBuilder extends
   com.google.protobuf.AnyOrBuilder getMetadataOrBuilder();
 
   /**
+   *
+   *
    * 
    * If the value is `false`, it means the operation is still in progress.
    * If `true`, the operation is completed, and either `error` or `response` is
@@ -71,26 +106,38 @@ public interface OperationOrBuilder extends
    * 
* * bool done = 3; + * + * @return The done. */ boolean getDone(); /** + * + * *
    * The error result of the operation in case of failure or cancellation.
    * 
* * .google.rpc.Status error = 4; + * + * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * The error result of the operation in case of failure or cancellation.
    * 
* * .google.rpc.Status error = 4; + * + * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
    * The error result of the operation in case of failure or cancellation.
    * 
@@ -100,6 +147,8 @@ public interface OperationOrBuilder extends com.google.rpc.StatusOrBuilder getErrorOrBuilder(); /** + * + * *
    * The normal response of the operation in case of success.  If the original
    * method returns no data on success, such as `Delete`, the response is
@@ -112,9 +161,13 @@ public interface OperationOrBuilder extends
    * 
* * .google.protobuf.Any response = 5; + * + * @return Whether the response field is set. */ boolean hasResponse(); /** + * + * *
    * The normal response of the operation in case of success.  If the original
    * method returns no data on success, such as `Delete`, the response is
@@ -127,9 +180,13 @@ public interface OperationOrBuilder extends
    * 
* * .google.protobuf.Any response = 5; + * + * @return The response. */ com.google.protobuf.Any getResponse(); /** + * + * *
    * The normal response of the operation in case of success.  If the original
    * method returns no data on success, such as `Delete`, the response is
@@ -145,5 +202,5 @@ public interface OperationOrBuilder extends
    */
   com.google.protobuf.AnyOrBuilder getResponseOrBuilder();
 
-  public Operation.ResultCase getResultCase();
+  public com.google.longrunning.Operation.ResultCase getResultCase();
 }
diff --git a/proto-google-common-protos/src/main/java/com/google/longrunning/OperationsProto.java b/proto-google-common-protos/src/main/java/com/google/longrunning/OperationsProto.java
index 0164f190..010227c1 100644
--- a/proto-google-common-protos/src/main/java/com/google/longrunning/OperationsProto.java
+++ b/proto-google-common-protos/src/main/java/com/google/longrunning/OperationsProto.java
@@ -1,3 +1,18 @@
+/*
+ * 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/longrunning/operations.proto
 
@@ -5,18 +20,19 @@
 
 public final class OperationsProto {
   private OperationsProto() {}
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistryLite registry) {
-    registry.add(OperationsProto.operationInfo);
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
+    registry.add(com.google.longrunning.OperationsProto.operationInfo);
   }
 
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions(
-        (com.google.protobuf.ExtensionRegistryLite) registry);
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
   }
+
   public static final int OPERATION_INFO_FIELD_NUMBER = 1049;
   /**
+   *
+   *
    * 
    * Additional information regarding long-running operations.
    * In particular, this specifies the types that are returned from
@@ -27,180 +43,187 @@ public static void registerAllExtensions(
    *
    * extend .google.protobuf.MethodOptions { ... }
    */
-  public static final
-    com.google.protobuf.GeneratedMessage.GeneratedExtension<
-      com.google.protobuf.DescriptorProtos.MethodOptions,
-      OperationInfo> operationInfo = com.google.protobuf.GeneratedMessage
-          .newFileScopedGeneratedExtension(
-        OperationInfo.class,
-        OperationInfo.getDefaultInstance());
+  public static final com.google.protobuf.GeneratedMessage.GeneratedExtension<
+          com.google.protobuf.DescriptorProtos.MethodOptions, com.google.longrunning.OperationInfo>
+      operationInfo =
+          com.google.protobuf.GeneratedMessage.newFileScopedGeneratedExtension(
+              com.google.longrunning.OperationInfo.class,
+              com.google.longrunning.OperationInfo.getDefaultInstance());
+
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_longrunning_Operation_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_longrunning_Operation_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_longrunning_Operation_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_longrunning_GetOperationRequest_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_longrunning_GetOperationRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_longrunning_GetOperationRequest_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_longrunning_ListOperationsRequest_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_longrunning_ListOperationsRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_longrunning_ListOperationsRequest_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_longrunning_ListOperationsResponse_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_longrunning_ListOperationsResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_longrunning_ListOperationsResponse_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_longrunning_CancelOperationRequest_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_longrunning_CancelOperationRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_longrunning_CancelOperationRequest_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_longrunning_DeleteOperationRequest_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_longrunning_DeleteOperationRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_longrunning_DeleteOperationRequest_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_longrunning_WaitOperationRequest_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_longrunning_WaitOperationRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_longrunning_WaitOperationRequest_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_longrunning_OperationInfo_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_longrunning_OperationInfo_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_longrunning_OperationInfo_fieldAccessorTable;
 
-  public static com.google.protobuf.Descriptors.FileDescriptor
-      getDescriptor() {
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     return descriptor;
   }
-  private static  com.google.protobuf.Descriptors.FileDescriptor
-      descriptor;
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
   static {
-    String[] descriptorData = {
-      "\n#google/longrunning/operations.proto\022\022g" +
-      "oogle.longrunning\032\034google/api/annotation" +
-      "s.proto\032\031google/protobuf/any.proto\032\036goog" +
-      "le/protobuf/duration.proto\032\033google/proto" +
-      "buf/empty.proto\032\027google/rpc/status.proto" +
-      "\032 google/protobuf/descriptor.proto\"\250\001\n\tO" +
-      "peration\022\014\n\004name\030\001 \001(\t\022&\n\010metadata\030\002 \001(\013" +
-      "2\024.google.protobuf.Any\022\014\n\004done\030\003 \001(\010\022#\n\005" +
-      "error\030\004 \001(\0132\022.google.rpc.StatusH\000\022(\n\010res" +
-      "ponse\030\005 \001(\0132\024.google.protobuf.AnyH\000B\010\n\006r" +
-      "esult\"#\n\023GetOperationRequest\022\014\n\004name\030\001 \001" +
-      "(\t\"\\\n\025ListOperationsRequest\022\014\n\004name\030\004 \001(" +
-      "\t\022\016\n\006filter\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" +
-      "page_token\030\003 \001(\t\"d\n\026ListOperationsRespon" +
-      "se\0221\n\noperations\030\001 \003(\0132\035.google.longrunn" +
-      "ing.Operation\022\027\n\017next_page_token\030\002 \001(\t\"&" +
-      "\n\026CancelOperationRequest\022\014\n\004name\030\001 \001(\t\"&" +
-      "\n\026DeleteOperationRequest\022\014\n\004name\030\001 \001(\t\"P" +
-      "\n\024WaitOperationRequest\022\014\n\004name\030\001 \001(\t\022*\n\007" +
-      "timeout\030\002 \001(\0132\031.google.protobuf.Duration" +
-      "\"=\n\rOperationInfo\022\025\n\rresponse_type\030\001 \001(\t" +
-      "\022\025\n\rmetadata_type\030\002 \001(\t2\350\004\n\nOperations\022\206" +
-      "\001\n\016ListOperations\022).google.longrunning.L" +
-      "istOperationsRequest\032*.google.longrunnin" +
-      "g.ListOperationsResponse\"\035\202\323\344\223\002\027\022\025/v1/{n" +
-      "ame=operations}\022x\n\014GetOperation\022\'.google" +
-      ".longrunning.GetOperationRequest\032\035.googl" +
-      "e.longrunning.Operation\" \202\323\344\223\002\032\022\030/v1/{na" +
-      "me=operations/**}\022w\n\017DeleteOperation\022*.g" +
-      "oogle.longrunning.DeleteOperationRequest" +
-      "\032\026.google.protobuf.Empty\" \202\323\344\223\002\032*\030/v1/{n" +
-      "ame=operations/**}\022\201\001\n\017CancelOperation\022*" +
-      ".google.longrunning.CancelOperationReque" +
-      "st\032\026.google.protobuf.Empty\"*\202\323\344\223\002$\"\037/v1/" +
-      "{name=operations/**}:cancel:\001*\022Z\n\rWaitOp" +
-      "eration\022(.google.longrunning.WaitOperati" +
-      "onRequest\032\035.google.longrunning.Operation" +
-      "\"\000:Z\n\016operation_info\022\036.google.protobuf.M" +
-      "ethodOptions\030\231\010 \001(\0132!.google.longrunning" +
-      ".OperationInfoB\227\001\n\026com.google.longrunnin" +
-      "gB\017OperationsProtoP\001Z=google.golang.org/" +
-      "genproto/googleapis/longrunning;longrunn" +
-      "ing\370\001\001\252\002\022Google.LongRunning\312\002\022Google\\Lon" +
-      "gRunningb\006proto3"
+    java.lang.String[] descriptorData = {
+      "\n#google/longrunning/operations.proto\022\022g"
+          + "oogle.longrunning\032\034google/api/annotation"
+          + "s.proto\032\027google/api/client.proto\032\031google"
+          + "/protobuf/any.proto\032\036google/protobuf/dur"
+          + "ation.proto\032\033google/protobuf/empty.proto"
+          + "\032\027google/rpc/status.proto\032 google/protob"
+          + "uf/descriptor.proto\"\250\001\n\tOperation\022\014\n\004nam"
+          + "e\030\001 \001(\t\022&\n\010metadata\030\002 \001(\0132\024.google.proto"
+          + "buf.Any\022\014\n\004done\030\003 \001(\010\022#\n\005error\030\004 \001(\0132\022.g"
+          + "oogle.rpc.StatusH\000\022(\n\010response\030\005 \001(\0132\024.g"
+          + "oogle.protobuf.AnyH\000B\010\n\006result\"#\n\023GetOpe"
+          + "rationRequest\022\014\n\004name\030\001 \001(\t\"\\\n\025ListOpera"
+          + "tionsRequest\022\014\n\004name\030\004 \001(\t\022\016\n\006filter\030\001 \001"
+          + "(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001("
+          + "\t\"d\n\026ListOperationsResponse\0221\n\noperation"
+          + "s\030\001 \003(\0132\035.google.longrunning.Operation\022\027"
+          + "\n\017next_page_token\030\002 \001(\t\"&\n\026CancelOperati"
+          + "onRequest\022\014\n\004name\030\001 \001(\t\"&\n\026DeleteOperati"
+          + "onRequest\022\014\n\004name\030\001 \001(\t\"P\n\024WaitOperation"
+          + "Request\022\014\n\004name\030\001 \001(\t\022*\n\007timeout\030\002 \001(\0132\031"
+          + ".google.protobuf.Duration\"=\n\rOperationIn"
+          + "fo\022\025\n\rresponse_type\030\001 \001(\t\022\025\n\rmetadata_ty"
+          + "pe\030\002 \001(\t2\252\005\n\nOperations\022\224\001\n\016ListOperatio"
+          + "ns\022).google.longrunning.ListOperationsRe"
+          + "quest\032*.google.longrunning.ListOperation"
+          + "sResponse\"+\202\323\344\223\002\027\022\025/v1/{name=operations}"
+          + "\332A\013name,filter\022\177\n\014GetOperation\022\'.google."
+          + "longrunning.GetOperationRequest\032\035.google"
+          + ".longrunning.Operation\"\'\202\323\344\223\002\032\022\030/v1/{nam"
+          + "e=operations/**}\332A\004name\022~\n\017DeleteOperati"
+          + "on\022*.google.longrunning.DeleteOperationR"
+          + "equest\032\026.google.protobuf.Empty\"\'\202\323\344\223\002\032*\030"
+          + "/v1/{name=operations/**}\332A\004name\022\210\001\n\017Canc"
+          + "elOperation\022*.google.longrunning.CancelO"
+          + "perationRequest\032\026.google.protobuf.Empty\""
+          + "1\202\323\344\223\002$\"\037/v1/{name=operations/**}:cancel"
+          + ":\001*\332A\004name\022Z\n\rWaitOperation\022(.google.lon"
+          + "grunning.WaitOperationRequest\032\035.google.l"
+          + "ongrunning.Operation\"\000\032\035\312A\032longrunning.g"
+          + "oogleapis.com:Z\n\016operation_info\022\036.google"
+          + ".protobuf.MethodOptions\030\231\010 \001(\0132!.google."
+          + "longrunning.OperationInfoB\227\001\n\026com.google"
+          + ".longrunningB\017OperationsProtoP\001Z=google."
+          + "golang.org/genproto/googleapis/longrunni"
+          + "ng;longrunning\370\001\001\252\002\022Google.LongRunning\312\002"
+          + "\022Google\\LongRunningb\006proto3"
     };
-    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
-        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
-          public com.google.protobuf.ExtensionRegistry assignDescriptors(
-              com.google.protobuf.Descriptors.FileDescriptor root) {
-            descriptor = root;
-            return null;
-          }
-        };
-    com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-          com.google.api.AnnotationsProto.getDescriptor(),
-          com.google.protobuf.AnyProto.getDescriptor(),
-          com.google.protobuf.DurationProto.getDescriptor(),
-          com.google.protobuf.EmptyProto.getDescriptor(),
-          com.google.rpc.StatusProto.getDescriptor(),
-          com.google.protobuf.DescriptorProtos.getDescriptor(),
-        }, assigner);
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.AnnotationsProto.getDescriptor(),
+              com.google.api.ClientProto.getDescriptor(),
+              com.google.protobuf.AnyProto.getDescriptor(),
+              com.google.protobuf.DurationProto.getDescriptor(),
+              com.google.protobuf.EmptyProto.getDescriptor(),
+              com.google.rpc.StatusProto.getDescriptor(),
+              com.google.protobuf.DescriptorProtos.getDescriptor(),
+            });
     internal_static_google_longrunning_Operation_descriptor =
-      getDescriptor().getMessageTypes().get(0);
-    internal_static_google_longrunning_Operation_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_longrunning_Operation_descriptor,
-        new String[] { "Name", "Metadata", "Done", "Error", "Response", "Result", });
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_longrunning_Operation_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_longrunning_Operation_descriptor,
+            new java.lang.String[] {
+              "Name", "Metadata", "Done", "Error", "Response", "Result",
+            });
     internal_static_google_longrunning_GetOperationRequest_descriptor =
-      getDescriptor().getMessageTypes().get(1);
-    internal_static_google_longrunning_GetOperationRequest_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_longrunning_GetOperationRequest_descriptor,
-        new String[] { "Name", });
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_longrunning_GetOperationRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_longrunning_GetOperationRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
     internal_static_google_longrunning_ListOperationsRequest_descriptor =
-      getDescriptor().getMessageTypes().get(2);
-    internal_static_google_longrunning_ListOperationsRequest_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_longrunning_ListOperationsRequest_descriptor,
-        new String[] { "Name", "Filter", "PageSize", "PageToken", });
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_longrunning_ListOperationsRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_longrunning_ListOperationsRequest_descriptor,
+            new java.lang.String[] {
+              "Name", "Filter", "PageSize", "PageToken",
+            });
     internal_static_google_longrunning_ListOperationsResponse_descriptor =
-      getDescriptor().getMessageTypes().get(3);
-    internal_static_google_longrunning_ListOperationsResponse_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_longrunning_ListOperationsResponse_descriptor,
-        new String[] { "Operations", "NextPageToken", });
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_longrunning_ListOperationsResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_longrunning_ListOperationsResponse_descriptor,
+            new java.lang.String[] {
+              "Operations", "NextPageToken",
+            });
     internal_static_google_longrunning_CancelOperationRequest_descriptor =
-      getDescriptor().getMessageTypes().get(4);
-    internal_static_google_longrunning_CancelOperationRequest_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_longrunning_CancelOperationRequest_descriptor,
-        new String[] { "Name", });
+        getDescriptor().getMessageTypes().get(4);
+    internal_static_google_longrunning_CancelOperationRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_longrunning_CancelOperationRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
     internal_static_google_longrunning_DeleteOperationRequest_descriptor =
-      getDescriptor().getMessageTypes().get(5);
-    internal_static_google_longrunning_DeleteOperationRequest_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_longrunning_DeleteOperationRequest_descriptor,
-        new String[] { "Name", });
+        getDescriptor().getMessageTypes().get(5);
+    internal_static_google_longrunning_DeleteOperationRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_longrunning_DeleteOperationRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
     internal_static_google_longrunning_WaitOperationRequest_descriptor =
-      getDescriptor().getMessageTypes().get(6);
-    internal_static_google_longrunning_WaitOperationRequest_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_longrunning_WaitOperationRequest_descriptor,
-        new String[] { "Name", "Timeout", });
+        getDescriptor().getMessageTypes().get(6);
+    internal_static_google_longrunning_WaitOperationRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_longrunning_WaitOperationRequest_descriptor,
+            new java.lang.String[] {
+              "Name", "Timeout",
+            });
     internal_static_google_longrunning_OperationInfo_descriptor =
-      getDescriptor().getMessageTypes().get(7);
-    internal_static_google_longrunning_OperationInfo_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_longrunning_OperationInfo_descriptor,
-        new String[] { "ResponseType", "MetadataType", });
+        getDescriptor().getMessageTypes().get(7);
+    internal_static_google_longrunning_OperationInfo_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_longrunning_OperationInfo_descriptor,
+            new java.lang.String[] {
+              "ResponseType", "MetadataType",
+            });
     operationInfo.internalInit(descriptor.getExtensions().get(0));
     com.google.protobuf.ExtensionRegistry registry =
         com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ClientProto.defaultHost);
     registry.add(com.google.api.AnnotationsProto.http);
-    com.google.protobuf.Descriptors.FileDescriptor
-        .internalUpdateFileDescriptor(descriptor, registry);
+    registry.add(com.google.api.ClientProto.methodSignature);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
     com.google.api.AnnotationsProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
     com.google.protobuf.AnyProto.getDescriptor();
     com.google.protobuf.DurationProto.getDescriptor();
     com.google.protobuf.EmptyProto.getDescriptor();
diff --git a/proto-google-common-protos/src/main/java/com/google/longrunning/WaitOperationRequest.java b/proto-google-common-protos/src/main/java/com/google/longrunning/WaitOperationRequest.java
index 687347e1..eb8d86ec 100644
--- a/proto-google-common-protos/src/main/java/com/google/longrunning/WaitOperationRequest.java
+++ b/proto-google-common-protos/src/main/java/com/google/longrunning/WaitOperationRequest.java
@@ -1,42 +1,65 @@
+/*
+ * 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/longrunning/operations.proto
 
 package com.google.longrunning;
 
 /**
+ *
+ *
  * 
  * The request message for [Operations.WaitOperation][google.longrunning.Operations.WaitOperation].
  * 
* * Protobuf type {@code google.longrunning.WaitOperationRequest} */ -public final class WaitOperationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WaitOperationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.longrunning.WaitOperationRequest) WaitOperationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WaitOperationRequest.newBuilder() to construct. private WaitOperationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WaitOperationRequest() { name_ = ""; } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WaitOperationRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WaitOperationRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -47,92 +70,102 @@ private WaitOperationRequest( case 0: done = true; break; - case 10: { - String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (timeout_ != null) { - subBuilder = timeout_.toBuilder(); + name_ = s; + break; } - timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timeout_); - timeout_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (timeout_ != null) { + subBuilder = timeout_.toBuilder(); + } + timeout_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeout_); + timeout_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return OperationsProto.internal_static_google_longrunning_WaitOperationRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_WaitOperationRequest_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return OperationsProto.internal_static_google_longrunning_WaitOperationRequest_fieldAccessorTable + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_WaitOperationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - WaitOperationRequest.class, Builder.class); + com.google.longrunning.WaitOperationRequest.class, + com.google.longrunning.WaitOperationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - private volatile Object name_; + private volatile java.lang.Object name_; /** + * + * *
    * The name of the operation resource to wait on.
    * 
* * string name = 1; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the operation resource to wait on.
    * 
* * string name = 1; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -143,6 +176,8 @@ public String getName() { public static final int TIMEOUT_FIELD_NUMBER = 2; private com.google.protobuf.Duration timeout_; /** + * + * *
    * The maximum duration to wait before timing out. If left blank, the wait
    * will be at most the time permitted by the underlying HTTP/RPC protocol.
@@ -150,11 +185,15 @@ public String getName() {
    * 
* * .google.protobuf.Duration timeout = 2; + * + * @return Whether the timeout field is set. */ public boolean hasTimeout() { return timeout_ != null; } /** + * + * *
    * The maximum duration to wait before timing out. If left blank, the wait
    * will be at most the time permitted by the underlying HTTP/RPC protocol.
@@ -162,11 +201,15 @@ public boolean hasTimeout() {
    * 
* * .google.protobuf.Duration timeout = 2; + * + * @return The timeout. */ public com.google.protobuf.Duration getTimeout() { return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } /** + * + * *
    * The maximum duration to wait before timing out. If left blank, the wait
    * will be at most the time permitted by the underlying HTTP/RPC protocol.
@@ -180,7 +223,8 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-  @Override
+
+  @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
     if (isInitialized == 1) return true;
@@ -190,9 +234,8 @@ public final boolean isInitialized() {
     return true;
   }
 
-  @Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  @java.lang.Override
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!getNameBytes().isEmpty()) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -202,7 +245,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     unknownFields.writeTo(output);
   }
 
-  @Override
+  @java.lang.Override
   public int getSerializedSize() {
     int size = memoizedSize;
     if (size != -1) return size;
@@ -212,36 +255,34 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (timeout_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getTimeout());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTimeout());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
     return size;
   }
 
-  @Override
-  public boolean equals(final Object obj) {
+  @java.lang.Override
+  public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
-    if (!(obj instanceof WaitOperationRequest)) {
+    if (!(obj instanceof com.google.longrunning.WaitOperationRequest)) {
       return super.equals(obj);
     }
-    WaitOperationRequest other = (WaitOperationRequest) obj;
+    com.google.longrunning.WaitOperationRequest other =
+        (com.google.longrunning.WaitOperationRequest) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (hasTimeout() != other.hasTimeout()) return false;
     if (hasTimeout()) {
-      if (!getTimeout()
-          .equals(other.getTimeout())) return false;
+      if (!getTimeout().equals(other.getTimeout())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
 
-  @Override
+  @java.lang.Override
   public int hashCode() {
     if (memoizedHashCode != 0) {
       return memoizedHashCode;
@@ -259,118 +300,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static WaitOperationRequest parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.longrunning.WaitOperationRequest parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static WaitOperationRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.longrunning.WaitOperationRequest parseFrom(
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static WaitOperationRequest parseFrom(
+
+  public static com.google.longrunning.WaitOperationRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static WaitOperationRequest parseFrom(
+
+  public static com.google.longrunning.WaitOperationRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static WaitOperationRequest parseFrom(byte[] data)
+
+  public static com.google.longrunning.WaitOperationRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static WaitOperationRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.longrunning.WaitOperationRequest parseFrom(
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static WaitOperationRequest parseFrom(java.io.InputStream input)
+
+  public static com.google.longrunning.WaitOperationRequest 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 WaitOperationRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.longrunning.WaitOperationRequest parseFrom(
+      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 WaitOperationRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.longrunning.WaitOperationRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
-  public static WaitOperationRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.longrunning.WaitOperationRequest parseDelimitedFrom(
+      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 WaitOperationRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.longrunning.WaitOperationRequest parseFrom(
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
-  public static WaitOperationRequest parseFrom(
+
+  public static com.google.longrunning.WaitOperationRequest 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();
   }
 
-  @Override
-  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(WaitOperationRequest prototype) {
+
+  public static Builder newBuilder(com.google.longrunning.WaitOperationRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-  @Override
+
+  @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);
   }
 
-  @Override
-  protected Builder newBuilderForType(
-      BuilderParent parent) {
+  @java.lang.Override
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The request message for [Operations.WaitOperation][google.longrunning.Operations.WaitOperation].
    * 
* * Protobuf type {@code google.longrunning.WaitOperationRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.longrunning.WaitOperationRequest) com.google.longrunning.WaitOperationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return OperationsProto.internal_static_google_longrunning_WaitOperationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_WaitOperationRequest_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return OperationsProto.internal_static_google_longrunning_WaitOperationRequest_fieldAccessorTable + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_WaitOperationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - WaitOperationRequest.class, Builder.class); + com.google.longrunning.WaitOperationRequest.class, + com.google.longrunning.WaitOperationRequest.Builder.class); } // Construct using com.google.longrunning.WaitOperationRequest.newBuilder() @@ -378,17 +428,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @Override + + @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -402,29 +451,30 @@ public Builder clear() { return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return OperationsProto.internal_static_google_longrunning_WaitOperationRequest_descriptor; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.longrunning.OperationsProto + .internal_static_google_longrunning_WaitOperationRequest_descriptor; } - @Override - public WaitOperationRequest getDefaultInstanceForType() { - return WaitOperationRequest.getDefaultInstance(); + @java.lang.Override + public com.google.longrunning.WaitOperationRequest getDefaultInstanceForType() { + return com.google.longrunning.WaitOperationRequest.getDefaultInstance(); } - @Override - public WaitOperationRequest build() { - WaitOperationRequest result = buildPartial(); + @java.lang.Override + public com.google.longrunning.WaitOperationRequest build() { + com.google.longrunning.WaitOperationRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public WaitOperationRequest buildPartial() { - WaitOperationRequest result = new WaitOperationRequest(this); + @java.lang.Override + public com.google.longrunning.WaitOperationRequest buildPartial() { + com.google.longrunning.WaitOperationRequest result = + new com.google.longrunning.WaitOperationRequest(this); result.name_ = name_; if (timeoutBuilder_ == null) { result.timeout_ = timeout_; @@ -435,50 +485,51 @@ public WaitOperationRequest buildPartial() { return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof WaitOperationRequest) { - return mergeFrom((WaitOperationRequest)other); + if (other instanceof com.google.longrunning.WaitOperationRequest) { + return mergeFrom((com.google.longrunning.WaitOperationRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(WaitOperationRequest other) { - if (other == WaitOperationRequest.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.longrunning.WaitOperationRequest other) { + if (other == com.google.longrunning.WaitOperationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -491,21 +542,21 @@ public Builder mergeFrom(WaitOperationRequest other) { return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - WaitOperationRequest parsedMessage = null; + com.google.longrunning.WaitOperationRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (WaitOperationRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.longrunning.WaitOperationRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -515,40 +566,45 @@ public Builder mergeFrom( return this; } - private Object name_ = ""; + private java.lang.Object name_ = ""; /** + * + * *
      * The name of the operation resource to wait on.
      * 
* * string name = 1; + * + * @return The name. */ - public String getName() { - Object ref = name_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The name of the operation resource to wait on.
      * 
* * string name = 1; + * + * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { - Object ref = name_; + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -556,49 +612,61 @@ public String getName() { } } /** + * + * *
      * The name of the operation resource to wait on.
      * 
* * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ - public Builder setName( - String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The name of the operation resource to wait on.
      * 
* * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The name of the operation resource to wait on.
      * 
* * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -606,8 +674,13 @@ public Builder setNameBytes( private com.google.protobuf.Duration timeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + timeoutBuilder_; /** + * + * *
      * The maximum duration to wait before timing out. If left blank, the wait
      * will be at most the time permitted by the underlying HTTP/RPC protocol.
@@ -615,11 +688,15 @@ public Builder setNameBytes(
      * 
* * .google.protobuf.Duration timeout = 2; + * + * @return Whether the timeout field is set. */ public boolean hasTimeout() { return timeoutBuilder_ != null || timeout_ != null; } /** + * + * *
      * The maximum duration to wait before timing out. If left blank, the wait
      * will be at most the time permitted by the underlying HTTP/RPC protocol.
@@ -627,6 +704,8 @@ public boolean hasTimeout() {
      * 
* * .google.protobuf.Duration timeout = 2; + * + * @return The timeout. */ public com.google.protobuf.Duration getTimeout() { if (timeoutBuilder_ == null) { @@ -636,6 +715,8 @@ public com.google.protobuf.Duration getTimeout() { } } /** + * + * *
      * The maximum duration to wait before timing out. If left blank, the wait
      * will be at most the time permitted by the underlying HTTP/RPC protocol.
@@ -658,6 +739,8 @@ public Builder setTimeout(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The maximum duration to wait before timing out. If left blank, the wait
      * will be at most the time permitted by the underlying HTTP/RPC protocol.
@@ -666,8 +749,7 @@ public Builder setTimeout(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration timeout = 2;
      */
-    public Builder setTimeout(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) {
       if (timeoutBuilder_ == null) {
         timeout_ = builderForValue.build();
         onChanged();
@@ -678,6 +760,8 @@ public Builder setTimeout(
       return this;
     }
     /**
+     *
+     *
      * 
      * The maximum duration to wait before timing out. If left blank, the wait
      * will be at most the time permitted by the underlying HTTP/RPC protocol.
@@ -690,7 +774,7 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) {
       if (timeoutBuilder_ == null) {
         if (timeout_ != null) {
           timeout_ =
-            com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial();
         } else {
           timeout_ = value;
         }
@@ -702,6 +786,8 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The maximum duration to wait before timing out. If left blank, the wait
      * will be at most the time permitted by the underlying HTTP/RPC protocol.
@@ -722,6 +808,8 @@ public Builder clearTimeout() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The maximum duration to wait before timing out. If left blank, the wait
      * will be at most the time permitted by the underlying HTTP/RPC protocol.
@@ -731,11 +819,13 @@ public Builder clearTimeout() {
      * .google.protobuf.Duration timeout = 2;
      */
     public com.google.protobuf.Duration.Builder getTimeoutBuilder() {
-      
+
       onChanged();
       return getTimeoutFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The maximum duration to wait before timing out. If left blank, the wait
      * will be at most the time permitted by the underlying HTTP/RPC protocol.
@@ -748,11 +838,12 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
       if (timeoutBuilder_ != null) {
         return timeoutBuilder_.getMessageOrBuilder();
       } else {
-        return timeout_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : timeout_;
+        return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_;
       }
     }
     /**
+     *
+     *
      * 
      * The maximum duration to wait before timing out. If left blank, the wait
      * will be at most the time permitted by the underlying HTTP/RPC protocol.
@@ -762,68 +853,69 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
      * .google.protobuf.Duration timeout = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getTimeoutFieldBuilder() {
       if (timeoutBuilder_ == null) {
-        timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getTimeout(),
-                getParentForChildren(),
-                isClean());
+        timeoutBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getTimeout(), getParentForChildren(), isClean());
         timeout_ = null;
       }
       return timeoutBuilder_;
     }
-    @Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+
+    @java.lang.Override
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
-    @Override
+    @java.lang.Override
     public final Builder mergeUnknownFields(
         final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.longrunning.WaitOperationRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.longrunning.WaitOperationRequest)
-  private static final WaitOperationRequest DEFAULT_INSTANCE;
+  private static final com.google.longrunning.WaitOperationRequest DEFAULT_INSTANCE;
+
   static {
-    DEFAULT_INSTANCE = new WaitOperationRequest();
+    DEFAULT_INSTANCE = new com.google.longrunning.WaitOperationRequest();
   }
 
-  public static WaitOperationRequest getDefaultInstance() {
+  public static com.google.longrunning.WaitOperationRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @Override
-    public WaitOperationRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new WaitOperationRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public WaitOperationRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new WaitOperationRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
   }
 
-  @Override
+  @java.lang.Override
   public com.google.protobuf.Parser getParserForType() {
     return PARSER;
   }
 
-  @Override
-  public WaitOperationRequest getDefaultInstanceForType() {
+  @java.lang.Override
+  public com.google.longrunning.WaitOperationRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-common-protos/src/main/java/com/google/longrunning/WaitOperationRequestOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/longrunning/WaitOperationRequestOrBuilder.java
index 3a379323..4fe1f938 100644
--- a/proto-google-common-protos/src/main/java/com/google/longrunning/WaitOperationRequestOrBuilder.java
+++ b/proto-google-common-protos/src/main/java/com/google/longrunning/WaitOperationRequestOrBuilder.java
@@ -1,31 +1,56 @@
+/*
+ * 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/longrunning/operations.proto
 
 package com.google.longrunning;
 
-public interface WaitOperationRequestOrBuilder extends
+public interface WaitOperationRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.longrunning.WaitOperationRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The name of the operation resource to wait on.
    * 
* * string name = 1; + * + * @return The name. */ - String getName(); + java.lang.String getName(); /** + * + * *
    * The name of the operation resource to wait on.
    * 
* * string name = 1; + * + * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The maximum duration to wait before timing out. If left blank, the wait
    * will be at most the time permitted by the underlying HTTP/RPC protocol.
@@ -33,9 +58,13 @@ public interface WaitOperationRequestOrBuilder extends
    * 
* * .google.protobuf.Duration timeout = 2; + * + * @return Whether the timeout field is set. */ boolean hasTimeout(); /** + * + * *
    * The maximum duration to wait before timing out. If left blank, the wait
    * will be at most the time permitted by the underlying HTTP/RPC protocol.
@@ -43,9 +72,13 @@ public interface WaitOperationRequestOrBuilder extends
    * 
* * .google.protobuf.Duration timeout = 2; + * + * @return The timeout. */ com.google.protobuf.Duration getTimeout(); /** + * + * *
    * The maximum duration to wait before timing out. If left blank, the wait
    * will be at most the time permitted by the underlying HTTP/RPC protocol.
diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/BadRequest.java b/proto-google-common-protos/src/main/java/com/google/rpc/BadRequest.java
index d4321b72..eb233b98 100644
--- a/proto-google-common-protos/src/main/java/com/google/rpc/BadRequest.java
+++ b/proto-google-common-protos/src/main/java/com/google/rpc/BadRequest.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/rpc/error_details.proto
 
 package com.google.rpc;
 
 /**
+ *
+ *
  * 
  * Describes violations in a client request. This error type focuses on the
  * syntactic aspects of the request.
@@ -11,31 +28,38 @@
  *
  * Protobuf type {@code google.rpc.BadRequest}
  */
-public  final class BadRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BadRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.rpc.BadRequest)
     BadRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BadRequest.newBuilder() to construct.
   private BadRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private BadRequest() {
     fieldViolations_ = java.util.Collections.emptyList();
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new BadRequest();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private BadRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -48,29 +72,31 @@ private BadRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              fieldViolations_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                fieldViolations_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              fieldViolations_.add(
+                  input.readMessage(
+                      com.google.rpc.BadRequest.FieldViolation.parser(), extensionRegistry));
+              break;
             }
-            fieldViolations_.add(
-                input.readMessage(FieldViolation.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         fieldViolations_ = java.util.Collections.unmodifiableList(fieldViolations_);
@@ -79,24 +105,27 @@ private BadRequest(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_BadRequest_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_BadRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            BadRequest.class, Builder.class);
+            com.google.rpc.BadRequest.class, com.google.rpc.BadRequest.Builder.class);
   }
 
-  public interface FieldViolationOrBuilder extends
+  public interface FieldViolationOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.rpc.BadRequest.FieldViolation)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * A path leading to a field in the request body. The value will be a
      * sequence of dot-separated identifiers that identify a protocol buffer
@@ -104,9 +133,13 @@ public interface FieldViolationOrBuilder extends
      * 
* * string field = 1; + * + * @return The field. */ - String getField(); + java.lang.String getField(); /** + * + * *
      * A path leading to a field in the request body. The value will be a
      * sequence of dot-separated identifiers that identify a protocol buffer
@@ -114,63 +147,79 @@ public interface FieldViolationOrBuilder extends
      * 
* * string field = 1; + * + * @return The bytes for field. */ - com.google.protobuf.ByteString - getFieldBytes(); + com.google.protobuf.ByteString getFieldBytes(); /** + * + * *
      * A description of why the request element is bad.
      * 
* * string description = 2; + * + * @return The description. */ - String getDescription(); + java.lang.String getDescription(); /** + * + * *
      * A description of why the request element is bad.
      * 
* * string description = 2; + * + * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); } /** + * + * *
    * A message type used to describe a single bad request field.
    * 
* * Protobuf type {@code google.rpc.BadRequest.FieldViolation} */ - public static final class FieldViolation extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class FieldViolation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.rpc.BadRequest.FieldViolation) FieldViolationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FieldViolation.newBuilder() to construct. private FieldViolation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private FieldViolation() { field_ = ""; description_ = ""; } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FieldViolation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private FieldViolation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -181,53 +230,59 @@ private FieldViolation( case 0: done = true; break; - case 10: { - String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - field_ = s; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); + field_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + description_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_BadRequest_FieldViolation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.rpc.ErrorDetailsProto + .internal_static_google_rpc_BadRequest_FieldViolation_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_BadRequest_FieldViolation_fieldAccessorTable + return com.google.rpc.ErrorDetailsProto + .internal_static_google_rpc_BadRequest_FieldViolation_fieldAccessorTable .ensureFieldAccessorsInitialized( - FieldViolation.class, Builder.class); + com.google.rpc.BadRequest.FieldViolation.class, + com.google.rpc.BadRequest.FieldViolation.Builder.class); } public static final int FIELD_FIELD_NUMBER = 1; - private volatile Object field_; + private volatile java.lang.Object field_; /** + * + * *
      * A path leading to a field in the request body. The value will be a
      * sequence of dot-separated identifiers that identify a protocol buffer
@@ -235,20 +290,23 @@ private FieldViolation(
      * 
* * string field = 1; + * + * @return The field. */ - public String getField() { - Object ref = field_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getField() { + java.lang.Object ref = field_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); field_ = s; return s; } } /** + * + * *
      * A path leading to a field in the request body. The value will be a
      * sequence of dot-separated identifiers that identify a protocol buffer
@@ -256,14 +314,14 @@ public String getField() {
      * 
* * string field = 1; + * + * @return The bytes for field. */ - public com.google.protobuf.ByteString - getFieldBytes() { - Object ref = field_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getFieldBytes() { + java.lang.Object ref = field_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); field_ = b; return b; } else { @@ -272,40 +330,45 @@ public String getField() { } public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile Object description_; + private volatile java.lang.Object description_; /** + * + * *
      * A description of why the request element is bad.
      * 
* * string description = 2; + * + * @return The description. */ - public String getDescription() { - Object ref = description_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
      * A description of why the request element is bad.
      * 
* * string description = 2; + * + * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + 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); description_ = b; return b; } else { @@ -314,7 +377,8 @@ public String getDescription() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -324,9 +388,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getFieldBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, field_); } @@ -336,7 +399,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -353,25 +416,24 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof FieldViolation)) { + if (!(obj instanceof com.google.rpc.BadRequest.FieldViolation)) { return super.equals(obj); } - FieldViolation other = (FieldViolation) obj; + com.google.rpc.BadRequest.FieldViolation other = + (com.google.rpc.BadRequest.FieldViolation) obj; - if (!getField() - .equals(other.getField())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getField().equals(other.getField())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -387,118 +449,129 @@ public int hashCode() { return hash; } - public static FieldViolation parseFrom( - java.nio.ByteBuffer data) + public static com.google.rpc.BadRequest.FieldViolation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static FieldViolation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.BadRequest.FieldViolation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static FieldViolation parseFrom( + + public static com.google.rpc.BadRequest.FieldViolation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static FieldViolation parseFrom( + + public static com.google.rpc.BadRequest.FieldViolation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static FieldViolation parseFrom(byte[] data) + + public static com.google.rpc.BadRequest.FieldViolation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static FieldViolation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.BadRequest.FieldViolation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static FieldViolation parseFrom(java.io.InputStream input) + + public static com.google.rpc.BadRequest.FieldViolation 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 FieldViolation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.BadRequest.FieldViolation parseFrom( + 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 FieldViolation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.rpc.BadRequest.FieldViolation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static FieldViolation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.BadRequest.FieldViolation parseDelimitedFrom( + 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 FieldViolation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.rpc.BadRequest.FieldViolation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static FieldViolation parseFrom( + + public static com.google.rpc.BadRequest.FieldViolation 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(FieldViolation prototype) { + + public static Builder newBuilder(com.google.rpc.BadRequest.FieldViolation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
      * A message type used to describe a single bad request field.
      * 
* * Protobuf type {@code google.rpc.BadRequest.FieldViolation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.rpc.BadRequest.FieldViolation) - FieldViolationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_BadRequest_FieldViolation_descriptor; + com.google.rpc.BadRequest.FieldViolationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.rpc.ErrorDetailsProto + .internal_static_google_rpc_BadRequest_FieldViolation_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_BadRequest_FieldViolation_fieldAccessorTable + return com.google.rpc.ErrorDetailsProto + .internal_static_google_rpc_BadRequest_FieldViolation_fieldAccessorTable .ensureFieldAccessorsInitialized( - FieldViolation.class, Builder.class); + com.google.rpc.BadRequest.FieldViolation.class, + com.google.rpc.BadRequest.FieldViolation.Builder.class); } // Construct using com.google.rpc.BadRequest.FieldViolation.newBuilder() @@ -506,17 +579,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @Override + + @java.lang.Override public Builder clear() { super.clear(); field_ = ""; @@ -526,79 +598,83 @@ public Builder clear() { return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_BadRequest_FieldViolation_descriptor; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.rpc.ErrorDetailsProto + .internal_static_google_rpc_BadRequest_FieldViolation_descriptor; } - @Override - public FieldViolation getDefaultInstanceForType() { - return FieldViolation.getDefaultInstance(); + @java.lang.Override + public com.google.rpc.BadRequest.FieldViolation getDefaultInstanceForType() { + return com.google.rpc.BadRequest.FieldViolation.getDefaultInstance(); } - @Override - public FieldViolation build() { - FieldViolation result = buildPartial(); + @java.lang.Override + public com.google.rpc.BadRequest.FieldViolation build() { + com.google.rpc.BadRequest.FieldViolation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public FieldViolation buildPartial() { - FieldViolation result = new FieldViolation(this); + @java.lang.Override + public com.google.rpc.BadRequest.FieldViolation buildPartial() { + com.google.rpc.BadRequest.FieldViolation result = + new com.google.rpc.BadRequest.FieldViolation(this); result.field_ = field_; result.description_ = description_; onBuilt(); return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof FieldViolation) { - return mergeFrom((FieldViolation)other); + if (other instanceof com.google.rpc.BadRequest.FieldViolation) { + return mergeFrom((com.google.rpc.BadRequest.FieldViolation) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(FieldViolation other) { - if (other == FieldViolation.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.rpc.BadRequest.FieldViolation other) { + if (other == com.google.rpc.BadRequest.FieldViolation.getDefaultInstance()) return this; if (!other.getField().isEmpty()) { field_ = other.field_; onChanged(); @@ -612,21 +688,21 @@ public Builder mergeFrom(FieldViolation other) { return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - FieldViolation parsedMessage = null; + com.google.rpc.BadRequest.FieldViolation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (FieldViolation) e.getUnfinishedMessage(); + parsedMessage = (com.google.rpc.BadRequest.FieldViolation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -636,8 +712,10 @@ public Builder mergeFrom( return this; } - private Object field_ = ""; + private java.lang.Object field_ = ""; /** + * + * *
        * A path leading to a field in the request body. The value will be a
        * sequence of dot-separated identifiers that identify a protocol buffer
@@ -645,20 +723,23 @@ public Builder mergeFrom(
        * 
* * string field = 1; + * + * @return The field. */ - public String getField() { - Object ref = field_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getField() { + java.lang.Object ref = field_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); field_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
        * A path leading to a field in the request body. The value will be a
        * sequence of dot-separated identifiers that identify a protocol buffer
@@ -666,14 +747,14 @@ public String getField() {
        * 
* * string field = 1; + * + * @return The bytes for field. */ - public com.google.protobuf.ByteString - getFieldBytes() { - Object ref = field_; + public com.google.protobuf.ByteString getFieldBytes() { + java.lang.Object ref = field_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); field_ = b; return b; } else { @@ -681,6 +762,8 @@ public String getField() { } } /** + * + * *
        * A path leading to a field in the request body. The value will be a
        * sequence of dot-separated identifiers that identify a protocol buffer
@@ -688,18 +771,22 @@ public String getField() {
        * 
* * string field = 1; + * + * @param value The field to set. + * @return This builder for chaining. */ - public Builder setField( - String value) { + public Builder setField(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + field_ = value; onChanged(); return this; } /** + * + * *
        * A path leading to a field in the request body. The value will be a
        * sequence of dot-separated identifiers that identify a protocol buffer
@@ -707,14 +794,18 @@ public Builder setField(
        * 
* * string field = 1; + * + * @return This builder for chaining. */ public Builder clearField() { - + field_ = getDefaultInstance().getField(); onChanged(); return this; } /** + * + * *
        * A path leading to a field in the request body. The value will be a
        * sequence of dot-separated identifiers that identify a protocol buffer
@@ -722,53 +813,60 @@ public Builder clearField() {
        * 
* * string field = 1; + * + * @param value The bytes for field to set. + * @return This builder for chaining. */ - public Builder setFieldBytes( - com.google.protobuf.ByteString value) { + public Builder setFieldBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + field_ = value; onChanged(); return this; } - private Object description_ = ""; + private java.lang.Object description_ = ""; /** + * + * *
        * A description of why the request element is bad.
        * 
* * string description = 2; + * + * @return The description. */ - public String getDescription() { - Object ref = description_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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; + java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
        * A description of why the request element is bad.
        * 
* * string description = 2; + * + * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - Object ref = description_; + 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( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -776,130 +874,148 @@ public String getDescription() { } } /** + * + * *
        * A description of why the request element is bad.
        * 
* * string description = 2; + * + * @param value The description to set. + * @return This builder for chaining. */ - public Builder setDescription( - String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
        * A description of why the request element is bad.
        * 
* * string description = 2; + * + * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
        * A description of why the request element is bad.
        * 
* * string description = 2; + * + * @param value The bytes for description to set. + * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - @Override + + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.rpc.BadRequest.FieldViolation) } // @@protoc_insertion_point(class_scope:google.rpc.BadRequest.FieldViolation) - private static final FieldViolation DEFAULT_INSTANCE; + private static final com.google.rpc.BadRequest.FieldViolation DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new FieldViolation(); + DEFAULT_INSTANCE = new com.google.rpc.BadRequest.FieldViolation(); } - public static FieldViolation getDefaultInstance() { + public static com.google.rpc.BadRequest.FieldViolation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public FieldViolation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FieldViolation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FieldViolation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FieldViolation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public FieldViolation getDefaultInstanceForType() { + @java.lang.Override + public com.google.rpc.BadRequest.FieldViolation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int FIELD_VIOLATIONS_FIELD_NUMBER = 1; - private java.util.List fieldViolations_; + private java.util.List fieldViolations_; /** + * + * *
    * Describes all violations in a client request.
    * 
* * repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; */ - public java.util.List getFieldViolationsList() { + public java.util.List getFieldViolationsList() { return fieldViolations_; } /** + * + * *
    * Describes all violations in a client request.
    * 
* * repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; */ - public java.util.List + public java.util.List getFieldViolationsOrBuilderList() { return fieldViolations_; } /** + * + * *
    * Describes all violations in a client request.
    * 
@@ -910,29 +1026,33 @@ public int getFieldViolationsCount() { return fieldViolations_.size(); } /** + * + * *
    * Describes all violations in a client request.
    * 
* * repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; */ - public FieldViolation getFieldViolations(int index) { + public com.google.rpc.BadRequest.FieldViolation getFieldViolations(int index) { return fieldViolations_.get(index); } /** + * + * *
    * Describes all violations in a client request.
    * 
* * repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; */ - public FieldViolationOrBuilder getFieldViolationsOrBuilder( - int index) { + public com.google.rpc.BadRequest.FieldViolationOrBuilder getFieldViolationsOrBuilder(int index) { return fieldViolations_.get(index); } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -942,47 +1062,44 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < fieldViolations_.size(); i++) { output.writeMessage(1, fieldViolations_.get(i)); } unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < fieldViolations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, fieldViolations_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, fieldViolations_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof BadRequest)) { + if (!(obj instanceof com.google.rpc.BadRequest)) { return super.equals(obj); } - BadRequest other = (BadRequest) obj; + com.google.rpc.BadRequest other = (com.google.rpc.BadRequest) obj; - if (!getFieldViolationsList() - .equals(other.getFieldViolationsList())) return false; + if (!getFieldViolationsList().equals(other.getFieldViolationsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -998,97 +1115,103 @@ public int hashCode() { return hash; } - public static BadRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.rpc.BadRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static BadRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.BadRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static BadRequest parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.rpc.BadRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static BadRequest parseFrom( + + public static com.google.rpc.BadRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static BadRequest parseFrom(byte[] data) + + public static com.google.rpc.BadRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static BadRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.BadRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static BadRequest parseFrom(java.io.InputStream input) + + public static com.google.rpc.BadRequest 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 BadRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.BadRequest parseFrom( + 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 BadRequest parseDelimitedFrom(java.io.InputStream input) + + public static com.google.rpc.BadRequest 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 BadRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.BadRequest parseDelimitedFrom( + 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 BadRequest parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.rpc.BadRequest 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 BadRequest parseFrom( + + public static com.google.rpc.BadRequest 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(BadRequest prototype) { + + public static Builder newBuilder(com.google.rpc.BadRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Describes violations in a client request. This error type focuses on the
    * syntactic aspects of the request.
@@ -1096,21 +1219,21 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.rpc.BadRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.rpc.BadRequest)
       com.google.rpc.BadRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_BadRequest_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_BadRequest_fieldAccessorTable
+      return com.google.rpc.ErrorDetailsProto
+          .internal_static_google_rpc_BadRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              BadRequest.class, Builder.class);
+              com.google.rpc.BadRequest.class, com.google.rpc.BadRequest.Builder.class);
     }
 
     // Construct using com.google.rpc.BadRequest.newBuilder()
@@ -1118,18 +1241,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getFieldViolationsFieldBuilder();
       }
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       if (fieldViolationsBuilder_ == null) {
@@ -1141,29 +1264,28 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_BadRequest_descriptor;
     }
 
-    @Override
-    public BadRequest getDefaultInstanceForType() {
-      return BadRequest.getDefaultInstance();
+    @java.lang.Override
+    public com.google.rpc.BadRequest getDefaultInstanceForType() {
+      return com.google.rpc.BadRequest.getDefaultInstance();
     }
 
-    @Override
-    public BadRequest build() {
-      BadRequest result = buildPartial();
+    @java.lang.Override
+    public com.google.rpc.BadRequest build() {
+      com.google.rpc.BadRequest result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public BadRequest buildPartial() {
-      BadRequest result = new BadRequest(this);
+    @java.lang.Override
+    public com.google.rpc.BadRequest buildPartial() {
+      com.google.rpc.BadRequest result = new com.google.rpc.BadRequest(this);
       int from_bitField0_ = bitField0_;
       if (fieldViolationsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -1178,50 +1300,51 @@ public BadRequest buildPartial() {
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof BadRequest) {
-        return mergeFrom((BadRequest)other);
+      if (other instanceof com.google.rpc.BadRequest) {
+        return mergeFrom((com.google.rpc.BadRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(BadRequest other) {
-      if (other == BadRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.rpc.BadRequest other) {
+      if (other == com.google.rpc.BadRequest.getDefaultInstance()) return this;
       if (fieldViolationsBuilder_ == null) {
         if (!other.fieldViolations_.isEmpty()) {
           if (fieldViolations_.isEmpty()) {
@@ -1240,9 +1363,10 @@ public Builder mergeFrom(BadRequest other) {
             fieldViolationsBuilder_ = null;
             fieldViolations_ = other.fieldViolations_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            fieldViolationsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getFieldViolationsFieldBuilder() : null;
+            fieldViolationsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getFieldViolationsFieldBuilder()
+                    : null;
           } else {
             fieldViolationsBuilder_.addAllMessages(other.fieldViolations_);
           }
@@ -1253,21 +1377,21 @@ public Builder mergeFrom(BadRequest other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      BadRequest parsedMessage = null;
+      com.google.rpc.BadRequest parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (BadRequest) e.getUnfinishedMessage();
+        parsedMessage = (com.google.rpc.BadRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1276,28 +1400,36 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List fieldViolations_ =
-      java.util.Collections.emptyList();
+    private java.util.List fieldViolations_ =
+        java.util.Collections.emptyList();
+
     private void ensureFieldViolationsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        fieldViolations_ = new java.util.ArrayList(fieldViolations_);
+        fieldViolations_ =
+            new java.util.ArrayList(fieldViolations_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        FieldViolation, FieldViolation.Builder, FieldViolationOrBuilder> fieldViolationsBuilder_;
+            com.google.rpc.BadRequest.FieldViolation,
+            com.google.rpc.BadRequest.FieldViolation.Builder,
+            com.google.rpc.BadRequest.FieldViolationOrBuilder>
+        fieldViolationsBuilder_;
 
     /**
+     *
+     *
      * 
      * Describes all violations in a client request.
      * 
* * repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; */ - public java.util.List getFieldViolationsList() { + public java.util.List getFieldViolationsList() { if (fieldViolationsBuilder_ == null) { return java.util.Collections.unmodifiableList(fieldViolations_); } else { @@ -1305,6 +1437,8 @@ public java.util.List getFieldViolationsList() { } } /** + * + * *
      * Describes all violations in a client request.
      * 
@@ -1319,13 +1453,15 @@ public int getFieldViolationsCount() { } } /** + * + * *
      * Describes all violations in a client request.
      * 
* * repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; */ - public FieldViolation getFieldViolations(int index) { + public com.google.rpc.BadRequest.FieldViolation getFieldViolations(int index) { if (fieldViolationsBuilder_ == null) { return fieldViolations_.get(index); } else { @@ -1333,14 +1469,15 @@ public FieldViolation getFieldViolations(int index) { } } /** + * + * *
      * Describes all violations in a client request.
      * 
* * repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; */ - public Builder setFieldViolations( - int index, FieldViolation value) { + public Builder setFieldViolations(int index, com.google.rpc.BadRequest.FieldViolation value) { if (fieldViolationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1354,6 +1491,8 @@ public Builder setFieldViolations( return this; } /** + * + * *
      * Describes all violations in a client request.
      * 
@@ -1361,7 +1500,7 @@ public Builder setFieldViolations( * repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; */ public Builder setFieldViolations( - int index, FieldViolation.Builder builderForValue) { + int index, com.google.rpc.BadRequest.FieldViolation.Builder builderForValue) { if (fieldViolationsBuilder_ == null) { ensureFieldViolationsIsMutable(); fieldViolations_.set(index, builderForValue.build()); @@ -1372,13 +1511,15 @@ public Builder setFieldViolations( return this; } /** + * + * *
      * Describes all violations in a client request.
      * 
* * repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; */ - public Builder addFieldViolations(FieldViolation value) { + public Builder addFieldViolations(com.google.rpc.BadRequest.FieldViolation value) { if (fieldViolationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1392,14 +1533,15 @@ public Builder addFieldViolations(FieldViolation value) { return this; } /** + * + * *
      * Describes all violations in a client request.
      * 
* * repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; */ - public Builder addFieldViolations( - int index, FieldViolation value) { + public Builder addFieldViolations(int index, com.google.rpc.BadRequest.FieldViolation value) { if (fieldViolationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1413,6 +1555,8 @@ public Builder addFieldViolations( return this; } /** + * + * *
      * Describes all violations in a client request.
      * 
@@ -1420,7 +1564,7 @@ public Builder addFieldViolations( * repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; */ public Builder addFieldViolations( - FieldViolation.Builder builderForValue) { + com.google.rpc.BadRequest.FieldViolation.Builder builderForValue) { if (fieldViolationsBuilder_ == null) { ensureFieldViolationsIsMutable(); fieldViolations_.add(builderForValue.build()); @@ -1431,6 +1575,8 @@ public Builder addFieldViolations( return this; } /** + * + * *
      * Describes all violations in a client request.
      * 
@@ -1438,7 +1584,7 @@ public Builder addFieldViolations( * repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; */ public Builder addFieldViolations( - int index, FieldViolation.Builder builderForValue) { + int index, com.google.rpc.BadRequest.FieldViolation.Builder builderForValue) { if (fieldViolationsBuilder_ == null) { ensureFieldViolationsIsMutable(); fieldViolations_.add(index, builderForValue.build()); @@ -1449,6 +1595,8 @@ public Builder addFieldViolations( return this; } /** + * + * *
      * Describes all violations in a client request.
      * 
@@ -1456,11 +1604,10 @@ public Builder addFieldViolations( * repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; */ public Builder addAllFieldViolations( - Iterable values) { + java.lang.Iterable values) { if (fieldViolationsBuilder_ == null) { ensureFieldViolationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fieldViolations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fieldViolations_); onChanged(); } else { fieldViolationsBuilder_.addAllMessages(values); @@ -1468,6 +1615,8 @@ public Builder addAllFieldViolations( return this; } /** + * + * *
      * Describes all violations in a client request.
      * 
@@ -1485,6 +1634,8 @@ public Builder clearFieldViolations() { return this; } /** + * + * *
      * Describes all violations in a client request.
      * 
@@ -1502,39 +1653,45 @@ public Builder removeFieldViolations(int index) { return this; } /** + * + * *
      * Describes all violations in a client request.
      * 
* * repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; */ - public FieldViolation.Builder getFieldViolationsBuilder( - int index) { + public com.google.rpc.BadRequest.FieldViolation.Builder getFieldViolationsBuilder(int index) { return getFieldViolationsFieldBuilder().getBuilder(index); } /** + * + * *
      * Describes all violations in a client request.
      * 
* * repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; */ - public FieldViolationOrBuilder getFieldViolationsOrBuilder( + public com.google.rpc.BadRequest.FieldViolationOrBuilder getFieldViolationsOrBuilder( int index) { if (fieldViolationsBuilder_ == null) { - return fieldViolations_.get(index); } else { + return fieldViolations_.get(index); + } else { return fieldViolationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Describes all violations in a client request.
      * 
* * repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; */ - public java.util.List - getFieldViolationsOrBuilderList() { + public java.util.List + getFieldViolationsOrBuilderList() { if (fieldViolationsBuilder_ != null) { return fieldViolationsBuilder_.getMessageOrBuilderList(); } else { @@ -1542,45 +1699,56 @@ public FieldViolationOrBuilder getFieldViolationsOrBuilder( } } /** + * + * *
      * Describes all violations in a client request.
      * 
* * repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; */ - public FieldViolation.Builder addFieldViolationsBuilder() { - return getFieldViolationsFieldBuilder().addBuilder( - FieldViolation.getDefaultInstance()); + public com.google.rpc.BadRequest.FieldViolation.Builder addFieldViolationsBuilder() { + return getFieldViolationsFieldBuilder() + .addBuilder(com.google.rpc.BadRequest.FieldViolation.getDefaultInstance()); } /** + * + * *
      * Describes all violations in a client request.
      * 
* * repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; */ - public FieldViolation.Builder addFieldViolationsBuilder( - int index) { - return getFieldViolationsFieldBuilder().addBuilder( - index, FieldViolation.getDefaultInstance()); + public com.google.rpc.BadRequest.FieldViolation.Builder addFieldViolationsBuilder(int index) { + return getFieldViolationsFieldBuilder() + .addBuilder(index, com.google.rpc.BadRequest.FieldViolation.getDefaultInstance()); } /** + * + * *
      * Describes all violations in a client request.
      * 
* * repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; */ - public java.util.List - getFieldViolationsBuilderList() { + public java.util.List + getFieldViolationsBuilderList() { return getFieldViolationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - FieldViolation, FieldViolation.Builder, FieldViolationOrBuilder> + com.google.rpc.BadRequest.FieldViolation, + com.google.rpc.BadRequest.FieldViolation.Builder, + com.google.rpc.BadRequest.FieldViolationOrBuilder> getFieldViolationsFieldBuilder() { if (fieldViolationsBuilder_ == null) { - fieldViolationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - FieldViolation, FieldViolation.Builder, FieldViolationOrBuilder>( + fieldViolationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.BadRequest.FieldViolation, + com.google.rpc.BadRequest.FieldViolation.Builder, + com.google.rpc.BadRequest.FieldViolationOrBuilder>( fieldViolations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1589,56 +1757,54 @@ public FieldViolation.Builder addFieldViolationsBuilder( } return fieldViolationsBuilder_; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.rpc.BadRequest) } // @@protoc_insertion_point(class_scope:google.rpc.BadRequest) - private static final BadRequest DEFAULT_INSTANCE; + private static final com.google.rpc.BadRequest DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new BadRequest(); + DEFAULT_INSTANCE = new com.google.rpc.BadRequest(); } - public static BadRequest getDefaultInstance() { + public static com.google.rpc.BadRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public BadRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BadRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BadRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BadRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public BadRequest getDefaultInstanceForType() { + @java.lang.Override + public com.google.rpc.BadRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/BadRequestOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/rpc/BadRequestOrBuilder.java index 8f5872a6..46524361 100644 --- a/proto-google-common-protos/src/main/java/com/google/rpc/BadRequestOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/rpc/BadRequestOrBuilder.java @@ -1,30 +1,51 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/error_details.proto package com.google.rpc; -public interface BadRequestOrBuilder extends +public interface BadRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.rpc.BadRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Describes all violations in a client request.
    * 
* * repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; */ - java.util.List - getFieldViolationsList(); + java.util.List getFieldViolationsList(); /** + * + * *
    * Describes all violations in a client request.
    * 
* * repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; */ - BadRequest.FieldViolation getFieldViolations(int index); + com.google.rpc.BadRequest.FieldViolation getFieldViolations(int index); /** + * + * *
    * Describes all violations in a client request.
    * 
@@ -33,21 +54,24 @@ public interface BadRequestOrBuilder extends */ int getFieldViolationsCount(); /** + * + * *
    * Describes all violations in a client request.
    * 
* * repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; */ - java.util.List + java.util.List getFieldViolationsOrBuilderList(); /** + * + * *
    * Describes all violations in a client request.
    * 
* * repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; */ - BadRequest.FieldViolationOrBuilder getFieldViolationsOrBuilder( - int index); + com.google.rpc.BadRequest.FieldViolationOrBuilder getFieldViolationsOrBuilder(int index); } diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/Code.java b/proto-google-common-protos/src/main/java/com/google/rpc/Code.java index c6fe1691..76b8f880 100644 --- a/proto-google-common-protos/src/main/java/com/google/rpc/Code.java +++ b/proto-google-common-protos/src/main/java/com/google/rpc/Code.java @@ -1,11 +1,28 @@ +/* + * 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/rpc/code.proto package com.google.rpc; /** + * + * *
- * The canonical error codes for Google APIs.
+ * The canonical error codes for gRPC APIs.
  * Sometimes multiple error codes may apply.  Services should return
  * the most specific error code that applies.  For example, prefer
  * `OUT_OF_RANGE` over `FAILED_PRECONDITION` if both codes apply.
@@ -14,9 +31,10 @@
  *
  * Protobuf enum {@code google.rpc.Code}
  */
-public enum Code
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum Code implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * Not an error; returned on success
    * HTTP Mapping: 200 OK
@@ -26,6 +44,8 @@ public enum Code
    */
   OK(0),
   /**
+   *
+   *
    * 
    * The operation was cancelled, typically by the caller.
    * HTTP Mapping: 499 Client Closed Request
@@ -35,6 +55,8 @@ public enum Code
    */
   CANCELLED(1),
   /**
+   *
+   *
    * 
    * Unknown error.  For example, this error may be returned when
    * a `Status` value received from another address space belongs to
@@ -48,6 +70,8 @@ public enum Code
    */
   UNKNOWN(2),
   /**
+   *
+   *
    * 
    * The client specified an invalid argument.  Note that this differs
    * from `FAILED_PRECONDITION`.  `INVALID_ARGUMENT` indicates arguments
@@ -60,6 +84,8 @@ public enum Code
    */
   INVALID_ARGUMENT(3),
   /**
+   *
+   *
    * 
    * The deadline expired before the operation could complete. For operations
    * that change the state of the system, this error may be returned
@@ -73,6 +99,8 @@ public enum Code
    */
   DEADLINE_EXCEEDED(4),
   /**
+   *
+   *
    * 
    * Some requested entity (e.g., file or directory) was not found.
    * Note to server developers: if a request is denied for an entire class
@@ -87,6 +115,8 @@ public enum Code
    */
   NOT_FOUND(5),
   /**
+   *
+   *
    * 
    * The entity that a client attempted to create (e.g., file or directory)
    * already exists.
@@ -97,6 +127,8 @@ public enum Code
    */
   ALREADY_EXISTS(6),
   /**
+   *
+   *
    * 
    * The caller does not have permission to execute the specified
    * operation. `PERMISSION_DENIED` must not be used for rejections
@@ -113,6 +145,8 @@ public enum Code
    */
   PERMISSION_DENIED(7),
   /**
+   *
+   *
    * 
    * The request does not have valid authentication credentials for the
    * operation.
@@ -123,6 +157,8 @@ public enum Code
    */
   UNAUTHENTICATED(16),
   /**
+   *
+   *
    * 
    * Some resource has been exhausted, perhaps a per-user quota, or
    * perhaps the entire file system is out of space.
@@ -133,6 +169,8 @@ public enum Code
    */
   RESOURCE_EXHAUSTED(8),
   /**
+   *
+   *
    * 
    * The operation was rejected because the system is not in a state
    * required for the operation's execution.  For example, the directory
@@ -156,6 +194,8 @@ public enum Code
    */
   FAILED_PRECONDITION(9),
   /**
+   *
+   *
    * 
    * The operation was aborted, typically due to a concurrency issue such as
    * a sequencer check failure or transaction abort.
@@ -168,6 +208,8 @@ public enum Code
    */
   ABORTED(10),
   /**
+   *
+   *
    * 
    * The operation was attempted past the valid range.  E.g., seeking or
    * reading past end-of-file.
@@ -189,6 +231,8 @@ public enum Code
    */
   OUT_OF_RANGE(11),
   /**
+   *
+   *
    * 
    * The operation is not implemented or is not supported/enabled in this
    * service.
@@ -199,6 +243,8 @@ public enum Code
    */
   UNIMPLEMENTED(12),
   /**
+   *
+   *
    * 
    * Internal errors.  This means that some invariants expected by the
    * underlying system have been broken.  This error code is reserved
@@ -210,10 +256,13 @@ public enum Code
    */
   INTERNAL(13),
   /**
+   *
+   *
    * 
    * The service is currently unavailable.  This is most likely a
    * transient condition, which can be corrected by retrying with
-   * a backoff.
+   * a backoff. Note that it is not always safe to retry
+   * non-idempotent operations.
    * See the guidelines above for deciding between `FAILED_PRECONDITION`,
    * `ABORTED`, and `UNAVAILABLE`.
    * HTTP Mapping: 503 Service Unavailable
@@ -223,6 +272,8 @@ public enum Code
    */
   UNAVAILABLE(14),
   /**
+   *
+   *
    * 
    * Unrecoverable data loss or corruption.
    * HTTP Mapping: 500 Internal Server Error
@@ -235,6 +286,8 @@ public enum Code
   ;
 
   /**
+   *
+   *
    * 
    * Not an error; returned on success
    * HTTP Mapping: 200 OK
@@ -244,6 +297,8 @@ public enum Code
    */
   public static final int OK_VALUE = 0;
   /**
+   *
+   *
    * 
    * The operation was cancelled, typically by the caller.
    * HTTP Mapping: 499 Client Closed Request
@@ -253,6 +308,8 @@ public enum Code
    */
   public static final int CANCELLED_VALUE = 1;
   /**
+   *
+   *
    * 
    * Unknown error.  For example, this error may be returned when
    * a `Status` value received from another address space belongs to
@@ -266,6 +323,8 @@ public enum Code
    */
   public static final int UNKNOWN_VALUE = 2;
   /**
+   *
+   *
    * 
    * The client specified an invalid argument.  Note that this differs
    * from `FAILED_PRECONDITION`.  `INVALID_ARGUMENT` indicates arguments
@@ -278,6 +337,8 @@ public enum Code
    */
   public static final int INVALID_ARGUMENT_VALUE = 3;
   /**
+   *
+   *
    * 
    * The deadline expired before the operation could complete. For operations
    * that change the state of the system, this error may be returned
@@ -291,6 +352,8 @@ public enum Code
    */
   public static final int DEADLINE_EXCEEDED_VALUE = 4;
   /**
+   *
+   *
    * 
    * Some requested entity (e.g., file or directory) was not found.
    * Note to server developers: if a request is denied for an entire class
@@ -305,6 +368,8 @@ public enum Code
    */
   public static final int NOT_FOUND_VALUE = 5;
   /**
+   *
+   *
    * 
    * The entity that a client attempted to create (e.g., file or directory)
    * already exists.
@@ -315,6 +380,8 @@ public enum Code
    */
   public static final int ALREADY_EXISTS_VALUE = 6;
   /**
+   *
+   *
    * 
    * The caller does not have permission to execute the specified
    * operation. `PERMISSION_DENIED` must not be used for rejections
@@ -331,6 +398,8 @@ public enum Code
    */
   public static final int PERMISSION_DENIED_VALUE = 7;
   /**
+   *
+   *
    * 
    * The request does not have valid authentication credentials for the
    * operation.
@@ -341,6 +410,8 @@ public enum Code
    */
   public static final int UNAUTHENTICATED_VALUE = 16;
   /**
+   *
+   *
    * 
    * Some resource has been exhausted, perhaps a per-user quota, or
    * perhaps the entire file system is out of space.
@@ -351,6 +422,8 @@ public enum Code
    */
   public static final int RESOURCE_EXHAUSTED_VALUE = 8;
   /**
+   *
+   *
    * 
    * The operation was rejected because the system is not in a state
    * required for the operation's execution.  For example, the directory
@@ -374,6 +447,8 @@ public enum Code
    */
   public static final int FAILED_PRECONDITION_VALUE = 9;
   /**
+   *
+   *
    * 
    * The operation was aborted, typically due to a concurrency issue such as
    * a sequencer check failure or transaction abort.
@@ -386,6 +461,8 @@ public enum Code
    */
   public static final int ABORTED_VALUE = 10;
   /**
+   *
+   *
    * 
    * The operation was attempted past the valid range.  E.g., seeking or
    * reading past end-of-file.
@@ -407,6 +484,8 @@ public enum Code
    */
   public static final int OUT_OF_RANGE_VALUE = 11;
   /**
+   *
+   *
    * 
    * The operation is not implemented or is not supported/enabled in this
    * service.
@@ -417,6 +496,8 @@ public enum Code
    */
   public static final int UNIMPLEMENTED_VALUE = 12;
   /**
+   *
+   *
    * 
    * Internal errors.  This means that some invariants expected by the
    * underlying system have been broken.  This error code is reserved
@@ -428,10 +509,13 @@ public enum Code
    */
   public static final int INTERNAL_VALUE = 13;
   /**
+   *
+   *
    * 
    * The service is currently unavailable.  This is most likely a
    * transient condition, which can be corrected by retrying with
-   * a backoff.
+   * a backoff. Note that it is not always safe to retry
+   * non-idempotent operations.
    * See the guidelines above for deciding between `FAILED_PRECONDITION`,
    * `ABORTED`, and `UNAVAILABLE`.
    * HTTP Mapping: 503 Service Unavailable
@@ -441,6 +525,8 @@ public enum Code
    */
   public static final int UNAVAILABLE_VALUE = 14;
   /**
+   *
+   *
    * 
    * Unrecoverable data loss or corruption.
    * HTTP Mapping: 500 Internal Server Error
@@ -450,78 +536,97 @@ public enum Code
    */
   public static final int DATA_LOSS_VALUE = 15;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
-      throw new IllegalArgumentException(
+      throw new java.lang.IllegalArgumentException(
           "Can't get the number of an unknown enum value.");
     }
     return value;
   }
 
   /**
+   * @param value The numeric wire value of the corresponding enum entry.
+   * @return The enum associated with the given numeric wire value.
    * @deprecated Use {@link #forNumber(int)} instead.
    */
-  @Deprecated
+  @java.lang.Deprecated
   public static Code valueOf(int value) {
     return forNumber(value);
   }
 
+  /**
+   * @param value The numeric wire value of the corresponding enum entry.
+   * @return The enum associated with the given numeric wire value.
+   */
   public static Code forNumber(int value) {
     switch (value) {
-      case 0: return OK;
-      case 1: return CANCELLED;
-      case 2: return UNKNOWN;
-      case 3: return INVALID_ARGUMENT;
-      case 4: return DEADLINE_EXCEEDED;
-      case 5: return NOT_FOUND;
-      case 6: return ALREADY_EXISTS;
-      case 7: return PERMISSION_DENIED;
-      case 16: return UNAUTHENTICATED;
-      case 8: return RESOURCE_EXHAUSTED;
-      case 9: return FAILED_PRECONDITION;
-      case 10: return ABORTED;
-      case 11: return OUT_OF_RANGE;
-      case 12: return UNIMPLEMENTED;
-      case 13: return INTERNAL;
-      case 14: return UNAVAILABLE;
-      case 15: return DATA_LOSS;
-      default: return null;
+      case 0:
+        return OK;
+      case 1:
+        return CANCELLED;
+      case 2:
+        return UNKNOWN;
+      case 3:
+        return INVALID_ARGUMENT;
+      case 4:
+        return DEADLINE_EXCEEDED;
+      case 5:
+        return NOT_FOUND;
+      case 6:
+        return ALREADY_EXISTS;
+      case 7:
+        return PERMISSION_DENIED;
+      case 16:
+        return UNAUTHENTICATED;
+      case 8:
+        return RESOURCE_EXHAUSTED;
+      case 9:
+        return FAILED_PRECONDITION;
+      case 10:
+        return ABORTED;
+      case 11:
+        return OUT_OF_RANGE;
+      case 12:
+        return UNIMPLEMENTED;
+      case 13:
+        return INTERNAL;
+      case 14:
+        return UNAVAILABLE;
+      case 15:
+        return DATA_LOSS;
+      default:
+        return null;
     }
   }
 
-  public static com.google.protobuf.Internal.EnumLiteMap
-      internalGetValueMap() {
+  public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
     return internalValueMap;
   }
-  private static final com.google.protobuf.Internal.EnumLiteMap<
-      Code> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Code findValueByNumber(int number) {
-            return Code.forNumber(number);
-          }
-        };
 
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor
-      getValueDescriptor() {
+  private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+      new com.google.protobuf.Internal.EnumLiteMap() {
+        public Code findValueByNumber(int number) {
+          return Code.forNumber(number);
+        }
+      };
+
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
     return getDescriptor().getValues().get(ordinal());
   }
-  public final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptorForType() {
+
+  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
     return getDescriptor();
   }
-  public static final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
     return com.google.rpc.CodeProto.getDescriptor().getEnumTypes().get(0);
   }
 
   private static final Code[] VALUES = values();
 
-  public static Code valueOf(
-      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
     if (desc.getType() != getDescriptor()) {
-      throw new IllegalArgumentException(
-        "EnumValueDescriptor is not for this type.");
+      throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
     }
     if (desc.getIndex() == -1) {
       return UNRECOGNIZED;
@@ -537,4 +642,3 @@ private Code(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.rpc.Code)
 }
-
diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/CodeProto.java b/proto-google-common-protos/src/main/java/com/google/rpc/CodeProto.java
index fba815ec..f63ced74 100644
--- a/proto-google-common-protos/src/main/java/com/google/rpc/CodeProto.java
+++ b/proto-google-common-protos/src/main/java/com/google/rpc/CodeProto.java
@@ -1,3 +1,18 @@
+/*
+ * 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/rpc/code.proto
 
@@ -5,49 +20,37 @@
 
 public final class CodeProto {
   private CodeProto() {}
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistryLite registry) {
-  }
 
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions(
-        (com.google.protobuf.ExtensionRegistryLite) registry);
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
   }
 
-  public static com.google.protobuf.Descriptors.FileDescriptor
-      getDescriptor() {
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     return descriptor;
   }
-  private static  com.google.protobuf.Descriptors.FileDescriptor
-      descriptor;
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
   static {
-    String[] descriptorData = {
-      "\n\025google/rpc/code.proto\022\ngoogle.rpc*\267\002\n\004" +
-      "Code\022\006\n\002OK\020\000\022\r\n\tCANCELLED\020\001\022\013\n\007UNKNOWN\020\002" +
-      "\022\024\n\020INVALID_ARGUMENT\020\003\022\025\n\021DEADLINE_EXCEE" +
-      "DED\020\004\022\r\n\tNOT_FOUND\020\005\022\022\n\016ALREADY_EXISTS\020\006" +
-      "\022\025\n\021PERMISSION_DENIED\020\007\022\023\n\017UNAUTHENTICAT" +
-      "ED\020\020\022\026\n\022RESOURCE_EXHAUSTED\020\010\022\027\n\023FAILED_P" +
-      "RECONDITION\020\t\022\013\n\007ABORTED\020\n\022\020\n\014OUT_OF_RAN" +
-      "GE\020\013\022\021\n\rUNIMPLEMENTED\020\014\022\014\n\010INTERNAL\020\r\022\017\n" +
-      "\013UNAVAILABLE\020\016\022\r\n\tDATA_LOSS\020\017BX\n\016com.goo" +
-      "gle.rpcB\tCodeProtoP\001Z3google.golang.org/" +
-      "genproto/googleapis/rpc/code;code\242\002\003RPCb" +
-      "\006proto3"
+    java.lang.String[] descriptorData = {
+      "\n\025google/rpc/code.proto\022\ngoogle.rpc*\267\002\n\004"
+          + "Code\022\006\n\002OK\020\000\022\r\n\tCANCELLED\020\001\022\013\n\007UNKNOWN\020\002"
+          + "\022\024\n\020INVALID_ARGUMENT\020\003\022\025\n\021DEADLINE_EXCEE"
+          + "DED\020\004\022\r\n\tNOT_FOUND\020\005\022\022\n\016ALREADY_EXISTS\020\006"
+          + "\022\025\n\021PERMISSION_DENIED\020\007\022\023\n\017UNAUTHENTICAT"
+          + "ED\020\020\022\026\n\022RESOURCE_EXHAUSTED\020\010\022\027\n\023FAILED_P"
+          + "RECONDITION\020\t\022\013\n\007ABORTED\020\n\022\020\n\014OUT_OF_RAN"
+          + "GE\020\013\022\021\n\rUNIMPLEMENTED\020\014\022\014\n\010INTERNAL\020\r\022\017\n"
+          + "\013UNAVAILABLE\020\016\022\r\n\tDATA_LOSS\020\017BX\n\016com.goo"
+          + "gle.rpcB\tCodeProtoP\001Z3google.golang.org/"
+          + "genproto/googleapis/rpc/code;code\242\002\003RPCb"
+          + "\006proto3"
     };
-    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
-        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
-          public com.google.protobuf.ExtensionRegistry assignDescriptors(
-              com.google.protobuf.Descriptors.FileDescriptor root) {
-            descriptor = root;
-            return null;
-          }
-        };
-    com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-        }, assigner);
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
   }
 
   // @@protoc_insertion_point(outer_class_scope)
diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/DebugInfo.java b/proto-google-common-protos/src/main/java/com/google/rpc/DebugInfo.java
index 7d030767..8760dbea 100644
--- a/proto-google-common-protos/src/main/java/com/google/rpc/DebugInfo.java
+++ b/proto-google-common-protos/src/main/java/com/google/rpc/DebugInfo.java
@@ -1,41 +1,65 @@
+/*
+ * 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/rpc/error_details.proto
 
 package com.google.rpc;
 
 /**
+ *
+ *
  * 
  * Describes additional debugging info.
  * 
* * Protobuf type {@code google.rpc.DebugInfo} */ -public final class DebugInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DebugInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.rpc.DebugInfo) DebugInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DebugInfo.newBuilder() to construct. private DebugInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DebugInfo() { stackEntries_ = com.google.protobuf.LazyStringArrayList.EMPTY; detail_ = ""; } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DebugInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DebugInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = @@ -48,35 +72,36 @@ private DebugInfo( case 0: done = true; break; - case 10: { - String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - stackEntries_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + stackEntries_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + stackEntries_.add(s); + break; } - stackEntries_.add(s); - break; - } - case 18: { - String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - detail_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + detail_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { stackEntries_ = stackEntries_.getUnmodifiableView(); @@ -85,100 +110,120 @@ private DebugInfo( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_DebugInfo_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_DebugInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - DebugInfo.class, Builder.class); + com.google.rpc.DebugInfo.class, com.google.rpc.DebugInfo.Builder.class); } - private int bitField0_; public static final int STACK_ENTRIES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList stackEntries_; /** + * + * *
    * The stack trace entries indicating where the error occurred.
    * 
* * repeated string stack_entries = 1; + * + * @return A list containing the stackEntries. */ - public com.google.protobuf.ProtocolStringList - getStackEntriesList() { + public com.google.protobuf.ProtocolStringList getStackEntriesList() { return stackEntries_; } /** + * + * *
    * The stack trace entries indicating where the error occurred.
    * 
* * repeated string stack_entries = 1; + * + * @return The count of stackEntries. */ public int getStackEntriesCount() { return stackEntries_.size(); } /** + * + * *
    * The stack trace entries indicating where the error occurred.
    * 
* * repeated string stack_entries = 1; + * + * @param index The index of the element to return. + * @return The stackEntries at the given index. */ - public String getStackEntries(int index) { + public java.lang.String getStackEntries(int index) { return stackEntries_.get(index); } /** + * + * *
    * The stack trace entries indicating where the error occurred.
    * 
* * repeated string stack_entries = 1; + * + * @param index The index of the value to return. + * @return The bytes of the stackEntries at the given index. */ - public com.google.protobuf.ByteString - getStackEntriesBytes(int index) { + public com.google.protobuf.ByteString getStackEntriesBytes(int index) { return stackEntries_.getByteString(index); } public static final int DETAIL_FIELD_NUMBER = 2; - private volatile Object detail_; + private volatile java.lang.Object detail_; /** + * + * *
    * Additional debugging information provided by the server.
    * 
* * string detail = 2; + * + * @return The detail. */ - public String getDetail() { - Object ref = detail_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getDetail() { + java.lang.Object ref = detail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); detail_ = s; return s; } } /** + * + * *
    * Additional debugging information provided by the server.
    * 
* * string detail = 2; + * + * @return The bytes for detail. */ - public com.google.protobuf.ByteString - getDetailBytes() { - Object ref = detail_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getDetailBytes() { + java.lang.Object ref = detail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); detail_ = b; return b; } else { @@ -187,7 +232,8 @@ public String getDetail() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -197,9 +243,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < stackEntries_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stackEntries_.getRaw(i)); } @@ -209,7 +254,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -231,25 +276,23 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof DebugInfo)) { + if (!(obj instanceof com.google.rpc.DebugInfo)) { return super.equals(obj); } - DebugInfo other = (DebugInfo) obj; + com.google.rpc.DebugInfo other = (com.google.rpc.DebugInfo) obj; - if (!getStackEntriesList() - .equals(other.getStackEntriesList())) return false; - if (!getDetail() - .equals(other.getDetail())) return false; + if (!getStackEntriesList().equals(other.getStackEntriesList())) return false; + if (!getDetail().equals(other.getDetail())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -267,118 +310,124 @@ public int hashCode() { return hash; } - public static DebugInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.rpc.DebugInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static DebugInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.DebugInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static DebugInfo parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.rpc.DebugInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static DebugInfo parseFrom( + + public static com.google.rpc.DebugInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static DebugInfo parseFrom(byte[] data) + + public static com.google.rpc.DebugInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static DebugInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.DebugInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static DebugInfo parseFrom(java.io.InputStream input) + + public static com.google.rpc.DebugInfo 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 DebugInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.DebugInfo parseFrom( + 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 DebugInfo parseDelimitedFrom(java.io.InputStream input) + + public static com.google.rpc.DebugInfo 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 DebugInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.DebugInfo parseDelimitedFrom( + 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 DebugInfo parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.rpc.DebugInfo 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 DebugInfo parseFrom( + + public static com.google.rpc.DebugInfo 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(DebugInfo prototype) { + + public static Builder newBuilder(com.google.rpc.DebugInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Describes additional debugging info.
    * 
* * Protobuf type {@code google.rpc.DebugInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.rpc.DebugInfo) com.google.rpc.DebugInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_DebugInfo_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_DebugInfo_fieldAccessorTable + return com.google.rpc.ErrorDetailsProto + .internal_static_google_rpc_DebugInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - DebugInfo.class, Builder.class); + com.google.rpc.DebugInfo.class, com.google.rpc.DebugInfo.Builder.class); } // Construct using com.google.rpc.DebugInfo.newBuilder() @@ -386,17 +435,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @Override + + @java.lang.Override public Builder clear() { super.clear(); stackEntries_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -406,86 +454,84 @@ public Builder clear() { return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_DebugInfo_descriptor; } - @Override - public DebugInfo getDefaultInstanceForType() { - return DebugInfo.getDefaultInstance(); + @java.lang.Override + public com.google.rpc.DebugInfo getDefaultInstanceForType() { + return com.google.rpc.DebugInfo.getDefaultInstance(); } - @Override - public DebugInfo build() { - DebugInfo result = buildPartial(); + @java.lang.Override + public com.google.rpc.DebugInfo build() { + com.google.rpc.DebugInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public DebugInfo buildPartial() { - DebugInfo result = new DebugInfo(this); + @java.lang.Override + public com.google.rpc.DebugInfo buildPartial() { + com.google.rpc.DebugInfo result = new com.google.rpc.DebugInfo(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) != 0)) { stackEntries_ = stackEntries_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.stackEntries_ = stackEntries_; result.detail_ = detail_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof DebugInfo) { - return mergeFrom((DebugInfo)other); + if (other instanceof com.google.rpc.DebugInfo) { + return mergeFrom((com.google.rpc.DebugInfo) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(DebugInfo other) { - if (other == DebugInfo.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.rpc.DebugInfo other) { + if (other == com.google.rpc.DebugInfo.getDefaultInstance()) return this; if (!other.stackEntries_.isEmpty()) { if (stackEntries_.isEmpty()) { stackEntries_ = other.stackEntries_; @@ -505,21 +551,21 @@ public Builder mergeFrom(DebugInfo other) { return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - DebugInfo parsedMessage = null; + com.google.rpc.DebugInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (DebugInfo) e.getUnfinishedMessage(); + parsedMessage = (com.google.rpc.DebugInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -528,112 +574,147 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList stackEntries_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList stackEntries_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureStackEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { stackEntries_ = new com.google.protobuf.LazyStringArrayList(stackEntries_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * The stack trace entries indicating where the error occurred.
      * 
* * repeated string stack_entries = 1; + * + * @return A list containing the stackEntries. */ - public com.google.protobuf.ProtocolStringList - getStackEntriesList() { + public com.google.protobuf.ProtocolStringList getStackEntriesList() { return stackEntries_.getUnmodifiableView(); } /** + * + * *
      * The stack trace entries indicating where the error occurred.
      * 
* * repeated string stack_entries = 1; + * + * @return The count of stackEntries. */ public int getStackEntriesCount() { return stackEntries_.size(); } /** + * + * *
      * The stack trace entries indicating where the error occurred.
      * 
* * repeated string stack_entries = 1; + * + * @param index The index of the element to return. + * @return The stackEntries at the given index. */ - public String getStackEntries(int index) { + public java.lang.String getStackEntries(int index) { return stackEntries_.get(index); } /** + * + * *
      * The stack trace entries indicating where the error occurred.
      * 
* * repeated string stack_entries = 1; + * + * @param index The index of the value to return. + * @return The bytes of the stackEntries at the given index. */ - public com.google.protobuf.ByteString - getStackEntriesBytes(int index) { + public com.google.protobuf.ByteString getStackEntriesBytes(int index) { return stackEntries_.getByteString(index); } /** + * + * *
      * The stack trace entries indicating where the error occurred.
      * 
* * repeated string stack_entries = 1; + * + * @param index The index to set the value at. + * @param value The stackEntries to set. + * @return This builder for chaining. */ - public Builder setStackEntries( - int index, String value) { + public Builder setStackEntries(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStackEntriesIsMutable(); + throw new NullPointerException(); + } + ensureStackEntriesIsMutable(); stackEntries_.set(index, value); onChanged(); return this; } /** + * + * *
      * The stack trace entries indicating where the error occurred.
      * 
* * repeated string stack_entries = 1; + * + * @param value The stackEntries to add. + * @return This builder for chaining. */ - public Builder addStackEntries( - String value) { + public Builder addStackEntries(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStackEntriesIsMutable(); + throw new NullPointerException(); + } + ensureStackEntriesIsMutable(); stackEntries_.add(value); onChanged(); return this; } /** + * + * *
      * The stack trace entries indicating where the error occurred.
      * 
* * repeated string stack_entries = 1; + * + * @param values The stackEntries to add. + * @return This builder for chaining. */ - public Builder addAllStackEntries( - Iterable values) { + public Builder addAllStackEntries(java.lang.Iterable values) { ensureStackEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, stackEntries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stackEntries_); onChanged(); return this; } /** + * + * *
      * The stack trace entries indicating where the error occurred.
      * 
* * repeated string stack_entries = 1; + * + * @return This builder for chaining. */ public Builder clearStackEntries() { stackEntries_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -642,58 +723,67 @@ public Builder clearStackEntries() { return this; } /** + * + * *
      * The stack trace entries indicating where the error occurred.
      * 
* * repeated string stack_entries = 1; + * + * @param value The bytes of the stackEntries to add. + * @return This builder for chaining. */ - public Builder addStackEntriesBytes( - com.google.protobuf.ByteString value) { + public Builder addStackEntriesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureStackEntriesIsMutable(); stackEntries_.add(value); onChanged(); return this; } - private Object detail_ = ""; + private java.lang.Object detail_ = ""; /** + * + * *
      * Additional debugging information provided by the server.
      * 
* * string detail = 2; + * + * @return The detail. */ - public String getDetail() { - Object ref = detail_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getDetail() { + java.lang.Object ref = detail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); detail_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Additional debugging information provided by the server.
      * 
* * string detail = 2; + * + * @return The bytes for detail. */ - public com.google.protobuf.ByteString - getDetailBytes() { - Object ref = detail_; + public com.google.protobuf.ByteString getDetailBytes() { + java.lang.Object ref = detail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); detail_ = b; return b; } else { @@ -701,103 +791,113 @@ public String getDetail() { } } /** + * + * *
      * Additional debugging information provided by the server.
      * 
* * string detail = 2; + * + * @param value The detail to set. + * @return This builder for chaining. */ - public Builder setDetail( - String value) { + public Builder setDetail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + detail_ = value; onChanged(); return this; } /** + * + * *
      * Additional debugging information provided by the server.
      * 
* * string detail = 2; + * + * @return This builder for chaining. */ public Builder clearDetail() { - + detail_ = getDefaultInstance().getDetail(); onChanged(); return this; } /** + * + * *
      * Additional debugging information provided by the server.
      * 
* * string detail = 2; + * + * @param value The bytes for detail to set. + * @return This builder for chaining. */ - public Builder setDetailBytes( - com.google.protobuf.ByteString value) { + public Builder setDetailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + detail_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.rpc.DebugInfo) } // @@protoc_insertion_point(class_scope:google.rpc.DebugInfo) - private static final DebugInfo DEFAULT_INSTANCE; + private static final com.google.rpc.DebugInfo DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new DebugInfo(); + DEFAULT_INSTANCE = new com.google.rpc.DebugInfo(); } - public static DebugInfo getDefaultInstance() { + public static com.google.rpc.DebugInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public DebugInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DebugInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DebugInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DebugInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public DebugInfo getDefaultInstanceForType() { + @java.lang.Override + public com.google.rpc.DebugInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/DebugInfoOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/rpc/DebugInfoOrBuilder.java index 7394e2e0..5be2796e 100644 --- a/proto-google-common-protos/src/main/java/com/google/rpc/DebugInfoOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/rpc/DebugInfoOrBuilder.java @@ -1,62 +1,101 @@ +/* + * 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/rpc/error_details.proto package com.google.rpc; -public interface DebugInfoOrBuilder extends +public interface DebugInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.rpc.DebugInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The stack trace entries indicating where the error occurred.
    * 
* * repeated string stack_entries = 1; + * + * @return A list containing the stackEntries. */ - java.util.List - getStackEntriesList(); + java.util.List getStackEntriesList(); /** + * + * *
    * The stack trace entries indicating where the error occurred.
    * 
* * repeated string stack_entries = 1; + * + * @return The count of stackEntries. */ int getStackEntriesCount(); /** + * + * *
    * The stack trace entries indicating where the error occurred.
    * 
* * repeated string stack_entries = 1; + * + * @param index The index of the element to return. + * @return The stackEntries at the given index. */ - String getStackEntries(int index); + java.lang.String getStackEntries(int index); /** + * + * *
    * The stack trace entries indicating where the error occurred.
    * 
* * repeated string stack_entries = 1; + * + * @param index The index of the value to return. + * @return The bytes of the stackEntries at the given index. */ - com.google.protobuf.ByteString - getStackEntriesBytes(int index); + com.google.protobuf.ByteString getStackEntriesBytes(int index); /** + * + * *
    * Additional debugging information provided by the server.
    * 
* * string detail = 2; + * + * @return The detail. */ - String getDetail(); + java.lang.String getDetail(); /** + * + * *
    * Additional debugging information provided by the server.
    * 
* * string detail = 2; + * + * @return The bytes for detail. */ - com.google.protobuf.ByteString - getDetailBytes(); + com.google.protobuf.ByteString getDetailBytes(); } diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/ErrorDetailsProto.java b/proto-google-common-protos/src/main/java/com/google/rpc/ErrorDetailsProto.java index 1da8211a..7dcca5d0 100644 --- a/proto-google-common-protos/src/main/java/com/google/rpc/ErrorDetailsProto.java +++ b/proto-google-common-protos/src/main/java/com/google/rpc/ErrorDetailsProto.java @@ -1,3 +1,18 @@ +/* + * 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/rpc/error_details.proto @@ -5,207 +20,231 @@ public final class ErrorDetailsProto { private ErrorDetailsProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + 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_rpc_RetryInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_rpc_RetryInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_rpc_RetryInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_rpc_DebugInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_rpc_DebugInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_rpc_DebugInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_rpc_QuotaFailure_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_rpc_QuotaFailure_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_rpc_QuotaFailure_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_rpc_QuotaFailure_Violation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_rpc_QuotaFailure_Violation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_rpc_QuotaFailure_Violation_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_rpc_PreconditionFailure_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_rpc_ErrorInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_rpc_ErrorInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_rpc_ErrorInfo_MetadataEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_rpc_ErrorInfo_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_rpc_PreconditionFailure_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_rpc_PreconditionFailure_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_rpc_PreconditionFailure_Violation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_rpc_PreconditionFailure_Violation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_rpc_PreconditionFailure_Violation_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_rpc_BadRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_rpc_BadRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_rpc_BadRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_rpc_BadRequest_FieldViolation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_rpc_BadRequest_FieldViolation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_rpc_BadRequest_FieldViolation_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_rpc_RequestInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_rpc_RequestInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_rpc_RequestInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_rpc_ResourceInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_rpc_ResourceInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_rpc_ResourceInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_rpc_Help_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_rpc_Help_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_rpc_Help_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_rpc_Help_Link_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_rpc_Help_Link_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_rpc_Help_Link_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_rpc_LocalizedMessage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_rpc_LocalizedMessage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_rpc_LocalizedMessage_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { - String[] descriptorData = { - "\n\036google/rpc/error_details.proto\022\ngoogle" + - ".rpc\032\036google/protobuf/duration.proto\";\n\t" + - "RetryInfo\022.\n\013retry_delay\030\001 \001(\0132\031.google." + - "protobuf.Duration\"2\n\tDebugInfo\022\025\n\rstack_" + - "entries\030\001 \003(\t\022\016\n\006detail\030\002 \001(\t\"y\n\014QuotaFa" + - "ilure\0226\n\nviolations\030\001 \003(\0132\".google.rpc.Q" + - "uotaFailure.Violation\0321\n\tViolation\022\017\n\007su" + - "bject\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\"\225\001\n\023Pre" + - "conditionFailure\022=\n\nviolations\030\001 \003(\0132).g" + - "oogle.rpc.PreconditionFailure.Violation\032" + - "?\n\tViolation\022\014\n\004type\030\001 \001(\t\022\017\n\007subject\030\002 " + - "\001(\t\022\023\n\013description\030\003 \001(\t\"\203\001\n\nBadRequest\022" + - "?\n\020field_violations\030\001 \003(\0132%.google.rpc.B" + - "adRequest.FieldViolation\0324\n\016FieldViolati" + - "on\022\r\n\005field\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\"7" + - "\n\013RequestInfo\022\022\n\nrequest_id\030\001 \001(\t\022\024\n\014ser" + - "ving_data\030\002 \001(\t\"`\n\014ResourceInfo\022\025\n\rresou" + - "rce_type\030\001 \001(\t\022\025\n\rresource_name\030\002 \001(\t\022\r\n" + - "\005owner\030\003 \001(\t\022\023\n\013description\030\004 \001(\t\"V\n\004Hel" + - "p\022$\n\005links\030\001 \003(\0132\025.google.rpc.Help.Link\032" + - "(\n\004Link\022\023\n\013description\030\001 \001(\t\022\013\n\003url\030\002 \001(" + - "\t\"3\n\020LocalizedMessage\022\016\n\006locale\030\001 \001(\t\022\017\n" + - "\007message\030\002 \001(\tBl\n\016com.google.rpcB\021ErrorD" + - "etailsProtoP\001Z?google.golang.org/genprot" + - "o/googleapis/rpc/errdetails;errdetails\242\002" + - "\003RPCb\006proto3" + java.lang.String[] descriptorData = { + "\n\036google/rpc/error_details.proto\022\ngoogle" + + ".rpc\032\036google/protobuf/duration.proto\";\n\t" + + "RetryInfo\022.\n\013retry_delay\030\001 \001(\0132\031.google." + + "protobuf.Duration\"2\n\tDebugInfo\022\025\n\rstack_" + + "entries\030\001 \003(\t\022\016\n\006detail\030\002 \001(\t\"y\n\014QuotaFa" + + "ilure\0226\n\nviolations\030\001 \003(\0132\".google.rpc.Q" + + "uotaFailure.Violation\0321\n\tViolation\022\017\n\007su" + + "bject\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\"\223\001\n\tErr" + + "orInfo\022\016\n\006reason\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\0225" + + "\n\010metadata\030\003 \003(\0132#.google.rpc.ErrorInfo." + + "MetadataEntry\032/\n\rMetadataEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\225\001\n\023PreconditionF" + + "ailure\022=\n\nviolations\030\001 \003(\0132).google.rpc." + + "PreconditionFailure.Violation\032?\n\tViolati" + + "on\022\014\n\004type\030\001 \001(\t\022\017\n\007subject\030\002 \001(\t\022\023\n\013des" + + "cription\030\003 \001(\t\"\203\001\n\nBadRequest\022?\n\020field_v" + + "iolations\030\001 \003(\0132%.google.rpc.BadRequest." + + "FieldViolation\0324\n\016FieldViolation\022\r\n\005fiel" + + "d\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\"7\n\013RequestI" + + "nfo\022\022\n\nrequest_id\030\001 \001(\t\022\024\n\014serving_data\030" + + "\002 \001(\t\"`\n\014ResourceInfo\022\025\n\rresource_type\030\001" + + " \001(\t\022\025\n\rresource_name\030\002 \001(\t\022\r\n\005owner\030\003 \001" + + "(\t\022\023\n\013description\030\004 \001(\t\"V\n\004Help\022$\n\005links" + + "\030\001 \003(\0132\025.google.rpc.Help.Link\032(\n\004Link\022\023\n" + + "\013description\030\001 \001(\t\022\013\n\003url\030\002 \001(\t\"3\n\020Local" + + "izedMessage\022\016\n\006locale\030\001 \001(\t\022\017\n\007message\030\002" + + " \001(\tBl\n\016com.google.rpcB\021ErrorDetailsProt" + + "oP\001Z?google.golang.org/genproto/googleap" + + "is/rpc/errdetails;errdetails\242\002\003RPCb\006prot" + + "o3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.DurationProto.getDescriptor(), - }, assigner); - internal_static_google_rpc_RetryInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_rpc_RetryInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_rpc_RetryInfo_descriptor, - new String[] { "RetryDelay", }); - internal_static_google_rpc_DebugInfo_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_rpc_DebugInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_rpc_DebugInfo_descriptor, - new String[] { "StackEntries", "Detail", }); - internal_static_google_rpc_QuotaFailure_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_rpc_QuotaFailure_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_rpc_QuotaFailure_descriptor, - new String[] { "Violations", }); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DurationProto.getDescriptor(), + }); + internal_static_google_rpc_RetryInfo_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_rpc_RetryInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_rpc_RetryInfo_descriptor, + new java.lang.String[] { + "RetryDelay", + }); + internal_static_google_rpc_DebugInfo_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_google_rpc_DebugInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_rpc_DebugInfo_descriptor, + new java.lang.String[] { + "StackEntries", "Detail", + }); + internal_static_google_rpc_QuotaFailure_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_google_rpc_QuotaFailure_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_rpc_QuotaFailure_descriptor, + new java.lang.String[] { + "Violations", + }); internal_static_google_rpc_QuotaFailure_Violation_descriptor = - internal_static_google_rpc_QuotaFailure_descriptor.getNestedTypes().get(0); - internal_static_google_rpc_QuotaFailure_Violation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_rpc_QuotaFailure_Violation_descriptor, - new String[] { "Subject", "Description", }); + internal_static_google_rpc_QuotaFailure_descriptor.getNestedTypes().get(0); + internal_static_google_rpc_QuotaFailure_Violation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_rpc_QuotaFailure_Violation_descriptor, + new java.lang.String[] { + "Subject", "Description", + }); + internal_static_google_rpc_ErrorInfo_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_google_rpc_ErrorInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_rpc_ErrorInfo_descriptor, + new java.lang.String[] { + "Reason", "Domain", "Metadata", + }); + internal_static_google_rpc_ErrorInfo_MetadataEntry_descriptor = + internal_static_google_rpc_ErrorInfo_descriptor.getNestedTypes().get(0); + internal_static_google_rpc_ErrorInfo_MetadataEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_rpc_ErrorInfo_MetadataEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_rpc_PreconditionFailure_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_rpc_PreconditionFailure_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_rpc_PreconditionFailure_descriptor, - new String[] { "Violations", }); + getDescriptor().getMessageTypes().get(4); + internal_static_google_rpc_PreconditionFailure_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_rpc_PreconditionFailure_descriptor, + new java.lang.String[] { + "Violations", + }); internal_static_google_rpc_PreconditionFailure_Violation_descriptor = - internal_static_google_rpc_PreconditionFailure_descriptor.getNestedTypes().get(0); - internal_static_google_rpc_PreconditionFailure_Violation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_rpc_PreconditionFailure_Violation_descriptor, - new String[] { "Type", "Subject", "Description", }); - internal_static_google_rpc_BadRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_rpc_BadRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_rpc_BadRequest_descriptor, - new String[] { "FieldViolations", }); + internal_static_google_rpc_PreconditionFailure_descriptor.getNestedTypes().get(0); + internal_static_google_rpc_PreconditionFailure_Violation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_rpc_PreconditionFailure_Violation_descriptor, + new java.lang.String[] { + "Type", "Subject", "Description", + }); + internal_static_google_rpc_BadRequest_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_google_rpc_BadRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_rpc_BadRequest_descriptor, + new java.lang.String[] { + "FieldViolations", + }); internal_static_google_rpc_BadRequest_FieldViolation_descriptor = - internal_static_google_rpc_BadRequest_descriptor.getNestedTypes().get(0); - internal_static_google_rpc_BadRequest_FieldViolation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_rpc_BadRequest_FieldViolation_descriptor, - new String[] { "Field", "Description", }); - internal_static_google_rpc_RequestInfo_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_rpc_RequestInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_rpc_RequestInfo_descriptor, - new String[] { "RequestId", "ServingData", }); - internal_static_google_rpc_ResourceInfo_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_rpc_ResourceInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_rpc_ResourceInfo_descriptor, - new String[] { "ResourceType", "ResourceName", "Owner", "Description", }); - internal_static_google_rpc_Help_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_rpc_Help_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_rpc_Help_descriptor, - new String[] { "Links", }); + internal_static_google_rpc_BadRequest_descriptor.getNestedTypes().get(0); + internal_static_google_rpc_BadRequest_FieldViolation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_rpc_BadRequest_FieldViolation_descriptor, + new java.lang.String[] { + "Field", "Description", + }); + internal_static_google_rpc_RequestInfo_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_google_rpc_RequestInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_rpc_RequestInfo_descriptor, + new java.lang.String[] { + "RequestId", "ServingData", + }); + internal_static_google_rpc_ResourceInfo_descriptor = getDescriptor().getMessageTypes().get(7); + internal_static_google_rpc_ResourceInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_rpc_ResourceInfo_descriptor, + new java.lang.String[] { + "ResourceType", "ResourceName", "Owner", "Description", + }); + internal_static_google_rpc_Help_descriptor = getDescriptor().getMessageTypes().get(8); + internal_static_google_rpc_Help_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_rpc_Help_descriptor, + new java.lang.String[] { + "Links", + }); internal_static_google_rpc_Help_Link_descriptor = - internal_static_google_rpc_Help_descriptor.getNestedTypes().get(0); - internal_static_google_rpc_Help_Link_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_rpc_Help_Link_descriptor, - new String[] { "Description", "Url", }); + internal_static_google_rpc_Help_descriptor.getNestedTypes().get(0); + internal_static_google_rpc_Help_Link_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_rpc_Help_Link_descriptor, + new java.lang.String[] { + "Description", "Url", + }); internal_static_google_rpc_LocalizedMessage_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_rpc_LocalizedMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_rpc_LocalizedMessage_descriptor, - new String[] { "Locale", "Message", }); + getDescriptor().getMessageTypes().get(9); + internal_static_google_rpc_LocalizedMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_rpc_LocalizedMessage_descriptor, + new java.lang.String[] { + "Locale", "Message", + }); com.google.protobuf.DurationProto.getDescriptor(); } diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfo.java b/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfo.java new file mode 100644 index 00000000..96c9b2d1 --- /dev/null +++ b/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfo.java @@ -0,0 +1,1269 @@ +/* + * 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/rpc/error_details.proto + +package com.google.rpc; + +/** + * + * + *
+ * Describes the cause of the error with structured details.
+ * Example of an error when contacting the "pubsub.googleapis.com" API when it
+ * is not enabled:
+ *     { "reason": "API_DISABLED"
+ *       "domain": "googleapis.com"
+ *       "metadata": {
+ *         "resource": "projects/123",
+ *         "service": "pubsub.googleapis.com"
+ *       }
+ *     }
+ * This response indicates that the pubsub.googleapis.com API is not enabled.
+ * Example of an error that is returned when attempting to create a Spanner
+ * instance in a region that is out of stock:
+ *     { "reason": "STOCKOUT"
+ *       "domain": "spanner.googleapis.com",
+ *       "metadata": {
+ *         "availableRegions": "us-central1,us-east2"
+ *       }
+ *     }
+ * 
+ * + * Protobuf type {@code google.rpc.ErrorInfo} + */ +public final class ErrorInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.rpc.ErrorInfo) + ErrorInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use ErrorInfo.newBuilder() to construct. + private ErrorInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ErrorInfo() { + reason_ = ""; + domain_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ErrorInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ErrorInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + reason_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + metadata_ = + com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry metadata__ = + input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_ErrorInfo_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetMetadata(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_ErrorInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.rpc.ErrorInfo.class, com.google.rpc.ErrorInfo.Builder.class); + } + + public static final int REASON_FIELD_NUMBER = 1; + private volatile java.lang.Object reason_; + /** + * + * + *
+   * The reason of the error. This is a constant value that identifies the
+   * proximate cause of the error. Error reasons are unique within a particular
+   * domain of errors. This should be at most 63 characters and match
+   * /[A-Z0-9_]+/.
+   * 
+ * + * string reason = 1; + * + * @return The reason. + */ + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reason_ = s; + return s; + } + } + /** + * + * + *
+   * The reason of the error. This is a constant value that identifies the
+   * proximate cause of the error. Error reasons are unique within a particular
+   * domain of errors. This should be at most 63 characters and match
+   * /[A-Z0-9_]+/.
+   * 
+ * + * string reason = 1; + * + * @return The bytes for reason. + */ + public com.google.protobuf.ByteString getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + * + * + *
+   * The logical grouping to which the "reason" belongs.  Often "domain" will
+   * contain the registered service name of the tool or product that is the
+   * source of the error. Example: "pubsub.googleapis.com". If the error is
+   * common across many APIs, the first segment of the example above will be
+   * omitted.  The value will be, "googleapis.com".
+   * 
+ * + * string domain = 2; + * + * @return The domain. + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } + } + /** + * + * + *
+   * The logical grouping to which the "reason" belongs.  Often "domain" will
+   * contain the registered service name of the tool or product that is the
+   * source of the error. Example: "pubsub.googleapis.com". If the error is
+   * common across many APIs, the first segment of the example above will be
+   * omitted.  The value will be, "googleapis.com".
+   * 
+ * + * string domain = 2; + * + * @return The bytes for domain. + */ + public com.google.protobuf.ByteString getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 3; + + private static final class MetadataDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.rpc.ErrorDetailsProto + .internal_static_google_rpc_ErrorInfo_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * + * + *
+   * Additional structured details about this error.
+   * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+   * length. When identifying the current value of an exceeded limit, the units
+   * should be contained in the key, not the value.  For example, rather than
+   * {"instanceLimit": "100/request"}, should be returned as,
+   * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+   * instances that can be created in a single (batch) request.
+   * 
+ * + * map<string, string> metadata = 3; + */ + public boolean containsMetadata(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetMetadata().getMap().containsKey(key); + } + /** Use {@link #getMetadataMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getMetadata() { + return getMetadataMap(); + } + /** + * + * + *
+   * Additional structured details about this error.
+   * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+   * length. When identifying the current value of an exceeded limit, the units
+   * should be contained in the key, not the value.  For example, rather than
+   * {"instanceLimit": "100/request"}, should be returned as,
+   * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+   * instances that can be created in a single (batch) request.
+   * 
+ * + * map<string, string> metadata = 3; + */ + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + * + * + *
+   * Additional structured details about this error.
+   * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+   * length. When identifying the current value of an exceeded limit, the units
+   * should be contained in the key, not the value.  For example, rather than
+   * {"instanceLimit": "100/request"}, should be returned as,
+   * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+   * instances that can be created in a single (batch) request.
+   * 
+ * + * map<string, string> metadata = 3; + */ + public java.lang.String getMetadataOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Additional structured details about this error.
+   * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+   * length. When identifying the current value of an exceeded limit, the units
+   * should be contained in the key, not the value.  For example, rather than
+   * {"instanceLimit": "100/request"}, should be returned as,
+   * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+   * instances that can be created in a single (batch) request.
+   * 
+ * + * map<string, string> metadata = 3; + */ + public java.lang.String getMetadataOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getReasonBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, reason_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 3); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getReasonBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, reason_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + for (java.util.Map.Entry entry : + internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry metadata__ = + MetadataDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, metadata__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.rpc.ErrorInfo)) { + return super.equals(obj); + } + com.google.rpc.ErrorInfo other = (com.google.rpc.ErrorInfo) obj; + + if (!getReason().equals(other.getReason())) return false; + if (!getDomain().equals(other.getDomain())) return false; + if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REASON_FIELD_NUMBER; + hash = (53 * hash) + getReason().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + if (!internalGetMetadata().getMap().isEmpty()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.rpc.ErrorInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.rpc.ErrorInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.rpc.ErrorInfo parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.rpc.ErrorInfo 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.rpc.ErrorInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.rpc.ErrorInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.rpc.ErrorInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.rpc.ErrorInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.rpc.ErrorInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.rpc.ErrorInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.rpc.ErrorInfo parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.rpc.ErrorInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.rpc.ErrorInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Describes the cause of the error with structured details.
+   * Example of an error when contacting the "pubsub.googleapis.com" API when it
+   * is not enabled:
+   *     { "reason": "API_DISABLED"
+   *       "domain": "googleapis.com"
+   *       "metadata": {
+   *         "resource": "projects/123",
+   *         "service": "pubsub.googleapis.com"
+   *       }
+   *     }
+   * This response indicates that the pubsub.googleapis.com API is not enabled.
+   * Example of an error that is returned when attempting to create a Spanner
+   * instance in a region that is out of stock:
+   *     { "reason": "STOCKOUT"
+   *       "domain": "spanner.googleapis.com",
+   *       "metadata": {
+   *         "availableRegions": "us-central1,us-east2"
+   *       }
+   *     }
+   * 
+ * + * Protobuf type {@code google.rpc.ErrorInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.rpc.ErrorInfo) + com.google.rpc.ErrorInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_ErrorInfo_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetMetadata(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 3: + return internalGetMutableMetadata(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.rpc.ErrorDetailsProto + .internal_static_google_rpc_ErrorInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.rpc.ErrorInfo.class, com.google.rpc.ErrorInfo.Builder.class); + } + + // Construct using com.google.rpc.ErrorInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + reason_ = ""; + + domain_ = ""; + + internalGetMutableMetadata().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_ErrorInfo_descriptor; + } + + @java.lang.Override + public com.google.rpc.ErrorInfo getDefaultInstanceForType() { + return com.google.rpc.ErrorInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.rpc.ErrorInfo build() { + com.google.rpc.ErrorInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.rpc.ErrorInfo buildPartial() { + com.google.rpc.ErrorInfo result = new com.google.rpc.ErrorInfo(this); + int from_bitField0_ = bitField0_; + result.reason_ = reason_; + result.domain_ = domain_; + result.metadata_ = internalGetMetadata(); + result.metadata_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + 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) { + return super.clearField(field); + } + + @java.lang.Override + 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) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + 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.rpc.ErrorInfo) { + return mergeFrom((com.google.rpc.ErrorInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.rpc.ErrorInfo other) { + if (other == com.google.rpc.ErrorInfo.getDefaultInstance()) return this; + if (!other.getReason().isEmpty()) { + reason_ = other.reason_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.rpc.ErrorInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.rpc.ErrorInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object reason_ = ""; + /** + * + * + *
+     * The reason of the error. This is a constant value that identifies the
+     * proximate cause of the error. Error reasons are unique within a particular
+     * domain of errors. This should be at most 63 characters and match
+     * /[A-Z0-9_]+/.
+     * 
+ * + * string reason = 1; + * + * @return The reason. + */ + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reason_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The reason of the error. This is a constant value that identifies the
+     * proximate cause of the error. Error reasons are unique within a particular
+     * domain of errors. This should be at most 63 characters and match
+     * /[A-Z0-9_]+/.
+     * 
+ * + * string reason = 1; + * + * @return The bytes for reason. + */ + public com.google.protobuf.ByteString getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The reason of the error. This is a constant value that identifies the
+     * proximate cause of the error. Error reasons are unique within a particular
+     * domain of errors. This should be at most 63 characters and match
+     * /[A-Z0-9_]+/.
+     * 
+ * + * string reason = 1; + * + * @param value The reason to set. + * @return This builder for chaining. + */ + public Builder setReason(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + reason_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The reason of the error. This is a constant value that identifies the
+     * proximate cause of the error. Error reasons are unique within a particular
+     * domain of errors. This should be at most 63 characters and match
+     * /[A-Z0-9_]+/.
+     * 
+ * + * string reason = 1; + * + * @return This builder for chaining. + */ + public Builder clearReason() { + + reason_ = getDefaultInstance().getReason(); + onChanged(); + return this; + } + /** + * + * + *
+     * The reason of the error. This is a constant value that identifies the
+     * proximate cause of the error. Error reasons are unique within a particular
+     * domain of errors. This should be at most 63 characters and match
+     * /[A-Z0-9_]+/.
+     * 
+ * + * string reason = 1; + * + * @param value The bytes for reason to set. + * @return This builder for chaining. + */ + public Builder setReasonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + reason_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + * + * + *
+     * The logical grouping to which the "reason" belongs.  Often "domain" will
+     * contain the registered service name of the tool or product that is the
+     * source of the error. Example: "pubsub.googleapis.com". If the error is
+     * common across many APIs, the first segment of the example above will be
+     * omitted.  The value will be, "googleapis.com".
+     * 
+ * + * string domain = 2; + * + * @return The domain. + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The logical grouping to which the "reason" belongs.  Often "domain" will
+     * contain the registered service name of the tool or product that is the
+     * source of the error. Example: "pubsub.googleapis.com". If the error is
+     * common across many APIs, the first segment of the example above will be
+     * omitted.  The value will be, "googleapis.com".
+     * 
+ * + * string domain = 2; + * + * @return The bytes for domain. + */ + public com.google.protobuf.ByteString getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The logical grouping to which the "reason" belongs.  Often "domain" will
+     * contain the registered service name of the tool or product that is the
+     * source of the error. Example: "pubsub.googleapis.com". If the error is
+     * common across many APIs, the first segment of the example above will be
+     * omitted.  The value will be, "googleapis.com".
+     * 
+ * + * string domain = 2; + * + * @param value The domain to set. + * @return This builder for chaining. + */ + public Builder setDomain(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The logical grouping to which the "reason" belongs.  Often "domain" will
+     * contain the registered service name of the tool or product that is the
+     * source of the error. Example: "pubsub.googleapis.com". If the error is
+     * common across many APIs, the first segment of the example above will be
+     * omitted.  The value will be, "googleapis.com".
+     * 
+ * + * string domain = 2; + * + * @return This builder for chaining. + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + * + * + *
+     * The logical grouping to which the "reason" belongs.  Often "domain" will
+     * contain the registered service name of the tool or product that is the
+     * source of the error. Example: "pubsub.googleapis.com". If the error is
+     * common across many APIs, the first segment of the example above will be
+     * omitted.  The value will be, "googleapis.com".
+     * 
+ * + * string domain = 2; + * + * @param value The bytes for domain to set. + * @return This builder for chaining. + */ + public Builder setDomainBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + + private com.google.protobuf.MapField + internalGetMutableMetadata() { + onChanged(); + ; + if (metadata_ == null) { + metadata_ = + com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); + } + if (!metadata_.isMutable()) { + metadata_ = metadata_.copy(); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * + * + *
+     * Additional structured details about this error.
+     * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+     * length. When identifying the current value of an exceeded limit, the units
+     * should be contained in the key, not the value.  For example, rather than
+     * {"instanceLimit": "100/request"}, should be returned as,
+     * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+     * instances that can be created in a single (batch) request.
+     * 
+ * + * map<string, string> metadata = 3; + */ + public boolean containsMetadata(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetMetadata().getMap().containsKey(key); + } + /** Use {@link #getMetadataMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getMetadata() { + return getMetadataMap(); + } + /** + * + * + *
+     * Additional structured details about this error.
+     * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+     * length. When identifying the current value of an exceeded limit, the units
+     * should be contained in the key, not the value.  For example, rather than
+     * {"instanceLimit": "100/request"}, should be returned as,
+     * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+     * instances that can be created in a single (batch) request.
+     * 
+ * + * map<string, string> metadata = 3; + */ + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + * + * + *
+     * Additional structured details about this error.
+     * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+     * length. When identifying the current value of an exceeded limit, the units
+     * should be contained in the key, not the value.  For example, rather than
+     * {"instanceLimit": "100/request"}, should be returned as,
+     * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+     * instances that can be created in a single (batch) request.
+     * 
+ * + * map<string, string> metadata = 3; + */ + public java.lang.String getMetadataOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Additional structured details about this error.
+     * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+     * length. When identifying the current value of an exceeded limit, the units
+     * should be contained in the key, not the value.  For example, rather than
+     * {"instanceLimit": "100/request"}, should be returned as,
+     * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+     * instances that can be created in a single (batch) request.
+     * 
+ * + * map<string, string> metadata = 3; + */ + public java.lang.String getMetadataOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearMetadata() { + internalGetMutableMetadata().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Additional structured details about this error.
+     * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+     * length. When identifying the current value of an exceeded limit, the units
+     * should be contained in the key, not the value.  For example, rather than
+     * {"instanceLimit": "100/request"}, should be returned as,
+     * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+     * instances that can be created in a single (batch) request.
+     * 
+ * + * map<string, string> metadata = 3; + */ + public Builder removeMetadata(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableMetadata().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableMetadata() { + return internalGetMutableMetadata().getMutableMap(); + } + /** + * + * + *
+     * Additional structured details about this error.
+     * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+     * length. When identifying the current value of an exceeded limit, the units
+     * should be contained in the key, not the value.  For example, rather than
+     * {"instanceLimit": "100/request"}, should be returned as,
+     * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+     * instances that can be created in a single (batch) request.
+     * 
+ * + * map<string, string> metadata = 3; + */ + public Builder putMetadata(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableMetadata().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Additional structured details about this error.
+     * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+     * length. When identifying the current value of an exceeded limit, the units
+     * should be contained in the key, not the value.  For example, rather than
+     * {"instanceLimit": "100/request"}, should be returned as,
+     * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+     * instances that can be created in a single (batch) request.
+     * 
+ * + * map<string, string> metadata = 3; + */ + public Builder putAllMetadata(java.util.Map values) { + internalGetMutableMetadata().getMutableMap().putAll(values); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.rpc.ErrorInfo) + } + + // @@protoc_insertion_point(class_scope:google.rpc.ErrorInfo) + private static final com.google.rpc.ErrorInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.rpc.ErrorInfo(); + } + + public static com.google.rpc.ErrorInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ErrorInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ErrorInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.rpc.ErrorInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfoOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfoOrBuilder.java new file mode 100644 index 00000000..85202ade --- /dev/null +++ b/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfoOrBuilder.java @@ -0,0 +1,173 @@ +/* + * 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/rpc/error_details.proto + +package com.google.rpc; + +public interface ErrorInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.rpc.ErrorInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The reason of the error. This is a constant value that identifies the
+   * proximate cause of the error. Error reasons are unique within a particular
+   * domain of errors. This should be at most 63 characters and match
+   * /[A-Z0-9_]+/.
+   * 
+ * + * string reason = 1; + * + * @return The reason. + */ + java.lang.String getReason(); + /** + * + * + *
+   * The reason of the error. This is a constant value that identifies the
+   * proximate cause of the error. Error reasons are unique within a particular
+   * domain of errors. This should be at most 63 characters and match
+   * /[A-Z0-9_]+/.
+   * 
+ * + * string reason = 1; + * + * @return The bytes for reason. + */ + com.google.protobuf.ByteString getReasonBytes(); + + /** + * + * + *
+   * The logical grouping to which the "reason" belongs.  Often "domain" will
+   * contain the registered service name of the tool or product that is the
+   * source of the error. Example: "pubsub.googleapis.com". If the error is
+   * common across many APIs, the first segment of the example above will be
+   * omitted.  The value will be, "googleapis.com".
+   * 
+ * + * string domain = 2; + * + * @return The domain. + */ + java.lang.String getDomain(); + /** + * + * + *
+   * The logical grouping to which the "reason" belongs.  Often "domain" will
+   * contain the registered service name of the tool or product that is the
+   * source of the error. Example: "pubsub.googleapis.com". If the error is
+   * common across many APIs, the first segment of the example above will be
+   * omitted.  The value will be, "googleapis.com".
+   * 
+ * + * string domain = 2; + * + * @return The bytes for domain. + */ + com.google.protobuf.ByteString getDomainBytes(); + + /** + * + * + *
+   * Additional structured details about this error.
+   * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+   * length. When identifying the current value of an exceeded limit, the units
+   * should be contained in the key, not the value.  For example, rather than
+   * {"instanceLimit": "100/request"}, should be returned as,
+   * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+   * instances that can be created in a single (batch) request.
+   * 
+ * + * map<string, string> metadata = 3; + */ + int getMetadataCount(); + /** + * + * + *
+   * Additional structured details about this error.
+   * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+   * length. When identifying the current value of an exceeded limit, the units
+   * should be contained in the key, not the value.  For example, rather than
+   * {"instanceLimit": "100/request"}, should be returned as,
+   * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+   * instances that can be created in a single (batch) request.
+   * 
+ * + * map<string, string> metadata = 3; + */ + boolean containsMetadata(java.lang.String key); + /** Use {@link #getMetadataMap()} instead. */ + @java.lang.Deprecated + java.util.Map getMetadata(); + /** + * + * + *
+   * Additional structured details about this error.
+   * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+   * length. When identifying the current value of an exceeded limit, the units
+   * should be contained in the key, not the value.  For example, rather than
+   * {"instanceLimit": "100/request"}, should be returned as,
+   * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+   * instances that can be created in a single (batch) request.
+   * 
+ * + * map<string, string> metadata = 3; + */ + java.util.Map getMetadataMap(); + /** + * + * + *
+   * Additional structured details about this error.
+   * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+   * length. When identifying the current value of an exceeded limit, the units
+   * should be contained in the key, not the value.  For example, rather than
+   * {"instanceLimit": "100/request"}, should be returned as,
+   * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+   * instances that can be created in a single (batch) request.
+   * 
+ * + * map<string, string> metadata = 3; + */ + java.lang.String getMetadataOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * Additional structured details about this error.
+   * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+   * length. When identifying the current value of an exceeded limit, the units
+   * should be contained in the key, not the value.  For example, rather than
+   * {"instanceLimit": "100/request"}, should be returned as,
+   * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+   * instances that can be created in a single (batch) request.
+   * 
+ * + * map<string, string> metadata = 3; + */ + java.lang.String getMetadataOrThrow(java.lang.String key); +} diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/Help.java b/proto-google-common-protos/src/main/java/com/google/rpc/Help.java index 801bb4b8..8e2bb257 100644 --- a/proto-google-common-protos/src/main/java/com/google/rpc/Help.java +++ b/proto-google-common-protos/src/main/java/com/google/rpc/Help.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/rpc/error_details.proto package com.google.rpc; /** + * + * *
  * Provides links to documentation or for performing an out of band action.
  * For example, if a quota check failed with an error indicating the calling
@@ -13,31 +30,38 @@
  *
  * Protobuf type {@code google.rpc.Help}
  */
-public  final class Help extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Help extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.rpc.Help)
     HelpOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Help.newBuilder() to construct.
   private Help(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Help() {
     links_ = java.util.Collections.emptyList();
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new Help();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Help(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -50,29 +74,28 @@ private Help(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              links_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                links_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              links_.add(input.readMessage(com.google.rpc.Help.Link.parser(), extensionRegistry));
+              break;
             }
-            links_.add(
-                input.readMessage(Link.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         links_ = java.util.Collections.unmodifiableList(links_);
@@ -81,94 +104,117 @@ private Help(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_Help_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_Help_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            Help.class, Builder.class);
+            com.google.rpc.Help.class, com.google.rpc.Help.Builder.class);
   }
 
-  public interface LinkOrBuilder extends
+  public interface LinkOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.rpc.Help.Link)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Describes what the link offers.
      * 
* * string description = 1; + * + * @return The description. */ - String getDescription(); + java.lang.String getDescription(); /** + * + * *
      * Describes what the link offers.
      * 
* * string description = 1; + * + * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
      * The URL of the link.
      * 
* * string url = 2; + * + * @return The url. */ - String getUrl(); + java.lang.String getUrl(); /** + * + * *
      * The URL of the link.
      * 
* * string url = 2; + * + * @return The bytes for url. */ - com.google.protobuf.ByteString - getUrlBytes(); + com.google.protobuf.ByteString getUrlBytes(); } /** + * + * *
    * Describes a URL link.
    * 
* * Protobuf type {@code google.rpc.Help.Link} */ - public static final class Link extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Link extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.rpc.Help.Link) LinkOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Link.newBuilder() to construct. private Link(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Link() { description_ = ""; url_ = ""; } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Link(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Link( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -179,85 +225,92 @@ private Link( case 0: done = true; break; - case 10: { - String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); + description_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - url_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + url_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_Help_Link_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_Help_Link_fieldAccessorTable + return com.google.rpc.ErrorDetailsProto + .internal_static_google_rpc_Help_Link_fieldAccessorTable .ensureFieldAccessorsInitialized( - Link.class, Builder.class); + com.google.rpc.Help.Link.class, com.google.rpc.Help.Link.Builder.class); } public static final int DESCRIPTION_FIELD_NUMBER = 1; - private volatile Object description_; + private volatile java.lang.Object description_; /** + * + * *
      * Describes what the link offers.
      * 
* * string description = 1; + * + * @return The description. */ - public String getDescription() { - Object ref = description_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
      * Describes what the link offers.
      * 
* * string description = 1; + * + * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + 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); description_ = b; return b; } else { @@ -266,40 +319,45 @@ public String getDescription() { } public static final int URL_FIELD_NUMBER = 2; - private volatile Object url_; + private volatile java.lang.Object url_; /** + * + * *
      * The URL of the link.
      * 
* * string url = 2; + * + * @return The url. */ - public String getUrl() { - Object ref = url_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** + * + * *
      * The URL of the link.
      * 
* * string url = 2; + * + * @return The bytes for url. */ - public com.google.protobuf.ByteString - getUrlBytes() { - Object ref = url_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -308,7 +366,8 @@ public String getUrl() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -318,9 +377,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); } @@ -330,7 +388,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -347,25 +405,23 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof Link)) { + if (!(obj instanceof com.google.rpc.Help.Link)) { return super.equals(obj); } - Link other = (Link) obj; + com.google.rpc.Help.Link other = (com.google.rpc.Help.Link) obj; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getUrl() - .equals(other.getUrl())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getUrl().equals(other.getUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -381,118 +437,126 @@ public int hashCode() { return hash; } - public static Link parseFrom( - java.nio.ByteBuffer data) + public static com.google.rpc.Help.Link parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Link parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.Help.Link parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Link parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.rpc.Help.Link parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Link parseFrom( + + public static com.google.rpc.Help.Link parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Link parseFrom(byte[] data) + + public static com.google.rpc.Help.Link parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Link parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.Help.Link parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Link parseFrom(java.io.InputStream input) + + public static com.google.rpc.Help.Link 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 Link parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.Help.Link parseFrom( + 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 Link parseDelimitedFrom(java.io.InputStream input) + + public static com.google.rpc.Help.Link 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 Link parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.Help.Link parseDelimitedFrom( + 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 Link parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.rpc.Help.Link 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 Link parseFrom( + + public static com.google.rpc.Help.Link 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(Link prototype) { + + public static Builder newBuilder(com.google.rpc.Help.Link prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
      * Describes a URL link.
      * 
* * Protobuf type {@code google.rpc.Help.Link} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.rpc.Help.Link) - LinkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + com.google.rpc.Help.LinkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_Help_Link_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_Help_Link_fieldAccessorTable + return com.google.rpc.ErrorDetailsProto + .internal_static_google_rpc_Help_Link_fieldAccessorTable .ensureFieldAccessorsInitialized( - Link.class, Builder.class); + com.google.rpc.Help.Link.class, com.google.rpc.Help.Link.Builder.class); } // Construct using com.google.rpc.Help.Link.newBuilder() @@ -500,17 +564,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @Override + + @java.lang.Override public Builder clear() { super.clear(); description_ = ""; @@ -520,79 +583,81 @@ public Builder clear() { return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_Help_Link_descriptor; } - @Override - public Link getDefaultInstanceForType() { - return Link.getDefaultInstance(); + @java.lang.Override + public com.google.rpc.Help.Link getDefaultInstanceForType() { + return com.google.rpc.Help.Link.getDefaultInstance(); } - @Override - public Link build() { - Link result = buildPartial(); + @java.lang.Override + public com.google.rpc.Help.Link build() { + com.google.rpc.Help.Link result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public Link buildPartial() { - Link result = new Link(this); + @java.lang.Override + public com.google.rpc.Help.Link buildPartial() { + com.google.rpc.Help.Link result = new com.google.rpc.Help.Link(this); result.description_ = description_; result.url_ = url_; onBuilt(); return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof Link) { - return mergeFrom((Link)other); + if (other instanceof com.google.rpc.Help.Link) { + return mergeFrom((com.google.rpc.Help.Link) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(Link other) { - if (other == Link.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.rpc.Help.Link other) { + if (other == com.google.rpc.Help.Link.getDefaultInstance()) return this; if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); @@ -606,21 +671,21 @@ public Builder mergeFrom(Link other) { return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Link parsedMessage = null; + com.google.rpc.Help.Link parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Link) e.getUnfinishedMessage(); + parsedMessage = (com.google.rpc.Help.Link) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -630,40 +695,45 @@ public Builder mergeFrom( return this; } - private Object description_ = ""; + private java.lang.Object description_ = ""; /** + * + * *
        * Describes what the link offers.
        * 
* * string description = 1; + * + * @return The description. */ - public String getDescription() { - Object ref = description_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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; + java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
        * Describes what the link offers.
        * 
* * string description = 1; + * + * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - Object ref = description_; + 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( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -671,88 +741,105 @@ public String getDescription() { } } /** + * + * *
        * Describes what the link offers.
        * 
* * string description = 1; + * + * @param value The description to set. + * @return This builder for chaining. */ - public Builder setDescription( - String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
        * Describes what the link offers.
        * 
* * string description = 1; + * + * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
        * Describes what the link offers.
        * 
* * string description = 1; + * + * @param value The bytes for description to set. + * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private Object url_ = ""; + private java.lang.Object url_ = ""; /** + * + * *
        * The URL of the link.
        * 
* * string url = 2; + * + * @return The url. */ - public String getUrl() { - Object ref = url_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
        * The URL of the link.
        * 
* * string url = 2; + * + * @return The bytes for url. */ - public com.google.protobuf.ByteString - getUrlBytes() { - Object ref = url_; + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -760,130 +847,147 @@ public String getUrl() { } } /** + * + * *
        * The URL of the link.
        * 
* * string url = 2; + * + * @param value The url to set. + * @return This builder for chaining. */ - public Builder setUrl( - String value) { + public Builder setUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** + * + * *
        * The URL of the link.
        * 
* * string url = 2; + * + * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** + * + * *
        * The URL of the link.
        * 
* * string url = 2; + * + * @param value The bytes for url to set. + * @return This builder for chaining. */ - public Builder setUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; } - @Override + + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.rpc.Help.Link) } // @@protoc_insertion_point(class_scope:google.rpc.Help.Link) - private static final Link DEFAULT_INSTANCE; + private static final com.google.rpc.Help.Link DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new Link(); + DEFAULT_INSTANCE = new com.google.rpc.Help.Link(); } - public static Link getDefaultInstance() { + public static com.google.rpc.Help.Link getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public Link parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Link(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Link parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Link(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public Link getDefaultInstanceForType() { + @java.lang.Override + public com.google.rpc.Help.Link getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int LINKS_FIELD_NUMBER = 1; - private java.util.List links_; + private java.util.List links_; /** + * + * *
    * URL(s) pointing to additional information on handling the current error.
    * 
* * repeated .google.rpc.Help.Link links = 1; */ - public java.util.List getLinksList() { + public java.util.List getLinksList() { return links_; } /** + * + * *
    * URL(s) pointing to additional information on handling the current error.
    * 
* * repeated .google.rpc.Help.Link links = 1; */ - public java.util.List - getLinksOrBuilderList() { + public java.util.List getLinksOrBuilderList() { return links_; } /** + * + * *
    * URL(s) pointing to additional information on handling the current error.
    * 
@@ -894,29 +998,33 @@ public int getLinksCount() { return links_.size(); } /** + * + * *
    * URL(s) pointing to additional information on handling the current error.
    * 
* * repeated .google.rpc.Help.Link links = 1; */ - public Link getLinks(int index) { + public com.google.rpc.Help.Link getLinks(int index) { return links_.get(index); } /** + * + * *
    * URL(s) pointing to additional information on handling the current error.
    * 
* * repeated .google.rpc.Help.Link links = 1; */ - public LinkOrBuilder getLinksOrBuilder( - int index) { + public com.google.rpc.Help.LinkOrBuilder getLinksOrBuilder(int index) { return links_.get(index); } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -926,47 +1034,44 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < links_.size(); i++) { output.writeMessage(1, links_.get(i)); } unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < links_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, links_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, links_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof Help)) { + if (!(obj instanceof com.google.rpc.Help)) { return super.equals(obj); } - Help other = (Help) obj; + com.google.rpc.Help other = (com.google.rpc.Help) obj; - if (!getLinksList() - .equals(other.getLinksList())) return false; + if (!getLinksList().equals(other.getLinksList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -982,97 +1087,103 @@ public int hashCode() { return hash; } - public static Help parseFrom( - java.nio.ByteBuffer data) + public static com.google.rpc.Help parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Help parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.Help parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Help parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.rpc.Help parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Help parseFrom( + + public static com.google.rpc.Help parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Help parseFrom(byte[] data) + + public static com.google.rpc.Help parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Help parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.Help parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Help parseFrom(java.io.InputStream input) + + public static com.google.rpc.Help 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 Help parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.Help parseFrom( + 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 Help parseDelimitedFrom(java.io.InputStream input) + + public static com.google.rpc.Help 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 Help parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.Help parseDelimitedFrom( + 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 Help parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.rpc.Help 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 Help parseFrom( + + public static com.google.rpc.Help 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(Help prototype) { + + public static Builder newBuilder(com.google.rpc.Help prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Provides links to documentation or for performing an out of band action.
    * For example, if a quota check failed with an error indicating the calling
@@ -1082,21 +1193,20 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.rpc.Help}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.rpc.Help)
       com.google.rpc.HelpOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_Help_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_Help_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              Help.class, Builder.class);
+              com.google.rpc.Help.class, com.google.rpc.Help.Builder.class);
     }
 
     // Construct using com.google.rpc.Help.newBuilder()
@@ -1104,18 +1214,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getLinksFieldBuilder();
       }
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       if (linksBuilder_ == null) {
@@ -1127,29 +1237,28 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_Help_descriptor;
     }
 
-    @Override
-    public Help getDefaultInstanceForType() {
-      return Help.getDefaultInstance();
+    @java.lang.Override
+    public com.google.rpc.Help getDefaultInstanceForType() {
+      return com.google.rpc.Help.getDefaultInstance();
     }
 
-    @Override
-    public Help build() {
-      Help result = buildPartial();
+    @java.lang.Override
+    public com.google.rpc.Help build() {
+      com.google.rpc.Help result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public Help buildPartial() {
-      Help result = new Help(this);
+    @java.lang.Override
+    public com.google.rpc.Help buildPartial() {
+      com.google.rpc.Help result = new com.google.rpc.Help(this);
       int from_bitField0_ = bitField0_;
       if (linksBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -1164,50 +1273,51 @@ public Help buildPartial() {
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof Help) {
-        return mergeFrom((Help)other);
+      if (other instanceof com.google.rpc.Help) {
+        return mergeFrom((com.google.rpc.Help) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(Help other) {
-      if (other == Help.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.rpc.Help other) {
+      if (other == com.google.rpc.Help.getDefaultInstance()) return this;
       if (linksBuilder_ == null) {
         if (!other.links_.isEmpty()) {
           if (links_.isEmpty()) {
@@ -1226,9 +1336,10 @@ public Builder mergeFrom(Help other) {
             linksBuilder_ = null;
             links_ = other.links_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            linksBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getLinksFieldBuilder() : null;
+            linksBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getLinksFieldBuilder()
+                    : null;
           } else {
             linksBuilder_.addAllMessages(other.links_);
           }
@@ -1239,21 +1350,21 @@ public Builder mergeFrom(Help other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      Help parsedMessage = null;
+      com.google.rpc.Help parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (Help) e.getUnfinishedMessage();
+        parsedMessage = (com.google.rpc.Help) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1262,28 +1373,34 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List links_ =
-      java.util.Collections.emptyList();
+    private java.util.List links_ = java.util.Collections.emptyList();
+
     private void ensureLinksIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        links_ = new java.util.ArrayList(links_);
+        links_ = new java.util.ArrayList(links_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        Link, Link.Builder, LinkOrBuilder> linksBuilder_;
+            com.google.rpc.Help.Link,
+            com.google.rpc.Help.Link.Builder,
+            com.google.rpc.Help.LinkOrBuilder>
+        linksBuilder_;
 
     /**
+     *
+     *
      * 
      * URL(s) pointing to additional information on handling the current error.
      * 
* * repeated .google.rpc.Help.Link links = 1; */ - public java.util.List getLinksList() { + public java.util.List getLinksList() { if (linksBuilder_ == null) { return java.util.Collections.unmodifiableList(links_); } else { @@ -1291,6 +1408,8 @@ public java.util.List getLinksList() { } } /** + * + * *
      * URL(s) pointing to additional information on handling the current error.
      * 
@@ -1305,13 +1424,15 @@ public int getLinksCount() { } } /** + * + * *
      * URL(s) pointing to additional information on handling the current error.
      * 
* * repeated .google.rpc.Help.Link links = 1; */ - public Link getLinks(int index) { + public com.google.rpc.Help.Link getLinks(int index) { if (linksBuilder_ == null) { return links_.get(index); } else { @@ -1319,14 +1440,15 @@ public Link getLinks(int index) { } } /** + * + * *
      * URL(s) pointing to additional information on handling the current error.
      * 
* * repeated .google.rpc.Help.Link links = 1; */ - public Builder setLinks( - int index, Link value) { + public Builder setLinks(int index, com.google.rpc.Help.Link value) { if (linksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1340,14 +1462,15 @@ public Builder setLinks( return this; } /** + * + * *
      * URL(s) pointing to additional information on handling the current error.
      * 
* * repeated .google.rpc.Help.Link links = 1; */ - public Builder setLinks( - int index, Link.Builder builderForValue) { + public Builder setLinks(int index, com.google.rpc.Help.Link.Builder builderForValue) { if (linksBuilder_ == null) { ensureLinksIsMutable(); links_.set(index, builderForValue.build()); @@ -1358,13 +1481,15 @@ public Builder setLinks( return this; } /** + * + * *
      * URL(s) pointing to additional information on handling the current error.
      * 
* * repeated .google.rpc.Help.Link links = 1; */ - public Builder addLinks(Link value) { + public Builder addLinks(com.google.rpc.Help.Link value) { if (linksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1378,14 +1503,15 @@ public Builder addLinks(Link value) { return this; } /** + * + * *
      * URL(s) pointing to additional information on handling the current error.
      * 
* * repeated .google.rpc.Help.Link links = 1; */ - public Builder addLinks( - int index, Link value) { + public Builder addLinks(int index, com.google.rpc.Help.Link value) { if (linksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1399,14 +1525,15 @@ public Builder addLinks( return this; } /** + * + * *
      * URL(s) pointing to additional information on handling the current error.
      * 
* * repeated .google.rpc.Help.Link links = 1; */ - public Builder addLinks( - Link.Builder builderForValue) { + public Builder addLinks(com.google.rpc.Help.Link.Builder builderForValue) { if (linksBuilder_ == null) { ensureLinksIsMutable(); links_.add(builderForValue.build()); @@ -1417,14 +1544,15 @@ public Builder addLinks( return this; } /** + * + * *
      * URL(s) pointing to additional information on handling the current error.
      * 
* * repeated .google.rpc.Help.Link links = 1; */ - public Builder addLinks( - int index, Link.Builder builderForValue) { + public Builder addLinks(int index, com.google.rpc.Help.Link.Builder builderForValue) { if (linksBuilder_ == null) { ensureLinksIsMutable(); links_.add(index, builderForValue.build()); @@ -1435,18 +1563,18 @@ public Builder addLinks( return this; } /** + * + * *
      * URL(s) pointing to additional information on handling the current error.
      * 
* * repeated .google.rpc.Help.Link links = 1; */ - public Builder addAllLinks( - Iterable values) { + public Builder addAllLinks(java.lang.Iterable values) { if (linksBuilder_ == null) { ensureLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, links_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, links_); onChanged(); } else { linksBuilder_.addAllMessages(values); @@ -1454,6 +1582,8 @@ public Builder addAllLinks( return this; } /** + * + * *
      * URL(s) pointing to additional information on handling the current error.
      * 
@@ -1471,6 +1601,8 @@ public Builder clearLinks() { return this; } /** + * + * *
      * URL(s) pointing to additional information on handling the current error.
      * 
@@ -1488,39 +1620,43 @@ public Builder removeLinks(int index) { return this; } /** + * + * *
      * URL(s) pointing to additional information on handling the current error.
      * 
* * repeated .google.rpc.Help.Link links = 1; */ - public Link.Builder getLinksBuilder( - int index) { + public com.google.rpc.Help.Link.Builder getLinksBuilder(int index) { return getLinksFieldBuilder().getBuilder(index); } /** + * + * *
      * URL(s) pointing to additional information on handling the current error.
      * 
* * repeated .google.rpc.Help.Link links = 1; */ - public LinkOrBuilder getLinksOrBuilder( - int index) { + public com.google.rpc.Help.LinkOrBuilder getLinksOrBuilder(int index) { if (linksBuilder_ == null) { - return links_.get(index); } else { + return links_.get(index); + } else { return linksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * URL(s) pointing to additional information on handling the current error.
      * 
* * repeated .google.rpc.Help.Link links = 1; */ - public java.util.List - getLinksOrBuilderList() { + public java.util.List getLinksOrBuilderList() { if (linksBuilder_ != null) { return linksBuilder_.getMessageOrBuilderList(); } else { @@ -1528,103 +1664,107 @@ public LinkOrBuilder getLinksOrBuilder( } } /** + * + * *
      * URL(s) pointing to additional information on handling the current error.
      * 
* * repeated .google.rpc.Help.Link links = 1; */ - public Link.Builder addLinksBuilder() { - return getLinksFieldBuilder().addBuilder( - Link.getDefaultInstance()); + public com.google.rpc.Help.Link.Builder addLinksBuilder() { + return getLinksFieldBuilder().addBuilder(com.google.rpc.Help.Link.getDefaultInstance()); } /** + * + * *
      * URL(s) pointing to additional information on handling the current error.
      * 
* * repeated .google.rpc.Help.Link links = 1; */ - public Link.Builder addLinksBuilder( - int index) { - return getLinksFieldBuilder().addBuilder( - index, Link.getDefaultInstance()); + public com.google.rpc.Help.Link.Builder addLinksBuilder(int index) { + return getLinksFieldBuilder() + .addBuilder(index, com.google.rpc.Help.Link.getDefaultInstance()); } /** + * + * *
      * URL(s) pointing to additional information on handling the current error.
      * 
* * repeated .google.rpc.Help.Link links = 1; */ - public java.util.List - getLinksBuilderList() { + public java.util.List getLinksBuilderList() { return getLinksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - Link, Link.Builder, LinkOrBuilder> + com.google.rpc.Help.Link, + com.google.rpc.Help.Link.Builder, + com.google.rpc.Help.LinkOrBuilder> getLinksFieldBuilder() { if (linksBuilder_ == null) { - linksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - Link, Link.Builder, LinkOrBuilder>( - links_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + linksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Help.Link, + com.google.rpc.Help.Link.Builder, + com.google.rpc.Help.LinkOrBuilder>( + links_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); links_ = null; } return linksBuilder_; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.rpc.Help) } // @@protoc_insertion_point(class_scope:google.rpc.Help) - private static final Help DEFAULT_INSTANCE; + private static final com.google.rpc.Help DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new Help(); + DEFAULT_INSTANCE = new com.google.rpc.Help(); } - public static Help getDefaultInstance() { + public static com.google.rpc.Help getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public Help parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Help(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Help parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Help(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public Help getDefaultInstanceForType() { + @java.lang.Override + public com.google.rpc.Help getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/HelpOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/rpc/HelpOrBuilder.java index 6dd59cd9..57cd5e0d 100644 --- a/proto-google-common-protos/src/main/java/com/google/rpc/HelpOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/rpc/HelpOrBuilder.java @@ -1,30 +1,51 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/error_details.proto package com.google.rpc; -public interface HelpOrBuilder extends +public interface HelpOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.rpc.Help) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * URL(s) pointing to additional information on handling the current error.
    * 
* * repeated .google.rpc.Help.Link links = 1; */ - java.util.List - getLinksList(); + java.util.List getLinksList(); /** + * + * *
    * URL(s) pointing to additional information on handling the current error.
    * 
* * repeated .google.rpc.Help.Link links = 1; */ - Help.Link getLinks(int index); + com.google.rpc.Help.Link getLinks(int index); /** + * + * *
    * URL(s) pointing to additional information on handling the current error.
    * 
@@ -33,21 +54,23 @@ public interface HelpOrBuilder extends */ int getLinksCount(); /** + * + * *
    * URL(s) pointing to additional information on handling the current error.
    * 
* * repeated .google.rpc.Help.Link links = 1; */ - java.util.List - getLinksOrBuilderList(); + java.util.List getLinksOrBuilderList(); /** + * + * *
    * URL(s) pointing to additional information on handling the current error.
    * 
* * repeated .google.rpc.Help.Link links = 1; */ - Help.LinkOrBuilder getLinksOrBuilder( - int index); + com.google.rpc.Help.LinkOrBuilder getLinksOrBuilder(int index); } diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/LocalizedMessage.java b/proto-google-common-protos/src/main/java/com/google/rpc/LocalizedMessage.java index e2e742c1..a346921e 100644 --- a/proto-google-common-protos/src/main/java/com/google/rpc/LocalizedMessage.java +++ b/proto-google-common-protos/src/main/java/com/google/rpc/LocalizedMessage.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/rpc/error_details.proto package com.google.rpc; /** + * + * *
  * Provides a localized error message that is safe to return to the user
  * which can be attached to an RPC error.
@@ -11,34 +28,40 @@
  *
  * Protobuf type {@code google.rpc.LocalizedMessage}
  */
-public  final class LocalizedMessage extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LocalizedMessage extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.rpc.LocalizedMessage)
     LocalizedMessageOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LocalizedMessage.newBuilder() to construct.
   private LocalizedMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LocalizedMessage() {
     locale_ = "";
     message_ = "";
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new LocalizedMessage();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LocalizedMessage(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
-    int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
         com.google.protobuf.UnknownFieldSet.newBuilder();
     try {
@@ -49,53 +72,57 @@ private LocalizedMessage(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            locale_ = s;
-            break;
-          }
-          case 18: {
-            String s = input.readStringRequireUtf8();
+              locale_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            message_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              message_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_LocalizedMessage_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_LocalizedMessage_fieldAccessorTable
+    return com.google.rpc.ErrorDetailsProto
+        .internal_static_google_rpc_LocalizedMessage_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            LocalizedMessage.class, Builder.class);
+            com.google.rpc.LocalizedMessage.class, com.google.rpc.LocalizedMessage.Builder.class);
   }
 
   public static final int LOCALE_FIELD_NUMBER = 1;
-  private volatile Object locale_;
+  private volatile java.lang.Object locale_;
   /**
+   *
+   *
    * 
    * The locale used following the specification defined at
    * http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
@@ -103,20 +130,23 @@ private LocalizedMessage(
    * 
* * string locale = 1; + * + * @return The locale. */ - public String getLocale() { - Object ref = locale_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getLocale() { + java.lang.Object ref = locale_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); locale_ = s; return s; } } /** + * + * *
    * The locale used following the specification defined at
    * http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
@@ -124,14 +154,14 @@ public String getLocale() {
    * 
* * string locale = 1; + * + * @return The bytes for locale. */ - public com.google.protobuf.ByteString - getLocaleBytes() { - Object ref = locale_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getLocaleBytes() { + java.lang.Object ref = locale_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locale_ = b; return b; } else { @@ -140,40 +170,45 @@ public String getLocale() { } public static final int MESSAGE_FIELD_NUMBER = 2; - private volatile Object message_; + private volatile java.lang.Object message_; /** + * + * *
    * The localized error message in the above locale.
    * 
* * string message = 2; + * + * @return The message. */ - public String getMessage() { - Object ref = message_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** + * + * *
    * The localized error message in the above locale.
    * 
* * string message = 2; + * + * @return The bytes for message. */ - public com.google.protobuf.ByteString - getMessageBytes() { - Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -182,7 +217,8 @@ public String getMessage() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -192,9 +228,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getLocaleBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, locale_); } @@ -204,7 +239,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -221,25 +256,23 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof LocalizedMessage)) { + if (!(obj instanceof com.google.rpc.LocalizedMessage)) { return super.equals(obj); } - LocalizedMessage other = (LocalizedMessage) obj; + com.google.rpc.LocalizedMessage other = (com.google.rpc.LocalizedMessage) obj; - if (!getLocale() - .equals(other.getLocale())) return false; - if (!getMessage() - .equals(other.getMessage())) return false; + if (!getLocale().equals(other.getLocale())) return false; + if (!getMessage().equals(other.getMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -255,97 +288,103 @@ public int hashCode() { return hash; } - public static LocalizedMessage parseFrom( - java.nio.ByteBuffer data) + public static com.google.rpc.LocalizedMessage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static LocalizedMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.LocalizedMessage parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static LocalizedMessage parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.rpc.LocalizedMessage parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static LocalizedMessage parseFrom( + + public static com.google.rpc.LocalizedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static LocalizedMessage parseFrom(byte[] data) + + public static com.google.rpc.LocalizedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static LocalizedMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.LocalizedMessage parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static LocalizedMessage parseFrom(java.io.InputStream input) + + public static com.google.rpc.LocalizedMessage 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 LocalizedMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.LocalizedMessage parseFrom( + 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 LocalizedMessage parseDelimitedFrom(java.io.InputStream input) + + public static com.google.rpc.LocalizedMessage 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 LocalizedMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.LocalizedMessage parseDelimitedFrom( + 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 LocalizedMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.rpc.LocalizedMessage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static LocalizedMessage parseFrom( + + public static com.google.rpc.LocalizedMessage 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(LocalizedMessage prototype) { + + public static Builder newBuilder(com.google.rpc.LocalizedMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Provides a localized error message that is safe to return to the user
    * which can be attached to an RPC error.
@@ -353,21 +392,22 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.rpc.LocalizedMessage}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.rpc.LocalizedMessage)
       com.google.rpc.LocalizedMessageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_LocalizedMessage_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.rpc.ErrorDetailsProto
+          .internal_static_google_rpc_LocalizedMessage_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_LocalizedMessage_fieldAccessorTable
+      return com.google.rpc.ErrorDetailsProto
+          .internal_static_google_rpc_LocalizedMessage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              LocalizedMessage.class, Builder.class);
+              com.google.rpc.LocalizedMessage.class, com.google.rpc.LocalizedMessage.Builder.class);
     }
 
     // Construct using com.google.rpc.LocalizedMessage.newBuilder()
@@ -375,17 +415,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       locale_ = "";
@@ -395,79 +434,80 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_LocalizedMessage_descriptor;
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.rpc.ErrorDetailsProto
+          .internal_static_google_rpc_LocalizedMessage_descriptor;
     }
 
-    @Override
-    public LocalizedMessage getDefaultInstanceForType() {
-      return LocalizedMessage.getDefaultInstance();
+    @java.lang.Override
+    public com.google.rpc.LocalizedMessage getDefaultInstanceForType() {
+      return com.google.rpc.LocalizedMessage.getDefaultInstance();
     }
 
-    @Override
-    public LocalizedMessage build() {
-      LocalizedMessage result = buildPartial();
+    @java.lang.Override
+    public com.google.rpc.LocalizedMessage build() {
+      com.google.rpc.LocalizedMessage result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public LocalizedMessage buildPartial() {
-      LocalizedMessage result = new LocalizedMessage(this);
+    @java.lang.Override
+    public com.google.rpc.LocalizedMessage buildPartial() {
+      com.google.rpc.LocalizedMessage result = new com.google.rpc.LocalizedMessage(this);
       result.locale_ = locale_;
       result.message_ = message_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof LocalizedMessage) {
-        return mergeFrom((LocalizedMessage)other);
+      if (other instanceof com.google.rpc.LocalizedMessage) {
+        return mergeFrom((com.google.rpc.LocalizedMessage) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(LocalizedMessage other) {
-      if (other == LocalizedMessage.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.rpc.LocalizedMessage other) {
+      if (other == com.google.rpc.LocalizedMessage.getDefaultInstance()) return this;
       if (!other.getLocale().isEmpty()) {
         locale_ = other.locale_;
         onChanged();
@@ -481,21 +521,21 @@ public Builder mergeFrom(LocalizedMessage other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      LocalizedMessage parsedMessage = null;
+      com.google.rpc.LocalizedMessage parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (LocalizedMessage) e.getUnfinishedMessage();
+        parsedMessage = (com.google.rpc.LocalizedMessage) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -505,8 +545,10 @@ public Builder mergeFrom(
       return this;
     }
 
-    private Object locale_ = "";
+    private java.lang.Object locale_ = "";
     /**
+     *
+     *
      * 
      * The locale used following the specification defined at
      * http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
@@ -514,20 +556,23 @@ public Builder mergeFrom(
      * 
* * string locale = 1; + * + * @return The locale. */ - public String getLocale() { - Object ref = locale_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getLocale() { + java.lang.Object ref = locale_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); locale_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The locale used following the specification defined at
      * http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
@@ -535,14 +580,14 @@ public String getLocale() {
      * 
* * string locale = 1; + * + * @return The bytes for locale. */ - public com.google.protobuf.ByteString - getLocaleBytes() { - Object ref = locale_; + public com.google.protobuf.ByteString getLocaleBytes() { + java.lang.Object ref = locale_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locale_ = b; return b; } else { @@ -550,6 +595,8 @@ public String getLocale() { } } /** + * + * *
      * The locale used following the specification defined at
      * http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
@@ -557,18 +604,22 @@ public String getLocale() {
      * 
* * string locale = 1; + * + * @param value The locale to set. + * @return This builder for chaining. */ - public Builder setLocale( - String value) { + public Builder setLocale(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + locale_ = value; onChanged(); return this; } /** + * + * *
      * The locale used following the specification defined at
      * http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
@@ -576,14 +627,18 @@ public Builder setLocale(
      * 
* * string locale = 1; + * + * @return This builder for chaining. */ public Builder clearLocale() { - + locale_ = getDefaultInstance().getLocale(); onChanged(); return this; } /** + * + * *
      * The locale used following the specification defined at
      * http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
@@ -591,53 +646,60 @@ public Builder clearLocale() {
      * 
* * string locale = 1; + * + * @param value The bytes for locale to set. + * @return This builder for chaining. */ - public Builder setLocaleBytes( - com.google.protobuf.ByteString value) { + public Builder setLocaleBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + locale_ = value; onChanged(); return this; } - private Object message_ = ""; + private java.lang.Object message_ = ""; /** + * + * *
      * The localized error message in the above locale.
      * 
* * string message = 2; + * + * @return The message. */ - public String getMessage() { - Object ref = message_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The localized error message in the above locale.
      * 
* * string message = 2; + * + * @return The bytes for message. */ - public com.google.protobuf.ByteString - getMessageBytes() { - Object ref = message_; + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -645,103 +707,113 @@ public String getMessage() { } } /** + * + * *
      * The localized error message in the above locale.
      * 
* * string message = 2; + * + * @param value The message to set. + * @return This builder for chaining. */ - public Builder setMessage( - String value) { + public Builder setMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + message_ = value; onChanged(); return this; } /** + * + * *
      * The localized error message in the above locale.
      * 
* * string message = 2; + * + * @return This builder for chaining. */ public Builder clearMessage() { - + message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** + * + * *
      * The localized error message in the above locale.
      * 
* * string message = 2; + * + * @param value The bytes for message to set. + * @return This builder for chaining. */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.rpc.LocalizedMessage) } // @@protoc_insertion_point(class_scope:google.rpc.LocalizedMessage) - private static final LocalizedMessage DEFAULT_INSTANCE; + private static final com.google.rpc.LocalizedMessage DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new LocalizedMessage(); + DEFAULT_INSTANCE = new com.google.rpc.LocalizedMessage(); } - public static LocalizedMessage getDefaultInstance() { + public static com.google.rpc.LocalizedMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public LocalizedMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LocalizedMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocalizedMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LocalizedMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public LocalizedMessage getDefaultInstanceForType() { + @java.lang.Override + public com.google.rpc.LocalizedMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/LocalizedMessageOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/rpc/LocalizedMessageOrBuilder.java index 35be3912..21816286 100644 --- a/proto-google-common-protos/src/main/java/com/google/rpc/LocalizedMessageOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/rpc/LocalizedMessageOrBuilder.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/rpc/error_details.proto package com.google.rpc; -public interface LocalizedMessageOrBuilder extends +public interface LocalizedMessageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.rpc.LocalizedMessage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The locale used following the specification defined at
    * http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
@@ -15,9 +33,13 @@ public interface LocalizedMessageOrBuilder extends
    * 
* * string locale = 1; + * + * @return The locale. */ - String getLocale(); + java.lang.String getLocale(); /** + * + * *
    * The locale used following the specification defined at
    * http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
@@ -25,25 +47,33 @@ public interface LocalizedMessageOrBuilder extends
    * 
* * string locale = 1; + * + * @return The bytes for locale. */ - com.google.protobuf.ByteString - getLocaleBytes(); + com.google.protobuf.ByteString getLocaleBytes(); /** + * + * *
    * The localized error message in the above locale.
    * 
* * string message = 2; + * + * @return The message. */ - String getMessage(); + java.lang.String getMessage(); /** + * + * *
    * The localized error message in the above locale.
    * 
* * string message = 2; + * + * @return The bytes for message. */ - com.google.protobuf.ByteString - getMessageBytes(); + com.google.protobuf.ByteString getMessageBytes(); } diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/PreconditionFailure.java b/proto-google-common-protos/src/main/java/com/google/rpc/PreconditionFailure.java index f361ce0b..2614da4e 100644 --- a/proto-google-common-protos/src/main/java/com/google/rpc/PreconditionFailure.java +++ b/proto-google-common-protos/src/main/java/com/google/rpc/PreconditionFailure.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/rpc/error_details.proto package com.google.rpc; /** + * + * *
  * Describes what preconditions have failed.
  * For example, if an RPC failed because it required the Terms of Service to be
@@ -13,31 +30,38 @@
  *
  * Protobuf type {@code google.rpc.PreconditionFailure}
  */
-public  final class PreconditionFailure extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class PreconditionFailure extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.rpc.PreconditionFailure)
     PreconditionFailureOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use PreconditionFailure.newBuilder() to construct.
   private PreconditionFailure(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private PreconditionFailure() {
     violations_ = java.util.Collections.emptyList();
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new PreconditionFailure();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private PreconditionFailure(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -50,29 +74,31 @@ private PreconditionFailure(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              violations_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                violations_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              violations_.add(
+                  input.readMessage(
+                      com.google.rpc.PreconditionFailure.Violation.parser(), extensionRegistry));
+              break;
             }
-            violations_.add(
-                input.readMessage(Violation.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         violations_ = java.util.Collections.unmodifiableList(violations_);
@@ -81,68 +107,88 @@ private PreconditionFailure(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return ErrorDetailsProto.internal_static_google_rpc_PreconditionFailure_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.rpc.ErrorDetailsProto
+        .internal_static_google_rpc_PreconditionFailure_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return ErrorDetailsProto.internal_static_google_rpc_PreconditionFailure_fieldAccessorTable
+    return com.google.rpc.ErrorDetailsProto
+        .internal_static_google_rpc_PreconditionFailure_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            PreconditionFailure.class, Builder.class);
+            com.google.rpc.PreconditionFailure.class,
+            com.google.rpc.PreconditionFailure.Builder.class);
   }
 
-  public interface ViolationOrBuilder extends
+  public interface ViolationOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.rpc.PreconditionFailure.Violation)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The type of PreconditionFailure. We recommend using a service-specific
-     * enum type to define the supported precondition violation types. For
+     * enum type to define the supported precondition violation subjects. For
      * example, "TOS" for "Terms of Service violation".
      * 
* * string type = 1; + * + * @return The type. */ - String getType(); + java.lang.String getType(); /** + * + * *
      * The type of PreconditionFailure. We recommend using a service-specific
-     * enum type to define the supported precondition violation types. For
+     * enum type to define the supported precondition violation subjects. For
      * example, "TOS" for "Terms of Service violation".
      * 
* * string type = 1; + * + * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); /** + * + * *
      * The subject, relative to the type, that failed.
-     * For example, "google.com/cloud" relative to the "TOS" type would
-     * indicate which terms of service is being referenced.
+     * For example, "google.com/cloud" relative to the "TOS" type would indicate
+     * which terms of service is being referenced.
      * 
* * string subject = 2; + * + * @return The subject. */ - String getSubject(); + java.lang.String getSubject(); /** + * + * *
      * The subject, relative to the type, that failed.
-     * For example, "google.com/cloud" relative to the "TOS" type would
-     * indicate which terms of service is being referenced.
+     * For example, "google.com/cloud" relative to the "TOS" type would indicate
+     * which terms of service is being referenced.
      * 
* * string subject = 2; + * + * @return The bytes for subject. */ - com.google.protobuf.ByteString - getSubjectBytes(); + com.google.protobuf.ByteString getSubjectBytes(); /** + * + * *
      * A description of how the precondition failed. Developers can use this
      * description to understand how to fix the failure.
@@ -150,9 +196,13 @@ public interface ViolationOrBuilder extends
      * 
* * string description = 3; + * + * @return The description. */ - String getDescription(); + java.lang.String getDescription(); /** + * + * *
      * A description of how the precondition failed. Developers can use this
      * description to understand how to fix the failure.
@@ -160,46 +210,55 @@ public interface ViolationOrBuilder extends
      * 
* * string description = 3; + * + * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); } /** + * + * *
    * A message type used to describe a single precondition failure.
    * 
* * Protobuf type {@code google.rpc.PreconditionFailure.Violation} */ - public static final class Violation extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Violation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.rpc.PreconditionFailure.Violation) ViolationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Violation.newBuilder() to construct. private Violation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Violation() { type_ = ""; subject_ = ""; description_ = ""; } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Violation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Violation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -210,95 +269,105 @@ private Violation( case 0: done = true; break; - case 10: { - String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - type_ = s; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); + type_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - subject_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); + subject_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + description_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ErrorDetailsProto.internal_static_google_rpc_PreconditionFailure_Violation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.rpc.ErrorDetailsProto + .internal_static_google_rpc_PreconditionFailure_Violation_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return ErrorDetailsProto.internal_static_google_rpc_PreconditionFailure_Violation_fieldAccessorTable + return com.google.rpc.ErrorDetailsProto + .internal_static_google_rpc_PreconditionFailure_Violation_fieldAccessorTable .ensureFieldAccessorsInitialized( - Violation.class, Builder.class); + com.google.rpc.PreconditionFailure.Violation.class, + com.google.rpc.PreconditionFailure.Violation.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; - private volatile Object type_; + private volatile java.lang.Object type_; /** + * + * *
      * The type of PreconditionFailure. We recommend using a service-specific
-     * enum type to define the supported precondition violation types. For
+     * enum type to define the supported precondition violation subjects. For
      * example, "TOS" for "Terms of Service violation".
      * 
* * string type = 1; + * + * @return The type. */ - public String getType() { - Object ref = type_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** + * + * *
      * The type of PreconditionFailure. We recommend using a service-specific
-     * enum type to define the supported precondition violation types. For
+     * enum type to define the supported precondition violation subjects. For
      * example, "TOS" for "Terms of Service violation".
      * 
* * string type = 1; + * + * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { - Object ref = type_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -307,44 +376,49 @@ public String getType() { } public static final int SUBJECT_FIELD_NUMBER = 2; - private volatile Object subject_; + private volatile java.lang.Object subject_; /** + * + * *
      * The subject, relative to the type, that failed.
-     * For example, "google.com/cloud" relative to the "TOS" type would
-     * indicate which terms of service is being referenced.
+     * For example, "google.com/cloud" relative to the "TOS" type would indicate
+     * which terms of service is being referenced.
      * 
* * string subject = 2; + * + * @return The subject. */ - public String getSubject() { - Object ref = subject_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getSubject() { + java.lang.Object ref = subject_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); subject_ = s; return s; } } /** + * + * *
      * The subject, relative to the type, that failed.
-     * For example, "google.com/cloud" relative to the "TOS" type would
-     * indicate which terms of service is being referenced.
+     * For example, "google.com/cloud" relative to the "TOS" type would indicate
+     * which terms of service is being referenced.
      * 
* * string subject = 2; + * + * @return The bytes for subject. */ - public com.google.protobuf.ByteString - getSubjectBytes() { - Object ref = subject_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getSubjectBytes() { + java.lang.Object ref = subject_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subject_ = b; return b; } else { @@ -353,8 +427,10 @@ public String getSubject() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile Object description_; + private volatile java.lang.Object description_; /** + * + * *
      * A description of how the precondition failed. Developers can use this
      * description to understand how to fix the failure.
@@ -362,20 +438,23 @@ public String getSubject() {
      * 
* * string description = 3; + * + * @return The description. */ - public String getDescription() { - Object ref = description_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
      * A description of how the precondition failed. Developers can use this
      * description to understand how to fix the failure.
@@ -383,14 +462,14 @@ public String getDescription() {
      * 
* * string description = 3; + * + * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + 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); description_ = b; return b; } else { @@ -399,7 +478,8 @@ public String getDescription() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -409,9 +489,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getTypeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } @@ -424,7 +503,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -444,27 +523,25 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof Violation)) { + if (!(obj instanceof com.google.rpc.PreconditionFailure.Violation)) { return super.equals(obj); } - Violation other = (Violation) obj; + com.google.rpc.PreconditionFailure.Violation other = + (com.google.rpc.PreconditionFailure.Violation) obj; - if (!getType() - .equals(other.getType())) return false; - if (!getSubject() - .equals(other.getSubject())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getType().equals(other.getType())) return false; + if (!getSubject().equals(other.getSubject())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -482,118 +559,129 @@ public int hashCode() { return hash; } - public static Violation parseFrom( - java.nio.ByteBuffer data) + public static com.google.rpc.PreconditionFailure.Violation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Violation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.PreconditionFailure.Violation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Violation parseFrom( + + public static com.google.rpc.PreconditionFailure.Violation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Violation parseFrom( + + public static com.google.rpc.PreconditionFailure.Violation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Violation parseFrom(byte[] data) + + public static com.google.rpc.PreconditionFailure.Violation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Violation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.PreconditionFailure.Violation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Violation parseFrom(java.io.InputStream input) + + public static com.google.rpc.PreconditionFailure.Violation 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 Violation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.PreconditionFailure.Violation parseFrom( + 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 Violation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.rpc.PreconditionFailure.Violation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static Violation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.PreconditionFailure.Violation parseDelimitedFrom( + 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 Violation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.rpc.PreconditionFailure.Violation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static Violation parseFrom( + + public static com.google.rpc.PreconditionFailure.Violation 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(Violation prototype) { + + public static Builder newBuilder(com.google.rpc.PreconditionFailure.Violation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
      * A message type used to describe a single precondition failure.
      * 
* * Protobuf type {@code google.rpc.PreconditionFailure.Violation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.rpc.PreconditionFailure.Violation) - ViolationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ErrorDetailsProto.internal_static_google_rpc_PreconditionFailure_Violation_descriptor; + com.google.rpc.PreconditionFailure.ViolationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.rpc.ErrorDetailsProto + .internal_static_google_rpc_PreconditionFailure_Violation_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return ErrorDetailsProto.internal_static_google_rpc_PreconditionFailure_Violation_fieldAccessorTable + return com.google.rpc.ErrorDetailsProto + .internal_static_google_rpc_PreconditionFailure_Violation_fieldAccessorTable .ensureFieldAccessorsInitialized( - Violation.class, Builder.class); + com.google.rpc.PreconditionFailure.Violation.class, + com.google.rpc.PreconditionFailure.Violation.Builder.class); } // Construct using com.google.rpc.PreconditionFailure.Violation.newBuilder() @@ -601,17 +689,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @Override + + @java.lang.Override public Builder clear() { super.clear(); type_ = ""; @@ -623,29 +710,30 @@ public Builder clear() { return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ErrorDetailsProto.internal_static_google_rpc_PreconditionFailure_Violation_descriptor; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.rpc.ErrorDetailsProto + .internal_static_google_rpc_PreconditionFailure_Violation_descriptor; } - @Override - public Violation getDefaultInstanceForType() { - return Violation.getDefaultInstance(); + @java.lang.Override + public com.google.rpc.PreconditionFailure.Violation getDefaultInstanceForType() { + return com.google.rpc.PreconditionFailure.Violation.getDefaultInstance(); } - @Override - public Violation build() { - Violation result = buildPartial(); + @java.lang.Override + public com.google.rpc.PreconditionFailure.Violation build() { + com.google.rpc.PreconditionFailure.Violation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public Violation buildPartial() { - Violation result = new Violation(this); + @java.lang.Override + public com.google.rpc.PreconditionFailure.Violation buildPartial() { + com.google.rpc.PreconditionFailure.Violation result = + new com.google.rpc.PreconditionFailure.Violation(this); result.type_ = type_; result.subject_ = subject_; result.description_ = description_; @@ -653,50 +741,53 @@ public Violation buildPartial() { return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof Violation) { - return mergeFrom((Violation)other); + if (other instanceof com.google.rpc.PreconditionFailure.Violation) { + return mergeFrom((com.google.rpc.PreconditionFailure.Violation) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(Violation other) { - if (other == Violation.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.rpc.PreconditionFailure.Violation other) { + if (other == com.google.rpc.PreconditionFailure.Violation.getDefaultInstance()) return this; if (!other.getType().isEmpty()) { type_ = other.type_; onChanged(); @@ -714,21 +805,21 @@ public Builder mergeFrom(Violation other) { return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Violation parsedMessage = null; + com.google.rpc.PreconditionFailure.Violation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Violation) e.getUnfinishedMessage(); + parsedMessage = (com.google.rpc.PreconditionFailure.Violation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -738,44 +829,49 @@ public Builder mergeFrom( return this; } - private Object type_ = ""; + private java.lang.Object type_ = ""; /** + * + * *
        * The type of PreconditionFailure. We recommend using a service-specific
-       * enum type to define the supported precondition violation types. For
+       * enum type to define the supported precondition violation subjects. For
        * example, "TOS" for "Terms of Service violation".
        * 
* * string type = 1; + * + * @return The type. */ - public String getType() { - Object ref = type_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
        * The type of PreconditionFailure. We recommend using a service-specific
-       * enum type to define the supported precondition violation types. For
+       * enum type to define the supported precondition violation subjects. For
        * example, "TOS" for "Terms of Service violation".
        * 
* * string type = 1; + * + * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { - Object ref = type_; + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -783,98 +879,115 @@ public String getType() { } } /** + * + * *
        * The type of PreconditionFailure. We recommend using a service-specific
-       * enum type to define the supported precondition violation types. For
+       * enum type to define the supported precondition violation subjects. For
        * example, "TOS" for "Terms of Service violation".
        * 
* * string type = 1; + * + * @param value The type to set. + * @return This builder for chaining. */ - public Builder setType( - String value) { + public Builder setType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** + * + * *
        * The type of PreconditionFailure. We recommend using a service-specific
-       * enum type to define the supported precondition violation types. For
+       * enum type to define the supported precondition violation subjects. For
        * example, "TOS" for "Terms of Service violation".
        * 
* * string type = 1; + * + * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** + * + * *
        * The type of PreconditionFailure. We recommend using a service-specific
-       * enum type to define the supported precondition violation types. For
+       * enum type to define the supported precondition violation subjects. For
        * example, "TOS" for "Terms of Service violation".
        * 
* * string type = 1; + * + * @param value The bytes for type to set. + * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; } - private Object subject_ = ""; + private java.lang.Object subject_ = ""; /** + * + * *
        * The subject, relative to the type, that failed.
-       * For example, "google.com/cloud" relative to the "TOS" type would
-       * indicate which terms of service is being referenced.
+       * For example, "google.com/cloud" relative to the "TOS" type would indicate
+       * which terms of service is being referenced.
        * 
* * string subject = 2; + * + * @return The subject. */ - public String getSubject() { - Object ref = subject_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getSubject() { + java.lang.Object ref = subject_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); subject_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
        * The subject, relative to the type, that failed.
-       * For example, "google.com/cloud" relative to the "TOS" type would
-       * indicate which terms of service is being referenced.
+       * For example, "google.com/cloud" relative to the "TOS" type would indicate
+       * which terms of service is being referenced.
        * 
* * string subject = 2; + * + * @return The bytes for subject. */ - public com.google.protobuf.ByteString - getSubjectBytes() { - Object ref = subject_; + public com.google.protobuf.ByteString getSubjectBytes() { + java.lang.Object ref = subject_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subject_ = b; return b; } else { @@ -882,62 +995,76 @@ public String getSubject() { } } /** + * + * *
        * The subject, relative to the type, that failed.
-       * For example, "google.com/cloud" relative to the "TOS" type would
-       * indicate which terms of service is being referenced.
+       * For example, "google.com/cloud" relative to the "TOS" type would indicate
+       * which terms of service is being referenced.
        * 
* * string subject = 2; + * + * @param value The subject to set. + * @return This builder for chaining. */ - public Builder setSubject( - String value) { + public Builder setSubject(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subject_ = value; onChanged(); return this; } /** + * + * *
        * The subject, relative to the type, that failed.
-       * For example, "google.com/cloud" relative to the "TOS" type would
-       * indicate which terms of service is being referenced.
+       * For example, "google.com/cloud" relative to the "TOS" type would indicate
+       * which terms of service is being referenced.
        * 
* * string subject = 2; + * + * @return This builder for chaining. */ public Builder clearSubject() { - + subject_ = getDefaultInstance().getSubject(); onChanged(); return this; } /** + * + * *
        * The subject, relative to the type, that failed.
-       * For example, "google.com/cloud" relative to the "TOS" type would
-       * indicate which terms of service is being referenced.
+       * For example, "google.com/cloud" relative to the "TOS" type would indicate
+       * which terms of service is being referenced.
        * 
* * string subject = 2; + * + * @param value The bytes for subject to set. + * @return This builder for chaining. */ - public Builder setSubjectBytes( - com.google.protobuf.ByteString value) { + public Builder setSubjectBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subject_ = value; onChanged(); return this; } - private Object description_ = ""; + private java.lang.Object description_ = ""; /** + * + * *
        * A description of how the precondition failed. Developers can use this
        * description to understand how to fix the failure.
@@ -945,20 +1072,23 @@ public Builder setSubjectBytes(
        * 
* * string description = 3; + * + * @return The description. */ - public String getDescription() { - Object ref = description_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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; + java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
        * A description of how the precondition failed. Developers can use this
        * description to understand how to fix the failure.
@@ -966,14 +1096,14 @@ public String getDescription() {
        * 
* * string description = 3; + * + * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - Object ref = description_; + 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( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -981,6 +1111,8 @@ public String getDescription() { } } /** + * + * *
        * A description of how the precondition failed. Developers can use this
        * description to understand how to fix the failure.
@@ -988,18 +1120,22 @@ public String getDescription() {
        * 
* * string description = 3; + * + * @param value The description to set. + * @return This builder for chaining. */ - public Builder setDescription( - String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
        * A description of how the precondition failed. Developers can use this
        * description to understand how to fix the failure.
@@ -1007,14 +1143,18 @@ public Builder setDescription(
        * 
* * string description = 3; + * + * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
        * A description of how the precondition failed. Developers can use this
        * description to understand how to fix the failure.
@@ -1022,95 +1162,103 @@ public Builder clearDescription() {
        * 
* * string description = 3; + * + * @param value The bytes for description to set. + * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - @Override + + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.rpc.PreconditionFailure.Violation) } // @@protoc_insertion_point(class_scope:google.rpc.PreconditionFailure.Violation) - private static final Violation DEFAULT_INSTANCE; + private static final com.google.rpc.PreconditionFailure.Violation DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new Violation(); + DEFAULT_INSTANCE = new com.google.rpc.PreconditionFailure.Violation(); } - public static Violation getDefaultInstance() { + public static com.google.rpc.PreconditionFailure.Violation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public Violation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Violation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Violation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Violation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public Violation getDefaultInstanceForType() { + @java.lang.Override + public com.google.rpc.PreconditionFailure.Violation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int VIOLATIONS_FIELD_NUMBER = 1; - private java.util.List violations_; + private java.util.List violations_; /** + * + * *
    * Describes all precondition violations.
    * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ - public java.util.List getViolationsList() { + public java.util.List getViolationsList() { return violations_; } /** + * + * *
    * Describes all precondition violations.
    * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ - public java.util.List + public java.util.List getViolationsOrBuilderList() { return violations_; } /** + * + * *
    * Describes all precondition violations.
    * 
@@ -1121,29 +1269,33 @@ public int getViolationsCount() { return violations_.size(); } /** + * + * *
    * Describes all precondition violations.
    * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ - public Violation getViolations(int index) { + public com.google.rpc.PreconditionFailure.Violation getViolations(int index) { return violations_.get(index); } /** + * + * *
    * Describes all precondition violations.
    * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ - public ViolationOrBuilder getViolationsOrBuilder( - int index) { + public com.google.rpc.PreconditionFailure.ViolationOrBuilder getViolationsOrBuilder(int index) { return violations_.get(index); } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1153,47 +1305,44 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < violations_.size(); i++) { output.writeMessage(1, violations_.get(i)); } unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < violations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, violations_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, violations_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof PreconditionFailure)) { + if (!(obj instanceof com.google.rpc.PreconditionFailure)) { return super.equals(obj); } - PreconditionFailure other = (PreconditionFailure) obj; + com.google.rpc.PreconditionFailure other = (com.google.rpc.PreconditionFailure) obj; - if (!getViolationsList() - .equals(other.getViolationsList())) return false; + if (!getViolationsList().equals(other.getViolationsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -1209,97 +1358,103 @@ public int hashCode() { return hash; } - public static PreconditionFailure parseFrom( - java.nio.ByteBuffer data) + public static com.google.rpc.PreconditionFailure parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static PreconditionFailure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.PreconditionFailure parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static PreconditionFailure parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.rpc.PreconditionFailure parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static PreconditionFailure parseFrom( + + public static com.google.rpc.PreconditionFailure parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static PreconditionFailure parseFrom(byte[] data) + + public static com.google.rpc.PreconditionFailure parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static PreconditionFailure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.PreconditionFailure parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static PreconditionFailure parseFrom(java.io.InputStream input) + + public static com.google.rpc.PreconditionFailure 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 PreconditionFailure parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.PreconditionFailure parseFrom( + 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 PreconditionFailure parseDelimitedFrom(java.io.InputStream input) + + public static com.google.rpc.PreconditionFailure 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 PreconditionFailure parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.PreconditionFailure parseDelimitedFrom( + 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 PreconditionFailure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.rpc.PreconditionFailure parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static PreconditionFailure parseFrom( + + public static com.google.rpc.PreconditionFailure 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(PreconditionFailure prototype) { + + public static Builder newBuilder(com.google.rpc.PreconditionFailure prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Describes what preconditions have failed.
    * For example, if an RPC failed because it required the Terms of Service to be
@@ -1309,21 +1464,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.rpc.PreconditionFailure}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.rpc.PreconditionFailure)
       com.google.rpc.PreconditionFailureOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return ErrorDetailsProto.internal_static_google_rpc_PreconditionFailure_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.rpc.ErrorDetailsProto
+          .internal_static_google_rpc_PreconditionFailure_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return ErrorDetailsProto.internal_static_google_rpc_PreconditionFailure_fieldAccessorTable
+      return com.google.rpc.ErrorDetailsProto
+          .internal_static_google_rpc_PreconditionFailure_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              PreconditionFailure.class, Builder.class);
+              com.google.rpc.PreconditionFailure.class,
+              com.google.rpc.PreconditionFailure.Builder.class);
     }
 
     // Construct using com.google.rpc.PreconditionFailure.newBuilder()
@@ -1331,18 +1488,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getViolationsFieldBuilder();
       }
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       if (violationsBuilder_ == null) {
@@ -1354,29 +1511,29 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return ErrorDetailsProto.internal_static_google_rpc_PreconditionFailure_descriptor;
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.rpc.ErrorDetailsProto
+          .internal_static_google_rpc_PreconditionFailure_descriptor;
     }
 
-    @Override
-    public PreconditionFailure getDefaultInstanceForType() {
-      return PreconditionFailure.getDefaultInstance();
+    @java.lang.Override
+    public com.google.rpc.PreconditionFailure getDefaultInstanceForType() {
+      return com.google.rpc.PreconditionFailure.getDefaultInstance();
     }
 
-    @Override
-    public PreconditionFailure build() {
-      PreconditionFailure result = buildPartial();
+    @java.lang.Override
+    public com.google.rpc.PreconditionFailure build() {
+      com.google.rpc.PreconditionFailure result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public PreconditionFailure buildPartial() {
-      PreconditionFailure result = new PreconditionFailure(this);
+    @java.lang.Override
+    public com.google.rpc.PreconditionFailure buildPartial() {
+      com.google.rpc.PreconditionFailure result = new com.google.rpc.PreconditionFailure(this);
       int from_bitField0_ = bitField0_;
       if (violationsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -1391,50 +1548,51 @@ public PreconditionFailure buildPartial() {
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof PreconditionFailure) {
-        return mergeFrom((PreconditionFailure)other);
+      if (other instanceof com.google.rpc.PreconditionFailure) {
+        return mergeFrom((com.google.rpc.PreconditionFailure) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(PreconditionFailure other) {
-      if (other == PreconditionFailure.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.rpc.PreconditionFailure other) {
+      if (other == com.google.rpc.PreconditionFailure.getDefaultInstance()) return this;
       if (violationsBuilder_ == null) {
         if (!other.violations_.isEmpty()) {
           if (violations_.isEmpty()) {
@@ -1453,9 +1611,10 @@ public Builder mergeFrom(PreconditionFailure other) {
             violationsBuilder_ = null;
             violations_ = other.violations_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            violationsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getViolationsFieldBuilder() : null;
+            violationsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getViolationsFieldBuilder()
+                    : null;
           } else {
             violationsBuilder_.addAllMessages(other.violations_);
           }
@@ -1466,21 +1625,21 @@ public Builder mergeFrom(PreconditionFailure other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      PreconditionFailure parsedMessage = null;
+      com.google.rpc.PreconditionFailure parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (PreconditionFailure) e.getUnfinishedMessage();
+        parsedMessage = (com.google.rpc.PreconditionFailure) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1489,28 +1648,36 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List violations_ =
-      java.util.Collections.emptyList();
+    private java.util.List violations_ =
+        java.util.Collections.emptyList();
+
     private void ensureViolationsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        violations_ = new java.util.ArrayList(violations_);
+        violations_ =
+            new java.util.ArrayList(violations_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        Violation, Violation.Builder, ViolationOrBuilder> violationsBuilder_;
+            com.google.rpc.PreconditionFailure.Violation,
+            com.google.rpc.PreconditionFailure.Violation.Builder,
+            com.google.rpc.PreconditionFailure.ViolationOrBuilder>
+        violationsBuilder_;
 
     /**
+     *
+     *
      * 
      * Describes all precondition violations.
      * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ - public java.util.List getViolationsList() { + public java.util.List getViolationsList() { if (violationsBuilder_ == null) { return java.util.Collections.unmodifiableList(violations_); } else { @@ -1518,6 +1685,8 @@ public java.util.List getViolationsList() { } } /** + * + * *
      * Describes all precondition violations.
      * 
@@ -1532,13 +1701,15 @@ public int getViolationsCount() { } } /** + * + * *
      * Describes all precondition violations.
      * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ - public Violation getViolations(int index) { + public com.google.rpc.PreconditionFailure.Violation getViolations(int index) { if (violationsBuilder_ == null) { return violations_.get(index); } else { @@ -1546,14 +1717,15 @@ public Violation getViolations(int index) { } } /** + * + * *
      * Describes all precondition violations.
      * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ - public Builder setViolations( - int index, Violation value) { + public Builder setViolations(int index, com.google.rpc.PreconditionFailure.Violation value) { if (violationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1567,6 +1739,8 @@ public Builder setViolations( return this; } /** + * + * *
      * Describes all precondition violations.
      * 
@@ -1574,7 +1748,7 @@ public Builder setViolations( * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ public Builder setViolations( - int index, Violation.Builder builderForValue) { + int index, com.google.rpc.PreconditionFailure.Violation.Builder builderForValue) { if (violationsBuilder_ == null) { ensureViolationsIsMutable(); violations_.set(index, builderForValue.build()); @@ -1585,13 +1759,15 @@ public Builder setViolations( return this; } /** + * + * *
      * Describes all precondition violations.
      * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ - public Builder addViolations(Violation value) { + public Builder addViolations(com.google.rpc.PreconditionFailure.Violation value) { if (violationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1605,14 +1781,15 @@ public Builder addViolations(Violation value) { return this; } /** + * + * *
      * Describes all precondition violations.
      * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ - public Builder addViolations( - int index, Violation value) { + public Builder addViolations(int index, com.google.rpc.PreconditionFailure.Violation value) { if (violationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1626,6 +1803,8 @@ public Builder addViolations( return this; } /** + * + * *
      * Describes all precondition violations.
      * 
@@ -1633,7 +1812,7 @@ public Builder addViolations( * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ public Builder addViolations( - Violation.Builder builderForValue) { + com.google.rpc.PreconditionFailure.Violation.Builder builderForValue) { if (violationsBuilder_ == null) { ensureViolationsIsMutable(); violations_.add(builderForValue.build()); @@ -1644,6 +1823,8 @@ public Builder addViolations( return this; } /** + * + * *
      * Describes all precondition violations.
      * 
@@ -1651,7 +1832,7 @@ public Builder addViolations( * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ public Builder addViolations( - int index, Violation.Builder builderForValue) { + int index, com.google.rpc.PreconditionFailure.Violation.Builder builderForValue) { if (violationsBuilder_ == null) { ensureViolationsIsMutable(); violations_.add(index, builderForValue.build()); @@ -1662,6 +1843,8 @@ public Builder addViolations( return this; } /** + * + * *
      * Describes all precondition violations.
      * 
@@ -1669,11 +1852,10 @@ public Builder addViolations( * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ public Builder addAllViolations( - Iterable values) { + java.lang.Iterable values) { if (violationsBuilder_ == null) { ensureViolationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, violations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, violations_); onChanged(); } else { violationsBuilder_.addAllMessages(values); @@ -1681,6 +1863,8 @@ public Builder addAllViolations( return this; } /** + * + * *
      * Describes all precondition violations.
      * 
@@ -1698,6 +1882,8 @@ public Builder clearViolations() { return this; } /** + * + * *
      * Describes all precondition violations.
      * 
@@ -1715,39 +1901,44 @@ public Builder removeViolations(int index) { return this; } /** + * + * *
      * Describes all precondition violations.
      * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ - public Violation.Builder getViolationsBuilder( - int index) { + public com.google.rpc.PreconditionFailure.Violation.Builder getViolationsBuilder(int index) { return getViolationsFieldBuilder().getBuilder(index); } /** + * + * *
      * Describes all precondition violations.
      * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ - public ViolationOrBuilder getViolationsOrBuilder( - int index) { + public com.google.rpc.PreconditionFailure.ViolationOrBuilder getViolationsOrBuilder(int index) { if (violationsBuilder_ == null) { - return violations_.get(index); } else { + return violations_.get(index); + } else { return violationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Describes all precondition violations.
      * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ - public java.util.List - getViolationsOrBuilderList() { + public java.util.List + getViolationsOrBuilderList() { if (violationsBuilder_ != null) { return violationsBuilder_.getMessageOrBuilderList(); } else { @@ -1755,103 +1946,109 @@ public ViolationOrBuilder getViolationsOrBuilder( } } /** + * + * *
      * Describes all precondition violations.
      * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ - public Violation.Builder addViolationsBuilder() { - return getViolationsFieldBuilder().addBuilder( - Violation.getDefaultInstance()); + public com.google.rpc.PreconditionFailure.Violation.Builder addViolationsBuilder() { + return getViolationsFieldBuilder() + .addBuilder(com.google.rpc.PreconditionFailure.Violation.getDefaultInstance()); } /** + * + * *
      * Describes all precondition violations.
      * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ - public Violation.Builder addViolationsBuilder( - int index) { - return getViolationsFieldBuilder().addBuilder( - index, Violation.getDefaultInstance()); + public com.google.rpc.PreconditionFailure.Violation.Builder addViolationsBuilder(int index) { + return getViolationsFieldBuilder() + .addBuilder(index, com.google.rpc.PreconditionFailure.Violation.getDefaultInstance()); } /** + * + * *
      * Describes all precondition violations.
      * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ - public java.util.List - getViolationsBuilderList() { + public java.util.List + getViolationsBuilderList() { return getViolationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - Violation, Violation.Builder, ViolationOrBuilder> + com.google.rpc.PreconditionFailure.Violation, + com.google.rpc.PreconditionFailure.Violation.Builder, + com.google.rpc.PreconditionFailure.ViolationOrBuilder> getViolationsFieldBuilder() { if (violationsBuilder_ == null) { - violationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - Violation, Violation.Builder, ViolationOrBuilder>( - violations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + violationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.PreconditionFailure.Violation, + com.google.rpc.PreconditionFailure.Violation.Builder, + com.google.rpc.PreconditionFailure.ViolationOrBuilder>( + violations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); violations_ = null; } return violationsBuilder_; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.rpc.PreconditionFailure) } // @@protoc_insertion_point(class_scope:google.rpc.PreconditionFailure) - private static final PreconditionFailure DEFAULT_INSTANCE; + private static final com.google.rpc.PreconditionFailure DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new PreconditionFailure(); + DEFAULT_INSTANCE = new com.google.rpc.PreconditionFailure(); } - public static PreconditionFailure getDefaultInstance() { + public static com.google.rpc.PreconditionFailure getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public PreconditionFailure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PreconditionFailure(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PreconditionFailure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PreconditionFailure(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public PreconditionFailure getDefaultInstanceForType() { + @java.lang.Override + public com.google.rpc.PreconditionFailure getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/PreconditionFailureOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/rpc/PreconditionFailureOrBuilder.java index b80cdefc..bb6e7756 100644 --- a/proto-google-common-protos/src/main/java/com/google/rpc/PreconditionFailureOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/rpc/PreconditionFailureOrBuilder.java @@ -1,30 +1,51 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/error_details.proto package com.google.rpc; -public interface PreconditionFailureOrBuilder extends +public interface PreconditionFailureOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.rpc.PreconditionFailure) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Describes all precondition violations.
    * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ - java.util.List - getViolationsList(); + java.util.List getViolationsList(); /** + * + * *
    * Describes all precondition violations.
    * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ - PreconditionFailure.Violation getViolations(int index); + com.google.rpc.PreconditionFailure.Violation getViolations(int index); /** + * + * *
    * Describes all precondition violations.
    * 
@@ -33,21 +54,24 @@ public interface PreconditionFailureOrBuilder extends */ int getViolationsCount(); /** + * + * *
    * Describes all precondition violations.
    * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ - java.util.List + java.util.List getViolationsOrBuilderList(); /** + * + * *
    * Describes all precondition violations.
    * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ - PreconditionFailure.ViolationOrBuilder getViolationsOrBuilder( - int index); + com.google.rpc.PreconditionFailure.ViolationOrBuilder getViolationsOrBuilder(int index); } diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/QuotaFailure.java b/proto-google-common-protos/src/main/java/com/google/rpc/QuotaFailure.java index db2d0c0b..ca60ef5d 100644 --- a/proto-google-common-protos/src/main/java/com/google/rpc/QuotaFailure.java +++ b/proto-google-common-protos/src/main/java/com/google/rpc/QuotaFailure.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/rpc/error_details.proto package com.google.rpc; /** + * + * *
  * Describes how a quota check failed.
  * For example if a daily limit was exceeded for the calling project,
@@ -12,37 +29,44 @@
  * calling project hasn't enabled the service in the developer console, then
  * a service could respond with the project id and set `service_disabled`
  * to true.
- * Also see RetryDetail and Help types for other details about handling a
+ * Also see RetryInfo and Help types for other details about handling a
  * quota failure.
  * 
* * Protobuf type {@code google.rpc.QuotaFailure} */ -public final class QuotaFailure extends - com.google.protobuf.GeneratedMessageV3 implements +public final class QuotaFailure extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.rpc.QuotaFailure) QuotaFailureOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use QuotaFailure.newBuilder() to construct. private QuotaFailure(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private QuotaFailure() { violations_ = java.util.Collections.emptyList(); } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QuotaFailure(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private QuotaFailure( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = @@ -55,29 +79,30 @@ private QuotaFailure( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - violations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + violations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + violations_.add( + input.readMessage( + com.google.rpc.QuotaFailure.Violation.parser(), extensionRegistry)); + break; } - violations_.add( - input.readMessage(Violation.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { violations_ = java.util.Collections.unmodifiableList(violations_); @@ -86,24 +111,28 @@ private QuotaFailure( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_QuotaFailure_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_QuotaFailure_fieldAccessorTable + return com.google.rpc.ErrorDetailsProto + .internal_static_google_rpc_QuotaFailure_fieldAccessorTable .ensureFieldAccessorsInitialized( - QuotaFailure.class, Builder.class); + com.google.rpc.QuotaFailure.class, com.google.rpc.QuotaFailure.Builder.class); } - public interface ViolationOrBuilder extends + public interface ViolationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.rpc.QuotaFailure.Violation) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The subject on which the quota check failed.
      * For example, "clientip:<ip address of client>" or "project:<Google
@@ -111,9 +140,13 @@ public interface ViolationOrBuilder extends
      * 
* * string subject = 1; + * + * @return The subject. */ - String getSubject(); + java.lang.String getSubject(); /** + * + * *
      * The subject on which the quota check failed.
      * For example, "clientip:<ip address of client>" or "project:<Google
@@ -121,11 +154,14 @@ public interface ViolationOrBuilder extends
      * 
* * string subject = 1; + * + * @return The bytes for subject. */ - com.google.protobuf.ByteString - getSubjectBytes(); + com.google.protobuf.ByteString getSubjectBytes(); /** + * + * *
      * A description of how the quota check failed. Clients can use this
      * description to find more about the quota configuration in the service's
@@ -136,9 +172,13 @@ public interface ViolationOrBuilder extends
      * 
* * string description = 2; + * + * @return The description. */ - String getDescription(); + java.lang.String getDescription(); /** + * + * *
      * A description of how the quota check failed. Clients can use this
      * description to find more about the quota configuration in the service's
@@ -149,11 +189,14 @@ public interface ViolationOrBuilder extends
      * 
* * string description = 2; + * + * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); } /** + * + * *
    * A message type used to describe a single quota violation.  For example, a
    * daily quota or a custom quota that was exceeded.
@@ -161,34 +204,40 @@ public interface ViolationOrBuilder extends
    *
    * Protobuf type {@code google.rpc.QuotaFailure.Violation}
    */
-  public  static final class Violation extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class Violation extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.rpc.QuotaFailure.Violation)
       ViolationOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use Violation.newBuilder() to construct.
     private Violation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private Violation() {
       subject_ = "";
       description_ = "";
     }
 
-    @Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    @java.lang.Override
+    @SuppressWarnings({"unused"})
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+      return new Violation();
+    }
+
+    @java.lang.Override
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private Violation(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       this();
       if (extensionRegistry == null) {
-        throw new NullPointerException();
+        throw new java.lang.NullPointerException();
       }
-      int mutable_bitField0_ = 0;
       com.google.protobuf.UnknownFieldSet.Builder unknownFields =
           com.google.protobuf.UnknownFieldSet.newBuilder();
       try {
@@ -199,53 +248,59 @@ private Violation(
             case 0:
               done = true;
               break;
-            case 10: {
-              String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              subject_ = s;
-              break;
-            }
-            case 18: {
-              String s = input.readStringRequireUtf8();
+                subject_ = s;
+                break;
+              }
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                description_ = s;
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_QuotaFailure_Violation_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.rpc.ErrorDetailsProto
+          .internal_static_google_rpc_QuotaFailure_Violation_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_QuotaFailure_Violation_fieldAccessorTable
+      return com.google.rpc.ErrorDetailsProto
+          .internal_static_google_rpc_QuotaFailure_Violation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              Violation.class, Builder.class);
+              com.google.rpc.QuotaFailure.Violation.class,
+              com.google.rpc.QuotaFailure.Violation.Builder.class);
     }
 
     public static final int SUBJECT_FIELD_NUMBER = 1;
-    private volatile Object subject_;
+    private volatile java.lang.Object subject_;
     /**
+     *
+     *
      * 
      * The subject on which the quota check failed.
      * For example, "clientip:<ip address of client>" or "project:<Google
@@ -253,20 +308,23 @@ private Violation(
      * 
* * string subject = 1; + * + * @return The subject. */ - public String getSubject() { - Object ref = subject_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getSubject() { + java.lang.Object ref = subject_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); subject_ = s; return s; } } /** + * + * *
      * The subject on which the quota check failed.
      * For example, "clientip:<ip address of client>" or "project:<Google
@@ -274,14 +332,14 @@ public String getSubject() {
      * 
* * string subject = 1; + * + * @return The bytes for subject. */ - public com.google.protobuf.ByteString - getSubjectBytes() { - Object ref = subject_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getSubjectBytes() { + java.lang.Object ref = subject_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subject_ = b; return b; } else { @@ -290,8 +348,10 @@ public String getSubject() { } public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile Object description_; + private volatile java.lang.Object description_; /** + * + * *
      * A description of how the quota check failed. Clients can use this
      * description to find more about the quota configuration in the service's
@@ -302,20 +362,23 @@ public String getSubject() {
      * 
* * string description = 2; + * + * @return The description. */ - public String getDescription() { - Object ref = description_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
      * A description of how the quota check failed. Clients can use this
      * description to find more about the quota configuration in the service's
@@ -326,14 +389,14 @@ public String getDescription() {
      * 
* * string description = 2; + * + * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + 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); description_ = b; return b; } else { @@ -342,7 +405,8 @@ public String getDescription() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -352,9 +416,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSubjectBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subject_); } @@ -364,7 +427,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -381,25 +444,23 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof Violation)) { + if (!(obj instanceof com.google.rpc.QuotaFailure.Violation)) { return super.equals(obj); } - Violation other = (Violation) obj; + com.google.rpc.QuotaFailure.Violation other = (com.google.rpc.QuotaFailure.Violation) obj; - if (!getSubject() - .equals(other.getSubject())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getSubject().equals(other.getSubject())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -415,97 +476,105 @@ public int hashCode() { return hash; } - public static Violation parseFrom( - java.nio.ByteBuffer data) + public static com.google.rpc.QuotaFailure.Violation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Violation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.QuotaFailure.Violation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Violation parseFrom( + + public static com.google.rpc.QuotaFailure.Violation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Violation parseFrom( + + public static com.google.rpc.QuotaFailure.Violation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Violation parseFrom(byte[] data) + + public static com.google.rpc.QuotaFailure.Violation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Violation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.QuotaFailure.Violation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Violation parseFrom(java.io.InputStream input) + + public static com.google.rpc.QuotaFailure.Violation 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 Violation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.QuotaFailure.Violation parseFrom( + 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 Violation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.rpc.QuotaFailure.Violation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static Violation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.QuotaFailure.Violation parseDelimitedFrom( + 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 Violation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.rpc.QuotaFailure.Violation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static Violation parseFrom( + + public static com.google.rpc.QuotaFailure.Violation 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(Violation prototype) { + + public static Builder newBuilder(com.google.rpc.QuotaFailure.Violation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
      * A message type used to describe a single quota violation.  For example, a
      * daily quota or a custom quota that was exceeded.
@@ -513,21 +582,24 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.rpc.QuotaFailure.Violation}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.rpc.QuotaFailure.Violation)
-        ViolationOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_QuotaFailure_Violation_descriptor;
+        com.google.rpc.QuotaFailure.ViolationOrBuilder {
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.rpc.ErrorDetailsProto
+            .internal_static_google_rpc_QuotaFailure_Violation_descriptor;
       }
 
-      @Override
-      protected FieldAccessorTable
+      @java.lang.Override
+      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_QuotaFailure_Violation_fieldAccessorTable
+        return com.google.rpc.ErrorDetailsProto
+            .internal_static_google_rpc_QuotaFailure_Violation_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                Violation.class, Builder.class);
+                com.google.rpc.QuotaFailure.Violation.class,
+                com.google.rpc.QuotaFailure.Violation.Builder.class);
       }
 
       // Construct using com.google.rpc.QuotaFailure.Violation.newBuilder()
@@ -535,17 +607,16 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
-      @Override
+
+      @java.lang.Override
       public Builder clear() {
         super.clear();
         subject_ = "";
@@ -555,79 +626,83 @@ public Builder clear() {
         return this;
       }
 
-      @Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_QuotaFailure_Violation_descriptor;
+      @java.lang.Override
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.rpc.ErrorDetailsProto
+            .internal_static_google_rpc_QuotaFailure_Violation_descriptor;
       }
 
-      @Override
-      public Violation getDefaultInstanceForType() {
-        return Violation.getDefaultInstance();
+      @java.lang.Override
+      public com.google.rpc.QuotaFailure.Violation getDefaultInstanceForType() {
+        return com.google.rpc.QuotaFailure.Violation.getDefaultInstance();
       }
 
-      @Override
-      public Violation build() {
-        Violation result = buildPartial();
+      @java.lang.Override
+      public com.google.rpc.QuotaFailure.Violation build() {
+        com.google.rpc.QuotaFailure.Violation result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
         return result;
       }
 
-      @Override
-      public Violation buildPartial() {
-        Violation result = new Violation(this);
+      @java.lang.Override
+      public com.google.rpc.QuotaFailure.Violation buildPartial() {
+        com.google.rpc.QuotaFailure.Violation result =
+            new com.google.rpc.QuotaFailure.Violation(this);
         result.subject_ = subject_;
         result.description_ = description_;
         onBuilt();
         return result;
       }
 
-      @Override
+      @java.lang.Override
       public Builder clone() {
         return super.clone();
       }
-      @Override
+
+      @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
-      @Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+      @java.lang.Override
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-      @Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+      @java.lang.Override
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-      @Override
+
+      @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-      @Override
+
+      @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-      @Override
+
+      @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof Violation) {
-          return mergeFrom((Violation)other);
+        if (other instanceof com.google.rpc.QuotaFailure.Violation) {
+          return mergeFrom((com.google.rpc.QuotaFailure.Violation) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(Violation other) {
-        if (other == Violation.getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.rpc.QuotaFailure.Violation other) {
+        if (other == com.google.rpc.QuotaFailure.Violation.getDefaultInstance()) return this;
         if (!other.getSubject().isEmpty()) {
           subject_ = other.subject_;
           onChanged();
@@ -641,21 +716,21 @@ public Builder mergeFrom(Violation other) {
         return this;
       }
 
-      @Override
+      @java.lang.Override
       public final boolean isInitialized() {
         return true;
       }
 
-      @Override
+      @java.lang.Override
       public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        Violation parsedMessage = null;
+        com.google.rpc.QuotaFailure.Violation parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (Violation) e.getUnfinishedMessage();
+          parsedMessage = (com.google.rpc.QuotaFailure.Violation) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -665,8 +740,10 @@ public Builder mergeFrom(
         return this;
       }
 
-      private Object subject_ = "";
+      private java.lang.Object subject_ = "";
       /**
+       *
+       *
        * 
        * The subject on which the quota check failed.
        * For example, "clientip:<ip address of client>" or "project:<Google
@@ -674,20 +751,23 @@ public Builder mergeFrom(
        * 
* * string subject = 1; + * + * @return The subject. */ - public String getSubject() { - Object ref = subject_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getSubject() { + java.lang.Object ref = subject_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); subject_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
        * The subject on which the quota check failed.
        * For example, "clientip:<ip address of client>" or "project:<Google
@@ -695,14 +775,14 @@ public String getSubject() {
        * 
* * string subject = 1; + * + * @return The bytes for subject. */ - public com.google.protobuf.ByteString - getSubjectBytes() { - Object ref = subject_; + public com.google.protobuf.ByteString getSubjectBytes() { + java.lang.Object ref = subject_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subject_ = b; return b; } else { @@ -710,6 +790,8 @@ public String getSubject() { } } /** + * + * *
        * The subject on which the quota check failed.
        * For example, "clientip:<ip address of client>" or "project:<Google
@@ -717,18 +799,22 @@ public String getSubject() {
        * 
* * string subject = 1; + * + * @param value The subject to set. + * @return This builder for chaining. */ - public Builder setSubject( - String value) { + public Builder setSubject(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subject_ = value; onChanged(); return this; } /** + * + * *
        * The subject on which the quota check failed.
        * For example, "clientip:<ip address of client>" or "project:<Google
@@ -736,14 +822,18 @@ public Builder setSubject(
        * 
* * string subject = 1; + * + * @return This builder for chaining. */ public Builder clearSubject() { - + subject_ = getDefaultInstance().getSubject(); onChanged(); return this; } /** + * + * *
        * The subject on which the quota check failed.
        * For example, "clientip:<ip address of client>" or "project:<Google
@@ -751,21 +841,25 @@ public Builder clearSubject() {
        * 
* * string subject = 1; + * + * @param value The bytes for subject to set. + * @return This builder for chaining. */ - public Builder setSubjectBytes( - com.google.protobuf.ByteString value) { + public Builder setSubjectBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subject_ = value; onChanged(); return this; } - private Object description_ = ""; + private java.lang.Object description_ = ""; /** + * + * *
        * A description of how the quota check failed. Clients can use this
        * description to find more about the quota configuration in the service's
@@ -776,20 +870,23 @@ public Builder setSubjectBytes(
        * 
* * string description = 2; + * + * @return The description. */ - public String getDescription() { - Object ref = description_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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; + java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
        * A description of how the quota check failed. Clients can use this
        * description to find more about the quota configuration in the service's
@@ -800,14 +897,14 @@ public String getDescription() {
        * 
* * string description = 2; + * + * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - Object ref = description_; + 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( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -815,6 +912,8 @@ public String getDescription() { } } /** + * + * *
        * A description of how the quota check failed. Clients can use this
        * description to find more about the quota configuration in the service's
@@ -825,18 +924,22 @@ public String getDescription() {
        * 
* * string description = 2; + * + * @param value The description to set. + * @return This builder for chaining. */ - public Builder setDescription( - String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
        * A description of how the quota check failed. Clients can use this
        * description to find more about the quota configuration in the service's
@@ -847,14 +950,18 @@ public Builder setDescription(
        * 
* * string description = 2; + * + * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
        * A description of how the quota check failed. Clients can use this
        * description to find more about the quota configuration in the service's
@@ -865,95 +972,103 @@ public Builder clearDescription() {
        * 
* * string description = 2; + * + * @param value The bytes for description to set. + * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - @Override + + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.rpc.QuotaFailure.Violation) } // @@protoc_insertion_point(class_scope:google.rpc.QuotaFailure.Violation) - private static final Violation DEFAULT_INSTANCE; + private static final com.google.rpc.QuotaFailure.Violation DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new Violation(); + DEFAULT_INSTANCE = new com.google.rpc.QuotaFailure.Violation(); } - public static Violation getDefaultInstance() { + public static com.google.rpc.QuotaFailure.Violation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public Violation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Violation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Violation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Violation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public Violation getDefaultInstanceForType() { + @java.lang.Override + public com.google.rpc.QuotaFailure.Violation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int VIOLATIONS_FIELD_NUMBER = 1; - private java.util.List violations_; + private java.util.List violations_; /** + * + * *
    * Describes all quota violations.
    * 
* * repeated .google.rpc.QuotaFailure.Violation violations = 1; */ - public java.util.List getViolationsList() { + public java.util.List getViolationsList() { return violations_; } /** + * + * *
    * Describes all quota violations.
    * 
* * repeated .google.rpc.QuotaFailure.Violation violations = 1; */ - public java.util.List + public java.util.List getViolationsOrBuilderList() { return violations_; } /** + * + * *
    * Describes all quota violations.
    * 
@@ -964,29 +1079,33 @@ public int getViolationsCount() { return violations_.size(); } /** + * + * *
    * Describes all quota violations.
    * 
* * repeated .google.rpc.QuotaFailure.Violation violations = 1; */ - public Violation getViolations(int index) { + public com.google.rpc.QuotaFailure.Violation getViolations(int index) { return violations_.get(index); } /** + * + * *
    * Describes all quota violations.
    * 
* * repeated .google.rpc.QuotaFailure.Violation violations = 1; */ - public ViolationOrBuilder getViolationsOrBuilder( - int index) { + public com.google.rpc.QuotaFailure.ViolationOrBuilder getViolationsOrBuilder(int index) { return violations_.get(index); } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -996,47 +1115,44 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < violations_.size(); i++) { output.writeMessage(1, violations_.get(i)); } unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < violations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, violations_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, violations_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof QuotaFailure)) { + if (!(obj instanceof com.google.rpc.QuotaFailure)) { return super.equals(obj); } - QuotaFailure other = (QuotaFailure) obj; + com.google.rpc.QuotaFailure other = (com.google.rpc.QuotaFailure) obj; - if (!getViolationsList() - .equals(other.getViolationsList())) return false; + if (!getViolationsList().equals(other.getViolationsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -1052,97 +1168,103 @@ public int hashCode() { return hash; } - public static QuotaFailure parseFrom( - java.nio.ByteBuffer data) + public static com.google.rpc.QuotaFailure parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static QuotaFailure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.QuotaFailure parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static QuotaFailure parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.rpc.QuotaFailure parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static QuotaFailure parseFrom( + + public static com.google.rpc.QuotaFailure parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static QuotaFailure parseFrom(byte[] data) + + public static com.google.rpc.QuotaFailure parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static QuotaFailure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.QuotaFailure parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static QuotaFailure parseFrom(java.io.InputStream input) + + public static com.google.rpc.QuotaFailure 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 QuotaFailure parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.QuotaFailure parseFrom( + 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 QuotaFailure parseDelimitedFrom(java.io.InputStream input) + + public static com.google.rpc.QuotaFailure 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 QuotaFailure parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.QuotaFailure parseDelimitedFrom( + 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 QuotaFailure parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.rpc.QuotaFailure 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 QuotaFailure parseFrom( + + public static com.google.rpc.QuotaFailure 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(QuotaFailure prototype) { + + public static Builder newBuilder(com.google.rpc.QuotaFailure prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Describes how a quota check failed.
    * For example if a daily limit was exceeded for the calling project,
@@ -1151,27 +1273,27 @@ protected Builder newBuilderForType(
    * calling project hasn't enabled the service in the developer console, then
    * a service could respond with the project id and set `service_disabled`
    * to true.
-   * Also see RetryDetail and Help types for other details about handling a
+   * Also see RetryInfo and Help types for other details about handling a
    * quota failure.
    * 
* * Protobuf type {@code google.rpc.QuotaFailure} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.rpc.QuotaFailure) com.google.rpc.QuotaFailureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_QuotaFailure_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_QuotaFailure_fieldAccessorTable + return com.google.rpc.ErrorDetailsProto + .internal_static_google_rpc_QuotaFailure_fieldAccessorTable .ensureFieldAccessorsInitialized( - QuotaFailure.class, Builder.class); + com.google.rpc.QuotaFailure.class, com.google.rpc.QuotaFailure.Builder.class); } // Construct using com.google.rpc.QuotaFailure.newBuilder() @@ -1179,18 +1301,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getViolationsFieldBuilder(); } } - @Override + + @java.lang.Override public Builder clear() { super.clear(); if (violationsBuilder_ == null) { @@ -1202,29 +1324,28 @@ public Builder clear() { return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_QuotaFailure_descriptor; } - @Override - public QuotaFailure getDefaultInstanceForType() { - return QuotaFailure.getDefaultInstance(); + @java.lang.Override + public com.google.rpc.QuotaFailure getDefaultInstanceForType() { + return com.google.rpc.QuotaFailure.getDefaultInstance(); } - @Override - public QuotaFailure build() { - QuotaFailure result = buildPartial(); + @java.lang.Override + public com.google.rpc.QuotaFailure build() { + com.google.rpc.QuotaFailure result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public QuotaFailure buildPartial() { - QuotaFailure result = new QuotaFailure(this); + @java.lang.Override + public com.google.rpc.QuotaFailure buildPartial() { + com.google.rpc.QuotaFailure result = new com.google.rpc.QuotaFailure(this); int from_bitField0_ = bitField0_; if (violationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1239,50 +1360,51 @@ public QuotaFailure buildPartial() { return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof QuotaFailure) { - return mergeFrom((QuotaFailure)other); + if (other instanceof com.google.rpc.QuotaFailure) { + return mergeFrom((com.google.rpc.QuotaFailure) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(QuotaFailure other) { - if (other == QuotaFailure.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.rpc.QuotaFailure other) { + if (other == com.google.rpc.QuotaFailure.getDefaultInstance()) return this; if (violationsBuilder_ == null) { if (!other.violations_.isEmpty()) { if (violations_.isEmpty()) { @@ -1301,9 +1423,10 @@ public Builder mergeFrom(QuotaFailure other) { violationsBuilder_ = null; violations_ = other.violations_; bitField0_ = (bitField0_ & ~0x00000001); - violationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getViolationsFieldBuilder() : null; + violationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getViolationsFieldBuilder() + : null; } else { violationsBuilder_.addAllMessages(other.violations_); } @@ -1314,21 +1437,21 @@ public Builder mergeFrom(QuotaFailure other) { return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - QuotaFailure parsedMessage = null; + com.google.rpc.QuotaFailure parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (QuotaFailure) e.getUnfinishedMessage(); + parsedMessage = (com.google.rpc.QuotaFailure) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1337,28 +1460,35 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List violations_ = - java.util.Collections.emptyList(); + private java.util.List violations_ = + java.util.Collections.emptyList(); + private void ensureViolationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - violations_ = new java.util.ArrayList(violations_); + violations_ = new java.util.ArrayList(violations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - Violation, Violation.Builder, ViolationOrBuilder> violationsBuilder_; + com.google.rpc.QuotaFailure.Violation, + com.google.rpc.QuotaFailure.Violation.Builder, + com.google.rpc.QuotaFailure.ViolationOrBuilder> + violationsBuilder_; /** + * + * *
      * Describes all quota violations.
      * 
* * repeated .google.rpc.QuotaFailure.Violation violations = 1; */ - public java.util.List getViolationsList() { + public java.util.List getViolationsList() { if (violationsBuilder_ == null) { return java.util.Collections.unmodifiableList(violations_); } else { @@ -1366,6 +1496,8 @@ public java.util.List getViolationsList() { } } /** + * + * *
      * Describes all quota violations.
      * 
@@ -1380,13 +1512,15 @@ public int getViolationsCount() { } } /** + * + * *
      * Describes all quota violations.
      * 
* * repeated .google.rpc.QuotaFailure.Violation violations = 1; */ - public Violation getViolations(int index) { + public com.google.rpc.QuotaFailure.Violation getViolations(int index) { if (violationsBuilder_ == null) { return violations_.get(index); } else { @@ -1394,14 +1528,15 @@ public Violation getViolations(int index) { } } /** + * + * *
      * Describes all quota violations.
      * 
* * repeated .google.rpc.QuotaFailure.Violation violations = 1; */ - public Builder setViolations( - int index, Violation value) { + public Builder setViolations(int index, com.google.rpc.QuotaFailure.Violation value) { if (violationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1415,6 +1550,8 @@ public Builder setViolations( return this; } /** + * + * *
      * Describes all quota violations.
      * 
@@ -1422,7 +1559,7 @@ public Builder setViolations( * repeated .google.rpc.QuotaFailure.Violation violations = 1; */ public Builder setViolations( - int index, Violation.Builder builderForValue) { + int index, com.google.rpc.QuotaFailure.Violation.Builder builderForValue) { if (violationsBuilder_ == null) { ensureViolationsIsMutable(); violations_.set(index, builderForValue.build()); @@ -1433,13 +1570,15 @@ public Builder setViolations( return this; } /** + * + * *
      * Describes all quota violations.
      * 
* * repeated .google.rpc.QuotaFailure.Violation violations = 1; */ - public Builder addViolations(Violation value) { + public Builder addViolations(com.google.rpc.QuotaFailure.Violation value) { if (violationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1453,14 +1592,15 @@ public Builder addViolations(Violation value) { return this; } /** + * + * *
      * Describes all quota violations.
      * 
* * repeated .google.rpc.QuotaFailure.Violation violations = 1; */ - public Builder addViolations( - int index, Violation value) { + public Builder addViolations(int index, com.google.rpc.QuotaFailure.Violation value) { if (violationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1474,14 +1614,15 @@ public Builder addViolations( return this; } /** + * + * *
      * Describes all quota violations.
      * 
* * repeated .google.rpc.QuotaFailure.Violation violations = 1; */ - public Builder addViolations( - Violation.Builder builderForValue) { + public Builder addViolations(com.google.rpc.QuotaFailure.Violation.Builder builderForValue) { if (violationsBuilder_ == null) { ensureViolationsIsMutable(); violations_.add(builderForValue.build()); @@ -1492,6 +1633,8 @@ public Builder addViolations( return this; } /** + * + * *
      * Describes all quota violations.
      * 
@@ -1499,7 +1642,7 @@ public Builder addViolations( * repeated .google.rpc.QuotaFailure.Violation violations = 1; */ public Builder addViolations( - int index, Violation.Builder builderForValue) { + int index, com.google.rpc.QuotaFailure.Violation.Builder builderForValue) { if (violationsBuilder_ == null) { ensureViolationsIsMutable(); violations_.add(index, builderForValue.build()); @@ -1510,6 +1653,8 @@ public Builder addViolations( return this; } /** + * + * *
      * Describes all quota violations.
      * 
@@ -1517,11 +1662,10 @@ public Builder addViolations( * repeated .google.rpc.QuotaFailure.Violation violations = 1; */ public Builder addAllViolations( - Iterable values) { + java.lang.Iterable values) { if (violationsBuilder_ == null) { ensureViolationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, violations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, violations_); onChanged(); } else { violationsBuilder_.addAllMessages(values); @@ -1529,6 +1673,8 @@ public Builder addAllViolations( return this; } /** + * + * *
      * Describes all quota violations.
      * 
@@ -1546,6 +1692,8 @@ public Builder clearViolations() { return this; } /** + * + * *
      * Describes all quota violations.
      * 
@@ -1563,39 +1711,44 @@ public Builder removeViolations(int index) { return this; } /** + * + * *
      * Describes all quota violations.
      * 
* * repeated .google.rpc.QuotaFailure.Violation violations = 1; */ - public Violation.Builder getViolationsBuilder( - int index) { + public com.google.rpc.QuotaFailure.Violation.Builder getViolationsBuilder(int index) { return getViolationsFieldBuilder().getBuilder(index); } /** + * + * *
      * Describes all quota violations.
      * 
* * repeated .google.rpc.QuotaFailure.Violation violations = 1; */ - public ViolationOrBuilder getViolationsOrBuilder( - int index) { + public com.google.rpc.QuotaFailure.ViolationOrBuilder getViolationsOrBuilder(int index) { if (violationsBuilder_ == null) { - return violations_.get(index); } else { + return violations_.get(index); + } else { return violationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Describes all quota violations.
      * 
* * repeated .google.rpc.QuotaFailure.Violation violations = 1; */ - public java.util.List - getViolationsOrBuilderList() { + public java.util.List + getViolationsOrBuilderList() { if (violationsBuilder_ != null) { return violationsBuilder_.getMessageOrBuilderList(); } else { @@ -1603,103 +1756,109 @@ public ViolationOrBuilder getViolationsOrBuilder( } } /** + * + * *
      * Describes all quota violations.
      * 
* * repeated .google.rpc.QuotaFailure.Violation violations = 1; */ - public Violation.Builder addViolationsBuilder() { - return getViolationsFieldBuilder().addBuilder( - Violation.getDefaultInstance()); + public com.google.rpc.QuotaFailure.Violation.Builder addViolationsBuilder() { + return getViolationsFieldBuilder() + .addBuilder(com.google.rpc.QuotaFailure.Violation.getDefaultInstance()); } /** + * + * *
      * Describes all quota violations.
      * 
* * repeated .google.rpc.QuotaFailure.Violation violations = 1; */ - public Violation.Builder addViolationsBuilder( - int index) { - return getViolationsFieldBuilder().addBuilder( - index, Violation.getDefaultInstance()); + public com.google.rpc.QuotaFailure.Violation.Builder addViolationsBuilder(int index) { + return getViolationsFieldBuilder() + .addBuilder(index, com.google.rpc.QuotaFailure.Violation.getDefaultInstance()); } /** + * + * *
      * Describes all quota violations.
      * 
* * repeated .google.rpc.QuotaFailure.Violation violations = 1; */ - public java.util.List - getViolationsBuilderList() { + public java.util.List + getViolationsBuilderList() { return getViolationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - Violation, Violation.Builder, ViolationOrBuilder> + com.google.rpc.QuotaFailure.Violation, + com.google.rpc.QuotaFailure.Violation.Builder, + com.google.rpc.QuotaFailure.ViolationOrBuilder> getViolationsFieldBuilder() { if (violationsBuilder_ == null) { - violationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - Violation, Violation.Builder, ViolationOrBuilder>( - violations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + violationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.QuotaFailure.Violation, + com.google.rpc.QuotaFailure.Violation.Builder, + com.google.rpc.QuotaFailure.ViolationOrBuilder>( + violations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); violations_ = null; } return violationsBuilder_; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.rpc.QuotaFailure) } // @@protoc_insertion_point(class_scope:google.rpc.QuotaFailure) - private static final QuotaFailure DEFAULT_INSTANCE; + private static final com.google.rpc.QuotaFailure DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new QuotaFailure(); + DEFAULT_INSTANCE = new com.google.rpc.QuotaFailure(); } - public static QuotaFailure getDefaultInstance() { + public static com.google.rpc.QuotaFailure getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public QuotaFailure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QuotaFailure(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QuotaFailure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QuotaFailure(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public QuotaFailure getDefaultInstanceForType() { + @java.lang.Override + public com.google.rpc.QuotaFailure getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/QuotaFailureOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/rpc/QuotaFailureOrBuilder.java index dfc521d3..a5c1b5f1 100644 --- a/proto-google-common-protos/src/main/java/com/google/rpc/QuotaFailureOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/rpc/QuotaFailureOrBuilder.java @@ -1,30 +1,51 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/error_details.proto package com.google.rpc; -public interface QuotaFailureOrBuilder extends +public interface QuotaFailureOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.rpc.QuotaFailure) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Describes all quota violations.
    * 
* * repeated .google.rpc.QuotaFailure.Violation violations = 1; */ - java.util.List - getViolationsList(); + java.util.List getViolationsList(); /** + * + * *
    * Describes all quota violations.
    * 
* * repeated .google.rpc.QuotaFailure.Violation violations = 1; */ - QuotaFailure.Violation getViolations(int index); + com.google.rpc.QuotaFailure.Violation getViolations(int index); /** + * + * *
    * Describes all quota violations.
    * 
@@ -33,21 +54,24 @@ public interface QuotaFailureOrBuilder extends */ int getViolationsCount(); /** + * + * *
    * Describes all quota violations.
    * 
* * repeated .google.rpc.QuotaFailure.Violation violations = 1; */ - java.util.List + java.util.List getViolationsOrBuilderList(); /** + * + * *
    * Describes all quota violations.
    * 
* * repeated .google.rpc.QuotaFailure.Violation violations = 1; */ - QuotaFailure.ViolationOrBuilder getViolationsOrBuilder( - int index); + com.google.rpc.QuotaFailure.ViolationOrBuilder getViolationsOrBuilder(int index); } diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/RequestInfo.java b/proto-google-common-protos/src/main/java/com/google/rpc/RequestInfo.java index 4991caa7..c27a991b 100644 --- a/proto-google-common-protos/src/main/java/com/google/rpc/RequestInfo.java +++ b/proto-google-common-protos/src/main/java/com/google/rpc/RequestInfo.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/rpc/error_details.proto package com.google.rpc; /** + * + * *
  * Contains metadata about the request that clients can attach when filing a bug
  * or providing other forms of feedback.
@@ -11,34 +28,40 @@
  *
  * Protobuf type {@code google.rpc.RequestInfo}
  */
-public  final class RequestInfo extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RequestInfo extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.rpc.RequestInfo)
     RequestInfoOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RequestInfo.newBuilder() to construct.
   private RequestInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RequestInfo() {
     requestId_ = "";
     servingData_ = "";
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new RequestInfo();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private RequestInfo(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
-    int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
         com.google.protobuf.UnknownFieldSet.newBuilder();
     try {
@@ -49,87 +72,94 @@ private RequestInfo(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            requestId_ = s;
-            break;
-          }
-          case 18: {
-            String s = input.readStringRequireUtf8();
+              requestId_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            servingData_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              servingData_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_RequestInfo_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_RequestInfo_fieldAccessorTable
+    return com.google.rpc.ErrorDetailsProto
+        .internal_static_google_rpc_RequestInfo_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            RequestInfo.class, Builder.class);
+            com.google.rpc.RequestInfo.class, com.google.rpc.RequestInfo.Builder.class);
   }
 
   public static final int REQUEST_ID_FIELD_NUMBER = 1;
-  private volatile Object requestId_;
+  private volatile java.lang.Object requestId_;
   /**
+   *
+   *
    * 
    * An opaque string that should only be interpreted by the service generating
    * it. For example, it can be used to identify requests in the service's logs.
    * 
* * string request_id = 1; + * + * @return The requestId. */ - public String getRequestId() { - Object ref = requestId_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * An opaque string that should only be interpreted by the service generating
    * it. For example, it can be used to identify requests in the service's logs.
    * 
* * string request_id = 1; + * + * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -138,42 +168,47 @@ public String getRequestId() { } public static final int SERVING_DATA_FIELD_NUMBER = 2; - private volatile Object servingData_; + private volatile java.lang.Object servingData_; /** + * + * *
    * Any data that was used to serve this request. For example, an encrypted
    * stack trace that can be sent back to the service provider for debugging.
    * 
* * string serving_data = 2; + * + * @return The servingData. */ - public String getServingData() { - Object ref = servingData_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getServingData() { + java.lang.Object ref = servingData_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); servingData_ = s; return s; } } /** + * + * *
    * Any data that was used to serve this request. For example, an encrypted
    * stack trace that can be sent back to the service provider for debugging.
    * 
* * string serving_data = 2; + * + * @return The bytes for servingData. */ - public com.google.protobuf.ByteString - getServingDataBytes() { - Object ref = servingData_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getServingDataBytes() { + java.lang.Object ref = servingData_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); servingData_ = b; return b; } else { @@ -182,7 +217,8 @@ public String getServingData() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -192,9 +228,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getRequestIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); } @@ -204,7 +239,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -221,25 +256,23 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof RequestInfo)) { + if (!(obj instanceof com.google.rpc.RequestInfo)) { return super.equals(obj); } - RequestInfo other = (RequestInfo) obj; + com.google.rpc.RequestInfo other = (com.google.rpc.RequestInfo) obj; - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (!getServingData() - .equals(other.getServingData())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getServingData().equals(other.getServingData())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -255,97 +288,103 @@ public int hashCode() { return hash; } - public static RequestInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.rpc.RequestInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static RequestInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.RequestInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static RequestInfo parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.rpc.RequestInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static RequestInfo parseFrom( + + public static com.google.rpc.RequestInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static RequestInfo parseFrom(byte[] data) + + public static com.google.rpc.RequestInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static RequestInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.RequestInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static RequestInfo parseFrom(java.io.InputStream input) + + public static com.google.rpc.RequestInfo 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 RequestInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.RequestInfo parseFrom( + 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 RequestInfo parseDelimitedFrom(java.io.InputStream input) + + public static com.google.rpc.RequestInfo 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 RequestInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.RequestInfo parseDelimitedFrom( + 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 RequestInfo parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.rpc.RequestInfo 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 RequestInfo parseFrom( + + public static com.google.rpc.RequestInfo 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(RequestInfo prototype) { + + public static Builder newBuilder(com.google.rpc.RequestInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Contains metadata about the request that clients can attach when filing a bug
    * or providing other forms of feedback.
@@ -353,21 +392,21 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.rpc.RequestInfo}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.rpc.RequestInfo)
       com.google.rpc.RequestInfoOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_RequestInfo_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_RequestInfo_fieldAccessorTable
+      return com.google.rpc.ErrorDetailsProto
+          .internal_static_google_rpc_RequestInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              RequestInfo.class, Builder.class);
+              com.google.rpc.RequestInfo.class, com.google.rpc.RequestInfo.Builder.class);
     }
 
     // Construct using com.google.rpc.RequestInfo.newBuilder()
@@ -375,17 +414,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       requestId_ = "";
@@ -395,79 +433,79 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_RequestInfo_descriptor;
     }
 
-    @Override
-    public RequestInfo getDefaultInstanceForType() {
-      return RequestInfo.getDefaultInstance();
+    @java.lang.Override
+    public com.google.rpc.RequestInfo getDefaultInstanceForType() {
+      return com.google.rpc.RequestInfo.getDefaultInstance();
     }
 
-    @Override
-    public RequestInfo build() {
-      RequestInfo result = buildPartial();
+    @java.lang.Override
+    public com.google.rpc.RequestInfo build() {
+      com.google.rpc.RequestInfo result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public RequestInfo buildPartial() {
-      RequestInfo result = new RequestInfo(this);
+    @java.lang.Override
+    public com.google.rpc.RequestInfo buildPartial() {
+      com.google.rpc.RequestInfo result = new com.google.rpc.RequestInfo(this);
       result.requestId_ = requestId_;
       result.servingData_ = servingData_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof RequestInfo) {
-        return mergeFrom((RequestInfo)other);
+      if (other instanceof com.google.rpc.RequestInfo) {
+        return mergeFrom((com.google.rpc.RequestInfo) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(RequestInfo other) {
-      if (other == RequestInfo.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.rpc.RequestInfo other) {
+      if (other == com.google.rpc.RequestInfo.getDefaultInstance()) return this;
       if (!other.getRequestId().isEmpty()) {
         requestId_ = other.requestId_;
         onChanged();
@@ -481,21 +519,21 @@ public Builder mergeFrom(RequestInfo other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      RequestInfo parsedMessage = null;
+      com.google.rpc.RequestInfo parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (RequestInfo) e.getUnfinishedMessage();
+        parsedMessage = (com.google.rpc.RequestInfo) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -505,42 +543,47 @@ public Builder mergeFrom(
       return this;
     }
 
-    private Object requestId_ = "";
+    private java.lang.Object requestId_ = "";
     /**
+     *
+     *
      * 
      * An opaque string that should only be interpreted by the service generating
      * it. For example, it can be used to identify requests in the service's logs.
      * 
* * string request_id = 1; + * + * @return The requestId. */ - public String getRequestId() { - Object ref = requestId_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * An opaque string that should only be interpreted by the service generating
      * it. For example, it can be used to identify requests in the service's logs.
      * 
* * string request_id = 1; + * + * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - Object ref = requestId_; + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -548,93 +591,110 @@ public String getRequestId() { } } /** + * + * *
      * An opaque string that should only be interpreted by the service generating
      * it. For example, it can be used to identify requests in the service's logs.
      * 
* * string request_id = 1; + * + * @param value The requestId to set. + * @return This builder for chaining. */ - public Builder setRequestId( - String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * An opaque string that should only be interpreted by the service generating
      * it. For example, it can be used to identify requests in the service's logs.
      * 
* * string request_id = 1; + * + * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * An opaque string that should only be interpreted by the service generating
      * it. For example, it can be used to identify requests in the service's logs.
      * 
* * string request_id = 1; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } - private Object servingData_ = ""; + private java.lang.Object servingData_ = ""; /** + * + * *
      * Any data that was used to serve this request. For example, an encrypted
      * stack trace that can be sent back to the service provider for debugging.
      * 
* * string serving_data = 2; + * + * @return The servingData. */ - public String getServingData() { - Object ref = servingData_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getServingData() { + java.lang.Object ref = servingData_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); servingData_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Any data that was used to serve this request. For example, an encrypted
      * stack trace that can be sent back to the service provider for debugging.
      * 
* * string serving_data = 2; + * + * @return The bytes for servingData. */ - public com.google.protobuf.ByteString - getServingDataBytes() { - Object ref = servingData_; + public com.google.protobuf.ByteString getServingDataBytes() { + java.lang.Object ref = servingData_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); servingData_ = b; return b; } else { @@ -642,106 +702,116 @@ public String getServingData() { } } /** + * + * *
      * Any data that was used to serve this request. For example, an encrypted
      * stack trace that can be sent back to the service provider for debugging.
      * 
* * string serving_data = 2; + * + * @param value The servingData to set. + * @return This builder for chaining. */ - public Builder setServingData( - String value) { + public Builder setServingData(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + servingData_ = value; onChanged(); return this; } /** + * + * *
      * Any data that was used to serve this request. For example, an encrypted
      * stack trace that can be sent back to the service provider for debugging.
      * 
* * string serving_data = 2; + * + * @return This builder for chaining. */ public Builder clearServingData() { - + servingData_ = getDefaultInstance().getServingData(); onChanged(); return this; } /** + * + * *
      * Any data that was used to serve this request. For example, an encrypted
      * stack trace that can be sent back to the service provider for debugging.
      * 
* * string serving_data = 2; + * + * @param value The bytes for servingData to set. + * @return This builder for chaining. */ - public Builder setServingDataBytes( - com.google.protobuf.ByteString value) { + public Builder setServingDataBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + servingData_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.rpc.RequestInfo) } // @@protoc_insertion_point(class_scope:google.rpc.RequestInfo) - private static final RequestInfo DEFAULT_INSTANCE; + private static final com.google.rpc.RequestInfo DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new RequestInfo(); + DEFAULT_INSTANCE = new com.google.rpc.RequestInfo(); } - public static RequestInfo getDefaultInstance() { + public static com.google.rpc.RequestInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public RequestInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RequestInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RequestInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RequestInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public RequestInfo getDefaultInstanceForType() { + @java.lang.Override + public com.google.rpc.RequestInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/RequestInfoOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/rpc/RequestInfoOrBuilder.java index 0e3c2a2e..aed43d73 100644 --- a/proto-google-common-protos/src/main/java/com/google/rpc/RequestInfoOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/rpc/RequestInfoOrBuilder.java @@ -1,49 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/error_details.proto package com.google.rpc; -public interface RequestInfoOrBuilder extends +public interface RequestInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.rpc.RequestInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * An opaque string that should only be interpreted by the service generating
    * it. For example, it can be used to identify requests in the service's logs.
    * 
* * string request_id = 1; + * + * @return The requestId. */ - String getRequestId(); + java.lang.String getRequestId(); /** + * + * *
    * An opaque string that should only be interpreted by the service generating
    * it. For example, it can be used to identify requests in the service's logs.
    * 
* * string request_id = 1; + * + * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); /** + * + * *
    * Any data that was used to serve this request. For example, an encrypted
    * stack trace that can be sent back to the service provider for debugging.
    * 
* * string serving_data = 2; + * + * @return The servingData. */ - String getServingData(); + java.lang.String getServingData(); /** + * + * *
    * Any data that was used to serve this request. For example, an encrypted
    * stack trace that can be sent back to the service provider for debugging.
    * 
* * string serving_data = 2; + * + * @return The bytes for servingData. */ - com.google.protobuf.ByteString - getServingDataBytes(); + com.google.protobuf.ByteString getServingDataBytes(); } diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/ResourceInfo.java b/proto-google-common-protos/src/main/java/com/google/rpc/ResourceInfo.java index 7d381ea6..b84e81ba 100644 --- a/proto-google-common-protos/src/main/java/com/google/rpc/ResourceInfo.java +++ b/proto-google-common-protos/src/main/java/com/google/rpc/ResourceInfo.java @@ -1,24 +1,42 @@ +/* + * 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/rpc/error_details.proto package com.google.rpc; /** + * + * *
  * Describes the resource that is being accessed.
  * 
* * Protobuf type {@code google.rpc.ResourceInfo} */ -public final class ResourceInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ResourceInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.rpc.ResourceInfo) ResourceInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResourceInfo.newBuilder() to construct. private ResourceInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ResourceInfo() { resourceType_ = ""; resourceName_ = ""; @@ -26,20 +44,25 @@ private ResourceInfo() { description_ = ""; } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ResourceInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ResourceInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -50,65 +73,71 @@ private ResourceInfo( case 0: done = true; break; - case 10: { - String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - resourceType_ = s; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); + resourceType_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - resourceName_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); + resourceName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - owner_ = s; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); + owner_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + description_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_ResourceInfo_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_ResourceInfo_fieldAccessorTable + return com.google.rpc.ErrorDetailsProto + .internal_static_google_rpc_ResourceInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - ResourceInfo.class, Builder.class); + com.google.rpc.ResourceInfo.class, com.google.rpc.ResourceInfo.Builder.class); } public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - private volatile Object resourceType_; + private volatile java.lang.Object resourceType_; /** + * + * *
    * A name for the type of resource being accessed, e.g. "sql table",
    * "cloud storage bucket", "file", "Google calendar"; or the type URL
@@ -116,20 +145,23 @@ private ResourceInfo(
    * 
* * string resource_type = 1; + * + * @return The resourceType. */ - public String getResourceType() { - Object ref = resourceType_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getResourceType() { + java.lang.Object ref = resourceType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); resourceType_ = s; return s; } } /** + * + * *
    * A name for the type of resource being accessed, e.g. "sql table",
    * "cloud storage bucket", "file", "Google calendar"; or the type URL
@@ -137,14 +169,14 @@ public String getResourceType() {
    * 
* * string resource_type = 1; + * + * @return The bytes for resourceType. */ - public com.google.protobuf.ByteString - getResourceTypeBytes() { - Object ref = resourceType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getResourceTypeBytes() { + java.lang.Object ref = resourceType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceType_ = b; return b; } else { @@ -153,46 +185,49 @@ public String getResourceType() { } public static final int RESOURCE_NAME_FIELD_NUMBER = 2; - private volatile Object resourceName_; + private volatile java.lang.Object resourceName_; /** + * + * *
    * The name of the resource being accessed.  For example, a shared calendar
    * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
-   * error is
-   * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
+   * error is [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
    * 
* * string resource_name = 2; + * + * @return The resourceName. */ - public String getResourceName() { - Object ref = resourceName_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } } /** + * + * *
    * The name of the resource being accessed.  For example, a shared calendar
    * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
-   * error is
-   * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
+   * error is [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
    * 
* * string resource_name = 2; + * + * @return The bytes for resourceName. */ - public com.google.protobuf.ByteString - getResourceNameBytes() { - Object ref = resourceName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceName_ = b; return b; } else { @@ -201,8 +236,10 @@ public String getResourceName() { } public static final int OWNER_FIELD_NUMBER = 3; - private volatile Object owner_; + private volatile java.lang.Object owner_; /** + * + * *
    * The owner of the resource (optional).
    * For example, "user:<owner email>" or "project:<Google developer project
@@ -210,20 +247,23 @@ public String getResourceName() {
    * 
* * string owner = 3; + * + * @return The owner. */ - public String getOwner() { - Object ref = owner_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getOwner() { + java.lang.Object ref = owner_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); owner_ = s; return s; } } /** + * + * *
    * The owner of the resource (optional).
    * For example, "user:<owner email>" or "project:<Google developer project
@@ -231,14 +271,14 @@ public String getOwner() {
    * 
* * string owner = 3; + * + * @return The bytes for owner. */ - public com.google.protobuf.ByteString - getOwnerBytes() { - Object ref = owner_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getOwnerBytes() { + java.lang.Object ref = owner_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); owner_ = b; return b; } else { @@ -247,8 +287,10 @@ public String getOwner() { } public static final int DESCRIPTION_FIELD_NUMBER = 4; - private volatile Object description_; + private volatile java.lang.Object description_; /** + * + * *
    * Describes what error is encountered when accessing this resource.
    * For example, updating a cloud project may require the `writer` permission
@@ -256,20 +298,23 @@ public String getOwner() {
    * 
* * string description = 4; + * + * @return The description. */ - public String getDescription() { - Object ref = description_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Describes what error is encountered when accessing this resource.
    * For example, updating a cloud project may require the `writer` permission
@@ -277,14 +322,14 @@ public String getDescription() {
    * 
* * string description = 4; + * + * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + 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); description_ = b; return b; } else { @@ -293,7 +338,8 @@ public String getDescription() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -303,9 +349,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getResourceTypeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceType_); } @@ -321,7 +366,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -344,29 +389,25 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof ResourceInfo)) { + if (!(obj instanceof com.google.rpc.ResourceInfo)) { return super.equals(obj); } - ResourceInfo other = (ResourceInfo) obj; - - if (!getResourceType() - .equals(other.getResourceType())) return false; - if (!getResourceName() - .equals(other.getResourceName())) return false; - if (!getOwner() - .equals(other.getOwner())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + com.google.rpc.ResourceInfo other = (com.google.rpc.ResourceInfo) obj; + + if (!getResourceType().equals(other.getResourceType())) return false; + if (!getResourceName().equals(other.getResourceName())) return false; + if (!getOwner().equals(other.getOwner())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -386,118 +427,124 @@ public int hashCode() { return hash; } - public static ResourceInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.rpc.ResourceInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static ResourceInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.ResourceInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static ResourceInfo parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.rpc.ResourceInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static ResourceInfo parseFrom( + + public static com.google.rpc.ResourceInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static ResourceInfo parseFrom(byte[] data) + + public static com.google.rpc.ResourceInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static ResourceInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.ResourceInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static ResourceInfo parseFrom(java.io.InputStream input) + + public static com.google.rpc.ResourceInfo 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 ResourceInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.ResourceInfo parseFrom( + 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 ResourceInfo parseDelimitedFrom(java.io.InputStream input) + + public static com.google.rpc.ResourceInfo 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 ResourceInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.ResourceInfo parseDelimitedFrom( + 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 ResourceInfo parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.rpc.ResourceInfo 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 ResourceInfo parseFrom( + + public static com.google.rpc.ResourceInfo 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(ResourceInfo prototype) { + + public static Builder newBuilder(com.google.rpc.ResourceInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Describes the resource that is being accessed.
    * 
* * Protobuf type {@code google.rpc.ResourceInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.rpc.ResourceInfo) com.google.rpc.ResourceInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_ResourceInfo_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_ResourceInfo_fieldAccessorTable + return com.google.rpc.ErrorDetailsProto + .internal_static_google_rpc_ResourceInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - ResourceInfo.class, Builder.class); + com.google.rpc.ResourceInfo.class, com.google.rpc.ResourceInfo.Builder.class); } // Construct using com.google.rpc.ResourceInfo.newBuilder() @@ -505,17 +552,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @Override + + @java.lang.Override public Builder clear() { super.clear(); resourceType_ = ""; @@ -529,29 +575,28 @@ public Builder clear() { return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_ResourceInfo_descriptor; } - @Override - public ResourceInfo getDefaultInstanceForType() { - return ResourceInfo.getDefaultInstance(); + @java.lang.Override + public com.google.rpc.ResourceInfo getDefaultInstanceForType() { + return com.google.rpc.ResourceInfo.getDefaultInstance(); } - @Override - public ResourceInfo build() { - ResourceInfo result = buildPartial(); + @java.lang.Override + public com.google.rpc.ResourceInfo build() { + com.google.rpc.ResourceInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public ResourceInfo buildPartial() { - ResourceInfo result = new ResourceInfo(this); + @java.lang.Override + public com.google.rpc.ResourceInfo buildPartial() { + com.google.rpc.ResourceInfo result = new com.google.rpc.ResourceInfo(this); result.resourceType_ = resourceType_; result.resourceName_ = resourceName_; result.owner_ = owner_; @@ -560,50 +605,51 @@ public ResourceInfo buildPartial() { return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ResourceInfo) { - return mergeFrom((ResourceInfo)other); + if (other instanceof com.google.rpc.ResourceInfo) { + return mergeFrom((com.google.rpc.ResourceInfo) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(ResourceInfo other) { - if (other == ResourceInfo.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.rpc.ResourceInfo other) { + if (other == com.google.rpc.ResourceInfo.getDefaultInstance()) return this; if (!other.getResourceType().isEmpty()) { resourceType_ = other.resourceType_; onChanged(); @@ -625,21 +671,21 @@ public Builder mergeFrom(ResourceInfo other) { return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - ResourceInfo parsedMessage = null; + com.google.rpc.ResourceInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ResourceInfo) e.getUnfinishedMessage(); + parsedMessage = (com.google.rpc.ResourceInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -649,8 +695,10 @@ public Builder mergeFrom( return this; } - private Object resourceType_ = ""; + private java.lang.Object resourceType_ = ""; /** + * + * *
      * A name for the type of resource being accessed, e.g. "sql table",
      * "cloud storage bucket", "file", "Google calendar"; or the type URL
@@ -658,20 +706,23 @@ public Builder mergeFrom(
      * 
* * string resource_type = 1; + * + * @return The resourceType. */ - public String getResourceType() { - Object ref = resourceType_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getResourceType() { + java.lang.Object ref = resourceType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); resourceType_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * A name for the type of resource being accessed, e.g. "sql table",
      * "cloud storage bucket", "file", "Google calendar"; or the type URL
@@ -679,14 +730,14 @@ public String getResourceType() {
      * 
* * string resource_type = 1; + * + * @return The bytes for resourceType. */ - public com.google.protobuf.ByteString - getResourceTypeBytes() { - Object ref = resourceType_; + public com.google.protobuf.ByteString getResourceTypeBytes() { + java.lang.Object ref = resourceType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceType_ = b; return b; } else { @@ -694,6 +745,8 @@ public String getResourceType() { } } /** + * + * *
      * A name for the type of resource being accessed, e.g. "sql table",
      * "cloud storage bucket", "file", "Google calendar"; or the type URL
@@ -701,18 +754,22 @@ public String getResourceType() {
      * 
* * string resource_type = 1; + * + * @param value The resourceType to set. + * @return This builder for chaining. */ - public Builder setResourceType( - String value) { + public Builder setResourceType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceType_ = value; onChanged(); return this; } /** + * + * *
      * A name for the type of resource being accessed, e.g. "sql table",
      * "cloud storage bucket", "file", "Google calendar"; or the type URL
@@ -720,14 +777,18 @@ public Builder setResourceType(
      * 
* * string resource_type = 1; + * + * @return This builder for chaining. */ public Builder clearResourceType() { - + resourceType_ = getDefaultInstance().getResourceType(); onChanged(); return this; } /** + * + * *
      * A name for the type of resource being accessed, e.g. "sql table",
      * "cloud storage bucket", "file", "Google calendar"; or the type URL
@@ -735,59 +796,64 @@ public Builder clearResourceType() {
      * 
* * string resource_type = 1; + * + * @param value The bytes for resourceType to set. + * @return This builder for chaining. */ - public Builder setResourceTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceType_ = value; onChanged(); return this; } - private Object resourceName_ = ""; + private java.lang.Object resourceName_ = ""; /** + * + * *
      * The name of the resource being accessed.  For example, a shared calendar
      * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
-     * error is
-     * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
+     * error is [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
      * 
* * string resource_name = 2; + * + * @return The resourceName. */ - public String getResourceName() { - Object ref = resourceName_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The name of the resource being accessed.  For example, a shared calendar
      * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
-     * error is
-     * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
+     * error is [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
      * 
* * string resource_name = 2; + * + * @return The bytes for resourceName. */ - public com.google.protobuf.ByteString - getResourceNameBytes() { - Object ref = resourceName_; + public com.google.protobuf.ByteString getResourceNameBytes() { + java.lang.Object ref = resourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceName_ = b; return b; } else { @@ -795,65 +861,76 @@ public String getResourceName() { } } /** + * + * *
      * The name of the resource being accessed.  For example, a shared calendar
      * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
-     * error is
-     * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
+     * error is [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
      * 
* * string resource_name = 2; + * + * @param value The resourceName to set. + * @return This builder for chaining. */ - public Builder setResourceName( - String value) { + public Builder setResourceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceName_ = value; onChanged(); return this; } /** + * + * *
      * The name of the resource being accessed.  For example, a shared calendar
      * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
-     * error is
-     * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
+     * error is [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
      * 
* * string resource_name = 2; + * + * @return This builder for chaining. */ public Builder clearResourceName() { - + resourceName_ = getDefaultInstance().getResourceName(); onChanged(); return this; } /** + * + * *
      * The name of the resource being accessed.  For example, a shared calendar
      * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
-     * error is
-     * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
+     * error is [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
      * 
* * string resource_name = 2; + * + * @param value The bytes for resourceName to set. + * @return This builder for chaining. */ - public Builder setResourceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceName_ = value; onChanged(); return this; } - private Object owner_ = ""; + private java.lang.Object owner_ = ""; /** + * + * *
      * The owner of the resource (optional).
      * For example, "user:<owner email>" or "project:<Google developer project
@@ -861,20 +938,23 @@ public Builder setResourceNameBytes(
      * 
* * string owner = 3; + * + * @return The owner. */ - public String getOwner() { - Object ref = owner_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getOwner() { + java.lang.Object ref = owner_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); owner_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The owner of the resource (optional).
      * For example, "user:<owner email>" or "project:<Google developer project
@@ -882,14 +962,14 @@ public String getOwner() {
      * 
* * string owner = 3; + * + * @return The bytes for owner. */ - public com.google.protobuf.ByteString - getOwnerBytes() { - Object ref = owner_; + public com.google.protobuf.ByteString getOwnerBytes() { + java.lang.Object ref = owner_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); owner_ = b; return b; } else { @@ -897,6 +977,8 @@ public String getOwner() { } } /** + * + * *
      * The owner of the resource (optional).
      * For example, "user:<owner email>" or "project:<Google developer project
@@ -904,18 +986,22 @@ public String getOwner() {
      * 
* * string owner = 3; + * + * @param value The owner to set. + * @return This builder for chaining. */ - public Builder setOwner( - String value) { + public Builder setOwner(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + owner_ = value; onChanged(); return this; } /** + * + * *
      * The owner of the resource (optional).
      * For example, "user:<owner email>" or "project:<Google developer project
@@ -923,14 +1009,18 @@ public Builder setOwner(
      * 
* * string owner = 3; + * + * @return This builder for chaining. */ public Builder clearOwner() { - + owner_ = getDefaultInstance().getOwner(); onChanged(); return this; } /** + * + * *
      * The owner of the resource (optional).
      * For example, "user:<owner email>" or "project:<Google developer project
@@ -938,21 +1028,25 @@ public Builder clearOwner() {
      * 
* * string owner = 3; + * + * @param value The bytes for owner to set. + * @return This builder for chaining. */ - public Builder setOwnerBytes( - com.google.protobuf.ByteString value) { + public Builder setOwnerBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + owner_ = value; onChanged(); return this; } - private Object description_ = ""; + private java.lang.Object description_ = ""; /** + * + * *
      * Describes what error is encountered when accessing this resource.
      * For example, updating a cloud project may require the `writer` permission
@@ -960,20 +1054,23 @@ public Builder setOwnerBytes(
      * 
* * string description = 4; + * + * @return The description. */ - public String getDescription() { - Object ref = description_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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; + java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Describes what error is encountered when accessing this resource.
      * For example, updating a cloud project may require the `writer` permission
@@ -981,14 +1078,14 @@ public String getDescription() {
      * 
* * string description = 4; + * + * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - Object ref = description_; + 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( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -996,6 +1093,8 @@ public String getDescription() { } } /** + * + * *
      * Describes what error is encountered when accessing this resource.
      * For example, updating a cloud project may require the `writer` permission
@@ -1003,18 +1102,22 @@ public String getDescription() {
      * 
* * string description = 4; + * + * @param value The description to set. + * @return This builder for chaining. */ - public Builder setDescription( - String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Describes what error is encountered when accessing this resource.
      * For example, updating a cloud project may require the `writer` permission
@@ -1022,14 +1125,18 @@ public Builder setDescription(
      * 
* * string description = 4; + * + * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Describes what error is encountered when accessing this resource.
      * For example, updating a cloud project may require the `writer` permission
@@ -1037,68 +1144,68 @@ public Builder clearDescription() {
      * 
* * string description = 4; + * + * @param value The bytes for description to set. + * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.rpc.ResourceInfo) } // @@protoc_insertion_point(class_scope:google.rpc.ResourceInfo) - private static final ResourceInfo DEFAULT_INSTANCE; + private static final com.google.rpc.ResourceInfo DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new ResourceInfo(); + DEFAULT_INSTANCE = new com.google.rpc.ResourceInfo(); } - public static ResourceInfo getDefaultInstance() { + public static com.google.rpc.ResourceInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public ResourceInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public ResourceInfo getDefaultInstanceForType() { + @java.lang.Override + public com.google.rpc.ResourceInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/ResourceInfoOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/rpc/ResourceInfoOrBuilder.java index ebae515a..3038fb45 100644 --- a/proto-google-common-protos/src/main/java/com/google/rpc/ResourceInfoOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/rpc/ResourceInfoOrBuilder.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/rpc/error_details.proto package com.google.rpc; -public interface ResourceInfoOrBuilder extends +public interface ResourceInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.rpc.ResourceInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A name for the type of resource being accessed, e.g. "sql table",
    * "cloud storage bucket", "file", "Google calendar"; or the type URL
@@ -15,9 +33,13 @@ public interface ResourceInfoOrBuilder extends
    * 
* * string resource_type = 1; + * + * @return The resourceType. */ - String getResourceType(); + java.lang.String getResourceType(); /** + * + * *
    * A name for the type of resource being accessed, e.g. "sql table",
    * "cloud storage bucket", "file", "Google calendar"; or the type URL
@@ -25,35 +47,43 @@ public interface ResourceInfoOrBuilder extends
    * 
* * string resource_type = 1; + * + * @return The bytes for resourceType. */ - com.google.protobuf.ByteString - getResourceTypeBytes(); + com.google.protobuf.ByteString getResourceTypeBytes(); /** + * + * *
    * The name of the resource being accessed.  For example, a shared calendar
    * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
-   * error is
-   * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
+   * error is [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
    * 
* * string resource_name = 2; + * + * @return The resourceName. */ - String getResourceName(); + java.lang.String getResourceName(); /** + * + * *
    * The name of the resource being accessed.  For example, a shared calendar
    * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
-   * error is
-   * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
+   * error is [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
    * 
* * string resource_name = 2; + * + * @return The bytes for resourceName. */ - com.google.protobuf.ByteString - getResourceNameBytes(); + com.google.protobuf.ByteString getResourceNameBytes(); /** + * + * *
    * The owner of the resource (optional).
    * For example, "user:<owner email>" or "project:<Google developer project
@@ -61,9 +91,13 @@ public interface ResourceInfoOrBuilder extends
    * 
* * string owner = 3; + * + * @return The owner. */ - String getOwner(); + java.lang.String getOwner(); /** + * + * *
    * The owner of the resource (optional).
    * For example, "user:<owner email>" or "project:<Google developer project
@@ -71,11 +105,14 @@ public interface ResourceInfoOrBuilder extends
    * 
* * string owner = 3; + * + * @return The bytes for owner. */ - com.google.protobuf.ByteString - getOwnerBytes(); + com.google.protobuf.ByteString getOwnerBytes(); /** + * + * *
    * Describes what error is encountered when accessing this resource.
    * For example, updating a cloud project may require the `writer` permission
@@ -83,9 +120,13 @@ public interface ResourceInfoOrBuilder extends
    * 
* * string description = 4; + * + * @return The description. */ - String getDescription(); + java.lang.String getDescription(); /** + * + * *
    * Describes what error is encountered when accessing this resource.
    * For example, updating a cloud project may require the `writer` permission
@@ -93,7 +134,8 @@ public interface ResourceInfoOrBuilder extends
    * 
* * string description = 4; + * + * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); } diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/RetryInfo.java b/proto-google-common-protos/src/main/java/com/google/rpc/RetryInfo.java index 188b36ba..d6d6da06 100644 --- a/proto-google-common-protos/src/main/java/com/google/rpc/RetryInfo.java +++ b/proto-google-common-protos/src/main/java/com/google/rpc/RetryInfo.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/rpc/error_details.proto package com.google.rpc; /** + * + * *
  * Describes when the clients can retry a failed request. Clients could ignore
  * the recommendation here or retry when this information is missing from error
@@ -14,38 +31,43 @@
  * receiving the error response before retrying.  If retrying requests also
  * fail, clients should use an exponential backoff scheme to gradually increase
  * the delay between retries based on `retry_delay`, until either a maximum
- * number of retires have been reached or a maximum retry delay cap has been
+ * number of retries have been reached or a maximum retry delay cap has been
  * reached.
  * 
* * Protobuf type {@code google.rpc.RetryInfo} */ -public final class RetryInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RetryInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.rpc.RetryInfo) RetryInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RetryInfo.newBuilder() to construct. private RetryInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RetryInfo() { + + private RetryInfo() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RetryInfo(); } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RetryInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -56,74 +78,85 @@ private RetryInfo( case 0: done = true; break; - case 10: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (retryDelay_ != null) { - subBuilder = retryDelay_.toBuilder(); + case 10: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (retryDelay_ != null) { + subBuilder = retryDelay_.toBuilder(); + } + retryDelay_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(retryDelay_); + retryDelay_ = subBuilder.buildPartial(); + } + + break; } - retryDelay_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(retryDelay_); - retryDelay_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_RetryInfo_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_RetryInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - RetryInfo.class, Builder.class); + com.google.rpc.RetryInfo.class, com.google.rpc.RetryInfo.Builder.class); } public static final int RETRY_DELAY_FIELD_NUMBER = 1; private com.google.protobuf.Duration retryDelay_; /** + * + * *
    * Clients should wait at least this long between retrying the same request.
    * 
* * .google.protobuf.Duration retry_delay = 1; + * + * @return Whether the retryDelay field is set. */ public boolean hasRetryDelay() { return retryDelay_ != null; } /** + * + * *
    * Clients should wait at least this long between retrying the same request.
    * 
* * .google.protobuf.Duration retry_delay = 1; + * + * @return The retryDelay. */ public com.google.protobuf.Duration getRetryDelay() { return retryDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retryDelay_; } /** + * + * *
    * Clients should wait at least this long between retrying the same request.
    * 
@@ -135,7 +168,8 @@ public com.google.protobuf.DurationOrBuilder getRetryDelayOrBuilder() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -145,50 +179,47 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (retryDelay_ != null) { output.writeMessage(1, getRetryDelay()); } unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (retryDelay_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRetryDelay()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRetryDelay()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof RetryInfo)) { + if (!(obj instanceof com.google.rpc.RetryInfo)) { return super.equals(obj); } - RetryInfo other = (RetryInfo) obj; + com.google.rpc.RetryInfo other = (com.google.rpc.RetryInfo) obj; if (hasRetryDelay() != other.hasRetryDelay()) return false; if (hasRetryDelay()) { - if (!getRetryDelay() - .equals(other.getRetryDelay())) return false; + if (!getRetryDelay().equals(other.getRetryDelay())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -204,97 +235,103 @@ public int hashCode() { return hash; } - public static RetryInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.rpc.RetryInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static RetryInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.RetryInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static RetryInfo parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.rpc.RetryInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static RetryInfo parseFrom( + + public static com.google.rpc.RetryInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static RetryInfo parseFrom(byte[] data) + + public static com.google.rpc.RetryInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static RetryInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.RetryInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static RetryInfo parseFrom(java.io.InputStream input) + + public static com.google.rpc.RetryInfo 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 RetryInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.RetryInfo parseFrom( + 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 RetryInfo parseDelimitedFrom(java.io.InputStream input) + + public static com.google.rpc.RetryInfo 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 RetryInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.rpc.RetryInfo parseDelimitedFrom( + 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 RetryInfo parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.rpc.RetryInfo 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 RetryInfo parseFrom( + + public static com.google.rpc.RetryInfo 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(RetryInfo prototype) { + + public static Builder newBuilder(com.google.rpc.RetryInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Describes when the clients can retry a failed request. Clients could ignore
    * the recommendation here or retry when this information is missing from error
@@ -305,27 +342,27 @@ protected Builder newBuilderForType(
    * receiving the error response before retrying.  If retrying requests also
    * fail, clients should use an exponential backoff scheme to gradually increase
    * the delay between retries based on `retry_delay`, until either a maximum
-   * number of retires have been reached or a maximum retry delay cap has been
+   * number of retries have been reached or a maximum retry delay cap has been
    * reached.
    * 
* * Protobuf type {@code google.rpc.RetryInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.rpc.RetryInfo) com.google.rpc.RetryInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_RetryInfo_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_RetryInfo_fieldAccessorTable + return com.google.rpc.ErrorDetailsProto + .internal_static_google_rpc_RetryInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - RetryInfo.class, Builder.class); + com.google.rpc.RetryInfo.class, com.google.rpc.RetryInfo.Builder.class); } // Construct using com.google.rpc.RetryInfo.newBuilder() @@ -333,17 +370,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @Override + + @java.lang.Override public Builder clear() { super.clear(); if (retryDelayBuilder_ == null) { @@ -355,29 +391,28 @@ public Builder clear() { return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_RetryInfo_descriptor; } - @Override - public RetryInfo getDefaultInstanceForType() { - return RetryInfo.getDefaultInstance(); + @java.lang.Override + public com.google.rpc.RetryInfo getDefaultInstanceForType() { + return com.google.rpc.RetryInfo.getDefaultInstance(); } - @Override - public RetryInfo build() { - RetryInfo result = buildPartial(); + @java.lang.Override + public com.google.rpc.RetryInfo build() { + com.google.rpc.RetryInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public RetryInfo buildPartial() { - RetryInfo result = new RetryInfo(this); + @java.lang.Override + public com.google.rpc.RetryInfo buildPartial() { + com.google.rpc.RetryInfo result = new com.google.rpc.RetryInfo(this); if (retryDelayBuilder_ == null) { result.retryDelay_ = retryDelay_; } else { @@ -387,50 +422,51 @@ public RetryInfo buildPartial() { return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof RetryInfo) { - return mergeFrom((RetryInfo)other); + if (other instanceof com.google.rpc.RetryInfo) { + return mergeFrom((com.google.rpc.RetryInfo) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(RetryInfo other) { - if (other == RetryInfo.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.rpc.RetryInfo other) { + if (other == com.google.rpc.RetryInfo.getDefaultInstance()) return this; if (other.hasRetryDelay()) { mergeRetryDelay(other.getRetryDelay()); } @@ -439,21 +475,21 @@ public Builder mergeFrom(RetryInfo other) { return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - RetryInfo parsedMessage = null; + com.google.rpc.RetryInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (RetryInfo) e.getUnfinishedMessage(); + parsedMessage = (com.google.rpc.RetryInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -465,32 +501,47 @@ public Builder mergeFrom( private com.google.protobuf.Duration retryDelay_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> retryDelayBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + retryDelayBuilder_; /** + * + * *
      * Clients should wait at least this long between retrying the same request.
      * 
* * .google.protobuf.Duration retry_delay = 1; + * + * @return Whether the retryDelay field is set. */ public boolean hasRetryDelay() { return retryDelayBuilder_ != null || retryDelay_ != null; } /** + * + * *
      * Clients should wait at least this long between retrying the same request.
      * 
* * .google.protobuf.Duration retry_delay = 1; + * + * @return The retryDelay. */ public com.google.protobuf.Duration getRetryDelay() { if (retryDelayBuilder_ == null) { - return retryDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retryDelay_; + return retryDelay_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : retryDelay_; } else { return retryDelayBuilder_.getMessage(); } } /** + * + * *
      * Clients should wait at least this long between retrying the same request.
      * 
@@ -511,14 +562,15 @@ public Builder setRetryDelay(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Clients should wait at least this long between retrying the same request.
      * 
* * .google.protobuf.Duration retry_delay = 1; */ - public Builder setRetryDelay( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setRetryDelay(com.google.protobuf.Duration.Builder builderForValue) { if (retryDelayBuilder_ == null) { retryDelay_ = builderForValue.build(); onChanged(); @@ -529,6 +581,8 @@ public Builder setRetryDelay( return this; } /** + * + * *
      * Clients should wait at least this long between retrying the same request.
      * 
@@ -539,7 +593,7 @@ public Builder mergeRetryDelay(com.google.protobuf.Duration value) { if (retryDelayBuilder_ == null) { if (retryDelay_ != null) { retryDelay_ = - com.google.protobuf.Duration.newBuilder(retryDelay_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(retryDelay_).mergeFrom(value).buildPartial(); } else { retryDelay_ = value; } @@ -551,6 +605,8 @@ public Builder mergeRetryDelay(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Clients should wait at least this long between retrying the same request.
      * 
@@ -569,6 +625,8 @@ public Builder clearRetryDelay() { return this; } /** + * + * *
      * Clients should wait at least this long between retrying the same request.
      * 
@@ -576,11 +634,13 @@ public Builder clearRetryDelay() { * .google.protobuf.Duration retry_delay = 1; */ public com.google.protobuf.Duration.Builder getRetryDelayBuilder() { - + onChanged(); return getRetryDelayFieldBuilder().getBuilder(); } /** + * + * *
      * Clients should wait at least this long between retrying the same request.
      * 
@@ -591,11 +651,14 @@ public com.google.protobuf.DurationOrBuilder getRetryDelayOrBuilder() { if (retryDelayBuilder_ != null) { return retryDelayBuilder_.getMessageOrBuilder(); } else { - return retryDelay_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : retryDelay_; + return retryDelay_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : retryDelay_; } } /** + * + * *
      * Clients should wait at least this long between retrying the same request.
      * 
@@ -603,68 +666,69 @@ public com.google.protobuf.DurationOrBuilder getRetryDelayOrBuilder() { * .google.protobuf.Duration retry_delay = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getRetryDelayFieldBuilder() { if (retryDelayBuilder_ == null) { - retryDelayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getRetryDelay(), - getParentForChildren(), - isClean()); + retryDelayBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getRetryDelay(), getParentForChildren(), isClean()); retryDelay_ = null; } return retryDelayBuilder_; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.rpc.RetryInfo) } // @@protoc_insertion_point(class_scope:google.rpc.RetryInfo) - private static final RetryInfo DEFAULT_INSTANCE; + private static final com.google.rpc.RetryInfo DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new RetryInfo(); + DEFAULT_INSTANCE = new com.google.rpc.RetryInfo(); } - public static RetryInfo getDefaultInstance() { + public static com.google.rpc.RetryInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public RetryInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RetryInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetryInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RetryInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public RetryInfo getDefaultInstanceForType() { + @java.lang.Override + public com.google.rpc.RetryInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/RetryInfoOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/rpc/RetryInfoOrBuilder.java index e9a20772..08eddc2a 100644 --- a/proto-google-common-protos/src/main/java/com/google/rpc/RetryInfoOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/rpc/RetryInfoOrBuilder.java @@ -1,29 +1,55 @@ +/* + * 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/rpc/error_details.proto package com.google.rpc; -public interface RetryInfoOrBuilder extends +public interface RetryInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.rpc.RetryInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Clients should wait at least this long between retrying the same request.
    * 
* * .google.protobuf.Duration retry_delay = 1; + * + * @return Whether the retryDelay field is set. */ boolean hasRetryDelay(); /** + * + * *
    * Clients should wait at least this long between retrying the same request.
    * 
* * .google.protobuf.Duration retry_delay = 1; + * + * @return The retryDelay. */ com.google.protobuf.Duration getRetryDelay(); /** + * + * *
    * Clients should wait at least this long between retrying the same request.
    * 
diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/Status.java b/proto-google-common-protos/src/main/java/com/google/rpc/Status.java index 7b72675a..022bd64c 100644 --- a/proto-google-common-protos/src/main/java/com/google/rpc/Status.java +++ b/proto-google-common-protos/src/main/java/com/google/rpc/Status.java @@ -1,80 +1,70 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/status.proto package com.google.rpc; /** + * + * *
  * The `Status` type defines a logical error model that is suitable for
  * different programming environments, including REST APIs and RPC APIs. It is
- * used by [gRPC](https://github.com/grpc). The error model is designed to be:
- * - Simple to use and understand for most users
- * - Flexible enough to meet unexpected needs
- * # Overview
- * The `Status` message contains three pieces of data: error code, error
- * message, and error details. The error code should be an enum value of
- * [google.rpc.Code][google.rpc.Code], but it may accept additional error codes
- * if needed.  The error message should be a developer-facing English message
- * that helps developers *understand* and *resolve* the error. If a localized
- * user-facing error message is needed, put the localized message in the error
- * details or localize it in the client. The optional error details may contain
- * arbitrary information about the error. There is a predefined set of error
- * detail types in the package `google.rpc` that can be used for common error
- * conditions.
- * # Language mapping
- * The `Status` message is the logical representation of the error model, but it
- * is not necessarily the actual wire format. When the `Status` message is
- * exposed in different client libraries and different wire protocols, it can be
- * mapped differently. For example, it will likely be mapped to some exceptions
- * in Java, but more likely mapped to some error codes in C.
- * # Other uses
- * The error model and the `Status` message can be used in a variety of
- * environments, either with or without APIs, to provide a
- * consistent developer experience across different environments.
- * Example uses of this error model include:
- * - Partial errors. If a service needs to return partial errors to the client,
- *     it may embed the `Status` in the normal response to indicate the partial
- *     errors.
- * - Workflow errors. A typical workflow has multiple steps. Each step may
- *     have a `Status` message for error reporting.
- * - Batch operations. If a client uses batch request and batch response, the
- *     `Status` message should be used directly inside batch response, one for
- *     each error sub-response.
- * - Asynchronous operations. If an API call embeds asynchronous operation
- *     results in its response, the status of those operations should be
- *     represented directly using the `Status` message.
- * - Logging. If some API errors are stored in logs, the message `Status` could
- *     be used directly after any stripping needed for security/privacy reasons.
+ * used by [gRPC](https://github.com/grpc). Each `Status` message contains
+ * three pieces of data: error code, error message, and error details.
+ * You can find out more about this error model and how to work with it in the
+ * [API Design Guide](https://cloud.google.com/apis/design/errors).
  * 
* * Protobuf type {@code google.rpc.Status} */ -public final class Status extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Status extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.rpc.Status) StatusOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Status.newBuilder() to construct. private Status(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Status() { message_ = ""; details_ = java.util.Collections.emptyList(); } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Status(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Status( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = @@ -87,117 +77,122 @@ private Status( case 0: done = true; break; - case 8: { - - code_ = input.readInt32(); - break; - } - case 18: { - String s = input.readStringRequireUtf8(); + case 8: + { + code_ = input.readInt32(); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - message_ = s; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - details_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + message_ = s; + break; } - details_.add( - input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + details_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + details_.add(input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { details_ = java.util.Collections.unmodifiableList(details_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.rpc.StatusProto.internal_static_google_rpc_Status_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.rpc.StatusProto.internal_static_google_rpc_Status_fieldAccessorTable .ensureFieldAccessorsInitialized( - Status.class, Builder.class); + com.google.rpc.Status.class, com.google.rpc.Status.Builder.class); } - private int bitField0_; public static final int CODE_FIELD_NUMBER = 1; private int code_; /** + * + * *
-   * The status code, which should be an enum value of
-   * [google.rpc.Code][google.rpc.Code].
+   * The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
    * 
* * int32 code = 1; + * + * @return The code. */ public int getCode() { return code_; } public static final int MESSAGE_FIELD_NUMBER = 2; - private volatile Object message_; + private volatile java.lang.Object message_; /** + * + * *
    * A developer-facing error message, which should be in English. Any
    * user-facing error message should be localized and sent in the
-   * [google.rpc.Status.details][google.rpc.Status.details] field, or localized
-   * by the client.
+   * [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
    * 
* * string message = 2; + * + * @return The message. */ - public String getMessage() { - Object ref = message_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** + * + * *
    * A developer-facing error message, which should be in English. Any
    * user-facing error message should be localized and sent in the
-   * [google.rpc.Status.details][google.rpc.Status.details] field, or localized
-   * by the client.
+   * [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
    * 
* * string message = 2; + * + * @return The bytes for message. */ - public com.google.protobuf.ByteString - getMessageBytes() { - Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -208,6 +203,8 @@ public String getMessage() { public static final int DETAILS_FIELD_NUMBER = 3; private java.util.List details_; /** + * + * *
    * A list of messages that carry the error details.  There is a common set of
    * message types for APIs to use.
@@ -219,6 +216,8 @@ public java.util.List getDetailsList() {
     return details_;
   }
   /**
+   *
+   *
    * 
    * A list of messages that carry the error details.  There is a common set of
    * message types for APIs to use.
@@ -226,11 +225,12 @@ public java.util.List getDetailsList() {
    *
    * repeated .google.protobuf.Any details = 3;
    */
-  public java.util.List 
-      getDetailsOrBuilderList() {
+  public java.util.List getDetailsOrBuilderList() {
     return details_;
   }
   /**
+   *
+   *
    * 
    * A list of messages that carry the error details.  There is a common set of
    * message types for APIs to use.
@@ -242,6 +242,8 @@ public int getDetailsCount() {
     return details_.size();
   }
   /**
+   *
+   *
    * 
    * A list of messages that carry the error details.  There is a common set of
    * message types for APIs to use.
@@ -253,6 +255,8 @@ public com.google.protobuf.Any getDetails(int index) {
     return details_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of messages that carry the error details.  There is a common set of
    * message types for APIs to use.
@@ -260,13 +264,13 @@ public com.google.protobuf.Any getDetails(int index) {
    *
    * repeated .google.protobuf.Any details = 3;
    */
-  public com.google.protobuf.AnyOrBuilder getDetailsOrBuilder(
-      int index) {
+  public com.google.protobuf.AnyOrBuilder getDetailsOrBuilder(int index) {
     return details_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-  @Override
+
+  @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
     if (isInitialized == 1) return true;
@@ -276,9 +280,8 @@ public final boolean isInitialized() {
     return true;
   }
 
-  @Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  @java.lang.Override
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (code_ != 0) {
       output.writeInt32(1, code_);
     }
@@ -291,49 +294,44 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     unknownFields.writeTo(output);
   }
 
-  @Override
+  @java.lang.Override
   public int getSerializedSize() {
     int size = memoizedSize;
     if (size != -1) return size;
 
     size = 0;
     if (code_ != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt32Size(1, code_);
+      size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, code_);
     }
     if (!getMessageBytes().isEmpty()) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_);
     }
     for (int i = 0; i < details_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, details_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, details_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
     return size;
   }
 
-  @Override
-  public boolean equals(final Object obj) {
+  @java.lang.Override
+  public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
-    if (!(obj instanceof Status)) {
+    if (!(obj instanceof com.google.rpc.Status)) {
       return super.equals(obj);
     }
-    Status other = (Status) obj;
+    com.google.rpc.Status other = (com.google.rpc.Status) obj;
 
-    if (getCode()
-        != other.getCode()) return false;
-    if (!getMessage()
-        .equals(other.getMessage())) return false;
-    if (!getDetailsList()
-        .equals(other.getDetailsList())) return false;
+    if (getCode() != other.getCode()) return false;
+    if (!getMessage().equals(other.getMessage())) return false;
+    if (!getDetailsList().equals(other.getDetailsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
 
-  @Override
+  @java.lang.Override
   public int hashCode() {
     if (memoizedHashCode != 0) {
       return memoizedHashCode;
@@ -353,157 +351,128 @@ public int hashCode() {
     return hash;
   }
 
-  public static Status parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.rpc.Status parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Status parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.rpc.Status parseFrom(
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Status parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.rpc.Status parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Status parseFrom(
+
+  public static com.google.rpc.Status parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Status parseFrom(byte[] data)
+
+  public static com.google.rpc.Status parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Status parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.rpc.Status parseFrom(
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Status parseFrom(java.io.InputStream input)
+
+  public static com.google.rpc.Status 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 Status parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.rpc.Status parseFrom(
+      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 Status parseDelimitedFrom(java.io.InputStream input)
+
+  public static com.google.rpc.Status 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 Status parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.rpc.Status parseDelimitedFrom(
+      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 Status parseFrom(
-      com.google.protobuf.CodedInputStream input)
+
+  public static com.google.rpc.Status 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 Status parseFrom(
+
+  public static com.google.rpc.Status 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();
   }
 
-  @Override
-  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(Status prototype) {
+
+  public static Builder newBuilder(com.google.rpc.Status prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-  @Override
+
+  @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);
   }
 
-  @Override
-  protected Builder newBuilderForType(
-      BuilderParent parent) {
+  @java.lang.Override
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The `Status` type defines a logical error model that is suitable for
    * different programming environments, including REST APIs and RPC APIs. It is
-   * used by [gRPC](https://github.com/grpc). The error model is designed to be:
-   * - Simple to use and understand for most users
-   * - Flexible enough to meet unexpected needs
-   * # Overview
-   * The `Status` message contains three pieces of data: error code, error
-   * message, and error details. The error code should be an enum value of
-   * [google.rpc.Code][google.rpc.Code], but it may accept additional error codes
-   * if needed.  The error message should be a developer-facing English message
-   * that helps developers *understand* and *resolve* the error. If a localized
-   * user-facing error message is needed, put the localized message in the error
-   * details or localize it in the client. The optional error details may contain
-   * arbitrary information about the error. There is a predefined set of error
-   * detail types in the package `google.rpc` that can be used for common error
-   * conditions.
-   * # Language mapping
-   * The `Status` message is the logical representation of the error model, but it
-   * is not necessarily the actual wire format. When the `Status` message is
-   * exposed in different client libraries and different wire protocols, it can be
-   * mapped differently. For example, it will likely be mapped to some exceptions
-   * in Java, but more likely mapped to some error codes in C.
-   * # Other uses
-   * The error model and the `Status` message can be used in a variety of
-   * environments, either with or without APIs, to provide a
-   * consistent developer experience across different environments.
-   * Example uses of this error model include:
-   * - Partial errors. If a service needs to return partial errors to the client,
-   *     it may embed the `Status` in the normal response to indicate the partial
-   *     errors.
-   * - Workflow errors. A typical workflow has multiple steps. Each step may
-   *     have a `Status` message for error reporting.
-   * - Batch operations. If a client uses batch request and batch response, the
-   *     `Status` message should be used directly inside batch response, one for
-   *     each error sub-response.
-   * - Asynchronous operations. If an API call embeds asynchronous operation
-   *     results in its response, the status of those operations should be
-   *     represented directly using the `Status` message.
-   * - Logging. If some API errors are stored in logs, the message `Status` could
-   *     be used directly after any stripping needed for security/privacy reasons.
+   * used by [gRPC](https://github.com/grpc). Each `Status` message contains
+   * three pieces of data: error code, error message, and error details.
+   * You can find out more about this error model and how to work with it in the
+   * [API Design Guide](https://cloud.google.com/apis/design/errors).
    * 
* * Protobuf type {@code google.rpc.Status} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.rpc.Status) com.google.rpc.StatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.rpc.StatusProto.internal_static_google_rpc_Status_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.rpc.StatusProto.internal_static_google_rpc_Status_fieldAccessorTable .ensureFieldAccessorsInitialized( - Status.class, Builder.class); + com.google.rpc.Status.class, com.google.rpc.Status.Builder.class); } // Construct using com.google.rpc.Status.newBuilder() @@ -511,18 +480,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDetailsFieldBuilder(); } } - @Override + + @java.lang.Override public Builder clear() { super.clear(); code_ = 0; @@ -531,98 +500,96 @@ public Builder clear() { if (detailsBuilder_ == null) { details_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { detailsBuilder_.clear(); } return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.rpc.StatusProto.internal_static_google_rpc_Status_descriptor; } - @Override - public Status getDefaultInstanceForType() { - return Status.getDefaultInstance(); + @java.lang.Override + public com.google.rpc.Status getDefaultInstanceForType() { + return com.google.rpc.Status.getDefaultInstance(); } - @Override - public Status build() { - Status result = buildPartial(); + @java.lang.Override + public com.google.rpc.Status build() { + com.google.rpc.Status result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public Status buildPartial() { - Status result = new Status(this); + @java.lang.Override + public com.google.rpc.Status buildPartial() { + com.google.rpc.Status result = new com.google.rpc.Status(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.code_ = code_; result.message_ = message_; if (detailsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { details_ = java.util.Collections.unmodifiableList(details_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } result.details_ = details_; } else { result.details_ = detailsBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof Status) { - return mergeFrom((Status)other); + if (other instanceof com.google.rpc.Status) { + return mergeFrom((com.google.rpc.Status) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(Status other) { - if (other == Status.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.rpc.Status other) { + if (other == com.google.rpc.Status.getDefaultInstance()) return this; if (other.getCode() != 0) { setCode(other.getCode()); } @@ -634,7 +601,7 @@ public Builder mergeFrom(Status other) { if (!other.details_.isEmpty()) { if (details_.isEmpty()) { details_ = other.details_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDetailsIsMutable(); details_.addAll(other.details_); @@ -647,10 +614,11 @@ public Builder mergeFrom(Status other) { detailsBuilder_.dispose(); detailsBuilder_ = null; details_ = other.details_; - bitField0_ = (bitField0_ & ~0x00000004); - detailsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDetailsFieldBuilder() : null; + bitField0_ = (bitField0_ & ~0x00000001); + detailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDetailsFieldBuilder() + : null; } else { detailsBuilder_.addAllMessages(other.details_); } @@ -661,21 +629,21 @@ public Builder mergeFrom(Status other) { return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Status parsedMessage = null; + com.google.rpc.Status parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Status) e.getUnfinishedMessage(); + parsedMessage = (com.google.rpc.Status) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -684,89 +652,103 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private int code_ ; + private int code_; /** + * + * *
-     * The status code, which should be an enum value of
-     * [google.rpc.Code][google.rpc.Code].
+     * The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
      * 
* * int32 code = 1; + * + * @return The code. */ public int getCode() { return code_; } /** + * + * *
-     * The status code, which should be an enum value of
-     * [google.rpc.Code][google.rpc.Code].
+     * The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
      * 
* * int32 code = 1; + * + * @param value The code to set. + * @return This builder for chaining. */ public Builder setCode(int value) { - + code_ = value; onChanged(); return this; } /** + * + * *
-     * The status code, which should be an enum value of
-     * [google.rpc.Code][google.rpc.Code].
+     * The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
      * 
* * int32 code = 1; + * + * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; } - private Object message_ = ""; + private java.lang.Object message_ = ""; /** + * + * *
      * A developer-facing error message, which should be in English. Any
      * user-facing error message should be localized and sent in the
-     * [google.rpc.Status.details][google.rpc.Status.details] field, or localized
-     * by the client.
+     * [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
      * 
* * string message = 2; + * + * @return The message. */ - public String getMessage() { - Object ref = message_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * A developer-facing error message, which should be in English. Any
      * user-facing error message should be localized and sent in the
-     * [google.rpc.Status.details][google.rpc.Status.details] field, or localized
-     * by the client.
+     * [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
      * 
* * string message = 2; + * + * @return The bytes for message. */ - public com.google.protobuf.ByteString - getMessageBytes() { - Object ref = message_; + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -774,76 +756,90 @@ public String getMessage() { } } /** + * + * *
      * A developer-facing error message, which should be in English. Any
      * user-facing error message should be localized and sent in the
-     * [google.rpc.Status.details][google.rpc.Status.details] field, or localized
-     * by the client.
+     * [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
      * 
* * string message = 2; + * + * @param value The message to set. + * @return This builder for chaining. */ - public Builder setMessage( - String value) { + public Builder setMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + message_ = value; onChanged(); return this; } /** + * + * *
      * A developer-facing error message, which should be in English. Any
      * user-facing error message should be localized and sent in the
-     * [google.rpc.Status.details][google.rpc.Status.details] field, or localized
-     * by the client.
+     * [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
      * 
* * string message = 2; + * + * @return This builder for chaining. */ public Builder clearMessage() { - + message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** + * + * *
      * A developer-facing error message, which should be in English. Any
      * user-facing error message should be localized and sent in the
-     * [google.rpc.Status.details][google.rpc.Status.details] field, or localized
-     * by the client.
+     * [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
      * 
* * string message = 2; + * + * @param value The bytes for message to set. + * @return This builder for chaining. */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; onChanged(); return this; } - private java.util.List details_ = - java.util.Collections.emptyList(); + private java.util.List details_ = java.util.Collections.emptyList(); + private void ensureDetailsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { details_ = new java.util.ArrayList(details_); - bitField0_ |= 0x00000004; - } + bitField0_ |= 0x00000001; + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> detailsBuilder_; + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder> + detailsBuilder_; /** + * + * *
      * A list of messages that carry the error details.  There is a common set of
      * message types for APIs to use.
@@ -859,6 +855,8 @@ public java.util.List getDetailsList() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of messages that carry the error details.  There is a common set of
      * message types for APIs to use.
@@ -874,6 +872,8 @@ public int getDetailsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of messages that carry the error details.  There is a common set of
      * message types for APIs to use.
@@ -889,6 +889,8 @@ public com.google.protobuf.Any getDetails(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of messages that carry the error details.  There is a common set of
      * message types for APIs to use.
@@ -896,8 +898,7 @@ public com.google.protobuf.Any getDetails(int index) {
      *
      * repeated .google.protobuf.Any details = 3;
      */
-    public Builder setDetails(
-        int index, com.google.protobuf.Any value) {
+    public Builder setDetails(int index, com.google.protobuf.Any value) {
       if (detailsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -911,6 +912,8 @@ public Builder setDetails(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of messages that carry the error details.  There is a common set of
      * message types for APIs to use.
@@ -918,8 +921,7 @@ public Builder setDetails(
      *
      * repeated .google.protobuf.Any details = 3;
      */
-    public Builder setDetails(
-        int index, com.google.protobuf.Any.Builder builderForValue) {
+    public Builder setDetails(int index, com.google.protobuf.Any.Builder builderForValue) {
       if (detailsBuilder_ == null) {
         ensureDetailsIsMutable();
         details_.set(index, builderForValue.build());
@@ -930,6 +932,8 @@ public Builder setDetails(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of messages that carry the error details.  There is a common set of
      * message types for APIs to use.
@@ -951,6 +955,8 @@ public Builder addDetails(com.google.protobuf.Any value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of messages that carry the error details.  There is a common set of
      * message types for APIs to use.
@@ -958,8 +964,7 @@ public Builder addDetails(com.google.protobuf.Any value) {
      *
      * repeated .google.protobuf.Any details = 3;
      */
-    public Builder addDetails(
-        int index, com.google.protobuf.Any value) {
+    public Builder addDetails(int index, com.google.protobuf.Any value) {
       if (detailsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -973,6 +978,8 @@ public Builder addDetails(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of messages that carry the error details.  There is a common set of
      * message types for APIs to use.
@@ -980,8 +987,7 @@ public Builder addDetails(
      *
      * repeated .google.protobuf.Any details = 3;
      */
-    public Builder addDetails(
-        com.google.protobuf.Any.Builder builderForValue) {
+    public Builder addDetails(com.google.protobuf.Any.Builder builderForValue) {
       if (detailsBuilder_ == null) {
         ensureDetailsIsMutable();
         details_.add(builderForValue.build());
@@ -992,6 +998,8 @@ public Builder addDetails(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of messages that carry the error details.  There is a common set of
      * message types for APIs to use.
@@ -999,8 +1007,7 @@ public Builder addDetails(
      *
      * repeated .google.protobuf.Any details = 3;
      */
-    public Builder addDetails(
-        int index, com.google.protobuf.Any.Builder builderForValue) {
+    public Builder addDetails(int index, com.google.protobuf.Any.Builder builderForValue) {
       if (detailsBuilder_ == null) {
         ensureDetailsIsMutable();
         details_.add(index, builderForValue.build());
@@ -1011,6 +1018,8 @@ public Builder addDetails(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of messages that carry the error details.  There is a common set of
      * message types for APIs to use.
@@ -1018,12 +1027,10 @@ public Builder addDetails(
      *
      * repeated .google.protobuf.Any details = 3;
      */
-    public Builder addAllDetails(
-        Iterable values) {
+    public Builder addAllDetails(java.lang.Iterable values) {
       if (detailsBuilder_ == null) {
         ensureDetailsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, details_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, details_);
         onChanged();
       } else {
         detailsBuilder_.addAllMessages(values);
@@ -1031,6 +1038,8 @@ public Builder addAllDetails(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of messages that carry the error details.  There is a common set of
      * message types for APIs to use.
@@ -1041,7 +1050,7 @@ public Builder addAllDetails(
     public Builder clearDetails() {
       if (detailsBuilder_ == null) {
         details_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000004);
+        bitField0_ = (bitField0_ & ~0x00000001);
         onChanged();
       } else {
         detailsBuilder_.clear();
@@ -1049,6 +1058,8 @@ public Builder clearDetails() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of messages that carry the error details.  There is a common set of
      * message types for APIs to use.
@@ -1067,6 +1078,8 @@ public Builder removeDetails(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of messages that carry the error details.  There is a common set of
      * message types for APIs to use.
@@ -1074,11 +1087,12 @@ public Builder removeDetails(int index) {
      *
      * repeated .google.protobuf.Any details = 3;
      */
-    public com.google.protobuf.Any.Builder getDetailsBuilder(
-        int index) {
+    public com.google.protobuf.Any.Builder getDetailsBuilder(int index) {
       return getDetailsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of messages that carry the error details.  There is a common set of
      * message types for APIs to use.
@@ -1086,14 +1100,16 @@ public com.google.protobuf.Any.Builder getDetailsBuilder(
      *
      * repeated .google.protobuf.Any details = 3;
      */
-    public com.google.protobuf.AnyOrBuilder getDetailsOrBuilder(
-        int index) {
+    public com.google.protobuf.AnyOrBuilder getDetailsOrBuilder(int index) {
       if (detailsBuilder_ == null) {
-        return details_.get(index);  } else {
+        return details_.get(index);
+      } else {
         return detailsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of messages that carry the error details.  There is a common set of
      * message types for APIs to use.
@@ -1101,8 +1117,7 @@ public com.google.protobuf.AnyOrBuilder getDetailsOrBuilder(
      *
      * repeated .google.protobuf.Any details = 3;
      */
-    public java.util.List 
-         getDetailsOrBuilderList() {
+    public java.util.List getDetailsOrBuilderList() {
       if (detailsBuilder_ != null) {
         return detailsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1110,6 +1125,8 @@ public com.google.protobuf.AnyOrBuilder getDetailsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * A list of messages that carry the error details.  There is a common set of
      * message types for APIs to use.
@@ -1118,10 +1135,11 @@ public com.google.protobuf.AnyOrBuilder getDetailsOrBuilder(
      * repeated .google.protobuf.Any details = 3;
      */
     public com.google.protobuf.Any.Builder addDetailsBuilder() {
-      return getDetailsFieldBuilder().addBuilder(
-          com.google.protobuf.Any.getDefaultInstance());
+      return getDetailsFieldBuilder().addBuilder(com.google.protobuf.Any.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of messages that carry the error details.  There is a common set of
      * message types for APIs to use.
@@ -1129,12 +1147,13 @@ public com.google.protobuf.Any.Builder addDetailsBuilder() {
      *
      * repeated .google.protobuf.Any details = 3;
      */
-    public com.google.protobuf.Any.Builder addDetailsBuilder(
-        int index) {
-      return getDetailsFieldBuilder().addBuilder(
-          index, com.google.protobuf.Any.getDefaultInstance());
+    public com.google.protobuf.Any.Builder addDetailsBuilder(int index) {
+      return getDetailsFieldBuilder()
+          .addBuilder(index, com.google.protobuf.Any.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of messages that carry the error details.  There is a common set of
      * message types for APIs to use.
@@ -1142,74 +1161,74 @@ public com.google.protobuf.Any.Builder addDetailsBuilder(
      *
      * repeated .google.protobuf.Any details = 3;
      */
-    public java.util.List 
-         getDetailsBuilderList() {
+    public java.util.List getDetailsBuilderList() {
       return getDetailsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> 
+            com.google.protobuf.Any,
+            com.google.protobuf.Any.Builder,
+            com.google.protobuf.AnyOrBuilder>
         getDetailsFieldBuilder() {
       if (detailsBuilder_ == null) {
-        detailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
-                details_,
-                ((bitField0_ & 0x00000004) != 0),
-                getParentForChildren(),
-                isClean());
+        detailsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.protobuf.Any,
+                com.google.protobuf.Any.Builder,
+                com.google.protobuf.AnyOrBuilder>(
+                details_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         details_ = null;
       }
       return detailsBuilder_;
     }
-    @Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+
+    @java.lang.Override
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
-    @Override
+    @java.lang.Override
     public final Builder mergeUnknownFields(
         final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.rpc.Status)
   }
 
   // @@protoc_insertion_point(class_scope:google.rpc.Status)
-  private static final Status DEFAULT_INSTANCE;
+  private static final com.google.rpc.Status DEFAULT_INSTANCE;
+
   static {
-    DEFAULT_INSTANCE = new Status();
+    DEFAULT_INSTANCE = new com.google.rpc.Status();
   }
 
-  public static Status getDefaultInstance() {
+  public static com.google.rpc.Status getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @Override
-    public Status parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Status(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Status parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Status(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
   }
 
-  @Override
+  @java.lang.Override
   public com.google.protobuf.Parser getParserForType() {
     return PARSER;
   }
 
-  @Override
-  public Status getDefaultInstanceForType() {
+  @java.lang.Override
+  public com.google.rpc.Status getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/StatusOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/rpc/StatusOrBuilder.java
index ca86146d..c4b026ed 100644
--- a/proto-google-common-protos/src/main/java/com/google/rpc/StatusOrBuilder.java
+++ b/proto-google-common-protos/src/main/java/com/google/rpc/StatusOrBuilder.java
@@ -1,47 +1,73 @@
+/*
+ * 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/rpc/status.proto
 
 package com.google.rpc;
 
-public interface StatusOrBuilder extends
+public interface StatusOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.rpc.Status)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
-   * The status code, which should be an enum value of
-   * [google.rpc.Code][google.rpc.Code].
+   * The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
    * 
* * int32 code = 1; + * + * @return The code. */ int getCode(); /** + * + * *
    * A developer-facing error message, which should be in English. Any
    * user-facing error message should be localized and sent in the
-   * [google.rpc.Status.details][google.rpc.Status.details] field, or localized
-   * by the client.
+   * [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
    * 
* * string message = 2; + * + * @return The message. */ - String getMessage(); + java.lang.String getMessage(); /** + * + * *
    * A developer-facing error message, which should be in English. Any
    * user-facing error message should be localized and sent in the
-   * [google.rpc.Status.details][google.rpc.Status.details] field, or localized
-   * by the client.
+   * [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
    * 
* * string message = 2; + * + * @return The bytes for message. */ - com.google.protobuf.ByteString - getMessageBytes(); + com.google.protobuf.ByteString getMessageBytes(); /** + * + * *
    * A list of messages that carry the error details.  There is a common set of
    * message types for APIs to use.
@@ -49,9 +75,10 @@ public interface StatusOrBuilder extends
    *
    * repeated .google.protobuf.Any details = 3;
    */
-  java.util.List 
-      getDetailsList();
+  java.util.List getDetailsList();
   /**
+   *
+   *
    * 
    * A list of messages that carry the error details.  There is a common set of
    * message types for APIs to use.
@@ -61,6 +88,8 @@ public interface StatusOrBuilder extends
    */
   com.google.protobuf.Any getDetails(int index);
   /**
+   *
+   *
    * 
    * A list of messages that carry the error details.  There is a common set of
    * message types for APIs to use.
@@ -70,6 +99,8 @@ public interface StatusOrBuilder extends
    */
   int getDetailsCount();
   /**
+   *
+   *
    * 
    * A list of messages that carry the error details.  There is a common set of
    * message types for APIs to use.
@@ -77,9 +108,10 @@ public interface StatusOrBuilder extends
    *
    * repeated .google.protobuf.Any details = 3;
    */
-  java.util.List 
-      getDetailsOrBuilderList();
+  java.util.List getDetailsOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of messages that carry the error details.  There is a common set of
    * message types for APIs to use.
@@ -87,6 +119,5 @@ public interface StatusOrBuilder extends
    *
    * repeated .google.protobuf.Any details = 3;
    */
-  com.google.protobuf.AnyOrBuilder getDetailsOrBuilder(
-      int index);
+  com.google.protobuf.AnyOrBuilder getDetailsOrBuilder(int index);
 }
diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/StatusProto.java b/proto-google-common-protos/src/main/java/com/google/rpc/StatusProto.java
index 61652f50..19260c06 100644
--- a/proto-google-common-protos/src/main/java/com/google/rpc/StatusProto.java
+++ b/proto-google-common-protos/src/main/java/com/google/rpc/StatusProto.java
@@ -1,3 +1,18 @@
+/*
+ * 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/rpc/status.proto
 
@@ -5,56 +20,47 @@
 
 public final class StatusProto {
   private StatusProto() {}
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistryLite registry) {
-  }
 
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions(
-        (com.google.protobuf.ExtensionRegistryLite) registry);
+  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_rpc_Status_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_rpc_Status_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_rpc_Status_fieldAccessorTable;
 
-  public static com.google.protobuf.Descriptors.FileDescriptor
-      getDescriptor() {
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     return descriptor;
   }
-  private static  com.google.protobuf.Descriptors.FileDescriptor
-      descriptor;
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
   static {
-    String[] descriptorData = {
-      "\n\027google/rpc/status.proto\022\ngoogle.rpc\032\031g" +
-      "oogle/protobuf/any.proto\"N\n\006Status\022\014\n\004co" +
-      "de\030\001 \001(\005\022\017\n\007message\030\002 \001(\t\022%\n\007details\030\003 \003" +
-      "(\0132\024.google.protobuf.AnyB^\n\016com.google.r" +
-      "pcB\013StatusProtoP\001Z7google.golang.org/gen" +
-      "proto/googleapis/rpc/status;status\242\002\003RPC" +
-      "b\006proto3"
+    java.lang.String[] descriptorData = {
+      "\n\027google/rpc/status.proto\022\ngoogle.rpc\032\031g"
+          + "oogle/protobuf/any.proto\"N\n\006Status\022\014\n\004co"
+          + "de\030\001 \001(\005\022\017\n\007message\030\002 \001(\t\022%\n\007details\030\003 \003"
+          + "(\0132\024.google.protobuf.AnyBa\n\016com.google.r"
+          + "pcB\013StatusProtoP\001Z7google.golang.org/gen"
+          + "proto/googleapis/rpc/status;status\370\001\001\242\002\003"
+          + "RPCb\006proto3"
     };
-    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
-        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
-          public com.google.protobuf.ExtensionRegistry assignDescriptors(
-              com.google.protobuf.Descriptors.FileDescriptor root) {
-            descriptor = root;
-            return null;
-          }
-        };
-    com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-          com.google.protobuf.AnyProto.getDescriptor(),
-        }, assigner);
-    internal_static_google_rpc_Status_descriptor =
-      getDescriptor().getMessageTypes().get(0);
-    internal_static_google_rpc_Status_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_rpc_Status_descriptor,
-        new String[] { "Code", "Message", "Details", });
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.protobuf.AnyProto.getDescriptor(),
+            });
+    internal_static_google_rpc_Status_descriptor = getDescriptor().getMessageTypes().get(0);
+    internal_static_google_rpc_Status_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_rpc_Status_descriptor,
+            new java.lang.String[] {
+              "Code", "Message", "Details",
+            });
     com.google.protobuf.AnyProto.getDescriptor();
   }
 
diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContext.java b/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContext.java
new file mode 100644
index 00000000..8123950c
--- /dev/null
+++ b/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContext.java
@@ -0,0 +1,13904 @@
+/*
+ * 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/rpc/context/attribute_context.proto
+
+package com.google.rpc.context;
+
+/**
+ *
+ *
+ * 
+ * This message defines the standard attribute vocabulary for Google APIs.
+ * An attribute is a piece of metadata that describes an activity on a network
+ * service. For example, the size of an HTTP request, or the status code of
+ * an HTTP response.
+ * Each attribute has a type and a name, which is logically defined as
+ * a proto message field in `AttributeContext`. The field type becomes the
+ * attribute type, and the field path becomes the attribute name. For example,
+ * the attribute `source.ip` maps to field `AttributeContext.source.ip`.
+ * This message definition is guaranteed not to have any wire breaking change.
+ * So you can use it directly for passing attributes across different systems.
+ * NOTE: Different system may generate different subset of attributes. Please
+ * verify the system specification before relying on an attribute generated
+ * a system.
+ * 
+ * + * Protobuf type {@code google.rpc.context.AttributeContext} + */ +public final class AttributeContext extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.rpc.context.AttributeContext) + AttributeContextOrBuilder { + private static final long serialVersionUID = 0L; + // Use AttributeContext.newBuilder() to construct. + private AttributeContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AttributeContext() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AttributeContext(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AttributeContext( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.rpc.context.AttributeContext.Peer.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); + } + source_ = + input.readMessage( + com.google.rpc.context.AttributeContext.Peer.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.rpc.context.AttributeContext.Peer.Builder subBuilder = null; + if (destination_ != null) { + subBuilder = destination_.toBuilder(); + } + destination_ = + input.readMessage( + com.google.rpc.context.AttributeContext.Peer.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(destination_); + destination_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.rpc.context.AttributeContext.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = + input.readMessage( + com.google.rpc.context.AttributeContext.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.rpc.context.AttributeContext.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = + input.readMessage( + com.google.rpc.context.AttributeContext.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.rpc.context.AttributeContext.Resource.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); + } + resource_ = + input.readMessage( + com.google.rpc.context.AttributeContext.Resource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + com.google.rpc.context.AttributeContext.Api.Builder subBuilder = null; + if (api_ != null) { + subBuilder = api_.toBuilder(); + } + api_ = + input.readMessage( + com.google.rpc.context.AttributeContext.Api.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(api_); + api_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + com.google.rpc.context.AttributeContext.Peer.Builder subBuilder = null; + if (origin_ != null) { + subBuilder = origin_.toBuilder(); + } + origin_ = + input.readMessage( + com.google.rpc.context.AttributeContext.Peer.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(origin_); + origin_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.rpc.context.AttributeContext.class, + com.google.rpc.context.AttributeContext.Builder.class); + } + + public interface PeerOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.rpc.context.AttributeContext.Peer) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The IP address of the peer.
+     * 
+ * + * string ip = 1; + * + * @return The ip. + */ + java.lang.String getIp(); + /** + * + * + *
+     * The IP address of the peer.
+     * 
+ * + * string ip = 1; + * + * @return The bytes for ip. + */ + com.google.protobuf.ByteString getIpBytes(); + + /** + * + * + *
+     * The network port of the peer.
+     * 
+ * + * int64 port = 2; + * + * @return The port. + */ + long getPort(); + + /** + * + * + *
+     * The labels associated with the peer.
+     * 
+ * + * map<string, string> labels = 6; + */ + int getLabelsCount(); + /** + * + * + *
+     * The labels associated with the peer.
+     * 
+ * + * map<string, string> labels = 6; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+     * The labels associated with the peer.
+     * 
+ * + * map<string, string> labels = 6; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+     * The labels associated with the peer.
+     * 
+ * + * map<string, string> labels = 6; + */ + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+     * The labels associated with the peer.
+     * 
+ * + * map<string, string> labels = 6; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+     * The identity of this peer. Similar to `Request.auth.principal`, but
+     * relative to the peer instead of the request. For example, the
+     * idenity associated with a load balancer that forwared the request.
+     * 
+ * + * string principal = 7; + * + * @return The principal. + */ + java.lang.String getPrincipal(); + /** + * + * + *
+     * The identity of this peer. Similar to `Request.auth.principal`, but
+     * relative to the peer instead of the request. For example, the
+     * idenity associated with a load balancer that forwared the request.
+     * 
+ * + * string principal = 7; + * + * @return The bytes for principal. + */ + com.google.protobuf.ByteString getPrincipalBytes(); + + /** + * + * + *
+     * The CLDR country/region code associated with the above IP address.
+     * If the IP address is private, the `region_code` should reflect the
+     * physical location where this peer is running.
+     * 
+ * + * string region_code = 8; + * + * @return The regionCode. + */ + java.lang.String getRegionCode(); + /** + * + * + *
+     * The CLDR country/region code associated with the above IP address.
+     * If the IP address is private, the `region_code` should reflect the
+     * physical location where this peer is running.
+     * 
+ * + * string region_code = 8; + * + * @return The bytes for regionCode. + */ + com.google.protobuf.ByteString getRegionCodeBytes(); + } + /** + * + * + *
+   * This message defines attributes for a node that handles a network request.
+   * The node can be either a service or an application that sends, forwards,
+   * or receives the request. Service peers should fill in
+   * `principal` and `labels` as appropriate.
+   * 
+ * + * Protobuf type {@code google.rpc.context.AttributeContext.Peer} + */ + public static final class Peer extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.rpc.context.AttributeContext.Peer) + PeerOrBuilder { + private static final long serialVersionUID = 0L; + // Use Peer.newBuilder() to construct. + private Peer(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Peer() { + ip_ = ""; + principal_ = ""; + regionCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Peer(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Peer( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + ip_ = s; + break; + } + case 16: + { + port_ = input.readInt64(); + break; + } + case 50: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + principal_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + regionCode_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Peer_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 6: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Peer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.rpc.context.AttributeContext.Peer.class, + com.google.rpc.context.AttributeContext.Peer.Builder.class); + } + + public static final int IP_FIELD_NUMBER = 1; + private volatile java.lang.Object ip_; + /** + * + * + *
+     * The IP address of the peer.
+     * 
+ * + * string ip = 1; + * + * @return The ip. + */ + public java.lang.String getIp() { + java.lang.Object ref = ip_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ip_ = s; + return s; + } + } + /** + * + * + *
+     * The IP address of the peer.
+     * 
+ * + * string ip = 1; + * + * @return The bytes for ip. + */ + public com.google.protobuf.ByteString getIpBytes() { + java.lang.Object ref = ip_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ip_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PORT_FIELD_NUMBER = 2; + private long port_; + /** + * + * + *
+     * The network port of the peer.
+     * 
+ * + * int64 port = 2; + * + * @return The port. + */ + public long getPort() { + return port_; + } + + public static final int LABELS_FIELD_NUMBER = 6; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Peer_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * The labels associated with the peer.
+     * 
+ * + * map<string, string> labels = 6; + */ + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+     * The labels associated with the peer.
+     * 
+ * + * map<string, string> labels = 6; + */ + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * The labels associated with the peer.
+     * 
+ * + * map<string, string> labels = 6; + */ + public java.lang.String getLabelsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * The labels associated with the peer.
+     * 
+ * + * map<string, string> labels = 6; + */ + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int PRINCIPAL_FIELD_NUMBER = 7; + private volatile java.lang.Object principal_; + /** + * + * + *
+     * The identity of this peer. Similar to `Request.auth.principal`, but
+     * relative to the peer instead of the request. For example, the
+     * idenity associated with a load balancer that forwared the request.
+     * 
+ * + * string principal = 7; + * + * @return The principal. + */ + public java.lang.String getPrincipal() { + java.lang.Object ref = principal_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + principal_ = s; + return s; + } + } + /** + * + * + *
+     * The identity of this peer. Similar to `Request.auth.principal`, but
+     * relative to the peer instead of the request. For example, the
+     * idenity associated with a load balancer that forwared the request.
+     * 
+ * + * string principal = 7; + * + * @return The bytes for principal. + */ + public com.google.protobuf.ByteString getPrincipalBytes() { + java.lang.Object ref = principal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + principal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_CODE_FIELD_NUMBER = 8; + private volatile java.lang.Object regionCode_; + /** + * + * + *
+     * The CLDR country/region code associated with the above IP address.
+     * If the IP address is private, the `region_code` should reflect the
+     * physical location where this peer is running.
+     * 
+ * + * string region_code = 8; + * + * @return The regionCode. + */ + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionCode_ = s; + return s; + } + } + /** + * + * + *
+     * The CLDR country/region code associated with the above IP address.
+     * If the IP address is private, the `region_code` should reflect the
+     * physical location where this peer is running.
+     * 
+ * + * string region_code = 8; + * + * @return The bytes for regionCode. + */ + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getIpBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ip_); + } + if (port_ != 0L) { + output.writeInt64(2, port_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); + if (!getPrincipalBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, principal_); + } + if (!getRegionCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, regionCode_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIpBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ip_); + } + if (port_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, port_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); + } + if (!getPrincipalBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, principal_); + } + if (!getRegionCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, regionCode_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.rpc.context.AttributeContext.Peer)) { + return super.equals(obj); + } + com.google.rpc.context.AttributeContext.Peer other = + (com.google.rpc.context.AttributeContext.Peer) obj; + + if (!getIp().equals(other.getIp())) return false; + if (getPort() != other.getPort()) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getPrincipal().equals(other.getPrincipal())) return false; + if (!getRegionCode().equals(other.getRegionCode())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + IP_FIELD_NUMBER; + hash = (53 * hash) + getIp().hashCode(); + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPort()); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; + hash = (53 * hash) + getPrincipal().hashCode(); + hash = (37 * hash) + REGION_CODE_FIELD_NUMBER; + hash = (53 * hash) + getRegionCode().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.rpc.context.AttributeContext.Peer parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.rpc.context.AttributeContext.Peer parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext.Peer parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.rpc.context.AttributeContext.Peer 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.rpc.context.AttributeContext.Peer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.rpc.context.AttributeContext.Peer parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext.Peer parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.rpc.context.AttributeContext.Peer parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext.Peer parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.rpc.context.AttributeContext.Peer parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext.Peer parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.rpc.context.AttributeContext.Peer parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.rpc.context.AttributeContext.Peer prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * This message defines attributes for a node that handles a network request.
+     * The node can be either a service or an application that sends, forwards,
+     * or receives the request. Service peers should fill in
+     * `principal` and `labels` as appropriate.
+     * 
+ * + * Protobuf type {@code google.rpc.context.AttributeContext.Peer} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.rpc.context.AttributeContext.Peer) + com.google.rpc.context.AttributeContext.PeerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Peer_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 6: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 6: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Peer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.rpc.context.AttributeContext.Peer.class, + com.google.rpc.context.AttributeContext.Peer.Builder.class); + } + + // Construct using com.google.rpc.context.AttributeContext.Peer.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + ip_ = ""; + + port_ = 0L; + + internalGetMutableLabels().clear(); + principal_ = ""; + + regionCode_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Peer_descriptor; + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext.Peer getDefaultInstanceForType() { + return com.google.rpc.context.AttributeContext.Peer.getDefaultInstance(); + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext.Peer build() { + com.google.rpc.context.AttributeContext.Peer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext.Peer buildPartial() { + com.google.rpc.context.AttributeContext.Peer result = + new com.google.rpc.context.AttributeContext.Peer(this); + int from_bitField0_ = bitField0_; + result.ip_ = ip_; + result.port_ = port_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.principal_ = principal_; + result.regionCode_ = regionCode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + 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) { + return super.clearField(field); + } + + @java.lang.Override + 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) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + 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.rpc.context.AttributeContext.Peer) { + return mergeFrom((com.google.rpc.context.AttributeContext.Peer) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.rpc.context.AttributeContext.Peer other) { + if (other == com.google.rpc.context.AttributeContext.Peer.getDefaultInstance()) return this; + if (!other.getIp().isEmpty()) { + ip_ = other.ip_; + onChanged(); + } + if (other.getPort() != 0L) { + setPort(other.getPort()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + if (!other.getPrincipal().isEmpty()) { + principal_ = other.principal_; + onChanged(); + } + if (!other.getRegionCode().isEmpty()) { + regionCode_ = other.regionCode_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.rpc.context.AttributeContext.Peer parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.rpc.context.AttributeContext.Peer) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object ip_ = ""; + /** + * + * + *
+       * The IP address of the peer.
+       * 
+ * + * string ip = 1; + * + * @return The ip. + */ + public java.lang.String getIp() { + java.lang.Object ref = ip_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ip_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The IP address of the peer.
+       * 
+ * + * string ip = 1; + * + * @return The bytes for ip. + */ + public com.google.protobuf.ByteString getIpBytes() { + java.lang.Object ref = ip_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ip_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The IP address of the peer.
+       * 
+ * + * string ip = 1; + * + * @param value The ip to set. + * @return This builder for chaining. + */ + public Builder setIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ip_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The IP address of the peer.
+       * 
+ * + * string ip = 1; + * + * @return This builder for chaining. + */ + public Builder clearIp() { + + ip_ = getDefaultInstance().getIp(); + onChanged(); + return this; + } + /** + * + * + *
+       * The IP address of the peer.
+       * 
+ * + * string ip = 1; + * + * @param value The bytes for ip to set. + * @return This builder for chaining. + */ + public Builder setIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ip_ = value; + onChanged(); + return this; + } + + private long port_; + /** + * + * + *
+       * The network port of the peer.
+       * 
+ * + * int64 port = 2; + * + * @return The port. + */ + public long getPort() { + return port_; + } + /** + * + * + *
+       * The network port of the peer.
+       * 
+ * + * int64 port = 2; + * + * @param value The port to set. + * @return This builder for chaining. + */ + public Builder setPort(long value) { + + port_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The network port of the peer.
+       * 
+ * + * int64 port = 2; + * + * @return This builder for chaining. + */ + public Builder clearPort() { + + port_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged(); + ; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+       * The labels associated with the peer.
+       * 
+ * + * map<string, string> labels = 6; + */ + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+       * The labels associated with the peer.
+       * 
+ * + * map<string, string> labels = 6; + */ + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+       * The labels associated with the peer.
+       * 
+ * + * map<string, string> labels = 6; + */ + public java.lang.String getLabelsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+       * The labels associated with the peer.
+       * 
+ * + * map<string, string> labels = 6; + */ + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+       * The labels associated with the peer.
+       * 
+ * + * map<string, string> labels = 6; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+       * The labels associated with the peer.
+       * 
+ * + * map<string, string> labels = 6; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+       * The labels associated with the peer.
+       * 
+ * + * map<string, string> labels = 6; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + return this; + } + + private java.lang.Object principal_ = ""; + /** + * + * + *
+       * The identity of this peer. Similar to `Request.auth.principal`, but
+       * relative to the peer instead of the request. For example, the
+       * idenity associated with a load balancer that forwared the request.
+       * 
+ * + * string principal = 7; + * + * @return The principal. + */ + public java.lang.String getPrincipal() { + java.lang.Object ref = principal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + principal_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The identity of this peer. Similar to `Request.auth.principal`, but
+       * relative to the peer instead of the request. For example, the
+       * idenity associated with a load balancer that forwared the request.
+       * 
+ * + * string principal = 7; + * + * @return The bytes for principal. + */ + public com.google.protobuf.ByteString getPrincipalBytes() { + java.lang.Object ref = principal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + principal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The identity of this peer. Similar to `Request.auth.principal`, but
+       * relative to the peer instead of the request. For example, the
+       * idenity associated with a load balancer that forwared the request.
+       * 
+ * + * string principal = 7; + * + * @param value The principal to set. + * @return This builder for chaining. + */ + public Builder setPrincipal(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + principal_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The identity of this peer. Similar to `Request.auth.principal`, but
+       * relative to the peer instead of the request. For example, the
+       * idenity associated with a load balancer that forwared the request.
+       * 
+ * + * string principal = 7; + * + * @return This builder for chaining. + */ + public Builder clearPrincipal() { + + principal_ = getDefaultInstance().getPrincipal(); + onChanged(); + return this; + } + /** + * + * + *
+       * The identity of this peer. Similar to `Request.auth.principal`, but
+       * relative to the peer instead of the request. For example, the
+       * idenity associated with a load balancer that forwared the request.
+       * 
+ * + * string principal = 7; + * + * @param value The bytes for principal to set. + * @return This builder for chaining. + */ + public Builder setPrincipalBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + principal_ = value; + onChanged(); + return this; + } + + private java.lang.Object regionCode_ = ""; + /** + * + * + *
+       * The CLDR country/region code associated with the above IP address.
+       * If the IP address is private, the `region_code` should reflect the
+       * physical location where this peer is running.
+       * 
+ * + * string region_code = 8; + * + * @return The regionCode. + */ + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The CLDR country/region code associated with the above IP address.
+       * If the IP address is private, the `region_code` should reflect the
+       * physical location where this peer is running.
+       * 
+ * + * string region_code = 8; + * + * @return The bytes for regionCode. + */ + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The CLDR country/region code associated with the above IP address.
+       * If the IP address is private, the `region_code` should reflect the
+       * physical location where this peer is running.
+       * 
+ * + * string region_code = 8; + * + * @param value The regionCode to set. + * @return This builder for chaining. + */ + public Builder setRegionCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + regionCode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The CLDR country/region code associated with the above IP address.
+       * If the IP address is private, the `region_code` should reflect the
+       * physical location where this peer is running.
+       * 
+ * + * string region_code = 8; + * + * @return This builder for chaining. + */ + public Builder clearRegionCode() { + + regionCode_ = getDefaultInstance().getRegionCode(); + onChanged(); + return this; + } + /** + * + * + *
+       * The CLDR country/region code associated with the above IP address.
+       * If the IP address is private, the `region_code` should reflect the
+       * physical location where this peer is running.
+       * 
+ * + * string region_code = 8; + * + * @param value The bytes for regionCode to set. + * @return This builder for chaining. + */ + public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + regionCode_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.rpc.context.AttributeContext.Peer) + } + + // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext.Peer) + private static final com.google.rpc.context.AttributeContext.Peer DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.rpc.context.AttributeContext.Peer(); + } + + public static com.google.rpc.context.AttributeContext.Peer getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Peer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Peer(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext.Peer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ApiOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.rpc.context.AttributeContext.Api) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The API service name. It is a logical identifier for a networked API,
+     * such as "pubsub.googleapis.com". The naming syntax depends on the
+     * API management system being used for handling the request.
+     * 
+ * + * string service = 1; + * + * @return The service. + */ + java.lang.String getService(); + /** + * + * + *
+     * The API service name. It is a logical identifier for a networked API,
+     * such as "pubsub.googleapis.com". The naming syntax depends on the
+     * API management system being used for handling the request.
+     * 
+ * + * string service = 1; + * + * @return The bytes for service. + */ + com.google.protobuf.ByteString getServiceBytes(); + + /** + * + * + *
+     * The API operation name. For gRPC requests, it is the fully qualified API
+     * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI
+     * requests, it is the `operationId`, such as "getPet".
+     * 
+ * + * string operation = 2; + * + * @return The operation. + */ + java.lang.String getOperation(); + /** + * + * + *
+     * The API operation name. For gRPC requests, it is the fully qualified API
+     * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI
+     * requests, it is the `operationId`, such as "getPet".
+     * 
+ * + * string operation = 2; + * + * @return The bytes for operation. + */ + com.google.protobuf.ByteString getOperationBytes(); + + /** + * + * + *
+     * The API protocol used for sending the request, such as "http", "https",
+     * "grpc", or "internal".
+     * 
+ * + * string protocol = 3; + * + * @return The protocol. + */ + java.lang.String getProtocol(); + /** + * + * + *
+     * The API protocol used for sending the request, such as "http", "https",
+     * "grpc", or "internal".
+     * 
+ * + * string protocol = 3; + * + * @return The bytes for protocol. + */ + com.google.protobuf.ByteString getProtocolBytes(); + + /** + * + * + *
+     * The API version associated with the API operation above, such as "v1" or
+     * "v1alpha1".
+     * 
+ * + * string version = 4; + * + * @return The version. + */ + java.lang.String getVersion(); + /** + * + * + *
+     * The API version associated with the API operation above, such as "v1" or
+     * "v1alpha1".
+     * 
+ * + * string version = 4; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + } + /** + * + * + *
+   * This message defines attributes associated with API operations, such as
+   * a network API request. The terminology is based on the conventions used
+   * by Google APIs, Istio, and OpenAPI.
+   * 
+ * + * Protobuf type {@code google.rpc.context.AttributeContext.Api} + */ + public static final class Api extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.rpc.context.AttributeContext.Api) + ApiOrBuilder { + private static final long serialVersionUID = 0L; + // Use Api.newBuilder() to construct. + private Api(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Api() { + service_ = ""; + operation_ = ""; + protocol_ = ""; + version_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Api(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Api( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + service_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + operation_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + protocol_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Api_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.rpc.context.AttributeContext.Api.class, + com.google.rpc.context.AttributeContext.Api.Builder.class); + } + + public static final int SERVICE_FIELD_NUMBER = 1; + private volatile java.lang.Object service_; + /** + * + * + *
+     * The API service name. It is a logical identifier for a networked API,
+     * such as "pubsub.googleapis.com". The naming syntax depends on the
+     * API management system being used for handling the request.
+     * 
+ * + * string service = 1; + * + * @return The service. + */ + public java.lang.String getService() { + java.lang.Object ref = service_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + service_ = s; + return s; + } + } + /** + * + * + *
+     * The API service name. It is a logical identifier for a networked API,
+     * such as "pubsub.googleapis.com". The naming syntax depends on the
+     * API management system being used for handling the request.
+     * 
+ * + * string service = 1; + * + * @return The bytes for service. + */ + public com.google.protobuf.ByteString getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + service_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_FIELD_NUMBER = 2; + private volatile java.lang.Object operation_; + /** + * + * + *
+     * The API operation name. For gRPC requests, it is the fully qualified API
+     * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI
+     * requests, it is the `operationId`, such as "getPet".
+     * 
+ * + * string operation = 2; + * + * @return The operation. + */ + public java.lang.String getOperation() { + java.lang.Object ref = operation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operation_ = s; + return s; + } + } + /** + * + * + *
+     * The API operation name. For gRPC requests, it is the fully qualified API
+     * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI
+     * requests, it is the `operationId`, such as "getPet".
+     * 
+ * + * string operation = 2; + * + * @return The bytes for operation. + */ + public com.google.protobuf.ByteString getOperationBytes() { + java.lang.Object ref = operation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROTOCOL_FIELD_NUMBER = 3; + private volatile java.lang.Object protocol_; + /** + * + * + *
+     * The API protocol used for sending the request, such as "http", "https",
+     * "grpc", or "internal".
+     * 
+ * + * string protocol = 3; + * + * @return The protocol. + */ + public java.lang.String getProtocol() { + java.lang.Object ref = protocol_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + protocol_ = s; + return s; + } + } + /** + * + * + *
+     * The API protocol used for sending the request, such as "http", "https",
+     * "grpc", or "internal".
+     * 
+ * + * string protocol = 3; + * + * @return The bytes for protocol. + */ + public com.google.protobuf.ByteString getProtocolBytes() { + java.lang.Object ref = protocol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + protocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 4; + private volatile java.lang.Object version_; + /** + * + * + *
+     * The API version associated with the API operation above, such as "v1" or
+     * "v1alpha1".
+     * 
+ * + * string version = 4; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + * + * + *
+     * The API version associated with the API operation above, such as "v1" or
+     * "v1alpha1".
+     * 
+ * + * string version = 4; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getServiceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); + } + if (!getOperationBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operation_); + } + if (!getProtocolBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, protocol_); + } + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, version_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getServiceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); + } + if (!getOperationBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, operation_); + } + if (!getProtocolBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, protocol_); + } + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, version_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.rpc.context.AttributeContext.Api)) { + return super.equals(obj); + } + com.google.rpc.context.AttributeContext.Api other = + (com.google.rpc.context.AttributeContext.Api) obj; + + if (!getService().equals(other.getService())) return false; + if (!getOperation().equals(other.getOperation())) return false; + if (!getProtocol().equals(other.getProtocol())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getService().hashCode(); + hash = (37 * hash) + OPERATION_FIELD_NUMBER; + hash = (53 * hash) + getOperation().hashCode(); + hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; + hash = (53 * hash) + getProtocol().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.rpc.context.AttributeContext.Api parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.rpc.context.AttributeContext.Api parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext.Api parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.rpc.context.AttributeContext.Api 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.rpc.context.AttributeContext.Api parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.rpc.context.AttributeContext.Api parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext.Api parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.rpc.context.AttributeContext.Api parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext.Api parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.rpc.context.AttributeContext.Api parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext.Api parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.rpc.context.AttributeContext.Api parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.rpc.context.AttributeContext.Api prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * This message defines attributes associated with API operations, such as
+     * a network API request. The terminology is based on the conventions used
+     * by Google APIs, Istio, and OpenAPI.
+     * 
+ * + * Protobuf type {@code google.rpc.context.AttributeContext.Api} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.rpc.context.AttributeContext.Api) + com.google.rpc.context.AttributeContext.ApiOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Api_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.rpc.context.AttributeContext.Api.class, + com.google.rpc.context.AttributeContext.Api.Builder.class); + } + + // Construct using com.google.rpc.context.AttributeContext.Api.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + service_ = ""; + + operation_ = ""; + + protocol_ = ""; + + version_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Api_descriptor; + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext.Api getDefaultInstanceForType() { + return com.google.rpc.context.AttributeContext.Api.getDefaultInstance(); + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext.Api build() { + com.google.rpc.context.AttributeContext.Api result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext.Api buildPartial() { + com.google.rpc.context.AttributeContext.Api result = + new com.google.rpc.context.AttributeContext.Api(this); + result.service_ = service_; + result.operation_ = operation_; + result.protocol_ = protocol_; + result.version_ = version_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + 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) { + return super.clearField(field); + } + + @java.lang.Override + 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) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + 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.rpc.context.AttributeContext.Api) { + return mergeFrom((com.google.rpc.context.AttributeContext.Api) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.rpc.context.AttributeContext.Api other) { + if (other == com.google.rpc.context.AttributeContext.Api.getDefaultInstance()) return this; + if (!other.getService().isEmpty()) { + service_ = other.service_; + onChanged(); + } + if (!other.getOperation().isEmpty()) { + operation_ = other.operation_; + onChanged(); + } + if (!other.getProtocol().isEmpty()) { + protocol_ = other.protocol_; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.rpc.context.AttributeContext.Api parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.rpc.context.AttributeContext.Api) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object service_ = ""; + /** + * + * + *
+       * The API service name. It is a logical identifier for a networked API,
+       * such as "pubsub.googleapis.com". The naming syntax depends on the
+       * API management system being used for handling the request.
+       * 
+ * + * string service = 1; + * + * @return The service. + */ + public java.lang.String getService() { + java.lang.Object ref = service_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + service_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The API service name. It is a logical identifier for a networked API,
+       * such as "pubsub.googleapis.com". The naming syntax depends on the
+       * API management system being used for handling the request.
+       * 
+ * + * string service = 1; + * + * @return The bytes for service. + */ + public com.google.protobuf.ByteString getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + service_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The API service name. It is a logical identifier for a networked API,
+       * such as "pubsub.googleapis.com". The naming syntax depends on the
+       * API management system being used for handling the request.
+       * 
+ * + * string service = 1; + * + * @param value The service to set. + * @return This builder for chaining. + */ + public Builder setService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + service_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The API service name. It is a logical identifier for a networked API,
+       * such as "pubsub.googleapis.com". The naming syntax depends on the
+       * API management system being used for handling the request.
+       * 
+ * + * string service = 1; + * + * @return This builder for chaining. + */ + public Builder clearService() { + + service_ = getDefaultInstance().getService(); + onChanged(); + return this; + } + /** + * + * + *
+       * The API service name. It is a logical identifier for a networked API,
+       * such as "pubsub.googleapis.com". The naming syntax depends on the
+       * API management system being used for handling the request.
+       * 
+ * + * string service = 1; + * + * @param value The bytes for service to set. + * @return This builder for chaining. + */ + public Builder setServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + service_ = value; + onChanged(); + return this; + } + + private java.lang.Object operation_ = ""; + /** + * + * + *
+       * The API operation name. For gRPC requests, it is the fully qualified API
+       * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI
+       * requests, it is the `operationId`, such as "getPet".
+       * 
+ * + * string operation = 2; + * + * @return The operation. + */ + public java.lang.String getOperation() { + java.lang.Object ref = operation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The API operation name. For gRPC requests, it is the fully qualified API
+       * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI
+       * requests, it is the `operationId`, such as "getPet".
+       * 
+ * + * string operation = 2; + * + * @return The bytes for operation. + */ + public com.google.protobuf.ByteString getOperationBytes() { + java.lang.Object ref = operation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The API operation name. For gRPC requests, it is the fully qualified API
+       * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI
+       * requests, it is the `operationId`, such as "getPet".
+       * 
+ * + * string operation = 2; + * + * @param value The operation to set. + * @return This builder for chaining. + */ + public Builder setOperation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + operation_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The API operation name. For gRPC requests, it is the fully qualified API
+       * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI
+       * requests, it is the `operationId`, such as "getPet".
+       * 
+ * + * string operation = 2; + * + * @return This builder for chaining. + */ + public Builder clearOperation() { + + operation_ = getDefaultInstance().getOperation(); + onChanged(); + return this; + } + /** + * + * + *
+       * The API operation name. For gRPC requests, it is the fully qualified API
+       * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI
+       * requests, it is the `operationId`, such as "getPet".
+       * 
+ * + * string operation = 2; + * + * @param value The bytes for operation to set. + * @return This builder for chaining. + */ + public Builder setOperationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + operation_ = value; + onChanged(); + return this; + } + + private java.lang.Object protocol_ = ""; + /** + * + * + *
+       * The API protocol used for sending the request, such as "http", "https",
+       * "grpc", or "internal".
+       * 
+ * + * string protocol = 3; + * + * @return The protocol. + */ + public java.lang.String getProtocol() { + java.lang.Object ref = protocol_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + protocol_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The API protocol used for sending the request, such as "http", "https",
+       * "grpc", or "internal".
+       * 
+ * + * string protocol = 3; + * + * @return The bytes for protocol. + */ + public com.google.protobuf.ByteString getProtocolBytes() { + java.lang.Object ref = protocol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + protocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The API protocol used for sending the request, such as "http", "https",
+       * "grpc", or "internal".
+       * 
+ * + * string protocol = 3; + * + * @param value The protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocol(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + protocol_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The API protocol used for sending the request, such as "http", "https",
+       * "grpc", or "internal".
+       * 
+ * + * string protocol = 3; + * + * @return This builder for chaining. + */ + public Builder clearProtocol() { + + protocol_ = getDefaultInstance().getProtocol(); + onChanged(); + return this; + } + /** + * + * + *
+       * The API protocol used for sending the request, such as "http", "https",
+       * "grpc", or "internal".
+       * 
+ * + * string protocol = 3; + * + * @param value The bytes for protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + protocol_ = value; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + * + * + *
+       * The API version associated with the API operation above, such as "v1" or
+       * "v1alpha1".
+       * 
+ * + * string version = 4; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The API version associated with the API operation above, such as "v1" or
+       * "v1alpha1".
+       * 
+ * + * string version = 4; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The API version associated with the API operation above, such as "v1" or
+       * "v1alpha1".
+       * 
+ * + * string version = 4; + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The API version associated with the API operation above, such as "v1" or
+       * "v1alpha1".
+       * 
+ * + * string version = 4; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + * + * + *
+       * The API version associated with the API operation above, such as "v1" or
+       * "v1alpha1".
+       * 
+ * + * string version = 4; + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.rpc.context.AttributeContext.Api) + } + + // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext.Api) + private static final com.google.rpc.context.AttributeContext.Api DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.rpc.context.AttributeContext.Api(); + } + + public static com.google.rpc.context.AttributeContext.Api getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Api parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Api(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext.Api getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AuthOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.rpc.context.AttributeContext.Auth) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The authenticated principal. Reflects the issuer (`iss`) and subject
+     * (`sub`) claims within a JWT. The issuer and subject should be `/`
+     * delimited, with `/` percent-encoded within the subject fragment. For
+     * Google accounts, the principal format is:
+     * "https://accounts.google.com/{id}"
+     * 
+ * + * string principal = 1; + * + * @return The principal. + */ + java.lang.String getPrincipal(); + /** + * + * + *
+     * The authenticated principal. Reflects the issuer (`iss`) and subject
+     * (`sub`) claims within a JWT. The issuer and subject should be `/`
+     * delimited, with `/` percent-encoded within the subject fragment. For
+     * Google accounts, the principal format is:
+     * "https://accounts.google.com/{id}"
+     * 
+ * + * string principal = 1; + * + * @return The bytes for principal. + */ + com.google.protobuf.ByteString getPrincipalBytes(); + + /** + * + * + *
+     * The intended audience(s) for this authentication information. Reflects
+     * the audience (`aud`) claim within a JWT. The audience
+     * value(s) depends on the `issuer`, but typically include one or more of
+     * the following pieces of information:
+     * *  The services intended to receive the credential such as
+     *    ["pubsub.googleapis.com", "storage.googleapis.com"]
+     * *  A set of service-based scopes. For example,
+     *    ["https://www.googleapis.com/auth/cloud-platform"]
+     * *  The client id of an app, such as the Firebase project id for JWTs
+     *    from Firebase Auth.
+     * Consult the documentation for the credential issuer to determine the
+     * information provided.
+     * 
+ * + * repeated string audiences = 2; + * + * @return A list containing the audiences. + */ + java.util.List getAudiencesList(); + /** + * + * + *
+     * The intended audience(s) for this authentication information. Reflects
+     * the audience (`aud`) claim within a JWT. The audience
+     * value(s) depends on the `issuer`, but typically include one or more of
+     * the following pieces of information:
+     * *  The services intended to receive the credential such as
+     *    ["pubsub.googleapis.com", "storage.googleapis.com"]
+     * *  A set of service-based scopes. For example,
+     *    ["https://www.googleapis.com/auth/cloud-platform"]
+     * *  The client id of an app, such as the Firebase project id for JWTs
+     *    from Firebase Auth.
+     * Consult the documentation for the credential issuer to determine the
+     * information provided.
+     * 
+ * + * repeated string audiences = 2; + * + * @return The count of audiences. + */ + int getAudiencesCount(); + /** + * + * + *
+     * The intended audience(s) for this authentication information. Reflects
+     * the audience (`aud`) claim within a JWT. The audience
+     * value(s) depends on the `issuer`, but typically include one or more of
+     * the following pieces of information:
+     * *  The services intended to receive the credential such as
+     *    ["pubsub.googleapis.com", "storage.googleapis.com"]
+     * *  A set of service-based scopes. For example,
+     *    ["https://www.googleapis.com/auth/cloud-platform"]
+     * *  The client id of an app, such as the Firebase project id for JWTs
+     *    from Firebase Auth.
+     * Consult the documentation for the credential issuer to determine the
+     * information provided.
+     * 
+ * + * repeated string audiences = 2; + * + * @param index The index of the element to return. + * @return The audiences at the given index. + */ + java.lang.String getAudiences(int index); + /** + * + * + *
+     * The intended audience(s) for this authentication information. Reflects
+     * the audience (`aud`) claim within a JWT. The audience
+     * value(s) depends on the `issuer`, but typically include one or more of
+     * the following pieces of information:
+     * *  The services intended to receive the credential such as
+     *    ["pubsub.googleapis.com", "storage.googleapis.com"]
+     * *  A set of service-based scopes. For example,
+     *    ["https://www.googleapis.com/auth/cloud-platform"]
+     * *  The client id of an app, such as the Firebase project id for JWTs
+     *    from Firebase Auth.
+     * Consult the documentation for the credential issuer to determine the
+     * information provided.
+     * 
+ * + * repeated string audiences = 2; + * + * @param index The index of the value to return. + * @return The bytes of the audiences at the given index. + */ + com.google.protobuf.ByteString getAudiencesBytes(int index); + + /** + * + * + *
+     * The authorized presenter of the credential. Reflects the optional
+     * Authorized Presenter (`azp`) claim within a JWT or the
+     * OAuth client id. For example, a Google Cloud Platform client id looks
+     * as follows: "123456789012.apps.googleusercontent.com".
+     * 
+ * + * string presenter = 3; + * + * @return The presenter. + */ + java.lang.String getPresenter(); + /** + * + * + *
+     * The authorized presenter of the credential. Reflects the optional
+     * Authorized Presenter (`azp`) claim within a JWT or the
+     * OAuth client id. For example, a Google Cloud Platform client id looks
+     * as follows: "123456789012.apps.googleusercontent.com".
+     * 
+ * + * string presenter = 3; + * + * @return The bytes for presenter. + */ + com.google.protobuf.ByteString getPresenterBytes(); + + /** + * + * + *
+     * Structured claims presented with the credential. JWTs include
+     * `{key: value}` pairs for standard and private claims. The following
+     * is a subset of the standard required and optional claims that would
+     * typically be presented for a Google-based JWT:
+     *    {'iss': 'accounts.google.com',
+     *     'sub': '113289723416554971153',
+     *     'aud': ['123456789012', 'pubsub.googleapis.com'],
+     *     'azp': '123456789012.apps.googleusercontent.com',
+     *     'email': 'jsmith@example.com',
+     *     'iat': 1353601026,
+     *     'exp': 1353604926}
+     * SAML assertions are similarly specified, but with an identity provider
+     * dependent structure.
+     * 
+ * + * .google.protobuf.Struct claims = 4; + * + * @return Whether the claims field is set. + */ + boolean hasClaims(); + /** + * + * + *
+     * Structured claims presented with the credential. JWTs include
+     * `{key: value}` pairs for standard and private claims. The following
+     * is a subset of the standard required and optional claims that would
+     * typically be presented for a Google-based JWT:
+     *    {'iss': 'accounts.google.com',
+     *     'sub': '113289723416554971153',
+     *     'aud': ['123456789012', 'pubsub.googleapis.com'],
+     *     'azp': '123456789012.apps.googleusercontent.com',
+     *     'email': 'jsmith@example.com',
+     *     'iat': 1353601026,
+     *     'exp': 1353604926}
+     * SAML assertions are similarly specified, but with an identity provider
+     * dependent structure.
+     * 
+ * + * .google.protobuf.Struct claims = 4; + * + * @return The claims. + */ + com.google.protobuf.Struct getClaims(); + /** + * + * + *
+     * Structured claims presented with the credential. JWTs include
+     * `{key: value}` pairs for standard and private claims. The following
+     * is a subset of the standard required and optional claims that would
+     * typically be presented for a Google-based JWT:
+     *    {'iss': 'accounts.google.com',
+     *     'sub': '113289723416554971153',
+     *     'aud': ['123456789012', 'pubsub.googleapis.com'],
+     *     'azp': '123456789012.apps.googleusercontent.com',
+     *     'email': 'jsmith@example.com',
+     *     'iat': 1353601026,
+     *     'exp': 1353604926}
+     * SAML assertions are similarly specified, but with an identity provider
+     * dependent structure.
+     * 
+ * + * .google.protobuf.Struct claims = 4; + */ + com.google.protobuf.StructOrBuilder getClaimsOrBuilder(); + + /** + * + * + *
+     * A list of access level resource names that allow resources to be
+     * accessed by authenticated requester. It is part of Secure GCP processing
+     * for the incoming request. An access level string has the format:
+     * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+     * Example:
+     * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
+     * 
+ * + * repeated string access_levels = 5; + * + * @return A list containing the accessLevels. + */ + java.util.List getAccessLevelsList(); + /** + * + * + *
+     * A list of access level resource names that allow resources to be
+     * accessed by authenticated requester. It is part of Secure GCP processing
+     * for the incoming request. An access level string has the format:
+     * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+     * Example:
+     * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
+     * 
+ * + * repeated string access_levels = 5; + * + * @return The count of accessLevels. + */ + int getAccessLevelsCount(); + /** + * + * + *
+     * A list of access level resource names that allow resources to be
+     * accessed by authenticated requester. It is part of Secure GCP processing
+     * for the incoming request. An access level string has the format:
+     * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+     * Example:
+     * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
+     * 
+ * + * repeated string access_levels = 5; + * + * @param index The index of the element to return. + * @return The accessLevels at the given index. + */ + java.lang.String getAccessLevels(int index); + /** + * + * + *
+     * A list of access level resource names that allow resources to be
+     * accessed by authenticated requester. It is part of Secure GCP processing
+     * for the incoming request. An access level string has the format:
+     * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+     * Example:
+     * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
+     * 
+ * + * repeated string access_levels = 5; + * + * @param index The index of the value to return. + * @return The bytes of the accessLevels at the given index. + */ + com.google.protobuf.ByteString getAccessLevelsBytes(int index); + } + /** + * + * + *
+   * This message defines request authentication attributes. Terminology is
+   * based on the JSON Web Token (JWT) standard, but the terms also
+   * correlate to concepts in other standards.
+   * 
+ * + * Protobuf type {@code google.rpc.context.AttributeContext.Auth} + */ + public static final class Auth extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.rpc.context.AttributeContext.Auth) + AuthOrBuilder { + private static final long serialVersionUID = 0L; + // Use Auth.newBuilder() to construct. + private Auth(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Auth() { + principal_ = ""; + audiences_ = com.google.protobuf.LazyStringArrayList.EMPTY; + presenter_ = ""; + accessLevels_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Auth(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Auth( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + principal_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + audiences_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + audiences_.add(s); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + presenter_ = s; + break; + } + case 34: + { + com.google.protobuf.Struct.Builder subBuilder = null; + if (claims_ != null) { + subBuilder = claims_.toBuilder(); + } + claims_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(claims_); + claims_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + accessLevels_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + accessLevels_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + audiences_ = audiences_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + accessLevels_ = accessLevels_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Auth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Auth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.rpc.context.AttributeContext.Auth.class, + com.google.rpc.context.AttributeContext.Auth.Builder.class); + } + + public static final int PRINCIPAL_FIELD_NUMBER = 1; + private volatile java.lang.Object principal_; + /** + * + * + *
+     * The authenticated principal. Reflects the issuer (`iss`) and subject
+     * (`sub`) claims within a JWT. The issuer and subject should be `/`
+     * delimited, with `/` percent-encoded within the subject fragment. For
+     * Google accounts, the principal format is:
+     * "https://accounts.google.com/{id}"
+     * 
+ * + * string principal = 1; + * + * @return The principal. + */ + public java.lang.String getPrincipal() { + java.lang.Object ref = principal_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + principal_ = s; + return s; + } + } + /** + * + * + *
+     * The authenticated principal. Reflects the issuer (`iss`) and subject
+     * (`sub`) claims within a JWT. The issuer and subject should be `/`
+     * delimited, with `/` percent-encoded within the subject fragment. For
+     * Google accounts, the principal format is:
+     * "https://accounts.google.com/{id}"
+     * 
+ * + * string principal = 1; + * + * @return The bytes for principal. + */ + public com.google.protobuf.ByteString getPrincipalBytes() { + java.lang.Object ref = principal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + principal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUDIENCES_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList audiences_; + /** + * + * + *
+     * The intended audience(s) for this authentication information. Reflects
+     * the audience (`aud`) claim within a JWT. The audience
+     * value(s) depends on the `issuer`, but typically include one or more of
+     * the following pieces of information:
+     * *  The services intended to receive the credential such as
+     *    ["pubsub.googleapis.com", "storage.googleapis.com"]
+     * *  A set of service-based scopes. For example,
+     *    ["https://www.googleapis.com/auth/cloud-platform"]
+     * *  The client id of an app, such as the Firebase project id for JWTs
+     *    from Firebase Auth.
+     * Consult the documentation for the credential issuer to determine the
+     * information provided.
+     * 
+ * + * repeated string audiences = 2; + * + * @return A list containing the audiences. + */ + public com.google.protobuf.ProtocolStringList getAudiencesList() { + return audiences_; + } + /** + * + * + *
+     * The intended audience(s) for this authentication information. Reflects
+     * the audience (`aud`) claim within a JWT. The audience
+     * value(s) depends on the `issuer`, but typically include one or more of
+     * the following pieces of information:
+     * *  The services intended to receive the credential such as
+     *    ["pubsub.googleapis.com", "storage.googleapis.com"]
+     * *  A set of service-based scopes. For example,
+     *    ["https://www.googleapis.com/auth/cloud-platform"]
+     * *  The client id of an app, such as the Firebase project id for JWTs
+     *    from Firebase Auth.
+     * Consult the documentation for the credential issuer to determine the
+     * information provided.
+     * 
+ * + * repeated string audiences = 2; + * + * @return The count of audiences. + */ + public int getAudiencesCount() { + return audiences_.size(); + } + /** + * + * + *
+     * The intended audience(s) for this authentication information. Reflects
+     * the audience (`aud`) claim within a JWT. The audience
+     * value(s) depends on the `issuer`, but typically include one or more of
+     * the following pieces of information:
+     * *  The services intended to receive the credential such as
+     *    ["pubsub.googleapis.com", "storage.googleapis.com"]
+     * *  A set of service-based scopes. For example,
+     *    ["https://www.googleapis.com/auth/cloud-platform"]
+     * *  The client id of an app, such as the Firebase project id for JWTs
+     *    from Firebase Auth.
+     * Consult the documentation for the credential issuer to determine the
+     * information provided.
+     * 
+ * + * repeated string audiences = 2; + * + * @param index The index of the element to return. + * @return The audiences at the given index. + */ + public java.lang.String getAudiences(int index) { + return audiences_.get(index); + } + /** + * + * + *
+     * The intended audience(s) for this authentication information. Reflects
+     * the audience (`aud`) claim within a JWT. The audience
+     * value(s) depends on the `issuer`, but typically include one or more of
+     * the following pieces of information:
+     * *  The services intended to receive the credential such as
+     *    ["pubsub.googleapis.com", "storage.googleapis.com"]
+     * *  A set of service-based scopes. For example,
+     *    ["https://www.googleapis.com/auth/cloud-platform"]
+     * *  The client id of an app, such as the Firebase project id for JWTs
+     *    from Firebase Auth.
+     * Consult the documentation for the credential issuer to determine the
+     * information provided.
+     * 
+ * + * repeated string audiences = 2; + * + * @param index The index of the value to return. + * @return The bytes of the audiences at the given index. + */ + public com.google.protobuf.ByteString getAudiencesBytes(int index) { + return audiences_.getByteString(index); + } + + public static final int PRESENTER_FIELD_NUMBER = 3; + private volatile java.lang.Object presenter_; + /** + * + * + *
+     * The authorized presenter of the credential. Reflects the optional
+     * Authorized Presenter (`azp`) claim within a JWT or the
+     * OAuth client id. For example, a Google Cloud Platform client id looks
+     * as follows: "123456789012.apps.googleusercontent.com".
+     * 
+ * + * string presenter = 3; + * + * @return The presenter. + */ + public java.lang.String getPresenter() { + java.lang.Object ref = presenter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + presenter_ = s; + return s; + } + } + /** + * + * + *
+     * The authorized presenter of the credential. Reflects the optional
+     * Authorized Presenter (`azp`) claim within a JWT or the
+     * OAuth client id. For example, a Google Cloud Platform client id looks
+     * as follows: "123456789012.apps.googleusercontent.com".
+     * 
+ * + * string presenter = 3; + * + * @return The bytes for presenter. + */ + public com.google.protobuf.ByteString getPresenterBytes() { + java.lang.Object ref = presenter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + presenter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLAIMS_FIELD_NUMBER = 4; + private com.google.protobuf.Struct claims_; + /** + * + * + *
+     * Structured claims presented with the credential. JWTs include
+     * `{key: value}` pairs for standard and private claims. The following
+     * is a subset of the standard required and optional claims that would
+     * typically be presented for a Google-based JWT:
+     *    {'iss': 'accounts.google.com',
+     *     'sub': '113289723416554971153',
+     *     'aud': ['123456789012', 'pubsub.googleapis.com'],
+     *     'azp': '123456789012.apps.googleusercontent.com',
+     *     'email': 'jsmith@example.com',
+     *     'iat': 1353601026,
+     *     'exp': 1353604926}
+     * SAML assertions are similarly specified, but with an identity provider
+     * dependent structure.
+     * 
+ * + * .google.protobuf.Struct claims = 4; + * + * @return Whether the claims field is set. + */ + public boolean hasClaims() { + return claims_ != null; + } + /** + * + * + *
+     * Structured claims presented with the credential. JWTs include
+     * `{key: value}` pairs for standard and private claims. The following
+     * is a subset of the standard required and optional claims that would
+     * typically be presented for a Google-based JWT:
+     *    {'iss': 'accounts.google.com',
+     *     'sub': '113289723416554971153',
+     *     'aud': ['123456789012', 'pubsub.googleapis.com'],
+     *     'azp': '123456789012.apps.googleusercontent.com',
+     *     'email': 'jsmith@example.com',
+     *     'iat': 1353601026,
+     *     'exp': 1353604926}
+     * SAML assertions are similarly specified, but with an identity provider
+     * dependent structure.
+     * 
+ * + * .google.protobuf.Struct claims = 4; + * + * @return The claims. + */ + public com.google.protobuf.Struct getClaims() { + return claims_ == null ? com.google.protobuf.Struct.getDefaultInstance() : claims_; + } + /** + * + * + *
+     * Structured claims presented with the credential. JWTs include
+     * `{key: value}` pairs for standard and private claims. The following
+     * is a subset of the standard required and optional claims that would
+     * typically be presented for a Google-based JWT:
+     *    {'iss': 'accounts.google.com',
+     *     'sub': '113289723416554971153',
+     *     'aud': ['123456789012', 'pubsub.googleapis.com'],
+     *     'azp': '123456789012.apps.googleusercontent.com',
+     *     'email': 'jsmith@example.com',
+     *     'iat': 1353601026,
+     *     'exp': 1353604926}
+     * SAML assertions are similarly specified, but with an identity provider
+     * dependent structure.
+     * 
+ * + * .google.protobuf.Struct claims = 4; + */ + public com.google.protobuf.StructOrBuilder getClaimsOrBuilder() { + return getClaims(); + } + + public static final int ACCESS_LEVELS_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList accessLevels_; + /** + * + * + *
+     * A list of access level resource names that allow resources to be
+     * accessed by authenticated requester. It is part of Secure GCP processing
+     * for the incoming request. An access level string has the format:
+     * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+     * Example:
+     * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
+     * 
+ * + * repeated string access_levels = 5; + * + * @return A list containing the accessLevels. + */ + public com.google.protobuf.ProtocolStringList getAccessLevelsList() { + return accessLevels_; + } + /** + * + * + *
+     * A list of access level resource names that allow resources to be
+     * accessed by authenticated requester. It is part of Secure GCP processing
+     * for the incoming request. An access level string has the format:
+     * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+     * Example:
+     * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
+     * 
+ * + * repeated string access_levels = 5; + * + * @return The count of accessLevels. + */ + public int getAccessLevelsCount() { + return accessLevels_.size(); + } + /** + * + * + *
+     * A list of access level resource names that allow resources to be
+     * accessed by authenticated requester. It is part of Secure GCP processing
+     * for the incoming request. An access level string has the format:
+     * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+     * Example:
+     * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
+     * 
+ * + * repeated string access_levels = 5; + * + * @param index The index of the element to return. + * @return The accessLevels at the given index. + */ + public java.lang.String getAccessLevels(int index) { + return accessLevels_.get(index); + } + /** + * + * + *
+     * A list of access level resource names that allow resources to be
+     * accessed by authenticated requester. It is part of Secure GCP processing
+     * for the incoming request. An access level string has the format:
+     * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+     * Example:
+     * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
+     * 
+ * + * repeated string access_levels = 5; + * + * @param index The index of the value to return. + * @return The bytes of the accessLevels at the given index. + */ + public com.google.protobuf.ByteString getAccessLevelsBytes(int index) { + return accessLevels_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getPrincipalBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, principal_); + } + for (int i = 0; i < audiences_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, audiences_.getRaw(i)); + } + if (!getPresenterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, presenter_); + } + if (claims_ != null) { + output.writeMessage(4, getClaims()); + } + for (int i = 0; i < accessLevels_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, accessLevels_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getPrincipalBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, principal_); + } + { + int dataSize = 0; + for (int i = 0; i < audiences_.size(); i++) { + dataSize += computeStringSizeNoTag(audiences_.getRaw(i)); + } + size += dataSize; + size += 1 * getAudiencesList().size(); + } + if (!getPresenterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, presenter_); + } + if (claims_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getClaims()); + } + { + int dataSize = 0; + for (int i = 0; i < accessLevels_.size(); i++) { + dataSize += computeStringSizeNoTag(accessLevels_.getRaw(i)); + } + size += dataSize; + size += 1 * getAccessLevelsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.rpc.context.AttributeContext.Auth)) { + return super.equals(obj); + } + com.google.rpc.context.AttributeContext.Auth other = + (com.google.rpc.context.AttributeContext.Auth) obj; + + if (!getPrincipal().equals(other.getPrincipal())) return false; + if (!getAudiencesList().equals(other.getAudiencesList())) return false; + if (!getPresenter().equals(other.getPresenter())) return false; + if (hasClaims() != other.hasClaims()) return false; + if (hasClaims()) { + if (!getClaims().equals(other.getClaims())) return false; + } + if (!getAccessLevelsList().equals(other.getAccessLevelsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; + hash = (53 * hash) + getPrincipal().hashCode(); + if (getAudiencesCount() > 0) { + hash = (37 * hash) + AUDIENCES_FIELD_NUMBER; + hash = (53 * hash) + getAudiencesList().hashCode(); + } + hash = (37 * hash) + PRESENTER_FIELD_NUMBER; + hash = (53 * hash) + getPresenter().hashCode(); + if (hasClaims()) { + hash = (37 * hash) + CLAIMS_FIELD_NUMBER; + hash = (53 * hash) + getClaims().hashCode(); + } + if (getAccessLevelsCount() > 0) { + hash = (37 * hash) + ACCESS_LEVELS_FIELD_NUMBER; + hash = (53 * hash) + getAccessLevelsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.rpc.context.AttributeContext.Auth parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.rpc.context.AttributeContext.Auth parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext.Auth parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.rpc.context.AttributeContext.Auth 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.rpc.context.AttributeContext.Auth parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.rpc.context.AttributeContext.Auth parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext.Auth parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.rpc.context.AttributeContext.Auth parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext.Auth parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.rpc.context.AttributeContext.Auth parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext.Auth parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.rpc.context.AttributeContext.Auth parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.rpc.context.AttributeContext.Auth prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * This message defines request authentication attributes. Terminology is
+     * based on the JSON Web Token (JWT) standard, but the terms also
+     * correlate to concepts in other standards.
+     * 
+ * + * Protobuf type {@code google.rpc.context.AttributeContext.Auth} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.rpc.context.AttributeContext.Auth) + com.google.rpc.context.AttributeContext.AuthOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Auth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Auth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.rpc.context.AttributeContext.Auth.class, + com.google.rpc.context.AttributeContext.Auth.Builder.class); + } + + // Construct using com.google.rpc.context.AttributeContext.Auth.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + principal_ = ""; + + audiences_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + presenter_ = ""; + + if (claimsBuilder_ == null) { + claims_ = null; + } else { + claims_ = null; + claimsBuilder_ = null; + } + accessLevels_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Auth_descriptor; + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext.Auth getDefaultInstanceForType() { + return com.google.rpc.context.AttributeContext.Auth.getDefaultInstance(); + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext.Auth build() { + com.google.rpc.context.AttributeContext.Auth result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext.Auth buildPartial() { + com.google.rpc.context.AttributeContext.Auth result = + new com.google.rpc.context.AttributeContext.Auth(this); + int from_bitField0_ = bitField0_; + result.principal_ = principal_; + if (((bitField0_ & 0x00000001) != 0)) { + audiences_ = audiences_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.audiences_ = audiences_; + result.presenter_ = presenter_; + if (claimsBuilder_ == null) { + result.claims_ = claims_; + } else { + result.claims_ = claimsBuilder_.build(); + } + if (((bitField0_ & 0x00000002) != 0)) { + accessLevels_ = accessLevels_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.accessLevels_ = accessLevels_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + 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) { + return super.clearField(field); + } + + @java.lang.Override + 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) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + 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.rpc.context.AttributeContext.Auth) { + return mergeFrom((com.google.rpc.context.AttributeContext.Auth) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.rpc.context.AttributeContext.Auth other) { + if (other == com.google.rpc.context.AttributeContext.Auth.getDefaultInstance()) return this; + if (!other.getPrincipal().isEmpty()) { + principal_ = other.principal_; + onChanged(); + } + if (!other.audiences_.isEmpty()) { + if (audiences_.isEmpty()) { + audiences_ = other.audiences_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAudiencesIsMutable(); + audiences_.addAll(other.audiences_); + } + onChanged(); + } + if (!other.getPresenter().isEmpty()) { + presenter_ = other.presenter_; + onChanged(); + } + if (other.hasClaims()) { + mergeClaims(other.getClaims()); + } + if (!other.accessLevels_.isEmpty()) { + if (accessLevels_.isEmpty()) { + accessLevels_ = other.accessLevels_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAccessLevelsIsMutable(); + accessLevels_.addAll(other.accessLevels_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.rpc.context.AttributeContext.Auth parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.rpc.context.AttributeContext.Auth) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object principal_ = ""; + /** + * + * + *
+       * The authenticated principal. Reflects the issuer (`iss`) and subject
+       * (`sub`) claims within a JWT. The issuer and subject should be `/`
+       * delimited, with `/` percent-encoded within the subject fragment. For
+       * Google accounts, the principal format is:
+       * "https://accounts.google.com/{id}"
+       * 
+ * + * string principal = 1; + * + * @return The principal. + */ + public java.lang.String getPrincipal() { + java.lang.Object ref = principal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + principal_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The authenticated principal. Reflects the issuer (`iss`) and subject
+       * (`sub`) claims within a JWT. The issuer and subject should be `/`
+       * delimited, with `/` percent-encoded within the subject fragment. For
+       * Google accounts, the principal format is:
+       * "https://accounts.google.com/{id}"
+       * 
+ * + * string principal = 1; + * + * @return The bytes for principal. + */ + public com.google.protobuf.ByteString getPrincipalBytes() { + java.lang.Object ref = principal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + principal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The authenticated principal. Reflects the issuer (`iss`) and subject
+       * (`sub`) claims within a JWT. The issuer and subject should be `/`
+       * delimited, with `/` percent-encoded within the subject fragment. For
+       * Google accounts, the principal format is:
+       * "https://accounts.google.com/{id}"
+       * 
+ * + * string principal = 1; + * + * @param value The principal to set. + * @return This builder for chaining. + */ + public Builder setPrincipal(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + principal_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The authenticated principal. Reflects the issuer (`iss`) and subject
+       * (`sub`) claims within a JWT. The issuer and subject should be `/`
+       * delimited, with `/` percent-encoded within the subject fragment. For
+       * Google accounts, the principal format is:
+       * "https://accounts.google.com/{id}"
+       * 
+ * + * string principal = 1; + * + * @return This builder for chaining. + */ + public Builder clearPrincipal() { + + principal_ = getDefaultInstance().getPrincipal(); + onChanged(); + return this; + } + /** + * + * + *
+       * The authenticated principal. Reflects the issuer (`iss`) and subject
+       * (`sub`) claims within a JWT. The issuer and subject should be `/`
+       * delimited, with `/` percent-encoded within the subject fragment. For
+       * Google accounts, the principal format is:
+       * "https://accounts.google.com/{id}"
+       * 
+ * + * string principal = 1; + * + * @param value The bytes for principal to set. + * @return This builder for chaining. + */ + public Builder setPrincipalBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + principal_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList audiences_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAudiencesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + audiences_ = new com.google.protobuf.LazyStringArrayList(audiences_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+       * The intended audience(s) for this authentication information. Reflects
+       * the audience (`aud`) claim within a JWT. The audience
+       * value(s) depends on the `issuer`, but typically include one or more of
+       * the following pieces of information:
+       * *  The services intended to receive the credential such as
+       *    ["pubsub.googleapis.com", "storage.googleapis.com"]
+       * *  A set of service-based scopes. For example,
+       *    ["https://www.googleapis.com/auth/cloud-platform"]
+       * *  The client id of an app, such as the Firebase project id for JWTs
+       *    from Firebase Auth.
+       * Consult the documentation for the credential issuer to determine the
+       * information provided.
+       * 
+ * + * repeated string audiences = 2; + * + * @return A list containing the audiences. + */ + public com.google.protobuf.ProtocolStringList getAudiencesList() { + return audiences_.getUnmodifiableView(); + } + /** + * + * + *
+       * The intended audience(s) for this authentication information. Reflects
+       * the audience (`aud`) claim within a JWT. The audience
+       * value(s) depends on the `issuer`, but typically include one or more of
+       * the following pieces of information:
+       * *  The services intended to receive the credential such as
+       *    ["pubsub.googleapis.com", "storage.googleapis.com"]
+       * *  A set of service-based scopes. For example,
+       *    ["https://www.googleapis.com/auth/cloud-platform"]
+       * *  The client id of an app, such as the Firebase project id for JWTs
+       *    from Firebase Auth.
+       * Consult the documentation for the credential issuer to determine the
+       * information provided.
+       * 
+ * + * repeated string audiences = 2; + * + * @return The count of audiences. + */ + public int getAudiencesCount() { + return audiences_.size(); + } + /** + * + * + *
+       * The intended audience(s) for this authentication information. Reflects
+       * the audience (`aud`) claim within a JWT. The audience
+       * value(s) depends on the `issuer`, but typically include one or more of
+       * the following pieces of information:
+       * *  The services intended to receive the credential such as
+       *    ["pubsub.googleapis.com", "storage.googleapis.com"]
+       * *  A set of service-based scopes. For example,
+       *    ["https://www.googleapis.com/auth/cloud-platform"]
+       * *  The client id of an app, such as the Firebase project id for JWTs
+       *    from Firebase Auth.
+       * Consult the documentation for the credential issuer to determine the
+       * information provided.
+       * 
+ * + * repeated string audiences = 2; + * + * @param index The index of the element to return. + * @return The audiences at the given index. + */ + public java.lang.String getAudiences(int index) { + return audiences_.get(index); + } + /** + * + * + *
+       * The intended audience(s) for this authentication information. Reflects
+       * the audience (`aud`) claim within a JWT. The audience
+       * value(s) depends on the `issuer`, but typically include one or more of
+       * the following pieces of information:
+       * *  The services intended to receive the credential such as
+       *    ["pubsub.googleapis.com", "storage.googleapis.com"]
+       * *  A set of service-based scopes. For example,
+       *    ["https://www.googleapis.com/auth/cloud-platform"]
+       * *  The client id of an app, such as the Firebase project id for JWTs
+       *    from Firebase Auth.
+       * Consult the documentation for the credential issuer to determine the
+       * information provided.
+       * 
+ * + * repeated string audiences = 2; + * + * @param index The index of the value to return. + * @return The bytes of the audiences at the given index. + */ + public com.google.protobuf.ByteString getAudiencesBytes(int index) { + return audiences_.getByteString(index); + } + /** + * + * + *
+       * The intended audience(s) for this authentication information. Reflects
+       * the audience (`aud`) claim within a JWT. The audience
+       * value(s) depends on the `issuer`, but typically include one or more of
+       * the following pieces of information:
+       * *  The services intended to receive the credential such as
+       *    ["pubsub.googleapis.com", "storage.googleapis.com"]
+       * *  A set of service-based scopes. For example,
+       *    ["https://www.googleapis.com/auth/cloud-platform"]
+       * *  The client id of an app, such as the Firebase project id for JWTs
+       *    from Firebase Auth.
+       * Consult the documentation for the credential issuer to determine the
+       * information provided.
+       * 
+ * + * repeated string audiences = 2; + * + * @param index The index to set the value at. + * @param value The audiences to set. + * @return This builder for chaining. + */ + public Builder setAudiences(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAudiencesIsMutable(); + audiences_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * The intended audience(s) for this authentication information. Reflects
+       * the audience (`aud`) claim within a JWT. The audience
+       * value(s) depends on the `issuer`, but typically include one or more of
+       * the following pieces of information:
+       * *  The services intended to receive the credential such as
+       *    ["pubsub.googleapis.com", "storage.googleapis.com"]
+       * *  A set of service-based scopes. For example,
+       *    ["https://www.googleapis.com/auth/cloud-platform"]
+       * *  The client id of an app, such as the Firebase project id for JWTs
+       *    from Firebase Auth.
+       * Consult the documentation for the credential issuer to determine the
+       * information provided.
+       * 
+ * + * repeated string audiences = 2; + * + * @param value The audiences to add. + * @return This builder for chaining. + */ + public Builder addAudiences(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAudiencesIsMutable(); + audiences_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * The intended audience(s) for this authentication information. Reflects
+       * the audience (`aud`) claim within a JWT. The audience
+       * value(s) depends on the `issuer`, but typically include one or more of
+       * the following pieces of information:
+       * *  The services intended to receive the credential such as
+       *    ["pubsub.googleapis.com", "storage.googleapis.com"]
+       * *  A set of service-based scopes. For example,
+       *    ["https://www.googleapis.com/auth/cloud-platform"]
+       * *  The client id of an app, such as the Firebase project id for JWTs
+       *    from Firebase Auth.
+       * Consult the documentation for the credential issuer to determine the
+       * information provided.
+       * 
+ * + * repeated string audiences = 2; + * + * @param values The audiences to add. + * @return This builder for chaining. + */ + public Builder addAllAudiences(java.lang.Iterable values) { + ensureAudiencesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, audiences_); + onChanged(); + return this; + } + /** + * + * + *
+       * The intended audience(s) for this authentication information. Reflects
+       * the audience (`aud`) claim within a JWT. The audience
+       * value(s) depends on the `issuer`, but typically include one or more of
+       * the following pieces of information:
+       * *  The services intended to receive the credential such as
+       *    ["pubsub.googleapis.com", "storage.googleapis.com"]
+       * *  A set of service-based scopes. For example,
+       *    ["https://www.googleapis.com/auth/cloud-platform"]
+       * *  The client id of an app, such as the Firebase project id for JWTs
+       *    from Firebase Auth.
+       * Consult the documentation for the credential issuer to determine the
+       * information provided.
+       * 
+ * + * repeated string audiences = 2; + * + * @return This builder for chaining. + */ + public Builder clearAudiences() { + audiences_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * The intended audience(s) for this authentication information. Reflects
+       * the audience (`aud`) claim within a JWT. The audience
+       * value(s) depends on the `issuer`, but typically include one or more of
+       * the following pieces of information:
+       * *  The services intended to receive the credential such as
+       *    ["pubsub.googleapis.com", "storage.googleapis.com"]
+       * *  A set of service-based scopes. For example,
+       *    ["https://www.googleapis.com/auth/cloud-platform"]
+       * *  The client id of an app, such as the Firebase project id for JWTs
+       *    from Firebase Auth.
+       * Consult the documentation for the credential issuer to determine the
+       * information provided.
+       * 
+ * + * repeated string audiences = 2; + * + * @param value The bytes of the audiences to add. + * @return This builder for chaining. + */ + public Builder addAudiencesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAudiencesIsMutable(); + audiences_.add(value); + onChanged(); + return this; + } + + private java.lang.Object presenter_ = ""; + /** + * + * + *
+       * The authorized presenter of the credential. Reflects the optional
+       * Authorized Presenter (`azp`) claim within a JWT or the
+       * OAuth client id. For example, a Google Cloud Platform client id looks
+       * as follows: "123456789012.apps.googleusercontent.com".
+       * 
+ * + * string presenter = 3; + * + * @return The presenter. + */ + public java.lang.String getPresenter() { + java.lang.Object ref = presenter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + presenter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The authorized presenter of the credential. Reflects the optional
+       * Authorized Presenter (`azp`) claim within a JWT or the
+       * OAuth client id. For example, a Google Cloud Platform client id looks
+       * as follows: "123456789012.apps.googleusercontent.com".
+       * 
+ * + * string presenter = 3; + * + * @return The bytes for presenter. + */ + public com.google.protobuf.ByteString getPresenterBytes() { + java.lang.Object ref = presenter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + presenter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The authorized presenter of the credential. Reflects the optional
+       * Authorized Presenter (`azp`) claim within a JWT or the
+       * OAuth client id. For example, a Google Cloud Platform client id looks
+       * as follows: "123456789012.apps.googleusercontent.com".
+       * 
+ * + * string presenter = 3; + * + * @param value The presenter to set. + * @return This builder for chaining. + */ + public Builder setPresenter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + presenter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The authorized presenter of the credential. Reflects the optional
+       * Authorized Presenter (`azp`) claim within a JWT or the
+       * OAuth client id. For example, a Google Cloud Platform client id looks
+       * as follows: "123456789012.apps.googleusercontent.com".
+       * 
+ * + * string presenter = 3; + * + * @return This builder for chaining. + */ + public Builder clearPresenter() { + + presenter_ = getDefaultInstance().getPresenter(); + onChanged(); + return this; + } + /** + * + * + *
+       * The authorized presenter of the credential. Reflects the optional
+       * Authorized Presenter (`azp`) claim within a JWT or the
+       * OAuth client id. For example, a Google Cloud Platform client id looks
+       * as follows: "123456789012.apps.googleusercontent.com".
+       * 
+ * + * string presenter = 3; + * + * @param value The bytes for presenter to set. + * @return This builder for chaining. + */ + public Builder setPresenterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + presenter_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Struct claims_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + claimsBuilder_; + /** + * + * + *
+       * Structured claims presented with the credential. JWTs include
+       * `{key: value}` pairs for standard and private claims. The following
+       * is a subset of the standard required and optional claims that would
+       * typically be presented for a Google-based JWT:
+       *    {'iss': 'accounts.google.com',
+       *     'sub': '113289723416554971153',
+       *     'aud': ['123456789012', 'pubsub.googleapis.com'],
+       *     'azp': '123456789012.apps.googleusercontent.com',
+       *     'email': 'jsmith@example.com',
+       *     'iat': 1353601026,
+       *     'exp': 1353604926}
+       * SAML assertions are similarly specified, but with an identity provider
+       * dependent structure.
+       * 
+ * + * .google.protobuf.Struct claims = 4; + * + * @return Whether the claims field is set. + */ + public boolean hasClaims() { + return claimsBuilder_ != null || claims_ != null; + } + /** + * + * + *
+       * Structured claims presented with the credential. JWTs include
+       * `{key: value}` pairs for standard and private claims. The following
+       * is a subset of the standard required and optional claims that would
+       * typically be presented for a Google-based JWT:
+       *    {'iss': 'accounts.google.com',
+       *     'sub': '113289723416554971153',
+       *     'aud': ['123456789012', 'pubsub.googleapis.com'],
+       *     'azp': '123456789012.apps.googleusercontent.com',
+       *     'email': 'jsmith@example.com',
+       *     'iat': 1353601026,
+       *     'exp': 1353604926}
+       * SAML assertions are similarly specified, but with an identity provider
+       * dependent structure.
+       * 
+ * + * .google.protobuf.Struct claims = 4; + * + * @return The claims. + */ + public com.google.protobuf.Struct getClaims() { + if (claimsBuilder_ == null) { + return claims_ == null ? com.google.protobuf.Struct.getDefaultInstance() : claims_; + } else { + return claimsBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Structured claims presented with the credential. JWTs include
+       * `{key: value}` pairs for standard and private claims. The following
+       * is a subset of the standard required and optional claims that would
+       * typically be presented for a Google-based JWT:
+       *    {'iss': 'accounts.google.com',
+       *     'sub': '113289723416554971153',
+       *     'aud': ['123456789012', 'pubsub.googleapis.com'],
+       *     'azp': '123456789012.apps.googleusercontent.com',
+       *     'email': 'jsmith@example.com',
+       *     'iat': 1353601026,
+       *     'exp': 1353604926}
+       * SAML assertions are similarly specified, but with an identity provider
+       * dependent structure.
+       * 
+ * + * .google.protobuf.Struct claims = 4; + */ + public Builder setClaims(com.google.protobuf.Struct value) { + if (claimsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + claims_ = value; + onChanged(); + } else { + claimsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Structured claims presented with the credential. JWTs include
+       * `{key: value}` pairs for standard and private claims. The following
+       * is a subset of the standard required and optional claims that would
+       * typically be presented for a Google-based JWT:
+       *    {'iss': 'accounts.google.com',
+       *     'sub': '113289723416554971153',
+       *     'aud': ['123456789012', 'pubsub.googleapis.com'],
+       *     'azp': '123456789012.apps.googleusercontent.com',
+       *     'email': 'jsmith@example.com',
+       *     'iat': 1353601026,
+       *     'exp': 1353604926}
+       * SAML assertions are similarly specified, but with an identity provider
+       * dependent structure.
+       * 
+ * + * .google.protobuf.Struct claims = 4; + */ + public Builder setClaims(com.google.protobuf.Struct.Builder builderForValue) { + if (claimsBuilder_ == null) { + claims_ = builderForValue.build(); + onChanged(); + } else { + claimsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Structured claims presented with the credential. JWTs include
+       * `{key: value}` pairs for standard and private claims. The following
+       * is a subset of the standard required and optional claims that would
+       * typically be presented for a Google-based JWT:
+       *    {'iss': 'accounts.google.com',
+       *     'sub': '113289723416554971153',
+       *     'aud': ['123456789012', 'pubsub.googleapis.com'],
+       *     'azp': '123456789012.apps.googleusercontent.com',
+       *     'email': 'jsmith@example.com',
+       *     'iat': 1353601026,
+       *     'exp': 1353604926}
+       * SAML assertions are similarly specified, but with an identity provider
+       * dependent structure.
+       * 
+ * + * .google.protobuf.Struct claims = 4; + */ + public Builder mergeClaims(com.google.protobuf.Struct value) { + if (claimsBuilder_ == null) { + if (claims_ != null) { + claims_ = + com.google.protobuf.Struct.newBuilder(claims_).mergeFrom(value).buildPartial(); + } else { + claims_ = value; + } + onChanged(); + } else { + claimsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Structured claims presented with the credential. JWTs include
+       * `{key: value}` pairs for standard and private claims. The following
+       * is a subset of the standard required and optional claims that would
+       * typically be presented for a Google-based JWT:
+       *    {'iss': 'accounts.google.com',
+       *     'sub': '113289723416554971153',
+       *     'aud': ['123456789012', 'pubsub.googleapis.com'],
+       *     'azp': '123456789012.apps.googleusercontent.com',
+       *     'email': 'jsmith@example.com',
+       *     'iat': 1353601026,
+       *     'exp': 1353604926}
+       * SAML assertions are similarly specified, but with an identity provider
+       * dependent structure.
+       * 
+ * + * .google.protobuf.Struct claims = 4; + */ + public Builder clearClaims() { + if (claimsBuilder_ == null) { + claims_ = null; + onChanged(); + } else { + claims_ = null; + claimsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Structured claims presented with the credential. JWTs include
+       * `{key: value}` pairs for standard and private claims. The following
+       * is a subset of the standard required and optional claims that would
+       * typically be presented for a Google-based JWT:
+       *    {'iss': 'accounts.google.com',
+       *     'sub': '113289723416554971153',
+       *     'aud': ['123456789012', 'pubsub.googleapis.com'],
+       *     'azp': '123456789012.apps.googleusercontent.com',
+       *     'email': 'jsmith@example.com',
+       *     'iat': 1353601026,
+       *     'exp': 1353604926}
+       * SAML assertions are similarly specified, but with an identity provider
+       * dependent structure.
+       * 
+ * + * .google.protobuf.Struct claims = 4; + */ + public com.google.protobuf.Struct.Builder getClaimsBuilder() { + + onChanged(); + return getClaimsFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Structured claims presented with the credential. JWTs include
+       * `{key: value}` pairs for standard and private claims. The following
+       * is a subset of the standard required and optional claims that would
+       * typically be presented for a Google-based JWT:
+       *    {'iss': 'accounts.google.com',
+       *     'sub': '113289723416554971153',
+       *     'aud': ['123456789012', 'pubsub.googleapis.com'],
+       *     'azp': '123456789012.apps.googleusercontent.com',
+       *     'email': 'jsmith@example.com',
+       *     'iat': 1353601026,
+       *     'exp': 1353604926}
+       * SAML assertions are similarly specified, but with an identity provider
+       * dependent structure.
+       * 
+ * + * .google.protobuf.Struct claims = 4; + */ + public com.google.protobuf.StructOrBuilder getClaimsOrBuilder() { + if (claimsBuilder_ != null) { + return claimsBuilder_.getMessageOrBuilder(); + } else { + return claims_ == null ? com.google.protobuf.Struct.getDefaultInstance() : claims_; + } + } + /** + * + * + *
+       * Structured claims presented with the credential. JWTs include
+       * `{key: value}` pairs for standard and private claims. The following
+       * is a subset of the standard required and optional claims that would
+       * typically be presented for a Google-based JWT:
+       *    {'iss': 'accounts.google.com',
+       *     'sub': '113289723416554971153',
+       *     'aud': ['123456789012', 'pubsub.googleapis.com'],
+       *     'azp': '123456789012.apps.googleusercontent.com',
+       *     'email': 'jsmith@example.com',
+       *     'iat': 1353601026,
+       *     'exp': 1353604926}
+       * SAML assertions are similarly specified, but with an identity provider
+       * dependent structure.
+       * 
+ * + * .google.protobuf.Struct claims = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getClaimsFieldBuilder() { + if (claimsBuilder_ == null) { + claimsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getClaims(), getParentForChildren(), isClean()); + claims_ = null; + } + return claimsBuilder_; + } + + private com.google.protobuf.LazyStringList accessLevels_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAccessLevelsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + accessLevels_ = new com.google.protobuf.LazyStringArrayList(accessLevels_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+       * A list of access level resource names that allow resources to be
+       * accessed by authenticated requester. It is part of Secure GCP processing
+       * for the incoming request. An access level string has the format:
+       * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+       * Example:
+       * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
+       * 
+ * + * repeated string access_levels = 5; + * + * @return A list containing the accessLevels. + */ + public com.google.protobuf.ProtocolStringList getAccessLevelsList() { + return accessLevels_.getUnmodifiableView(); + } + /** + * + * + *
+       * A list of access level resource names that allow resources to be
+       * accessed by authenticated requester. It is part of Secure GCP processing
+       * for the incoming request. An access level string has the format:
+       * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+       * Example:
+       * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
+       * 
+ * + * repeated string access_levels = 5; + * + * @return The count of accessLevels. + */ + public int getAccessLevelsCount() { + return accessLevels_.size(); + } + /** + * + * + *
+       * A list of access level resource names that allow resources to be
+       * accessed by authenticated requester. It is part of Secure GCP processing
+       * for the incoming request. An access level string has the format:
+       * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+       * Example:
+       * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
+       * 
+ * + * repeated string access_levels = 5; + * + * @param index The index of the element to return. + * @return The accessLevels at the given index. + */ + public java.lang.String getAccessLevels(int index) { + return accessLevels_.get(index); + } + /** + * + * + *
+       * A list of access level resource names that allow resources to be
+       * accessed by authenticated requester. It is part of Secure GCP processing
+       * for the incoming request. An access level string has the format:
+       * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+       * Example:
+       * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
+       * 
+ * + * repeated string access_levels = 5; + * + * @param index The index of the value to return. + * @return The bytes of the accessLevels at the given index. + */ + public com.google.protobuf.ByteString getAccessLevelsBytes(int index) { + return accessLevels_.getByteString(index); + } + /** + * + * + *
+       * A list of access level resource names that allow resources to be
+       * accessed by authenticated requester. It is part of Secure GCP processing
+       * for the incoming request. An access level string has the format:
+       * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+       * Example:
+       * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
+       * 
+ * + * repeated string access_levels = 5; + * + * @param index The index to set the value at. + * @param value The accessLevels to set. + * @return This builder for chaining. + */ + public Builder setAccessLevels(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessLevelsIsMutable(); + accessLevels_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * A list of access level resource names that allow resources to be
+       * accessed by authenticated requester. It is part of Secure GCP processing
+       * for the incoming request. An access level string has the format:
+       * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+       * Example:
+       * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
+       * 
+ * + * repeated string access_levels = 5; + * + * @param value The accessLevels to add. + * @return This builder for chaining. + */ + public Builder addAccessLevels(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessLevelsIsMutable(); + accessLevels_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * A list of access level resource names that allow resources to be
+       * accessed by authenticated requester. It is part of Secure GCP processing
+       * for the incoming request. An access level string has the format:
+       * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+       * Example:
+       * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
+       * 
+ * + * repeated string access_levels = 5; + * + * @param values The accessLevels to add. + * @return This builder for chaining. + */ + public Builder addAllAccessLevels(java.lang.Iterable values) { + ensureAccessLevelsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accessLevels_); + onChanged(); + return this; + } + /** + * + * + *
+       * A list of access level resource names that allow resources to be
+       * accessed by authenticated requester. It is part of Secure GCP processing
+       * for the incoming request. An access level string has the format:
+       * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+       * Example:
+       * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
+       * 
+ * + * repeated string access_levels = 5; + * + * @return This builder for chaining. + */ + public Builder clearAccessLevels() { + accessLevels_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * A list of access level resource names that allow resources to be
+       * accessed by authenticated requester. It is part of Secure GCP processing
+       * for the incoming request. An access level string has the format:
+       * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+       * Example:
+       * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
+       * 
+ * + * repeated string access_levels = 5; + * + * @param value The bytes of the accessLevels to add. + * @return This builder for chaining. + */ + public Builder addAccessLevelsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAccessLevelsIsMutable(); + accessLevels_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.rpc.context.AttributeContext.Auth) + } + + // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext.Auth) + private static final com.google.rpc.context.AttributeContext.Auth DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.rpc.context.AttributeContext.Auth(); + } + + public static com.google.rpc.context.AttributeContext.Auth getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Auth parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Auth(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext.Auth getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface RequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.rpc.context.AttributeContext.Request) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The unique ID for a request, which can be propagated to downstream
+     * systems. The ID should have low probability of collision
+     * within a single day for a specific service.
+     * 
+ * + * string id = 1; + * + * @return The id. + */ + java.lang.String getId(); + /** + * + * + *
+     * The unique ID for a request, which can be propagated to downstream
+     * systems. The ID should have low probability of collision
+     * within a single day for a specific service.
+     * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+     * The HTTP request method, such as `GET`, `POST`.
+     * 
+ * + * string method = 2; + * + * @return The method. + */ + java.lang.String getMethod(); + /** + * + * + *
+     * The HTTP request method, such as `GET`, `POST`.
+     * 
+ * + * string method = 2; + * + * @return The bytes for method. + */ + com.google.protobuf.ByteString getMethodBytes(); + + /** + * + * + *
+     * The HTTP request headers. If multiple headers share the same key, they
+     * must be merged according to the HTTP spec. All header keys must be
+     * lowercased, because HTTP header keys are case-insensitive.
+     * 
+ * + * map<string, string> headers = 3; + */ + int getHeadersCount(); + /** + * + * + *
+     * The HTTP request headers. If multiple headers share the same key, they
+     * must be merged according to the HTTP spec. All header keys must be
+     * lowercased, because HTTP header keys are case-insensitive.
+     * 
+ * + * map<string, string> headers = 3; + */ + boolean containsHeaders(java.lang.String key); + /** Use {@link #getHeadersMap()} instead. */ + @java.lang.Deprecated + java.util.Map getHeaders(); + /** + * + * + *
+     * The HTTP request headers. If multiple headers share the same key, they
+     * must be merged according to the HTTP spec. All header keys must be
+     * lowercased, because HTTP header keys are case-insensitive.
+     * 
+ * + * map<string, string> headers = 3; + */ + java.util.Map getHeadersMap(); + /** + * + * + *
+     * The HTTP request headers. If multiple headers share the same key, they
+     * must be merged according to the HTTP spec. All header keys must be
+     * lowercased, because HTTP header keys are case-insensitive.
+     * 
+ * + * map<string, string> headers = 3; + */ + java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+     * The HTTP request headers. If multiple headers share the same key, they
+     * must be merged according to the HTTP spec. All header keys must be
+     * lowercased, because HTTP header keys are case-insensitive.
+     * 
+ * + * map<string, string> headers = 3; + */ + java.lang.String getHeadersOrThrow(java.lang.String key); + + /** + * + * + *
+     * The HTTP URL path.
+     * 
+ * + * string path = 4; + * + * @return The path. + */ + java.lang.String getPath(); + /** + * + * + *
+     * The HTTP URL path.
+     * 
+ * + * string path = 4; + * + * @return The bytes for path. + */ + com.google.protobuf.ByteString getPathBytes(); + + /** + * + * + *
+     * The HTTP request `Host` header value.
+     * 
+ * + * string host = 5; + * + * @return The host. + */ + java.lang.String getHost(); + /** + * + * + *
+     * The HTTP request `Host` header value.
+     * 
+ * + * string host = 5; + * + * @return The bytes for host. + */ + com.google.protobuf.ByteString getHostBytes(); + + /** + * + * + *
+     * The HTTP URL scheme, such as `http` and `https`.
+     * 
+ * + * string scheme = 6; + * + * @return The scheme. + */ + java.lang.String getScheme(); + /** + * + * + *
+     * The HTTP URL scheme, such as `http` and `https`.
+     * 
+ * + * string scheme = 6; + * + * @return The bytes for scheme. + */ + com.google.protobuf.ByteString getSchemeBytes(); + + /** + * + * + *
+     * The HTTP URL query in the format of `name1=value1&name2=value2`, as it
+     * appears in the first line of the HTTP request. No decoding is performed.
+     * 
+ * + * string query = 7; + * + * @return The query. + */ + java.lang.String getQuery(); + /** + * + * + *
+     * The HTTP URL query in the format of `name1=value1&name2=value2`, as it
+     * appears in the first line of the HTTP request. No decoding is performed.
+     * 
+ * + * string query = 7; + * + * @return The bytes for query. + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
+     * The timestamp when the `destination` service receives the first byte of
+     * the request.
+     * 
+ * + * .google.protobuf.Timestamp time = 9; + * + * @return Whether the time field is set. + */ + boolean hasTime(); + /** + * + * + *
+     * The timestamp when the `destination` service receives the first byte of
+     * the request.
+     * 
+ * + * .google.protobuf.Timestamp time = 9; + * + * @return The time. + */ + com.google.protobuf.Timestamp getTime(); + /** + * + * + *
+     * The timestamp when the `destination` service receives the first byte of
+     * the request.
+     * 
+ * + * .google.protobuf.Timestamp time = 9; + */ + com.google.protobuf.TimestampOrBuilder getTimeOrBuilder(); + + /** + * + * + *
+     * The HTTP request size in bytes. If unknown, it must be -1.
+     * 
+ * + * int64 size = 10; + * + * @return The size. + */ + long getSize(); + + /** + * + * + *
+     * The network protocol used with the request, such as "http/1.1",
+     * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See
+     * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
+     * for details.
+     * 
+ * + * string protocol = 11; + * + * @return The protocol. + */ + java.lang.String getProtocol(); + /** + * + * + *
+     * The network protocol used with the request, such as "http/1.1",
+     * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See
+     * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
+     * for details.
+     * 
+ * + * string protocol = 11; + * + * @return The bytes for protocol. + */ + com.google.protobuf.ByteString getProtocolBytes(); + + /** + * + * + *
+     * A special parameter for request reason. It is used by security systems
+     * to associate auditing information with a request.
+     * 
+ * + * string reason = 12; + * + * @return The reason. + */ + java.lang.String getReason(); + /** + * + * + *
+     * A special parameter for request reason. It is used by security systems
+     * to associate auditing information with a request.
+     * 
+ * + * string reason = 12; + * + * @return The bytes for reason. + */ + com.google.protobuf.ByteString getReasonBytes(); + + /** + * + * + *
+     * The request authentication. May be absent for unauthenticated requests.
+     * Derived from the HTTP request `Authorization` header or equivalent.
+     * 
+ * + * .google.rpc.context.AttributeContext.Auth auth = 13; + * + * @return Whether the auth field is set. + */ + boolean hasAuth(); + /** + * + * + *
+     * The request authentication. May be absent for unauthenticated requests.
+     * Derived from the HTTP request `Authorization` header or equivalent.
+     * 
+ * + * .google.rpc.context.AttributeContext.Auth auth = 13; + * + * @return The auth. + */ + com.google.rpc.context.AttributeContext.Auth getAuth(); + /** + * + * + *
+     * The request authentication. May be absent for unauthenticated requests.
+     * Derived from the HTTP request `Authorization` header or equivalent.
+     * 
+ * + * .google.rpc.context.AttributeContext.Auth auth = 13; + */ + com.google.rpc.context.AttributeContext.AuthOrBuilder getAuthOrBuilder(); + } + /** + * + * + *
+   * This message defines attributes for an HTTP request. If the actual
+   * request is not an HTTP request, the runtime system should try to map
+   * the actual request to an equivalent HTTP request.
+   * 
+ * + * Protobuf type {@code google.rpc.context.AttributeContext.Request} + */ + public static final class Request extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.rpc.context.AttributeContext.Request) + RequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use Request.newBuilder() to construct. + private Request(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Request() { + id_ = ""; + method_ = ""; + path_ = ""; + host_ = ""; + scheme_ = ""; + query_ = ""; + protocol_ = ""; + reason_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Request(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Request( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + method_ = s; + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + headers_ = + com.google.protobuf.MapField.newMapField( + HeadersDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry headers__ = + input.readMessage( + HeadersDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + headers_.getMutableMap().put(headers__.getKey(), headers__.getValue()); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + path_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + host_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + scheme_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + query_ = s; + break; + } + case 74: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (time_ != null) { + subBuilder = time_.toBuilder(); + } + time_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(time_); + time_ = subBuilder.buildPartial(); + } + + break; + } + case 80: + { + size_ = input.readInt64(); + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + + protocol_ = s; + break; + } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + + reason_ = s; + break; + } + case 106: + { + com.google.rpc.context.AttributeContext.Auth.Builder subBuilder = null; + if (auth_ != null) { + subBuilder = auth_.toBuilder(); + } + auth_ = + input.readMessage( + com.google.rpc.context.AttributeContext.Auth.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(auth_); + auth_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Request_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Request_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.rpc.context.AttributeContext.Request.class, + com.google.rpc.context.AttributeContext.Request.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + * + * + *
+     * The unique ID for a request, which can be propagated to downstream
+     * systems. The ID should have low probability of collision
+     * within a single day for a specific service.
+     * 
+ * + * string id = 1; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + * + * + *
+     * The unique ID for a request, which can be propagated to downstream
+     * systems. The ID should have low probability of collision
+     * within a single day for a specific service.
+     * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + 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); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METHOD_FIELD_NUMBER = 2; + private volatile java.lang.Object method_; + /** + * + * + *
+     * The HTTP request method, such as `GET`, `POST`.
+     * 
+ * + * string method = 2; + * + * @return The method. + */ + public java.lang.String getMethod() { + java.lang.Object ref = method_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + method_ = s; + return s; + } + } + /** + * + * + *
+     * The HTTP request method, such as `GET`, `POST`.
+     * 
+ * + * string method = 2; + * + * @return The bytes for method. + */ + public com.google.protobuf.ByteString getMethodBytes() { + java.lang.Object ref = method_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + method_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HEADERS_FIELD_NUMBER = 3; + + private static final class HeadersDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Request_HeadersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField headers_; + + private com.google.protobuf.MapField internalGetHeaders() { + if (headers_ == null) { + return com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry); + } + return headers_; + } + + public int getHeadersCount() { + return internalGetHeaders().getMap().size(); + } + /** + * + * + *
+     * The HTTP request headers. If multiple headers share the same key, they
+     * must be merged according to the HTTP spec. All header keys must be
+     * lowercased, because HTTP header keys are case-insensitive.
+     * 
+ * + * map<string, string> headers = 3; + */ + public boolean containsHeaders(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetHeaders().getMap().containsKey(key); + } + /** Use {@link #getHeadersMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getHeaders() { + return getHeadersMap(); + } + /** + * + * + *
+     * The HTTP request headers. If multiple headers share the same key, they
+     * must be merged according to the HTTP spec. All header keys must be
+     * lowercased, because HTTP header keys are case-insensitive.
+     * 
+ * + * map<string, string> headers = 3; + */ + public java.util.Map getHeadersMap() { + return internalGetHeaders().getMap(); + } + /** + * + * + *
+     * The HTTP request headers. If multiple headers share the same key, they
+     * must be merged according to the HTTP spec. All header keys must be
+     * lowercased, because HTTP header keys are case-insensitive.
+     * 
+ * + * map<string, string> headers = 3; + */ + public java.lang.String getHeadersOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetHeaders().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * The HTTP request headers. If multiple headers share the same key, they
+     * must be merged according to the HTTP spec. All header keys must be
+     * lowercased, because HTTP header keys are case-insensitive.
+     * 
+ * + * map<string, string> headers = 3; + */ + public java.lang.String getHeadersOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetHeaders().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int PATH_FIELD_NUMBER = 4; + private volatile java.lang.Object path_; + /** + * + * + *
+     * The HTTP URL path.
+     * 
+ * + * string path = 4; + * + * @return The path. + */ + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } + } + /** + * + * + *
+     * The HTTP URL path.
+     * 
+ * + * string path = 4; + * + * @return The bytes for path. + */ + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HOST_FIELD_NUMBER = 5; + private volatile java.lang.Object host_; + /** + * + * + *
+     * The HTTP request `Host` header value.
+     * 
+ * + * string host = 5; + * + * @return The host. + */ + public java.lang.String getHost() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + host_ = s; + return s; + } + } + /** + * + * + *
+     * The HTTP request `Host` header value.
+     * 
+ * + * string host = 5; + * + * @return The bytes for host. + */ + public com.google.protobuf.ByteString getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEME_FIELD_NUMBER = 6; + private volatile java.lang.Object scheme_; + /** + * + * + *
+     * The HTTP URL scheme, such as `http` and `https`.
+     * 
+ * + * string scheme = 6; + * + * @return The scheme. + */ + public java.lang.String getScheme() { + java.lang.Object ref = scheme_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scheme_ = s; + return s; + } + } + /** + * + * + *
+     * The HTTP URL scheme, such as `http` and `https`.
+     * 
+ * + * string scheme = 6; + * + * @return The bytes for scheme. + */ + public com.google.protobuf.ByteString getSchemeBytes() { + java.lang.Object ref = scheme_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scheme_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_FIELD_NUMBER = 7; + private volatile java.lang.Object query_; + /** + * + * + *
+     * The HTTP URL query in the format of `name1=value1&name2=value2`, as it
+     * appears in the first line of the HTTP request. No decoding is performed.
+     * 
+ * + * string query = 7; + * + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } + } + /** + * + * + *
+     * The HTTP URL query in the format of `name1=value1&name2=value2`, as it
+     * appears in the first line of the HTTP request. No decoding is performed.
+     * 
+ * + * string query = 7; + * + * @return The bytes for query. + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIME_FIELD_NUMBER = 9; + private com.google.protobuf.Timestamp time_; + /** + * + * + *
+     * The timestamp when the `destination` service receives the first byte of
+     * the request.
+     * 
+ * + * .google.protobuf.Timestamp time = 9; + * + * @return Whether the time field is set. + */ + public boolean hasTime() { + return time_ != null; + } + /** + * + * + *
+     * The timestamp when the `destination` service receives the first byte of
+     * the request.
+     * 
+ * + * .google.protobuf.Timestamp time = 9; + * + * @return The time. + */ + public com.google.protobuf.Timestamp getTime() { + return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_; + } + /** + * + * + *
+     * The timestamp when the `destination` service receives the first byte of
+     * the request.
+     * 
+ * + * .google.protobuf.Timestamp time = 9; + */ + public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { + return getTime(); + } + + public static final int SIZE_FIELD_NUMBER = 10; + private long size_; + /** + * + * + *
+     * The HTTP request size in bytes. If unknown, it must be -1.
+     * 
+ * + * int64 size = 10; + * + * @return The size. + */ + public long getSize() { + return size_; + } + + public static final int PROTOCOL_FIELD_NUMBER = 11; + private volatile java.lang.Object protocol_; + /** + * + * + *
+     * The network protocol used with the request, such as "http/1.1",
+     * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See
+     * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
+     * for details.
+     * 
+ * + * string protocol = 11; + * + * @return The protocol. + */ + public java.lang.String getProtocol() { + java.lang.Object ref = protocol_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + protocol_ = s; + return s; + } + } + /** + * + * + *
+     * The network protocol used with the request, such as "http/1.1",
+     * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See
+     * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
+     * for details.
+     * 
+ * + * string protocol = 11; + * + * @return The bytes for protocol. + */ + public com.google.protobuf.ByteString getProtocolBytes() { + java.lang.Object ref = protocol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + protocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REASON_FIELD_NUMBER = 12; + private volatile java.lang.Object reason_; + /** + * + * + *
+     * A special parameter for request reason. It is used by security systems
+     * to associate auditing information with a request.
+     * 
+ * + * string reason = 12; + * + * @return The reason. + */ + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reason_ = s; + return s; + } + } + /** + * + * + *
+     * A special parameter for request reason. It is used by security systems
+     * to associate auditing information with a request.
+     * 
+ * + * string reason = 12; + * + * @return The bytes for reason. + */ + public com.google.protobuf.ByteString getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTH_FIELD_NUMBER = 13; + private com.google.rpc.context.AttributeContext.Auth auth_; + /** + * + * + *
+     * The request authentication. May be absent for unauthenticated requests.
+     * Derived from the HTTP request `Authorization` header or equivalent.
+     * 
+ * + * .google.rpc.context.AttributeContext.Auth auth = 13; + * + * @return Whether the auth field is set. + */ + public boolean hasAuth() { + return auth_ != null; + } + /** + * + * + *
+     * The request authentication. May be absent for unauthenticated requests.
+     * Derived from the HTTP request `Authorization` header or equivalent.
+     * 
+ * + * .google.rpc.context.AttributeContext.Auth auth = 13; + * + * @return The auth. + */ + public com.google.rpc.context.AttributeContext.Auth getAuth() { + return auth_ == null + ? com.google.rpc.context.AttributeContext.Auth.getDefaultInstance() + : auth_; + } + /** + * + * + *
+     * The request authentication. May be absent for unauthenticated requests.
+     * Derived from the HTTP request `Authorization` header or equivalent.
+     * 
+ * + * .google.rpc.context.AttributeContext.Auth auth = 13; + */ + public com.google.rpc.context.AttributeContext.AuthOrBuilder getAuthOrBuilder() { + return getAuth(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (!getMethodBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, method_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetHeaders(), HeadersDefaultEntryHolder.defaultEntry, 3); + if (!getPathBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, path_); + } + if (!getHostBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, host_); + } + if (!getSchemeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, scheme_); + } + if (!getQueryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, query_); + } + if (time_ != null) { + output.writeMessage(9, getTime()); + } + if (size_ != 0L) { + output.writeInt64(10, size_); + } + if (!getProtocolBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, protocol_); + } + if (!getReasonBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, reason_); + } + if (auth_ != null) { + output.writeMessage(13, getAuth()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (!getMethodBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, method_); + } + for (java.util.Map.Entry entry : + internalGetHeaders().getMap().entrySet()) { + com.google.protobuf.MapEntry headers__ = + HeadersDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, headers__); + } + if (!getPathBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, path_); + } + if (!getHostBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, host_); + } + if (!getSchemeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, scheme_); + } + if (!getQueryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, query_); + } + if (time_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getTime()); + } + if (size_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, size_); + } + if (!getProtocolBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, protocol_); + } + if (!getReasonBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, reason_); + } + if (auth_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getAuth()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.rpc.context.AttributeContext.Request)) { + return super.equals(obj); + } + com.google.rpc.context.AttributeContext.Request other = + (com.google.rpc.context.AttributeContext.Request) obj; + + if (!getId().equals(other.getId())) return false; + if (!getMethod().equals(other.getMethod())) return false; + if (!internalGetHeaders().equals(other.internalGetHeaders())) return false; + if (!getPath().equals(other.getPath())) return false; + if (!getHost().equals(other.getHost())) return false; + if (!getScheme().equals(other.getScheme())) return false; + if (!getQuery().equals(other.getQuery())) return false; + if (hasTime() != other.hasTime()) return false; + if (hasTime()) { + if (!getTime().equals(other.getTime())) return false; + } + if (getSize() != other.getSize()) return false; + if (!getProtocol().equals(other.getProtocol())) return false; + if (!getReason().equals(other.getReason())) return false; + if (hasAuth() != other.hasAuth()) return false; + if (hasAuth()) { + if (!getAuth().equals(other.getAuth())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + METHOD_FIELD_NUMBER; + hash = (53 * hash) + getMethod().hashCode(); + if (!internalGetHeaders().getMap().isEmpty()) { + hash = (37 * hash) + HEADERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetHeaders().hashCode(); + } + hash = (37 * hash) + PATH_FIELD_NUMBER; + hash = (53 * hash) + getPath().hashCode(); + hash = (37 * hash) + HOST_FIELD_NUMBER; + hash = (53 * hash) + getHost().hashCode(); + hash = (37 * hash) + SCHEME_FIELD_NUMBER; + hash = (53 * hash) + getScheme().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + if (hasTime()) { + hash = (37 * hash) + TIME_FIELD_NUMBER; + hash = (53 * hash) + getTime().hashCode(); + } + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSize()); + hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; + hash = (53 * hash) + getProtocol().hashCode(); + hash = (37 * hash) + REASON_FIELD_NUMBER; + hash = (53 * hash) + getReason().hashCode(); + if (hasAuth()) { + hash = (37 * hash) + AUTH_FIELD_NUMBER; + hash = (53 * hash) + getAuth().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.rpc.context.AttributeContext.Request parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.rpc.context.AttributeContext.Request parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext.Request parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.rpc.context.AttributeContext.Request 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.rpc.context.AttributeContext.Request parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.rpc.context.AttributeContext.Request parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext.Request parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.rpc.context.AttributeContext.Request parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext.Request parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.rpc.context.AttributeContext.Request parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext.Request parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.rpc.context.AttributeContext.Request parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.rpc.context.AttributeContext.Request prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * This message defines attributes for an HTTP request. If the actual
+     * request is not an HTTP request, the runtime system should try to map
+     * the actual request to an equivalent HTTP request.
+     * 
+ * + * Protobuf type {@code google.rpc.context.AttributeContext.Request} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.rpc.context.AttributeContext.Request) + com.google.rpc.context.AttributeContext.RequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Request_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 3: + return internalGetMutableHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Request_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.rpc.context.AttributeContext.Request.class, + com.google.rpc.context.AttributeContext.Request.Builder.class); + } + + // Construct using com.google.rpc.context.AttributeContext.Request.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = ""; + + method_ = ""; + + internalGetMutableHeaders().clear(); + path_ = ""; + + host_ = ""; + + scheme_ = ""; + + query_ = ""; + + if (timeBuilder_ == null) { + time_ = null; + } else { + time_ = null; + timeBuilder_ = null; + } + size_ = 0L; + + protocol_ = ""; + + reason_ = ""; + + if (authBuilder_ == null) { + auth_ = null; + } else { + auth_ = null; + authBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Request_descriptor; + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext.Request getDefaultInstanceForType() { + return com.google.rpc.context.AttributeContext.Request.getDefaultInstance(); + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext.Request build() { + com.google.rpc.context.AttributeContext.Request result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext.Request buildPartial() { + com.google.rpc.context.AttributeContext.Request result = + new com.google.rpc.context.AttributeContext.Request(this); + int from_bitField0_ = bitField0_; + result.id_ = id_; + result.method_ = method_; + result.headers_ = internalGetHeaders(); + result.headers_.makeImmutable(); + result.path_ = path_; + result.host_ = host_; + result.scheme_ = scheme_; + result.query_ = query_; + if (timeBuilder_ == null) { + result.time_ = time_; + } else { + result.time_ = timeBuilder_.build(); + } + result.size_ = size_; + result.protocol_ = protocol_; + result.reason_ = reason_; + if (authBuilder_ == null) { + result.auth_ = auth_; + } else { + result.auth_ = authBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + 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) { + return super.clearField(field); + } + + @java.lang.Override + 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) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + 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.rpc.context.AttributeContext.Request) { + return mergeFrom((com.google.rpc.context.AttributeContext.Request) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.rpc.context.AttributeContext.Request other) { + if (other == com.google.rpc.context.AttributeContext.Request.getDefaultInstance()) + return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (!other.getMethod().isEmpty()) { + method_ = other.method_; + onChanged(); + } + internalGetMutableHeaders().mergeFrom(other.internalGetHeaders()); + if (!other.getPath().isEmpty()) { + path_ = other.path_; + onChanged(); + } + if (!other.getHost().isEmpty()) { + host_ = other.host_; + onChanged(); + } + if (!other.getScheme().isEmpty()) { + scheme_ = other.scheme_; + onChanged(); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + onChanged(); + } + if (other.hasTime()) { + mergeTime(other.getTime()); + } + if (other.getSize() != 0L) { + setSize(other.getSize()); + } + if (!other.getProtocol().isEmpty()) { + protocol_ = other.protocol_; + onChanged(); + } + if (!other.getReason().isEmpty()) { + reason_ = other.reason_; + onChanged(); + } + if (other.hasAuth()) { + mergeAuth(other.getAuth()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.rpc.context.AttributeContext.Request parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.rpc.context.AttributeContext.Request) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + * + * + *
+       * The unique ID for a request, which can be propagated to downstream
+       * systems. The ID should have low probability of collision
+       * within a single day for a specific service.
+       * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The unique ID for a request, which can be propagated to downstream
+       * systems. The ID should have low probability of collision
+       * within a single day for a specific service.
+       * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + 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); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The unique ID for a request, which can be propagated to downstream
+       * systems. The ID should have low probability of collision
+       * within a single day for a specific service.
+       * 
+ * + * 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(); + } + + id_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The unique ID for a request, which can be propagated to downstream
+       * systems. The ID should have low probability of collision
+       * within a single day for a specific service.
+       * 
+ * + * string id = 1; + * + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * + * + *
+       * The unique ID for a request, which can be propagated to downstream
+       * systems. The ID should have low probability of collision
+       * within a single day for a specific service.
+       * 
+ * + * 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(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + private java.lang.Object method_ = ""; + /** + * + * + *
+       * The HTTP request method, such as `GET`, `POST`.
+       * 
+ * + * string method = 2; + * + * @return The method. + */ + public java.lang.String getMethod() { + java.lang.Object ref = method_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + method_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The HTTP request method, such as `GET`, `POST`.
+       * 
+ * + * string method = 2; + * + * @return The bytes for method. + */ + public com.google.protobuf.ByteString getMethodBytes() { + java.lang.Object ref = method_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + method_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The HTTP request method, such as `GET`, `POST`.
+       * 
+ * + * string method = 2; + * + * @param value The method to set. + * @return This builder for chaining. + */ + public Builder setMethod(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + method_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The HTTP request method, such as `GET`, `POST`.
+       * 
+ * + * string method = 2; + * + * @return This builder for chaining. + */ + public Builder clearMethod() { + + method_ = getDefaultInstance().getMethod(); + onChanged(); + return this; + } + /** + * + * + *
+       * The HTTP request method, such as `GET`, `POST`.
+       * 
+ * + * string method = 2; + * + * @param value The bytes for method to set. + * @return This builder for chaining. + */ + public Builder setMethodBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + method_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField headers_; + + private com.google.protobuf.MapField + internalGetHeaders() { + if (headers_ == null) { + return com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry); + } + return headers_; + } + + private com.google.protobuf.MapField + internalGetMutableHeaders() { + onChanged(); + ; + if (headers_ == null) { + headers_ = + com.google.protobuf.MapField.newMapField(HeadersDefaultEntryHolder.defaultEntry); + } + if (!headers_.isMutable()) { + headers_ = headers_.copy(); + } + return headers_; + } + + public int getHeadersCount() { + return internalGetHeaders().getMap().size(); + } + /** + * + * + *
+       * The HTTP request headers. If multiple headers share the same key, they
+       * must be merged according to the HTTP spec. All header keys must be
+       * lowercased, because HTTP header keys are case-insensitive.
+       * 
+ * + * map<string, string> headers = 3; + */ + public boolean containsHeaders(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetHeaders().getMap().containsKey(key); + } + /** Use {@link #getHeadersMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getHeaders() { + return getHeadersMap(); + } + /** + * + * + *
+       * The HTTP request headers. If multiple headers share the same key, they
+       * must be merged according to the HTTP spec. All header keys must be
+       * lowercased, because HTTP header keys are case-insensitive.
+       * 
+ * + * map<string, string> headers = 3; + */ + public java.util.Map getHeadersMap() { + return internalGetHeaders().getMap(); + } + /** + * + * + *
+       * The HTTP request headers. If multiple headers share the same key, they
+       * must be merged according to the HTTP spec. All header keys must be
+       * lowercased, because HTTP header keys are case-insensitive.
+       * 
+ * + * map<string, string> headers = 3; + */ + public java.lang.String getHeadersOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetHeaders().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+       * The HTTP request headers. If multiple headers share the same key, they
+       * must be merged according to the HTTP spec. All header keys must be
+       * lowercased, because HTTP header keys are case-insensitive.
+       * 
+ * + * map<string, string> headers = 3; + */ + public java.lang.String getHeadersOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetHeaders().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearHeaders() { + internalGetMutableHeaders().getMutableMap().clear(); + return this; + } + /** + * + * + *
+       * The HTTP request headers. If multiple headers share the same key, they
+       * must be merged according to the HTTP spec. All header keys must be
+       * lowercased, because HTTP header keys are case-insensitive.
+       * 
+ * + * map<string, string> headers = 3; + */ + public Builder removeHeaders(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableHeaders().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableHeaders() { + return internalGetMutableHeaders().getMutableMap(); + } + /** + * + * + *
+       * The HTTP request headers. If multiple headers share the same key, they
+       * must be merged according to the HTTP spec. All header keys must be
+       * lowercased, because HTTP header keys are case-insensitive.
+       * 
+ * + * map<string, string> headers = 3; + */ + public Builder putHeaders(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableHeaders().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+       * The HTTP request headers. If multiple headers share the same key, they
+       * must be merged according to the HTTP spec. All header keys must be
+       * lowercased, because HTTP header keys are case-insensitive.
+       * 
+ * + * map<string, string> headers = 3; + */ + public Builder putAllHeaders(java.util.Map values) { + internalGetMutableHeaders().getMutableMap().putAll(values); + return this; + } + + private java.lang.Object path_ = ""; + /** + * + * + *
+       * The HTTP URL path.
+       * 
+ * + * string path = 4; + * + * @return The path. + */ + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The HTTP URL path.
+       * 
+ * + * string path = 4; + * + * @return The bytes for path. + */ + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The HTTP URL path.
+       * 
+ * + * string path = 4; + * + * @param value The path to set. + * @return This builder for chaining. + */ + public Builder setPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + path_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The HTTP URL path.
+       * 
+ * + * string path = 4; + * + * @return This builder for chaining. + */ + public Builder clearPath() { + + path_ = getDefaultInstance().getPath(); + onChanged(); + return this; + } + /** + * + * + *
+       * The HTTP URL path.
+       * 
+ * + * string path = 4; + * + * @param value The bytes for path to set. + * @return This builder for chaining. + */ + public Builder setPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + path_ = value; + onChanged(); + return this; + } + + private java.lang.Object host_ = ""; + /** + * + * + *
+       * The HTTP request `Host` header value.
+       * 
+ * + * string host = 5; + * + * @return The host. + */ + public java.lang.String getHost() { + java.lang.Object ref = host_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + host_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The HTTP request `Host` header value.
+       * 
+ * + * string host = 5; + * + * @return The bytes for host. + */ + public com.google.protobuf.ByteString getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The HTTP request `Host` header value.
+       * 
+ * + * string host = 5; + * + * @param value The host to set. + * @return This builder for chaining. + */ + public Builder setHost(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + host_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The HTTP request `Host` header value.
+       * 
+ * + * string host = 5; + * + * @return This builder for chaining. + */ + public Builder clearHost() { + + host_ = getDefaultInstance().getHost(); + onChanged(); + return this; + } + /** + * + * + *
+       * The HTTP request `Host` header value.
+       * 
+ * + * string host = 5; + * + * @param value The bytes for host to set. + * @return This builder for chaining. + */ + public Builder setHostBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + host_ = value; + onChanged(); + return this; + } + + private java.lang.Object scheme_ = ""; + /** + * + * + *
+       * The HTTP URL scheme, such as `http` and `https`.
+       * 
+ * + * string scheme = 6; + * + * @return The scheme. + */ + public java.lang.String getScheme() { + java.lang.Object ref = scheme_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scheme_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The HTTP URL scheme, such as `http` and `https`.
+       * 
+ * + * string scheme = 6; + * + * @return The bytes for scheme. + */ + public com.google.protobuf.ByteString getSchemeBytes() { + java.lang.Object ref = scheme_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scheme_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The HTTP URL scheme, such as `http` and `https`.
+       * 
+ * + * string scheme = 6; + * + * @param value The scheme to set. + * @return This builder for chaining. + */ + public Builder setScheme(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + scheme_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The HTTP URL scheme, such as `http` and `https`.
+       * 
+ * + * string scheme = 6; + * + * @return This builder for chaining. + */ + public Builder clearScheme() { + + scheme_ = getDefaultInstance().getScheme(); + onChanged(); + return this; + } + /** + * + * + *
+       * The HTTP URL scheme, such as `http` and `https`.
+       * 
+ * + * string scheme = 6; + * + * @param value The bytes for scheme to set. + * @return This builder for chaining. + */ + public Builder setSchemeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + scheme_ = value; + onChanged(); + return this; + } + + private java.lang.Object query_ = ""; + /** + * + * + *
+       * The HTTP URL query in the format of `name1=value1&name2=value2`, as it
+       * appears in the first line of the HTTP request. No decoding is performed.
+       * 
+ * + * string query = 7; + * + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The HTTP URL query in the format of `name1=value1&name2=value2`, as it
+       * appears in the first line of the HTTP request. No decoding is performed.
+       * 
+ * + * string query = 7; + * + * @return The bytes for query. + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The HTTP URL query in the format of `name1=value1&name2=value2`, as it
+       * appears in the first line of the HTTP request. No decoding is performed.
+       * 
+ * + * string query = 7; + * + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + query_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The HTTP URL query in the format of `name1=value1&name2=value2`, as it
+       * appears in the first line of the HTTP request. No decoding is performed.
+       * 
+ * + * string query = 7; + * + * @return This builder for chaining. + */ + public Builder clearQuery() { + + query_ = getDefaultInstance().getQuery(); + onChanged(); + return this; + } + /** + * + * + *
+       * The HTTP URL query in the format of `name1=value1&name2=value2`, as it
+       * appears in the first line of the HTTP request. No decoding is performed.
+       * 
+ * + * string query = 7; + * + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + query_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp time_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + timeBuilder_; + /** + * + * + *
+       * The timestamp when the `destination` service receives the first byte of
+       * the request.
+       * 
+ * + * .google.protobuf.Timestamp time = 9; + * + * @return Whether the time field is set. + */ + public boolean hasTime() { + return timeBuilder_ != null || time_ != null; + } + /** + * + * + *
+       * The timestamp when the `destination` service receives the first byte of
+       * the request.
+       * 
+ * + * .google.protobuf.Timestamp time = 9; + * + * @return The time. + */ + public com.google.protobuf.Timestamp getTime() { + if (timeBuilder_ == null) { + return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_; + } else { + return timeBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The timestamp when the `destination` service receives the first byte of
+       * the request.
+       * 
+ * + * .google.protobuf.Timestamp time = 9; + */ + public Builder setTime(com.google.protobuf.Timestamp value) { + if (timeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + time_ = value; + onChanged(); + } else { + timeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * The timestamp when the `destination` service receives the first byte of
+       * the request.
+       * 
+ * + * .google.protobuf.Timestamp time = 9; + */ + public Builder setTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (timeBuilder_ == null) { + time_ = builderForValue.build(); + onChanged(); + } else { + timeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * The timestamp when the `destination` service receives the first byte of
+       * the request.
+       * 
+ * + * .google.protobuf.Timestamp time = 9; + */ + public Builder mergeTime(com.google.protobuf.Timestamp value) { + if (timeBuilder_ == null) { + if (time_ != null) { + time_ = com.google.protobuf.Timestamp.newBuilder(time_).mergeFrom(value).buildPartial(); + } else { + time_ = value; + } + onChanged(); + } else { + timeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * The timestamp when the `destination` service receives the first byte of
+       * the request.
+       * 
+ * + * .google.protobuf.Timestamp time = 9; + */ + public Builder clearTime() { + if (timeBuilder_ == null) { + time_ = null; + onChanged(); + } else { + time_ = null; + timeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * The timestamp when the `destination` service receives the first byte of
+       * the request.
+       * 
+ * + * .google.protobuf.Timestamp time = 9; + */ + public com.google.protobuf.Timestamp.Builder getTimeBuilder() { + + onChanged(); + return getTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The timestamp when the `destination` service receives the first byte of
+       * the request.
+       * 
+ * + * .google.protobuf.Timestamp time = 9; + */ + public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { + if (timeBuilder_ != null) { + return timeBuilder_.getMessageOrBuilder(); + } else { + return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_; + } + } + /** + * + * + *
+       * The timestamp when the `destination` service receives the first byte of
+       * the request.
+       * 
+ * + * .google.protobuf.Timestamp time = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getTimeFieldBuilder() { + if (timeBuilder_ == null) { + timeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getTime(), getParentForChildren(), isClean()); + time_ = null; + } + return timeBuilder_; + } + + private long size_; + /** + * + * + *
+       * The HTTP request size in bytes. If unknown, it must be -1.
+       * 
+ * + * int64 size = 10; + * + * @return The size. + */ + public long getSize() { + return size_; + } + /** + * + * + *
+       * The HTTP request size in bytes. If unknown, it must be -1.
+       * 
+ * + * int64 size = 10; + * + * @param value The size to set. + * @return This builder for chaining. + */ + public Builder setSize(long value) { + + size_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The HTTP request size in bytes. If unknown, it must be -1.
+       * 
+ * + * int64 size = 10; + * + * @return This builder for chaining. + */ + public Builder clearSize() { + + size_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object protocol_ = ""; + /** + * + * + *
+       * The network protocol used with the request, such as "http/1.1",
+       * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See
+       * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
+       * for details.
+       * 
+ * + * string protocol = 11; + * + * @return The protocol. + */ + public java.lang.String getProtocol() { + java.lang.Object ref = protocol_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + protocol_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The network protocol used with the request, such as "http/1.1",
+       * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See
+       * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
+       * for details.
+       * 
+ * + * string protocol = 11; + * + * @return The bytes for protocol. + */ + public com.google.protobuf.ByteString getProtocolBytes() { + java.lang.Object ref = protocol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + protocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The network protocol used with the request, such as "http/1.1",
+       * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See
+       * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
+       * for details.
+       * 
+ * + * string protocol = 11; + * + * @param value The protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocol(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + protocol_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The network protocol used with the request, such as "http/1.1",
+       * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See
+       * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
+       * for details.
+       * 
+ * + * string protocol = 11; + * + * @return This builder for chaining. + */ + public Builder clearProtocol() { + + protocol_ = getDefaultInstance().getProtocol(); + onChanged(); + return this; + } + /** + * + * + *
+       * The network protocol used with the request, such as "http/1.1",
+       * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See
+       * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
+       * for details.
+       * 
+ * + * string protocol = 11; + * + * @param value The bytes for protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + protocol_ = value; + onChanged(); + return this; + } + + private java.lang.Object reason_ = ""; + /** + * + * + *
+       * A special parameter for request reason. It is used by security systems
+       * to associate auditing information with a request.
+       * 
+ * + * string reason = 12; + * + * @return The reason. + */ + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reason_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * A special parameter for request reason. It is used by security systems
+       * to associate auditing information with a request.
+       * 
+ * + * string reason = 12; + * + * @return The bytes for reason. + */ + public com.google.protobuf.ByteString getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * A special parameter for request reason. It is used by security systems
+       * to associate auditing information with a request.
+       * 
+ * + * string reason = 12; + * + * @param value The reason to set. + * @return This builder for chaining. + */ + public Builder setReason(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + reason_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * A special parameter for request reason. It is used by security systems
+       * to associate auditing information with a request.
+       * 
+ * + * string reason = 12; + * + * @return This builder for chaining. + */ + public Builder clearReason() { + + reason_ = getDefaultInstance().getReason(); + onChanged(); + return this; + } + /** + * + * + *
+       * A special parameter for request reason. It is used by security systems
+       * to associate auditing information with a request.
+       * 
+ * + * string reason = 12; + * + * @param value The bytes for reason to set. + * @return This builder for chaining. + */ + public Builder setReasonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + reason_ = value; + onChanged(); + return this; + } + + private com.google.rpc.context.AttributeContext.Auth auth_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Auth, + com.google.rpc.context.AttributeContext.Auth.Builder, + com.google.rpc.context.AttributeContext.AuthOrBuilder> + authBuilder_; + /** + * + * + *
+       * The request authentication. May be absent for unauthenticated requests.
+       * Derived from the HTTP request `Authorization` header or equivalent.
+       * 
+ * + * .google.rpc.context.AttributeContext.Auth auth = 13; + * + * @return Whether the auth field is set. + */ + public boolean hasAuth() { + return authBuilder_ != null || auth_ != null; + } + /** + * + * + *
+       * The request authentication. May be absent for unauthenticated requests.
+       * Derived from the HTTP request `Authorization` header or equivalent.
+       * 
+ * + * .google.rpc.context.AttributeContext.Auth auth = 13; + * + * @return The auth. + */ + public com.google.rpc.context.AttributeContext.Auth getAuth() { + if (authBuilder_ == null) { + return auth_ == null + ? com.google.rpc.context.AttributeContext.Auth.getDefaultInstance() + : auth_; + } else { + return authBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The request authentication. May be absent for unauthenticated requests.
+       * Derived from the HTTP request `Authorization` header or equivalent.
+       * 
+ * + * .google.rpc.context.AttributeContext.Auth auth = 13; + */ + public Builder setAuth(com.google.rpc.context.AttributeContext.Auth value) { + if (authBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + auth_ = value; + onChanged(); + } else { + authBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * The request authentication. May be absent for unauthenticated requests.
+       * Derived from the HTTP request `Authorization` header or equivalent.
+       * 
+ * + * .google.rpc.context.AttributeContext.Auth auth = 13; + */ + public Builder setAuth(com.google.rpc.context.AttributeContext.Auth.Builder builderForValue) { + if (authBuilder_ == null) { + auth_ = builderForValue.build(); + onChanged(); + } else { + authBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * The request authentication. May be absent for unauthenticated requests.
+       * Derived from the HTTP request `Authorization` header or equivalent.
+       * 
+ * + * .google.rpc.context.AttributeContext.Auth auth = 13; + */ + public Builder mergeAuth(com.google.rpc.context.AttributeContext.Auth value) { + if (authBuilder_ == null) { + if (auth_ != null) { + auth_ = + com.google.rpc.context.AttributeContext.Auth.newBuilder(auth_) + .mergeFrom(value) + .buildPartial(); + } else { + auth_ = value; + } + onChanged(); + } else { + authBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * The request authentication. May be absent for unauthenticated requests.
+       * Derived from the HTTP request `Authorization` header or equivalent.
+       * 
+ * + * .google.rpc.context.AttributeContext.Auth auth = 13; + */ + public Builder clearAuth() { + if (authBuilder_ == null) { + auth_ = null; + onChanged(); + } else { + auth_ = null; + authBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * The request authentication. May be absent for unauthenticated requests.
+       * Derived from the HTTP request `Authorization` header or equivalent.
+       * 
+ * + * .google.rpc.context.AttributeContext.Auth auth = 13; + */ + public com.google.rpc.context.AttributeContext.Auth.Builder getAuthBuilder() { + + onChanged(); + return getAuthFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The request authentication. May be absent for unauthenticated requests.
+       * Derived from the HTTP request `Authorization` header or equivalent.
+       * 
+ * + * .google.rpc.context.AttributeContext.Auth auth = 13; + */ + public com.google.rpc.context.AttributeContext.AuthOrBuilder getAuthOrBuilder() { + if (authBuilder_ != null) { + return authBuilder_.getMessageOrBuilder(); + } else { + return auth_ == null + ? com.google.rpc.context.AttributeContext.Auth.getDefaultInstance() + : auth_; + } + } + /** + * + * + *
+       * The request authentication. May be absent for unauthenticated requests.
+       * Derived from the HTTP request `Authorization` header or equivalent.
+       * 
+ * + * .google.rpc.context.AttributeContext.Auth auth = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Auth, + com.google.rpc.context.AttributeContext.Auth.Builder, + com.google.rpc.context.AttributeContext.AuthOrBuilder> + getAuthFieldBuilder() { + if (authBuilder_ == null) { + authBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Auth, + com.google.rpc.context.AttributeContext.Auth.Builder, + com.google.rpc.context.AttributeContext.AuthOrBuilder>( + getAuth(), getParentForChildren(), isClean()); + auth_ = null; + } + return authBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.rpc.context.AttributeContext.Request) + } + + // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext.Request) + private static final com.google.rpc.context.AttributeContext.Request DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.rpc.context.AttributeContext.Request(); + } + + public static com.google.rpc.context.AttributeContext.Request getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Request parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Request(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext.Request getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.rpc.context.AttributeContext.Response) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The HTTP response status code, such as `200` and `404`.
+     * 
+ * + * int64 code = 1; + * + * @return The code. + */ + long getCode(); + + /** + * + * + *
+     * The HTTP response size in bytes. If unknown, it must be -1.
+     * 
+ * + * int64 size = 2; + * + * @return The size. + */ + long getSize(); + + /** + * + * + *
+     * The HTTP response headers. If multiple headers share the same key, they
+     * must be merged according to HTTP spec. All header keys must be
+     * lowercased, because HTTP header keys are case-insensitive.
+     * 
+ * + * map<string, string> headers = 3; + */ + int getHeadersCount(); + /** + * + * + *
+     * The HTTP response headers. If multiple headers share the same key, they
+     * must be merged according to HTTP spec. All header keys must be
+     * lowercased, because HTTP header keys are case-insensitive.
+     * 
+ * + * map<string, string> headers = 3; + */ + boolean containsHeaders(java.lang.String key); + /** Use {@link #getHeadersMap()} instead. */ + @java.lang.Deprecated + java.util.Map getHeaders(); + /** + * + * + *
+     * The HTTP response headers. If multiple headers share the same key, they
+     * must be merged according to HTTP spec. All header keys must be
+     * lowercased, because HTTP header keys are case-insensitive.
+     * 
+ * + * map<string, string> headers = 3; + */ + java.util.Map getHeadersMap(); + /** + * + * + *
+     * The HTTP response headers. If multiple headers share the same key, they
+     * must be merged according to HTTP spec. All header keys must be
+     * lowercased, because HTTP header keys are case-insensitive.
+     * 
+ * + * map<string, string> headers = 3; + */ + java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+     * The HTTP response headers. If multiple headers share the same key, they
+     * must be merged according to HTTP spec. All header keys must be
+     * lowercased, because HTTP header keys are case-insensitive.
+     * 
+ * + * map<string, string> headers = 3; + */ + java.lang.String getHeadersOrThrow(java.lang.String key); + + /** + * + * + *
+     * The timestamp when the `destination` service generates the first byte of
+     * the response.
+     * 
+ * + * .google.protobuf.Timestamp time = 4; + * + * @return Whether the time field is set. + */ + boolean hasTime(); + /** + * + * + *
+     * The timestamp when the `destination` service generates the first byte of
+     * the response.
+     * 
+ * + * .google.protobuf.Timestamp time = 4; + * + * @return The time. + */ + com.google.protobuf.Timestamp getTime(); + /** + * + * + *
+     * The timestamp when the `destination` service generates the first byte of
+     * the response.
+     * 
+ * + * .google.protobuf.Timestamp time = 4; + */ + com.google.protobuf.TimestampOrBuilder getTimeOrBuilder(); + } + /** + * + * + *
+   * This message defines attributes for a typical network response. It
+   * generally models semantics of an HTTP response.
+   * 
+ * + * Protobuf type {@code google.rpc.context.AttributeContext.Response} + */ + public static final class Response extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.rpc.context.AttributeContext.Response) + ResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use Response.newBuilder() to construct. + private Response(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Response() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Response(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Response( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + code_ = input.readInt64(); + break; + } + case 16: + { + size_ = input.readInt64(); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + headers_ = + com.google.protobuf.MapField.newMapField( + HeadersDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry headers__ = + input.readMessage( + HeadersDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + headers_.getMutableMap().put(headers__.getKey(), headers__.getValue()); + break; + } + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (time_ != null) { + subBuilder = time_.toBuilder(); + } + time_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(time_); + time_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Response_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Response_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.rpc.context.AttributeContext.Response.class, + com.google.rpc.context.AttributeContext.Response.Builder.class); + } + + public static final int CODE_FIELD_NUMBER = 1; + private long code_; + /** + * + * + *
+     * The HTTP response status code, such as `200` and `404`.
+     * 
+ * + * int64 code = 1; + * + * @return The code. + */ + public long getCode() { + return code_; + } + + public static final int SIZE_FIELD_NUMBER = 2; + private long size_; + /** + * + * + *
+     * The HTTP response size in bytes. If unknown, it must be -1.
+     * 
+ * + * int64 size = 2; + * + * @return The size. + */ + public long getSize() { + return size_; + } + + public static final int HEADERS_FIELD_NUMBER = 3; + + private static final class HeadersDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Response_HeadersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField headers_; + + private com.google.protobuf.MapField internalGetHeaders() { + if (headers_ == null) { + return com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry); + } + return headers_; + } + + public int getHeadersCount() { + return internalGetHeaders().getMap().size(); + } + /** + * + * + *
+     * The HTTP response headers. If multiple headers share the same key, they
+     * must be merged according to HTTP spec. All header keys must be
+     * lowercased, because HTTP header keys are case-insensitive.
+     * 
+ * + * map<string, string> headers = 3; + */ + public boolean containsHeaders(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetHeaders().getMap().containsKey(key); + } + /** Use {@link #getHeadersMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getHeaders() { + return getHeadersMap(); + } + /** + * + * + *
+     * The HTTP response headers. If multiple headers share the same key, they
+     * must be merged according to HTTP spec. All header keys must be
+     * lowercased, because HTTP header keys are case-insensitive.
+     * 
+ * + * map<string, string> headers = 3; + */ + public java.util.Map getHeadersMap() { + return internalGetHeaders().getMap(); + } + /** + * + * + *
+     * The HTTP response headers. If multiple headers share the same key, they
+     * must be merged according to HTTP spec. All header keys must be
+     * lowercased, because HTTP header keys are case-insensitive.
+     * 
+ * + * map<string, string> headers = 3; + */ + public java.lang.String getHeadersOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetHeaders().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * The HTTP response headers. If multiple headers share the same key, they
+     * must be merged according to HTTP spec. All header keys must be
+     * lowercased, because HTTP header keys are case-insensitive.
+     * 
+ * + * map<string, string> headers = 3; + */ + public java.lang.String getHeadersOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetHeaders().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp time_; + /** + * + * + *
+     * The timestamp when the `destination` service generates the first byte of
+     * the response.
+     * 
+ * + * .google.protobuf.Timestamp time = 4; + * + * @return Whether the time field is set. + */ + public boolean hasTime() { + return time_ != null; + } + /** + * + * + *
+     * The timestamp when the `destination` service generates the first byte of
+     * the response.
+     * 
+ * + * .google.protobuf.Timestamp time = 4; + * + * @return The time. + */ + public com.google.protobuf.Timestamp getTime() { + return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_; + } + /** + * + * + *
+     * The timestamp when the `destination` service generates the first byte of
+     * the response.
+     * 
+ * + * .google.protobuf.Timestamp time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { + return getTime(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (code_ != 0L) { + output.writeInt64(1, code_); + } + if (size_ != 0L) { + output.writeInt64(2, size_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetHeaders(), HeadersDefaultEntryHolder.defaultEntry, 3); + if (time_ != null) { + output.writeMessage(4, getTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (code_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, code_); + } + if (size_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, size_); + } + for (java.util.Map.Entry entry : + internalGetHeaders().getMap().entrySet()) { + com.google.protobuf.MapEntry headers__ = + HeadersDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, headers__); + } + if (time_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTime()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.rpc.context.AttributeContext.Response)) { + return super.equals(obj); + } + com.google.rpc.context.AttributeContext.Response other = + (com.google.rpc.context.AttributeContext.Response) obj; + + if (getCode() != other.getCode()) return false; + if (getSize() != other.getSize()) return false; + if (!internalGetHeaders().equals(other.internalGetHeaders())) return false; + if (hasTime() != other.hasTime()) return false; + if (hasTime()) { + if (!getTime().equals(other.getTime())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCode()); + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSize()); + if (!internalGetHeaders().getMap().isEmpty()) { + hash = (37 * hash) + HEADERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetHeaders().hashCode(); + } + if (hasTime()) { + hash = (37 * hash) + TIME_FIELD_NUMBER; + hash = (53 * hash) + getTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.rpc.context.AttributeContext.Response parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.rpc.context.AttributeContext.Response parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext.Response parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.rpc.context.AttributeContext.Response 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.rpc.context.AttributeContext.Response parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.rpc.context.AttributeContext.Response parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext.Response parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.rpc.context.AttributeContext.Response parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext.Response parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.rpc.context.AttributeContext.Response parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext.Response parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.rpc.context.AttributeContext.Response parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.rpc.context.AttributeContext.Response prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * This message defines attributes for a typical network response. It
+     * generally models semantics of an HTTP response.
+     * 
+ * + * Protobuf type {@code google.rpc.context.AttributeContext.Response} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.rpc.context.AttributeContext.Response) + com.google.rpc.context.AttributeContext.ResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Response_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 3: + return internalGetMutableHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Response_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.rpc.context.AttributeContext.Response.class, + com.google.rpc.context.AttributeContext.Response.Builder.class); + } + + // Construct using com.google.rpc.context.AttributeContext.Response.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + code_ = 0L; + + size_ = 0L; + + internalGetMutableHeaders().clear(); + if (timeBuilder_ == null) { + time_ = null; + } else { + time_ = null; + timeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Response_descriptor; + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext.Response getDefaultInstanceForType() { + return com.google.rpc.context.AttributeContext.Response.getDefaultInstance(); + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext.Response build() { + com.google.rpc.context.AttributeContext.Response result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext.Response buildPartial() { + com.google.rpc.context.AttributeContext.Response result = + new com.google.rpc.context.AttributeContext.Response(this); + int from_bitField0_ = bitField0_; + result.code_ = code_; + result.size_ = size_; + result.headers_ = internalGetHeaders(); + result.headers_.makeImmutable(); + if (timeBuilder_ == null) { + result.time_ = time_; + } else { + result.time_ = timeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + 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) { + return super.clearField(field); + } + + @java.lang.Override + 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) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + 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.rpc.context.AttributeContext.Response) { + return mergeFrom((com.google.rpc.context.AttributeContext.Response) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.rpc.context.AttributeContext.Response other) { + if (other == com.google.rpc.context.AttributeContext.Response.getDefaultInstance()) + return this; + if (other.getCode() != 0L) { + setCode(other.getCode()); + } + if (other.getSize() != 0L) { + setSize(other.getSize()); + } + internalGetMutableHeaders().mergeFrom(other.internalGetHeaders()); + if (other.hasTime()) { + mergeTime(other.getTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.rpc.context.AttributeContext.Response parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.rpc.context.AttributeContext.Response) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private long code_; + /** + * + * + *
+       * The HTTP response status code, such as `200` and `404`.
+       * 
+ * + * int64 code = 1; + * + * @return The code. + */ + public long getCode() { + return code_; + } + /** + * + * + *
+       * The HTTP response status code, such as `200` and `404`.
+       * 
+ * + * int64 code = 1; + * + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode(long value) { + + code_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The HTTP response status code, such as `200` and `404`.
+       * 
+ * + * int64 code = 1; + * + * @return This builder for chaining. + */ + public Builder clearCode() { + + code_ = 0L; + onChanged(); + return this; + } + + private long size_; + /** + * + * + *
+       * The HTTP response size in bytes. If unknown, it must be -1.
+       * 
+ * + * int64 size = 2; + * + * @return The size. + */ + public long getSize() { + return size_; + } + /** + * + * + *
+       * The HTTP response size in bytes. If unknown, it must be -1.
+       * 
+ * + * int64 size = 2; + * + * @param value The size to set. + * @return This builder for chaining. + */ + public Builder setSize(long value) { + + size_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The HTTP response size in bytes. If unknown, it must be -1.
+       * 
+ * + * int64 size = 2; + * + * @return This builder for chaining. + */ + public Builder clearSize() { + + size_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.MapField headers_; + + private com.google.protobuf.MapField + internalGetHeaders() { + if (headers_ == null) { + return com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry); + } + return headers_; + } + + private com.google.protobuf.MapField + internalGetMutableHeaders() { + onChanged(); + ; + if (headers_ == null) { + headers_ = + com.google.protobuf.MapField.newMapField(HeadersDefaultEntryHolder.defaultEntry); + } + if (!headers_.isMutable()) { + headers_ = headers_.copy(); + } + return headers_; + } + + public int getHeadersCount() { + return internalGetHeaders().getMap().size(); + } + /** + * + * + *
+       * The HTTP response headers. If multiple headers share the same key, they
+       * must be merged according to HTTP spec. All header keys must be
+       * lowercased, because HTTP header keys are case-insensitive.
+       * 
+ * + * map<string, string> headers = 3; + */ + public boolean containsHeaders(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetHeaders().getMap().containsKey(key); + } + /** Use {@link #getHeadersMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getHeaders() { + return getHeadersMap(); + } + /** + * + * + *
+       * The HTTP response headers. If multiple headers share the same key, they
+       * must be merged according to HTTP spec. All header keys must be
+       * lowercased, because HTTP header keys are case-insensitive.
+       * 
+ * + * map<string, string> headers = 3; + */ + public java.util.Map getHeadersMap() { + return internalGetHeaders().getMap(); + } + /** + * + * + *
+       * The HTTP response headers. If multiple headers share the same key, they
+       * must be merged according to HTTP spec. All header keys must be
+       * lowercased, because HTTP header keys are case-insensitive.
+       * 
+ * + * map<string, string> headers = 3; + */ + public java.lang.String getHeadersOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetHeaders().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+       * The HTTP response headers. If multiple headers share the same key, they
+       * must be merged according to HTTP spec. All header keys must be
+       * lowercased, because HTTP header keys are case-insensitive.
+       * 
+ * + * map<string, string> headers = 3; + */ + public java.lang.String getHeadersOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetHeaders().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearHeaders() { + internalGetMutableHeaders().getMutableMap().clear(); + return this; + } + /** + * + * + *
+       * The HTTP response headers. If multiple headers share the same key, they
+       * must be merged according to HTTP spec. All header keys must be
+       * lowercased, because HTTP header keys are case-insensitive.
+       * 
+ * + * map<string, string> headers = 3; + */ + public Builder removeHeaders(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableHeaders().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableHeaders() { + return internalGetMutableHeaders().getMutableMap(); + } + /** + * + * + *
+       * The HTTP response headers. If multiple headers share the same key, they
+       * must be merged according to HTTP spec. All header keys must be
+       * lowercased, because HTTP header keys are case-insensitive.
+       * 
+ * + * map<string, string> headers = 3; + */ + public Builder putHeaders(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableHeaders().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+       * The HTTP response headers. If multiple headers share the same key, they
+       * must be merged according to HTTP spec. All header keys must be
+       * lowercased, because HTTP header keys are case-insensitive.
+       * 
+ * + * map<string, string> headers = 3; + */ + public Builder putAllHeaders(java.util.Map values) { + internalGetMutableHeaders().getMutableMap().putAll(values); + return this; + } + + private com.google.protobuf.Timestamp time_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + timeBuilder_; + /** + * + * + *
+       * The timestamp when the `destination` service generates the first byte of
+       * the response.
+       * 
+ * + * .google.protobuf.Timestamp time = 4; + * + * @return Whether the time field is set. + */ + public boolean hasTime() { + return timeBuilder_ != null || time_ != null; + } + /** + * + * + *
+       * The timestamp when the `destination` service generates the first byte of
+       * the response.
+       * 
+ * + * .google.protobuf.Timestamp time = 4; + * + * @return The time. + */ + public com.google.protobuf.Timestamp getTime() { + if (timeBuilder_ == null) { + return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_; + } else { + return timeBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The timestamp when the `destination` service generates the first byte of
+       * the response.
+       * 
+ * + * .google.protobuf.Timestamp time = 4; + */ + public Builder setTime(com.google.protobuf.Timestamp value) { + if (timeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + time_ = value; + onChanged(); + } else { + timeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * The timestamp when the `destination` service generates the first byte of
+       * the response.
+       * 
+ * + * .google.protobuf.Timestamp time = 4; + */ + public Builder setTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (timeBuilder_ == null) { + time_ = builderForValue.build(); + onChanged(); + } else { + timeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * The timestamp when the `destination` service generates the first byte of
+       * the response.
+       * 
+ * + * .google.protobuf.Timestamp time = 4; + */ + public Builder mergeTime(com.google.protobuf.Timestamp value) { + if (timeBuilder_ == null) { + if (time_ != null) { + time_ = com.google.protobuf.Timestamp.newBuilder(time_).mergeFrom(value).buildPartial(); + } else { + time_ = value; + } + onChanged(); + } else { + timeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * The timestamp when the `destination` service generates the first byte of
+       * the response.
+       * 
+ * + * .google.protobuf.Timestamp time = 4; + */ + public Builder clearTime() { + if (timeBuilder_ == null) { + time_ = null; + onChanged(); + } else { + time_ = null; + timeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * The timestamp when the `destination` service generates the first byte of
+       * the response.
+       * 
+ * + * .google.protobuf.Timestamp time = 4; + */ + public com.google.protobuf.Timestamp.Builder getTimeBuilder() { + + onChanged(); + return getTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The timestamp when the `destination` service generates the first byte of
+       * the response.
+       * 
+ * + * .google.protobuf.Timestamp time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { + if (timeBuilder_ != null) { + return timeBuilder_.getMessageOrBuilder(); + } else { + return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_; + } + } + /** + * + * + *
+       * The timestamp when the `destination` service generates the first byte of
+       * the response.
+       * 
+ * + * .google.protobuf.Timestamp time = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getTimeFieldBuilder() { + if (timeBuilder_ == null) { + timeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getTime(), getParentForChildren(), isClean()); + time_ = null; + } + return timeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.rpc.context.AttributeContext.Response) + } + + // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext.Response) + private static final com.google.rpc.context.AttributeContext.Response DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.rpc.context.AttributeContext.Response(); + } + + public static com.google.rpc.context.AttributeContext.Response getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Response parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Response(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext.Response getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ResourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.rpc.context.AttributeContext.Resource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The name of the service that this resource belongs to, such as
+     * `pubsub.googleapis.com`. The service may be different from the DNS
+     * hostname that actually serves the request.
+     * 
+ * + * string service = 1; + * + * @return The service. + */ + java.lang.String getService(); + /** + * + * + *
+     * The name of the service that this resource belongs to, such as
+     * `pubsub.googleapis.com`. The service may be different from the DNS
+     * hostname that actually serves the request.
+     * 
+ * + * string service = 1; + * + * @return The bytes for service. + */ + com.google.protobuf.ByteString getServiceBytes(); + + /** + * + * + *
+     * The stable identifier (name) of a resource on the `service`. A resource
+     * can be logically identified as "//{resource.service}/{resource.name}".
+     * The differences between a resource name and a URI are:
+     * *   Resource name is a logical identifier, independent of network
+     *     protocol and API version. For example,
+     *     `//pubsub.googleapis.com/projects/123/topics/news-feed`.
+     * *   URI often includes protocol and version information, so it can
+     *     be used directly by applications. For example,
+     *     `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
+     * See https://cloud.google.com/apis/design/resource_names for details.
+     * 
+ * + * string name = 2; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+     * The stable identifier (name) of a resource on the `service`. A resource
+     * can be logically identified as "//{resource.service}/{resource.name}".
+     * The differences between a resource name and a URI are:
+     * *   Resource name is a logical identifier, independent of network
+     *     protocol and API version. For example,
+     *     `//pubsub.googleapis.com/projects/123/topics/news-feed`.
+     * *   URI often includes protocol and version information, so it can
+     *     be used directly by applications. For example,
+     *     `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
+     * See https://cloud.google.com/apis/design/resource_names for details.
+     * 
+ * + * string name = 2; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+     * The type of the resource. The syntax is platform-specific because
+     * different platforms define their resources differently.
+     * For Google APIs, the type format must be "{service}/{kind}".
+     * 
+ * + * string type = 3; + * + * @return The type. + */ + java.lang.String getType(); + /** + * + * + *
+     * The type of the resource. The syntax is platform-specific because
+     * different platforms define their resources differently.
+     * For Google APIs, the type format must be "{service}/{kind}".
+     * 
+ * + * string type = 3; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); + + /** + * + * + *
+     * The labels or tags on the resource, such as AWS resource tags and
+     * Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + int getLabelsCount(); + /** + * + * + *
+     * The labels or tags on the resource, such as AWS resource tags and
+     * Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+     * The labels or tags on the resource, such as AWS resource tags and
+     * Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+     * The labels or tags on the resource, such as AWS resource tags and
+     * Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+     * The labels or tags on the resource, such as AWS resource tags and
+     * Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + } + /** + * + * + *
+   * This message defines core attributes for a resource. A resource is an
+   * addressable (named) entity provided by the destination service. For
+   * example, a file stored on a network storage service.
+   * 
+ * + * Protobuf type {@code google.rpc.context.AttributeContext.Resource} + */ + public static final class Resource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.rpc.context.AttributeContext.Resource) + ResourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use Resource.newBuilder() to construct. + private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Resource() { + service_ = ""; + name_ = ""; + type_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Resource(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Resource( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + service_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + type_ = s; + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Resource_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Resource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.rpc.context.AttributeContext.Resource.class, + com.google.rpc.context.AttributeContext.Resource.Builder.class); + } + + public static final int SERVICE_FIELD_NUMBER = 1; + private volatile java.lang.Object service_; + /** + * + * + *
+     * The name of the service that this resource belongs to, such as
+     * `pubsub.googleapis.com`. The service may be different from the DNS
+     * hostname that actually serves the request.
+     * 
+ * + * string service = 1; + * + * @return The service. + */ + public java.lang.String getService() { + java.lang.Object ref = service_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + service_ = s; + return s; + } + } + /** + * + * + *
+     * The name of the service that this resource belongs to, such as
+     * `pubsub.googleapis.com`. The service may be different from the DNS
+     * hostname that actually serves the request.
+     * 
+ * + * string service = 1; + * + * @return The bytes for service. + */ + public com.google.protobuf.ByteString getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + service_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + * + * + *
+     * The stable identifier (name) of a resource on the `service`. A resource
+     * can be logically identified as "//{resource.service}/{resource.name}".
+     * The differences between a resource name and a URI are:
+     * *   Resource name is a logical identifier, independent of network
+     *     protocol and API version. For example,
+     *     `//pubsub.googleapis.com/projects/123/topics/news-feed`.
+     * *   URI often includes protocol and version information, so it can
+     *     be used directly by applications. For example,
+     *     `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
+     * See https://cloud.google.com/apis/design/resource_names for details.
+     * 
+ * + * string name = 2; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+     * The stable identifier (name) of a resource on the `service`. A resource
+     * can be logically identified as "//{resource.service}/{resource.name}".
+     * The differences between a resource name and a URI are:
+     * *   Resource name is a logical identifier, independent of network
+     *     protocol and API version. For example,
+     *     `//pubsub.googleapis.com/projects/123/topics/news-feed`.
+     * *   URI often includes protocol and version information, so it can
+     *     be used directly by applications. For example,
+     *     `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
+     * See https://cloud.google.com/apis/design/resource_names for details.
+     * 
+ * + * string name = 2; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 3; + private volatile java.lang.Object type_; + /** + * + * + *
+     * The type of the resource. The syntax is platform-specific because
+     * different platforms define their resources differently.
+     * For Google APIs, the type format must be "{service}/{kind}".
+     * 
+ * + * string type = 3; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } + } + /** + * + * + *
+     * The type of the resource. The syntax is platform-specific because
+     * different platforms define their resources differently.
+     * For Google APIs, the type format must be "{service}/{kind}".
+     * 
+ * + * string type = 3; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Resource_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * The labels or tags on the resource, such as AWS resource tags and
+     * Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+     * The labels or tags on the resource, such as AWS resource tags and
+     * Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * The labels or tags on the resource, such as AWS resource tags and
+     * Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + public java.lang.String getLabelsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * The labels or tags on the resource, such as AWS resource tags and
+     * Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getServiceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (!getTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getServiceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (!getTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, type_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.rpc.context.AttributeContext.Resource)) { + return super.equals(obj); + } + com.google.rpc.context.AttributeContext.Resource other = + (com.google.rpc.context.AttributeContext.Resource) obj; + + if (!getService().equals(other.getService())) return false; + if (!getName().equals(other.getName())) return false; + if (!getType().equals(other.getType())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getService().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.rpc.context.AttributeContext.Resource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.rpc.context.AttributeContext.Resource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext.Resource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.rpc.context.AttributeContext.Resource 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.rpc.context.AttributeContext.Resource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.rpc.context.AttributeContext.Resource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext.Resource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.rpc.context.AttributeContext.Resource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext.Resource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.rpc.context.AttributeContext.Resource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext.Resource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.rpc.context.AttributeContext.Resource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.rpc.context.AttributeContext.Resource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * This message defines core attributes for a resource. A resource is an
+     * addressable (named) entity provided by the destination service. For
+     * example, a file stored on a network storage service.
+     * 
+ * + * Protobuf type {@code google.rpc.context.AttributeContext.Resource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.rpc.context.AttributeContext.Resource) + com.google.rpc.context.AttributeContext.ResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Resource_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Resource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.rpc.context.AttributeContext.Resource.class, + com.google.rpc.context.AttributeContext.Resource.Builder.class); + } + + // Construct using com.google.rpc.context.AttributeContext.Resource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + service_ = ""; + + name_ = ""; + + type_ = ""; + + internalGetMutableLabels().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Resource_descriptor; + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext.Resource getDefaultInstanceForType() { + return com.google.rpc.context.AttributeContext.Resource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext.Resource build() { + com.google.rpc.context.AttributeContext.Resource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext.Resource buildPartial() { + com.google.rpc.context.AttributeContext.Resource result = + new com.google.rpc.context.AttributeContext.Resource(this); + int from_bitField0_ = bitField0_; + result.service_ = service_; + result.name_ = name_; + result.type_ = type_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + 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) { + return super.clearField(field); + } + + @java.lang.Override + 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) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + 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.rpc.context.AttributeContext.Resource) { + return mergeFrom((com.google.rpc.context.AttributeContext.Resource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.rpc.context.AttributeContext.Resource other) { + if (other == com.google.rpc.context.AttributeContext.Resource.getDefaultInstance()) + return this; + if (!other.getService().isEmpty()) { + service_ = other.service_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.rpc.context.AttributeContext.Resource parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.rpc.context.AttributeContext.Resource) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object service_ = ""; + /** + * + * + *
+       * The name of the service that this resource belongs to, such as
+       * `pubsub.googleapis.com`. The service may be different from the DNS
+       * hostname that actually serves the request.
+       * 
+ * + * string service = 1; + * + * @return The service. + */ + public java.lang.String getService() { + java.lang.Object ref = service_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + service_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The name of the service that this resource belongs to, such as
+       * `pubsub.googleapis.com`. The service may be different from the DNS
+       * hostname that actually serves the request.
+       * 
+ * + * string service = 1; + * + * @return The bytes for service. + */ + public com.google.protobuf.ByteString getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + service_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The name of the service that this resource belongs to, such as
+       * `pubsub.googleapis.com`. The service may be different from the DNS
+       * hostname that actually serves the request.
+       * 
+ * + * string service = 1; + * + * @param value The service to set. + * @return This builder for chaining. + */ + public Builder setService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + service_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The name of the service that this resource belongs to, such as
+       * `pubsub.googleapis.com`. The service may be different from the DNS
+       * hostname that actually serves the request.
+       * 
+ * + * string service = 1; + * + * @return This builder for chaining. + */ + public Builder clearService() { + + service_ = getDefaultInstance().getService(); + onChanged(); + return this; + } + /** + * + * + *
+       * The name of the service that this resource belongs to, such as
+       * `pubsub.googleapis.com`. The service may be different from the DNS
+       * hostname that actually serves the request.
+       * 
+ * + * string service = 1; + * + * @param value The bytes for service to set. + * @return This builder for chaining. + */ + public Builder setServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + service_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+       * The stable identifier (name) of a resource on the `service`. A resource
+       * can be logically identified as "//{resource.service}/{resource.name}".
+       * The differences between a resource name and a URI are:
+       * *   Resource name is a logical identifier, independent of network
+       *     protocol and API version. For example,
+       *     `//pubsub.googleapis.com/projects/123/topics/news-feed`.
+       * *   URI often includes protocol and version information, so it can
+       *     be used directly by applications. For example,
+       *     `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
+       * See https://cloud.google.com/apis/design/resource_names for details.
+       * 
+ * + * string name = 2; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The stable identifier (name) of a resource on the `service`. A resource
+       * can be logically identified as "//{resource.service}/{resource.name}".
+       * The differences between a resource name and a URI are:
+       * *   Resource name is a logical identifier, independent of network
+       *     protocol and API version. For example,
+       *     `//pubsub.googleapis.com/projects/123/topics/news-feed`.
+       * *   URI often includes protocol and version information, so it can
+       *     be used directly by applications. For example,
+       *     `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
+       * See https://cloud.google.com/apis/design/resource_names for details.
+       * 
+ * + * string name = 2; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The stable identifier (name) of a resource on the `service`. A resource
+       * can be logically identified as "//{resource.service}/{resource.name}".
+       * The differences between a resource name and a URI are:
+       * *   Resource name is a logical identifier, independent of network
+       *     protocol and API version. For example,
+       *     `//pubsub.googleapis.com/projects/123/topics/news-feed`.
+       * *   URI often includes protocol and version information, so it can
+       *     be used directly by applications. For example,
+       *     `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
+       * See https://cloud.google.com/apis/design/resource_names for details.
+       * 
+ * + * string name = 2; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The stable identifier (name) of a resource on the `service`. A resource
+       * can be logically identified as "//{resource.service}/{resource.name}".
+       * The differences between a resource name and a URI are:
+       * *   Resource name is a logical identifier, independent of network
+       *     protocol and API version. For example,
+       *     `//pubsub.googleapis.com/projects/123/topics/news-feed`.
+       * *   URI often includes protocol and version information, so it can
+       *     be used directly by applications. For example,
+       *     `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
+       * See https://cloud.google.com/apis/design/resource_names for details.
+       * 
+ * + * string name = 2; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+       * The stable identifier (name) of a resource on the `service`. A resource
+       * can be logically identified as "//{resource.service}/{resource.name}".
+       * The differences between a resource name and a URI are:
+       * *   Resource name is a logical identifier, independent of network
+       *     protocol and API version. For example,
+       *     `//pubsub.googleapis.com/projects/123/topics/news-feed`.
+       * *   URI often includes protocol and version information, so it can
+       *     be used directly by applications. For example,
+       *     `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
+       * See https://cloud.google.com/apis/design/resource_names for details.
+       * 
+ * + * string name = 2; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object type_ = ""; + /** + * + * + *
+       * The type of the resource. The syntax is platform-specific because
+       * different platforms define their resources differently.
+       * For Google APIs, the type format must be "{service}/{kind}".
+       * 
+ * + * string type = 3; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The type of the resource. The syntax is platform-specific because
+       * different platforms define their resources differently.
+       * For Google APIs, the type format must be "{service}/{kind}".
+       * 
+ * + * string type = 3; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The type of the resource. The syntax is platform-specific because
+       * different platforms define their resources differently.
+       * For Google APIs, the type format must be "{service}/{kind}".
+       * 
+ * + * string type = 3; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The type of the resource. The syntax is platform-specific because
+       * different platforms define their resources differently.
+       * For Google APIs, the type format must be "{service}/{kind}".
+       * 
+ * + * string type = 3; + * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + * + * + *
+       * The type of the resource. The syntax is platform-specific because
+       * different platforms define their resources differently.
+       * For Google APIs, the type format must be "{service}/{kind}".
+       * 
+ * + * string type = 3; + * + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + type_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged(); + ; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+       * The labels or tags on the resource, such as AWS resource tags and
+       * Kubernetes resource labels.
+       * 
+ * + * map<string, string> labels = 4; + */ + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+       * The labels or tags on the resource, such as AWS resource tags and
+       * Kubernetes resource labels.
+       * 
+ * + * map<string, string> labels = 4; + */ + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+       * The labels or tags on the resource, such as AWS resource tags and
+       * Kubernetes resource labels.
+       * 
+ * + * map<string, string> labels = 4; + */ + public java.lang.String getLabelsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+       * The labels or tags on the resource, such as AWS resource tags and
+       * Kubernetes resource labels.
+       * 
+ * + * map<string, string> labels = 4; + */ + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+       * The labels or tags on the resource, such as AWS resource tags and
+       * Kubernetes resource labels.
+       * 
+ * + * map<string, string> labels = 4; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+       * The labels or tags on the resource, such as AWS resource tags and
+       * Kubernetes resource labels.
+       * 
+ * + * map<string, string> labels = 4; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+       * The labels or tags on the resource, such as AWS resource tags and
+       * Kubernetes resource labels.
+       * 
+ * + * map<string, string> labels = 4; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.rpc.context.AttributeContext.Resource) + } + + // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext.Resource) + private static final com.google.rpc.context.AttributeContext.Resource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.rpc.context.AttributeContext.Resource(); + } + + public static com.google.rpc.context.AttributeContext.Resource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Resource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Resource(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext.Resource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int ORIGIN_FIELD_NUMBER = 7; + private com.google.rpc.context.AttributeContext.Peer origin_; + /** + * + * + *
+   * The origin of a network activity. In a multi hop network activity,
+   * the origin represents the sender of the first hop. For the first hop,
+   * the `source` and the `origin` must have the same content.
+   * 
+ * + * .google.rpc.context.AttributeContext.Peer origin = 7; + * + * @return Whether the origin field is set. + */ + public boolean hasOrigin() { + return origin_ != null; + } + /** + * + * + *
+   * The origin of a network activity. In a multi hop network activity,
+   * the origin represents the sender of the first hop. For the first hop,
+   * the `source` and the `origin` must have the same content.
+   * 
+ * + * .google.rpc.context.AttributeContext.Peer origin = 7; + * + * @return The origin. + */ + public com.google.rpc.context.AttributeContext.Peer getOrigin() { + return origin_ == null + ? com.google.rpc.context.AttributeContext.Peer.getDefaultInstance() + : origin_; + } + /** + * + * + *
+   * The origin of a network activity. In a multi hop network activity,
+   * the origin represents the sender of the first hop. For the first hop,
+   * the `source` and the `origin` must have the same content.
+   * 
+ * + * .google.rpc.context.AttributeContext.Peer origin = 7; + */ + public com.google.rpc.context.AttributeContext.PeerOrBuilder getOriginOrBuilder() { + return getOrigin(); + } + + public static final int SOURCE_FIELD_NUMBER = 1; + private com.google.rpc.context.AttributeContext.Peer source_; + /** + * + * + *
+   * The source of a network activity, such as starting a TCP connection.
+   * In a multi hop network activity, the source represents the sender of the
+   * last hop.
+   * 
+ * + * .google.rpc.context.AttributeContext.Peer source = 1; + * + * @return Whether the source field is set. + */ + public boolean hasSource() { + return source_ != null; + } + /** + * + * + *
+   * The source of a network activity, such as starting a TCP connection.
+   * In a multi hop network activity, the source represents the sender of the
+   * last hop.
+   * 
+ * + * .google.rpc.context.AttributeContext.Peer source = 1; + * + * @return The source. + */ + public com.google.rpc.context.AttributeContext.Peer getSource() { + return source_ == null + ? com.google.rpc.context.AttributeContext.Peer.getDefaultInstance() + : source_; + } + /** + * + * + *
+   * The source of a network activity, such as starting a TCP connection.
+   * In a multi hop network activity, the source represents the sender of the
+   * last hop.
+   * 
+ * + * .google.rpc.context.AttributeContext.Peer source = 1; + */ + public com.google.rpc.context.AttributeContext.PeerOrBuilder getSourceOrBuilder() { + return getSource(); + } + + public static final int DESTINATION_FIELD_NUMBER = 2; + private com.google.rpc.context.AttributeContext.Peer destination_; + /** + * + * + *
+   * The destination of a network activity, such as accepting a TCP connection.
+   * In a multi hop network activity, the destination represents the receiver of
+   * the last hop.
+   * 
+ * + * .google.rpc.context.AttributeContext.Peer destination = 2; + * + * @return Whether the destination field is set. + */ + public boolean hasDestination() { + return destination_ != null; + } + /** + * + * + *
+   * The destination of a network activity, such as accepting a TCP connection.
+   * In a multi hop network activity, the destination represents the receiver of
+   * the last hop.
+   * 
+ * + * .google.rpc.context.AttributeContext.Peer destination = 2; + * + * @return The destination. + */ + public com.google.rpc.context.AttributeContext.Peer getDestination() { + return destination_ == null + ? com.google.rpc.context.AttributeContext.Peer.getDefaultInstance() + : destination_; + } + /** + * + * + *
+   * The destination of a network activity, such as accepting a TCP connection.
+   * In a multi hop network activity, the destination represents the receiver of
+   * the last hop.
+   * 
+ * + * .google.rpc.context.AttributeContext.Peer destination = 2; + */ + public com.google.rpc.context.AttributeContext.PeerOrBuilder getDestinationOrBuilder() { + return getDestination(); + } + + public static final int REQUEST_FIELD_NUMBER = 3; + private com.google.rpc.context.AttributeContext.Request request_; + /** + * + * + *
+   * Represents a network request, such as an HTTP request.
+   * 
+ * + * .google.rpc.context.AttributeContext.Request request = 3; + * + * @return Whether the request field is set. + */ + public boolean hasRequest() { + return request_ != null; + } + /** + * + * + *
+   * Represents a network request, such as an HTTP request.
+   * 
+ * + * .google.rpc.context.AttributeContext.Request request = 3; + * + * @return The request. + */ + public com.google.rpc.context.AttributeContext.Request getRequest() { + return request_ == null + ? com.google.rpc.context.AttributeContext.Request.getDefaultInstance() + : request_; + } + /** + * + * + *
+   * Represents a network request, such as an HTTP request.
+   * 
+ * + * .google.rpc.context.AttributeContext.Request request = 3; + */ + public com.google.rpc.context.AttributeContext.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); + } + + public static final int RESPONSE_FIELD_NUMBER = 4; + private com.google.rpc.context.AttributeContext.Response response_; + /** + * + * + *
+   * Represents a network response, such as an HTTP response.
+   * 
+ * + * .google.rpc.context.AttributeContext.Response response = 4; + * + * @return Whether the response field is set. + */ + public boolean hasResponse() { + return response_ != null; + } + /** + * + * + *
+   * Represents a network response, such as an HTTP response.
+   * 
+ * + * .google.rpc.context.AttributeContext.Response response = 4; + * + * @return The response. + */ + public com.google.rpc.context.AttributeContext.Response getResponse() { + return response_ == null + ? com.google.rpc.context.AttributeContext.Response.getDefaultInstance() + : response_; + } + /** + * + * + *
+   * Represents a network response, such as an HTTP response.
+   * 
+ * + * .google.rpc.context.AttributeContext.Response response = 4; + */ + public com.google.rpc.context.AttributeContext.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); + } + + public static final int RESOURCE_FIELD_NUMBER = 5; + private com.google.rpc.context.AttributeContext.Resource resource_; + /** + * + * + *
+   * Represents a target resource that is involved with a network activity.
+   * If multiple resources are involved with an activity, this must be the
+   * primary one.
+   * 
+ * + * .google.rpc.context.AttributeContext.Resource resource = 5; + * + * @return Whether the resource field is set. + */ + public boolean hasResource() { + return resource_ != null; + } + /** + * + * + *
+   * Represents a target resource that is involved with a network activity.
+   * If multiple resources are involved with an activity, this must be the
+   * primary one.
+   * 
+ * + * .google.rpc.context.AttributeContext.Resource resource = 5; + * + * @return The resource. + */ + public com.google.rpc.context.AttributeContext.Resource getResource() { + return resource_ == null + ? com.google.rpc.context.AttributeContext.Resource.getDefaultInstance() + : resource_; + } + /** + * + * + *
+   * Represents a target resource that is involved with a network activity.
+   * If multiple resources are involved with an activity, this must be the
+   * primary one.
+   * 
+ * + * .google.rpc.context.AttributeContext.Resource resource = 5; + */ + public com.google.rpc.context.AttributeContext.ResourceOrBuilder getResourceOrBuilder() { + return getResource(); + } + + public static final int API_FIELD_NUMBER = 6; + private com.google.rpc.context.AttributeContext.Api api_; + /** + * + * + *
+   * Represents an API operation that is involved to a network activity.
+   * 
+ * + * .google.rpc.context.AttributeContext.Api api = 6; + * + * @return Whether the api field is set. + */ + public boolean hasApi() { + return api_ != null; + } + /** + * + * + *
+   * Represents an API operation that is involved to a network activity.
+   * 
+ * + * .google.rpc.context.AttributeContext.Api api = 6; + * + * @return The api. + */ + public com.google.rpc.context.AttributeContext.Api getApi() { + return api_ == null ? com.google.rpc.context.AttributeContext.Api.getDefaultInstance() : api_; + } + /** + * + * + *
+   * Represents an API operation that is involved to a network activity.
+   * 
+ * + * .google.rpc.context.AttributeContext.Api api = 6; + */ + public com.google.rpc.context.AttributeContext.ApiOrBuilder getApiOrBuilder() { + return getApi(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (source_ != null) { + output.writeMessage(1, getSource()); + } + if (destination_ != null) { + output.writeMessage(2, getDestination()); + } + if (request_ != null) { + output.writeMessage(3, getRequest()); + } + if (response_ != null) { + output.writeMessage(4, getResponse()); + } + if (resource_ != null) { + output.writeMessage(5, getResource()); + } + if (api_ != null) { + output.writeMessage(6, getApi()); + } + if (origin_ != null) { + output.writeMessage(7, getOrigin()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (source_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSource()); + } + if (destination_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDestination()); + } + if (request_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRequest()); + } + if (response_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResponse()); + } + if (resource_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getResource()); + } + if (api_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getApi()); + } + if (origin_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getOrigin()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.rpc.context.AttributeContext)) { + return super.equals(obj); + } + com.google.rpc.context.AttributeContext other = (com.google.rpc.context.AttributeContext) obj; + + if (hasOrigin() != other.hasOrigin()) return false; + if (hasOrigin()) { + if (!getOrigin().equals(other.getOrigin())) return false; + } + if (hasSource() != other.hasSource()) return false; + if (hasSource()) { + if (!getSource().equals(other.getSource())) return false; + } + if (hasDestination() != other.hasDestination()) return false; + if (hasDestination()) { + if (!getDestination().equals(other.getDestination())) return false; + } + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest().equals(other.getRequest())) return false; + } + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse().equals(other.getResponse())) return false; + } + if (hasResource() != other.hasResource()) return false; + if (hasResource()) { + if (!getResource().equals(other.getResource())) return false; + } + if (hasApi() != other.hasApi()) return false; + if (hasApi()) { + if (!getApi().equals(other.getApi())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOrigin()) { + hash = (37 * hash) + ORIGIN_FIELD_NUMBER; + hash = (53 * hash) + getOrigin().hashCode(); + } + if (hasSource()) { + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + } + if (hasDestination()) { + hash = (37 * hash) + DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getDestination().hashCode(); + } + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (hasResource()) { + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + } + if (hasApi()) { + hash = (37 * hash) + API_FIELD_NUMBER; + hash = (53 * hash) + getApi().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.rpc.context.AttributeContext parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.rpc.context.AttributeContext parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.rpc.context.AttributeContext 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.rpc.context.AttributeContext parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.rpc.context.AttributeContext parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.rpc.context.AttributeContext parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.rpc.context.AttributeContext parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.rpc.context.AttributeContext parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.rpc.context.AttributeContext prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * This message defines the standard attribute vocabulary for Google APIs.
+   * An attribute is a piece of metadata that describes an activity on a network
+   * service. For example, the size of an HTTP request, or the status code of
+   * an HTTP response.
+   * Each attribute has a type and a name, which is logically defined as
+   * a proto message field in `AttributeContext`. The field type becomes the
+   * attribute type, and the field path becomes the attribute name. For example,
+   * the attribute `source.ip` maps to field `AttributeContext.source.ip`.
+   * This message definition is guaranteed not to have any wire breaking change.
+   * So you can use it directly for passing attributes across different systems.
+   * NOTE: Different system may generate different subset of attributes. Please
+   * verify the system specification before relying on an attribute generated
+   * a system.
+   * 
+ * + * Protobuf type {@code google.rpc.context.AttributeContext} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.rpc.context.AttributeContext) + com.google.rpc.context.AttributeContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.rpc.context.AttributeContext.class, + com.google.rpc.context.AttributeContext.Builder.class); + } + + // Construct using com.google.rpc.context.AttributeContext.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (originBuilder_ == null) { + origin_ = null; + } else { + origin_ = null; + originBuilder_ = null; + } + if (sourceBuilder_ == null) { + source_ = null; + } else { + source_ = null; + sourceBuilder_ = null; + } + if (destinationBuilder_ == null) { + destination_ = null; + } else { + destination_ = null; + destinationBuilder_ = null; + } + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (resourceBuilder_ == null) { + resource_ = null; + } else { + resource_ = null; + resourceBuilder_ = null; + } + if (apiBuilder_ == null) { + api_ = null; + } else { + api_ = null; + apiBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_descriptor; + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext getDefaultInstanceForType() { + return com.google.rpc.context.AttributeContext.getDefaultInstance(); + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext build() { + com.google.rpc.context.AttributeContext result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext buildPartial() { + com.google.rpc.context.AttributeContext result = + new com.google.rpc.context.AttributeContext(this); + if (originBuilder_ == null) { + result.origin_ = origin_; + } else { + result.origin_ = originBuilder_.build(); + } + if (sourceBuilder_ == null) { + result.source_ = source_; + } else { + result.source_ = sourceBuilder_.build(); + } + if (destinationBuilder_ == null) { + result.destination_ = destination_; + } else { + result.destination_ = destinationBuilder_.build(); + } + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (resourceBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = resourceBuilder_.build(); + } + if (apiBuilder_ == null) { + result.api_ = api_; + } else { + result.api_ = apiBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + 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) { + return super.clearField(field); + } + + @java.lang.Override + 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) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + 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.rpc.context.AttributeContext) { + return mergeFrom((com.google.rpc.context.AttributeContext) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.rpc.context.AttributeContext other) { + if (other == com.google.rpc.context.AttributeContext.getDefaultInstance()) return this; + if (other.hasOrigin()) { + mergeOrigin(other.getOrigin()); + } + if (other.hasSource()) { + mergeSource(other.getSource()); + } + if (other.hasDestination()) { + mergeDestination(other.getDestination()); + } + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.hasResource()) { + mergeResource(other.getResource()); + } + if (other.hasApi()) { + mergeApi(other.getApi()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.rpc.context.AttributeContext parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.rpc.context.AttributeContext) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.rpc.context.AttributeContext.Peer origin_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Peer, + com.google.rpc.context.AttributeContext.Peer.Builder, + com.google.rpc.context.AttributeContext.PeerOrBuilder> + originBuilder_; + /** + * + * + *
+     * The origin of a network activity. In a multi hop network activity,
+     * the origin represents the sender of the first hop. For the first hop,
+     * the `source` and the `origin` must have the same content.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer origin = 7; + * + * @return Whether the origin field is set. + */ + public boolean hasOrigin() { + return originBuilder_ != null || origin_ != null; + } + /** + * + * + *
+     * The origin of a network activity. In a multi hop network activity,
+     * the origin represents the sender of the first hop. For the first hop,
+     * the `source` and the `origin` must have the same content.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer origin = 7; + * + * @return The origin. + */ + public com.google.rpc.context.AttributeContext.Peer getOrigin() { + if (originBuilder_ == null) { + return origin_ == null + ? com.google.rpc.context.AttributeContext.Peer.getDefaultInstance() + : origin_; + } else { + return originBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The origin of a network activity. In a multi hop network activity,
+     * the origin represents the sender of the first hop. For the first hop,
+     * the `source` and the `origin` must have the same content.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer origin = 7; + */ + public Builder setOrigin(com.google.rpc.context.AttributeContext.Peer value) { + if (originBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + origin_ = value; + onChanged(); + } else { + originBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The origin of a network activity. In a multi hop network activity,
+     * the origin represents the sender of the first hop. For the first hop,
+     * the `source` and the `origin` must have the same content.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer origin = 7; + */ + public Builder setOrigin(com.google.rpc.context.AttributeContext.Peer.Builder builderForValue) { + if (originBuilder_ == null) { + origin_ = builderForValue.build(); + onChanged(); + } else { + originBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The origin of a network activity. In a multi hop network activity,
+     * the origin represents the sender of the first hop. For the first hop,
+     * the `source` and the `origin` must have the same content.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer origin = 7; + */ + public Builder mergeOrigin(com.google.rpc.context.AttributeContext.Peer value) { + if (originBuilder_ == null) { + if (origin_ != null) { + origin_ = + com.google.rpc.context.AttributeContext.Peer.newBuilder(origin_) + .mergeFrom(value) + .buildPartial(); + } else { + origin_ = value; + } + onChanged(); + } else { + originBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The origin of a network activity. In a multi hop network activity,
+     * the origin represents the sender of the first hop. For the first hop,
+     * the `source` and the `origin` must have the same content.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer origin = 7; + */ + public Builder clearOrigin() { + if (originBuilder_ == null) { + origin_ = null; + onChanged(); + } else { + origin_ = null; + originBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The origin of a network activity. In a multi hop network activity,
+     * the origin represents the sender of the first hop. For the first hop,
+     * the `source` and the `origin` must have the same content.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer origin = 7; + */ + public com.google.rpc.context.AttributeContext.Peer.Builder getOriginBuilder() { + + onChanged(); + return getOriginFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The origin of a network activity. In a multi hop network activity,
+     * the origin represents the sender of the first hop. For the first hop,
+     * the `source` and the `origin` must have the same content.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer origin = 7; + */ + public com.google.rpc.context.AttributeContext.PeerOrBuilder getOriginOrBuilder() { + if (originBuilder_ != null) { + return originBuilder_.getMessageOrBuilder(); + } else { + return origin_ == null + ? com.google.rpc.context.AttributeContext.Peer.getDefaultInstance() + : origin_; + } + } + /** + * + * + *
+     * The origin of a network activity. In a multi hop network activity,
+     * the origin represents the sender of the first hop. For the first hop,
+     * the `source` and the `origin` must have the same content.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer origin = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Peer, + com.google.rpc.context.AttributeContext.Peer.Builder, + com.google.rpc.context.AttributeContext.PeerOrBuilder> + getOriginFieldBuilder() { + if (originBuilder_ == null) { + originBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Peer, + com.google.rpc.context.AttributeContext.Peer.Builder, + com.google.rpc.context.AttributeContext.PeerOrBuilder>( + getOrigin(), getParentForChildren(), isClean()); + origin_ = null; + } + return originBuilder_; + } + + private com.google.rpc.context.AttributeContext.Peer source_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Peer, + com.google.rpc.context.AttributeContext.Peer.Builder, + com.google.rpc.context.AttributeContext.PeerOrBuilder> + sourceBuilder_; + /** + * + * + *
+     * The source of a network activity, such as starting a TCP connection.
+     * In a multi hop network activity, the source represents the sender of the
+     * last hop.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer source = 1; + * + * @return Whether the source field is set. + */ + public boolean hasSource() { + return sourceBuilder_ != null || source_ != null; + } + /** + * + * + *
+     * The source of a network activity, such as starting a TCP connection.
+     * In a multi hop network activity, the source represents the sender of the
+     * last hop.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer source = 1; + * + * @return The source. + */ + public com.google.rpc.context.AttributeContext.Peer getSource() { + if (sourceBuilder_ == null) { + return source_ == null + ? com.google.rpc.context.AttributeContext.Peer.getDefaultInstance() + : source_; + } else { + return sourceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The source of a network activity, such as starting a TCP connection.
+     * In a multi hop network activity, the source represents the sender of the
+     * last hop.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer source = 1; + */ + public Builder setSource(com.google.rpc.context.AttributeContext.Peer value) { + if (sourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + sourceBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The source of a network activity, such as starting a TCP connection.
+     * In a multi hop network activity, the source represents the sender of the
+     * last hop.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer source = 1; + */ + public Builder setSource(com.google.rpc.context.AttributeContext.Peer.Builder builderForValue) { + if (sourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + sourceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The source of a network activity, such as starting a TCP connection.
+     * In a multi hop network activity, the source represents the sender of the
+     * last hop.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer source = 1; + */ + public Builder mergeSource(com.google.rpc.context.AttributeContext.Peer value) { + if (sourceBuilder_ == null) { + if (source_ != null) { + source_ = + com.google.rpc.context.AttributeContext.Peer.newBuilder(source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + sourceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The source of a network activity, such as starting a TCP connection.
+     * In a multi hop network activity, the source represents the sender of the
+     * last hop.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer source = 1; + */ + public Builder clearSource() { + if (sourceBuilder_ == null) { + source_ = null; + onChanged(); + } else { + source_ = null; + sourceBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The source of a network activity, such as starting a TCP connection.
+     * In a multi hop network activity, the source represents the sender of the
+     * last hop.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer source = 1; + */ + public com.google.rpc.context.AttributeContext.Peer.Builder getSourceBuilder() { + + onChanged(); + return getSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The source of a network activity, such as starting a TCP connection.
+     * In a multi hop network activity, the source represents the sender of the
+     * last hop.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer source = 1; + */ + public com.google.rpc.context.AttributeContext.PeerOrBuilder getSourceOrBuilder() { + if (sourceBuilder_ != null) { + return sourceBuilder_.getMessageOrBuilder(); + } else { + return source_ == null + ? com.google.rpc.context.AttributeContext.Peer.getDefaultInstance() + : source_; + } + } + /** + * + * + *
+     * The source of a network activity, such as starting a TCP connection.
+     * In a multi hop network activity, the source represents the sender of the
+     * last hop.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer source = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Peer, + com.google.rpc.context.AttributeContext.Peer.Builder, + com.google.rpc.context.AttributeContext.PeerOrBuilder> + getSourceFieldBuilder() { + if (sourceBuilder_ == null) { + sourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Peer, + com.google.rpc.context.AttributeContext.Peer.Builder, + com.google.rpc.context.AttributeContext.PeerOrBuilder>( + getSource(), getParentForChildren(), isClean()); + source_ = null; + } + return sourceBuilder_; + } + + private com.google.rpc.context.AttributeContext.Peer destination_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Peer, + com.google.rpc.context.AttributeContext.Peer.Builder, + com.google.rpc.context.AttributeContext.PeerOrBuilder> + destinationBuilder_; + /** + * + * + *
+     * The destination of a network activity, such as accepting a TCP connection.
+     * In a multi hop network activity, the destination represents the receiver of
+     * the last hop.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer destination = 2; + * + * @return Whether the destination field is set. + */ + public boolean hasDestination() { + return destinationBuilder_ != null || destination_ != null; + } + /** + * + * + *
+     * The destination of a network activity, such as accepting a TCP connection.
+     * In a multi hop network activity, the destination represents the receiver of
+     * the last hop.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer destination = 2; + * + * @return The destination. + */ + public com.google.rpc.context.AttributeContext.Peer getDestination() { + if (destinationBuilder_ == null) { + return destination_ == null + ? com.google.rpc.context.AttributeContext.Peer.getDefaultInstance() + : destination_; + } else { + return destinationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The destination of a network activity, such as accepting a TCP connection.
+     * In a multi hop network activity, the destination represents the receiver of
+     * the last hop.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer destination = 2; + */ + public Builder setDestination(com.google.rpc.context.AttributeContext.Peer value) { + if (destinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destination_ = value; + onChanged(); + } else { + destinationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The destination of a network activity, such as accepting a TCP connection.
+     * In a multi hop network activity, the destination represents the receiver of
+     * the last hop.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer destination = 2; + */ + public Builder setDestination( + com.google.rpc.context.AttributeContext.Peer.Builder builderForValue) { + if (destinationBuilder_ == null) { + destination_ = builderForValue.build(); + onChanged(); + } else { + destinationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The destination of a network activity, such as accepting a TCP connection.
+     * In a multi hop network activity, the destination represents the receiver of
+     * the last hop.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer destination = 2; + */ + public Builder mergeDestination(com.google.rpc.context.AttributeContext.Peer value) { + if (destinationBuilder_ == null) { + if (destination_ != null) { + destination_ = + com.google.rpc.context.AttributeContext.Peer.newBuilder(destination_) + .mergeFrom(value) + .buildPartial(); + } else { + destination_ = value; + } + onChanged(); + } else { + destinationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The destination of a network activity, such as accepting a TCP connection.
+     * In a multi hop network activity, the destination represents the receiver of
+     * the last hop.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer destination = 2; + */ + public Builder clearDestination() { + if (destinationBuilder_ == null) { + destination_ = null; + onChanged(); + } else { + destination_ = null; + destinationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The destination of a network activity, such as accepting a TCP connection.
+     * In a multi hop network activity, the destination represents the receiver of
+     * the last hop.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer destination = 2; + */ + public com.google.rpc.context.AttributeContext.Peer.Builder getDestinationBuilder() { + + onChanged(); + return getDestinationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The destination of a network activity, such as accepting a TCP connection.
+     * In a multi hop network activity, the destination represents the receiver of
+     * the last hop.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer destination = 2; + */ + public com.google.rpc.context.AttributeContext.PeerOrBuilder getDestinationOrBuilder() { + if (destinationBuilder_ != null) { + return destinationBuilder_.getMessageOrBuilder(); + } else { + return destination_ == null + ? com.google.rpc.context.AttributeContext.Peer.getDefaultInstance() + : destination_; + } + } + /** + * + * + *
+     * The destination of a network activity, such as accepting a TCP connection.
+     * In a multi hop network activity, the destination represents the receiver of
+     * the last hop.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer destination = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Peer, + com.google.rpc.context.AttributeContext.Peer.Builder, + com.google.rpc.context.AttributeContext.PeerOrBuilder> + getDestinationFieldBuilder() { + if (destinationBuilder_ == null) { + destinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Peer, + com.google.rpc.context.AttributeContext.Peer.Builder, + com.google.rpc.context.AttributeContext.PeerOrBuilder>( + getDestination(), getParentForChildren(), isClean()); + destination_ = null; + } + return destinationBuilder_; + } + + private com.google.rpc.context.AttributeContext.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Request, + com.google.rpc.context.AttributeContext.Request.Builder, + com.google.rpc.context.AttributeContext.RequestOrBuilder> + requestBuilder_; + /** + * + * + *
+     * Represents a network request, such as an HTTP request.
+     * 
+ * + * .google.rpc.context.AttributeContext.Request request = 3; + * + * @return Whether the request field is set. + */ + public boolean hasRequest() { + return requestBuilder_ != null || request_ != null; + } + /** + * + * + *
+     * Represents a network request, such as an HTTP request.
+     * 
+ * + * .google.rpc.context.AttributeContext.Request request = 3; + * + * @return The request. + */ + public com.google.rpc.context.AttributeContext.Request getRequest() { + if (requestBuilder_ == null) { + return request_ == null + ? com.google.rpc.context.AttributeContext.Request.getDefaultInstance() + : request_; + } else { + return requestBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Represents a network request, such as an HTTP request.
+     * 
+ * + * .google.rpc.context.AttributeContext.Request request = 3; + */ + public Builder setRequest(com.google.rpc.context.AttributeContext.Request value) { + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Represents a network request, such as an HTTP request.
+     * 
+ * + * .google.rpc.context.AttributeContext.Request request = 3; + */ + public Builder setRequest( + com.google.rpc.context.AttributeContext.Request.Builder builderForValue) { + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Represents a network request, such as an HTTP request.
+     * 
+ * + * .google.rpc.context.AttributeContext.Request request = 3; + */ + public Builder mergeRequest(com.google.rpc.context.AttributeContext.Request value) { + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + com.google.rpc.context.AttributeContext.Request.newBuilder(request_) + .mergeFrom(value) + .buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Represents a network request, such as an HTTP request.
+     * 
+ * + * .google.rpc.context.AttributeContext.Request request = 3; + */ + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Represents a network request, such as an HTTP request.
+     * 
+ * + * .google.rpc.context.AttributeContext.Request request = 3; + */ + public com.google.rpc.context.AttributeContext.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Represents a network request, such as an HTTP request.
+     * 
+ * + * .google.rpc.context.AttributeContext.Request request = 3; + */ + public com.google.rpc.context.AttributeContext.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null + ? com.google.rpc.context.AttributeContext.Request.getDefaultInstance() + : request_; + } + } + /** + * + * + *
+     * Represents a network request, such as an HTTP request.
+     * 
+ * + * .google.rpc.context.AttributeContext.Request request = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Request, + com.google.rpc.context.AttributeContext.Request.Builder, + com.google.rpc.context.AttributeContext.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Request, + com.google.rpc.context.AttributeContext.Request.Builder, + com.google.rpc.context.AttributeContext.RequestOrBuilder>( + getRequest(), getParentForChildren(), isClean()); + request_ = null; + } + return requestBuilder_; + } + + private com.google.rpc.context.AttributeContext.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Response, + com.google.rpc.context.AttributeContext.Response.Builder, + com.google.rpc.context.AttributeContext.ResponseOrBuilder> + responseBuilder_; + /** + * + * + *
+     * Represents a network response, such as an HTTP response.
+     * 
+ * + * .google.rpc.context.AttributeContext.Response response = 4; + * + * @return Whether the response field is set. + */ + public boolean hasResponse() { + return responseBuilder_ != null || response_ != null; + } + /** + * + * + *
+     * Represents a network response, such as an HTTP response.
+     * 
+ * + * .google.rpc.context.AttributeContext.Response response = 4; + * + * @return The response. + */ + public com.google.rpc.context.AttributeContext.Response getResponse() { + if (responseBuilder_ == null) { + return response_ == null + ? com.google.rpc.context.AttributeContext.Response.getDefaultInstance() + : response_; + } else { + return responseBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Represents a network response, such as an HTTP response.
+     * 
+ * + * .google.rpc.context.AttributeContext.Response response = 4; + */ + public Builder setResponse(com.google.rpc.context.AttributeContext.Response value) { + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Represents a network response, such as an HTTP response.
+     * 
+ * + * .google.rpc.context.AttributeContext.Response response = 4; + */ + public Builder setResponse( + com.google.rpc.context.AttributeContext.Response.Builder builderForValue) { + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Represents a network response, such as an HTTP response.
+     * 
+ * + * .google.rpc.context.AttributeContext.Response response = 4; + */ + public Builder mergeResponse(com.google.rpc.context.AttributeContext.Response value) { + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + com.google.rpc.context.AttributeContext.Response.newBuilder(response_) + .mergeFrom(value) + .buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Represents a network response, such as an HTTP response.
+     * 
+ * + * .google.rpc.context.AttributeContext.Response response = 4; + */ + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Represents a network response, such as an HTTP response.
+     * 
+ * + * .google.rpc.context.AttributeContext.Response response = 4; + */ + public com.google.rpc.context.AttributeContext.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Represents a network response, such as an HTTP response.
+     * 
+ * + * .google.rpc.context.AttributeContext.Response response = 4; + */ + public com.google.rpc.context.AttributeContext.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null + ? com.google.rpc.context.AttributeContext.Response.getDefaultInstance() + : response_; + } + } + /** + * + * + *
+     * Represents a network response, such as an HTTP response.
+     * 
+ * + * .google.rpc.context.AttributeContext.Response response = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Response, + com.google.rpc.context.AttributeContext.Response.Builder, + com.google.rpc.context.AttributeContext.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Response, + com.google.rpc.context.AttributeContext.Response.Builder, + com.google.rpc.context.AttributeContext.ResponseOrBuilder>( + getResponse(), getParentForChildren(), isClean()); + response_ = null; + } + return responseBuilder_; + } + + private com.google.rpc.context.AttributeContext.Resource resource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Resource, + com.google.rpc.context.AttributeContext.Resource.Builder, + com.google.rpc.context.AttributeContext.ResourceOrBuilder> + resourceBuilder_; + /** + * + * + *
+     * Represents a target resource that is involved with a network activity.
+     * If multiple resources are involved with an activity, this must be the
+     * primary one.
+     * 
+ * + * .google.rpc.context.AttributeContext.Resource resource = 5; + * + * @return Whether the resource field is set. + */ + public boolean hasResource() { + return resourceBuilder_ != null || resource_ != null; + } + /** + * + * + *
+     * Represents a target resource that is involved with a network activity.
+     * If multiple resources are involved with an activity, this must be the
+     * primary one.
+     * 
+ * + * .google.rpc.context.AttributeContext.Resource resource = 5; + * + * @return The resource. + */ + public com.google.rpc.context.AttributeContext.Resource getResource() { + if (resourceBuilder_ == null) { + return resource_ == null + ? com.google.rpc.context.AttributeContext.Resource.getDefaultInstance() + : resource_; + } else { + return resourceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Represents a target resource that is involved with a network activity.
+     * If multiple resources are involved with an activity, this must be the
+     * primary one.
+     * 
+ * + * .google.rpc.context.AttributeContext.Resource resource = 5; + */ + public Builder setResource(com.google.rpc.context.AttributeContext.Resource value) { + if (resourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + resourceBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Represents a target resource that is involved with a network activity.
+     * If multiple resources are involved with an activity, this must be the
+     * primary one.
+     * 
+ * + * .google.rpc.context.AttributeContext.Resource resource = 5; + */ + public Builder setResource( + com.google.rpc.context.AttributeContext.Resource.Builder builderForValue) { + if (resourceBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + resourceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Represents a target resource that is involved with a network activity.
+     * If multiple resources are involved with an activity, this must be the
+     * primary one.
+     * 
+ * + * .google.rpc.context.AttributeContext.Resource resource = 5; + */ + public Builder mergeResource(com.google.rpc.context.AttributeContext.Resource value) { + if (resourceBuilder_ == null) { + if (resource_ != null) { + resource_ = + com.google.rpc.context.AttributeContext.Resource.newBuilder(resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + resourceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Represents a target resource that is involved with a network activity.
+     * If multiple resources are involved with an activity, this must be the
+     * primary one.
+     * 
+ * + * .google.rpc.context.AttributeContext.Resource resource = 5; + */ + public Builder clearResource() { + if (resourceBuilder_ == null) { + resource_ = null; + onChanged(); + } else { + resource_ = null; + resourceBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Represents a target resource that is involved with a network activity.
+     * If multiple resources are involved with an activity, this must be the
+     * primary one.
+     * 
+ * + * .google.rpc.context.AttributeContext.Resource resource = 5; + */ + public com.google.rpc.context.AttributeContext.Resource.Builder getResourceBuilder() { + + onChanged(); + return getResourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Represents a target resource that is involved with a network activity.
+     * If multiple resources are involved with an activity, this must be the
+     * primary one.
+     * 
+ * + * .google.rpc.context.AttributeContext.Resource resource = 5; + */ + public com.google.rpc.context.AttributeContext.ResourceOrBuilder getResourceOrBuilder() { + if (resourceBuilder_ != null) { + return resourceBuilder_.getMessageOrBuilder(); + } else { + return resource_ == null + ? com.google.rpc.context.AttributeContext.Resource.getDefaultInstance() + : resource_; + } + } + /** + * + * + *
+     * Represents a target resource that is involved with a network activity.
+     * If multiple resources are involved with an activity, this must be the
+     * primary one.
+     * 
+ * + * .google.rpc.context.AttributeContext.Resource resource = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Resource, + com.google.rpc.context.AttributeContext.Resource.Builder, + com.google.rpc.context.AttributeContext.ResourceOrBuilder> + getResourceFieldBuilder() { + if (resourceBuilder_ == null) { + resourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Resource, + com.google.rpc.context.AttributeContext.Resource.Builder, + com.google.rpc.context.AttributeContext.ResourceOrBuilder>( + getResource(), getParentForChildren(), isClean()); + resource_ = null; + } + return resourceBuilder_; + } + + private com.google.rpc.context.AttributeContext.Api api_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Api, + com.google.rpc.context.AttributeContext.Api.Builder, + com.google.rpc.context.AttributeContext.ApiOrBuilder> + apiBuilder_; + /** + * + * + *
+     * Represents an API operation that is involved to a network activity.
+     * 
+ * + * .google.rpc.context.AttributeContext.Api api = 6; + * + * @return Whether the api field is set. + */ + public boolean hasApi() { + return apiBuilder_ != null || api_ != null; + } + /** + * + * + *
+     * Represents an API operation that is involved to a network activity.
+     * 
+ * + * .google.rpc.context.AttributeContext.Api api = 6; + * + * @return The api. + */ + public com.google.rpc.context.AttributeContext.Api getApi() { + if (apiBuilder_ == null) { + return api_ == null + ? com.google.rpc.context.AttributeContext.Api.getDefaultInstance() + : api_; + } else { + return apiBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Represents an API operation that is involved to a network activity.
+     * 
+ * + * .google.rpc.context.AttributeContext.Api api = 6; + */ + public Builder setApi(com.google.rpc.context.AttributeContext.Api value) { + if (apiBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + api_ = value; + onChanged(); + } else { + apiBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Represents an API operation that is involved to a network activity.
+     * 
+ * + * .google.rpc.context.AttributeContext.Api api = 6; + */ + public Builder setApi(com.google.rpc.context.AttributeContext.Api.Builder builderForValue) { + if (apiBuilder_ == null) { + api_ = builderForValue.build(); + onChanged(); + } else { + apiBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Represents an API operation that is involved to a network activity.
+     * 
+ * + * .google.rpc.context.AttributeContext.Api api = 6; + */ + public Builder mergeApi(com.google.rpc.context.AttributeContext.Api value) { + if (apiBuilder_ == null) { + if (api_ != null) { + api_ = + com.google.rpc.context.AttributeContext.Api.newBuilder(api_) + .mergeFrom(value) + .buildPartial(); + } else { + api_ = value; + } + onChanged(); + } else { + apiBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Represents an API operation that is involved to a network activity.
+     * 
+ * + * .google.rpc.context.AttributeContext.Api api = 6; + */ + public Builder clearApi() { + if (apiBuilder_ == null) { + api_ = null; + onChanged(); + } else { + api_ = null; + apiBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Represents an API operation that is involved to a network activity.
+     * 
+ * + * .google.rpc.context.AttributeContext.Api api = 6; + */ + public com.google.rpc.context.AttributeContext.Api.Builder getApiBuilder() { + + onChanged(); + return getApiFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Represents an API operation that is involved to a network activity.
+     * 
+ * + * .google.rpc.context.AttributeContext.Api api = 6; + */ + public com.google.rpc.context.AttributeContext.ApiOrBuilder getApiOrBuilder() { + if (apiBuilder_ != null) { + return apiBuilder_.getMessageOrBuilder(); + } else { + return api_ == null + ? com.google.rpc.context.AttributeContext.Api.getDefaultInstance() + : api_; + } + } + /** + * + * + *
+     * Represents an API operation that is involved to a network activity.
+     * 
+ * + * .google.rpc.context.AttributeContext.Api api = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Api, + com.google.rpc.context.AttributeContext.Api.Builder, + com.google.rpc.context.AttributeContext.ApiOrBuilder> + getApiFieldBuilder() { + if (apiBuilder_ == null) { + apiBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Api, + com.google.rpc.context.AttributeContext.Api.Builder, + com.google.rpc.context.AttributeContext.ApiOrBuilder>( + getApi(), getParentForChildren(), isClean()); + api_ = null; + } + return apiBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.rpc.context.AttributeContext) + } + + // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext) + private static final com.google.rpc.context.AttributeContext DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.rpc.context.AttributeContext(); + } + + public static com.google.rpc.context.AttributeContext getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AttributeContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AttributeContext(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContextOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContextOrBuilder.java new file mode 100644 index 00000000..14bb5237 --- /dev/null +++ b/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContextOrBuilder.java @@ -0,0 +1,294 @@ +/* + * 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/rpc/context/attribute_context.proto + +package com.google.rpc.context; + +public interface AttributeContextOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.rpc.context.AttributeContext) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The origin of a network activity. In a multi hop network activity,
+   * the origin represents the sender of the first hop. For the first hop,
+   * the `source` and the `origin` must have the same content.
+   * 
+ * + * .google.rpc.context.AttributeContext.Peer origin = 7; + * + * @return Whether the origin field is set. + */ + boolean hasOrigin(); + /** + * + * + *
+   * The origin of a network activity. In a multi hop network activity,
+   * the origin represents the sender of the first hop. For the first hop,
+   * the `source` and the `origin` must have the same content.
+   * 
+ * + * .google.rpc.context.AttributeContext.Peer origin = 7; + * + * @return The origin. + */ + com.google.rpc.context.AttributeContext.Peer getOrigin(); + /** + * + * + *
+   * The origin of a network activity. In a multi hop network activity,
+   * the origin represents the sender of the first hop. For the first hop,
+   * the `source` and the `origin` must have the same content.
+   * 
+ * + * .google.rpc.context.AttributeContext.Peer origin = 7; + */ + com.google.rpc.context.AttributeContext.PeerOrBuilder getOriginOrBuilder(); + + /** + * + * + *
+   * The source of a network activity, such as starting a TCP connection.
+   * In a multi hop network activity, the source represents the sender of the
+   * last hop.
+   * 
+ * + * .google.rpc.context.AttributeContext.Peer source = 1; + * + * @return Whether the source field is set. + */ + boolean hasSource(); + /** + * + * + *
+   * The source of a network activity, such as starting a TCP connection.
+   * In a multi hop network activity, the source represents the sender of the
+   * last hop.
+   * 
+ * + * .google.rpc.context.AttributeContext.Peer source = 1; + * + * @return The source. + */ + com.google.rpc.context.AttributeContext.Peer getSource(); + /** + * + * + *
+   * The source of a network activity, such as starting a TCP connection.
+   * In a multi hop network activity, the source represents the sender of the
+   * last hop.
+   * 
+ * + * .google.rpc.context.AttributeContext.Peer source = 1; + */ + com.google.rpc.context.AttributeContext.PeerOrBuilder getSourceOrBuilder(); + + /** + * + * + *
+   * The destination of a network activity, such as accepting a TCP connection.
+   * In a multi hop network activity, the destination represents the receiver of
+   * the last hop.
+   * 
+ * + * .google.rpc.context.AttributeContext.Peer destination = 2; + * + * @return Whether the destination field is set. + */ + boolean hasDestination(); + /** + * + * + *
+   * The destination of a network activity, such as accepting a TCP connection.
+   * In a multi hop network activity, the destination represents the receiver of
+   * the last hop.
+   * 
+ * + * .google.rpc.context.AttributeContext.Peer destination = 2; + * + * @return The destination. + */ + com.google.rpc.context.AttributeContext.Peer getDestination(); + /** + * + * + *
+   * The destination of a network activity, such as accepting a TCP connection.
+   * In a multi hop network activity, the destination represents the receiver of
+   * the last hop.
+   * 
+ * + * .google.rpc.context.AttributeContext.Peer destination = 2; + */ + com.google.rpc.context.AttributeContext.PeerOrBuilder getDestinationOrBuilder(); + + /** + * + * + *
+   * Represents a network request, such as an HTTP request.
+   * 
+ * + * .google.rpc.context.AttributeContext.Request request = 3; + * + * @return Whether the request field is set. + */ + boolean hasRequest(); + /** + * + * + *
+   * Represents a network request, such as an HTTP request.
+   * 
+ * + * .google.rpc.context.AttributeContext.Request request = 3; + * + * @return The request. + */ + com.google.rpc.context.AttributeContext.Request getRequest(); + /** + * + * + *
+   * Represents a network request, such as an HTTP request.
+   * 
+ * + * .google.rpc.context.AttributeContext.Request request = 3; + */ + com.google.rpc.context.AttributeContext.RequestOrBuilder getRequestOrBuilder(); + + /** + * + * + *
+   * Represents a network response, such as an HTTP response.
+   * 
+ * + * .google.rpc.context.AttributeContext.Response response = 4; + * + * @return Whether the response field is set. + */ + boolean hasResponse(); + /** + * + * + *
+   * Represents a network response, such as an HTTP response.
+   * 
+ * + * .google.rpc.context.AttributeContext.Response response = 4; + * + * @return The response. + */ + com.google.rpc.context.AttributeContext.Response getResponse(); + /** + * + * + *
+   * Represents a network response, such as an HTTP response.
+   * 
+ * + * .google.rpc.context.AttributeContext.Response response = 4; + */ + com.google.rpc.context.AttributeContext.ResponseOrBuilder getResponseOrBuilder(); + + /** + * + * + *
+   * Represents a target resource that is involved with a network activity.
+   * If multiple resources are involved with an activity, this must be the
+   * primary one.
+   * 
+ * + * .google.rpc.context.AttributeContext.Resource resource = 5; + * + * @return Whether the resource field is set. + */ + boolean hasResource(); + /** + * + * + *
+   * Represents a target resource that is involved with a network activity.
+   * If multiple resources are involved with an activity, this must be the
+   * primary one.
+   * 
+ * + * .google.rpc.context.AttributeContext.Resource resource = 5; + * + * @return The resource. + */ + com.google.rpc.context.AttributeContext.Resource getResource(); + /** + * + * + *
+   * Represents a target resource that is involved with a network activity.
+   * If multiple resources are involved with an activity, this must be the
+   * primary one.
+   * 
+ * + * .google.rpc.context.AttributeContext.Resource resource = 5; + */ + com.google.rpc.context.AttributeContext.ResourceOrBuilder getResourceOrBuilder(); + + /** + * + * + *
+   * Represents an API operation that is involved to a network activity.
+   * 
+ * + * .google.rpc.context.AttributeContext.Api api = 6; + * + * @return Whether the api field is set. + */ + boolean hasApi(); + /** + * + * + *
+   * Represents an API operation that is involved to a network activity.
+   * 
+ * + * .google.rpc.context.AttributeContext.Api api = 6; + * + * @return The api. + */ + com.google.rpc.context.AttributeContext.Api getApi(); + /** + * + * + *
+   * Represents an API operation that is involved to a network activity.
+   * 
+ * + * .google.rpc.context.AttributeContext.Api api = 6; + */ + com.google.rpc.context.AttributeContext.ApiOrBuilder getApiOrBuilder(); +} diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContextProto.java b/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContextProto.java new file mode 100644 index 00000000..53933324 --- /dev/null +++ b/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContextProto.java @@ -0,0 +1,249 @@ +/* + * 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/rpc/context/attribute_context.proto + +package com.google.rpc.context; + +public final class AttributeContextProto { + private AttributeContextProto() {} + + 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_rpc_context_AttributeContext_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_rpc_context_AttributeContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_rpc_context_AttributeContext_Peer_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_rpc_context_AttributeContext_Peer_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_rpc_context_AttributeContext_Peer_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_rpc_context_AttributeContext_Peer_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_rpc_context_AttributeContext_Api_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_rpc_context_AttributeContext_Api_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_rpc_context_AttributeContext_Auth_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_rpc_context_AttributeContext_Auth_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_rpc_context_AttributeContext_Request_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_rpc_context_AttributeContext_Request_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_rpc_context_AttributeContext_Request_HeadersEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_rpc_context_AttributeContext_Request_HeadersEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_rpc_context_AttributeContext_Response_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_rpc_context_AttributeContext_Response_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_rpc_context_AttributeContext_Response_HeadersEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_rpc_context_AttributeContext_Response_HeadersEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_rpc_context_AttributeContext_Resource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_rpc_context_AttributeContext_Resource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_rpc_context_AttributeContext_Resource_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_rpc_context_AttributeContext_Resource_LabelsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n*google/rpc/context/attribute_context.p" + + "roto\022\022google.rpc.context\032\034google/protobu" + + "f/struct.proto\032\037google/protobuf/timestam" + + "p.proto\"\306\014\n\020AttributeContext\0229\n\006origin\030\007" + + " \001(\0132).google.rpc.context.AttributeConte" + + "xt.Peer\0229\n\006source\030\001 \001(\0132).google.rpc.con" + + "text.AttributeContext.Peer\022>\n\013destinatio" + + "n\030\002 \001(\0132).google.rpc.context.AttributeCo" + + "ntext.Peer\022=\n\007request\030\003 \001(\0132,.google.rpc" + + ".context.AttributeContext.Request\022?\n\010res" + + "ponse\030\004 \001(\0132-.google.rpc.context.Attribu" + + "teContext.Response\022?\n\010resource\030\005 \001(\0132-.g" + + "oogle.rpc.context.AttributeContext.Resou" + + "rce\0225\n\003api\030\006 \001(\0132(.google.rpc.context.At" + + "tributeContext.Api\032\276\001\n\004Peer\022\n\n\002ip\030\001 \001(\t\022" + + "\014\n\004port\030\002 \001(\003\022E\n\006labels\030\006 \003(\01325.google.r" + + "pc.context.AttributeContext.Peer.LabelsE" + + "ntry\022\021\n\tprincipal\030\007 \001(\t\022\023\n\013region_code\030\010" + + " \001(\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001\032L\n\003Api\022\017\n\007service\030\001 \001(\t\022\021\n\to" + + "peration\030\002 \001(\t\022\020\n\010protocol\030\003 \001(\t\022\017\n\007vers" + + "ion\030\004 \001(\t\032\177\n\004Auth\022\021\n\tprincipal\030\001 \001(\t\022\021\n\t" + + "audiences\030\002 \003(\t\022\021\n\tpresenter\030\003 \001(\t\022\'\n\006cl" + + "aims\030\004 \001(\0132\027.google.protobuf.Struct\022\025\n\ra" + + "ccess_levels\030\005 \003(\t\032\357\002\n\007Request\022\n\n\002id\030\001 \001" + + "(\t\022\016\n\006method\030\002 \001(\t\022J\n\007headers\030\003 \003(\01329.go" + + "ogle.rpc.context.AttributeContext.Reques" + + "t.HeadersEntry\022\014\n\004path\030\004 \001(\t\022\014\n\004host\030\005 \001" + + "(\t\022\016\n\006scheme\030\006 \001(\t\022\r\n\005query\030\007 \001(\t\022(\n\004tim" + + "e\030\t \001(\0132\032.google.protobuf.Timestamp\022\014\n\004s" + + "ize\030\n \001(\003\022\020\n\010protocol\030\013 \001(\t\022\016\n\006reason\030\014 " + + "\001(\t\0227\n\004auth\030\r \001(\0132).google.rpc.context.A" + + "ttributeContext.Auth\032.\n\014HeadersEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032\315\001\n\010Respons" + + "e\022\014\n\004code\030\001 \001(\003\022\014\n\004size\030\002 \001(\003\022K\n\007headers" + + "\030\003 \003(\0132:.google.rpc.context.AttributeCon" + + "text.Response.HeadersEntry\022(\n\004time\030\004 \001(\013" + + "2\032.google.protobuf.Timestamp\032.\n\014HeadersE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032\261\001\n" + + "\010Resource\022\017\n\007service\030\001 \001(\t\022\014\n\004name\030\002 \001(\t" + + "\022\014\n\004type\030\003 \001(\t\022I\n\006labels\030\004 \003(\01329.google." + + "rpc.context.AttributeContext.Resource.La" + + "belsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001B\213\001\n\026com.google.rpc.cont" + + "extB\025AttributeContextProtoP\001ZUgoogle.gol" + + "ang.org/genproto/googleapis/rpc/context/" + + "attribute_context;attribute_context\370\001\001b\006" + + "proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_rpc_context_AttributeContext_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_rpc_context_AttributeContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_rpc_context_AttributeContext_descriptor, + new java.lang.String[] { + "Origin", "Source", "Destination", "Request", "Response", "Resource", "Api", + }); + internal_static_google_rpc_context_AttributeContext_Peer_descriptor = + internal_static_google_rpc_context_AttributeContext_descriptor.getNestedTypes().get(0); + internal_static_google_rpc_context_AttributeContext_Peer_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_rpc_context_AttributeContext_Peer_descriptor, + new java.lang.String[] { + "Ip", "Port", "Labels", "Principal", "RegionCode", + }); + internal_static_google_rpc_context_AttributeContext_Peer_LabelsEntry_descriptor = + internal_static_google_rpc_context_AttributeContext_Peer_descriptor.getNestedTypes().get(0); + internal_static_google_rpc_context_AttributeContext_Peer_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_rpc_context_AttributeContext_Peer_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_rpc_context_AttributeContext_Api_descriptor = + internal_static_google_rpc_context_AttributeContext_descriptor.getNestedTypes().get(1); + internal_static_google_rpc_context_AttributeContext_Api_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_rpc_context_AttributeContext_Api_descriptor, + new java.lang.String[] { + "Service", "Operation", "Protocol", "Version", + }); + internal_static_google_rpc_context_AttributeContext_Auth_descriptor = + internal_static_google_rpc_context_AttributeContext_descriptor.getNestedTypes().get(2); + internal_static_google_rpc_context_AttributeContext_Auth_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_rpc_context_AttributeContext_Auth_descriptor, + new java.lang.String[] { + "Principal", "Audiences", "Presenter", "Claims", "AccessLevels", + }); + internal_static_google_rpc_context_AttributeContext_Request_descriptor = + internal_static_google_rpc_context_AttributeContext_descriptor.getNestedTypes().get(3); + internal_static_google_rpc_context_AttributeContext_Request_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_rpc_context_AttributeContext_Request_descriptor, + new java.lang.String[] { + "Id", + "Method", + "Headers", + "Path", + "Host", + "Scheme", + "Query", + "Time", + "Size", + "Protocol", + "Reason", + "Auth", + }); + internal_static_google_rpc_context_AttributeContext_Request_HeadersEntry_descriptor = + internal_static_google_rpc_context_AttributeContext_Request_descriptor + .getNestedTypes() + .get(0); + internal_static_google_rpc_context_AttributeContext_Request_HeadersEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_rpc_context_AttributeContext_Request_HeadersEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_rpc_context_AttributeContext_Response_descriptor = + internal_static_google_rpc_context_AttributeContext_descriptor.getNestedTypes().get(4); + internal_static_google_rpc_context_AttributeContext_Response_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_rpc_context_AttributeContext_Response_descriptor, + new java.lang.String[] { + "Code", "Size", "Headers", "Time", + }); + internal_static_google_rpc_context_AttributeContext_Response_HeadersEntry_descriptor = + internal_static_google_rpc_context_AttributeContext_Response_descriptor + .getNestedTypes() + .get(0); + internal_static_google_rpc_context_AttributeContext_Response_HeadersEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_rpc_context_AttributeContext_Response_HeadersEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_rpc_context_AttributeContext_Resource_descriptor = + internal_static_google_rpc_context_AttributeContext_descriptor.getNestedTypes().get(5); + internal_static_google_rpc_context_AttributeContext_Resource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_rpc_context_AttributeContext_Resource_descriptor, + new java.lang.String[] { + "Service", "Name", "Type", "Labels", + }); + internal_static_google_rpc_context_AttributeContext_Resource_LabelsEntry_descriptor = + internal_static_google_rpc_context_AttributeContext_Resource_descriptor + .getNestedTypes() + .get(0); + internal_static_google_rpc_context_AttributeContext_Resource_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_rpc_context_AttributeContext_Resource_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-common-protos/src/main/java/com/google/type/CalendarPeriod.java b/proto-google-common-protos/src/main/java/com/google/type/CalendarPeriod.java index 8000c99f..511108ad 100644 --- a/proto-google-common-protos/src/main/java/com/google/type/CalendarPeriod.java +++ b/proto-google-common-protos/src/main/java/com/google/type/CalendarPeriod.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/type/calendar_period.proto package com.google.type; /** + * + * *
  * A `CalendarPeriod` represents the abstract concept of a time period that has
  * a canonical start. Grammatically, "the start of the current
@@ -12,9 +29,10 @@
  *
  * Protobuf enum {@code google.type.CalendarPeriod}
  */
-public enum CalendarPeriod
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * Undefined period, raises an error.
    * 
@@ -23,6 +41,8 @@ public enum CalendarPeriod */ CALENDAR_PERIOD_UNSPECIFIED(0), /** + * + * *
    * A day.
    * 
@@ -31,6 +51,8 @@ public enum CalendarPeriod */ DAY(1), /** + * + * *
    * A week. Weeks begin on Monday, following
    * [ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date).
@@ -40,6 +62,8 @@ public enum CalendarPeriod
    */
   WEEK(2),
   /**
+   *
+   *
    * 
    * A fortnight. The first calendar fortnight of the year begins at the start
    * of week 1 according to
@@ -50,6 +74,8 @@ public enum CalendarPeriod
    */
   FORTNIGHT(3),
   /**
+   *
+   *
    * 
    * A month.
    * 
@@ -58,6 +84,8 @@ public enum CalendarPeriod */ MONTH(4), /** + * + * *
    * A quarter. Quarters start on dates 1-Jan, 1-Apr, 1-Jul, and 1-Oct of each
    * year.
@@ -67,6 +95,8 @@ public enum CalendarPeriod
    */
   QUARTER(5),
   /**
+   *
+   *
    * 
    * A half-year. Half-years start on dates 1-Jan and 1-Jul.
    * 
@@ -75,6 +105,8 @@ public enum CalendarPeriod */ HALF(6), /** + * + * *
    * A year.
    * 
@@ -86,6 +118,8 @@ public enum CalendarPeriod ; /** + * + * *
    * Undefined period, raises an error.
    * 
@@ -94,6 +128,8 @@ public enum CalendarPeriod */ public static final int CALENDAR_PERIOD_UNSPECIFIED_VALUE = 0; /** + * + * *
    * A day.
    * 
@@ -102,6 +138,8 @@ public enum CalendarPeriod */ public static final int DAY_VALUE = 1; /** + * + * *
    * A week. Weeks begin on Monday, following
    * [ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date).
@@ -111,6 +149,8 @@ public enum CalendarPeriod
    */
   public static final int WEEK_VALUE = 2;
   /**
+   *
+   *
    * 
    * A fortnight. The first calendar fortnight of the year begins at the start
    * of week 1 according to
@@ -121,6 +161,8 @@ public enum CalendarPeriod
    */
   public static final int FORTNIGHT_VALUE = 3;
   /**
+   *
+   *
    * 
    * A month.
    * 
@@ -129,6 +171,8 @@ public enum CalendarPeriod */ public static final int MONTH_VALUE = 4; /** + * + * *
    * A quarter. Quarters start on dates 1-Jan, 1-Apr, 1-Jul, and 1-Oct of each
    * year.
@@ -138,6 +182,8 @@ public enum CalendarPeriod
    */
   public static final int QUARTER_VALUE = 5;
   /**
+   *
+   *
    * 
    * A half-year. Half-years start on dates 1-Jan and 1-Jul.
    * 
@@ -146,6 +192,8 @@ public enum CalendarPeriod */ public static final int HALF_VALUE = 6; /** + * + * *
    * A year.
    * 
@@ -154,69 +202,79 @@ public enum CalendarPeriod */ public static final int YEAR_VALUE = 7; - public final int getNumber() { if (this == UNRECOGNIZED) { - throw new IllegalArgumentException( + throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ - @Deprecated + @java.lang.Deprecated public static CalendarPeriod valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static CalendarPeriod forNumber(int value) { switch (value) { - case 0: return CALENDAR_PERIOD_UNSPECIFIED; - case 1: return DAY; - case 2: return WEEK; - case 3: return FORTNIGHT; - case 4: return MONTH; - case 5: return QUARTER; - case 6: return HALF; - case 7: return YEAR; - default: return null; + case 0: + return CALENDAR_PERIOD_UNSPECIFIED; + case 1: + return DAY; + case 2: + return WEEK; + case 3: + return FORTNIGHT; + case 4: + return MONTH; + case 5: + return QUARTER; + case 6: + return HALF; + case 7: + return YEAR; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - CalendarPeriod> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CalendarPeriod findValueByNumber(int number) { - return CalendarPeriod.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CalendarPeriod findValueByNumber(int number) { + return CalendarPeriod.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.type.CalendarPeriodProto.getDescriptor().getEnumTypes().get(0); } private static final CalendarPeriod[] VALUES = values(); - public static CalendarPeriod valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static CalendarPeriod valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -232,4 +290,3 @@ private CalendarPeriod(int value) { // @@protoc_insertion_point(enum_scope:google.type.CalendarPeriod) } - diff --git a/proto-google-common-protos/src/main/java/com/google/type/CalendarPeriodProto.java b/proto-google-common-protos/src/main/java/com/google/type/CalendarPeriodProto.java index 45507759..c4f03850 100644 --- a/proto-google-common-protos/src/main/java/com/google/type/CalendarPeriodProto.java +++ b/proto-google-common-protos/src/main/java/com/google/type/CalendarPeriodProto.java @@ -1,3 +1,18 @@ +/* + * 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/type/calendar_period.proto @@ -5,45 +20,33 @@ public final class CalendarPeriodProto { private CalendarPeriodProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { - String[] descriptorData = { - "\n!google/type/calendar_period.proto\022\013goo" + - "gle.type*\177\n\016CalendarPeriod\022\037\n\033CALENDAR_P" + - "ERIOD_UNSPECIFIED\020\000\022\007\n\003DAY\020\001\022\010\n\004WEEK\020\002\022\r" + - "\n\tFORTNIGHT\020\003\022\t\n\005MONTH\020\004\022\013\n\007QUARTER\020\005\022\010\n" + - "\004HALF\020\006\022\010\n\004YEAR\020\007Bx\n\017com.google.typeB\023Ca" + - "lendarPeriodProtoP\001ZHgoogle.golang.org/g" + - "enproto/googleapis/type/calendarperiod;c" + - "alendarperiod\242\002\003GTPb\006proto3" + java.lang.String[] descriptorData = { + "\n!google/type/calendar_period.proto\022\013goo" + + "gle.type*\177\n\016CalendarPeriod\022\037\n\033CALENDAR_P" + + "ERIOD_UNSPECIFIED\020\000\022\007\n\003DAY\020\001\022\010\n\004WEEK\020\002\022\r" + + "\n\tFORTNIGHT\020\003\022\t\n\005MONTH\020\004\022\013\n\007QUARTER\020\005\022\010\n" + + "\004HALF\020\006\022\010\n\004YEAR\020\007Bx\n\017com.google.typeB\023Ca" + + "lendarPeriodProtoP\001ZHgoogle.golang.org/g" + + "enproto/googleapis/type/calendarperiod;c" + + "alendarperiod\242\002\003GTPb\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-common-protos/src/main/java/com/google/type/Color.java b/proto-google-common-protos/src/main/java/com/google/type/Color.java index 91d4bafd..11523317 100644 --- a/proto-google-common-protos/src/main/java/com/google/type/Color.java +++ b/proto-google-common-protos/src/main/java/com/google/type/Color.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/type/color.proto package com.google.type; /** + * + * *
  * Represents a color in the RGBA color space. This representation is designed
  * for simplicity of conversion to/from color representations in various
@@ -112,32 +129,37 @@
  *
  * Protobuf type {@code google.type.Color}
  */
-public  final class Color extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Color extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.type.Color)
     ColorOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Color.newBuilder() to construct.
   private Color(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private Color() {
+
+  private Color() {}
+
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new Color();
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Color(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
-    int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
         com.google.protobuf.UnknownFieldSet.newBuilder();
     try {
@@ -148,74 +170,79 @@ private Color(
           case 0:
             done = true;
             break;
-          case 13: {
-
-            red_ = input.readFloat();
-            break;
-          }
-          case 21: {
-
-            green_ = input.readFloat();
-            break;
-          }
-          case 29: {
-
-            blue_ = input.readFloat();
-            break;
-          }
-          case 34: {
-            com.google.protobuf.FloatValue.Builder subBuilder = null;
-            if (alpha_ != null) {
-              subBuilder = alpha_.toBuilder();
+          case 13:
+            {
+              red_ = input.readFloat();
+              break;
             }
-            alpha_ = input.readMessage(com.google.protobuf.FloatValue.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(alpha_);
-              alpha_ = subBuilder.buildPartial();
+          case 21:
+            {
+              green_ = input.readFloat();
+              break;
             }
+          case 29:
+            {
+              blue_ = input.readFloat();
+              break;
+            }
+          case 34:
+            {
+              com.google.protobuf.FloatValue.Builder subBuilder = null;
+              if (alpha_ != null) {
+                subBuilder = alpha_.toBuilder();
+              }
+              alpha_ =
+                  input.readMessage(com.google.protobuf.FloatValue.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(alpha_);
+                alpha_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.type.ColorProto.internal_static_google_type_Color_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return com.google.type.ColorProto.internal_static_google_type_Color_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            Color.class, Builder.class);
+            com.google.type.Color.class, com.google.type.Color.Builder.class);
   }
 
   public static final int RED_FIELD_NUMBER = 1;
   private float red_;
   /**
+   *
+   *
    * 
    * The amount of red in the color as a value in the interval [0, 1].
    * 
* * float red = 1; + * + * @return The red. */ public float getRed() { return red_; @@ -224,11 +251,15 @@ public float getRed() { public static final int GREEN_FIELD_NUMBER = 2; private float green_; /** + * + * *
    * The amount of green in the color as a value in the interval [0, 1].
    * 
* * float green = 2; + * + * @return The green. */ public float getGreen() { return green_; @@ -237,11 +268,15 @@ public float getGreen() { public static final int BLUE_FIELD_NUMBER = 3; private float blue_; /** + * + * *
    * The amount of blue in the color as a value in the interval [0, 1].
    * 
* * float blue = 3; + * + * @return The blue. */ public float getBlue() { return blue_; @@ -250,6 +285,8 @@ public float getBlue() { public static final int ALPHA_FIELD_NUMBER = 4; private com.google.protobuf.FloatValue alpha_; /** + * + * *
    * The fraction of this color that should be applied to the pixel. That is,
    * the final pixel color is defined by the equation:
@@ -263,11 +300,15 @@ public float getBlue() {
    * 
* * .google.protobuf.FloatValue alpha = 4; + * + * @return Whether the alpha field is set. */ public boolean hasAlpha() { return alpha_ != null; } /** + * + * *
    * The fraction of this color that should be applied to the pixel. That is,
    * the final pixel color is defined by the equation:
@@ -281,11 +322,15 @@ public boolean hasAlpha() {
    * 
* * .google.protobuf.FloatValue alpha = 4; + * + * @return The alpha. */ public com.google.protobuf.FloatValue getAlpha() { return alpha_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : alpha_; } /** + * + * *
    * The fraction of this color that should be applied to the pixel. That is,
    * the final pixel color is defined by the equation:
@@ -305,7 +350,8 @@ public com.google.protobuf.FloatValueOrBuilder getAlphaOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-  @Override
+
+  @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
     if (isInitialized == 1) return true;
@@ -315,9 +361,8 @@ public final boolean isInitialized() {
     return true;
   }
 
-  @Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  @java.lang.Override
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (red_ != 0F) {
       output.writeFloat(1, red_);
     }
@@ -333,62 +378,54 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     unknownFields.writeTo(output);
   }
 
-  @Override
+  @java.lang.Override
   public int getSerializedSize() {
     int size = memoizedSize;
     if (size != -1) return size;
 
     size = 0;
     if (red_ != 0F) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeFloatSize(1, red_);
+      size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, red_);
     }
     if (green_ != 0F) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeFloatSize(2, green_);
+      size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, green_);
     }
     if (blue_ != 0F) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeFloatSize(3, blue_);
+      size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, blue_);
     }
     if (alpha_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getAlpha());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAlpha());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
     return size;
   }
 
-  @Override
-  public boolean equals(final Object obj) {
+  @java.lang.Override
+  public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
-    if (!(obj instanceof Color)) {
+    if (!(obj instanceof com.google.type.Color)) {
       return super.equals(obj);
     }
-    Color other = (Color) obj;
-
-    if (Float.floatToIntBits(getRed())
-        != Float.floatToIntBits(
-            other.getRed())) return false;
-    if (Float.floatToIntBits(getGreen())
-        != Float.floatToIntBits(
-            other.getGreen())) return false;
-    if (Float.floatToIntBits(getBlue())
-        != Float.floatToIntBits(
-            other.getBlue())) return false;
+    com.google.type.Color other = (com.google.type.Color) obj;
+
+    if (java.lang.Float.floatToIntBits(getRed()) != java.lang.Float.floatToIntBits(other.getRed()))
+      return false;
+    if (java.lang.Float.floatToIntBits(getGreen())
+        != java.lang.Float.floatToIntBits(other.getGreen())) return false;
+    if (java.lang.Float.floatToIntBits(getBlue())
+        != java.lang.Float.floatToIntBits(other.getBlue())) return false;
     if (hasAlpha() != other.hasAlpha()) return false;
     if (hasAlpha()) {
-      if (!getAlpha()
-          .equals(other.getAlpha())) return false;
+      if (!getAlpha().equals(other.getAlpha())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
 
-  @Override
+  @java.lang.Override
   public int hashCode() {
     if (memoizedHashCode != 0) {
       return memoizedHashCode;
@@ -396,14 +433,11 @@ public int hashCode() {
     int hash = 41;
     hash = (19 * hash) + getDescriptor().hashCode();
     hash = (37 * hash) + RED_FIELD_NUMBER;
-    hash = (53 * hash) + Float.floatToIntBits(
-        getRed());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(getRed());
     hash = (37 * hash) + GREEN_FIELD_NUMBER;
-    hash = (53 * hash) + Float.floatToIntBits(
-        getGreen());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(getGreen());
     hash = (37 * hash) + BLUE_FIELD_NUMBER;
-    hash = (53 * hash) + Float.floatToIntBits(
-        getBlue());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(getBlue());
     if (hasAlpha()) {
       hash = (37 * hash) + ALPHA_FIELD_NUMBER;
       hash = (53 * hash) + getAlpha().hashCode();
@@ -413,97 +447,103 @@ public int hashCode() {
     return hash;
   }
 
-  public static Color parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.type.Color parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Color parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.type.Color parseFrom(
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Color parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.type.Color parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Color parseFrom(
+
+  public static com.google.type.Color parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Color parseFrom(byte[] data)
+
+  public static com.google.type.Color parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static Color parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.type.Color parseFrom(
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static Color parseFrom(java.io.InputStream input)
+
+  public static com.google.type.Color 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 Color parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.type.Color parseFrom(
+      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 Color parseDelimitedFrom(java.io.InputStream input)
+
+  public static com.google.type.Color 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 Color parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+  public static com.google.type.Color parseDelimitedFrom(
+      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 Color parseFrom(
-      com.google.protobuf.CodedInputStream input)
+
+  public static com.google.type.Color 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 Color parseFrom(
+
+  public static com.google.type.Color 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();
   }
 
-  @Override
-  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(Color prototype) {
+
+  public static Builder newBuilder(com.google.type.Color prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-  @Override
+
+  @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);
   }
 
-  @Override
-  protected Builder newBuilderForType(
-      BuilderParent parent) {
+  @java.lang.Override
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Represents a color in the RGBA color space. This representation is designed
    * for simplicity of conversion to/from color representations in various
@@ -612,21 +652,20 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.type.Color}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.type.Color)
       com.google.type.ColorOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.type.ColorProto.internal_static_google_type_Color_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return com.google.type.ColorProto.internal_static_google_type_Color_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              Color.class, Builder.class);
+              com.google.type.Color.class, com.google.type.Color.Builder.class);
     }
 
     // Construct using com.google.type.Color.newBuilder()
@@ -634,17 +673,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       red_ = 0F;
@@ -662,29 +700,28 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.type.ColorProto.internal_static_google_type_Color_descriptor;
     }
 
-    @Override
-    public Color getDefaultInstanceForType() {
-      return Color.getDefaultInstance();
+    @java.lang.Override
+    public com.google.type.Color getDefaultInstanceForType() {
+      return com.google.type.Color.getDefaultInstance();
     }
 
-    @Override
-    public Color build() {
-      Color result = buildPartial();
+    @java.lang.Override
+    public com.google.type.Color build() {
+      com.google.type.Color result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public Color buildPartial() {
-      Color result = new Color(this);
+    @java.lang.Override
+    public com.google.type.Color buildPartial() {
+      com.google.type.Color result = new com.google.type.Color(this);
       result.red_ = red_;
       result.green_ = green_;
       result.blue_ = blue_;
@@ -697,50 +734,51 @@ public Color buildPartial() {
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof Color) {
-        return mergeFrom((Color)other);
+      if (other instanceof com.google.type.Color) {
+        return mergeFrom((com.google.type.Color) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(Color other) {
-      if (other == Color.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.type.Color other) {
+      if (other == com.google.type.Color.getDefaultInstance()) return this;
       if (other.getRed() != 0F) {
         setRed(other.getRed());
       }
@@ -758,21 +796,21 @@ public Builder mergeFrom(Color other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      Color parsedMessage = null;
+      com.google.type.Color parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (Color) e.getUnfinishedMessage();
+        parsedMessage = (com.google.type.Color) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -782,115 +820,154 @@ public Builder mergeFrom(
       return this;
     }
 
-    private float red_ ;
+    private float red_;
     /**
+     *
+     *
      * 
      * The amount of red in the color as a value in the interval [0, 1].
      * 
* * float red = 1; + * + * @return The red. */ public float getRed() { return red_; } /** + * + * *
      * The amount of red in the color as a value in the interval [0, 1].
      * 
* * float red = 1; + * + * @param value The red to set. + * @return This builder for chaining. */ public Builder setRed(float value) { - + red_ = value; onChanged(); return this; } /** + * + * *
      * The amount of red in the color as a value in the interval [0, 1].
      * 
* * float red = 1; + * + * @return This builder for chaining. */ public Builder clearRed() { - + red_ = 0F; onChanged(); return this; } - private float green_ ; + private float green_; /** + * + * *
      * The amount of green in the color as a value in the interval [0, 1].
      * 
* * float green = 2; + * + * @return The green. */ public float getGreen() { return green_; } /** + * + * *
      * The amount of green in the color as a value in the interval [0, 1].
      * 
* * float green = 2; + * + * @param value The green to set. + * @return This builder for chaining. */ public Builder setGreen(float value) { - + green_ = value; onChanged(); return this; } /** + * + * *
      * The amount of green in the color as a value in the interval [0, 1].
      * 
* * float green = 2; + * + * @return This builder for chaining. */ public Builder clearGreen() { - + green_ = 0F; onChanged(); return this; } - private float blue_ ; + private float blue_; /** + * + * *
      * The amount of blue in the color as a value in the interval [0, 1].
      * 
* * float blue = 3; + * + * @return The blue. */ public float getBlue() { return blue_; } /** + * + * *
      * The amount of blue in the color as a value in the interval [0, 1].
      * 
* * float blue = 3; + * + * @param value The blue to set. + * @return This builder for chaining. */ public Builder setBlue(float value) { - + blue_ = value; onChanged(); return this; } /** + * + * *
      * The amount of blue in the color as a value in the interval [0, 1].
      * 
* * float blue = 3; + * + * @return This builder for chaining. */ public Builder clearBlue() { - + blue_ = 0F; onChanged(); return this; @@ -898,8 +975,13 @@ public Builder clearBlue() { private com.google.protobuf.FloatValue alpha_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder> alphaBuilder_; + com.google.protobuf.FloatValue, + com.google.protobuf.FloatValue.Builder, + com.google.protobuf.FloatValueOrBuilder> + alphaBuilder_; /** + * + * *
      * The fraction of this color that should be applied to the pixel. That is,
      * the final pixel color is defined by the equation:
@@ -913,11 +995,15 @@ public Builder clearBlue() {
      * 
* * .google.protobuf.FloatValue alpha = 4; + * + * @return Whether the alpha field is set. */ public boolean hasAlpha() { return alphaBuilder_ != null || alpha_ != null; } /** + * + * *
      * The fraction of this color that should be applied to the pixel. That is,
      * the final pixel color is defined by the equation:
@@ -931,6 +1017,8 @@ public boolean hasAlpha() {
      * 
* * .google.protobuf.FloatValue alpha = 4; + * + * @return The alpha. */ public com.google.protobuf.FloatValue getAlpha() { if (alphaBuilder_ == null) { @@ -940,6 +1028,8 @@ public com.google.protobuf.FloatValue getAlpha() { } } /** + * + * *
      * The fraction of this color that should be applied to the pixel. That is,
      * the final pixel color is defined by the equation:
@@ -968,6 +1058,8 @@ public Builder setAlpha(com.google.protobuf.FloatValue value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The fraction of this color that should be applied to the pixel. That is,
      * the final pixel color is defined by the equation:
@@ -982,8 +1074,7 @@ public Builder setAlpha(com.google.protobuf.FloatValue value) {
      *
      * .google.protobuf.FloatValue alpha = 4;
      */
-    public Builder setAlpha(
-        com.google.protobuf.FloatValue.Builder builderForValue) {
+    public Builder setAlpha(com.google.protobuf.FloatValue.Builder builderForValue) {
       if (alphaBuilder_ == null) {
         alpha_ = builderForValue.build();
         onChanged();
@@ -994,6 +1085,8 @@ public Builder setAlpha(
       return this;
     }
     /**
+     *
+     *
      * 
      * The fraction of this color that should be applied to the pixel. That is,
      * the final pixel color is defined by the equation:
@@ -1012,7 +1105,7 @@ public Builder mergeAlpha(com.google.protobuf.FloatValue value) {
       if (alphaBuilder_ == null) {
         if (alpha_ != null) {
           alpha_ =
-            com.google.protobuf.FloatValue.newBuilder(alpha_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FloatValue.newBuilder(alpha_).mergeFrom(value).buildPartial();
         } else {
           alpha_ = value;
         }
@@ -1024,6 +1117,8 @@ public Builder mergeAlpha(com.google.protobuf.FloatValue value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The fraction of this color that should be applied to the pixel. That is,
      * the final pixel color is defined by the equation:
@@ -1050,6 +1145,8 @@ public Builder clearAlpha() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The fraction of this color that should be applied to the pixel. That is,
      * the final pixel color is defined by the equation:
@@ -1065,11 +1162,13 @@ public Builder clearAlpha() {
      * .google.protobuf.FloatValue alpha = 4;
      */
     public com.google.protobuf.FloatValue.Builder getAlphaBuilder() {
-      
+
       onChanged();
       return getAlphaFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The fraction of this color that should be applied to the pixel. That is,
      * the final pixel color is defined by the equation:
@@ -1088,11 +1187,12 @@ public com.google.protobuf.FloatValueOrBuilder getAlphaOrBuilder() {
       if (alphaBuilder_ != null) {
         return alphaBuilder_.getMessageOrBuilder();
       } else {
-        return alpha_ == null ?
-            com.google.protobuf.FloatValue.getDefaultInstance() : alpha_;
+        return alpha_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : alpha_;
       }
     }
     /**
+     *
+     *
      * 
      * The fraction of this color that should be applied to the pixel. That is,
      * the final pixel color is defined by the equation:
@@ -1108,68 +1208,69 @@ public com.google.protobuf.FloatValueOrBuilder getAlphaOrBuilder() {
      * .google.protobuf.FloatValue alpha = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder> 
+            com.google.protobuf.FloatValue,
+            com.google.protobuf.FloatValue.Builder,
+            com.google.protobuf.FloatValueOrBuilder>
         getAlphaFieldBuilder() {
       if (alphaBuilder_ == null) {
-        alphaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder>(
-                getAlpha(),
-                getParentForChildren(),
-                isClean());
+        alphaBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FloatValue,
+                com.google.protobuf.FloatValue.Builder,
+                com.google.protobuf.FloatValueOrBuilder>(
+                getAlpha(), getParentForChildren(), isClean());
         alpha_ = null;
       }
       return alphaBuilder_;
     }
-    @Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+
+    @java.lang.Override
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
-    @Override
+    @java.lang.Override
     public final Builder mergeUnknownFields(
         final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.type.Color)
   }
 
   // @@protoc_insertion_point(class_scope:google.type.Color)
-  private static final Color DEFAULT_INSTANCE;
+  private static final com.google.type.Color DEFAULT_INSTANCE;
+
   static {
-    DEFAULT_INSTANCE = new Color();
+    DEFAULT_INSTANCE = new com.google.type.Color();
   }
 
-  public static Color getDefaultInstance() {
+  public static com.google.type.Color getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @Override
-    public Color parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Color(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Color parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Color(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
   }
 
-  @Override
+  @java.lang.Override
   public com.google.protobuf.Parser getParserForType() {
     return PARSER;
   }
 
-  @Override
-  public Color getDefaultInstanceForType() {
+  @java.lang.Override
+  public com.google.type.Color getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-common-protos/src/main/java/com/google/type/ColorOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/type/ColorOrBuilder.java
index ecbebd8f..675c1500 100644
--- a/proto-google-common-protos/src/main/java/com/google/type/ColorOrBuilder.java
+++ b/proto-google-common-protos/src/main/java/com/google/type/ColorOrBuilder.java
@@ -1,40 +1,70 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/type/color.proto
 
 package com.google.type;
 
-public interface ColorOrBuilder extends
+public interface ColorOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.type.Color)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The amount of red in the color as a value in the interval [0, 1].
    * 
* * float red = 1; + * + * @return The red. */ float getRed(); /** + * + * *
    * The amount of green in the color as a value in the interval [0, 1].
    * 
* * float green = 2; + * + * @return The green. */ float getGreen(); /** + * + * *
    * The amount of blue in the color as a value in the interval [0, 1].
    * 
* * float blue = 3; + * + * @return The blue. */ float getBlue(); /** + * + * *
    * The fraction of this color that should be applied to the pixel. That is,
    * the final pixel color is defined by the equation:
@@ -48,9 +78,13 @@ public interface ColorOrBuilder extends
    * 
* * .google.protobuf.FloatValue alpha = 4; + * + * @return Whether the alpha field is set. */ boolean hasAlpha(); /** + * + * *
    * The fraction of this color that should be applied to the pixel. That is,
    * the final pixel color is defined by the equation:
@@ -64,9 +98,13 @@ public interface ColorOrBuilder extends
    * 
* * .google.protobuf.FloatValue alpha = 4; + * + * @return The alpha. */ com.google.protobuf.FloatValue getAlpha(); /** + * + * *
    * The fraction of this color that should be applied to the pixel. That is,
    * the final pixel color is defined by the equation:
diff --git a/proto-google-common-protos/src/main/java/com/google/type/ColorProto.java b/proto-google-common-protos/src/main/java/com/google/type/ColorProto.java
index 4a6deb23..1a93525b 100644
--- a/proto-google-common-protos/src/main/java/com/google/type/ColorProto.java
+++ b/proto-google-common-protos/src/main/java/com/google/type/ColorProto.java
@@ -1,3 +1,18 @@
+/*
+ * 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/type/color.proto
 
@@ -5,56 +20,47 @@
 
 public final class ColorProto {
   private ColorProto() {}
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistryLite registry) {
-  }
 
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions(
-        (com.google.protobuf.ExtensionRegistryLite) registry);
+  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_type_Color_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_type_Color_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_type_Color_fieldAccessorTable;
 
-  public static com.google.protobuf.Descriptors.FileDescriptor
-      getDescriptor() {
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     return descriptor;
   }
-  private static  com.google.protobuf.Descriptors.FileDescriptor
-      descriptor;
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
   static {
-    String[] descriptorData = {
-      "\n\027google/type/color.proto\022\013google.type\032\036" +
-      "google/protobuf/wrappers.proto\"]\n\005Color\022" +
-      "\013\n\003red\030\001 \001(\002\022\r\n\005green\030\002 \001(\002\022\014\n\004blue\030\003 \001(" +
-      "\002\022*\n\005alpha\030\004 \001(\0132\033.google.protobuf.Float" +
-      "ValueB`\n\017com.google.typeB\nColorProtoP\001Z6" +
-      "google.golang.org/genproto/googleapis/ty" +
-      "pe/color;color\370\001\001\242\002\003GTPb\006proto3"
+    java.lang.String[] descriptorData = {
+      "\n\027google/type/color.proto\022\013google.type\032\036"
+          + "google/protobuf/wrappers.proto\"]\n\005Color\022"
+          + "\013\n\003red\030\001 \001(\002\022\r\n\005green\030\002 \001(\002\022\014\n\004blue\030\003 \001("
+          + "\002\022*\n\005alpha\030\004 \001(\0132\033.google.protobuf.Float"
+          + "ValueB`\n\017com.google.typeB\nColorProtoP\001Z6"
+          + "google.golang.org/genproto/googleapis/ty"
+          + "pe/color;color\370\001\001\242\002\003GTPb\006proto3"
     };
-    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
-        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
-          public com.google.protobuf.ExtensionRegistry assignDescriptors(
-              com.google.protobuf.Descriptors.FileDescriptor root) {
-            descriptor = root;
-            return null;
-          }
-        };
-    com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-          com.google.protobuf.WrappersProto.getDescriptor(),
-        }, assigner);
-    internal_static_google_type_Color_descriptor =
-      getDescriptor().getMessageTypes().get(0);
-    internal_static_google_type_Color_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_type_Color_descriptor,
-        new String[] { "Red", "Green", "Blue", "Alpha", });
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.protobuf.WrappersProto.getDescriptor(),
+            });
+    internal_static_google_type_Color_descriptor = getDescriptor().getMessageTypes().get(0);
+    internal_static_google_type_Color_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_type_Color_descriptor,
+            new java.lang.String[] {
+              "Red", "Green", "Blue", "Alpha",
+            });
     com.google.protobuf.WrappersProto.getDescriptor();
   }
 
diff --git a/proto-google-common-protos/src/main/java/com/google/type/Date.java b/proto-google-common-protos/src/main/java/com/google/type/Date.java
index 0c8a6be8..bd268e27 100644
--- a/proto-google-common-protos/src/main/java/com/google/type/Date.java
+++ b/proto-google-common-protos/src/main/java/com/google/type/Date.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/type/date.proto
 
 package com.google.type;
 
 /**
+ *
+ *
  * 
  * Represents a whole or partial calendar date, e.g. a birthday. The time of day
  * and time zone are either specified elsewhere or are not significant. The date
@@ -17,32 +34,37 @@
  *
  * Protobuf type {@code google.type.Date}
  */
-public  final class Date extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Date extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.type.Date)
     DateOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Date.newBuilder() to construct.
   private Date(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private Date() {
+
+  private Date() {}
+
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new Date();
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Date(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
-    int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
         com.google.protobuf.UnknownFieldSet.newBuilder();
     try {
@@ -53,62 +75,65 @@ private Date(
           case 0:
             done = true;
             break;
-          case 8: {
-
-            year_ = input.readInt32();
-            break;
-          }
-          case 16: {
-
-            month_ = input.readInt32();
-            break;
-          }
-          case 24: {
-
-            day_ = input.readInt32();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 8:
+            {
+              year_ = input.readInt32();
+              break;
+            }
+          case 16:
+            {
+              month_ = input.readInt32();
+              break;
+            }
+          case 24:
+            {
+              day_ = input.readInt32();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.type.DateProto.internal_static_google_type_Date_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return com.google.type.DateProto.internal_static_google_type_Date_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            Date.class, Builder.class);
+            com.google.type.Date.class, com.google.type.Date.Builder.class);
   }
 
   public static final int YEAR_FIELD_NUMBER = 1;
   private int year_;
   /**
+   *
+   *
    * 
    * Year of date. Must be from 1 to 9999, or 0 if specifying a date without
    * a year.
    * 
* * int32 year = 1; + * + * @return The year. */ public int getYear() { return year_; @@ -117,12 +142,16 @@ public int getYear() { public static final int MONTH_FIELD_NUMBER = 2; private int month_; /** + * + * *
    * Month of year. Must be from 1 to 12, or 0 if specifying a year without a
    * month and day.
    * 
* * int32 month = 2; + * + * @return The month. */ public int getMonth() { return month_; @@ -131,6 +160,8 @@ public int getMonth() { public static final int DAY_FIELD_NUMBER = 3; private int day_; /** + * + * *
    * Day of month. Must be from 1 to 31 and valid for the year and month, or 0
    * if specifying a year by itself or a year and month where the day is not
@@ -138,13 +169,16 @@ public int getMonth() {
    * 
* * int32 day = 3; + * + * @return The day. */ public int getDay() { return day_; } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -154,9 +188,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (year_ != 0) { output.writeInt32(1, year_); } @@ -169,50 +202,44 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (year_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, year_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, year_); } if (month_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, month_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, month_); } if (day_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, day_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, day_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof Date)) { + if (!(obj instanceof com.google.type.Date)) { return super.equals(obj); } - Date other = (Date) obj; + com.google.type.Date other = (com.google.type.Date) obj; - if (getYear() - != other.getYear()) return false; - if (getMonth() - != other.getMonth()) return false; - if (getDay() - != other.getDay()) return false; + if (getYear() != other.getYear()) return false; + if (getMonth() != other.getMonth()) return false; + if (getDay() != other.getDay()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -230,97 +257,103 @@ public int hashCode() { return hash; } - public static Date parseFrom( - java.nio.ByteBuffer data) + public static com.google.type.Date parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Date parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.Date parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Date parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.type.Date parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Date parseFrom( + + public static com.google.type.Date parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Date parseFrom(byte[] data) + + public static com.google.type.Date parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Date parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.Date parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Date parseFrom(java.io.InputStream input) + + public static com.google.type.Date 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 Date parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.Date parseFrom( + 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 Date parseDelimitedFrom(java.io.InputStream input) + + public static com.google.type.Date 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 Date parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.Date parseDelimitedFrom( + 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 Date parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.type.Date 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 Date parseFrom( + + public static com.google.type.Date 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(Date prototype) { + + public static Builder newBuilder(com.google.type.Date prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents a whole or partial calendar date, e.g. a birthday. The time of day
    * and time zone are either specified elsewhere or are not significant. The date
@@ -334,21 +367,20 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.type.Date}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.type.Date)
       com.google.type.DateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.type.DateProto.internal_static_google_type_Date_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return com.google.type.DateProto.internal_static_google_type_Date_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              Date.class, Builder.class);
+              com.google.type.Date.class, com.google.type.Date.Builder.class);
     }
 
     // Construct using com.google.type.Date.newBuilder()
@@ -356,17 +388,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       year_ = 0;
@@ -378,29 +409,28 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.type.DateProto.internal_static_google_type_Date_descriptor;
     }
 
-    @Override
-    public Date getDefaultInstanceForType() {
-      return Date.getDefaultInstance();
+    @java.lang.Override
+    public com.google.type.Date getDefaultInstanceForType() {
+      return com.google.type.Date.getDefaultInstance();
     }
 
-    @Override
-    public Date build() {
-      Date result = buildPartial();
+    @java.lang.Override
+    public com.google.type.Date build() {
+      com.google.type.Date result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public Date buildPartial() {
-      Date result = new Date(this);
+    @java.lang.Override
+    public com.google.type.Date buildPartial() {
+      com.google.type.Date result = new com.google.type.Date(this);
       result.year_ = year_;
       result.month_ = month_;
       result.day_ = day_;
@@ -408,50 +438,51 @@ public Date buildPartial() {
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof Date) {
-        return mergeFrom((Date)other);
+      if (other instanceof com.google.type.Date) {
+        return mergeFrom((com.google.type.Date) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(Date other) {
-      if (other == Date.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.type.Date other) {
+      if (other == com.google.type.Date.getDefaultInstance()) return this;
       if (other.getYear() != 0) {
         setYear(other.getYear());
       }
@@ -466,21 +497,21 @@ public Builder mergeFrom(Date other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      Date parsedMessage = null;
+      com.google.type.Date parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (Date) e.getUnfinishedMessage();
+        parsedMessage = (com.google.type.Date) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -490,90 +521,118 @@ public Builder mergeFrom(
       return this;
     }
 
-    private int year_ ;
+    private int year_;
     /**
+     *
+     *
      * 
      * Year of date. Must be from 1 to 9999, or 0 if specifying a date without
      * a year.
      * 
* * int32 year = 1; + * + * @return The year. */ public int getYear() { return year_; } /** + * + * *
      * Year of date. Must be from 1 to 9999, or 0 if specifying a date without
      * a year.
      * 
* * int32 year = 1; + * + * @param value The year to set. + * @return This builder for chaining. */ public Builder setYear(int value) { - + year_ = value; onChanged(); return this; } /** + * + * *
      * Year of date. Must be from 1 to 9999, or 0 if specifying a date without
      * a year.
      * 
* * int32 year = 1; + * + * @return This builder for chaining. */ public Builder clearYear() { - + year_ = 0; onChanged(); return this; } - private int month_ ; + private int month_; /** + * + * *
      * Month of year. Must be from 1 to 12, or 0 if specifying a year without a
      * month and day.
      * 
* * int32 month = 2; + * + * @return The month. */ public int getMonth() { return month_; } /** + * + * *
      * Month of year. Must be from 1 to 12, or 0 if specifying a year without a
      * month and day.
      * 
* * int32 month = 2; + * + * @param value The month to set. + * @return This builder for chaining. */ public Builder setMonth(int value) { - + month_ = value; onChanged(); return this; } /** + * + * *
      * Month of year. Must be from 1 to 12, or 0 if specifying a year without a
      * month and day.
      * 
* * int32 month = 2; + * + * @return This builder for chaining. */ public Builder clearMonth() { - + month_ = 0; onChanged(); return this; } - private int day_ ; + private int day_; /** + * + * *
      * Day of month. Must be from 1 to 31 and valid for the year and month, or 0
      * if specifying a year by itself or a year and month where the day is not
@@ -581,11 +640,15 @@ public Builder clearMonth() {
      * 
* * int32 day = 3; + * + * @return The day. */ public int getDay() { return day_; } /** + * + * *
      * Day of month. Must be from 1 to 31 and valid for the year and month, or 0
      * if specifying a year by itself or a year and month where the day is not
@@ -593,14 +656,19 @@ public int getDay() {
      * 
* * int32 day = 3; + * + * @param value The day to set. + * @return This builder for chaining. */ public Builder setDay(int value) { - + day_ = value; onChanged(); return this; } /** + * + * *
      * Day of month. Must be from 1 to 31 and valid for the year and month, or 0
      * if specifying a year by itself or a year and month where the day is not
@@ -608,63 +676,63 @@ public Builder setDay(int value) {
      * 
* * int32 day = 3; + * + * @return This builder for chaining. */ public Builder clearDay() { - + day_ = 0; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.type.Date) } // @@protoc_insertion_point(class_scope:google.type.Date) - private static final Date DEFAULT_INSTANCE; + private static final com.google.type.Date DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new Date(); + DEFAULT_INSTANCE = new com.google.type.Date(); } - public static Date getDefaultInstance() { + public static com.google.type.Date getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public Date parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Date(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Date parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Date(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public Date getDefaultInstanceForType() { + @java.lang.Override + public com.google.type.Date getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/type/DateOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/type/DateOrBuilder.java index 65fa4756..572064a7 100644 --- a/proto-google-common-protos/src/main/java/com/google/type/DateOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/type/DateOrBuilder.java @@ -1,33 +1,59 @@ +/* + * 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/type/date.proto package com.google.type; -public interface DateOrBuilder extends +public interface DateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.type.Date) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Year of date. Must be from 1 to 9999, or 0 if specifying a date without
    * a year.
    * 
* * int32 year = 1; + * + * @return The year. */ int getYear(); /** + * + * *
    * Month of year. Must be from 1 to 12, or 0 if specifying a year without a
    * month and day.
    * 
* * int32 month = 2; + * + * @return The month. */ int getMonth(); /** + * + * *
    * Day of month. Must be from 1 to 31 and valid for the year and month, or 0
    * if specifying a year by itself or a year and month where the day is not
@@ -35,6 +61,8 @@ public interface DateOrBuilder extends
    * 
* * int32 day = 3; + * + * @return The day. */ int getDay(); } diff --git a/proto-google-common-protos/src/main/java/com/google/type/DateProto.java b/proto-google-common-protos/src/main/java/com/google/type/DateProto.java index e3518f30..f9fd29cc 100644 --- a/proto-google-common-protos/src/main/java/com/google/type/DateProto.java +++ b/proto-google-common-protos/src/main/java/com/google/type/DateProto.java @@ -1,3 +1,18 @@ +/* + * 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/type/date.proto @@ -5,53 +20,42 @@ public final class DateProto { private DateProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + 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_type_Date_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_type_Date_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_type_Date_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { - String[] descriptorData = { - "\n\026google/type/date.proto\022\013google.type\"0\n" + - "\004Date\022\014\n\004year\030\001 \001(\005\022\r\n\005month\030\002 \001(\005\022\013\n\003da" + - "y\030\003 \001(\005B]\n\017com.google.typeB\tDateProtoP\001Z" + - "4google.golang.org/genproto/googleapis/t" + - "ype/date;date\370\001\001\242\002\003GTPb\006proto3" + java.lang.String[] descriptorData = { + "\n\026google/type/date.proto\022\013google.type\"0\n" + + "\004Date\022\014\n\004year\030\001 \001(\005\022\r\n\005month\030\002 \001(\005\022\013\n\003da" + + "y\030\003 \001(\005B]\n\017com.google.typeB\tDateProtoP\001Z" + + "4google.golang.org/genproto/googleapis/t" + + "ype/date;date\370\001\001\242\002\003GTPb\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_google_type_Date_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_type_Date_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_type_Date_descriptor, - new String[] { "Year", "Month", "Day", }); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_type_Date_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_type_Date_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_type_Date_descriptor, + new java.lang.String[] { + "Year", "Month", "Day", + }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-common-protos/src/main/java/com/google/type/DateTime.java b/proto-google-common-protos/src/main/java/com/google/type/DateTime.java new file mode 100644 index 00000000..2420ef79 --- /dev/null +++ b/proto-google-common-protos/src/main/java/com/google/type/DateTime.java @@ -0,0 +1,1791 @@ +/* + * 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/type/datetime.proto + +package com.google.type; + +/** + * + * + *
+ * Represents civil time in one of a few possible ways:
+ *  * When utc_offset is set and time_zone is unset: a civil time on a calendar
+ *    day with a particular offset from UTC.
+ *  * When time_zone is set and utc_offset is unset: a civil time on a calendar
+ *    day in a particular time zone.
+ *  * When neither time_zone nor utc_offset is set: a civil time on a calendar
+ *    day in local time.
+ * The date is relative to the Proleptic Gregorian Calendar.
+ * If year is 0, the DateTime is considered not to have a specific year. month
+ * and day must have valid, non-zero values.
+ * This type is more flexible than some applications may want. Make sure to
+ * document and validate your application's limitations.
+ * 
+ * + * Protobuf type {@code google.type.DateTime} + */ +public final class DateTime extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.type.DateTime) + DateTimeOrBuilder { + private static final long serialVersionUID = 0L; + // Use DateTime.newBuilder() to construct. + private DateTime(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DateTime() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DateTime(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DateTime( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + year_ = input.readInt32(); + break; + } + case 16: + { + month_ = input.readInt32(); + break; + } + case 24: + { + day_ = input.readInt32(); + break; + } + case 32: + { + hours_ = input.readInt32(); + break; + } + case 40: + { + minutes_ = input.readInt32(); + break; + } + case 48: + { + seconds_ = input.readInt32(); + break; + } + case 56: + { + nanos_ = input.readInt32(); + break; + } + case 66: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (timeOffsetCase_ == 8) { + subBuilder = ((com.google.protobuf.Duration) timeOffset_).toBuilder(); + } + timeOffset_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Duration) timeOffset_); + timeOffset_ = subBuilder.buildPartial(); + } + timeOffsetCase_ = 8; + break; + } + case 74: + { + com.google.type.TimeZone.Builder subBuilder = null; + if (timeOffsetCase_ == 9) { + subBuilder = ((com.google.type.TimeZone) timeOffset_).toBuilder(); + } + timeOffset_ = input.readMessage(com.google.type.TimeZone.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.type.TimeZone) timeOffset_); + timeOffset_ = subBuilder.buildPartial(); + } + timeOffsetCase_ = 9; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.type.DateTimeProto.internal_static_google_type_DateTime_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.type.DateTimeProto.internal_static_google_type_DateTime_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.type.DateTime.class, com.google.type.DateTime.Builder.class); + } + + private int timeOffsetCase_ = 0; + private java.lang.Object timeOffset_; + + public enum TimeOffsetCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + UTC_OFFSET(8), + TIME_ZONE(9), + TIMEOFFSET_NOT_SET(0); + private final int value; + + private TimeOffsetCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TimeOffsetCase valueOf(int value) { + return forNumber(value); + } + + public static TimeOffsetCase forNumber(int value) { + switch (value) { + case 8: + return UTC_OFFSET; + case 9: + return TIME_ZONE; + case 0: + return TIMEOFFSET_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TimeOffsetCase getTimeOffsetCase() { + return TimeOffsetCase.forNumber(timeOffsetCase_); + } + + public static final int YEAR_FIELD_NUMBER = 1; + private int year_; + /** + * + * + *
+   * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a
+   * datetime without a year.
+   * 
+ * + * int32 year = 1; + * + * @return The year. + */ + public int getYear() { + return year_; + } + + public static final int MONTH_FIELD_NUMBER = 2; + private int month_; + /** + * + * + *
+   * Required. Month of year. Must be from 1 to 12.
+   * 
+ * + * int32 month = 2; + * + * @return The month. + */ + public int getMonth() { + return month_; + } + + public static final int DAY_FIELD_NUMBER = 3; + private int day_; + /** + * + * + *
+   * Required. Day of month. Must be from 1 to 31 and valid for the year and
+   * month.
+   * 
+ * + * int32 day = 3; + * + * @return The day. + */ + public int getDay() { + return day_; + } + + public static final int HOURS_FIELD_NUMBER = 4; + private int hours_; + /** + * + * + *
+   * Required. Hours of day in 24 hour format. Should be from 0 to 23. An API
+   * may choose to allow the value "24:00:00" for scenarios like business
+   * closing time.
+   * 
+ * + * int32 hours = 4; + * + * @return The hours. + */ + public int getHours() { + return hours_; + } + + public static final int MINUTES_FIELD_NUMBER = 5; + private int minutes_; + /** + * + * + *
+   * Required. Minutes of hour of day. Must be from 0 to 59.
+   * 
+ * + * int32 minutes = 5; + * + * @return The minutes. + */ + public int getMinutes() { + return minutes_; + } + + public static final int SECONDS_FIELD_NUMBER = 6; + private int seconds_; + /** + * + * + *
+   * Required. Seconds of minutes of the time. Must normally be from 0 to 59. An
+   * API may allow the value 60 if it allows leap-seconds.
+   * 
+ * + * int32 seconds = 6; + * + * @return The seconds. + */ + public int getSeconds() { + return seconds_; + } + + public static final int NANOS_FIELD_NUMBER = 7; + private int nanos_; + /** + * + * + *
+   * Required. Fractions of seconds in nanoseconds. Must be from 0 to
+   * 999,999,999.
+   * 
+ * + * int32 nanos = 7; + * + * @return The nanos. + */ + public int getNanos() { + return nanos_; + } + + public static final int UTC_OFFSET_FIELD_NUMBER = 8; + /** + * + * + *
+   * UTC offset. Must be whole seconds, between -18 hours and +18 hours.
+   * For example, a UTC offset of -4:00 would be represented as
+   * { seconds: -14400 }.
+   * 
+ * + * .google.protobuf.Duration utc_offset = 8; + * + * @return Whether the utcOffset field is set. + */ + public boolean hasUtcOffset() { + return timeOffsetCase_ == 8; + } + /** + * + * + *
+   * UTC offset. Must be whole seconds, between -18 hours and +18 hours.
+   * For example, a UTC offset of -4:00 would be represented as
+   * { seconds: -14400 }.
+   * 
+ * + * .google.protobuf.Duration utc_offset = 8; + * + * @return The utcOffset. + */ + public com.google.protobuf.Duration getUtcOffset() { + if (timeOffsetCase_ == 8) { + return (com.google.protobuf.Duration) timeOffset_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + /** + * + * + *
+   * UTC offset. Must be whole seconds, between -18 hours and +18 hours.
+   * For example, a UTC offset of -4:00 would be represented as
+   * { seconds: -14400 }.
+   * 
+ * + * .google.protobuf.Duration utc_offset = 8; + */ + public com.google.protobuf.DurationOrBuilder getUtcOffsetOrBuilder() { + if (timeOffsetCase_ == 8) { + return (com.google.protobuf.Duration) timeOffset_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + + public static final int TIME_ZONE_FIELD_NUMBER = 9; + /** + * + * + *
+   * Time zone.
+   * 
+ * + * .google.type.TimeZone time_zone = 9; + * + * @return Whether the timeZone field is set. + */ + public boolean hasTimeZone() { + return timeOffsetCase_ == 9; + } + /** + * + * + *
+   * Time zone.
+   * 
+ * + * .google.type.TimeZone time_zone = 9; + * + * @return The timeZone. + */ + public com.google.type.TimeZone getTimeZone() { + if (timeOffsetCase_ == 9) { + return (com.google.type.TimeZone) timeOffset_; + } + return com.google.type.TimeZone.getDefaultInstance(); + } + /** + * + * + *
+   * Time zone.
+   * 
+ * + * .google.type.TimeZone time_zone = 9; + */ + public com.google.type.TimeZoneOrBuilder getTimeZoneOrBuilder() { + if (timeOffsetCase_ == 9) { + return (com.google.type.TimeZone) timeOffset_; + } + return com.google.type.TimeZone.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (year_ != 0) { + output.writeInt32(1, year_); + } + if (month_ != 0) { + output.writeInt32(2, month_); + } + if (day_ != 0) { + output.writeInt32(3, day_); + } + if (hours_ != 0) { + output.writeInt32(4, hours_); + } + if (minutes_ != 0) { + output.writeInt32(5, minutes_); + } + if (seconds_ != 0) { + output.writeInt32(6, seconds_); + } + if (nanos_ != 0) { + output.writeInt32(7, nanos_); + } + if (timeOffsetCase_ == 8) { + output.writeMessage(8, (com.google.protobuf.Duration) timeOffset_); + } + if (timeOffsetCase_ == 9) { + output.writeMessage(9, (com.google.type.TimeZone) timeOffset_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (year_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, year_); + } + if (month_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, month_); + } + if (day_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, day_); + } + if (hours_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, hours_); + } + if (minutes_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, minutes_); + } + if (seconds_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, seconds_); + } + if (nanos_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, nanos_); + } + if (timeOffsetCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.protobuf.Duration) timeOffset_); + } + if (timeOffsetCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.type.TimeZone) timeOffset_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.type.DateTime)) { + return super.equals(obj); + } + com.google.type.DateTime other = (com.google.type.DateTime) obj; + + if (getYear() != other.getYear()) return false; + if (getMonth() != other.getMonth()) return false; + if (getDay() != other.getDay()) return false; + if (getHours() != other.getHours()) return false; + if (getMinutes() != other.getMinutes()) return false; + if (getSeconds() != other.getSeconds()) return false; + if (getNanos() != other.getNanos()) return false; + if (!getTimeOffsetCase().equals(other.getTimeOffsetCase())) return false; + switch (timeOffsetCase_) { + case 8: + if (!getUtcOffset().equals(other.getUtcOffset())) return false; + break; + case 9: + if (!getTimeZone().equals(other.getTimeZone())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + YEAR_FIELD_NUMBER; + hash = (53 * hash) + getYear(); + hash = (37 * hash) + MONTH_FIELD_NUMBER; + hash = (53 * hash) + getMonth(); + hash = (37 * hash) + DAY_FIELD_NUMBER; + hash = (53 * hash) + getDay(); + hash = (37 * hash) + HOURS_FIELD_NUMBER; + hash = (53 * hash) + getHours(); + hash = (37 * hash) + MINUTES_FIELD_NUMBER; + hash = (53 * hash) + getMinutes(); + hash = (37 * hash) + SECONDS_FIELD_NUMBER; + hash = (53 * hash) + getSeconds(); + hash = (37 * hash) + NANOS_FIELD_NUMBER; + hash = (53 * hash) + getNanos(); + switch (timeOffsetCase_) { + case 8: + hash = (37 * hash) + UTC_OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getUtcOffset().hashCode(); + break; + case 9: + hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getTimeZone().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.type.DateTime parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.type.DateTime parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.type.DateTime parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.type.DateTime 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.type.DateTime parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.type.DateTime parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.type.DateTime parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.type.DateTime parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.type.DateTime parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.type.DateTime parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.type.DateTime parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.type.DateTime parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.type.DateTime prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents civil time in one of a few possible ways:
+   *  * When utc_offset is set and time_zone is unset: a civil time on a calendar
+   *    day with a particular offset from UTC.
+   *  * When time_zone is set and utc_offset is unset: a civil time on a calendar
+   *    day in a particular time zone.
+   *  * When neither time_zone nor utc_offset is set: a civil time on a calendar
+   *    day in local time.
+   * The date is relative to the Proleptic Gregorian Calendar.
+   * If year is 0, the DateTime is considered not to have a specific year. month
+   * and day must have valid, non-zero values.
+   * This type is more flexible than some applications may want. Make sure to
+   * document and validate your application's limitations.
+   * 
+ * + * Protobuf type {@code google.type.DateTime} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.type.DateTime) + com.google.type.DateTimeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.type.DateTimeProto.internal_static_google_type_DateTime_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.type.DateTimeProto.internal_static_google_type_DateTime_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.type.DateTime.class, com.google.type.DateTime.Builder.class); + } + + // Construct using com.google.type.DateTime.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + year_ = 0; + + month_ = 0; + + day_ = 0; + + hours_ = 0; + + minutes_ = 0; + + seconds_ = 0; + + nanos_ = 0; + + timeOffsetCase_ = 0; + timeOffset_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.type.DateTimeProto.internal_static_google_type_DateTime_descriptor; + } + + @java.lang.Override + public com.google.type.DateTime getDefaultInstanceForType() { + return com.google.type.DateTime.getDefaultInstance(); + } + + @java.lang.Override + public com.google.type.DateTime build() { + com.google.type.DateTime result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.type.DateTime buildPartial() { + com.google.type.DateTime result = new com.google.type.DateTime(this); + result.year_ = year_; + result.month_ = month_; + result.day_ = day_; + result.hours_ = hours_; + result.minutes_ = minutes_; + result.seconds_ = seconds_; + result.nanos_ = nanos_; + if (timeOffsetCase_ == 8) { + if (utcOffsetBuilder_ == null) { + result.timeOffset_ = timeOffset_; + } else { + result.timeOffset_ = utcOffsetBuilder_.build(); + } + } + if (timeOffsetCase_ == 9) { + if (timeZoneBuilder_ == null) { + result.timeOffset_ = timeOffset_; + } else { + result.timeOffset_ = timeZoneBuilder_.build(); + } + } + result.timeOffsetCase_ = timeOffsetCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + 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) { + return super.clearField(field); + } + + @java.lang.Override + 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) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + 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.type.DateTime) { + return mergeFrom((com.google.type.DateTime) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.type.DateTime other) { + if (other == com.google.type.DateTime.getDefaultInstance()) return this; + if (other.getYear() != 0) { + setYear(other.getYear()); + } + if (other.getMonth() != 0) { + setMonth(other.getMonth()); + } + if (other.getDay() != 0) { + setDay(other.getDay()); + } + if (other.getHours() != 0) { + setHours(other.getHours()); + } + if (other.getMinutes() != 0) { + setMinutes(other.getMinutes()); + } + if (other.getSeconds() != 0) { + setSeconds(other.getSeconds()); + } + if (other.getNanos() != 0) { + setNanos(other.getNanos()); + } + switch (other.getTimeOffsetCase()) { + case UTC_OFFSET: + { + mergeUtcOffset(other.getUtcOffset()); + break; + } + case TIME_ZONE: + { + mergeTimeZone(other.getTimeZone()); + break; + } + case TIMEOFFSET_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.type.DateTime parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.type.DateTime) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int timeOffsetCase_ = 0; + private java.lang.Object timeOffset_; + + public TimeOffsetCase getTimeOffsetCase() { + return TimeOffsetCase.forNumber(timeOffsetCase_); + } + + public Builder clearTimeOffset() { + timeOffsetCase_ = 0; + timeOffset_ = null; + onChanged(); + return this; + } + + private int year_; + /** + * + * + *
+     * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a
+     * datetime without a year.
+     * 
+ * + * int32 year = 1; + * + * @return The year. + */ + public int getYear() { + return year_; + } + /** + * + * + *
+     * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a
+     * datetime without a year.
+     * 
+ * + * int32 year = 1; + * + * @param value The year to set. + * @return This builder for chaining. + */ + public Builder setYear(int value) { + + year_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a
+     * datetime without a year.
+     * 
+ * + * int32 year = 1; + * + * @return This builder for chaining. + */ + public Builder clearYear() { + + year_ = 0; + onChanged(); + return this; + } + + private int month_; + /** + * + * + *
+     * Required. Month of year. Must be from 1 to 12.
+     * 
+ * + * int32 month = 2; + * + * @return The month. + */ + public int getMonth() { + return month_; + } + /** + * + * + *
+     * Required. Month of year. Must be from 1 to 12.
+     * 
+ * + * int32 month = 2; + * + * @param value The month to set. + * @return This builder for chaining. + */ + public Builder setMonth(int value) { + + month_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Month of year. Must be from 1 to 12.
+     * 
+ * + * int32 month = 2; + * + * @return This builder for chaining. + */ + public Builder clearMonth() { + + month_ = 0; + onChanged(); + return this; + } + + private int day_; + /** + * + * + *
+     * Required. Day of month. Must be from 1 to 31 and valid for the year and
+     * month.
+     * 
+ * + * int32 day = 3; + * + * @return The day. + */ + public int getDay() { + return day_; + } + /** + * + * + *
+     * Required. Day of month. Must be from 1 to 31 and valid for the year and
+     * month.
+     * 
+ * + * int32 day = 3; + * + * @param value The day to set. + * @return This builder for chaining. + */ + public Builder setDay(int value) { + + day_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Day of month. Must be from 1 to 31 and valid for the year and
+     * month.
+     * 
+ * + * int32 day = 3; + * + * @return This builder for chaining. + */ + public Builder clearDay() { + + day_ = 0; + onChanged(); + return this; + } + + private int hours_; + /** + * + * + *
+     * Required. Hours of day in 24 hour format. Should be from 0 to 23. An API
+     * may choose to allow the value "24:00:00" for scenarios like business
+     * closing time.
+     * 
+ * + * int32 hours = 4; + * + * @return The hours. + */ + public int getHours() { + return hours_; + } + /** + * + * + *
+     * Required. Hours of day in 24 hour format. Should be from 0 to 23. An API
+     * may choose to allow the value "24:00:00" for scenarios like business
+     * closing time.
+     * 
+ * + * int32 hours = 4; + * + * @param value The hours to set. + * @return This builder for chaining. + */ + public Builder setHours(int value) { + + hours_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Hours of day in 24 hour format. Should be from 0 to 23. An API
+     * may choose to allow the value "24:00:00" for scenarios like business
+     * closing time.
+     * 
+ * + * int32 hours = 4; + * + * @return This builder for chaining. + */ + public Builder clearHours() { + + hours_ = 0; + onChanged(); + return this; + } + + private int minutes_; + /** + * + * + *
+     * Required. Minutes of hour of day. Must be from 0 to 59.
+     * 
+ * + * int32 minutes = 5; + * + * @return The minutes. + */ + public int getMinutes() { + return minutes_; + } + /** + * + * + *
+     * Required. Minutes of hour of day. Must be from 0 to 59.
+     * 
+ * + * int32 minutes = 5; + * + * @param value The minutes to set. + * @return This builder for chaining. + */ + public Builder setMinutes(int value) { + + minutes_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Minutes of hour of day. Must be from 0 to 59.
+     * 
+ * + * int32 minutes = 5; + * + * @return This builder for chaining. + */ + public Builder clearMinutes() { + + minutes_ = 0; + onChanged(); + return this; + } + + private int seconds_; + /** + * + * + *
+     * Required. Seconds of minutes of the time. Must normally be from 0 to 59. An
+     * API may allow the value 60 if it allows leap-seconds.
+     * 
+ * + * int32 seconds = 6; + * + * @return The seconds. + */ + public int getSeconds() { + return seconds_; + } + /** + * + * + *
+     * Required. Seconds of minutes of the time. Must normally be from 0 to 59. An
+     * API may allow the value 60 if it allows leap-seconds.
+     * 
+ * + * int32 seconds = 6; + * + * @param value The seconds to set. + * @return This builder for chaining. + */ + public Builder setSeconds(int value) { + + seconds_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Seconds of minutes of the time. Must normally be from 0 to 59. An
+     * API may allow the value 60 if it allows leap-seconds.
+     * 
+ * + * int32 seconds = 6; + * + * @return This builder for chaining. + */ + public Builder clearSeconds() { + + seconds_ = 0; + onChanged(); + return this; + } + + private int nanos_; + /** + * + * + *
+     * Required. Fractions of seconds in nanoseconds. Must be from 0 to
+     * 999,999,999.
+     * 
+ * + * int32 nanos = 7; + * + * @return The nanos. + */ + public int getNanos() { + return nanos_; + } + /** + * + * + *
+     * Required. Fractions of seconds in nanoseconds. Must be from 0 to
+     * 999,999,999.
+     * 
+ * + * int32 nanos = 7; + * + * @param value The nanos to set. + * @return This builder for chaining. + */ + public Builder setNanos(int value) { + + nanos_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Fractions of seconds in nanoseconds. Must be from 0 to
+     * 999,999,999.
+     * 
+ * + * int32 nanos = 7; + * + * @return This builder for chaining. + */ + public Builder clearNanos() { + + nanos_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + utcOffsetBuilder_; + /** + * + * + *
+     * UTC offset. Must be whole seconds, between -18 hours and +18 hours.
+     * For example, a UTC offset of -4:00 would be represented as
+     * { seconds: -14400 }.
+     * 
+ * + * .google.protobuf.Duration utc_offset = 8; + * + * @return Whether the utcOffset field is set. + */ + public boolean hasUtcOffset() { + return timeOffsetCase_ == 8; + } + /** + * + * + *
+     * UTC offset. Must be whole seconds, between -18 hours and +18 hours.
+     * For example, a UTC offset of -4:00 would be represented as
+     * { seconds: -14400 }.
+     * 
+ * + * .google.protobuf.Duration utc_offset = 8; + * + * @return The utcOffset. + */ + public com.google.protobuf.Duration getUtcOffset() { + if (utcOffsetBuilder_ == null) { + if (timeOffsetCase_ == 8) { + return (com.google.protobuf.Duration) timeOffset_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } else { + if (timeOffsetCase_ == 8) { + return utcOffsetBuilder_.getMessage(); + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + /** + * + * + *
+     * UTC offset. Must be whole seconds, between -18 hours and +18 hours.
+     * For example, a UTC offset of -4:00 would be represented as
+     * { seconds: -14400 }.
+     * 
+ * + * .google.protobuf.Duration utc_offset = 8; + */ + public Builder setUtcOffset(com.google.protobuf.Duration value) { + if (utcOffsetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeOffset_ = value; + onChanged(); + } else { + utcOffsetBuilder_.setMessage(value); + } + timeOffsetCase_ = 8; + return this; + } + /** + * + * + *
+     * UTC offset. Must be whole seconds, between -18 hours and +18 hours.
+     * For example, a UTC offset of -4:00 would be represented as
+     * { seconds: -14400 }.
+     * 
+ * + * .google.protobuf.Duration utc_offset = 8; + */ + public Builder setUtcOffset(com.google.protobuf.Duration.Builder builderForValue) { + if (utcOffsetBuilder_ == null) { + timeOffset_ = builderForValue.build(); + onChanged(); + } else { + utcOffsetBuilder_.setMessage(builderForValue.build()); + } + timeOffsetCase_ = 8; + return this; + } + /** + * + * + *
+     * UTC offset. Must be whole seconds, between -18 hours and +18 hours.
+     * For example, a UTC offset of -4:00 would be represented as
+     * { seconds: -14400 }.
+     * 
+ * + * .google.protobuf.Duration utc_offset = 8; + */ + public Builder mergeUtcOffset(com.google.protobuf.Duration value) { + if (utcOffsetBuilder_ == null) { + if (timeOffsetCase_ == 8 + && timeOffset_ != com.google.protobuf.Duration.getDefaultInstance()) { + timeOffset_ = + com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) timeOffset_) + .mergeFrom(value) + .buildPartial(); + } else { + timeOffset_ = value; + } + onChanged(); + } else { + if (timeOffsetCase_ == 8) { + utcOffsetBuilder_.mergeFrom(value); + } + utcOffsetBuilder_.setMessage(value); + } + timeOffsetCase_ = 8; + return this; + } + /** + * + * + *
+     * UTC offset. Must be whole seconds, between -18 hours and +18 hours.
+     * For example, a UTC offset of -4:00 would be represented as
+     * { seconds: -14400 }.
+     * 
+ * + * .google.protobuf.Duration utc_offset = 8; + */ + public Builder clearUtcOffset() { + if (utcOffsetBuilder_ == null) { + if (timeOffsetCase_ == 8) { + timeOffsetCase_ = 0; + timeOffset_ = null; + onChanged(); + } + } else { + if (timeOffsetCase_ == 8) { + timeOffsetCase_ = 0; + timeOffset_ = null; + } + utcOffsetBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * UTC offset. Must be whole seconds, between -18 hours and +18 hours.
+     * For example, a UTC offset of -4:00 would be represented as
+     * { seconds: -14400 }.
+     * 
+ * + * .google.protobuf.Duration utc_offset = 8; + */ + public com.google.protobuf.Duration.Builder getUtcOffsetBuilder() { + return getUtcOffsetFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * UTC offset. Must be whole seconds, between -18 hours and +18 hours.
+     * For example, a UTC offset of -4:00 would be represented as
+     * { seconds: -14400 }.
+     * 
+ * + * .google.protobuf.Duration utc_offset = 8; + */ + public com.google.protobuf.DurationOrBuilder getUtcOffsetOrBuilder() { + if ((timeOffsetCase_ == 8) && (utcOffsetBuilder_ != null)) { + return utcOffsetBuilder_.getMessageOrBuilder(); + } else { + if (timeOffsetCase_ == 8) { + return (com.google.protobuf.Duration) timeOffset_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + /** + * + * + *
+     * UTC offset. Must be whole seconds, between -18 hours and +18 hours.
+     * For example, a UTC offset of -4:00 would be represented as
+     * { seconds: -14400 }.
+     * 
+ * + * .google.protobuf.Duration utc_offset = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getUtcOffsetFieldBuilder() { + if (utcOffsetBuilder_ == null) { + if (!(timeOffsetCase_ == 8)) { + timeOffset_ = com.google.protobuf.Duration.getDefaultInstance(); + } + utcOffsetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + (com.google.protobuf.Duration) timeOffset_, getParentForChildren(), isClean()); + timeOffset_ = null; + } + timeOffsetCase_ = 8; + onChanged(); + ; + return utcOffsetBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeZone, + com.google.type.TimeZone.Builder, + com.google.type.TimeZoneOrBuilder> + timeZoneBuilder_; + /** + * + * + *
+     * Time zone.
+     * 
+ * + * .google.type.TimeZone time_zone = 9; + * + * @return Whether the timeZone field is set. + */ + public boolean hasTimeZone() { + return timeOffsetCase_ == 9; + } + /** + * + * + *
+     * Time zone.
+     * 
+ * + * .google.type.TimeZone time_zone = 9; + * + * @return The timeZone. + */ + public com.google.type.TimeZone getTimeZone() { + if (timeZoneBuilder_ == null) { + if (timeOffsetCase_ == 9) { + return (com.google.type.TimeZone) timeOffset_; + } + return com.google.type.TimeZone.getDefaultInstance(); + } else { + if (timeOffsetCase_ == 9) { + return timeZoneBuilder_.getMessage(); + } + return com.google.type.TimeZone.getDefaultInstance(); + } + } + /** + * + * + *
+     * Time zone.
+     * 
+ * + * .google.type.TimeZone time_zone = 9; + */ + public Builder setTimeZone(com.google.type.TimeZone value) { + if (timeZoneBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeOffset_ = value; + onChanged(); + } else { + timeZoneBuilder_.setMessage(value); + } + timeOffsetCase_ = 9; + return this; + } + /** + * + * + *
+     * Time zone.
+     * 
+ * + * .google.type.TimeZone time_zone = 9; + */ + public Builder setTimeZone(com.google.type.TimeZone.Builder builderForValue) { + if (timeZoneBuilder_ == null) { + timeOffset_ = builderForValue.build(); + onChanged(); + } else { + timeZoneBuilder_.setMessage(builderForValue.build()); + } + timeOffsetCase_ = 9; + return this; + } + /** + * + * + *
+     * Time zone.
+     * 
+ * + * .google.type.TimeZone time_zone = 9; + */ + public Builder mergeTimeZone(com.google.type.TimeZone value) { + if (timeZoneBuilder_ == null) { + if (timeOffsetCase_ == 9 && timeOffset_ != com.google.type.TimeZone.getDefaultInstance()) { + timeOffset_ = + com.google.type.TimeZone.newBuilder((com.google.type.TimeZone) timeOffset_) + .mergeFrom(value) + .buildPartial(); + } else { + timeOffset_ = value; + } + onChanged(); + } else { + if (timeOffsetCase_ == 9) { + timeZoneBuilder_.mergeFrom(value); + } + timeZoneBuilder_.setMessage(value); + } + timeOffsetCase_ = 9; + return this; + } + /** + * + * + *
+     * Time zone.
+     * 
+ * + * .google.type.TimeZone time_zone = 9; + */ + public Builder clearTimeZone() { + if (timeZoneBuilder_ == null) { + if (timeOffsetCase_ == 9) { + timeOffsetCase_ = 0; + timeOffset_ = null; + onChanged(); + } + } else { + if (timeOffsetCase_ == 9) { + timeOffsetCase_ = 0; + timeOffset_ = null; + } + timeZoneBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Time zone.
+     * 
+ * + * .google.type.TimeZone time_zone = 9; + */ + public com.google.type.TimeZone.Builder getTimeZoneBuilder() { + return getTimeZoneFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Time zone.
+     * 
+ * + * .google.type.TimeZone time_zone = 9; + */ + public com.google.type.TimeZoneOrBuilder getTimeZoneOrBuilder() { + if ((timeOffsetCase_ == 9) && (timeZoneBuilder_ != null)) { + return timeZoneBuilder_.getMessageOrBuilder(); + } else { + if (timeOffsetCase_ == 9) { + return (com.google.type.TimeZone) timeOffset_; + } + return com.google.type.TimeZone.getDefaultInstance(); + } + } + /** + * + * + *
+     * Time zone.
+     * 
+ * + * .google.type.TimeZone time_zone = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeZone, + com.google.type.TimeZone.Builder, + com.google.type.TimeZoneOrBuilder> + getTimeZoneFieldBuilder() { + if (timeZoneBuilder_ == null) { + if (!(timeOffsetCase_ == 9)) { + timeOffset_ = com.google.type.TimeZone.getDefaultInstance(); + } + timeZoneBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeZone, + com.google.type.TimeZone.Builder, + com.google.type.TimeZoneOrBuilder>( + (com.google.type.TimeZone) timeOffset_, getParentForChildren(), isClean()); + timeOffset_ = null; + } + timeOffsetCase_ = 9; + onChanged(); + ; + return timeZoneBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.type.DateTime) + } + + // @@protoc_insertion_point(class_scope:google.type.DateTime) + private static final com.google.type.DateTime DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.type.DateTime(); + } + + public static com.google.type.DateTime getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DateTime parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DateTime(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.type.DateTime getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-common-protos/src/main/java/com/google/type/DateTimeOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/type/DateTimeOrBuilder.java new file mode 100644 index 00000000..fb8329d5 --- /dev/null +++ b/proto-google-common-protos/src/main/java/com/google/type/DateTimeOrBuilder.java @@ -0,0 +1,200 @@ +/* + * 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/type/datetime.proto + +package com.google.type; + +public interface DateTimeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.type.DateTime) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a
+   * datetime without a year.
+   * 
+ * + * int32 year = 1; + * + * @return The year. + */ + int getYear(); + + /** + * + * + *
+   * Required. Month of year. Must be from 1 to 12.
+   * 
+ * + * int32 month = 2; + * + * @return The month. + */ + int getMonth(); + + /** + * + * + *
+   * Required. Day of month. Must be from 1 to 31 and valid for the year and
+   * month.
+   * 
+ * + * int32 day = 3; + * + * @return The day. + */ + int getDay(); + + /** + * + * + *
+   * Required. Hours of day in 24 hour format. Should be from 0 to 23. An API
+   * may choose to allow the value "24:00:00" for scenarios like business
+   * closing time.
+   * 
+ * + * int32 hours = 4; + * + * @return The hours. + */ + int getHours(); + + /** + * + * + *
+   * Required. Minutes of hour of day. Must be from 0 to 59.
+   * 
+ * + * int32 minutes = 5; + * + * @return The minutes. + */ + int getMinutes(); + + /** + * + * + *
+   * Required. Seconds of minutes of the time. Must normally be from 0 to 59. An
+   * API may allow the value 60 if it allows leap-seconds.
+   * 
+ * + * int32 seconds = 6; + * + * @return The seconds. + */ + int getSeconds(); + + /** + * + * + *
+   * Required. Fractions of seconds in nanoseconds. Must be from 0 to
+   * 999,999,999.
+   * 
+ * + * int32 nanos = 7; + * + * @return The nanos. + */ + int getNanos(); + + /** + * + * + *
+   * UTC offset. Must be whole seconds, between -18 hours and +18 hours.
+   * For example, a UTC offset of -4:00 would be represented as
+   * { seconds: -14400 }.
+   * 
+ * + * .google.protobuf.Duration utc_offset = 8; + * + * @return Whether the utcOffset field is set. + */ + boolean hasUtcOffset(); + /** + * + * + *
+   * UTC offset. Must be whole seconds, between -18 hours and +18 hours.
+   * For example, a UTC offset of -4:00 would be represented as
+   * { seconds: -14400 }.
+   * 
+ * + * .google.protobuf.Duration utc_offset = 8; + * + * @return The utcOffset. + */ + com.google.protobuf.Duration getUtcOffset(); + /** + * + * + *
+   * UTC offset. Must be whole seconds, between -18 hours and +18 hours.
+   * For example, a UTC offset of -4:00 would be represented as
+   * { seconds: -14400 }.
+   * 
+ * + * .google.protobuf.Duration utc_offset = 8; + */ + com.google.protobuf.DurationOrBuilder getUtcOffsetOrBuilder(); + + /** + * + * + *
+   * Time zone.
+   * 
+ * + * .google.type.TimeZone time_zone = 9; + * + * @return Whether the timeZone field is set. + */ + boolean hasTimeZone(); + /** + * + * + *
+   * Time zone.
+   * 
+ * + * .google.type.TimeZone time_zone = 9; + * + * @return The timeZone. + */ + com.google.type.TimeZone getTimeZone(); + /** + * + * + *
+   * Time zone.
+   * 
+ * + * .google.type.TimeZone time_zone = 9; + */ + com.google.type.TimeZoneOrBuilder getTimeZoneOrBuilder(); + + public com.google.type.DateTime.TimeOffsetCase getTimeOffsetCase(); +} diff --git a/proto-google-common-protos/src/main/java/com/google/type/DateTimeProto.java b/proto-google-common-protos/src/main/java/com/google/type/DateTimeProto.java new file mode 100644 index 00000000..403e9810 --- /dev/null +++ b/proto-google-common-protos/src/main/java/com/google/type/DateTimeProto.java @@ -0,0 +1,93 @@ +/* + * 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/type/datetime.proto + +package com.google.type; + +public final class DateTimeProto { + private DateTimeProto() {} + + 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_type_DateTime_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_type_DateTime_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_type_TimeZone_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_type_TimeZone_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\032google/type/datetime.proto\022\013google.typ" + + "e\032\036google/protobuf/duration.proto\"\340\001\n\010Da" + + "teTime\022\014\n\004year\030\001 \001(\005\022\r\n\005month\030\002 \001(\005\022\013\n\003d" + + "ay\030\003 \001(\005\022\r\n\005hours\030\004 \001(\005\022\017\n\007minutes\030\005 \001(\005" + + "\022\017\n\007seconds\030\006 \001(\005\022\r\n\005nanos\030\007 \001(\005\022/\n\nutc_" + + "offset\030\010 \001(\0132\031.google.protobuf.DurationH" + + "\000\022*\n\ttime_zone\030\t \001(\0132\025.google.type.TimeZ" + + "oneH\000B\r\n\013time_offset\"\'\n\010TimeZone\022\n\n\002id\030\001" + + " \001(\t\022\017\n\007version\030\002 \001(\tBi\n\017com.google.type" + + "B\rDateTimeProtoP\001Z * Represents a day of week. *
* * Protobuf enum {@code google.type.DayOfWeek} */ -public enum DayOfWeek - implements com.google.protobuf.ProtocolMessageEnum { +public enum DayOfWeek implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * The unspecified day-of-week.
    * 
@@ -21,6 +39,8 @@ public enum DayOfWeek */ DAY_OF_WEEK_UNSPECIFIED(0), /** + * + * *
    * The day-of-week of Monday.
    * 
@@ -29,6 +49,8 @@ public enum DayOfWeek */ MONDAY(1), /** + * + * *
    * The day-of-week of Tuesday.
    * 
@@ -37,6 +59,8 @@ public enum DayOfWeek */ TUESDAY(2), /** + * + * *
    * The day-of-week of Wednesday.
    * 
@@ -45,6 +69,8 @@ public enum DayOfWeek */ WEDNESDAY(3), /** + * + * *
    * The day-of-week of Thursday.
    * 
@@ -53,6 +79,8 @@ public enum DayOfWeek */ THURSDAY(4), /** + * + * *
    * The day-of-week of Friday.
    * 
@@ -61,6 +89,8 @@ public enum DayOfWeek */ FRIDAY(5), /** + * + * *
    * The day-of-week of Saturday.
    * 
@@ -69,6 +99,8 @@ public enum DayOfWeek */ SATURDAY(6), /** + * + * *
    * The day-of-week of Sunday.
    * 
@@ -80,6 +112,8 @@ public enum DayOfWeek ; /** + * + * *
    * The unspecified day-of-week.
    * 
@@ -88,6 +122,8 @@ public enum DayOfWeek */ public static final int DAY_OF_WEEK_UNSPECIFIED_VALUE = 0; /** + * + * *
    * The day-of-week of Monday.
    * 
@@ -96,6 +132,8 @@ public enum DayOfWeek */ public static final int MONDAY_VALUE = 1; /** + * + * *
    * The day-of-week of Tuesday.
    * 
@@ -104,6 +142,8 @@ public enum DayOfWeek */ public static final int TUESDAY_VALUE = 2; /** + * + * *
    * The day-of-week of Wednesday.
    * 
@@ -112,6 +152,8 @@ public enum DayOfWeek */ public static final int WEDNESDAY_VALUE = 3; /** + * + * *
    * The day-of-week of Thursday.
    * 
@@ -120,6 +162,8 @@ public enum DayOfWeek */ public static final int THURSDAY_VALUE = 4; /** + * + * *
    * The day-of-week of Friday.
    * 
@@ -128,6 +172,8 @@ public enum DayOfWeek */ public static final int FRIDAY_VALUE = 5; /** + * + * *
    * The day-of-week of Saturday.
    * 
@@ -136,6 +182,8 @@ public enum DayOfWeek */ public static final int SATURDAY_VALUE = 6; /** + * + * *
    * The day-of-week of Sunday.
    * 
@@ -144,69 +192,79 @@ public enum DayOfWeek */ public static final int SUNDAY_VALUE = 7; - public final int getNumber() { if (this == UNRECOGNIZED) { - throw new IllegalArgumentException( + throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ - @Deprecated + @java.lang.Deprecated public static DayOfWeek valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static DayOfWeek forNumber(int value) { switch (value) { - case 0: return DAY_OF_WEEK_UNSPECIFIED; - case 1: return MONDAY; - case 2: return TUESDAY; - case 3: return WEDNESDAY; - case 4: return THURSDAY; - case 5: return FRIDAY; - case 6: return SATURDAY; - case 7: return SUNDAY; - default: return null; + case 0: + return DAY_OF_WEEK_UNSPECIFIED; + case 1: + return MONDAY; + case 2: + return TUESDAY; + case 3: + return WEDNESDAY; + case 4: + return THURSDAY; + case 5: + return FRIDAY; + case 6: + return SATURDAY; + case 7: + return SUNDAY; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - DayOfWeek> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DayOfWeek findValueByNumber(int number) { - return DayOfWeek.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DayOfWeek findValueByNumber(int number) { + return DayOfWeek.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.type.DayOfWeekProto.getDescriptor().getEnumTypes().get(0); } private static final DayOfWeek[] VALUES = values(); - public static DayOfWeek valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static DayOfWeek valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -222,4 +280,3 @@ private DayOfWeek(int value) { // @@protoc_insertion_point(enum_scope:google.type.DayOfWeek) } - diff --git a/proto-google-common-protos/src/main/java/com/google/type/DayOfWeekProto.java b/proto-google-common-protos/src/main/java/com/google/type/DayOfWeekProto.java index 95763f32..010e7d28 100644 --- a/proto-google-common-protos/src/main/java/com/google/type/DayOfWeekProto.java +++ b/proto-google-common-protos/src/main/java/com/google/type/DayOfWeekProto.java @@ -1,3 +1,18 @@ +/* + * 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/type/dayofweek.proto @@ -5,45 +20,33 @@ public final class DayOfWeekProto { private DayOfWeekProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { - String[] descriptorData = { - "\n\033google/type/dayofweek.proto\022\013google.ty" + - "pe*\204\001\n\tDayOfWeek\022\033\n\027DAY_OF_WEEK_UNSPECIF" + - "IED\020\000\022\n\n\006MONDAY\020\001\022\013\n\007TUESDAY\020\002\022\r\n\tWEDNES" + - "DAY\020\003\022\014\n\010THURSDAY\020\004\022\n\n\006FRIDAY\020\005\022\014\n\010SATUR" + - "DAY\020\006\022\n\n\006SUNDAY\020\007Bi\n\017com.google.typeB\016Da" + - "yOfWeekProtoP\001Z>google.golang.org/genpro" + - "to/googleapis/type/dayofweek;dayofweek\242\002" + - "\003GTPb\006proto3" + java.lang.String[] descriptorData = { + "\n\033google/type/dayofweek.proto\022\013google.ty" + + "pe*\204\001\n\tDayOfWeek\022\033\n\027DAY_OF_WEEK_UNSPECIF" + + "IED\020\000\022\n\n\006MONDAY\020\001\022\013\n\007TUESDAY\020\002\022\r\n\tWEDNES" + + "DAY\020\003\022\014\n\010THURSDAY\020\004\022\n\n\006FRIDAY\020\005\022\014\n\010SATUR" + + "DAY\020\006\022\n\n\006SUNDAY\020\007Bi\n\017com.google.typeB\016Da" + + "yOfWeekProtoP\001Z>google.golang.org/genpro" + + "to/googleapis/type/dayofweek;dayofweek\242\002" + + "\003GTPb\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-common-protos/src/main/java/com/google/type/Expr.java b/proto-google-common-protos/src/main/java/com/google/type/Expr.java index 40162fa3..30cdad6d 100644 --- a/proto-google-common-protos/src/main/java/com/google/type/Expr.java +++ b/proto-google-common-protos/src/main/java/com/google/type/Expr.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/type/expr.proto package com.google.type; /** + * + * *
  * Represents an expression text. Example:
  *     title: "User account presence"
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.type.Expr}
  */
-public  final class Expr extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Expr extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.type.Expr)
     ExprOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Expr.newBuilder() to construct.
   private Expr(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Expr() {
     expression_ = "";
     title_ = "";
@@ -29,20 +47,25 @@ private Expr() {
     location_ = "";
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new Expr();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Expr(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
-    int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
         com.google.protobuf.UnknownFieldSet.newBuilder();
     try {
@@ -53,65 +76,70 @@ private Expr(
           case 0:
             done = true;
             break;
-          case 10: {
-            String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            expression_ = s;
-            break;
-          }
-          case 18: {
-            String s = input.readStringRequireUtf8();
+              expression_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            title_ = s;
-            break;
-          }
-          case 26: {
-            String s = input.readStringRequireUtf8();
+              title_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            description_ = s;
-            break;
-          }
-          case 34: {
-            String s = input.readStringRequireUtf8();
+              description_ = s;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            location_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              location_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.type.ExprProto.internal_static_google_type_Expr_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return com.google.type.ExprProto.internal_static_google_type_Expr_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            Expr.class, Builder.class);
+            com.google.type.Expr.class, com.google.type.Expr.Builder.class);
   }
 
   public static final int EXPRESSION_FIELD_NUMBER = 1;
-  private volatile Object expression_;
+  private volatile java.lang.Object expression_;
   /**
+   *
+   *
    * 
    * Textual representation of an expression in
    * Common Expression Language syntax.
@@ -120,20 +148,23 @@ private Expr(
    * 
* * string expression = 1; + * + * @return The expression. */ - public String getExpression() { - Object ref = expression_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getExpression() { + java.lang.Object ref = expression_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); expression_ = s; return s; } } /** + * + * *
    * Textual representation of an expression in
    * Common Expression Language syntax.
@@ -142,14 +173,14 @@ public String getExpression() {
    * 
* * string expression = 1; + * + * @return The bytes for expression. */ - public com.google.protobuf.ByteString - getExpressionBytes() { - Object ref = expression_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getExpressionBytes() { + java.lang.Object ref = expression_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); expression_ = b; return b; } else { @@ -158,8 +189,10 @@ public String getExpression() { } public static final int TITLE_FIELD_NUMBER = 2; - private volatile Object title_; + private volatile java.lang.Object title_; /** + * + * *
    * An optional title for the expression, i.e. a short string describing
    * its purpose. This can be used e.g. in UIs which allow to enter the
@@ -167,20 +200,23 @@ public String getExpression() {
    * 
* * string title = 2; + * + * @return The title. */ - public String getTitle() { - Object ref = title_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } } /** + * + * *
    * An optional title for the expression, i.e. a short string describing
    * its purpose. This can be used e.g. in UIs which allow to enter the
@@ -188,14 +224,14 @@ public String getTitle() {
    * 
* * string title = 2; + * + * @return The bytes for title. */ - public com.google.protobuf.ByteString - getTitleBytes() { - Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); title_ = b; return b; } else { @@ -204,42 +240,47 @@ public String getTitle() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile Object description_; + private volatile java.lang.Object description_; /** + * + * *
    * An optional description of the expression. This is a longer text which
    * describes the expression, e.g. when hovered over it in a UI.
    * 
* * string description = 3; + * + * @return The description. */ - public String getDescription() { - Object ref = description_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * An optional description of the expression. This is a longer text which
    * describes the expression, e.g. when hovered over it in a UI.
    * 
* * string description = 3; + * + * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + 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); description_ = b; return b; } else { @@ -248,42 +289,47 @@ public String getDescription() { } public static final int LOCATION_FIELD_NUMBER = 4; - private volatile Object location_; + private volatile java.lang.Object location_; /** + * + * *
    * An optional string indicating the location of the expression for error
    * reporting, e.g. a file name and a position in the file.
    * 
* * string location = 4; + * + * @return The location. */ - public String getLocation() { - Object ref = location_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** + * + * *
    * An optional string indicating the location of the expression for error
    * reporting, e.g. a file name and a position in the file.
    * 
* * string location = 4; + * + * @return The bytes for location. */ - public com.google.protobuf.ByteString - getLocationBytes() { - Object ref = location_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -292,7 +338,8 @@ public String getLocation() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -302,9 +349,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getExpressionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, expression_); } @@ -320,7 +366,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -343,29 +389,25 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof Expr)) { + if (!(obj instanceof com.google.type.Expr)) { return super.equals(obj); } - Expr other = (Expr) obj; - - if (!getExpression() - .equals(other.getExpression())) return false; - if (!getTitle() - .equals(other.getTitle())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getLocation() - .equals(other.getLocation())) return false; + com.google.type.Expr other = (com.google.type.Expr) obj; + + if (!getExpression().equals(other.getExpression())) return false; + if (!getTitle().equals(other.getTitle())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getLocation().equals(other.getLocation())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -385,97 +427,103 @@ public int hashCode() { return hash; } - public static Expr parseFrom( - java.nio.ByteBuffer data) + public static com.google.type.Expr parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Expr parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.Expr parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Expr parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.type.Expr parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Expr parseFrom( + + public static com.google.type.Expr parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Expr parseFrom(byte[] data) + + public static com.google.type.Expr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Expr parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.Expr parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Expr parseFrom(java.io.InputStream input) + + public static com.google.type.Expr 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 Expr parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.Expr parseFrom( + 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 Expr parseDelimitedFrom(java.io.InputStream input) + + public static com.google.type.Expr 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 Expr parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.Expr parseDelimitedFrom( + 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 Expr parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.type.Expr 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 Expr parseFrom( + + public static com.google.type.Expr 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(Expr prototype) { + + public static Builder newBuilder(com.google.type.Expr prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents an expression text. Example:
    *     title: "User account presence"
@@ -485,21 +533,20 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.type.Expr}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.type.Expr)
       com.google.type.ExprOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.type.ExprProto.internal_static_google_type_Expr_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return com.google.type.ExprProto.internal_static_google_type_Expr_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              Expr.class, Builder.class);
+              com.google.type.Expr.class, com.google.type.Expr.Builder.class);
     }
 
     // Construct using com.google.type.Expr.newBuilder()
@@ -507,17 +554,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       expression_ = "";
@@ -531,29 +577,28 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.type.ExprProto.internal_static_google_type_Expr_descriptor;
     }
 
-    @Override
-    public Expr getDefaultInstanceForType() {
-      return Expr.getDefaultInstance();
+    @java.lang.Override
+    public com.google.type.Expr getDefaultInstanceForType() {
+      return com.google.type.Expr.getDefaultInstance();
     }
 
-    @Override
-    public Expr build() {
-      Expr result = buildPartial();
+    @java.lang.Override
+    public com.google.type.Expr build() {
+      com.google.type.Expr result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public Expr buildPartial() {
-      Expr result = new Expr(this);
+    @java.lang.Override
+    public com.google.type.Expr buildPartial() {
+      com.google.type.Expr result = new com.google.type.Expr(this);
       result.expression_ = expression_;
       result.title_ = title_;
       result.description_ = description_;
@@ -562,50 +607,51 @@ public Expr buildPartial() {
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof Expr) {
-        return mergeFrom((Expr)other);
+      if (other instanceof com.google.type.Expr) {
+        return mergeFrom((com.google.type.Expr) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(Expr other) {
-      if (other == Expr.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.type.Expr other) {
+      if (other == com.google.type.Expr.getDefaultInstance()) return this;
       if (!other.getExpression().isEmpty()) {
         expression_ = other.expression_;
         onChanged();
@@ -627,21 +673,21 @@ public Builder mergeFrom(Expr other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      Expr parsedMessage = null;
+      com.google.type.Expr parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (Expr) e.getUnfinishedMessage();
+        parsedMessage = (com.google.type.Expr) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -651,8 +697,10 @@ public Builder mergeFrom(
       return this;
     }
 
-    private Object expression_ = "";
+    private java.lang.Object expression_ = "";
     /**
+     *
+     *
      * 
      * Textual representation of an expression in
      * Common Expression Language syntax.
@@ -661,20 +709,23 @@ public Builder mergeFrom(
      * 
* * string expression = 1; + * + * @return The expression. */ - public String getExpression() { - Object ref = expression_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getExpression() { + java.lang.Object ref = expression_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); expression_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Textual representation of an expression in
      * Common Expression Language syntax.
@@ -683,14 +734,14 @@ public String getExpression() {
      * 
* * string expression = 1; + * + * @return The bytes for expression. */ - public com.google.protobuf.ByteString - getExpressionBytes() { - Object ref = expression_; + public com.google.protobuf.ByteString getExpressionBytes() { + java.lang.Object ref = expression_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); expression_ = b; return b; } else { @@ -698,6 +749,8 @@ public String getExpression() { } } /** + * + * *
      * Textual representation of an expression in
      * Common Expression Language syntax.
@@ -706,18 +759,22 @@ public String getExpression() {
      * 
* * string expression = 1; + * + * @param value The expression to set. + * @return This builder for chaining. */ - public Builder setExpression( - String value) { + public Builder setExpression(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + expression_ = value; onChanged(); return this; } /** + * + * *
      * Textual representation of an expression in
      * Common Expression Language syntax.
@@ -726,14 +783,18 @@ public Builder setExpression(
      * 
* * string expression = 1; + * + * @return This builder for chaining. */ public Builder clearExpression() { - + expression_ = getDefaultInstance().getExpression(); onChanged(); return this; } /** + * + * *
      * Textual representation of an expression in
      * Common Expression Language syntax.
@@ -742,21 +803,25 @@ public Builder clearExpression() {
      * 
* * string expression = 1; + * + * @param value The bytes for expression to set. + * @return This builder for chaining. */ - public Builder setExpressionBytes( - com.google.protobuf.ByteString value) { + public Builder setExpressionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + expression_ = value; onChanged(); return this; } - private Object title_ = ""; + private java.lang.Object title_ = ""; /** + * + * *
      * An optional title for the expression, i.e. a short string describing
      * its purpose. This can be used e.g. in UIs which allow to enter the
@@ -764,20 +829,23 @@ public Builder setExpressionBytes(
      * 
* * string title = 2; + * + * @return The title. */ - public String getTitle() { - Object ref = title_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * An optional title for the expression, i.e. a short string describing
      * its purpose. This can be used e.g. in UIs which allow to enter the
@@ -785,14 +853,14 @@ public String getTitle() {
      * 
* * string title = 2; + * + * @return The bytes for title. */ - public com.google.protobuf.ByteString - getTitleBytes() { - Object ref = title_; + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); title_ = b; return b; } else { @@ -800,6 +868,8 @@ public String getTitle() { } } /** + * + * *
      * An optional title for the expression, i.e. a short string describing
      * its purpose. This can be used e.g. in UIs which allow to enter the
@@ -807,18 +877,22 @@ public String getTitle() {
      * 
* * string title = 2; + * + * @param value The title to set. + * @return This builder for chaining. */ - public Builder setTitle( - String value) { + public Builder setTitle(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + title_ = value; onChanged(); return this; } /** + * + * *
      * An optional title for the expression, i.e. a short string describing
      * its purpose. This can be used e.g. in UIs which allow to enter the
@@ -826,14 +900,18 @@ public Builder setTitle(
      * 
* * string title = 2; + * + * @return This builder for chaining. */ public Builder clearTitle() { - + title_ = getDefaultInstance().getTitle(); onChanged(); return this; } /** + * + * *
      * An optional title for the expression, i.e. a short string describing
      * its purpose. This can be used e.g. in UIs which allow to enter the
@@ -841,55 +919,62 @@ public Builder clearTitle() {
      * 
* * string title = 2; + * + * @param value The bytes for title to set. + * @return This builder for chaining. */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { + public Builder setTitleBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; onChanged(); return this; } - private Object description_ = ""; + private java.lang.Object description_ = ""; /** + * + * *
      * An optional description of the expression. This is a longer text which
      * describes the expression, e.g. when hovered over it in a UI.
      * 
* * string description = 3; + * + * @return The description. */ - public String getDescription() { - Object ref = description_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + 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; + java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * An optional description of the expression. This is a longer text which
      * describes the expression, e.g. when hovered over it in a UI.
      * 
* * string description = 3; + * + * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - Object ref = description_; + 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( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -897,93 +982,110 @@ public String getDescription() { } } /** + * + * *
      * An optional description of the expression. This is a longer text which
      * describes the expression, e.g. when hovered over it in a UI.
      * 
* * string description = 3; + * + * @param value The description to set. + * @return This builder for chaining. */ - public Builder setDescription( - String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * An optional description of the expression. This is a longer text which
      * describes the expression, e.g. when hovered over it in a UI.
      * 
* * string description = 3; + * + * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * An optional description of the expression. This is a longer text which
      * describes the expression, e.g. when hovered over it in a UI.
      * 
* * string description = 3; + * + * @param value The bytes for description to set. + * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private Object location_ = ""; + private java.lang.Object location_ = ""; /** + * + * *
      * An optional string indicating the location of the expression for error
      * reporting, e.g. a file name and a position in the file.
      * 
* * string location = 4; + * + * @return The location. */ - public String getLocation() { - Object ref = location_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * An optional string indicating the location of the expression for error
      * reporting, e.g. a file name and a position in the file.
      * 
* * string location = 4; + * + * @return The bytes for location. */ - public com.google.protobuf.ByteString - getLocationBytes() { - Object ref = location_; + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -991,106 +1093,116 @@ public String getLocation() { } } /** + * + * *
      * An optional string indicating the location of the expression for error
      * reporting, e.g. a file name and a position in the file.
      * 
* * string location = 4; + * + * @param value The location to set. + * @return This builder for chaining. */ - public Builder setLocation( - String value) { + public Builder setLocation(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + location_ = value; onChanged(); return this; } /** + * + * *
      * An optional string indicating the location of the expression for error
      * reporting, e.g. a file name and a position in the file.
      * 
* * string location = 4; + * + * @return This builder for chaining. */ public Builder clearLocation() { - + location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /** + * + * *
      * An optional string indicating the location of the expression for error
      * reporting, e.g. a file name and a position in the file.
      * 
* * string location = 4; + * + * @param value The bytes for location to set. + * @return This builder for chaining. */ - public Builder setLocationBytes( - com.google.protobuf.ByteString value) { + public Builder setLocationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.type.Expr) } // @@protoc_insertion_point(class_scope:google.type.Expr) - private static final Expr DEFAULT_INSTANCE; + private static final com.google.type.Expr DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new Expr(); + DEFAULT_INSTANCE = new com.google.type.Expr(); } - public static Expr getDefaultInstance() { + public static com.google.type.Expr getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public Expr parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Expr(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Expr parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Expr(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public Expr getDefaultInstanceForType() { + @java.lang.Override + public com.google.type.Expr getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/type/ExprOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/type/ExprOrBuilder.java index 65455819..b3e8ab87 100644 --- a/proto-google-common-protos/src/main/java/com/google/type/ExprOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/type/ExprOrBuilder.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/type/expr.proto package com.google.type; -public interface ExprOrBuilder extends +public interface ExprOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.type.Expr) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Textual representation of an expression in
    * Common Expression Language syntax.
@@ -16,9 +34,13 @@ public interface ExprOrBuilder extends
    * 
* * string expression = 1; + * + * @return The expression. */ - String getExpression(); + java.lang.String getExpression(); /** + * + * *
    * Textual representation of an expression in
    * Common Expression Language syntax.
@@ -27,11 +49,14 @@ public interface ExprOrBuilder extends
    * 
* * string expression = 1; + * + * @return The bytes for expression. */ - com.google.protobuf.ByteString - getExpressionBytes(); + com.google.protobuf.ByteString getExpressionBytes(); /** + * + * *
    * An optional title for the expression, i.e. a short string describing
    * its purpose. This can be used e.g. in UIs which allow to enter the
@@ -39,9 +64,13 @@ public interface ExprOrBuilder extends
    * 
* * string title = 2; + * + * @return The title. */ - String getTitle(); + java.lang.String getTitle(); /** + * + * *
    * An optional title for the expression, i.e. a short string describing
    * its purpose. This can be used e.g. in UIs which allow to enter the
@@ -49,47 +78,62 @@ public interface ExprOrBuilder extends
    * 
* * string title = 2; + * + * @return The bytes for title. */ - com.google.protobuf.ByteString - getTitleBytes(); + com.google.protobuf.ByteString getTitleBytes(); /** + * + * *
    * An optional description of the expression. This is a longer text which
    * describes the expression, e.g. when hovered over it in a UI.
    * 
* * string description = 3; + * + * @return The description. */ - String getDescription(); + java.lang.String getDescription(); /** + * + * *
    * An optional description of the expression. This is a longer text which
    * describes the expression, e.g. when hovered over it in a UI.
    * 
* * string description = 3; + * + * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * An optional string indicating the location of the expression for error
    * reporting, e.g. a file name and a position in the file.
    * 
* * string location = 4; + * + * @return The location. */ - String getLocation(); + java.lang.String getLocation(); /** + * + * *
    * An optional string indicating the location of the expression for error
    * reporting, e.g. a file name and a position in the file.
    * 
* * string location = 4; + * + * @return The bytes for location. */ - com.google.protobuf.ByteString - getLocationBytes(); + com.google.protobuf.ByteString getLocationBytes(); } diff --git a/proto-google-common-protos/src/main/java/com/google/type/ExprProto.java b/proto-google-common-protos/src/main/java/com/google/type/ExprProto.java index 49c9c81c..bc47445a 100644 --- a/proto-google-common-protos/src/main/java/com/google/type/ExprProto.java +++ b/proto-google-common-protos/src/main/java/com/google/type/ExprProto.java @@ -1,3 +1,18 @@ +/* + * 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/type/expr.proto @@ -5,54 +20,43 @@ public final class ExprProto { private ExprProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + 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_type_Expr_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_type_Expr_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_type_Expr_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { - String[] descriptorData = { - "\n\026google/type/expr.proto\022\013google.type\"P\n" + - "\004Expr\022\022\n\nexpression\030\001 \001(\t\022\r\n\005title\030\002 \001(\t" + - "\022\023\n\013description\030\003 \001(\t\022\020\n\010location\030\004 \001(\tB" + - "Z\n\017com.google.typeB\tExprProtoP\001Z4google." + - "golang.org/genproto/googleapis/type/expr" + - ";expr\242\002\003GTPb\006proto3" + java.lang.String[] descriptorData = { + "\n\026google/type/expr.proto\022\013google.type\"P\n" + + "\004Expr\022\022\n\nexpression\030\001 \001(\t\022\r\n\005title\030\002 \001(\t" + + "\022\023\n\013description\030\003 \001(\t\022\020\n\010location\030\004 \001(\tB" + + "Z\n\017com.google.typeB\tExprProtoP\001Z4google." + + "golang.org/genproto/googleapis/type/expr" + + ";expr\242\002\003GTPb\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_google_type_Expr_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_type_Expr_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_type_Expr_descriptor, - new String[] { "Expression", "Title", "Description", "Location", }); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_type_Expr_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_type_Expr_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_type_Expr_descriptor, + new java.lang.String[] { + "Expression", "Title", "Description", "Location", + }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-common-protos/src/main/java/com/google/type/Fraction.java b/proto-google-common-protos/src/main/java/com/google/type/Fraction.java index 7311b7bb..5df24b03 100644 --- a/proto-google-common-protos/src/main/java/com/google/type/Fraction.java +++ b/proto-google-common-protos/src/main/java/com/google/type/Fraction.java @@ -1,41 +1,63 @@ +/* + * 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/type/fraction.proto package com.google.type; /** + * + * *
  * Represents a fraction in terms of a numerator divided by a denominator.
  * 
* * Protobuf type {@code google.type.Fraction} */ -public final class Fraction extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Fraction extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.type.Fraction) FractionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Fraction.newBuilder() to construct. private Fraction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Fraction() { + + private Fraction() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Fraction(); } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Fraction( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -46,56 +68,59 @@ private Fraction( case 0: done = true; break; - case 8: { - - numerator_ = input.readInt64(); - break; - } - case 16: { - - denominator_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + numerator_ = input.readInt64(); + break; + } + case 16: + { + denominator_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.type.FractionProto.internal_static_google_type_Fraction_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.type.FractionProto.internal_static_google_type_Fraction_fieldAccessorTable .ensureFieldAccessorsInitialized( - Fraction.class, Builder.class); + com.google.type.Fraction.class, com.google.type.Fraction.Builder.class); } public static final int NUMERATOR_FIELD_NUMBER = 1; private long numerator_; /** + * + * *
    * The portion of the denominator in the faction, e.g. 2 in 2/3.
    * 
* * int64 numerator = 1; + * + * @return The numerator. */ public long getNumerator() { return numerator_; @@ -104,19 +129,24 @@ public long getNumerator() { public static final int DENOMINATOR_FIELD_NUMBER = 2; private long denominator_; /** + * + * *
    * The value by which the numerator is divided, e.g. 3 in 2/3. Must be
    * positive.
    * 
* * int64 denominator = 2; + * + * @return The denominator. */ public long getDenominator() { return denominator_; } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -126,9 +156,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (numerator_ != 0L) { output.writeInt64(1, numerator_); } @@ -138,44 +167,40 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (numerator_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, numerator_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, numerator_); } if (denominator_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, denominator_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, denominator_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof Fraction)) { + if (!(obj instanceof com.google.type.Fraction)) { return super.equals(obj); } - Fraction other = (Fraction) obj; + com.google.type.Fraction other = (com.google.type.Fraction) obj; - if (getNumerator() - != other.getNumerator()) return false; - if (getDenominator() - != other.getDenominator()) return false; + if (getNumerator() != other.getNumerator()) return false; + if (getDenominator() != other.getDenominator()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -183,128 +208,131 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NUMERATOR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNumerator()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNumerator()); hash = (37 * hash) + DENOMINATOR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDenominator()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDenominator()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static Fraction parseFrom( - java.nio.ByteBuffer data) + public static com.google.type.Fraction parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Fraction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.Fraction parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Fraction parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.type.Fraction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Fraction parseFrom( + + public static com.google.type.Fraction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Fraction parseFrom(byte[] data) + + public static com.google.type.Fraction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Fraction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.Fraction parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Fraction parseFrom(java.io.InputStream input) + + public static com.google.type.Fraction 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 Fraction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.Fraction parseFrom( + 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 Fraction parseDelimitedFrom(java.io.InputStream input) + + public static com.google.type.Fraction 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 Fraction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.Fraction parseDelimitedFrom( + 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 Fraction parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.type.Fraction 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 Fraction parseFrom( + + public static com.google.type.Fraction 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(Fraction prototype) { + + public static Builder newBuilder(com.google.type.Fraction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents a fraction in terms of a numerator divided by a denominator.
    * 
* * Protobuf type {@code google.type.Fraction} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.type.Fraction) com.google.type.FractionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.type.FractionProto.internal_static_google_type_Fraction_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.type.FractionProto.internal_static_google_type_Fraction_fieldAccessorTable .ensureFieldAccessorsInitialized( - Fraction.class, Builder.class); + com.google.type.Fraction.class, com.google.type.Fraction.Builder.class); } // Construct using com.google.type.Fraction.newBuilder() @@ -312,17 +340,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @Override + + @java.lang.Override public Builder clear() { super.clear(); numerator_ = 0L; @@ -332,79 +359,79 @@ public Builder clear() { return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.type.FractionProto.internal_static_google_type_Fraction_descriptor; } - @Override - public Fraction getDefaultInstanceForType() { - return Fraction.getDefaultInstance(); + @java.lang.Override + public com.google.type.Fraction getDefaultInstanceForType() { + return com.google.type.Fraction.getDefaultInstance(); } - @Override - public Fraction build() { - Fraction result = buildPartial(); + @java.lang.Override + public com.google.type.Fraction build() { + com.google.type.Fraction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public Fraction buildPartial() { - Fraction result = new Fraction(this); + @java.lang.Override + public com.google.type.Fraction buildPartial() { + com.google.type.Fraction result = new com.google.type.Fraction(this); result.numerator_ = numerator_; result.denominator_ = denominator_; onBuilt(); return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof Fraction) { - return mergeFrom((Fraction)other); + if (other instanceof com.google.type.Fraction) { + return mergeFrom((com.google.type.Fraction) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(Fraction other) { - if (other == Fraction.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.type.Fraction other) { + if (other == com.google.type.Fraction.getDefaultInstance()) return this; if (other.getNumerator() != 0L) { setNumerator(other.getNumerator()); } @@ -416,21 +443,21 @@ public Builder mergeFrom(Fraction other) { return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Fraction parsedMessage = null; + com.google.type.Fraction parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Fraction) e.getUnfinishedMessage(); + parsedMessage = (com.google.type.Fraction) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -440,134 +467,158 @@ public Builder mergeFrom( return this; } - private long numerator_ ; + private long numerator_; /** + * + * *
      * The portion of the denominator in the faction, e.g. 2 in 2/3.
      * 
* * int64 numerator = 1; + * + * @return The numerator. */ public long getNumerator() { return numerator_; } /** + * + * *
      * The portion of the denominator in the faction, e.g. 2 in 2/3.
      * 
* * int64 numerator = 1; + * + * @param value The numerator to set. + * @return This builder for chaining. */ public Builder setNumerator(long value) { - + numerator_ = value; onChanged(); return this; } /** + * + * *
      * The portion of the denominator in the faction, e.g. 2 in 2/3.
      * 
* * int64 numerator = 1; + * + * @return This builder for chaining. */ public Builder clearNumerator() { - + numerator_ = 0L; onChanged(); return this; } - private long denominator_ ; + private long denominator_; /** + * + * *
      * The value by which the numerator is divided, e.g. 3 in 2/3. Must be
      * positive.
      * 
* * int64 denominator = 2; + * + * @return The denominator. */ public long getDenominator() { return denominator_; } /** + * + * *
      * The value by which the numerator is divided, e.g. 3 in 2/3. Must be
      * positive.
      * 
* * int64 denominator = 2; + * + * @param value The denominator to set. + * @return This builder for chaining. */ public Builder setDenominator(long value) { - + denominator_ = value; onChanged(); return this; } /** + * + * *
      * The value by which the numerator is divided, e.g. 3 in 2/3. Must be
      * positive.
      * 
* * int64 denominator = 2; + * + * @return This builder for chaining. */ public Builder clearDenominator() { - + denominator_ = 0L; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.type.Fraction) } // @@protoc_insertion_point(class_scope:google.type.Fraction) - private static final Fraction DEFAULT_INSTANCE; + private static final com.google.type.Fraction DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new Fraction(); + DEFAULT_INSTANCE = new com.google.type.Fraction(); } - public static Fraction getDefaultInstance() { + public static com.google.type.Fraction getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public Fraction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Fraction(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Fraction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Fraction(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public Fraction getDefaultInstanceForType() { + @java.lang.Override + public com.google.type.Fraction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/type/FractionOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/type/FractionOrBuilder.java index 2880dc33..9ae6811f 100644 --- a/proto-google-common-protos/src/main/java/com/google/type/FractionOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/type/FractionOrBuilder.java @@ -1,28 +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/type/fraction.proto package com.google.type; -public interface FractionOrBuilder extends +public interface FractionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.type.Fraction) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The portion of the denominator in the faction, e.g. 2 in 2/3.
    * 
* * int64 numerator = 1; + * + * @return The numerator. */ long getNumerator(); /** + * + * *
    * The value by which the numerator is divided, e.g. 3 in 2/3. Must be
    * positive.
    * 
* * int64 denominator = 2; + * + * @return The denominator. */ long getDenominator(); } diff --git a/proto-google-common-protos/src/main/java/com/google/type/FractionProto.java b/proto-google-common-protos/src/main/java/com/google/type/FractionProto.java index 1fbe45fc..dea8f4ea 100644 --- a/proto-google-common-protos/src/main/java/com/google/type/FractionProto.java +++ b/proto-google-common-protos/src/main/java/com/google/type/FractionProto.java @@ -1,3 +1,18 @@ +/* + * 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/type/fraction.proto @@ -5,54 +20,43 @@ public final class FractionProto { private FractionProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + 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_type_Fraction_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_type_Fraction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_type_Fraction_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { - String[] descriptorData = { - "\n\032google/type/fraction.proto\022\013google.typ" + - "e\"2\n\010Fraction\022\021\n\tnumerator\030\001 \001(\003\022\023\n\013deno" + - "minator\030\002 \001(\003Bf\n\017com.google.typeB\rFracti" + - "onProtoP\001Z * An object representing a latitude/longitude pair. This is expressed as a pair * of doubles representing degrees latitude and degrees longitude. Unless @@ -14,32 +31,37 @@ * * Protobuf type {@code google.type.LatLng} */ -public final class LatLng extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LatLng extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.type.LatLng) LatLngOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LatLng.newBuilder() to construct. private LatLng(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LatLng() { + + private LatLng() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LatLng(); } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LatLng( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -50,56 +72,59 @@ private LatLng( case 0: done = true; break; - case 9: { - - latitude_ = input.readDouble(); - break; - } - case 17: { - - longitude_ = input.readDouble(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 9: + { + latitude_ = input.readDouble(); + break; + } + case 17: + { + longitude_ = input.readDouble(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.type.LatLngProto.internal_static_google_type_LatLng_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.type.LatLngProto.internal_static_google_type_LatLng_fieldAccessorTable .ensureFieldAccessorsInitialized( - LatLng.class, Builder.class); + com.google.type.LatLng.class, com.google.type.LatLng.Builder.class); } public static final int LATITUDE_FIELD_NUMBER = 1; private double latitude_; /** + * + * *
    * The latitude in degrees. It must be in the range [-90.0, +90.0].
    * 
* * double latitude = 1; + * + * @return The latitude. */ public double getLatitude() { return latitude_; @@ -108,18 +133,23 @@ public double getLatitude() { public static final int LONGITUDE_FIELD_NUMBER = 2; private double longitude_; /** + * + * *
    * The longitude in degrees. It must be in the range [-180.0, +180.0].
    * 
* * double longitude = 2; + * + * @return The longitude. */ public double getLongitude() { return longitude_; } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -129,9 +159,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (latitude_ != 0D) { output.writeDouble(1, latitude_); } @@ -141,46 +170,42 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (latitude_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, latitude_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, latitude_); } if (longitude_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, longitude_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, longitude_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof LatLng)) { + if (!(obj instanceof com.google.type.LatLng)) { return super.equals(obj); } - LatLng other = (LatLng) obj; + com.google.type.LatLng other = (com.google.type.LatLng) obj; - if (Double.doubleToLongBits(getLatitude()) - != Double.doubleToLongBits( - other.getLatitude())) return false; - if (Double.doubleToLongBits(getLongitude()) - != Double.doubleToLongBits( - other.getLongitude())) return false; + if (java.lang.Double.doubleToLongBits(getLatitude()) + != java.lang.Double.doubleToLongBits(other.getLatitude())) return false; + if (java.lang.Double.doubleToLongBits(getLongitude()) + != java.lang.Double.doubleToLongBits(other.getLongitude())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -188,107 +213,117 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LATITUDE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - Double.doubleToLongBits(getLatitude())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLatitude())); hash = (37 * hash) + LONGITUDE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - Double.doubleToLongBits(getLongitude())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLongitude())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static LatLng parseFrom( - java.nio.ByteBuffer data) + public static com.google.type.LatLng parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static LatLng parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.LatLng parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static LatLng parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.type.LatLng parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static LatLng parseFrom( + + public static com.google.type.LatLng parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static LatLng parseFrom(byte[] data) + + public static com.google.type.LatLng parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static LatLng parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.LatLng parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static LatLng parseFrom(java.io.InputStream input) + + public static com.google.type.LatLng 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 LatLng parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.LatLng parseFrom( + 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 LatLng parseDelimitedFrom(java.io.InputStream input) + + public static com.google.type.LatLng 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 LatLng parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.LatLng parseDelimitedFrom( + 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 LatLng parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.type.LatLng 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 LatLng parseFrom( + + public static com.google.type.LatLng 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(LatLng prototype) { + + public static Builder newBuilder(com.google.type.LatLng prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An object representing a latitude/longitude pair. This is expressed as a pair
    * of doubles representing degrees latitude and degrees longitude. Unless
@@ -299,21 +334,20 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.type.LatLng}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.type.LatLng)
       com.google.type.LatLngOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.type.LatLngProto.internal_static_google_type_LatLng_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return com.google.type.LatLngProto.internal_static_google_type_LatLng_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              LatLng.class, Builder.class);
+              com.google.type.LatLng.class, com.google.type.LatLng.Builder.class);
     }
 
     // Construct using com.google.type.LatLng.newBuilder()
@@ -321,17 +355,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       latitude_ = 0D;
@@ -341,79 +374,79 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.type.LatLngProto.internal_static_google_type_LatLng_descriptor;
     }
 
-    @Override
-    public LatLng getDefaultInstanceForType() {
-      return LatLng.getDefaultInstance();
+    @java.lang.Override
+    public com.google.type.LatLng getDefaultInstanceForType() {
+      return com.google.type.LatLng.getDefaultInstance();
     }
 
-    @Override
-    public LatLng build() {
-      LatLng result = buildPartial();
+    @java.lang.Override
+    public com.google.type.LatLng build() {
+      com.google.type.LatLng result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public LatLng buildPartial() {
-      LatLng result = new LatLng(this);
+    @java.lang.Override
+    public com.google.type.LatLng buildPartial() {
+      com.google.type.LatLng result = new com.google.type.LatLng(this);
       result.latitude_ = latitude_;
       result.longitude_ = longitude_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof LatLng) {
-        return mergeFrom((LatLng)other);
+      if (other instanceof com.google.type.LatLng) {
+        return mergeFrom((com.google.type.LatLng) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(LatLng other) {
-      if (other == LatLng.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.type.LatLng other) {
+      if (other == com.google.type.LatLng.getDefaultInstance()) return this;
       if (other.getLatitude() != 0D) {
         setLatitude(other.getLatitude());
       }
@@ -425,21 +458,21 @@ public Builder mergeFrom(LatLng other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      LatLng parsedMessage = null;
+      com.google.type.LatLng parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (LatLng) e.getUnfinishedMessage();
+        parsedMessage = (com.google.type.LatLng) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -449,131 +482,155 @@ public Builder mergeFrom(
       return this;
     }
 
-    private double latitude_ ;
+    private double latitude_;
     /**
+     *
+     *
      * 
      * The latitude in degrees. It must be in the range [-90.0, +90.0].
      * 
* * double latitude = 1; + * + * @return The latitude. */ public double getLatitude() { return latitude_; } /** + * + * *
      * The latitude in degrees. It must be in the range [-90.0, +90.0].
      * 
* * double latitude = 1; + * + * @param value The latitude to set. + * @return This builder for chaining. */ public Builder setLatitude(double value) { - + latitude_ = value; onChanged(); return this; } /** + * + * *
      * The latitude in degrees. It must be in the range [-90.0, +90.0].
      * 
* * double latitude = 1; + * + * @return This builder for chaining. */ public Builder clearLatitude() { - + latitude_ = 0D; onChanged(); return this; } - private double longitude_ ; + private double longitude_; /** + * + * *
      * The longitude in degrees. It must be in the range [-180.0, +180.0].
      * 
* * double longitude = 2; + * + * @return The longitude. */ public double getLongitude() { return longitude_; } /** + * + * *
      * The longitude in degrees. It must be in the range [-180.0, +180.0].
      * 
* * double longitude = 2; + * + * @param value The longitude to set. + * @return This builder for chaining. */ public Builder setLongitude(double value) { - + longitude_ = value; onChanged(); return this; } /** + * + * *
      * The longitude in degrees. It must be in the range [-180.0, +180.0].
      * 
* * double longitude = 2; + * + * @return This builder for chaining. */ public Builder clearLongitude() { - + longitude_ = 0D; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.type.LatLng) } // @@protoc_insertion_point(class_scope:google.type.LatLng) - private static final LatLng DEFAULT_INSTANCE; + private static final com.google.type.LatLng DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new LatLng(); + DEFAULT_INSTANCE = new com.google.type.LatLng(); } - public static LatLng getDefaultInstance() { + public static com.google.type.LatLng getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public LatLng parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LatLng(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LatLng parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LatLng(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public LatLng getDefaultInstanceForType() { + @java.lang.Override + public com.google.type.LatLng getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/type/LatLngOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/type/LatLngOrBuilder.java index e6fdead5..978f4281 100644 --- a/proto-google-common-protos/src/main/java/com/google/type/LatLngOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/type/LatLngOrBuilder.java @@ -1,27 +1,51 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/latlng.proto package com.google.type; -public interface LatLngOrBuilder extends +public interface LatLngOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.type.LatLng) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The latitude in degrees. It must be in the range [-90.0, +90.0].
    * 
* * double latitude = 1; + * + * @return The latitude. */ double getLatitude(); /** + * + * *
    * The longitude in degrees. It must be in the range [-180.0, +180.0].
    * 
* * double longitude = 2; + * + * @return The longitude. */ double getLongitude(); } diff --git a/proto-google-common-protos/src/main/java/com/google/type/LatLngProto.java b/proto-google-common-protos/src/main/java/com/google/type/LatLngProto.java index 710fbc4e..5302d9e7 100644 --- a/proto-google-common-protos/src/main/java/com/google/type/LatLngProto.java +++ b/proto-google-common-protos/src/main/java/com/google/type/LatLngProto.java @@ -1,3 +1,18 @@ +/* + * 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/type/latlng.proto @@ -5,53 +20,42 @@ public final class LatLngProto { private LatLngProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + 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_type_LatLng_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_type_LatLng_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_type_LatLng_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { - String[] descriptorData = { - "\n\030google/type/latlng.proto\022\013google.type\"" + - "-\n\006LatLng\022\020\n\010latitude\030\001 \001(\001\022\021\n\tlongitude" + - "\030\002 \001(\001Bc\n\017com.google.typeB\013LatLngProtoP\001" + - "Z8google.golang.org/genproto/googleapis/" + - "type/latlng;latlng\370\001\001\242\002\003GTPb\006proto3" + java.lang.String[] descriptorData = { + "\n\030google/type/latlng.proto\022\013google.type\"" + + "-\n\006LatLng\022\020\n\010latitude\030\001 \001(\001\022\021\n\tlongitude" + + "\030\002 \001(\001Bc\n\017com.google.typeB\013LatLngProtoP\001" + + "Z8google.golang.org/genproto/googleapis/" + + "type/latlng;latlng\370\001\001\242\002\003GTPb\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_google_type_LatLng_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_type_LatLng_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_type_LatLng_descriptor, - new String[] { "Latitude", "Longitude", }); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_type_LatLng_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_type_LatLng_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_type_LatLng_descriptor, + new java.lang.String[] { + "Latitude", "Longitude", + }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-common-protos/src/main/java/com/google/type/Money.java b/proto-google-common-protos/src/main/java/com/google/type/Money.java index f51a2bc0..caa5b1af 100644 --- a/proto-google-common-protos/src/main/java/com/google/type/Money.java +++ b/proto-google-common-protos/src/main/java/com/google/type/Money.java @@ -1,42 +1,65 @@ +/* + * 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/type/money.proto package com.google.type; /** + * + * *
  * Represents an amount of money with its currency type.
  * 
* * Protobuf type {@code google.type.Money} */ -public final class Money extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Money extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.type.Money) MoneyOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Money.newBuilder() to construct. private Money(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Money() { currencyCode_ = ""; } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Money(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Money( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -47,89 +70,94 @@ private Money( case 0: done = true; break; - case 10: { - String s = input.readStringRequireUtf8(); - - currencyCode_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - units_ = input.readInt64(); - break; - } - case 24: { - - nanos_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + currencyCode_ = s; + break; + } + case 16: + { + units_ = input.readInt64(); + break; + } + case 24: + { + nanos_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.type.MoneyProto.internal_static_google_type_Money_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.type.MoneyProto.internal_static_google_type_Money_fieldAccessorTable .ensureFieldAccessorsInitialized( - Money.class, Builder.class); + com.google.type.Money.class, com.google.type.Money.Builder.class); } public static final int CURRENCY_CODE_FIELD_NUMBER = 1; - private volatile Object currencyCode_; + private volatile java.lang.Object currencyCode_; /** + * + * *
    * The 3-letter currency code defined in ISO 4217.
    * 
* * string currency_code = 1; + * + * @return The currencyCode. */ - public String getCurrencyCode() { - Object ref = currencyCode_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getCurrencyCode() { + java.lang.Object ref = currencyCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; } } /** + * + * *
    * The 3-letter currency code defined in ISO 4217.
    * 
* * string currency_code = 1; + * + * @return The bytes for currencyCode. */ - public com.google.protobuf.ByteString - getCurrencyCodeBytes() { - Object ref = currencyCode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getCurrencyCodeBytes() { + java.lang.Object ref = currencyCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); currencyCode_ = b; return b; } else { @@ -140,12 +168,16 @@ public String getCurrencyCode() { public static final int UNITS_FIELD_NUMBER = 2; private long units_; /** + * + * *
    * The whole units of the amount.
    * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
    * 
* * int64 units = 2; + * + * @return The units. */ public long getUnits() { return units_; @@ -154,6 +186,8 @@ public long getUnits() { public static final int NANOS_FIELD_NUMBER = 3; private int nanos_; /** + * + * *
    * Number of nano (10^-9) units of the amount.
    * The value must be between -999,999,999 and +999,999,999 inclusive.
@@ -164,13 +198,16 @@ public long getUnits() {
    * 
* * int32 nanos = 3; + * + * @return The nanos. */ public int getNanos() { return nanos_; } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -180,9 +217,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getCurrencyCodeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, currencyCode_); } @@ -195,7 +231,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -205,39 +241,34 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, currencyCode_); } if (units_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, units_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, units_); } if (nanos_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, nanos_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, nanos_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof Money)) { + if (!(obj instanceof com.google.type.Money)) { return super.equals(obj); } - Money other = (Money) obj; + com.google.type.Money other = (com.google.type.Money) obj; - if (!getCurrencyCode() - .equals(other.getCurrencyCode())) return false; - if (getUnits() - != other.getUnits()) return false; - if (getNanos() - != other.getNanos()) return false; + if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; + if (getUnits() != other.getUnits()) return false; + if (getNanos() != other.getNanos()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -247,8 +278,7 @@ public int hashCode() { hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; hash = (53 * hash) + getCurrencyCode().hashCode(); hash = (37 * hash) + UNITS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUnits()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUnits()); hash = (37 * hash) + NANOS_FIELD_NUMBER; hash = (53 * hash) + getNanos(); hash = (29 * hash) + unknownFields.hashCode(); @@ -256,118 +286,123 @@ public int hashCode() { return hash; } - public static Money parseFrom( - java.nio.ByteBuffer data) + public static com.google.type.Money parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Money parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.Money parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Money parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.type.Money parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Money parseFrom( + + public static com.google.type.Money parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Money parseFrom(byte[] data) + + public static com.google.type.Money parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Money parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.Money parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Money parseFrom(java.io.InputStream input) + + public static com.google.type.Money 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 Money parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.Money parseFrom( + 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 Money parseDelimitedFrom(java.io.InputStream input) + + public static com.google.type.Money 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 Money parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.Money parseDelimitedFrom( + 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 Money parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.type.Money 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 Money parseFrom( + + public static com.google.type.Money 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(Money prototype) { + + public static Builder newBuilder(com.google.type.Money prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents an amount of money with its currency type.
    * 
* * Protobuf type {@code google.type.Money} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.type.Money) com.google.type.MoneyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.type.MoneyProto.internal_static_google_type_Money_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.type.MoneyProto.internal_static_google_type_Money_fieldAccessorTable .ensureFieldAccessorsInitialized( - Money.class, Builder.class); + com.google.type.Money.class, com.google.type.Money.Builder.class); } // Construct using com.google.type.Money.newBuilder() @@ -375,17 +410,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @Override + + @java.lang.Override public Builder clear() { super.clear(); currencyCode_ = ""; @@ -397,29 +431,28 @@ public Builder clear() { return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.type.MoneyProto.internal_static_google_type_Money_descriptor; } - @Override - public Money getDefaultInstanceForType() { - return Money.getDefaultInstance(); + @java.lang.Override + public com.google.type.Money getDefaultInstanceForType() { + return com.google.type.Money.getDefaultInstance(); } - @Override - public Money build() { - Money result = buildPartial(); + @java.lang.Override + public com.google.type.Money build() { + com.google.type.Money result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public Money buildPartial() { - Money result = new Money(this); + @java.lang.Override + public com.google.type.Money buildPartial() { + com.google.type.Money result = new com.google.type.Money(this); result.currencyCode_ = currencyCode_; result.units_ = units_; result.nanos_ = nanos_; @@ -427,50 +460,51 @@ public Money buildPartial() { return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof Money) { - return mergeFrom((Money)other); + if (other instanceof com.google.type.Money) { + return mergeFrom((com.google.type.Money) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(Money other) { - if (other == Money.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.type.Money other) { + if (other == com.google.type.Money.getDefaultInstance()) return this; if (!other.getCurrencyCode().isEmpty()) { currencyCode_ = other.currencyCode_; onChanged(); @@ -486,21 +520,21 @@ public Builder mergeFrom(Money other) { return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Money parsedMessage = null; + com.google.type.Money parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Money) e.getUnfinishedMessage(); + parsedMessage = (com.google.type.Money) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -510,40 +544,45 @@ public Builder mergeFrom( return this; } - private Object currencyCode_ = ""; + private java.lang.Object currencyCode_ = ""; /** + * + * *
      * The 3-letter currency code defined in ISO 4217.
      * 
* * string currency_code = 1; + * + * @return The currencyCode. */ - public String getCurrencyCode() { - Object ref = currencyCode_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getCurrencyCode() { + java.lang.Object ref = currencyCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * The 3-letter currency code defined in ISO 4217.
      * 
* * string currency_code = 1; + * + * @return The bytes for currencyCode. */ - public com.google.protobuf.ByteString - getCurrencyCodeBytes() { - Object ref = currencyCode_; + public com.google.protobuf.ByteString getCurrencyCodeBytes() { + java.lang.Object ref = currencyCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); currencyCode_ = b; return b; } else { @@ -551,97 +590,124 @@ public String getCurrencyCode() { } } /** + * + * *
      * The 3-letter currency code defined in ISO 4217.
      * 
* * string currency_code = 1; + * + * @param value The currencyCode to set. + * @return This builder for chaining. */ - public Builder setCurrencyCode( - String value) { + public Builder setCurrencyCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + currencyCode_ = value; onChanged(); return this; } /** + * + * *
      * The 3-letter currency code defined in ISO 4217.
      * 
* * string currency_code = 1; + * + * @return This builder for chaining. */ public Builder clearCurrencyCode() { - + currencyCode_ = getDefaultInstance().getCurrencyCode(); onChanged(); return this; } /** + * + * *
      * The 3-letter currency code defined in ISO 4217.
      * 
* * string currency_code = 1; + * + * @param value The bytes for currencyCode to set. + * @return This builder for chaining. */ - public Builder setCurrencyCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + currencyCode_ = value; onChanged(); return this; } - private long units_ ; + private long units_; /** + * + * *
      * The whole units of the amount.
      * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
      * 
* * int64 units = 2; + * + * @return The units. */ public long getUnits() { return units_; } /** + * + * *
      * The whole units of the amount.
      * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
      * 
* * int64 units = 2; + * + * @param value The units to set. + * @return This builder for chaining. */ public Builder setUnits(long value) { - + units_ = value; onChanged(); return this; } /** + * + * *
      * The whole units of the amount.
      * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
      * 
* * int64 units = 2; + * + * @return This builder for chaining. */ public Builder clearUnits() { - + units_ = 0L; onChanged(); return this; } - private int nanos_ ; + private int nanos_; /** + * + * *
      * Number of nano (10^-9) units of the amount.
      * The value must be between -999,999,999 and +999,999,999 inclusive.
@@ -652,11 +718,15 @@ public Builder clearUnits() {
      * 
* * int32 nanos = 3; + * + * @return The nanos. */ public int getNanos() { return nanos_; } /** + * + * *
      * Number of nano (10^-9) units of the amount.
      * The value must be between -999,999,999 and +999,999,999 inclusive.
@@ -667,14 +737,19 @@ public int getNanos() {
      * 
* * int32 nanos = 3; + * + * @param value The nanos to set. + * @return This builder for chaining. */ public Builder setNanos(int value) { - + nanos_ = value; onChanged(); return this; } /** + * + * *
      * Number of nano (10^-9) units of the amount.
      * The value must be between -999,999,999 and +999,999,999 inclusive.
@@ -685,63 +760,63 @@ public Builder setNanos(int value) {
      * 
* * int32 nanos = 3; + * + * @return This builder for chaining. */ public Builder clearNanos() { - + nanos_ = 0; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.type.Money) } // @@protoc_insertion_point(class_scope:google.type.Money) - private static final Money DEFAULT_INSTANCE; + private static final com.google.type.Money DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new Money(); + DEFAULT_INSTANCE = new com.google.type.Money(); } - public static Money getDefaultInstance() { + public static com.google.type.Money getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public Money parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Money(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Money parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Money(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public Money getDefaultInstanceForType() { + @java.lang.Override + public com.google.type.Money getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/type/MoneyOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/type/MoneyOrBuilder.java index 36b9dcba..8210856c 100644 --- a/proto-google-common-protos/src/main/java/com/google/type/MoneyOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/type/MoneyOrBuilder.java @@ -1,41 +1,70 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/money.proto package com.google.type; -public interface MoneyOrBuilder extends +public interface MoneyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.type.Money) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The 3-letter currency code defined in ISO 4217.
    * 
* * string currency_code = 1; + * + * @return The currencyCode. */ - String getCurrencyCode(); + java.lang.String getCurrencyCode(); /** + * + * *
    * The 3-letter currency code defined in ISO 4217.
    * 
* * string currency_code = 1; + * + * @return The bytes for currencyCode. */ - com.google.protobuf.ByteString - getCurrencyCodeBytes(); + com.google.protobuf.ByteString getCurrencyCodeBytes(); /** + * + * *
    * The whole units of the amount.
    * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
    * 
* * int64 units = 2; + * + * @return The units. */ long getUnits(); /** + * + * *
    * Number of nano (10^-9) units of the amount.
    * The value must be between -999,999,999 and +999,999,999 inclusive.
@@ -46,6 +75,8 @@ public interface MoneyOrBuilder extends
    * 
* * int32 nanos = 3; + * + * @return The nanos. */ int getNanos(); } diff --git a/proto-google-common-protos/src/main/java/com/google/type/MoneyProto.java b/proto-google-common-protos/src/main/java/com/google/type/MoneyProto.java index d87ac35c..d6d549e9 100644 --- a/proto-google-common-protos/src/main/java/com/google/type/MoneyProto.java +++ b/proto-google-common-protos/src/main/java/com/google/type/MoneyProto.java @@ -1,3 +1,18 @@ +/* + * 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/type/money.proto @@ -5,54 +20,43 @@ public final class MoneyProto { private MoneyProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + 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_type_Money_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_type_Money_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_type_Money_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { - String[] descriptorData = { - "\n\027google/type/money.proto\022\013google.type\"<" + - "\n\005Money\022\025\n\rcurrency_code\030\001 \001(\t\022\r\n\005units\030" + - "\002 \001(\003\022\r\n\005nanos\030\003 \001(\005B`\n\017com.google.typeB" + - "\nMoneyProtoP\001Z6google.golang.org/genprot" + - "o/googleapis/type/money;money\370\001\001\242\002\003GTPb\006" + - "proto3" + java.lang.String[] descriptorData = { + "\n\027google/type/money.proto\022\013google.type\"<" + + "\n\005Money\022\025\n\rcurrency_code\030\001 \001(\t\022\r\n\005units\030" + + "\002 \001(\003\022\r\n\005nanos\030\003 \001(\005B`\n\017com.google.typeB" + + "\nMoneyProtoP\001Z6google.golang.org/genprot" + + "o/googleapis/type/money;money\370\001\001\242\002\003GTPb\006" + + "proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_google_type_Money_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_type_Money_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_type_Money_descriptor, - new String[] { "CurrencyCode", "Units", "Nanos", }); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_type_Money_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_type_Money_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_type_Money_descriptor, + new java.lang.String[] { + "CurrencyCode", "Units", "Nanos", + }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-common-protos/src/main/java/com/google/type/PostalAddress.java b/proto-google-common-protos/src/main/java/com/google/type/PostalAddress.java index 444896ce..40717ad6 100644 --- a/proto-google-common-protos/src/main/java/com/google/type/PostalAddress.java +++ b/proto-google-common-protos/src/main/java/com/google/type/PostalAddress.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/type/postal_address.proto package com.google.type; /** + * + * *
  * Represents a postal address, e.g. for postal delivery or payments addresses.
  * Given a postal address, a postal service can deliver items to a premise, P.O.
@@ -23,15 +40,16 @@
  *
  * Protobuf type {@code google.type.PostalAddress}
  */
-public  final class PostalAddress extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class PostalAddress extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.type.PostalAddress)
     PostalAddressOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use PostalAddress.newBuilder() to construct.
   private PostalAddress(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private PostalAddress() {
     regionCode_ = "";
     languageCode_ = "";
@@ -45,18 +63,24 @@ private PostalAddress() {
     organization_ = "";
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new PostalAddress();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private PostalAddress(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -69,133 +93,149 @@ private PostalAddress(
           case 0:
             done = true;
             break;
-          case 8: {
-
-            revision_ = input.readInt32();
-            break;
-          }
-          case 18: {
-            String s = input.readStringRequireUtf8();
+          case 8:
+            {
+              revision_ = input.readInt32();
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            regionCode_ = s;
-            break;
-          }
-          case 26: {
-            String s = input.readStringRequireUtf8();
+              regionCode_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            languageCode_ = s;
-            break;
-          }
-          case 34: {
-            String s = input.readStringRequireUtf8();
+              languageCode_ = s;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            postalCode_ = s;
-            break;
-          }
-          case 42: {
-            String s = input.readStringRequireUtf8();
+              postalCode_ = s;
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            sortingCode_ = s;
-            break;
-          }
-          case 50: {
-            String s = input.readStringRequireUtf8();
+              sortingCode_ = s;
+              break;
+            }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            administrativeArea_ = s;
-            break;
-          }
-          case 58: {
-            String s = input.readStringRequireUtf8();
+              administrativeArea_ = s;
+              break;
+            }
+          case 58:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            locality_ = s;
-            break;
-          }
-          case 66: {
-            String s = input.readStringRequireUtf8();
+              locality_ = s;
+              break;
+            }
+          case 66:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            sublocality_ = s;
-            break;
-          }
-          case 74: {
-            String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000100) != 0)) {
-              addressLines_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000100;
+              sublocality_ = s;
+              break;
             }
-            addressLines_.add(s);
-            break;
-          }
-          case 82: {
-            String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000200) != 0)) {
-              recipients_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000200;
+          case 74:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                addressLines_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              addressLines_.add(s);
+              break;
             }
-            recipients_.add(s);
-            break;
-          }
-          case 90: {
-            String s = input.readStringRequireUtf8();
+          case 82:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                recipients_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              recipients_.add(s);
+              break;
+            }
+          case 90:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            organization_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              organization_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
-      if (((mutable_bitField0_ & 0x00000100) != 0)) {
+      if (((mutable_bitField0_ & 0x00000001) != 0)) {
         addressLines_ = addressLines_.getUnmodifiableView();
       }
-      if (((mutable_bitField0_ & 0x00000200) != 0)) {
+      if (((mutable_bitField0_ & 0x00000002) != 0)) {
         recipients_ = recipients_.getUnmodifiableView();
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.type.PostalAddressProto.internal_static_google_type_PostalAddress_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.type.PostalAddressProto.internal_static_google_type_PostalAddress_fieldAccessorTable
+    return com.google.type.PostalAddressProto
+        .internal_static_google_type_PostalAddress_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            PostalAddress.class, Builder.class);
+            com.google.type.PostalAddress.class, com.google.type.PostalAddress.Builder.class);
   }
 
-  private int bitField0_;
   public static final int REVISION_FIELD_NUMBER = 1;
   private int revision_;
   /**
+   *
+   *
    * 
-   * The schema revision of the `PostalAddress`.
+   * The schema revision of the `PostalAddress`. This must be set to 0, which is
+   * the latest revision.
    * All new revisions **must** be backward compatible with old revisions.
    * 
* * int32 revision = 1; + * + * @return The revision. */ public int getRevision() { return revision_; } public static final int REGION_CODE_FIELD_NUMBER = 2; - private volatile Object regionCode_; + private volatile java.lang.Object regionCode_; /** + * + * *
    * Required. CLDR region code of the country/region of the address. This
    * is never inferred and it is up to the user to ensure the value is
@@ -205,20 +245,23 @@ public int getRevision() {
    * 
* * string region_code = 2; + * + * @return The regionCode. */ - public String getRegionCode() { - Object ref = regionCode_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); regionCode_ = s; return s; } } /** + * + * *
    * Required. CLDR region code of the country/region of the address. This
    * is never inferred and it is up to the user to ensure the value is
@@ -228,14 +271,14 @@ public String getRegionCode() {
    * 
* * string region_code = 2; + * + * @return The bytes for regionCode. */ - public com.google.protobuf.ByteString - getRegionCodeBytes() { - Object ref = regionCode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); regionCode_ = b; return b; } else { @@ -244,8 +287,10 @@ public String getRegionCode() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; - private volatile Object languageCode_; + private volatile java.lang.Object languageCode_; /** + * + * *
    * Optional. BCP-47 language code of the contents of this address (if
    * known). This is often the UI language of the input form or is expected
@@ -260,20 +305,23 @@ public String getRegionCode() {
    * 
* * string language_code = 3; + * + * @return The languageCode. */ - public String getLanguageCode() { - Object ref = languageCode_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
    * Optional. BCP-47 language code of the contents of this address (if
    * known). This is often the UI language of the input form or is expected
@@ -288,14 +336,14 @@ public String getLanguageCode() {
    * 
* * string language_code = 3; + * + * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { - Object ref = languageCode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -304,8 +352,10 @@ public String getLanguageCode() { } public static final int POSTAL_CODE_FIELD_NUMBER = 4; - private volatile Object postalCode_; + private volatile java.lang.Object postalCode_; /** + * + * *
    * Optional. Postal code of the address. Not all countries use or require
    * postal codes to be present, but where they are used, they may trigger
@@ -314,20 +364,23 @@ public String getLanguageCode() {
    * 
* * string postal_code = 4; + * + * @return The postalCode. */ - public String getPostalCode() { - Object ref = postalCode_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getPostalCode() { + java.lang.Object ref = postalCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); postalCode_ = s; return s; } } /** + * + * *
    * Optional. Postal code of the address. Not all countries use or require
    * postal codes to be present, but where they are used, they may trigger
@@ -336,14 +389,14 @@ public String getPostalCode() {
    * 
* * string postal_code = 4; + * + * @return The bytes for postalCode. */ - public com.google.protobuf.ByteString - getPostalCodeBytes() { - Object ref = postalCode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getPostalCodeBytes() { + java.lang.Object ref = postalCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); postalCode_ = b; return b; } else { @@ -352,8 +405,10 @@ public String getPostalCode() { } public static final int SORTING_CODE_FIELD_NUMBER = 5; - private volatile Object sortingCode_; + private volatile java.lang.Object sortingCode_; /** + * + * *
    * Optional. Additional, country-specific, sorting code. This is not used
    * in most regions. Where it is used, the value is either a string like
@@ -363,20 +418,23 @@ public String getPostalCode() {
    * 
* * string sorting_code = 5; + * + * @return The sortingCode. */ - public String getSortingCode() { - Object ref = sortingCode_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getSortingCode() { + java.lang.Object ref = sortingCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); sortingCode_ = s; return s; } } /** + * + * *
    * Optional. Additional, country-specific, sorting code. This is not used
    * in most regions. Where it is used, the value is either a string like
@@ -386,14 +444,14 @@ public String getSortingCode() {
    * 
* * string sorting_code = 5; + * + * @return The bytes for sortingCode. */ - public com.google.protobuf.ByteString - getSortingCodeBytes() { - Object ref = sortingCode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getSortingCodeBytes() { + java.lang.Object ref = sortingCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sortingCode_ = b; return b; } else { @@ -402,8 +460,10 @@ public String getSortingCode() { } public static final int ADMINISTRATIVE_AREA_FIELD_NUMBER = 6; - private volatile Object administrativeArea_; + private volatile java.lang.Object administrativeArea_; /** + * + * *
    * Optional. Highest administrative subdivision which is used for postal
    * addresses of a country or region.
@@ -415,20 +475,23 @@ public String getSortingCode() {
    * 
* * string administrative_area = 6; + * + * @return The administrativeArea. */ - public String getAdministrativeArea() { - Object ref = administrativeArea_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getAdministrativeArea() { + java.lang.Object ref = administrativeArea_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); administrativeArea_ = s; return s; } } /** + * + * *
    * Optional. Highest administrative subdivision which is used for postal
    * addresses of a country or region.
@@ -440,14 +503,14 @@ public String getAdministrativeArea() {
    * 
* * string administrative_area = 6; + * + * @return The bytes for administrativeArea. */ - public com.google.protobuf.ByteString - getAdministrativeAreaBytes() { - Object ref = administrativeArea_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getAdministrativeAreaBytes() { + java.lang.Object ref = administrativeArea_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); administrativeArea_ = b; return b; } else { @@ -456,8 +519,10 @@ public String getAdministrativeArea() { } public static final int LOCALITY_FIELD_NUMBER = 7; - private volatile Object locality_; + private volatile java.lang.Object locality_; /** + * + * *
    * Optional. Generally refers to the city/town portion of the address.
    * Examples: US city, IT comune, UK post town.
@@ -466,20 +531,23 @@ public String getAdministrativeArea() {
    * 
* * string locality = 7; + * + * @return The locality. */ - public String getLocality() { - Object ref = locality_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getLocality() { + java.lang.Object ref = locality_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); locality_ = s; return s; } } /** + * + * *
    * Optional. Generally refers to the city/town portion of the address.
    * Examples: US city, IT comune, UK post town.
@@ -488,14 +556,14 @@ public String getLocality() {
    * 
* * string locality = 7; + * + * @return The bytes for locality. */ - public com.google.protobuf.ByteString - getLocalityBytes() { - Object ref = locality_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getLocalityBytes() { + java.lang.Object ref = locality_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locality_ = b; return b; } else { @@ -504,42 +572,47 @@ public String getLocality() { } public static final int SUBLOCALITY_FIELD_NUMBER = 8; - private volatile Object sublocality_; + private volatile java.lang.Object sublocality_; /** + * + * *
    * Optional. Sublocality of the address.
    * For example, this can be neighborhoods, boroughs, districts.
    * 
* * string sublocality = 8; + * + * @return The sublocality. */ - public String getSublocality() { - Object ref = sublocality_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getSublocality() { + java.lang.Object ref = sublocality_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); sublocality_ = s; return s; } } /** + * + * *
    * Optional. Sublocality of the address.
    * For example, this can be neighborhoods, boroughs, districts.
    * 
* * string sublocality = 8; + * + * @return The bytes for sublocality. */ - public com.google.protobuf.ByteString - getSublocalityBytes() { - Object ref = sublocality_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getSublocalityBytes() { + java.lang.Object ref = sublocality_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sublocality_ = b; return b; } else { @@ -550,6 +623,8 @@ public String getSublocality() { public static final int ADDRESS_LINES_FIELD_NUMBER = 9; private com.google.protobuf.LazyStringList addressLines_; /** + * + * *
    * Unstructured address lines describing the lower levels of an address.
    * Because values in address_lines do not have type information and may
@@ -573,12 +648,15 @@ public String getSublocality() {
    * 
* * repeated string address_lines = 9; + * + * @return A list containing the addressLines. */ - public com.google.protobuf.ProtocolStringList - getAddressLinesList() { + public com.google.protobuf.ProtocolStringList getAddressLinesList() { return addressLines_; } /** + * + * *
    * Unstructured address lines describing the lower levels of an address.
    * Because values in address_lines do not have type information and may
@@ -602,11 +680,15 @@ public String getSublocality() {
    * 
* * repeated string address_lines = 9; + * + * @return The count of addressLines. */ public int getAddressLinesCount() { return addressLines_.size(); } /** + * + * *
    * Unstructured address lines describing the lower levels of an address.
    * Because values in address_lines do not have type information and may
@@ -630,11 +712,16 @@ public int getAddressLinesCount() {
    * 
* * repeated string address_lines = 9; + * + * @param index The index of the element to return. + * @return The addressLines at the given index. */ - public String getAddressLines(int index) { + public java.lang.String getAddressLines(int index) { return addressLines_.get(index); } /** + * + * *
    * Unstructured address lines describing the lower levels of an address.
    * Because values in address_lines do not have type information and may
@@ -658,15 +745,19 @@ public String getAddressLines(int index) {
    * 
* * repeated string address_lines = 9; + * + * @param index The index of the value to return. + * @return The bytes of the addressLines at the given index. */ - public com.google.protobuf.ByteString - getAddressLinesBytes(int index) { + public com.google.protobuf.ByteString getAddressLinesBytes(int index) { return addressLines_.getByteString(index); } public static final int RECIPIENTS_FIELD_NUMBER = 10; private com.google.protobuf.LazyStringList recipients_; /** + * + * *
    * Optional. The recipient at the address.
    * This field may, under certain circumstances, contain multiline information.
@@ -674,12 +765,15 @@ public String getAddressLines(int index) {
    * 
* * repeated string recipients = 10; + * + * @return A list containing the recipients. */ - public com.google.protobuf.ProtocolStringList - getRecipientsList() { + public com.google.protobuf.ProtocolStringList getRecipientsList() { return recipients_; } /** + * + * *
    * Optional. The recipient at the address.
    * This field may, under certain circumstances, contain multiline information.
@@ -687,11 +781,15 @@ public String getAddressLines(int index) {
    * 
* * repeated string recipients = 10; + * + * @return The count of recipients. */ public int getRecipientsCount() { return recipients_.size(); } /** + * + * *
    * Optional. The recipient at the address.
    * This field may, under certain circumstances, contain multiline information.
@@ -699,11 +797,16 @@ public int getRecipientsCount() {
    * 
* * repeated string recipients = 10; + * + * @param index The index of the element to return. + * @return The recipients at the given index. */ - public String getRecipients(int index) { + public java.lang.String getRecipients(int index) { return recipients_.get(index); } /** + * + * *
    * Optional. The recipient at the address.
    * This field may, under certain circumstances, contain multiline information.
@@ -711,47 +814,54 @@ public String getRecipients(int index) {
    * 
* * repeated string recipients = 10; + * + * @param index The index of the value to return. + * @return The bytes of the recipients at the given index. */ - public com.google.protobuf.ByteString - getRecipientsBytes(int index) { + public com.google.protobuf.ByteString getRecipientsBytes(int index) { return recipients_.getByteString(index); } public static final int ORGANIZATION_FIELD_NUMBER = 11; - private volatile Object organization_; + private volatile java.lang.Object organization_; /** + * + * *
    * Optional. The name of the organization at the address.
    * 
* * string organization = 11; + * + * @return The organization. */ - public String getOrganization() { - Object ref = organization_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getOrganization() { + java.lang.Object ref = organization_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); organization_ = s; return s; } } /** + * + * *
    * Optional. The name of the organization at the address.
    * 
* * string organization = 11; + * + * @return The bytes for organization. */ - public com.google.protobuf.ByteString - getOrganizationBytes() { - Object ref = organization_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + public com.google.protobuf.ByteString getOrganizationBytes() { + java.lang.Object ref = organization_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); organization_ = b; return b; } else { @@ -760,7 +870,8 @@ public String getOrganization() { } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -770,9 +881,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (revision_ != 0) { output.writeInt32(1, revision_); } @@ -809,15 +919,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (revision_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, revision_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, revision_); } if (!getRegionCodeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, regionCode_); @@ -864,43 +973,32 @@ public int getSerializedSize() { return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof PostalAddress)) { + if (!(obj instanceof com.google.type.PostalAddress)) { return super.equals(obj); } - PostalAddress other = (PostalAddress) obj; - - if (getRevision() - != other.getRevision()) return false; - if (!getRegionCode() - .equals(other.getRegionCode())) return false; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; - if (!getPostalCode() - .equals(other.getPostalCode())) return false; - if (!getSortingCode() - .equals(other.getSortingCode())) return false; - if (!getAdministrativeArea() - .equals(other.getAdministrativeArea())) return false; - if (!getLocality() - .equals(other.getLocality())) return false; - if (!getSublocality() - .equals(other.getSublocality())) return false; - if (!getAddressLinesList() - .equals(other.getAddressLinesList())) return false; - if (!getRecipientsList() - .equals(other.getRecipientsList())) return false; - if (!getOrganization() - .equals(other.getOrganization())) return false; + com.google.type.PostalAddress other = (com.google.type.PostalAddress) obj; + + if (getRevision() != other.getRevision()) return false; + if (!getRegionCode().equals(other.getRegionCode())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getPostalCode().equals(other.getPostalCode())) return false; + if (!getSortingCode().equals(other.getSortingCode())) return false; + if (!getAdministrativeArea().equals(other.getAdministrativeArea())) return false; + if (!getLocality().equals(other.getLocality())) return false; + if (!getSublocality().equals(other.getSublocality())) return false; + if (!getAddressLinesList().equals(other.getAddressLinesList())) return false; + if (!getRecipientsList().equals(other.getRecipientsList())) return false; + if (!getOrganization().equals(other.getOrganization())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -938,97 +1036,103 @@ public int hashCode() { return hash; } - public static PostalAddress parseFrom( - java.nio.ByteBuffer data) + public static com.google.type.PostalAddress parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static PostalAddress parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.PostalAddress parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static PostalAddress parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.type.PostalAddress parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static PostalAddress parseFrom( + + public static com.google.type.PostalAddress parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static PostalAddress parseFrom(byte[] data) + + public static com.google.type.PostalAddress parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static PostalAddress parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.PostalAddress parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static PostalAddress parseFrom(java.io.InputStream input) + + public static com.google.type.PostalAddress 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 PostalAddress parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.PostalAddress parseFrom( + 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 PostalAddress parseDelimitedFrom(java.io.InputStream input) + + public static com.google.type.PostalAddress 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 PostalAddress parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.PostalAddress parseDelimitedFrom( + 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 PostalAddress parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.type.PostalAddress 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 PostalAddress parseFrom( + + public static com.google.type.PostalAddress 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(PostalAddress prototype) { + + public static Builder newBuilder(com.google.type.PostalAddress prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents a postal address, e.g. for postal delivery or payments addresses.
    * Given a postal address, a postal service can deliver items to a premise, P.O.
@@ -1048,21 +1152,22 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.type.PostalAddress}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.type.PostalAddress)
       com.google.type.PostalAddressOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.type.PostalAddressProto.internal_static_google_type_PostalAddress_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.type.PostalAddressProto
+          .internal_static_google_type_PostalAddress_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.type.PostalAddressProto.internal_static_google_type_PostalAddress_fieldAccessorTable
+      return com.google.type.PostalAddressProto
+          .internal_static_google_type_PostalAddress_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              PostalAddress.class, Builder.class);
+              com.google.type.PostalAddress.class, com.google.type.PostalAddress.Builder.class);
     }
 
     // Construct using com.google.type.PostalAddress.newBuilder()
@@ -1070,17 +1175,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       revision_ = 0;
@@ -1100,39 +1204,38 @@ public Builder clear() {
       sublocality_ = "";
 
       addressLines_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-      bitField0_ = (bitField0_ & ~0x00000100);
+      bitField0_ = (bitField0_ & ~0x00000001);
       recipients_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-      bitField0_ = (bitField0_ & ~0x00000200);
+      bitField0_ = (bitField0_ & ~0x00000002);
       organization_ = "";
 
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.type.PostalAddressProto.internal_static_google_type_PostalAddress_descriptor;
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.type.PostalAddressProto
+          .internal_static_google_type_PostalAddress_descriptor;
     }
 
-    @Override
-    public PostalAddress getDefaultInstanceForType() {
-      return PostalAddress.getDefaultInstance();
+    @java.lang.Override
+    public com.google.type.PostalAddress getDefaultInstanceForType() {
+      return com.google.type.PostalAddress.getDefaultInstance();
     }
 
-    @Override
-    public PostalAddress build() {
-      PostalAddress result = buildPartial();
+    @java.lang.Override
+    public com.google.type.PostalAddress build() {
+      com.google.type.PostalAddress result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public PostalAddress buildPartial() {
-      PostalAddress result = new PostalAddress(this);
+    @java.lang.Override
+    public com.google.type.PostalAddress buildPartial() {
+      com.google.type.PostalAddress result = new com.google.type.PostalAddress(this);
       int from_bitField0_ = bitField0_;
-      int to_bitField0_ = 0;
       result.revision_ = revision_;
       result.regionCode_ = regionCode_;
       result.languageCode_ = languageCode_;
@@ -1141,66 +1244,66 @@ public PostalAddress buildPartial() {
       result.administrativeArea_ = administrativeArea_;
       result.locality_ = locality_;
       result.sublocality_ = sublocality_;
-      if (((bitField0_ & 0x00000100) != 0)) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         addressLines_ = addressLines_.getUnmodifiableView();
-        bitField0_ = (bitField0_ & ~0x00000100);
+        bitField0_ = (bitField0_ & ~0x00000001);
       }
       result.addressLines_ = addressLines_;
-      if (((bitField0_ & 0x00000200) != 0)) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         recipients_ = recipients_.getUnmodifiableView();
-        bitField0_ = (bitField0_ & ~0x00000200);
+        bitField0_ = (bitField0_ & ~0x00000002);
       }
       result.recipients_ = recipients_;
       result.organization_ = organization_;
-      result.bitField0_ = to_bitField0_;
       onBuilt();
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof PostalAddress) {
-        return mergeFrom((PostalAddress)other);
+      if (other instanceof com.google.type.PostalAddress) {
+        return mergeFrom((com.google.type.PostalAddress) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(PostalAddress other) {
-      if (other == PostalAddress.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.type.PostalAddress other) {
+      if (other == com.google.type.PostalAddress.getDefaultInstance()) return this;
       if (other.getRevision() != 0) {
         setRevision(other.getRevision());
       }
@@ -1235,7 +1338,7 @@ public Builder mergeFrom(PostalAddress other) {
       if (!other.addressLines_.isEmpty()) {
         if (addressLines_.isEmpty()) {
           addressLines_ = other.addressLines_;
-          bitField0_ = (bitField0_ & ~0x00000100);
+          bitField0_ = (bitField0_ & ~0x00000001);
         } else {
           ensureAddressLinesIsMutable();
           addressLines_.addAll(other.addressLines_);
@@ -1245,7 +1348,7 @@ public Builder mergeFrom(PostalAddress other) {
       if (!other.recipients_.isEmpty()) {
         if (recipients_.isEmpty()) {
           recipients_ = other.recipients_;
-          bitField0_ = (bitField0_ & ~0x00000200);
+          bitField0_ = (bitField0_ & ~0x00000002);
         } else {
           ensureRecipientsIsMutable();
           recipients_.addAll(other.recipients_);
@@ -1261,21 +1364,21 @@ public Builder mergeFrom(PostalAddress other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      PostalAddress parsedMessage = null;
+      com.google.type.PostalAddress parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (PostalAddress) e.getUnfinishedMessage();
+        parsedMessage = (com.google.type.PostalAddress) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1284,51 +1387,70 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private int revision_ ;
+    private int revision_;
     /**
+     *
+     *
      * 
-     * The schema revision of the `PostalAddress`.
+     * The schema revision of the `PostalAddress`. This must be set to 0, which is
+     * the latest revision.
      * All new revisions **must** be backward compatible with old revisions.
      * 
* * int32 revision = 1; + * + * @return The revision. */ public int getRevision() { return revision_; } /** + * + * *
-     * The schema revision of the `PostalAddress`.
+     * The schema revision of the `PostalAddress`. This must be set to 0, which is
+     * the latest revision.
      * All new revisions **must** be backward compatible with old revisions.
      * 
* * int32 revision = 1; + * + * @param value The revision to set. + * @return This builder for chaining. */ public Builder setRevision(int value) { - + revision_ = value; onChanged(); return this; } /** + * + * *
-     * The schema revision of the `PostalAddress`.
+     * The schema revision of the `PostalAddress`. This must be set to 0, which is
+     * the latest revision.
      * All new revisions **must** be backward compatible with old revisions.
      * 
* * int32 revision = 1; + * + * @return This builder for chaining. */ public Builder clearRevision() { - + revision_ = 0; onChanged(); return this; } - private Object regionCode_ = ""; + private java.lang.Object regionCode_ = ""; /** + * + * *
      * Required. CLDR region code of the country/region of the address. This
      * is never inferred and it is up to the user to ensure the value is
@@ -1338,20 +1460,23 @@ public Builder clearRevision() {
      * 
* * string region_code = 2; + * + * @return The regionCode. */ - public String getRegionCode() { - Object ref = regionCode_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); regionCode_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Required. CLDR region code of the country/region of the address. This
      * is never inferred and it is up to the user to ensure the value is
@@ -1361,14 +1486,14 @@ public String getRegionCode() {
      * 
* * string region_code = 2; + * + * @return The bytes for regionCode. */ - public com.google.protobuf.ByteString - getRegionCodeBytes() { - Object ref = regionCode_; + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); regionCode_ = b; return b; } else { @@ -1376,6 +1501,8 @@ public String getRegionCode() { } } /** + * + * *
      * Required. CLDR region code of the country/region of the address. This
      * is never inferred and it is up to the user to ensure the value is
@@ -1385,18 +1512,22 @@ public String getRegionCode() {
      * 
* * string region_code = 2; + * + * @param value The regionCode to set. + * @return This builder for chaining. */ - public Builder setRegionCode( - String value) { + public Builder setRegionCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + regionCode_ = value; onChanged(); return this; } /** + * + * *
      * Required. CLDR region code of the country/region of the address. This
      * is never inferred and it is up to the user to ensure the value is
@@ -1406,14 +1537,18 @@ public Builder setRegionCode(
      * 
* * string region_code = 2; + * + * @return This builder for chaining. */ public Builder clearRegionCode() { - + regionCode_ = getDefaultInstance().getRegionCode(); onChanged(); return this; } /** + * + * *
      * Required. CLDR region code of the country/region of the address. This
      * is never inferred and it is up to the user to ensure the value is
@@ -1423,21 +1558,25 @@ public Builder clearRegionCode() {
      * 
* * string region_code = 2; + * + * @param value The bytes for regionCode to set. + * @return This builder for chaining. */ - public Builder setRegionCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + regionCode_ = value; onChanged(); return this; } - private Object languageCode_ = ""; + private java.lang.Object languageCode_ = ""; /** + * + * *
      * Optional. BCP-47 language code of the contents of this address (if
      * known). This is often the UI language of the input form or is expected
@@ -1452,20 +1591,23 @@ public Builder setRegionCodeBytes(
      * 
* * string language_code = 3; + * + * @return The languageCode. */ - public String getLanguageCode() { - Object ref = languageCode_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Optional. BCP-47 language code of the contents of this address (if
      * known). This is often the UI language of the input form or is expected
@@ -1480,14 +1622,14 @@ public String getLanguageCode() {
      * 
* * string language_code = 3; + * + * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { - Object ref = languageCode_; + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1495,6 +1637,8 @@ public String getLanguageCode() { } } /** + * + * *
      * Optional. BCP-47 language code of the contents of this address (if
      * known). This is often the UI language of the input form or is expected
@@ -1509,18 +1653,22 @@ public String getLanguageCode() {
      * 
* * string language_code = 3; + * + * @param value The languageCode to set. + * @return This builder for chaining. */ - public Builder setLanguageCode( - String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
      * Optional. BCP-47 language code of the contents of this address (if
      * known). This is often the UI language of the input form or is expected
@@ -1535,14 +1683,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 3; + * + * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * Optional. BCP-47 language code of the contents of this address (if
      * known). This is often the UI language of the input form or is expected
@@ -1557,21 +1709,25 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 3; + * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - private Object postalCode_ = ""; + private java.lang.Object postalCode_ = ""; /** + * + * *
      * Optional. Postal code of the address. Not all countries use or require
      * postal codes to be present, but where they are used, they may trigger
@@ -1580,20 +1736,23 @@ public Builder setLanguageCodeBytes(
      * 
* * string postal_code = 4; + * + * @return The postalCode. */ - public String getPostalCode() { - Object ref = postalCode_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getPostalCode() { + java.lang.Object ref = postalCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); postalCode_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Optional. Postal code of the address. Not all countries use or require
      * postal codes to be present, but where they are used, they may trigger
@@ -1602,14 +1761,14 @@ public String getPostalCode() {
      * 
* * string postal_code = 4; + * + * @return The bytes for postalCode. */ - public com.google.protobuf.ByteString - getPostalCodeBytes() { - Object ref = postalCode_; + public com.google.protobuf.ByteString getPostalCodeBytes() { + java.lang.Object ref = postalCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); postalCode_ = b; return b; } else { @@ -1617,6 +1776,8 @@ public String getPostalCode() { } } /** + * + * *
      * Optional. Postal code of the address. Not all countries use or require
      * postal codes to be present, but where they are used, they may trigger
@@ -1625,18 +1786,22 @@ public String getPostalCode() {
      * 
* * string postal_code = 4; + * + * @param value The postalCode to set. + * @return This builder for chaining. */ - public Builder setPostalCode( - String value) { + public Builder setPostalCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + postalCode_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Postal code of the address. Not all countries use or require
      * postal codes to be present, but where they are used, they may trigger
@@ -1645,14 +1810,18 @@ public Builder setPostalCode(
      * 
* * string postal_code = 4; + * + * @return This builder for chaining. */ public Builder clearPostalCode() { - + postalCode_ = getDefaultInstance().getPostalCode(); onChanged(); return this; } /** + * + * *
      * Optional. Postal code of the address. Not all countries use or require
      * postal codes to be present, but where they are used, they may trigger
@@ -1661,21 +1830,25 @@ public Builder clearPostalCode() {
      * 
* * string postal_code = 4; + * + * @param value The bytes for postalCode to set. + * @return This builder for chaining. */ - public Builder setPostalCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setPostalCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + postalCode_ = value; onChanged(); return this; } - private Object sortingCode_ = ""; + private java.lang.Object sortingCode_ = ""; /** + * + * *
      * Optional. Additional, country-specific, sorting code. This is not used
      * in most regions. Where it is used, the value is either a string like
@@ -1685,20 +1858,23 @@ public Builder setPostalCodeBytes(
      * 
* * string sorting_code = 5; + * + * @return The sortingCode. */ - public String getSortingCode() { - Object ref = sortingCode_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getSortingCode() { + java.lang.Object ref = sortingCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); sortingCode_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Optional. Additional, country-specific, sorting code. This is not used
      * in most regions. Where it is used, the value is either a string like
@@ -1708,14 +1884,14 @@ public String getSortingCode() {
      * 
* * string sorting_code = 5; + * + * @return The bytes for sortingCode. */ - public com.google.protobuf.ByteString - getSortingCodeBytes() { - Object ref = sortingCode_; + public com.google.protobuf.ByteString getSortingCodeBytes() { + java.lang.Object ref = sortingCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sortingCode_ = b; return b; } else { @@ -1723,6 +1899,8 @@ public String getSortingCode() { } } /** + * + * *
      * Optional. Additional, country-specific, sorting code. This is not used
      * in most regions. Where it is used, the value is either a string like
@@ -1732,18 +1910,22 @@ public String getSortingCode() {
      * 
* * string sorting_code = 5; + * + * @param value The sortingCode to set. + * @return This builder for chaining. */ - public Builder setSortingCode( - String value) { + public Builder setSortingCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sortingCode_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Additional, country-specific, sorting code. This is not used
      * in most regions. Where it is used, the value is either a string like
@@ -1753,14 +1935,18 @@ public Builder setSortingCode(
      * 
* * string sorting_code = 5; + * + * @return This builder for chaining. */ public Builder clearSortingCode() { - + sortingCode_ = getDefaultInstance().getSortingCode(); onChanged(); return this; } /** + * + * *
      * Optional. Additional, country-specific, sorting code. This is not used
      * in most regions. Where it is used, the value is either a string like
@@ -1770,21 +1956,25 @@ public Builder clearSortingCode() {
      * 
* * string sorting_code = 5; + * + * @param value The bytes for sortingCode to set. + * @return This builder for chaining. */ - public Builder setSortingCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setSortingCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sortingCode_ = value; onChanged(); return this; } - private Object administrativeArea_ = ""; + private java.lang.Object administrativeArea_ = ""; /** + * + * *
      * Optional. Highest administrative subdivision which is used for postal
      * addresses of a country or region.
@@ -1796,20 +1986,23 @@ public Builder setSortingCodeBytes(
      * 
* * string administrative_area = 6; + * + * @return The administrativeArea. */ - public String getAdministrativeArea() { - Object ref = administrativeArea_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getAdministrativeArea() { + java.lang.Object ref = administrativeArea_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); administrativeArea_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Optional. Highest administrative subdivision which is used for postal
      * addresses of a country or region.
@@ -1821,14 +2014,14 @@ public String getAdministrativeArea() {
      * 
* * string administrative_area = 6; + * + * @return The bytes for administrativeArea. */ - public com.google.protobuf.ByteString - getAdministrativeAreaBytes() { - Object ref = administrativeArea_; + public com.google.protobuf.ByteString getAdministrativeAreaBytes() { + java.lang.Object ref = administrativeArea_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); administrativeArea_ = b; return b; } else { @@ -1836,6 +2029,8 @@ public String getAdministrativeArea() { } } /** + * + * *
      * Optional. Highest administrative subdivision which is used for postal
      * addresses of a country or region.
@@ -1847,18 +2042,22 @@ public String getAdministrativeArea() {
      * 
* * string administrative_area = 6; + * + * @param value The administrativeArea to set. + * @return This builder for chaining. */ - public Builder setAdministrativeArea( - String value) { + public Builder setAdministrativeArea(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + administrativeArea_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Highest administrative subdivision which is used for postal
      * addresses of a country or region.
@@ -1870,14 +2069,18 @@ public Builder setAdministrativeArea(
      * 
* * string administrative_area = 6; + * + * @return This builder for chaining. */ public Builder clearAdministrativeArea() { - + administrativeArea_ = getDefaultInstance().getAdministrativeArea(); onChanged(); return this; } /** + * + * *
      * Optional. Highest administrative subdivision which is used for postal
      * addresses of a country or region.
@@ -1889,21 +2092,25 @@ public Builder clearAdministrativeArea() {
      * 
* * string administrative_area = 6; + * + * @param value The bytes for administrativeArea to set. + * @return This builder for chaining. */ - public Builder setAdministrativeAreaBytes( - com.google.protobuf.ByteString value) { + public Builder setAdministrativeAreaBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + administrativeArea_ = value; onChanged(); return this; } - private Object locality_ = ""; + private java.lang.Object locality_ = ""; /** + * + * *
      * Optional. Generally refers to the city/town portion of the address.
      * Examples: US city, IT comune, UK post town.
@@ -1912,20 +2119,23 @@ public Builder setAdministrativeAreaBytes(
      * 
* * string locality = 7; + * + * @return The locality. */ - public String getLocality() { - Object ref = locality_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getLocality() { + java.lang.Object ref = locality_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); locality_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Optional. Generally refers to the city/town portion of the address.
      * Examples: US city, IT comune, UK post town.
@@ -1934,14 +2144,14 @@ public String getLocality() {
      * 
* * string locality = 7; + * + * @return The bytes for locality. */ - public com.google.protobuf.ByteString - getLocalityBytes() { - Object ref = locality_; + public com.google.protobuf.ByteString getLocalityBytes() { + java.lang.Object ref = locality_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locality_ = b; return b; } else { @@ -1949,6 +2159,8 @@ public String getLocality() { } } /** + * + * *
      * Optional. Generally refers to the city/town portion of the address.
      * Examples: US city, IT comune, UK post town.
@@ -1957,18 +2169,22 @@ public String getLocality() {
      * 
* * string locality = 7; + * + * @param value The locality to set. + * @return This builder for chaining. */ - public Builder setLocality( - String value) { + public Builder setLocality(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + locality_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Generally refers to the city/town portion of the address.
      * Examples: US city, IT comune, UK post town.
@@ -1977,14 +2193,18 @@ public Builder setLocality(
      * 
* * string locality = 7; + * + * @return This builder for chaining. */ public Builder clearLocality() { - + locality_ = getDefaultInstance().getLocality(); onChanged(); return this; } /** + * + * *
      * Optional. Generally refers to the city/town portion of the address.
      * Examples: US city, IT comune, UK post town.
@@ -1993,55 +2213,62 @@ public Builder clearLocality() {
      * 
* * string locality = 7; + * + * @param value The bytes for locality to set. + * @return This builder for chaining. */ - public Builder setLocalityBytes( - com.google.protobuf.ByteString value) { + public Builder setLocalityBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + locality_ = value; onChanged(); return this; } - private Object sublocality_ = ""; + private java.lang.Object sublocality_ = ""; /** + * + * *
      * Optional. Sublocality of the address.
      * For example, this can be neighborhoods, boroughs, districts.
      * 
* * string sublocality = 8; + * + * @return The sublocality. */ - public String getSublocality() { - Object ref = sublocality_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getSublocality() { + java.lang.Object ref = sublocality_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); sublocality_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Optional. Sublocality of the address.
      * For example, this can be neighborhoods, boroughs, districts.
      * 
* * string sublocality = 8; + * + * @return The bytes for sublocality. */ - public com.google.protobuf.ByteString - getSublocalityBytes() { - Object ref = sublocality_; + public com.google.protobuf.ByteString getSublocalityBytes() { + java.lang.Object ref = sublocality_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sublocality_ = b; return b; } else { @@ -2049,65 +2276,81 @@ public String getSublocality() { } } /** + * + * *
      * Optional. Sublocality of the address.
      * For example, this can be neighborhoods, boroughs, districts.
      * 
* * string sublocality = 8; + * + * @param value The sublocality to set. + * @return This builder for chaining. */ - public Builder setSublocality( - String value) { + public Builder setSublocality(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sublocality_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Sublocality of the address.
      * For example, this can be neighborhoods, boroughs, districts.
      * 
* * string sublocality = 8; + * + * @return This builder for chaining. */ public Builder clearSublocality() { - + sublocality_ = getDefaultInstance().getSublocality(); onChanged(); return this; } /** + * + * *
      * Optional. Sublocality of the address.
      * For example, this can be neighborhoods, boroughs, districts.
      * 
* * string sublocality = 8; + * + * @param value The bytes for sublocality to set. + * @return This builder for chaining. */ - public Builder setSublocalityBytes( - com.google.protobuf.ByteString value) { + public Builder setSublocalityBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sublocality_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList addressLines_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList addressLines_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAddressLinesIsMutable() { - if (!((bitField0_ & 0x00000100) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { addressLines_ = new com.google.protobuf.LazyStringArrayList(addressLines_); - bitField0_ |= 0x00000100; - } + bitField0_ |= 0x00000001; + } } /** + * + * *
      * Unstructured address lines describing the lower levels of an address.
      * Because values in address_lines do not have type information and may
@@ -2131,12 +2374,15 @@ private void ensureAddressLinesIsMutable() {
      * 
* * repeated string address_lines = 9; + * + * @return A list containing the addressLines. */ - public com.google.protobuf.ProtocolStringList - getAddressLinesList() { + public com.google.protobuf.ProtocolStringList getAddressLinesList() { return addressLines_.getUnmodifiableView(); } /** + * + * *
      * Unstructured address lines describing the lower levels of an address.
      * Because values in address_lines do not have type information and may
@@ -2160,11 +2406,15 @@ private void ensureAddressLinesIsMutable() {
      * 
* * repeated string address_lines = 9; + * + * @return The count of addressLines. */ public int getAddressLinesCount() { return addressLines_.size(); } /** + * + * *
      * Unstructured address lines describing the lower levels of an address.
      * Because values in address_lines do not have type information and may
@@ -2188,11 +2438,16 @@ public int getAddressLinesCount() {
      * 
* * repeated string address_lines = 9; + * + * @param index The index of the element to return. + * @return The addressLines at the given index. */ - public String getAddressLines(int index) { + public java.lang.String getAddressLines(int index) { return addressLines_.get(index); } /** + * + * *
      * Unstructured address lines describing the lower levels of an address.
      * Because values in address_lines do not have type information and may
@@ -2216,12 +2471,16 @@ public String getAddressLines(int index) {
      * 
* * repeated string address_lines = 9; + * + * @param index The index of the value to return. + * @return The bytes of the addressLines at the given index. */ - public com.google.protobuf.ByteString - getAddressLinesBytes(int index) { + public com.google.protobuf.ByteString getAddressLinesBytes(int index) { return addressLines_.getByteString(index); } /** + * + * *
      * Unstructured address lines describing the lower levels of an address.
      * Because values in address_lines do not have type information and may
@@ -2245,18 +2504,23 @@ public String getAddressLines(int index) {
      * 
* * repeated string address_lines = 9; + * + * @param index The index to set the value at. + * @param value The addressLines to set. + * @return This builder for chaining. */ - public Builder setAddressLines( - int index, String value) { + public Builder setAddressLines(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAddressLinesIsMutable(); + throw new NullPointerException(); + } + ensureAddressLinesIsMutable(); addressLines_.set(index, value); onChanged(); return this; } /** + * + * *
      * Unstructured address lines describing the lower levels of an address.
      * Because values in address_lines do not have type information and may
@@ -2280,18 +2544,22 @@ public Builder setAddressLines(
      * 
* * repeated string address_lines = 9; + * + * @param value The addressLines to add. + * @return This builder for chaining. */ - public Builder addAddressLines( - String value) { + public Builder addAddressLines(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAddressLinesIsMutable(); + throw new NullPointerException(); + } + ensureAddressLinesIsMutable(); addressLines_.add(value); onChanged(); return this; } /** + * + * *
      * Unstructured address lines describing the lower levels of an address.
      * Because values in address_lines do not have type information and may
@@ -2315,16 +2583,19 @@ public Builder addAddressLines(
      * 
* * repeated string address_lines = 9; + * + * @param values The addressLines to add. + * @return This builder for chaining. */ - public Builder addAllAddressLines( - Iterable values) { + public Builder addAllAddressLines(java.lang.Iterable values) { ensureAddressLinesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, addressLines_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, addressLines_); onChanged(); return this; } /** + * + * *
      * Unstructured address lines describing the lower levels of an address.
      * Because values in address_lines do not have type information and may
@@ -2348,14 +2619,18 @@ public Builder addAllAddressLines(
      * 
* * repeated string address_lines = 9; + * + * @return This builder for chaining. */ public Builder clearAddressLines() { addressLines_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** + * + * *
      * Unstructured address lines describing the lower levels of an address.
      * Because values in address_lines do not have type information and may
@@ -2379,27 +2654,33 @@ public Builder clearAddressLines() {
      * 
* * repeated string address_lines = 9; + * + * @param value The bytes of the addressLines to add. + * @return This builder for chaining. */ - public Builder addAddressLinesBytes( - com.google.protobuf.ByteString value) { + public Builder addAddressLinesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAddressLinesIsMutable(); addressLines_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList recipients_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList recipients_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRecipientsIsMutable() { - if (!((bitField0_ & 0x00000200) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { recipients_ = new com.google.protobuf.LazyStringArrayList(recipients_); - bitField0_ |= 0x00000200; - } + bitField0_ |= 0x00000002; + } } /** + * + * *
      * Optional. The recipient at the address.
      * This field may, under certain circumstances, contain multiline information.
@@ -2407,12 +2688,15 @@ private void ensureRecipientsIsMutable() {
      * 
* * repeated string recipients = 10; + * + * @return A list containing the recipients. */ - public com.google.protobuf.ProtocolStringList - getRecipientsList() { + public com.google.protobuf.ProtocolStringList getRecipientsList() { return recipients_.getUnmodifiableView(); } /** + * + * *
      * Optional. The recipient at the address.
      * This field may, under certain circumstances, contain multiline information.
@@ -2420,11 +2704,15 @@ private void ensureRecipientsIsMutable() {
      * 
* * repeated string recipients = 10; + * + * @return The count of recipients. */ public int getRecipientsCount() { return recipients_.size(); } /** + * + * *
      * Optional. The recipient at the address.
      * This field may, under certain circumstances, contain multiline information.
@@ -2432,11 +2720,16 @@ public int getRecipientsCount() {
      * 
* * repeated string recipients = 10; + * + * @param index The index of the element to return. + * @return The recipients at the given index. */ - public String getRecipients(int index) { + public java.lang.String getRecipients(int index) { return recipients_.get(index); } /** + * + * *
      * Optional. The recipient at the address.
      * This field may, under certain circumstances, contain multiline information.
@@ -2444,12 +2737,16 @@ public String getRecipients(int index) {
      * 
* * repeated string recipients = 10; + * + * @param index The index of the value to return. + * @return The bytes of the recipients at the given index. */ - public com.google.protobuf.ByteString - getRecipientsBytes(int index) { + public com.google.protobuf.ByteString getRecipientsBytes(int index) { return recipients_.getByteString(index); } /** + * + * *
      * Optional. The recipient at the address.
      * This field may, under certain circumstances, contain multiline information.
@@ -2457,18 +2754,23 @@ public String getRecipients(int index) {
      * 
* * repeated string recipients = 10; + * + * @param index The index to set the value at. + * @param value The recipients to set. + * @return This builder for chaining. */ - public Builder setRecipients( - int index, String value) { + public Builder setRecipients(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRecipientsIsMutable(); + throw new NullPointerException(); + } + ensureRecipientsIsMutable(); recipients_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. The recipient at the address.
      * This field may, under certain circumstances, contain multiline information.
@@ -2476,18 +2778,22 @@ public Builder setRecipients(
      * 
* * repeated string recipients = 10; + * + * @param value The recipients to add. + * @return This builder for chaining. */ - public Builder addRecipients( - String value) { + public Builder addRecipients(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRecipientsIsMutable(); + throw new NullPointerException(); + } + ensureRecipientsIsMutable(); recipients_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. The recipient at the address.
      * This field may, under certain circumstances, contain multiline information.
@@ -2495,16 +2801,19 @@ public Builder addRecipients(
      * 
* * repeated string recipients = 10; + * + * @param values The recipients to add. + * @return This builder for chaining. */ - public Builder addAllRecipients( - Iterable values) { + public Builder addAllRecipients(java.lang.Iterable values) { ensureRecipientsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, recipients_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recipients_); onChanged(); return this; } /** + * + * *
      * Optional. The recipient at the address.
      * This field may, under certain circumstances, contain multiline information.
@@ -2512,14 +2821,18 @@ public Builder addAllRecipients(
      * 
* * repeated string recipients = 10; + * + * @return This builder for chaining. */ public Builder clearRecipients() { recipients_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** + * + * *
      * Optional. The recipient at the address.
      * This field may, under certain circumstances, contain multiline information.
@@ -2527,53 +2840,60 @@ public Builder clearRecipients() {
      * 
* * repeated string recipients = 10; + * + * @param value The bytes of the recipients to add. + * @return This builder for chaining. */ - public Builder addRecipientsBytes( - com.google.protobuf.ByteString value) { + public Builder addRecipientsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureRecipientsIsMutable(); recipients_.add(value); onChanged(); return this; } - private Object organization_ = ""; + private java.lang.Object organization_ = ""; /** + * + * *
      * Optional. The name of the organization at the address.
      * 
* * string organization = 11; + * + * @return The organization. */ - public String getOrganization() { - Object ref = organization_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + public java.lang.String getOrganization() { + java.lang.Object ref = organization_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); organization_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** + * + * *
      * Optional. The name of the organization at the address.
      * 
* * string organization = 11; + * + * @return The bytes for organization. */ - public com.google.protobuf.ByteString - getOrganizationBytes() { - Object ref = organization_; + public com.google.protobuf.ByteString getOrganizationBytes() { + java.lang.Object ref = organization_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); organization_ = b; return b; } else { @@ -2581,103 +2901,113 @@ public String getOrganization() { } } /** + * + * *
      * Optional. The name of the organization at the address.
      * 
* * string organization = 11; + * + * @param value The organization to set. + * @return This builder for chaining. */ - public Builder setOrganization( - String value) { + public Builder setOrganization(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + organization_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The name of the organization at the address.
      * 
* * string organization = 11; + * + * @return This builder for chaining. */ public Builder clearOrganization() { - + organization_ = getDefaultInstance().getOrganization(); onChanged(); return this; } /** + * + * *
      * Optional. The name of the organization at the address.
      * 
* * string organization = 11; + * + * @param value The bytes for organization to set. + * @return This builder for chaining. */ - public Builder setOrganizationBytes( - com.google.protobuf.ByteString value) { + public Builder setOrganizationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + organization_ = value; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.type.PostalAddress) } // @@protoc_insertion_point(class_scope:google.type.PostalAddress) - private static final PostalAddress DEFAULT_INSTANCE; + private static final com.google.type.PostalAddress DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new PostalAddress(); + DEFAULT_INSTANCE = new com.google.type.PostalAddress(); } - public static PostalAddress getDefaultInstance() { + public static com.google.type.PostalAddress getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public PostalAddress parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PostalAddress(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostalAddress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PostalAddress(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public PostalAddress getDefaultInstanceForType() { + @java.lang.Override + public com.google.type.PostalAddress getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/type/PostalAddressOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/type/PostalAddressOrBuilder.java index d888413a..a760feb1 100644 --- a/proto-google-common-protos/src/main/java/com/google/type/PostalAddressOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/type/PostalAddressOrBuilder.java @@ -1,23 +1,46 @@ +/* + * 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/type/postal_address.proto package com.google.type; -public interface PostalAddressOrBuilder extends +public interface PostalAddressOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.type.PostalAddress) com.google.protobuf.MessageOrBuilder { /** + * + * *
-   * The schema revision of the `PostalAddress`.
+   * The schema revision of the `PostalAddress`. This must be set to 0, which is
+   * the latest revision.
    * All new revisions **must** be backward compatible with old revisions.
    * 
* * int32 revision = 1; + * + * @return The revision. */ int getRevision(); /** + * + * *
    * Required. CLDR region code of the country/region of the address. This
    * is never inferred and it is up to the user to ensure the value is
@@ -27,9 +50,13 @@ public interface PostalAddressOrBuilder extends
    * 
* * string region_code = 2; + * + * @return The regionCode. */ - String getRegionCode(); + java.lang.String getRegionCode(); /** + * + * *
    * Required. CLDR region code of the country/region of the address. This
    * is never inferred and it is up to the user to ensure the value is
@@ -39,11 +66,14 @@ public interface PostalAddressOrBuilder extends
    * 
* * string region_code = 2; + * + * @return The bytes for regionCode. */ - com.google.protobuf.ByteString - getRegionCodeBytes(); + com.google.protobuf.ByteString getRegionCodeBytes(); /** + * + * *
    * Optional. BCP-47 language code of the contents of this address (if
    * known). This is often the UI language of the input form or is expected
@@ -58,9 +88,13 @@ public interface PostalAddressOrBuilder extends
    * 
* * string language_code = 3; + * + * @return The languageCode. */ - String getLanguageCode(); + java.lang.String getLanguageCode(); /** + * + * *
    * Optional. BCP-47 language code of the contents of this address (if
    * known). This is often the UI language of the input form or is expected
@@ -75,11 +109,14 @@ public interface PostalAddressOrBuilder extends
    * 
* * string language_code = 3; + * + * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
    * Optional. Postal code of the address. Not all countries use or require
    * postal codes to be present, but where they are used, they may trigger
@@ -88,9 +125,13 @@ public interface PostalAddressOrBuilder extends
    * 
* * string postal_code = 4; + * + * @return The postalCode. */ - String getPostalCode(); + java.lang.String getPostalCode(); /** + * + * *
    * Optional. Postal code of the address. Not all countries use or require
    * postal codes to be present, but where they are used, they may trigger
@@ -99,11 +140,14 @@ public interface PostalAddressOrBuilder extends
    * 
* * string postal_code = 4; + * + * @return The bytes for postalCode. */ - com.google.protobuf.ByteString - getPostalCodeBytes(); + com.google.protobuf.ByteString getPostalCodeBytes(); /** + * + * *
    * Optional. Additional, country-specific, sorting code. This is not used
    * in most regions. Where it is used, the value is either a string like
@@ -113,9 +157,13 @@ public interface PostalAddressOrBuilder extends
    * 
* * string sorting_code = 5; + * + * @return The sortingCode. */ - String getSortingCode(); + java.lang.String getSortingCode(); /** + * + * *
    * Optional. Additional, country-specific, sorting code. This is not used
    * in most regions. Where it is used, the value is either a string like
@@ -125,11 +173,14 @@ public interface PostalAddressOrBuilder extends
    * 
* * string sorting_code = 5; + * + * @return The bytes for sortingCode. */ - com.google.protobuf.ByteString - getSortingCodeBytes(); + com.google.protobuf.ByteString getSortingCodeBytes(); /** + * + * *
    * Optional. Highest administrative subdivision which is used for postal
    * addresses of a country or region.
@@ -141,9 +192,13 @@ public interface PostalAddressOrBuilder extends
    * 
* * string administrative_area = 6; + * + * @return The administrativeArea. */ - String getAdministrativeArea(); + java.lang.String getAdministrativeArea(); /** + * + * *
    * Optional. Highest administrative subdivision which is used for postal
    * addresses of a country or region.
@@ -155,11 +210,14 @@ public interface PostalAddressOrBuilder extends
    * 
* * string administrative_area = 6; + * + * @return The bytes for administrativeArea. */ - com.google.protobuf.ByteString - getAdministrativeAreaBytes(); + com.google.protobuf.ByteString getAdministrativeAreaBytes(); /** + * + * *
    * Optional. Generally refers to the city/town portion of the address.
    * Examples: US city, IT comune, UK post town.
@@ -168,9 +226,13 @@ public interface PostalAddressOrBuilder extends
    * 
* * string locality = 7; + * + * @return The locality. */ - String getLocality(); + java.lang.String getLocality(); /** + * + * *
    * Optional. Generally refers to the city/town portion of the address.
    * Examples: US city, IT comune, UK post town.
@@ -179,31 +241,41 @@ public interface PostalAddressOrBuilder extends
    * 
* * string locality = 7; + * + * @return The bytes for locality. */ - com.google.protobuf.ByteString - getLocalityBytes(); + com.google.protobuf.ByteString getLocalityBytes(); /** + * + * *
    * Optional. Sublocality of the address.
    * For example, this can be neighborhoods, boroughs, districts.
    * 
* * string sublocality = 8; + * + * @return The sublocality. */ - String getSublocality(); + java.lang.String getSublocality(); /** + * + * *
    * Optional. Sublocality of the address.
    * For example, this can be neighborhoods, boroughs, districts.
    * 
* * string sublocality = 8; + * + * @return The bytes for sublocality. */ - com.google.protobuf.ByteString - getSublocalityBytes(); + com.google.protobuf.ByteString getSublocalityBytes(); /** + * + * *
    * Unstructured address lines describing the lower levels of an address.
    * Because values in address_lines do not have type information and may
@@ -227,10 +299,13 @@ public interface PostalAddressOrBuilder extends
    * 
* * repeated string address_lines = 9; + * + * @return A list containing the addressLines. */ - java.util.List - getAddressLinesList(); + java.util.List getAddressLinesList(); /** + * + * *
    * Unstructured address lines describing the lower levels of an address.
    * Because values in address_lines do not have type information and may
@@ -254,9 +329,13 @@ public interface PostalAddressOrBuilder extends
    * 
* * repeated string address_lines = 9; + * + * @return The count of addressLines. */ int getAddressLinesCount(); /** + * + * *
    * Unstructured address lines describing the lower levels of an address.
    * Because values in address_lines do not have type information and may
@@ -280,9 +359,14 @@ public interface PostalAddressOrBuilder extends
    * 
* * repeated string address_lines = 9; + * + * @param index The index of the element to return. + * @return The addressLines at the given index. */ - String getAddressLines(int index); + java.lang.String getAddressLines(int index); /** + * + * *
    * Unstructured address lines describing the lower levels of an address.
    * Because values in address_lines do not have type information and may
@@ -306,11 +390,15 @@ public interface PostalAddressOrBuilder extends
    * 
* * repeated string address_lines = 9; + * + * @param index The index of the value to return. + * @return The bytes of the addressLines at the given index. */ - com.google.protobuf.ByteString - getAddressLinesBytes(int index); + com.google.protobuf.ByteString getAddressLinesBytes(int index); /** + * + * *
    * Optional. The recipient at the address.
    * This field may, under certain circumstances, contain multiline information.
@@ -318,10 +406,13 @@ public interface PostalAddressOrBuilder extends
    * 
* * repeated string recipients = 10; + * + * @return A list containing the recipients. */ - java.util.List - getRecipientsList(); + java.util.List getRecipientsList(); /** + * + * *
    * Optional. The recipient at the address.
    * This field may, under certain circumstances, contain multiline information.
@@ -329,9 +420,13 @@ public interface PostalAddressOrBuilder extends
    * 
* * repeated string recipients = 10; + * + * @return The count of recipients. */ int getRecipientsCount(); /** + * + * *
    * Optional. The recipient at the address.
    * This field may, under certain circumstances, contain multiline information.
@@ -339,9 +434,14 @@ public interface PostalAddressOrBuilder extends
    * 
* * repeated string recipients = 10; + * + * @param index The index of the element to return. + * @return The recipients at the given index. */ - String getRecipients(int index); + java.lang.String getRecipients(int index); /** + * + * *
    * Optional. The recipient at the address.
    * This field may, under certain circumstances, contain multiline information.
@@ -349,25 +449,34 @@ public interface PostalAddressOrBuilder extends
    * 
* * repeated string recipients = 10; + * + * @param index The index of the value to return. + * @return The bytes of the recipients at the given index. */ - com.google.protobuf.ByteString - getRecipientsBytes(int index); + com.google.protobuf.ByteString getRecipientsBytes(int index); /** + * + * *
    * Optional. The name of the organization at the address.
    * 
* * string organization = 11; + * + * @return The organization. */ - String getOrganization(); + java.lang.String getOrganization(); /** + * + * *
    * Optional. The name of the organization at the address.
    * 
* * string organization = 11; + * + * @return The bytes for organization. */ - com.google.protobuf.ByteString - getOrganizationBytes(); + com.google.protobuf.ByteString getOrganizationBytes(); } diff --git a/proto-google-common-protos/src/main/java/com/google/type/PostalAddressProto.java b/proto-google-common-protos/src/main/java/com/google/type/PostalAddressProto.java index 85bac862..1586e1a6 100644 --- a/proto-google-common-protos/src/main/java/com/google/type/PostalAddressProto.java +++ b/proto-google-common-protos/src/main/java/com/google/type/PostalAddressProto.java @@ -1,3 +1,18 @@ +/* + * 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/type/postal_address.proto @@ -5,59 +20,58 @@ public final class PostalAddressProto { private PostalAddressProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + 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_type_PostalAddress_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_type_PostalAddress_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_type_PostalAddress_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { - String[] descriptorData = { - "\n google/type/postal_address.proto\022\013goog" + - "le.type\"\375\001\n\rPostalAddress\022\020\n\010revision\030\001 " + - "\001(\005\022\023\n\013region_code\030\002 \001(\t\022\025\n\rlanguage_cod" + - "e\030\003 \001(\t\022\023\n\013postal_code\030\004 \001(\t\022\024\n\014sorting_" + - "code\030\005 \001(\t\022\033\n\023administrative_area\030\006 \001(\t\022" + - "\020\n\010locality\030\007 \001(\t\022\023\n\013sublocality\030\010 \001(\t\022\025" + - "\n\raddress_lines\030\t \003(\t\022\022\n\nrecipients\030\n \003(" + - "\t\022\024\n\014organization\030\013 \001(\tBu\n\017com.google.ty" + - "peB\022PostalAddressProtoP\001ZFgoogle.golang." + - "org/genproto/googleapis/type/postaladdre" + - "ss;postaladdress\242\002\003GTPb\006proto3" + java.lang.String[] descriptorData = { + "\n google/type/postal_address.proto\022\013goog" + + "le.type\"\375\001\n\rPostalAddress\022\020\n\010revision\030\001 " + + "\001(\005\022\023\n\013region_code\030\002 \001(\t\022\025\n\rlanguage_cod" + + "e\030\003 \001(\t\022\023\n\013postal_code\030\004 \001(\t\022\024\n\014sorting_" + + "code\030\005 \001(\t\022\033\n\023administrative_area\030\006 \001(\t\022" + + "\020\n\010locality\030\007 \001(\t\022\023\n\013sublocality\030\010 \001(\t\022\025" + + "\n\raddress_lines\030\t \003(\t\022\022\n\nrecipients\030\n \003(" + + "\t\022\024\n\014organization\030\013 \001(\tBx\n\017com.google.ty" + + "peB\022PostalAddressProtoP\001ZFgoogle.golang." + + "org/genproto/googleapis/type/postaladdre" + + "ss;postaladdress\370\001\001\242\002\003GTPb\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_google_type_PostalAddress_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_type_PostalAddress_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_type_PostalAddress_descriptor, - new String[] { "Revision", "RegionCode", "LanguageCode", "PostalCode", "SortingCode", "AdministrativeArea", "Locality", "Sublocality", "AddressLines", "Recipients", "Organization", }); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_type_PostalAddress_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_type_PostalAddress_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_type_PostalAddress_descriptor, + new java.lang.String[] { + "Revision", + "RegionCode", + "LanguageCode", + "PostalCode", + "SortingCode", + "AdministrativeArea", + "Locality", + "Sublocality", + "AddressLines", + "Recipients", + "Organization", + }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-common-protos/src/main/java/com/google/type/Quaternion.java b/proto-google-common-protos/src/main/java/com/google/type/Quaternion.java index 0502b0c2..e04adca0 100644 --- a/proto-google-common-protos/src/main/java/com/google/type/Quaternion.java +++ b/proto-google-common-protos/src/main/java/com/google/type/Quaternion.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/type/quaternion.proto package com.google.type; /** + * + * *
  * A quaternion is defined as the quotient of two directed lines in a
  * three-dimensional space or equivalently as the quotient of two Euclidean
@@ -14,28 +31,28 @@
  * problems that can be encountered when using Euler angles
  * (https://en.wikipedia.org/wiki/Gimbal_lock).
  * Quaternions are generally represented in this form:
- *   w + xi + yj + zk
+ *     w + xi + yj + zk
  * where x, y, z, and w are real numbers, and i, j, and k are three imaginary
  * numbers.
- * Our naming choice (x, y, z, w) comes from the desire to avoid confusion for
+ * Our naming choice `(x, y, z, w)` comes from the desire to avoid confusion for
  * those interested in the geometric properties of the quaternion in the 3D
  * Cartesian space. Other texts often use alternative names or subscripts, such
- * as (a, b, c, d), (1, i, j, k), or (0, 1, 2, 3), which are perhaps better
- * suited for mathematical interpretations.
+ * as `(a, b, c, d)`, `(1, i, j, k)`, or `(0, 1, 2, 3)`, which are perhaps
+ * better suited for mathematical interpretations.
  * To avoid any confusion, as well as to maintain compatibility with a large
  * number of software libraries, the quaternions represented using the protocol
- * buffer below *must* follow the Hamilton convention, which defines ij = k
+ * buffer below *must* follow the Hamilton convention, which defines `ij = k`
  * (i.e. a right-handed algebra), and therefore:
- *   i^2 = j^2 = k^2 = ijk = −1
- *   ij = −ji = k
- *   jk = −kj = i
- *   ki = −ik = j
+ *     i^2 = j^2 = k^2 = ijk = −1
+ *     ij = −ji = k
+ *     jk = −kj = i
+ *     ki = −ik = j
  * Please DO NOT use this to represent quaternions that follow the JPL
  * convention, or any of the other quaternion flavors out there.
  * Definitions:
- *   - Quaternion norm (or magnitude): sqrt(x^2 + y^2 + z^2 + w^2).
+ *   - Quaternion norm (or magnitude): `sqrt(x^2 + y^2 + z^2 + w^2)`.
  *   - Unit (or normalized) quaternion: a quaternion whose norm is 1.
- *   - Pure quaternion: a quaternion whose scalar component (w) is 0.
+ *   - Pure quaternion: a quaternion whose scalar component (`w`) is 0.
  *   - Rotation quaternion: a unit quaternion used to represent rotation.
  *   - Orientation quaternion: a unit quaternion used to represent orientation.
  * A quaternion can be normalized by dividing it by its norm. The resulting
@@ -43,41 +60,46 @@
  * on the unit sphere. This is generally necessary for rotation and orientation
  * quaternions, to avoid rounding errors:
  * https://en.wikipedia.org/wiki/Rotation_formalisms_in_three_dimensions
- * Note that (x, y, z, w) and (-x, -y, -z, -w) represent the same rotation, but
- * normalization would be even more useful, e.g. for comparison purposes, if it
- * would produce a unique representation. It is thus recommended that w be kept
- * positive, which can be achieved by changing all the signs when w is negative.
- * Next available tag: 5
+ * Note that `(x, y, z, w)` and `(-x, -y, -z, -w)` represent the same rotation,
+ * but normalization would be even more useful, e.g. for comparison purposes, if
+ * it would produce a unique representation. It is thus recommended that `w` be
+ * kept positive, which can be achieved by changing all the signs when `w` is
+ * negative.
  * 
* * Protobuf type {@code google.type.Quaternion} */ -public final class Quaternion extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Quaternion extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.type.Quaternion) QuaternionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Quaternion.newBuilder() to construct. private Quaternion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Quaternion() { + + private Quaternion() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Quaternion(); } - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Quaternion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { - throw new NullPointerException(); + throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -88,66 +110,69 @@ private Quaternion( case 0: done = true; break; - case 9: { - - x_ = input.readDouble(); - break; - } - case 17: { - - y_ = input.readDouble(); - break; - } - case 25: { - - z_ = input.readDouble(); - break; - } - case 33: { - - w_ = input.readDouble(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 9: + { + x_ = input.readDouble(); + break; + } + case 17: + { + y_ = input.readDouble(); + break; + } + case 25: + { + z_ = input.readDouble(); + break; + } + case 33: + { + w_ = input.readDouble(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.type.QuaternionProto.internal_static_google_type_Quaternion_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.type.QuaternionProto.internal_static_google_type_Quaternion_fieldAccessorTable .ensureFieldAccessorsInitialized( - Quaternion.class, Builder.class); + com.google.type.Quaternion.class, com.google.type.Quaternion.Builder.class); } public static final int X_FIELD_NUMBER = 1; private double x_; /** + * + * *
    * The x component.
    * 
* * double x = 1; + * + * @return The x. */ public double getX() { return x_; @@ -156,11 +181,15 @@ public double getX() { public static final int Y_FIELD_NUMBER = 2; private double y_; /** + * + * *
    * The y component.
    * 
* * double y = 2; + * + * @return The y. */ public double getY() { return y_; @@ -169,11 +198,15 @@ public double getY() { public static final int Z_FIELD_NUMBER = 3; private double z_; /** + * + * *
    * The z component.
    * 
* * double z = 3; + * + * @return The z. */ public double getZ() { return z_; @@ -182,18 +215,23 @@ public double getZ() { public static final int W_FIELD_NUMBER = 4; private double w_; /** + * + * *
    * The scalar component.
    * 
* * double w = 4; + * + * @return The w. */ public double getW() { return w_; } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -203,9 +241,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (x_ != 0D) { output.writeDouble(1, x_); } @@ -221,60 +258,52 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (x_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, x_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, x_); } if (y_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, y_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, y_); } if (z_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, z_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, z_); } if (w_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(4, w_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, w_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof Quaternion)) { + if (!(obj instanceof com.google.type.Quaternion)) { return super.equals(obj); } - Quaternion other = (Quaternion) obj; - - if (Double.doubleToLongBits(getX()) - != Double.doubleToLongBits( - other.getX())) return false; - if (Double.doubleToLongBits(getY()) - != Double.doubleToLongBits( - other.getY())) return false; - if (Double.doubleToLongBits(getZ()) - != Double.doubleToLongBits( - other.getZ())) return false; - if (Double.doubleToLongBits(getW()) - != Double.doubleToLongBits( - other.getW())) return false; + com.google.type.Quaternion other = (com.google.type.Quaternion) obj; + + if (java.lang.Double.doubleToLongBits(getX()) + != java.lang.Double.doubleToLongBits(other.getX())) return false; + if (java.lang.Double.doubleToLongBits(getY()) + != java.lang.Double.doubleToLongBits(other.getY())) return false; + if (java.lang.Double.doubleToLongBits(getZ()) + != java.lang.Double.doubleToLongBits(other.getZ())) return false; + if (java.lang.Double.doubleToLongBits(getW()) + != java.lang.Double.doubleToLongBits(other.getW())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -282,113 +311,123 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - Double.doubleToLongBits(getX())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getX())); hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - Double.doubleToLongBits(getY())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getY())); hash = (37 * hash) + Z_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - Double.doubleToLongBits(getZ())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getZ())); hash = (37 * hash) + W_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - Double.doubleToLongBits(getW())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getW())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static Quaternion parseFrom( - java.nio.ByteBuffer data) + public static com.google.type.Quaternion parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Quaternion parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.Quaternion parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Quaternion parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.type.Quaternion parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Quaternion parseFrom( + + public static com.google.type.Quaternion parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Quaternion parseFrom(byte[] data) + + public static com.google.type.Quaternion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Quaternion parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.Quaternion parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Quaternion parseFrom(java.io.InputStream input) + + public static com.google.type.Quaternion 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 Quaternion parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.Quaternion parseFrom( + 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 Quaternion parseDelimitedFrom(java.io.InputStream input) + + public static com.google.type.Quaternion 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 Quaternion parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.Quaternion parseDelimitedFrom( + 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 Quaternion parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.type.Quaternion 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 Quaternion parseFrom( + + public static com.google.type.Quaternion 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(Quaternion prototype) { + + public static Builder newBuilder(com.google.type.Quaternion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A quaternion is defined as the quotient of two directed lines in a
    * three-dimensional space or equivalently as the quotient of two Euclidean
@@ -399,28 +438,28 @@ protected Builder newBuilderForType(
    * problems that can be encountered when using Euler angles
    * (https://en.wikipedia.org/wiki/Gimbal_lock).
    * Quaternions are generally represented in this form:
-   *   w + xi + yj + zk
+   *     w + xi + yj + zk
    * where x, y, z, and w are real numbers, and i, j, and k are three imaginary
    * numbers.
-   * Our naming choice (x, y, z, w) comes from the desire to avoid confusion for
+   * Our naming choice `(x, y, z, w)` comes from the desire to avoid confusion for
    * those interested in the geometric properties of the quaternion in the 3D
    * Cartesian space. Other texts often use alternative names or subscripts, such
-   * as (a, b, c, d), (1, i, j, k), or (0, 1, 2, 3), which are perhaps better
-   * suited for mathematical interpretations.
+   * as `(a, b, c, d)`, `(1, i, j, k)`, or `(0, 1, 2, 3)`, which are perhaps
+   * better suited for mathematical interpretations.
    * To avoid any confusion, as well as to maintain compatibility with a large
    * number of software libraries, the quaternions represented using the protocol
-   * buffer below *must* follow the Hamilton convention, which defines ij = k
+   * buffer below *must* follow the Hamilton convention, which defines `ij = k`
    * (i.e. a right-handed algebra), and therefore:
-   *   i^2 = j^2 = k^2 = ijk = −1
-   *   ij = −ji = k
-   *   jk = −kj = i
-   *   ki = −ik = j
+   *     i^2 = j^2 = k^2 = ijk = −1
+   *     ij = −ji = k
+   *     jk = −kj = i
+   *     ki = −ik = j
    * Please DO NOT use this to represent quaternions that follow the JPL
    * convention, or any of the other quaternion flavors out there.
    * Definitions:
-   *   - Quaternion norm (or magnitude): sqrt(x^2 + y^2 + z^2 + w^2).
+   *   - Quaternion norm (or magnitude): `sqrt(x^2 + y^2 + z^2 + w^2)`.
    *   - Unit (or normalized) quaternion: a quaternion whose norm is 1.
-   *   - Pure quaternion: a quaternion whose scalar component (w) is 0.
+   *   - Pure quaternion: a quaternion whose scalar component (`w`) is 0.
    *   - Rotation quaternion: a unit quaternion used to represent rotation.
    *   - Orientation quaternion: a unit quaternion used to represent orientation.
    * A quaternion can be normalized by dividing it by its norm. The resulting
@@ -428,30 +467,30 @@ protected Builder newBuilderForType(
    * on the unit sphere. This is generally necessary for rotation and orientation
    * quaternions, to avoid rounding errors:
    * https://en.wikipedia.org/wiki/Rotation_formalisms_in_three_dimensions
-   * Note that (x, y, z, w) and (-x, -y, -z, -w) represent the same rotation, but
-   * normalization would be even more useful, e.g. for comparison purposes, if it
-   * would produce a unique representation. It is thus recommended that w be kept
-   * positive, which can be achieved by changing all the signs when w is negative.
-   * Next available tag: 5
+   * Note that `(x, y, z, w)` and `(-x, -y, -z, -w)` represent the same rotation,
+   * but normalization would be even more useful, e.g. for comparison purposes, if
+   * it would produce a unique representation. It is thus recommended that `w` be
+   * kept positive, which can be achieved by changing all the signs when `w` is
+   * negative.
    * 
* * Protobuf type {@code google.type.Quaternion} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.type.Quaternion) com.google.type.QuaternionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.type.QuaternionProto.internal_static_google_type_Quaternion_descriptor; } - @Override - protected FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.type.QuaternionProto.internal_static_google_type_Quaternion_fieldAccessorTable + return com.google.type.QuaternionProto + .internal_static_google_type_Quaternion_fieldAccessorTable .ensureFieldAccessorsInitialized( - Quaternion.class, Builder.class); + com.google.type.Quaternion.class, com.google.type.Quaternion.Builder.class); } // Construct using com.google.type.Quaternion.newBuilder() @@ -459,17 +498,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @Override + + @java.lang.Override public Builder clear() { super.clear(); x_ = 0D; @@ -483,29 +521,28 @@ public Builder clear() { return this; } - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.type.QuaternionProto.internal_static_google_type_Quaternion_descriptor; } - @Override - public Quaternion getDefaultInstanceForType() { - return Quaternion.getDefaultInstance(); + @java.lang.Override + public com.google.type.Quaternion getDefaultInstanceForType() { + return com.google.type.Quaternion.getDefaultInstance(); } - @Override - public Quaternion build() { - Quaternion result = buildPartial(); + @java.lang.Override + public com.google.type.Quaternion build() { + com.google.type.Quaternion result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - @Override - public Quaternion buildPartial() { - Quaternion result = new Quaternion(this); + @java.lang.Override + public com.google.type.Quaternion buildPartial() { + com.google.type.Quaternion result = new com.google.type.Quaternion(this); result.x_ = x_; result.y_ = y_; result.z_ = z_; @@ -514,50 +551,51 @@ public Quaternion buildPartial() { return result; } - @Override + @java.lang.Override public Builder clone() { return super.clone(); } - @Override + + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @Override + + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @Override + + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } - @Override + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof Quaternion) { - return mergeFrom((Quaternion)other); + if (other instanceof com.google.type.Quaternion) { + return mergeFrom((com.google.type.Quaternion) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(Quaternion other) { - if (other == Quaternion.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.type.Quaternion other) { + if (other == com.google.type.Quaternion.getDefaultInstance()) return this; if (other.getX() != 0D) { setX(other.getX()); } @@ -575,21 +613,21 @@ public Builder mergeFrom(Quaternion other) { return this; } - @Override + @java.lang.Override public final boolean isInitialized() { return true; } - @Override + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Quaternion parsedMessage = null; + com.google.type.Quaternion parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Quaternion) e.getUnfinishedMessage(); + parsedMessage = (com.google.type.Quaternion) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -599,207 +637,257 @@ public Builder mergeFrom( return this; } - private double x_ ; + private double x_; /** + * + * *
      * The x component.
      * 
* * double x = 1; + * + * @return The x. */ public double getX() { return x_; } /** + * + * *
      * The x component.
      * 
* * double x = 1; + * + * @param value The x to set. + * @return This builder for chaining. */ public Builder setX(double value) { - + x_ = value; onChanged(); return this; } /** + * + * *
      * The x component.
      * 
* * double x = 1; + * + * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0D; onChanged(); return this; } - private double y_ ; + private double y_; /** + * + * *
      * The y component.
      * 
* * double y = 2; + * + * @return The y. */ public double getY() { return y_; } /** + * + * *
      * The y component.
      * 
* * double y = 2; + * + * @param value The y to set. + * @return This builder for chaining. */ public Builder setY(double value) { - + y_ = value; onChanged(); return this; } /** + * + * *
      * The y component.
      * 
* * double y = 2; + * + * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0D; onChanged(); return this; } - private double z_ ; + private double z_; /** + * + * *
      * The z component.
      * 
* * double z = 3; + * + * @return The z. */ public double getZ() { return z_; } /** + * + * *
      * The z component.
      * 
* * double z = 3; + * + * @param value The z to set. + * @return This builder for chaining. */ public Builder setZ(double value) { - + z_ = value; onChanged(); return this; } /** + * + * *
      * The z component.
      * 
* * double z = 3; + * + * @return This builder for chaining. */ public Builder clearZ() { - + z_ = 0D; onChanged(); return this; } - private double w_ ; + private double w_; /** + * + * *
      * The scalar component.
      * 
* * double w = 4; + * + * @return The w. */ public double getW() { return w_; } /** + * + * *
      * The scalar component.
      * 
* * double w = 4; + * + * @param value The w to set. + * @return This builder for chaining. */ public Builder setW(double value) { - + w_ = value; onChanged(); return this; } /** + * + * *
      * The scalar component.
      * 
* * double w = 4; + * + * @return This builder for chaining. */ public Builder clearW() { - + w_ = 0D; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.type.Quaternion) } // @@protoc_insertion_point(class_scope:google.type.Quaternion) - private static final Quaternion DEFAULT_INSTANCE; + private static final com.google.type.Quaternion DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new Quaternion(); + DEFAULT_INSTANCE = new com.google.type.Quaternion(); } - public static Quaternion getDefaultInstance() { + public static com.google.type.Quaternion getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public Quaternion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Quaternion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Quaternion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Quaternion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public Quaternion getDefaultInstanceForType() { + @java.lang.Override + public com.google.type.Quaternion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/type/QuaternionOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/type/QuaternionOrBuilder.java index 2f00f550..ed982415 100644 --- a/proto-google-common-protos/src/main/java/com/google/type/QuaternionOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/type/QuaternionOrBuilder.java @@ -1,45 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/quaternion.proto package com.google.type; -public interface QuaternionOrBuilder extends +public interface QuaternionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.type.Quaternion) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The x component.
    * 
* * double x = 1; + * + * @return The x. */ double getX(); /** + * + * *
    * The y component.
    * 
* * double y = 2; + * + * @return The y. */ double getY(); /** + * + * *
    * The z component.
    * 
* * double z = 3; + * + * @return The z. */ double getZ(); /** + * + * *
    * The scalar component.
    * 
* * double w = 4; + * + * @return The w. */ double getW(); } diff --git a/proto-google-common-protos/src/main/java/com/google/type/QuaternionProto.java b/proto-google-common-protos/src/main/java/com/google/type/QuaternionProto.java index a466cd7e..068b26b3 100644 --- a/proto-google-common-protos/src/main/java/com/google/type/QuaternionProto.java +++ b/proto-google-common-protos/src/main/java/com/google/type/QuaternionProto.java @@ -1,3 +1,18 @@ +/* + * 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/type/quaternion.proto @@ -5,54 +20,43 @@ public final class QuaternionProto { private QuaternionProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + 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_type_Quaternion_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_type_Quaternion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_type_Quaternion_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { - String[] descriptorData = { - "\n\034google/type/quaternion.proto\022\013google.t" + - "ype\"8\n\nQuaternion\022\t\n\001x\030\001 \001(\001\022\t\n\001y\030\002 \001(\001\022" + - "\t\n\001z\030\003 \001(\001\022\t\n\001w\030\004 \001(\001Bo\n\017com.google.type" + - "B\017QuaternionProtoP\001Z@google.golang.org/g" + - "enproto/googleapis/type/quaternion;quate" + - "rnion\370\001\001\242\002\003GTPb\006proto3" + java.lang.String[] descriptorData = { + "\n\034google/type/quaternion.proto\022\013google.t" + + "ype\"8\n\nQuaternion\022\t\n\001x\030\001 \001(\001\022\t\n\001y\030\002 \001(\001\022" + + "\t\n\001z\030\003 \001(\001\022\t\n\001w\030\004 \001(\001Bo\n\017com.google.type" + + "B\017QuaternionProtoP\001Z@google.golang.org/g" + + "enproto/googleapis/type/quaternion;quate" + + "rnion\370\001\001\242\002\003GTPb\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_google_type_Quaternion_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_type_Quaternion_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_type_Quaternion_descriptor, - new String[] { "X", "Y", "Z", "W", }); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_type_Quaternion_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_type_Quaternion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_type_Quaternion_descriptor, + new java.lang.String[] { + "X", "Y", "Z", "W", + }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-common-protos/src/main/java/com/google/type/TimeOfDay.java b/proto-google-common-protos/src/main/java/com/google/type/TimeOfDay.java index eedb4197..18a65901 100644 --- a/proto-google-common-protos/src/main/java/com/google/type/TimeOfDay.java +++ b/proto-google-common-protos/src/main/java/com/google/type/TimeOfDay.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/type/timeofday.proto package com.google.type; /** + * + * *
  * Represents a time of day. The date and time zone are either not significant
  * or are specified elsewhere. An API may choose to allow leap seconds. Related
@@ -12,32 +29,37 @@
  *
  * Protobuf type {@code google.type.TimeOfDay}
  */
-public  final class TimeOfDay extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TimeOfDay extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.type.TimeOfDay)
     TimeOfDayOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TimeOfDay.newBuilder() to construct.
   private TimeOfDay(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private TimeOfDay() {
+
+  private TimeOfDay() {}
+
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new TimeOfDay();
   }
 
-  @Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private TimeOfDay(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     this();
     if (extensionRegistry == null) {
-      throw new NullPointerException();
+      throw new java.lang.NullPointerException();
     }
-    int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
         com.google.protobuf.UnknownFieldSet.newBuilder();
     try {
@@ -48,67 +70,70 @@ private TimeOfDay(
           case 0:
             done = true;
             break;
-          case 8: {
-
-            hours_ = input.readInt32();
-            break;
-          }
-          case 16: {
-
-            minutes_ = input.readInt32();
-            break;
-          }
-          case 24: {
-
-            seconds_ = input.readInt32();
-            break;
-          }
-          case 32: {
-
-            nanos_ = input.readInt32();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 8:
+            {
+              hours_ = input.readInt32();
+              break;
+            }
+          case 16:
+            {
+              minutes_ = input.readInt32();
+              break;
+            }
+          case 24:
+            {
+              seconds_ = input.readInt32();
+              break;
+            }
+          case 32:
+            {
+              nanos_ = input.readInt32();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.type.TimeOfDayProto.internal_static_google_type_TimeOfDay_descriptor;
   }
 
-  @Override
-  protected FieldAccessorTable
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return com.google.type.TimeOfDayProto.internal_static_google_type_TimeOfDay_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            TimeOfDay.class, Builder.class);
+            com.google.type.TimeOfDay.class, com.google.type.TimeOfDay.Builder.class);
   }
 
   public static final int HOURS_FIELD_NUMBER = 1;
   private int hours_;
   /**
+   *
+   *
    * 
    * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
    * to allow the value "24:00:00" for scenarios like business closing time.
    * 
* * int32 hours = 1; + * + * @return The hours. */ public int getHours() { return hours_; @@ -117,11 +142,15 @@ public int getHours() { public static final int MINUTES_FIELD_NUMBER = 2; private int minutes_; /** + * + * *
    * Minutes of hour of day. Must be from 0 to 59.
    * 
* * int32 minutes = 2; + * + * @return The minutes. */ public int getMinutes() { return minutes_; @@ -130,12 +159,16 @@ public int getMinutes() { public static final int SECONDS_FIELD_NUMBER = 3; private int seconds_; /** + * + * *
    * Seconds of minutes of the time. Must normally be from 0 to 59. An API may
    * allow the value 60 if it allows leap-seconds.
    * 
* * int32 seconds = 3; + * + * @return The seconds. */ public int getSeconds() { return seconds_; @@ -144,18 +177,23 @@ public int getSeconds() { public static final int NANOS_FIELD_NUMBER = 4; private int nanos_; /** + * + * *
    * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
    * 
* * int32 nanos = 4; + * + * @return The nanos. */ public int getNanos() { return nanos_; } private byte memoizedIsInitialized = -1; - @Override + + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -165,9 +203,8 @@ public final boolean isInitialized() { return true; } - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (hours_ != 0) { output.writeInt32(1, hours_); } @@ -183,56 +220,48 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @Override + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (hours_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, hours_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, hours_); } if (minutes_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, minutes_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, minutes_); } if (seconds_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, seconds_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, seconds_); } if (nanos_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, nanos_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, nanos_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - @Override - public boolean equals(final Object obj) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof TimeOfDay)) { + if (!(obj instanceof com.google.type.TimeOfDay)) { return super.equals(obj); } - TimeOfDay other = (TimeOfDay) obj; + com.google.type.TimeOfDay other = (com.google.type.TimeOfDay) obj; - if (getHours() - != other.getHours()) return false; - if (getMinutes() - != other.getMinutes()) return false; - if (getSeconds() - != other.getSeconds()) return false; - if (getNanos() - != other.getNanos()) return false; + if (getHours() != other.getHours()) return false; + if (getMinutes() != other.getMinutes()) return false; + if (getSeconds() != other.getSeconds()) return false; + if (getNanos() != other.getNanos()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } - @Override + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; @@ -252,97 +281,103 @@ public int hashCode() { return hash; } - public static TimeOfDay parseFrom( - java.nio.ByteBuffer data) + public static com.google.type.TimeOfDay parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static TimeOfDay parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.TimeOfDay parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static TimeOfDay parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.type.TimeOfDay parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static TimeOfDay parseFrom( + + public static com.google.type.TimeOfDay parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static TimeOfDay parseFrom(byte[] data) + + public static com.google.type.TimeOfDay parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static TimeOfDay parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.TimeOfDay parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static TimeOfDay parseFrom(java.io.InputStream input) + + public static com.google.type.TimeOfDay 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 TimeOfDay parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.TimeOfDay parseFrom( + 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 TimeOfDay parseDelimitedFrom(java.io.InputStream input) + + public static com.google.type.TimeOfDay 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 TimeOfDay parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + + public static com.google.type.TimeOfDay parseDelimitedFrom( + 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 TimeOfDay parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.type.TimeOfDay 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 TimeOfDay parseFrom( + + public static com.google.type.TimeOfDay 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(); } - @Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(TimeOfDay prototype) { + + public static Builder newBuilder(com.google.type.TimeOfDay prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @Override + + @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); } - @Override - protected Builder newBuilderForType( - BuilderParent parent) { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents a time of day. The date and time zone are either not significant
    * or are specified elsewhere. An API may choose to allow leap seconds. Related
@@ -351,21 +386,20 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.type.TimeOfDay}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.type.TimeOfDay)
       com.google.type.TimeOfDayOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.type.TimeOfDayProto.internal_static_google_type_TimeOfDay_descriptor;
     }
 
-    @Override
-    protected FieldAccessorTable
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return com.google.type.TimeOfDayProto.internal_static_google_type_TimeOfDay_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              TimeOfDay.class, Builder.class);
+              com.google.type.TimeOfDay.class, com.google.type.TimeOfDay.Builder.class);
     }
 
     // Construct using com.google.type.TimeOfDay.newBuilder()
@@ -373,17 +407,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
-    @Override
+
+    @java.lang.Override
     public Builder clear() {
       super.clear();
       hours_ = 0;
@@ -397,29 +430,28 @@ public Builder clear() {
       return this;
     }
 
-    @Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.type.TimeOfDayProto.internal_static_google_type_TimeOfDay_descriptor;
     }
 
-    @Override
-    public TimeOfDay getDefaultInstanceForType() {
-      return TimeOfDay.getDefaultInstance();
+    @java.lang.Override
+    public com.google.type.TimeOfDay getDefaultInstanceForType() {
+      return com.google.type.TimeOfDay.getDefaultInstance();
     }
 
-    @Override
-    public TimeOfDay build() {
-      TimeOfDay result = buildPartial();
+    @java.lang.Override
+    public com.google.type.TimeOfDay build() {
+      com.google.type.TimeOfDay result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
       return result;
     }
 
-    @Override
-    public TimeOfDay buildPartial() {
-      TimeOfDay result = new TimeOfDay(this);
+    @java.lang.Override
+    public com.google.type.TimeOfDay buildPartial() {
+      com.google.type.TimeOfDay result = new com.google.type.TimeOfDay(this);
       result.hours_ = hours_;
       result.minutes_ = minutes_;
       result.seconds_ = seconds_;
@@ -428,50 +460,51 @@ public TimeOfDay buildPartial() {
       return result;
     }
 
-    @Override
+    @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-    @Override
+
+    @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
-    @Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+    @java.lang.Override
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-    @Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+    @java.lang.Override
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-    @Override
+
+    @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-    @Override
+
+    @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof TimeOfDay) {
-        return mergeFrom((TimeOfDay)other);
+      if (other instanceof com.google.type.TimeOfDay) {
+        return mergeFrom((com.google.type.TimeOfDay) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(TimeOfDay other) {
-      if (other == TimeOfDay.getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.type.TimeOfDay other) {
+      if (other == com.google.type.TimeOfDay.getDefaultInstance()) return this;
       if (other.getHours() != 0) {
         setHours(other.getHours());
       }
@@ -489,21 +522,21 @@ public Builder mergeFrom(TimeOfDay other) {
       return this;
     }
 
-    @Override
+    @java.lang.Override
     public final boolean isInitialized() {
       return true;
     }
 
-    @Override
+    @java.lang.Override
     public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      TimeOfDay parsedMessage = null;
+      com.google.type.TimeOfDay parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (TimeOfDay) e.getUnfinishedMessage();
+        parsedMessage = (com.google.type.TimeOfDay) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -513,213 +546,263 @@ public Builder mergeFrom(
       return this;
     }
 
-    private int hours_ ;
+    private int hours_;
     /**
+     *
+     *
      * 
      * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
      * to allow the value "24:00:00" for scenarios like business closing time.
      * 
* * int32 hours = 1; + * + * @return The hours. */ public int getHours() { return hours_; } /** + * + * *
      * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
      * to allow the value "24:00:00" for scenarios like business closing time.
      * 
* * int32 hours = 1; + * + * @param value The hours to set. + * @return This builder for chaining. */ public Builder setHours(int value) { - + hours_ = value; onChanged(); return this; } /** + * + * *
      * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
      * to allow the value "24:00:00" for scenarios like business closing time.
      * 
* * int32 hours = 1; + * + * @return This builder for chaining. */ public Builder clearHours() { - + hours_ = 0; onChanged(); return this; } - private int minutes_ ; + private int minutes_; /** + * + * *
      * Minutes of hour of day. Must be from 0 to 59.
      * 
* * int32 minutes = 2; + * + * @return The minutes. */ public int getMinutes() { return minutes_; } /** + * + * *
      * Minutes of hour of day. Must be from 0 to 59.
      * 
* * int32 minutes = 2; + * + * @param value The minutes to set. + * @return This builder for chaining. */ public Builder setMinutes(int value) { - + minutes_ = value; onChanged(); return this; } /** + * + * *
      * Minutes of hour of day. Must be from 0 to 59.
      * 
* * int32 minutes = 2; + * + * @return This builder for chaining. */ public Builder clearMinutes() { - + minutes_ = 0; onChanged(); return this; } - private int seconds_ ; + private int seconds_; /** + * + * *
      * Seconds of minutes of the time. Must normally be from 0 to 59. An API may
      * allow the value 60 if it allows leap-seconds.
      * 
* * int32 seconds = 3; + * + * @return The seconds. */ public int getSeconds() { return seconds_; } /** + * + * *
      * Seconds of minutes of the time. Must normally be from 0 to 59. An API may
      * allow the value 60 if it allows leap-seconds.
      * 
* * int32 seconds = 3; + * + * @param value The seconds to set. + * @return This builder for chaining. */ public Builder setSeconds(int value) { - + seconds_ = value; onChanged(); return this; } /** + * + * *
      * Seconds of minutes of the time. Must normally be from 0 to 59. An API may
      * allow the value 60 if it allows leap-seconds.
      * 
* * int32 seconds = 3; + * + * @return This builder for chaining. */ public Builder clearSeconds() { - + seconds_ = 0; onChanged(); return this; } - private int nanos_ ; + private int nanos_; /** + * + * *
      * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
      * 
* * int32 nanos = 4; + * + * @return The nanos. */ public int getNanos() { return nanos_; } /** + * + * *
      * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
      * 
* * int32 nanos = 4; + * + * @param value The nanos to set. + * @return This builder for chaining. */ public Builder setNanos(int value) { - + nanos_ = value; onChanged(); return this; } /** + * + * *
      * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
      * 
* * int32 nanos = 4; + * + * @return This builder for chaining. */ public Builder clearNanos() { - + nanos_ = 0; onChanged(); return this; } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } - @Override + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.type.TimeOfDay) } // @@protoc_insertion_point(class_scope:google.type.TimeOfDay) - private static final TimeOfDay DEFAULT_INSTANCE; + private static final com.google.type.TimeOfDay DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new TimeOfDay(); + DEFAULT_INSTANCE = new com.google.type.TimeOfDay(); } - public static TimeOfDay getDefaultInstance() { + public static com.google.type.TimeOfDay getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public TimeOfDay parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TimeOfDay(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeOfDay parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TimeOfDay(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } - @Override - public TimeOfDay getDefaultInstanceForType() { + @java.lang.Override + public com.google.type.TimeOfDay getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-common-protos/src/main/java/com/google/type/TimeOfDayOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/type/TimeOfDayOrBuilder.java index 3d4fdf28..080bf803 100644 --- a/proto-google-common-protos/src/main/java/com/google/type/TimeOfDayOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/type/TimeOfDayOrBuilder.java @@ -1,47 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/timeofday.proto package com.google.type; -public interface TimeOfDayOrBuilder extends +public interface TimeOfDayOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.type.TimeOfDay) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
    * to allow the value "24:00:00" for scenarios like business closing time.
    * 
* * int32 hours = 1; + * + * @return The hours. */ int getHours(); /** + * + * *
    * Minutes of hour of day. Must be from 0 to 59.
    * 
* * int32 minutes = 2; + * + * @return The minutes. */ int getMinutes(); /** + * + * *
    * Seconds of minutes of the time. Must normally be from 0 to 59. An API may
    * allow the value 60 if it allows leap-seconds.
    * 
* * int32 seconds = 3; + * + * @return The seconds. */ int getSeconds(); /** + * + * *
    * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
    * 
* * int32 nanos = 4; + * + * @return The nanos. */ int getNanos(); } diff --git a/proto-google-common-protos/src/main/java/com/google/type/TimeOfDayProto.java b/proto-google-common-protos/src/main/java/com/google/type/TimeOfDayProto.java index 8c6b01aa..ffa69a41 100644 --- a/proto-google-common-protos/src/main/java/com/google/type/TimeOfDayProto.java +++ b/proto-google-common-protos/src/main/java/com/google/type/TimeOfDayProto.java @@ -1,3 +1,18 @@ +/* + * 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/type/timeofday.proto @@ -5,54 +20,43 @@ public final class TimeOfDayProto { private TimeOfDayProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + 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_type_TimeOfDay_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_type_TimeOfDay_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_type_TimeOfDay_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { - String[] descriptorData = { - "\n\033google/type/timeofday.proto\022\013google.ty" + - "pe\"K\n\tTimeOfDay\022\r\n\005hours\030\001 \001(\005\022\017\n\007minute" + - "s\030\002 \001(\005\022\017\n\007seconds\030\003 \001(\005\022\r\n\005nanos\030\004 \001(\005B" + - "l\n\017com.google.typeB\016TimeOfDayProtoP\001Z>go" + - "ogle.golang.org/genproto/googleapis/type" + - "/timeofday;timeofday\370\001\001\242\002\003GTPb\006proto3" + java.lang.String[] descriptorData = { + "\n\033google/type/timeofday.proto\022\013google.ty" + + "pe\"K\n\tTimeOfDay\022\r\n\005hours\030\001 \001(\005\022\017\n\007minute" + + "s\030\002 \001(\005\022\017\n\007seconds\030\003 \001(\005\022\r\n\005nanos\030\004 \001(\005B" + + "l\n\017com.google.typeB\016TimeOfDayProtoP\001Z>go" + + "ogle.golang.org/genproto/googleapis/type" + + "/timeofday;timeofday\370\001\001\242\002\003GTPb\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_google_type_TimeOfDay_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_type_TimeOfDay_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_type_TimeOfDay_descriptor, - new String[] { "Hours", "Minutes", "Seconds", "Nanos", }); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_type_TimeOfDay_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_type_TimeOfDay_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_type_TimeOfDay_descriptor, + new java.lang.String[] { + "Hours", "Minutes", "Seconds", "Nanos", + }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-common-protos/src/main/java/com/google/type/TimeZone.java b/proto-google-common-protos/src/main/java/com/google/type/TimeZone.java new file mode 100644 index 00000000..8f1a200a --- /dev/null +++ b/proto-google-common-protos/src/main/java/com/google/type/TimeZone.java @@ -0,0 +1,801 @@ +/* + * 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/type/datetime.proto + +package com.google.type; + +/** + * + * + *
+ * Represents a time zone from the
+ * [IANA Time Zone Database](https://www.iana.org/time-zones).
+ * 
+ * + * Protobuf type {@code google.type.TimeZone} + */ +public final class TimeZone extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.type.TimeZone) + TimeZoneOrBuilder { + private static final long serialVersionUID = 0L; + // Use TimeZone.newBuilder() to construct. + private TimeZone(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TimeZone() { + id_ = ""; + version_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TimeZone(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TimeZone( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.type.DateTimeProto.internal_static_google_type_TimeZone_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.type.DateTimeProto.internal_static_google_type_TimeZone_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.type.TimeZone.class, com.google.type.TimeZone.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + * + * + *
+   * IANA Time Zone Database time zone, e.g. "America/New_York".
+   * 
+ * + * string id = 1; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + * + * + *
+   * IANA Time Zone Database time zone, e.g. "America/New_York".
+   * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + 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); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 2; + private volatile java.lang.Object version_; + /** + * + * + *
+   * Optional. IANA Time Zone Database version number, e.g. "2019a".
+   * 
+ * + * string version = 2; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. IANA Time Zone Database version number, e.g. "2019a".
+   * 
+ * + * string version = 2; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.type.TimeZone)) { + return super.equals(obj); + } + com.google.type.TimeZone other = (com.google.type.TimeZone) obj; + + if (!getId().equals(other.getId())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.type.TimeZone parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.type.TimeZone parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.type.TimeZone parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.type.TimeZone 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.type.TimeZone parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.type.TimeZone parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.type.TimeZone parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.type.TimeZone parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.type.TimeZone parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.type.TimeZone parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.type.TimeZone parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.type.TimeZone parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.type.TimeZone prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents a time zone from the
+   * [IANA Time Zone Database](https://www.iana.org/time-zones).
+   * 
+ * + * Protobuf type {@code google.type.TimeZone} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.type.TimeZone) + com.google.type.TimeZoneOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.type.DateTimeProto.internal_static_google_type_TimeZone_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.type.DateTimeProto.internal_static_google_type_TimeZone_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.type.TimeZone.class, com.google.type.TimeZone.Builder.class); + } + + // Construct using com.google.type.TimeZone.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = ""; + + version_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.type.DateTimeProto.internal_static_google_type_TimeZone_descriptor; + } + + @java.lang.Override + public com.google.type.TimeZone getDefaultInstanceForType() { + return com.google.type.TimeZone.getDefaultInstance(); + } + + @java.lang.Override + public com.google.type.TimeZone build() { + com.google.type.TimeZone result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.type.TimeZone buildPartial() { + com.google.type.TimeZone result = new com.google.type.TimeZone(this); + result.id_ = id_; + result.version_ = version_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + 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) { + return super.clearField(field); + } + + @java.lang.Override + 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) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + 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.type.TimeZone) { + return mergeFrom((com.google.type.TimeZone) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.type.TimeZone other) { + if (other == com.google.type.TimeZone.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.type.TimeZone parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.type.TimeZone) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object id_ = ""; + /** + * + * + *
+     * IANA Time Zone Database time zone, e.g. "America/New_York".
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * IANA Time Zone Database time zone, e.g. "America/New_York".
+     * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + 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); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * IANA Time Zone Database time zone, e.g. "America/New_York".
+     * 
+ * + * 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(); + } + + id_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * IANA Time Zone Database time zone, e.g. "America/New_York".
+     * 
+ * + * string id = 1; + * + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * + * + *
+     * IANA Time Zone Database time zone, e.g. "America/New_York".
+     * 
+ * + * 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(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + * + * + *
+     * Optional. IANA Time Zone Database version number, e.g. "2019a".
+     * 
+ * + * string version = 2; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. IANA Time Zone Database version number, e.g. "2019a".
+     * 
+ * + * string version = 2; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. IANA Time Zone Database version number, e.g. "2019a".
+     * 
+ * + * string version = 2; + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. IANA Time Zone Database version number, e.g. "2019a".
+     * 
+ * + * string version = 2; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. IANA Time Zone Database version number, e.g. "2019a".
+     * 
+ * + * string version = 2; + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.type.TimeZone) + } + + // @@protoc_insertion_point(class_scope:google.type.TimeZone) + private static final com.google.type.TimeZone DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.type.TimeZone(); + } + + public static com.google.type.TimeZone getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeZone parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TimeZone(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.type.TimeZone getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-common-protos/src/main/java/com/google/type/TimeZoneOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/type/TimeZoneOrBuilder.java new file mode 100644 index 00000000..29c25159 --- /dev/null +++ b/proto-google-common-protos/src/main/java/com/google/type/TimeZoneOrBuilder.java @@ -0,0 +1,75 @@ +/* + * 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/type/datetime.proto + +package com.google.type; + +public interface TimeZoneOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.type.TimeZone) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * IANA Time Zone Database time zone, e.g. "America/New_York".
+   * 
+ * + * string id = 1; + * + * @return The id. + */ + java.lang.String getId(); + /** + * + * + *
+   * IANA Time Zone Database time zone, e.g. "America/New_York".
+   * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * Optional. IANA Time Zone Database version number, e.g. "2019a".
+   * 
+ * + * string version = 2; + * + * @return The version. + */ + java.lang.String getVersion(); + /** + * + * + *
+   * Optional. IANA Time Zone Database version number, e.g. "2019a".
+   * 
+ * + * string version = 2; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); +} diff --git a/proto-google-common-protos/src/main/proto/google/api/auth.proto b/proto-google-common-protos/src/main/proto/google/api/auth.proto index 7c5d6166..1b187cb4 100644 --- a/proto-google-common-protos/src/main/proto/google/api/auth.proto +++ b/proto-google-common-protos/src/main/proto/google/api/auth.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// 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. @@ -11,7 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// syntax = "proto3"; @@ -72,6 +71,27 @@ message AuthenticationRule { repeated AuthRequirement requirements = 7; } +// Specifies a location to extract JWT from an API request. +message JwtLocation { + oneof in { + // Specifies HTTP header name to extract JWT token. + string header = 1; + + // Specifies URL query parameter name to extract JWT token. + string query = 2; + } + + // The value prefix. The value format is "value_prefix{token}" + // Only applies to "in" header type. Must be empty for "in" query type. + // If not empty, the header value has to match (case sensitive) this prefix. + // If not matched, JWT will not be extracted. If matched, JWT will be + // extracted after the prefix is removed. + // + // For example, for "Authorization: Bearer {JWT}", + // value_prefix="Bearer " with a space at the end. + string value_prefix = 3; +} + // Configuration for an authentication provider, including support for // [JSON Web Token // (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32). @@ -122,6 +142,25 @@ message AuthProvider { // Redirect URL if JWT token is required but not present or is expired. // Implement authorizationUrl of securityDefinitions in OpenAPI spec. string authorization_url = 5; + + // Defines the locations to extract the JWT. + // + // JWT locations can be either from HTTP headers or URL query parameters. + // The rule is that the first match wins. The checking order is: checking + // all headers first, then URL query parameters. + // + // If not specified, default to use following 3 locations: + // 1) Authorization: Bearer + // 2) x-goog-iap-jwt-assertion + // 3) access_token query parameter + // + // Default locations can be specified as followings: + // jwt_locations: + // - header: Authorization + // value_prefix: "Bearer " + // - header: x-goog-iap-jwt-assertion + // - query: access_token + repeated JwtLocation jwt_locations = 6; } // OAuth scopes are a way to define data and permissions on data. For example, diff --git a/proto-google-common-protos/src/main/proto/google/api/backend.proto b/proto-google-common-protos/src/main/proto/google/api/backend.proto index 26a16ef4..2dbaa30a 100644 --- a/proto-google-common-protos/src/main/proto/google/api/backend.proto +++ b/proto-google-common-protos/src/main/proto/google/api/backend.proto @@ -96,10 +96,29 @@ message BackendRule { string selector = 1; // The address of the API backend. + // + // The scheme is used to determine the backend protocol and security. + // The following schemes are accepted: + // + // SCHEME PROTOCOL SECURITY + // http:// HTTP None + // https:// HTTP TLS + // grpc:// gRPC None + // grpcs:// gRPC TLS + // + // It is recommended to explicitly include a scheme. Leaving out the scheme + // may cause constrasting behaviors across platforms. + // + // If the port is unspecified, the default is: + // - 80 for schemes without TLS + // - 443 for schemes with TLS + // + // For HTTP backends, use [protocol][google.api.BackendRule.protocol] + // to specify the protocol version. string address = 2; - // The number of seconds to wait for a response from a request. The default - // deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds. + // The number of seconds to wait for a response from a request. The default + // varies based on the request protocol and deployment environment. double deadline = 3; // Minimum deadline in seconds needed for this method. Calls having deadline @@ -120,8 +139,45 @@ message BackendRule { // // For example, specifying `jwt_audience` implies that the backend expects // authentication via a JWT. + // + // When authentication is unspecified, the resulting behavior is the same + // as `disable_auth` set to `true`. + // + // Refer to https://developers.google.com/identity/protocols/OpenIDConnect for + // JWT ID token. oneof authentication { - // The JWT audience is used when generating a JWT id token for the backend. + // The JWT audience is used when generating a JWT ID token for the backend. + // This ID token will be added in the HTTP "authorization" header, and sent + // to the backend. string jwt_audience = 7; + + // When disable_auth is true, a JWT ID token won't be generated and the + // original "Authorization" HTTP header will be preserved. If the header is + // used to carry the original token and is expected by the backend, this + // field must be set to true to preserve the header. + bool disable_auth = 8; } + + // The protocol used for sending a request to the backend. + // The supported values are "http/1.1" and "h2". + // + // The default value is inferred from the scheme in the + // [address][google.api.BackendRule.address] field: + // + // SCHEME PROTOCOL + // http:// http/1.1 + // https:// http/1.1 + // grpc:// h2 + // grpcs:// h2 + // + // For secure HTTP backends (https://) that support HTTP/2, set this field + // to "h2" for improved performance. + // + // Configuring this field to non-default values is only supported for secure + // HTTP backends. This field will be ignored for all other backends. + // + // See + // https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids + // for more details on the supported values. + string protocol = 9; } diff --git a/proto-google-common-protos/src/main/proto/google/api/metric.proto b/proto-google-common-protos/src/main/proto/google/api/metric.proto index cd2762a9..a200d48b 100644 --- a/proto-google-common-protos/src/main/proto/google/api/metric.proto +++ b/proto-google-common-protos/src/main/proto/google/api/metric.proto @@ -123,9 +123,27 @@ message MetricDescriptor { // Some combinations of `metric_kind` and `value_type` might not be supported. ValueType value_type = 4; - // The unit in which the metric value is reported. It is only applicable - // if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The - // supported units are a subset of [The Unified Code for Units of + // The units in which the metric value is reported. It is only applicable + // if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` + // defines the representation of the stored metric values. + // + // Different systems may scale the values to be more easily displayed (so a + // value of `0.02KBy` _might_ be displayed as `20By`, and a value of + // `3523KBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is + // `KBy`, then the value of the metric is always in thousands of bytes, no + // matter how it may be displayed.. + // + // If you want a custom metric to record the exact number of CPU-seconds used + // by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is + // `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 + // CPU-seconds, then the value is written as `12005`. + // + // Alternatively, if you want a custome metric to record data in a more + // granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is + // `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), + // or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). + // + // The supported units are a subset of [The Unified Code for Units of // Measure](http://unitsofmeasure.org/ucum.html) standard: // // **Basic units (UNIT)** @@ -139,33 +157,40 @@ message MetricDescriptor { // // **Prefixes (PREFIX)** // - // * `k` kilo (10**3) - // * `M` mega (10**6) - // * `G` giga (10**9) - // * `T` tera (10**12) - // * `P` peta (10**15) - // * `E` exa (10**18) - // * `Z` zetta (10**21) - // * `Y` yotta (10**24) - // * `m` milli (10**-3) - // * `u` micro (10**-6) - // * `n` nano (10**-9) - // * `p` pico (10**-12) - // * `f` femto (10**-15) - // * `a` atto (10**-18) - // * `z` zepto (10**-21) - // * `y` yocto (10**-24) - // * `Ki` kibi (2**10) - // * `Mi` mebi (2**20) - // * `Gi` gibi (2**30) - // * `Ti` tebi (2**40) + // * `k` kilo (10^3) + // * `M` mega (10^6) + // * `G` giga (10^9) + // * `T` tera (10^12) + // * `P` peta (10^15) + // * `E` exa (10^18) + // * `Z` zetta (10^21) + // * `Y` yotta (10^24) + // + // * `m` milli (10^-3) + // * `u` micro (10^-6) + // * `n` nano (10^-9) + // * `p` pico (10^-12) + // * `f` femto (10^-15) + // * `a` atto (10^-18) + // * `z` zepto (10^-21) + // * `y` yocto (10^-24) + // + // * `Ki` kibi (2^10) + // * `Mi` mebi (2^20) + // * `Gi` gibi (2^30) + // * `Ti` tebi (2^40) + // * `Pi` pebi (2^50) // // **Grammar** // // The grammar also includes these connectors: // - // * `/` division (as an infix operator, e.g. `1/s`). - // * `.` multiplication (as an infix operator, e.g. `GBy.d`) + // * `/` division or ratio (as an infix operator). For examples, + // `kBy/{email}` or `MiBy/10ms` (although you should almost never + // have `/s` in a metric `unit`; rates should always be computed at + // query time from the underlying cumulative or delta value). + // * `.` multiplication or composition (as an infix operator). For + // examples, `GBy.d` or `k{watt}.h`. // // The grammar for a unit is as follows: // @@ -180,14 +205,26 @@ message MetricDescriptor { // // Notes: // - // * `Annotation` is just a comment if it follows a `UNIT` and is - // equivalent to `1` if it is used alone. For examples, - // `{requests}/s == 1/s`, `By{transmitted}/s == By/s`. + // * `Annotation` is just a comment if it follows a `UNIT`. If the annotation + // is used alone, then the unit is equivalent to `1`. For examples, + // `{request}/s == 1/s`, `By{transmitted}/s == By/s`. // * `NAME` is a sequence of non-blank printable ASCII characters not - // containing '{' or '}'. - // * `1` represents dimensionless value 1, such as in `1/s`. - // * `%` represents dimensionless value 1/100, and annotates values giving - // a percentage. + // containing `{` or `}`. + // * `1` represents a unitary [dimensionless + // unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such + // as in `1/s`. It is typically used when none of the basic units are + // appropriate. For example, "new users per day" can be represented as + // `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new + // users). Alternatively, "thousands of page views per day" would be + // represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric + // value of `5.3` would mean "5300 page views per day"). + // * `%` represents dimensionless value of 1/100, and annotates values giving + // a percentage (so the metric values are typically in the range of 0..100, + // and a metric value `3` means "3 percent"). + // * `10^2.%` indicates a metric contains a ratio, typically in the range + // 0..1, that will be multiplied by 100 and displayed as a percentage + // (so a metric value `0.03` means "3 percent"). + // string unit = 5; // A detailed description of the metric, which can be used in documentation. diff --git a/proto-google-common-protos/src/main/proto/google/api/resource.proto b/proto-google-common-protos/src/main/proto/google/api/resource.proto index fdb7001a..2a52e61a 100644 --- a/proto-google-common-protos/src/main/proto/google/api/resource.proto +++ b/proto-google-common-protos/src/main/proto/google/api/resource.proto @@ -68,12 +68,12 @@ extend google.protobuf.MessageOptions { // // The ResourceDescriptor Yaml config will look like: // -// resources: -// - type: "pubsub.googleapis.com/Topic" -// name_descriptor: -// - pattern: "projects/{project}/topics/{topic}" -// parent_type: "cloudresourcemanager.googleapis.com/Project" -// parent_name_extractor: "projects/{project}" +// resources: +// - type: "pubsub.googleapis.com/Topic" +// name_descriptor: +// - pattern: "projects/{project}/topics/{topic}" +// parent_type: "cloudresourcemanager.googleapis.com/Project" +// parent_name_extractor: "projects/{project}" // // Sometimes, resources have multiple patterns, typically because they can // live under multiple parents. @@ -255,10 +255,10 @@ message ResourceReference { // // Example: // - // message ListLogEntriesRequest { - // string parent = 1 [(google.api.resource_reference) = { - // child_type: "logging.googleapis.com/LogEntry" - // }; - // } + // message ListLogEntriesRequest { + // string parent = 1 [(google.api.resource_reference) = { + // child_type: "logging.googleapis.com/LogEntry" + // }; + // } string child_type = 2; } diff --git a/proto-google-common-protos/src/main/proto/google/logging/type/http_request.proto b/proto-google-common-protos/src/main/proto/google/logging/type/http_request.proto index fc1afd7d..f5002062 100644 --- a/proto-google-common-protos/src/main/proto/google/logging/type/http_request.proto +++ b/proto-google-common-protos/src/main/proto/google/logging/type/http_request.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// 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. @@ -11,7 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// syntax = "proto3"; diff --git a/proto-google-common-protos/src/main/proto/google/logging/type/log_severity.proto b/proto-google-common-protos/src/main/proto/google/logging/type/log_severity.proto index c6fd055a..108cd7c7 100644 --- a/proto-google-common-protos/src/main/proto/google/logging/type/log_severity.proto +++ b/proto-google-common-protos/src/main/proto/google/logging/type/log_severity.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// 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. @@ -11,7 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// syntax = "proto3"; diff --git a/proto-google-common-protos/src/main/proto/google/longrunning/operations.proto b/proto-google-common-protos/src/main/proto/google/longrunning/operations.proto index 90778e03..299eefb2 100644 --- a/proto-google-common-protos/src/main/proto/google/longrunning/operations.proto +++ b/proto-google-common-protos/src/main/proto/google/longrunning/operations.proto @@ -11,13 +11,13 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// syntax = "proto3"; package google.longrunning; import "google/api/annotations.proto"; +import "google/api/client.proto"; import "google/protobuf/any.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; @@ -52,6 +52,8 @@ extend google.protobuf.MethodOptions { // returns long-running operations should implement the `Operations` interface // so developers can have a consistent client experience. service Operations { + option (google.api.default_host) = "longrunning.googleapis.com"; + // Lists operations that match the specified filter in the request. If the // server doesn't support this method, it returns `UNIMPLEMENTED`. // @@ -66,6 +68,7 @@ service Operations { option (google.api.http) = { get: "/v1/{name=operations}" }; + option (google.api.method_signature) = "name,filter"; } // Gets the latest state of a long-running operation. Clients can use this @@ -75,6 +78,7 @@ service Operations { option (google.api.http) = { get: "/v1/{name=operations/**}" }; + option (google.api.method_signature) = "name"; } // Deletes a long-running operation. This method indicates that the client is @@ -85,6 +89,7 @@ service Operations { option (google.api.http) = { delete: "/v1/{name=operations/**}" }; + option (google.api.method_signature) = "name"; } // Starts asynchronous cancellation on a long-running operation. The server @@ -102,6 +107,7 @@ service Operations { post: "/v1/{name=operations/**}:cancel" body: "*" }; + option (google.api.method_signature) = "name"; } // Waits for the specified long-running operation until it is done or reaches @@ -122,7 +128,7 @@ service Operations { message Operation { // The server-assigned name, which is only unique within the same service that // originally returns it. If you use the default HTTP mapping, the - // `name` should have the format of `operations/some/unique/name`. + // `name` should be a resource name ending with `operations/{unique_id}`. string name = 1; // Service-specific metadata associated with the operation. It typically diff --git a/proto-google-common-protos/src/main/proto/google/rpc/code.proto b/proto-google-common-protos/src/main/proto/google/rpc/code.proto index 142e28d3..98ae0ac1 100644 --- a/proto-google-common-protos/src/main/proto/google/rpc/code.proto +++ b/proto-google-common-protos/src/main/proto/google/rpc/code.proto @@ -1,4 +1,4 @@ -// Copyright 2017 Google Inc. +// 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. @@ -22,7 +22,7 @@ option java_outer_classname = "CodeProto"; option java_package = "com.google.rpc"; option objc_class_prefix = "RPC"; -// The canonical error codes for Google APIs. +// The canonical error codes for gRPC APIs. // // // Sometimes multiple error codes may apply. Services should return @@ -170,7 +170,8 @@ enum Code { // The service is currently unavailable. This is most likely a // transient condition, which can be corrected by retrying with - // a backoff. + // a backoff. Note that it is not always safe to retry + // non-idempotent operations. // // See the guidelines above for deciding between `FAILED_PRECONDITION`, // `ABORTED`, and `UNAVAILABLE`. diff --git a/proto-google-common-protos/src/main/proto/google/rpc/context/attribute_context.proto b/proto-google-common-protos/src/main/proto/google/rpc/context/attribute_context.proto new file mode 100644 index 00000000..e60a5ae9 --- /dev/null +++ b/proto-google-common-protos/src/main/proto/google/rpc/context/attribute_context.proto @@ -0,0 +1,287 @@ +// 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.rpc.context; + +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/genproto/googleapis/rpc/context/attribute_context;attribute_context"; +option java_multiple_files = true; +option java_outer_classname = "AttributeContextProto"; +option java_package = "com.google.rpc.context"; + +// This message defines the standard attribute vocabulary for Google APIs. +// +// An attribute is a piece of metadata that describes an activity on a network +// service. For example, the size of an HTTP request, or the status code of +// an HTTP response. +// +// Each attribute has a type and a name, which is logically defined as +// a proto message field in `AttributeContext`. The field type becomes the +// attribute type, and the field path becomes the attribute name. For example, +// the attribute `source.ip` maps to field `AttributeContext.source.ip`. +// +// This message definition is guaranteed not to have any wire breaking change. +// So you can use it directly for passing attributes across different systems. +// +// NOTE: Different system may generate different subset of attributes. Please +// verify the system specification before relying on an attribute generated +// a system. +message AttributeContext { + // This message defines attributes for a node that handles a network request. + // The node can be either a service or an application that sends, forwards, + // or receives the request. Service peers should fill in + // `principal` and `labels` as appropriate. + message Peer { + // The IP address of the peer. + string ip = 1; + + // The network port of the peer. + int64 port = 2; + + // The labels associated with the peer. + map labels = 6; + + // The identity of this peer. Similar to `Request.auth.principal`, but + // relative to the peer instead of the request. For example, the + // idenity associated with a load balancer that forwared the request. + string principal = 7; + + // The CLDR country/region code associated with the above IP address. + // If the IP address is private, the `region_code` should reflect the + // physical location where this peer is running. + string region_code = 8; + } + + // This message defines attributes associated with API operations, such as + // a network API request. The terminology is based on the conventions used + // by Google APIs, Istio, and OpenAPI. + message Api { + // The API service name. It is a logical identifier for a networked API, + // such as "pubsub.googleapis.com". The naming syntax depends on the + // API management system being used for handling the request. + string service = 1; + + // The API operation name. For gRPC requests, it is the fully qualified API + // method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI + // requests, it is the `operationId`, such as "getPet". + string operation = 2; + + // The API protocol used for sending the request, such as "http", "https", + // "grpc", or "internal". + string protocol = 3; + + // The API version associated with the API operation above, such as "v1" or + // "v1alpha1". + string version = 4; + } + + // This message defines request authentication attributes. Terminology is + // based on the JSON Web Token (JWT) standard, but the terms also + // correlate to concepts in other standards. + message Auth { + // The authenticated principal. Reflects the issuer (`iss`) and subject + // (`sub`) claims within a JWT. The issuer and subject should be `/` + // delimited, with `/` percent-encoded within the subject fragment. For + // Google accounts, the principal format is: + // "https://accounts.google.com/{id}" + string principal = 1; + + // The intended audience(s) for this authentication information. Reflects + // the audience (`aud`) claim within a JWT. The audience + // value(s) depends on the `issuer`, but typically include one or more of + // the following pieces of information: + // + // * The services intended to receive the credential such as + // ["pubsub.googleapis.com", "storage.googleapis.com"] + // * A set of service-based scopes. For example, + // ["https://www.googleapis.com/auth/cloud-platform"] + // * The client id of an app, such as the Firebase project id for JWTs + // from Firebase Auth. + // + // Consult the documentation for the credential issuer to determine the + // information provided. + repeated string audiences = 2; + + // The authorized presenter of the credential. Reflects the optional + // Authorized Presenter (`azp`) claim within a JWT or the + // OAuth client id. For example, a Google Cloud Platform client id looks + // as follows: "123456789012.apps.googleusercontent.com". + string presenter = 3; + + // Structured claims presented with the credential. JWTs include + // `{key: value}` pairs for standard and private claims. The following + // is a subset of the standard required and optional claims that would + // typically be presented for a Google-based JWT: + // + // {'iss': 'accounts.google.com', + // 'sub': '113289723416554971153', + // 'aud': ['123456789012', 'pubsub.googleapis.com'], + // 'azp': '123456789012.apps.googleusercontent.com', + // 'email': 'jsmith@example.com', + // 'iat': 1353601026, + // 'exp': 1353604926} + // + // SAML assertions are similarly specified, but with an identity provider + // dependent structure. + google.protobuf.Struct claims = 4; + + // A list of access level resource names that allow resources to be + // accessed by authenticated requester. It is part of Secure GCP processing + // for the incoming request. An access level string has the format: + // "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" + // + // Example: + // "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" + repeated string access_levels = 5; + } + + // This message defines attributes for an HTTP request. If the actual + // request is not an HTTP request, the runtime system should try to map + // the actual request to an equivalent HTTP request. + message Request { + // The unique ID for a request, which can be propagated to downstream + // systems. The ID should have low probability of collision + // within a single day for a specific service. + string id = 1; + + // The HTTP request method, such as `GET`, `POST`. + string method = 2; + + // The HTTP request headers. If multiple headers share the same key, they + // must be merged according to the HTTP spec. All header keys must be + // lowercased, because HTTP header keys are case-insensitive. + map headers = 3; + + // The HTTP URL path. + string path = 4; + + // The HTTP request `Host` header value. + string host = 5; + + // The HTTP URL scheme, such as `http` and `https`. + string scheme = 6; + + // The HTTP URL query in the format of `name1=value1&name2=value2`, as it + // appears in the first line of the HTTP request. No decoding is performed. + string query = 7; + + // The timestamp when the `destination` service receives the first byte of + // the request. + google.protobuf.Timestamp time = 9; + + // The HTTP request size in bytes. If unknown, it must be -1. + int64 size = 10; + + // The network protocol used with the request, such as "http/1.1", + // "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See + // https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids + // for details. + string protocol = 11; + + // A special parameter for request reason. It is used by security systems + // to associate auditing information with a request. + string reason = 12; + + // The request authentication. May be absent for unauthenticated requests. + // Derived from the HTTP request `Authorization` header or equivalent. + Auth auth = 13; + } + + // This message defines attributes for a typical network response. It + // generally models semantics of an HTTP response. + message Response { + // The HTTP response status code, such as `200` and `404`. + int64 code = 1; + + // The HTTP response size in bytes. If unknown, it must be -1. + int64 size = 2; + + // The HTTP response headers. If multiple headers share the same key, they + // must be merged according to HTTP spec. All header keys must be + // lowercased, because HTTP header keys are case-insensitive. + map headers = 3; + + // The timestamp when the `destination` service generates the first byte of + // the response. + google.protobuf.Timestamp time = 4; + } + + // This message defines core attributes for a resource. A resource is an + // addressable (named) entity provided by the destination service. For + // example, a file stored on a network storage service. + message Resource { + // The name of the service that this resource belongs to, such as + // `pubsub.googleapis.com`. The service may be different from the DNS + // hostname that actually serves the request. + string service = 1; + + // The stable identifier (name) of a resource on the `service`. A resource + // can be logically identified as "//{resource.service}/{resource.name}". + // The differences between a resource name and a URI are: + // + // * Resource name is a logical identifier, independent of network + // protocol and API version. For example, + // `//pubsub.googleapis.com/projects/123/topics/news-feed`. + // * URI often includes protocol and version information, so it can + // be used directly by applications. For example, + // `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. + // + // See https://cloud.google.com/apis/design/resource_names for details. + string name = 2; + + // The type of the resource. The syntax is platform-specific because + // different platforms define their resources differently. + // + // For Google APIs, the type format must be "{service}/{kind}". + string type = 3; + + // The labels or tags on the resource, such as AWS resource tags and + // Kubernetes resource labels. + map labels = 4; + } + + // The origin of a network activity. In a multi hop network activity, + // the origin represents the sender of the first hop. For the first hop, + // the `source` and the `origin` must have the same content. + Peer origin = 7; + + // The source of a network activity, such as starting a TCP connection. + // In a multi hop network activity, the source represents the sender of the + // last hop. + Peer source = 1; + + // The destination of a network activity, such as accepting a TCP connection. + // In a multi hop network activity, the destination represents the receiver of + // the last hop. + Peer destination = 2; + + // Represents a network request, such as an HTTP request. + Request request = 3; + + // Represents a network response, such as an HTTP response. + Response response = 4; + + // Represents a target resource that is involved with a network activity. + // If multiple resources are involved with an activity, this must be the + // primary one. + Resource resource = 5; + + // Represents an API operation that is involved to a network activity. + Api api = 6; +} diff --git a/proto-google-common-protos/src/main/proto/google/rpc/error_details.proto b/proto-google-common-protos/src/main/proto/google/rpc/error_details.proto index 1f9ad531..fd9361a0 100644 --- a/proto-google-common-protos/src/main/proto/google/rpc/error_details.proto +++ b/proto-google-common-protos/src/main/proto/google/rpc/error_details.proto @@ -1,4 +1,4 @@ -// Copyright 2017 Google Inc. +// 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. @@ -35,7 +35,7 @@ option objc_class_prefix = "RPC"; // receiving the error response before retrying. If retrying requests also // fail, clients should use an exponential backoff scheme to gradually increase // the delay between retries based on `retry_delay`, until either a maximum -// number of retires have been reached or a maximum retry delay cap has been +// number of retries have been reached or a maximum retry delay cap has been // reached. message RetryInfo { // Clients should wait at least this long between retrying the same request. @@ -60,7 +60,7 @@ message DebugInfo { // a service could respond with the project id and set `service_disabled` // to true. // -// Also see RetryDetail and Help types for other details about handling a +// Also see RetryInfo and Help types for other details about handling a // quota failure. message QuotaFailure { // A message type used to describe a single quota violation. For example, a @@ -85,6 +85,53 @@ message QuotaFailure { repeated Violation violations = 1; } +// Describes the cause of the error with structured details. +// +// Example of an error when contacting the "pubsub.googleapis.com" API when it +// is not enabled: +// { "reason": "API_DISABLED" +// "domain": "googleapis.com" +// "metadata": { +// "resource": "projects/123", +// "service": "pubsub.googleapis.com" +// } +// } +// This response indicates that the pubsub.googleapis.com API is not enabled. +// +// Example of an error that is returned when attempting to create a Spanner +// instance in a region that is out of stock: +// { "reason": "STOCKOUT" +// "domain": "spanner.googleapis.com", +// "metadata": { +// "availableRegions": "us-central1,us-east2" +// } +// } +// +message ErrorInfo { + // The reason of the error. This is a constant value that identifies the + // proximate cause of the error. Error reasons are unique within a particular + // domain of errors. This should be at most 63 characters and match + // /[A-Z0-9_]+/. + string reason = 1; + + // The logical grouping to which the "reason" belongs. Often "domain" will + // contain the registered service name of the tool or product that is the + // source of the error. Example: "pubsub.googleapis.com". If the error is + // common across many APIs, the first segment of the example above will be + // omitted. The value will be, "googleapis.com". + string domain = 2; + + // Additional structured details about this error. + // + // Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in + // length. When identifying the current value of an exceeded limit, the units + // should be contained in the key, not the value. For example, rather than + // {"instanceLimit": "100/request"}, should be returned as, + // {"instanceLimitPerRequest": "100"}, if the client exceeds the number of + // instances that can be created in a single (batch) request. + map metadata = 3; +} + // Describes what preconditions have failed. // // For example, if an RPC failed because it required the Terms of Service to be @@ -94,13 +141,13 @@ message PreconditionFailure { // A message type used to describe a single precondition failure. message Violation { // The type of PreconditionFailure. We recommend using a service-specific - // enum type to define the supported precondition violation types. For + // enum type to define the supported precondition violation subjects. For // example, "TOS" for "Terms of Service violation". string type = 1; // The subject, relative to the type, that failed. - // For example, "google.com/cloud" relative to the "TOS" type would - // indicate which terms of service is being referenced. + // For example, "google.com/cloud" relative to the "TOS" type would indicate + // which terms of service is being referenced. string subject = 2; // A description of how the precondition failed. Developers can use this @@ -153,8 +200,7 @@ message ResourceInfo { // The name of the resource being accessed. For example, a shared calendar // name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current - // error is - // [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. + // error is [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. string resource_name = 2; // The owner of the resource (optional). diff --git a/proto-google-common-protos/src/main/proto/google/rpc/status.proto b/proto-google-common-protos/src/main/proto/google/rpc/status.proto index b0daa369..3b1f7a93 100644 --- a/proto-google-common-protos/src/main/proto/google/rpc/status.proto +++ b/proto-google-common-protos/src/main/proto/google/rpc/status.proto @@ -1,4 +1,4 @@ -// Copyright 2017 Google Inc. +// 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. @@ -18,6 +18,7 @@ package google.rpc; import "google/protobuf/any.proto"; +option cc_enable_arenas = true; option go_package = "google.golang.org/genproto/googleapis/rpc/status;status"; option java_multiple_files = true; option java_outer_classname = "StatusProto"; @@ -26,66 +27,18 @@ option objc_class_prefix = "RPC"; // The `Status` type defines a logical error model that is suitable for // different programming environments, including REST APIs and RPC APIs. It is -// used by [gRPC](https://github.com/grpc). The error model is designed to be: +// used by [gRPC](https://github.com/grpc). Each `Status` message contains +// three pieces of data: error code, error message, and error details. // -// - Simple to use and understand for most users -// - Flexible enough to meet unexpected needs -// -// # Overview -// -// The `Status` message contains three pieces of data: error code, error -// message, and error details. The error code should be an enum value of -// [google.rpc.Code][google.rpc.Code], but it may accept additional error codes -// if needed. The error message should be a developer-facing English message -// that helps developers *understand* and *resolve* the error. If a localized -// user-facing error message is needed, put the localized message in the error -// details or localize it in the client. The optional error details may contain -// arbitrary information about the error. There is a predefined set of error -// detail types in the package `google.rpc` that can be used for common error -// conditions. -// -// # Language mapping -// -// The `Status` message is the logical representation of the error model, but it -// is not necessarily the actual wire format. When the `Status` message is -// exposed in different client libraries and different wire protocols, it can be -// mapped differently. For example, it will likely be mapped to some exceptions -// in Java, but more likely mapped to some error codes in C. -// -// # Other uses -// -// The error model and the `Status` message can be used in a variety of -// environments, either with or without APIs, to provide a -// consistent developer experience across different environments. -// -// Example uses of this error model include: -// -// - Partial errors. If a service needs to return partial errors to the client, -// it may embed the `Status` in the normal response to indicate the partial -// errors. -// -// - Workflow errors. A typical workflow has multiple steps. Each step may -// have a `Status` message for error reporting. -// -// - Batch operations. If a client uses batch request and batch response, the -// `Status` message should be used directly inside batch response, one for -// each error sub-response. -// -// - Asynchronous operations. If an API call embeds asynchronous operation -// results in its response, the status of those operations should be -// represented directly using the `Status` message. -// -// - Logging. If some API errors are stored in logs, the message `Status` could -// be used directly after any stripping needed for security/privacy reasons. +// You can find out more about this error model and how to work with it in the +// [API Design Guide](https://cloud.google.com/apis/design/errors). message Status { - // The status code, which should be an enum value of - // [google.rpc.Code][google.rpc.Code]. + // The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. int32 code = 1; // A developer-facing error message, which should be in English. Any // user-facing error message should be localized and sent in the - // [google.rpc.Status.details][google.rpc.Status.details] field, or localized - // by the client. + // [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client. string message = 2; // A list of messages that carry the error details. There is a common set of diff --git a/proto-google-common-protos/src/main/proto/google/type/calendar_period.proto b/proto-google-common-protos/src/main/proto/google/type/calendar_period.proto index 455b4c36..a91d0c35 100644 --- a/proto-google-common-protos/src/main/proto/google/type/calendar_period.proto +++ b/proto-google-common-protos/src/main/proto/google/type/calendar_period.proto @@ -23,7 +23,6 @@ option java_outer_classname = "CalendarPeriodProto"; option java_package = "com.google.type"; option objc_class_prefix = "GTP"; - // A `CalendarPeriod` represents the abstract concept of a time period that has // a canonical start. Grammatically, "the start of the current // `CalendarPeriod`." All calendar times begin at midnight UTC. diff --git a/proto-google-common-protos/src/main/proto/google/type/color.proto b/proto-google-common-protos/src/main/proto/google/type/color.proto index 7982c8b0..417f1c4b 100644 --- a/proto-google-common-protos/src/main/proto/google/type/color.proto +++ b/proto-google-common-protos/src/main/proto/google/type/color.proto @@ -26,7 +26,6 @@ option java_outer_classname = "ColorProto"; option java_package = "com.google.type"; option objc_class_prefix = "GTP"; - // Represents a color in the RGBA color space. This representation is designed // for simplicity of conversion to/from color representations in various // languages over compactness; for example, the fields of this representation diff --git a/proto-google-common-protos/src/main/proto/google/type/date.proto b/proto-google-common-protos/src/main/proto/google/type/date.proto index 630f620b..b958feeb 100644 --- a/proto-google-common-protos/src/main/proto/google/type/date.proto +++ b/proto-google-common-protos/src/main/proto/google/type/date.proto @@ -24,7 +24,6 @@ option java_outer_classname = "DateProto"; option java_package = "com.google.type"; option objc_class_prefix = "GTP"; - // Represents a whole or partial calendar date, e.g. a birthday. The time of day // and time zone are either specified elsewhere or are not significant. The date // is relative to the Proleptic Gregorian Calendar. This can represent: diff --git a/proto-google-common-protos/src/main/proto/google/type/datetime.proto b/proto-google-common-protos/src/main/proto/google/type/datetime.proto new file mode 100644 index 00000000..5aebc4b9 --- /dev/null +++ b/proto-google-common-protos/src/main/proto/google/type/datetime.proto @@ -0,0 +1,97 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.type; + +import "google/protobuf/duration.proto"; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/genproto/googleapis/type/datetime;datetime"; +option java_multiple_files = true; +option java_outer_classname = "DateTimeProto"; +option java_package = "com.google.type"; +option objc_class_prefix = "GTP"; + +// Represents civil time in one of a few possible ways: +// +// * When utc_offset is set and time_zone is unset: a civil time on a calendar +// day with a particular offset from UTC. +// * When time_zone is set and utc_offset is unset: a civil time on a calendar +// day in a particular time zone. +// * When neither time_zone nor utc_offset is set: a civil time on a calendar +// day in local time. +// +// The date is relative to the Proleptic Gregorian Calendar. +// +// If year is 0, the DateTime is considered not to have a specific year. month +// and day must have valid, non-zero values. +// +// This type is more flexible than some applications may want. Make sure to +// document and validate your application's limitations. +message DateTime { + // Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a + // datetime without a year. + int32 year = 1; + + // Required. Month of year. Must be from 1 to 12. + int32 month = 2; + + // Required. Day of month. Must be from 1 to 31 and valid for the year and + // month. + int32 day = 3; + + // Required. Hours of day in 24 hour format. Should be from 0 to 23. An API + // may choose to allow the value "24:00:00" for scenarios like business + // closing time. + int32 hours = 4; + + // Required. Minutes of hour of day. Must be from 0 to 59. + int32 minutes = 5; + + // Required. Seconds of minutes of the time. Must normally be from 0 to 59. An + // API may allow the value 60 if it allows leap-seconds. + int32 seconds = 6; + + // Required. Fractions of seconds in nanoseconds. Must be from 0 to + // 999,999,999. + int32 nanos = 7; + + // Optional. Specifies either the UTC offset or the time zone of the DateTime. + // Choose carefully between them, considering that time zone data may change + // in the future (for example, a country modifies their DST start/end dates, + // and future DateTimes in the affected range had already been stored). + // If omitted, the DateTime is considered to be in local time. + oneof time_offset { + // UTC offset. Must be whole seconds, between -18 hours and +18 hours. + // For example, a UTC offset of -4:00 would be represented as + // { seconds: -14400 }. + google.protobuf.Duration utc_offset = 8; + + // Time zone. + TimeZone time_zone = 9; + } +} + +// Represents a time zone from the +// [IANA Time Zone Database](https://www.iana.org/time-zones). +message TimeZone { + // IANA Time Zone Database time zone, e.g. "America/New_York". + string id = 1; + + // Optional. IANA Time Zone Database version number, e.g. "2019a". + string version = 2; +} diff --git a/proto-google-common-protos/src/main/proto/google/type/dayofweek.proto b/proto-google-common-protos/src/main/proto/google/type/dayofweek.proto index 951ec247..7544e151 100644 --- a/proto-google-common-protos/src/main/proto/google/type/dayofweek.proto +++ b/proto-google-common-protos/src/main/proto/google/type/dayofweek.proto @@ -23,7 +23,6 @@ option java_outer_classname = "DayOfWeekProto"; option java_package = "com.google.type"; option objc_class_prefix = "GTP"; - // Represents a day of week. enum DayOfWeek { // The unspecified day-of-week. diff --git a/proto-google-common-protos/src/main/proto/google/type/expr.proto b/proto-google-common-protos/src/main/proto/google/type/expr.proto index 44474251..5d4f2f71 100644 --- a/proto-google-common-protos/src/main/proto/google/type/expr.proto +++ b/proto-google-common-protos/src/main/proto/google/type/expr.proto @@ -23,7 +23,6 @@ option java_outer_classname = "ExprProto"; option java_package = "com.google.type"; option objc_class_prefix = "GTP"; - // Represents an expression text. Example: // // title: "User account presence" diff --git a/proto-google-common-protos/src/main/proto/google/type/fraction.proto b/proto-google-common-protos/src/main/proto/google/type/fraction.proto index 03151888..8ad008dd 100644 --- a/proto-google-common-protos/src/main/proto/google/type/fraction.proto +++ b/proto-google-common-protos/src/main/proto/google/type/fraction.proto @@ -23,7 +23,6 @@ option java_outer_classname = "FractionProto"; option java_package = "com.google.type"; option objc_class_prefix = "GTP"; - // Represents a fraction in terms of a numerator divided by a denominator. message Fraction { // The portion of the denominator in the faction, e.g. 2 in 2/3. diff --git a/proto-google-common-protos/src/main/proto/google/type/latlng.proto b/proto-google-common-protos/src/main/proto/google/type/latlng.proto index 8aec8c0a..e5d45f1e 100644 --- a/proto-google-common-protos/src/main/proto/google/type/latlng.proto +++ b/proto-google-common-protos/src/main/proto/google/type/latlng.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// 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. @@ -11,7 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// syntax = "proto3"; @@ -24,7 +23,6 @@ option java_outer_classname = "LatLngProto"; option java_package = "com.google.type"; option objc_class_prefix = "GTP"; - // An object representing a latitude/longitude pair. This is expressed as a pair // of doubles representing degrees latitude and degrees longitude. Unless // specified otherwise, this must conform to the diff --git a/proto-google-common-protos/src/main/proto/google/type/money.proto b/proto-google-common-protos/src/main/proto/google/type/money.proto index dd39c540..ef41f108 100644 --- a/proto-google-common-protos/src/main/proto/google/type/money.proto +++ b/proto-google-common-protos/src/main/proto/google/type/money.proto @@ -24,7 +24,6 @@ option java_outer_classname = "MoneyProto"; option java_package = "com.google.type"; option objc_class_prefix = "GTP"; - // Represents an amount of money with its currency type. message Money { // The 3-letter currency code defined in ISO 4217. diff --git a/proto-google-common-protos/src/main/proto/google/type/postal_address.proto b/proto-google-common-protos/src/main/proto/google/type/postal_address.proto index f3615050..688af8a1 100644 --- a/proto-google-common-protos/src/main/proto/google/type/postal_address.proto +++ b/proto-google-common-protos/src/main/proto/google/type/postal_address.proto @@ -1,4 +1,4 @@ -// Copyright 2016 Google Inc. +// Copyright 2019 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,11 +11,13 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// syntax = "proto3"; package google.type; +option cc_enable_arenas = true; option go_package = "google.golang.org/genproto/googleapis/type/postaladdress;postaladdress"; option java_multiple_files = true; option java_outer_classname = "PostalAddressProto"; @@ -40,7 +42,9 @@ option objc_class_prefix = "GTP"; // For more guidance on how to use this schema, please see: // https://support.google.com/business/answer/6397478 message PostalAddress { - // The schema revision of the `PostalAddress`. + // The schema revision of the `PostalAddress`. This must be set to 0, which is + // the latest revision. + // // All new revisions **must** be backward compatible with old revisions. int32 revision = 1; diff --git a/proto-google-common-protos/src/main/proto/google/type/quaternion.proto b/proto-google-common-protos/src/main/proto/google/type/quaternion.proto index 9d0d98e0..7ab5dc72 100644 --- a/proto-google-common-protos/src/main/proto/google/type/quaternion.proto +++ b/proto-google-common-protos/src/main/proto/google/type/quaternion.proto @@ -24,7 +24,6 @@ option java_outer_classname = "QuaternionProto"; option java_package = "com.google.type"; option objc_class_prefix = "GTP"; - // A quaternion is defined as the quotient of two directed lines in a // three-dimensional space or equivalently as the quotient of two Euclidean // vectors (https://en.wikipedia.org/wiki/Quaternion). @@ -37,35 +36,35 @@ option objc_class_prefix = "GTP"; // // Quaternions are generally represented in this form: // -// w + xi + yj + zk +// w + xi + yj + zk // // where x, y, z, and w are real numbers, and i, j, and k are three imaginary // numbers. // -// Our naming choice (x, y, z, w) comes from the desire to avoid confusion for +// Our naming choice `(x, y, z, w)` comes from the desire to avoid confusion for // those interested in the geometric properties of the quaternion in the 3D // Cartesian space. Other texts often use alternative names or subscripts, such -// as (a, b, c, d), (1, i, j, k), or (0, 1, 2, 3), which are perhaps better -// suited for mathematical interpretations. +// as `(a, b, c, d)`, `(1, i, j, k)`, or `(0, 1, 2, 3)`, which are perhaps +// better suited for mathematical interpretations. // // To avoid any confusion, as well as to maintain compatibility with a large // number of software libraries, the quaternions represented using the protocol -// buffer below *must* follow the Hamilton convention, which defines ij = k +// buffer below *must* follow the Hamilton convention, which defines `ij = k` // (i.e. a right-handed algebra), and therefore: // -// i^2 = j^2 = k^2 = ijk = −1 -// ij = −ji = k -// jk = −kj = i -// ki = −ik = j +// i^2 = j^2 = k^2 = ijk = −1 +// ij = −ji = k +// jk = −kj = i +// ki = −ik = j // // Please DO NOT use this to represent quaternions that follow the JPL // convention, or any of the other quaternion flavors out there. // // Definitions: // -// - Quaternion norm (or magnitude): sqrt(x^2 + y^2 + z^2 + w^2). +// - Quaternion norm (or magnitude): `sqrt(x^2 + y^2 + z^2 + w^2)`. // - Unit (or normalized) quaternion: a quaternion whose norm is 1. -// - Pure quaternion: a quaternion whose scalar component (w) is 0. +// - Pure quaternion: a quaternion whose scalar component (`w`) is 0. // - Rotation quaternion: a unit quaternion used to represent rotation. // - Orientation quaternion: a unit quaternion used to represent orientation. // @@ -75,13 +74,12 @@ option objc_class_prefix = "GTP"; // quaternions, to avoid rounding errors: // https://en.wikipedia.org/wiki/Rotation_formalisms_in_three_dimensions // -// Note that (x, y, z, w) and (-x, -y, -z, -w) represent the same rotation, but -// normalization would be even more useful, e.g. for comparison purposes, if it -// would produce a unique representation. It is thus recommended that w be kept -// positive, which can be achieved by changing all the signs when w is negative. -// +// Note that `(x, y, z, w)` and `(-x, -y, -z, -w)` represent the same rotation, +// but normalization would be even more useful, e.g. for comparison purposes, if +// it would produce a unique representation. It is thus recommended that `w` be +// kept positive, which can be achieved by changing all the signs when `w` is +// negative. // -// Next available tag: 5 message Quaternion { // The x component. double x = 1; diff --git a/proto-google-common-protos/src/main/proto/google/type/timeofday.proto b/proto-google-common-protos/src/main/proto/google/type/timeofday.proto index b8d43122..b609a487 100644 --- a/proto-google-common-protos/src/main/proto/google/type/timeofday.proto +++ b/proto-google-common-protos/src/main/proto/google/type/timeofday.proto @@ -24,7 +24,6 @@ option java_outer_classname = "TimeOfDayProto"; option java_package = "com.google.type"; option objc_class_prefix = "GTP"; - // Represents a time of day. The date and time zone are either not significant // or are specified elsewhere. An API may choose to allow leap seconds. Related // types are [google.type.Date][google.type.Date] and `google.protobuf.Timestamp`. diff --git a/synth.metadata b/synth.metadata index 0ed138c3..b0615206 100644 --- a/synth.metadata +++ b/synth.metadata @@ -3,14 +3,14 @@ { "git": { "name": ".", - "sha": "4ae7753ac03b6ee4d171af52cfa2bc8dfc944ad4" + "sha": "5db1f39de2cc7b7a5faaea7707eb1e1bd579e058" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "01b6f23d24b27878b48667ce597876d66b59780e" + "sha": "969a2340e74c73227e7c1638ed7650abcac22ee4" } } ],