All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.Service Maven / Gradle / Ivy

There is a newer version: 3.2.3
Show newest version
// 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
 * title, and delegates other aspects to sub-sections. Each sub-section is
 * either a proto message or a repeated proto message that configures a
 * specific aspect, such as auth. See each proto message definition for details.
 * Example:
 *     type: google.api.Service
 *     config_version: 3
 *     name: calendar.googleapis.com
 *     title: Google Calendar API
 *     apis:
 *     - name: google.calendar.v3.Calendar
 *     authentication:
 *       providers:
 *       - id: google_calendar_auth
 *         jwks_uri: https://www.googleapis.com/oauth2/v1/certs
 *         issuer: https://securetoken.google.com
 *       rules:
 *       - selector: "*"
 *         requirements:
 *           provider_id: google_calendar_auth
 * 
* * Protobuf type {@code google.api.Service} */ public final class Service extends com.google.proto4pingcap.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.api.Service) ServiceOrBuilder { // Use Service.newBuilder() to construct. private Service(com.google.proto4pingcap.GeneratedMessageV3.Builder builder) { super(builder); } private Service() { name_ = ""; id_ = ""; title_ = ""; producerProjectId_ = ""; apis_ = java.util.Collections.emptyList(); types_ = java.util.Collections.emptyList(); enums_ = java.util.Collections.emptyList(); endpoints_ = java.util.Collections.emptyList(); logs_ = java.util.Collections.emptyList(); metrics_ = java.util.Collections.emptyList(); monitoredResources_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.proto4pingcap.UnknownFieldSet getUnknownFields() { return com.google.proto4pingcap.UnknownFieldSet.getDefaultInstance(); } private Service( com.google.proto4pingcap.CodedInputStream input, com.google.proto4pingcap.ExtensionRegistryLite extensionRegistry) throws com.google.proto4pingcap.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); title_ = s; break; } case 26: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { apis_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } apis_.add( input.readMessage(com.google.proto4pingcap.Api.parser(), extensionRegistry)); break; } case 34: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { types_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } types_.add( input.readMessage(com.google.proto4pingcap.Type.parser(), extensionRegistry)); break; } case 42: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { enums_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } enums_.add( input.readMessage(com.google.proto4pingcap.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(); } break; } 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; } 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; } 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; } 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: { 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; } 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; } case 146: { if (!((mutable_bitField0_ & 0x00008000) == 0x00008000)) { endpoints_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00008000; } endpoints_.add( input.readMessage(com.google.api.Endpoint.parser(), extensionRegistry)); break; } case 162: { com.google.proto4pingcap.UInt32Value.Builder subBuilder = null; if (configVersion_ != null) { subBuilder = configVersion_.toBuilder(); } configVersion_ = input.readMessage(com.google.proto4pingcap.UInt32Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(configVersion_); configVersion_ = subBuilder.buildPartial(); } break; } 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(); producerProjectId_ = s; break; } case 186: { if (!((mutable_bitField0_ & 0x00020000) == 0x00020000)) { logs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00020000; } logs_.add( input.readMessage(com.google.api.LogDescriptor.parser(), extensionRegistry)); break; } case 194: { if (!((mutable_bitField0_ & 0x00040000) == 0x00040000)) { metrics_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00040000; } metrics_.add( input.readMessage(com.google.api.MetricDescriptor.parser(), extensionRegistry)); break; } case 202: { if (!((mutable_bitField0_ & 0x00080000) == 0x00080000)) { monitoredResources_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00080000; } monitoredResources_.add( input.readMessage(com.google.api.MonitoredResourceDescriptor.parser(), extensionRegistry)); break; } 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; } 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; } 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(); 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; } case 810: { com.google.api.Experimental.Builder subBuilder = null; if (experimental_ != null) { subBuilder = experimental_.toBuilder(); } experimental_ = input.readMessage(com.google.api.Experimental.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(experimental_); experimental_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.proto4pingcap.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.proto4pingcap.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { apis_ = java.util.Collections.unmodifiableList(apis_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { types_ = java.util.Collections.unmodifiableList(types_); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { enums_ = java.util.Collections.unmodifiableList(enums_); } if (((mutable_bitField0_ & 0x00008000) == 0x00008000)) { endpoints_ = java.util.Collections.unmodifiableList(endpoints_); } if (((mutable_bitField0_ & 0x00020000) == 0x00020000)) { logs_ = java.util.Collections.unmodifiableList(logs_); } if (((mutable_bitField0_ & 0x00040000) == 0x00040000)) { metrics_ = java.util.Collections.unmodifiableList(metrics_); } if (((mutable_bitField0_ & 0x00080000) == 0x00080000)) { monitoredResources_ = java.util.Collections.unmodifiableList(monitoredResources_); } makeExtensionsImmutable(); } } public static final com.google.proto4pingcap.Descriptors.Descriptor getDescriptor() { return com.google.api.ServiceProto.internal_static_google_api_Service_descriptor; } protected com.google.proto4pingcap.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.ServiceProto.internal_static_google_api_Service_fieldAccessorTable .ensureFieldAccessorsInitialized( 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.proto4pingcap.UInt32Value configVersion_; /** *
   * The version of the service configuration. The config version may
   * influence interpretation of the configuration, for example, to
   * determine defaults. This is documented together with applicable
   * options. The current default for the config version itself is `3`.
   * 
* * .google.protobuf.UInt32Value config_version = 20; */ public boolean hasConfigVersion() { return configVersion_ != null; } /** *
   * The version of the service configuration. The config version may
   * influence interpretation of the configuration, for example, to
   * determine defaults. This is documented together with applicable
   * options. The current default for the config version itself is `3`.
   * 
* * .google.protobuf.UInt32Value config_version = 20; */ public com.google.proto4pingcap.UInt32Value getConfigVersion() { return configVersion_ == null ? com.google.proto4pingcap.UInt32Value.getDefaultInstance() : configVersion_; } /** *
   * The version of the service configuration. The config version may
   * influence interpretation of the configuration, for example, to
   * determine defaults. This is documented together with applicable
   * options. The current default for the config version itself is `3`.
   * 
* * .google.protobuf.UInt32Value config_version = 20; */ public com.google.proto4pingcap.UInt32ValueOrBuilder getConfigVersionOrBuilder() { return getConfigVersion(); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
   * The DNS address at which this service is available,
   * e.g. `calendar.googleapis.com`.
   * 
* * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.proto4pingcap.ByteString bs = (com.google.proto4pingcap.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
   * The DNS address at which this service is available,
   * e.g. `calendar.googleapis.com`.
   * 
* * string name = 1; */ public com.google.proto4pingcap.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.proto4pingcap.ByteString b = com.google.proto4pingcap.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.proto4pingcap.ByteString) ref; } } public static final int ID_FIELD_NUMBER = 33; 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
   * generate one instead.
   * 
* * string id = 33; */ public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.proto4pingcap.ByteString bs = (com.google.proto4pingcap.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
   * generate one instead.
   * 
* * string id = 33; */ public com.google.proto4pingcap.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.proto4pingcap.ByteString b = com.google.proto4pingcap.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.proto4pingcap.ByteString) ref; } } public static final int TITLE_FIELD_NUMBER = 2; private volatile java.lang.Object title_; /** *
   * The product title associated with this service.
   * 
* * string title = 2; */ public java.lang.String getTitle() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.proto4pingcap.ByteString bs = (com.google.proto4pingcap.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } } /** *
   * The product title associated with this service.
   * 
* * string title = 2; */ public com.google.proto4pingcap.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { com.google.proto4pingcap.ByteString b = com.google.proto4pingcap.ByteString.copyFromUtf8( (java.lang.String) ref); title_ = b; return b; } else { return (com.google.proto4pingcap.ByteString) ref; } } public static final int PRODUCER_PROJECT_ID_FIELD_NUMBER = 22; private volatile java.lang.Object producerProjectId_; /** *
   * The id of the Google developer project that owns the service.
   * Members of this project can manage the service configuration,
   * manage consumption of the service, etc.
   * 
* * string producer_project_id = 22; */ public java.lang.String getProducerProjectId() { java.lang.Object ref = producerProjectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.proto4pingcap.ByteString bs = (com.google.proto4pingcap.ByteString) ref; java.lang.String s = bs.toStringUtf8(); producerProjectId_ = s; return s; } } /** *
   * The id of the Google developer project that owns the service.
   * Members of this project can manage the service configuration,
   * manage consumption of the service, etc.
   * 
* * string producer_project_id = 22; */ public com.google.proto4pingcap.ByteString getProducerProjectIdBytes() { java.lang.Object ref = producerProjectId_; if (ref instanceof java.lang.String) { com.google.proto4pingcap.ByteString b = com.google.proto4pingcap.ByteString.copyFromUtf8( (java.lang.String) ref); producerProjectId_ = b; return b; } else { return (com.google.proto4pingcap.ByteString) ref; } } 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
   * author, as the remaining fields will be derived from the IDL during the
   * normalization process. It is an error to specify an API interface here
   * which cannot be resolved against the associated IDL files.
   * 
* * repeated .google.protobuf.Api apis = 3; */ 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
   * author, as the remaining fields will be derived from the IDL during the
   * normalization process. It is an error to specify an API interface here
   * which cannot be resolved against the associated IDL files.
   * 
* * repeated .google.protobuf.Api apis = 3; */ 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
   * author, as the remaining fields will be derived from the IDL during the
   * normalization process. It is an error to specify an API interface here
   * which cannot be resolved against the associated IDL files.
   * 
* * repeated .google.protobuf.Api apis = 3; */ 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
   * author, as the remaining fields will be derived from the IDL during the
   * normalization process. It is an error to specify an API interface here
   * which cannot be resolved against the associated IDL files.
   * 
* * repeated .google.protobuf.Api apis = 3; */ public com.google.proto4pingcap.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
   * author, as the remaining fields will be derived from the IDL during the
   * normalization process. It is an error to specify an API interface here
   * which cannot be resolved against the associated IDL files.
   * 
* * repeated .google.protobuf.Api apis = 3; */ public com.google.proto4pingcap.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
   * automatically included.  Messages which are not referenced but
   * shall be included, such as types used by the `google.protobuf.Any` type,
   * should be listed here by name. Example:
   *     types:
   *     - name: google.protobuf.Int32
   * 
* * repeated .google.protobuf.Type types = 4; */ 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
   * automatically included.  Messages which are not referenced but
   * shall be included, such as types used by the `google.protobuf.Any` type,
   * should be listed here by name. Example:
   *     types:
   *     - name: google.protobuf.Int32
   * 
* * repeated .google.protobuf.Type types = 4; */ 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
   * automatically included.  Messages which are not referenced but
   * shall be included, such as types used by the `google.protobuf.Any` type,
   * should be listed here by name. Example:
   *     types:
   *     - name: google.protobuf.Int32
   * 
* * repeated .google.protobuf.Type types = 4; */ 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
   * automatically included.  Messages which are not referenced but
   * shall be included, such as types used by the `google.protobuf.Any` type,
   * should be listed here by name. Example:
   *     types:
   *     - name: google.protobuf.Int32
   * 
* * repeated .google.protobuf.Type types = 4; */ public com.google.proto4pingcap.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
   * automatically included.  Messages which are not referenced but
   * shall be included, such as types used by the `google.protobuf.Any` type,
   * should be listed here by name. Example:
   *     types:
   *     - name: google.protobuf.Int32
   * 
* * repeated .google.protobuf.Type types = 4; */ public com.google.proto4pingcap.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
   * included.  Enums which are not referenced but shall be included
   * should be listed here by name. Example:
   *     enums:
   *     - name: google.someapi.v1.SomeEnum
   * 
* * repeated .google.protobuf.Enum enums = 5; */ 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
   * included.  Enums which are not referenced but shall be included
   * should be listed here by name. Example:
   *     enums:
   *     - name: google.someapi.v1.SomeEnum
   * 
* * repeated .google.protobuf.Enum enums = 5; */ 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
   * included.  Enums which are not referenced but shall be included
   * should be listed here by name. Example:
   *     enums:
   *     - name: google.someapi.v1.SomeEnum
   * 
* * repeated .google.protobuf.Enum enums = 5; */ 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
   * included.  Enums which are not referenced but shall be included
   * should be listed here by name. Example:
   *     enums:
   *     - name: google.someapi.v1.SomeEnum
   * 
* * repeated .google.protobuf.Enum enums = 5; */ public com.google.proto4pingcap.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
   * included.  Enums which are not referenced but shall be included
   * should be listed here by name. Example:
   *     enums:
   *     - name: google.someapi.v1.SomeEnum
   * 
* * repeated .google.protobuf.Enum enums = 5; */ public com.google.proto4pingcap.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; */ public boolean hasDocumentation() { return documentation_ != null; } /** *
   * Additional API documentation.
   * 
* * .google.api.Documentation documentation = 6; */ public com.google.api.Documentation getDocumentation() { return documentation_ == null ? com.google.api.Documentation.getDefaultInstance() : documentation_; } /** *
   * Additional API documentation.
   * 
* * .google.api.Documentation documentation = 6; */ public com.google.api.DocumentationOrBuilder getDocumentationOrBuilder() { return getDocumentation(); } public static final int BACKEND_FIELD_NUMBER = 8; private com.google.api.Backend backend_; /** *
   * API backend configuration.
   * 
* * .google.api.Backend backend = 8; */ public boolean hasBackend() { return backend_ != null; } /** *
   * API backend configuration.
   * 
* * .google.api.Backend backend = 8; */ public com.google.api.Backend getBackend() { return backend_ == null ? com.google.api.Backend.getDefaultInstance() : backend_; } /** *
   * API backend configuration.
   * 
* * .google.api.Backend backend = 8; */ public com.google.api.BackendOrBuilder getBackendOrBuilder() { return getBackend(); } public static final int HTTP_FIELD_NUMBER = 9; private com.google.api.Http http_; /** *
   * HTTP configuration.
   * 
* * .google.api.Http http = 9; */ public boolean hasHttp() { return http_ != null; } /** *
   * HTTP configuration.
   * 
* * .google.api.Http http = 9; */ public com.google.api.Http getHttp() { return http_ == null ? com.google.api.Http.getDefaultInstance() : http_; } /** *
   * HTTP configuration.
   * 
* * .google.api.Http http = 9; */ public com.google.api.HttpOrBuilder getHttpOrBuilder() { return getHttp(); } public static final int QUOTA_FIELD_NUMBER = 10; private com.google.api.Quota quota_; /** *
   * Quota configuration.
   * 
* * .google.api.Quota quota = 10; */ public boolean hasQuota() { return quota_ != null; } /** *
   * Quota configuration.
   * 
* * .google.api.Quota quota = 10; */ public com.google.api.Quota getQuota() { return quota_ == null ? com.google.api.Quota.getDefaultInstance() : quota_; } /** *
   * Quota configuration.
   * 
* * .google.api.Quota quota = 10; */ public com.google.api.QuotaOrBuilder getQuotaOrBuilder() { return getQuota(); } public static final int AUTHENTICATION_FIELD_NUMBER = 11; private com.google.api.Authentication authentication_; /** *
   * Auth configuration.
   * 
* * .google.api.Authentication authentication = 11; */ public boolean hasAuthentication() { return authentication_ != null; } /** *
   * Auth configuration.
   * 
* * .google.api.Authentication authentication = 11; */ public com.google.api.Authentication getAuthentication() { return authentication_ == null ? com.google.api.Authentication.getDefaultInstance() : authentication_; } /** *
   * Auth configuration.
   * 
* * .google.api.Authentication authentication = 11; */ public com.google.api.AuthenticationOrBuilder getAuthenticationOrBuilder() { return getAuthentication(); } public static final int CONTEXT_FIELD_NUMBER = 12; private com.google.api.Context context_; /** *
   * Context configuration.
   * 
* * .google.api.Context context = 12; */ public boolean hasContext() { return context_ != null; } /** *
   * Context configuration.
   * 
* * .google.api.Context context = 12; */ public com.google.api.Context getContext() { return context_ == null ? com.google.api.Context.getDefaultInstance() : context_; } /** *
   * Context configuration.
   * 
* * .google.api.Context context = 12; */ public com.google.api.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int USAGE_FIELD_NUMBER = 15; private com.google.api.Usage usage_; /** *
   * Configuration controlling usage of this service.
   * 
* * .google.api.Usage usage = 15; */ public boolean hasUsage() { return usage_ != null; } /** *
   * Configuration controlling usage of this service.
   * 
* * .google.api.Usage usage = 15; */ public com.google.api.Usage getUsage() { return usage_ == null ? com.google.api.Usage.getDefaultInstance() : usage_; } /** *
   * Configuration controlling usage of this service.
   * 
* * .google.api.Usage usage = 15; */ public com.google.api.UsageOrBuilder getUsageOrBuilder() { return getUsage(); } 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
   * defined APIs.
   * 
* * repeated .google.api.Endpoint endpoints = 18; */ 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
   * defined APIs.
   * 
* * repeated .google.api.Endpoint endpoints = 18; */ 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
   * defined APIs.
   * 
* * repeated .google.api.Endpoint endpoints = 18; */ 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
   * defined APIs.
   * 
* * repeated .google.api.Endpoint endpoints = 18; */ 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
   * defined APIs.
   * 
* * repeated .google.api.Endpoint endpoints = 18; */ public com.google.api.EndpointOrBuilder getEndpointsOrBuilder( int index) { return endpoints_.get(index); } public static final int CONTROL_FIELD_NUMBER = 21; private com.google.api.Control control_; /** *
   * Configuration for the service control plane.
   * 
* * .google.api.Control control = 21; */ public boolean hasControl() { return control_ != null; } /** *
   * Configuration for the service control plane.
   * 
* * .google.api.Control control = 21; */ public com.google.api.Control getControl() { return control_ == null ? com.google.api.Control.getDefaultInstance() : control_; } /** *
   * Configuration for the service control plane.
   * 
* * .google.api.Control control = 21; */ public com.google.api.ControlOrBuilder getControlOrBuilder() { return getControl(); } public static final int LOGS_FIELD_NUMBER = 23; private java.util.List logs_; /** *
   * Defines the logs used by this service.
   * 
* * repeated .google.api.LogDescriptor logs = 23; */ 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() { return logs_; } /** *
   * Defines the logs used by this service.
   * 
* * repeated .google.api.LogDescriptor logs = 23; */ public int getLogsCount() { return logs_.size(); } /** *
   * Defines the logs used by this service.
   * 
* * repeated .google.api.LogDescriptor logs = 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) { return logs_.get(index); } public static final int METRICS_FIELD_NUMBER = 24; private java.util.List metrics_; /** *
   * Defines the metrics used by this service.
   * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ public java.util.List getMetricsList() { return metrics_; } /** *
   * Defines the metrics used by this service.
   * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ public java.util.List getMetricsOrBuilderList() { return metrics_; } /** *
   * Defines the metrics used by this service.
   * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ public int getMetricsCount() { return metrics_.size(); } /** *
   * Defines the metrics used by this service.
   * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ 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) { 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.
   * 
* * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; */ public java.util.List getMonitoredResourcesList() { 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.
   * 
* * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; */ 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.
   * 
* * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; */ 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.
   * 
* * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; */ public com.google.api.MonitoredResourceDescriptor getMonitoredResources(int index) { 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.
   * 
* * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; */ public com.google.api.MonitoredResourceDescriptorOrBuilder getMonitoredResourcesOrBuilder( int index) { return monitoredResources_.get(index); } public static final int LOGGING_FIELD_NUMBER = 27; private com.google.api.Logging logging_; /** *
   * Logging configuration.
   * 
* * .google.api.Logging logging = 27; */ public boolean hasLogging() { return logging_ != null; } /** *
   * Logging configuration.
   * 
* * .google.api.Logging logging = 27; */ public com.google.api.Logging getLogging() { return logging_ == null ? com.google.api.Logging.getDefaultInstance() : logging_; } /** *
   * Logging configuration.
   * 
* * .google.api.Logging logging = 27; */ public com.google.api.LoggingOrBuilder getLoggingOrBuilder() { return getLogging(); } public static final int MONITORING_FIELD_NUMBER = 28; private com.google.api.Monitoring monitoring_; /** *
   * Monitoring configuration.
   * 
* * .google.api.Monitoring monitoring = 28; */ public boolean hasMonitoring() { return monitoring_ != null; } /** *
   * Monitoring configuration.
   * 
* * .google.api.Monitoring monitoring = 28; */ public com.google.api.Monitoring getMonitoring() { return monitoring_ == null ? com.google.api.Monitoring.getDefaultInstance() : monitoring_; } /** *
   * Monitoring configuration.
   * 
* * .google.api.Monitoring monitoring = 28; */ public com.google.api.MonitoringOrBuilder getMonitoringOrBuilder() { return getMonitoring(); } public static final int SYSTEM_PARAMETERS_FIELD_NUMBER = 29; private com.google.api.SystemParameters systemParameters_; /** *
   * System parameter configuration.
   * 
* * .google.api.SystemParameters system_parameters = 29; */ public boolean hasSystemParameters() { return systemParameters_ != null; } /** *
   * System parameter configuration.
   * 
* * .google.api.SystemParameters system_parameters = 29; */ public com.google.api.SystemParameters getSystemParameters() { return systemParameters_ == null ? com.google.api.SystemParameters.getDefaultInstance() : systemParameters_; } /** *
   * System parameter configuration.
   * 
* * .google.api.SystemParameters system_parameters = 29; */ public com.google.api.SystemParametersOrBuilder getSystemParametersOrBuilder() { return getSystemParameters(); } 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; */ public boolean hasSourceInfo() { return sourceInfo_ != null; } /** *
   * Output only. The source information for this configuration if available.
   * 
* * .google.api.SourceInfo source_info = 37; */ 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.
   * 
* * .google.api.SourceInfo source_info = 37; */ public com.google.api.SourceInfoOrBuilder getSourceInfoOrBuilder() { return getSourceInfo(); } public static final int EXPERIMENTAL_FIELD_NUMBER = 101; private com.google.api.Experimental experimental_; /** *
   * Experimental configuration.
   * 
* * .google.api.Experimental experimental = 101; */ public boolean hasExperimental() { return experimental_ != null; } /** *
   * Experimental configuration.
   * 
* * .google.api.Experimental experimental = 101; */ public com.google.api.Experimental getExperimental() { return experimental_ == null ? com.google.api.Experimental.getDefaultInstance() : experimental_; } /** *
   * Experimental configuration.
   * 
* * .google.api.Experimental experimental = 101; */ public com.google.api.ExperimentalOrBuilder getExperimentalOrBuilder() { return getExperimental(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.proto4pingcap.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.proto4pingcap.GeneratedMessageV3.writeString(output, 1, name_); } if (!getTitleBytes().isEmpty()) { com.google.proto4pingcap.GeneratedMessageV3.writeString(output, 2, title_); } for (int i = 0; i < apis_.size(); i++) { output.writeMessage(3, apis_.get(i)); } for (int i = 0; i < types_.size(); i++) { output.writeMessage(4, types_.get(i)); } for (int i = 0; i < enums_.size(); i++) { output.writeMessage(5, enums_.get(i)); } if (documentation_ != null) { output.writeMessage(6, getDocumentation()); } if (backend_ != null) { output.writeMessage(8, getBackend()); } if (http_ != null) { output.writeMessage(9, getHttp()); } if (quota_ != null) { output.writeMessage(10, getQuota()); } if (authentication_ != null) { output.writeMessage(11, getAuthentication()); } if (context_ != null) { output.writeMessage(12, getContext()); } if (usage_ != null) { output.writeMessage(15, getUsage()); } for (int i = 0; i < endpoints_.size(); i++) { output.writeMessage(18, endpoints_.get(i)); } if (configVersion_ != null) { output.writeMessage(20, getConfigVersion()); } if (control_ != null) { output.writeMessage(21, getControl()); } if (!getProducerProjectIdBytes().isEmpty()) { com.google.proto4pingcap.GeneratedMessageV3.writeString(output, 22, producerProjectId_); } for (int i = 0; i < logs_.size(); i++) { output.writeMessage(23, logs_.get(i)); } for (int i = 0; i < metrics_.size(); i++) { output.writeMessage(24, metrics_.get(i)); } for (int i = 0; i < monitoredResources_.size(); i++) { output.writeMessage(25, monitoredResources_.get(i)); } if (logging_ != null) { output.writeMessage(27, getLogging()); } if (monitoring_ != null) { output.writeMessage(28, getMonitoring()); } if (systemParameters_ != null) { output.writeMessage(29, getSystemParameters()); } if (!getIdBytes().isEmpty()) { com.google.proto4pingcap.GeneratedMessageV3.writeString(output, 33, id_); } if (sourceInfo_ != null) { output.writeMessage(37, getSourceInfo()); } if (experimental_ != null) { output.writeMessage(101, getExperimental()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.proto4pingcap.GeneratedMessageV3.computeStringSize(1, name_); } if (!getTitleBytes().isEmpty()) { size += com.google.proto4pingcap.GeneratedMessageV3.computeStringSize(2, title_); } for (int i = 0; i < apis_.size(); i++) { size += com.google.proto4pingcap.CodedOutputStream .computeMessageSize(3, apis_.get(i)); } for (int i = 0; i < types_.size(); i++) { size += com.google.proto4pingcap.CodedOutputStream .computeMessageSize(4, types_.get(i)); } for (int i = 0; i < enums_.size(); i++) { size += com.google.proto4pingcap.CodedOutputStream .computeMessageSize(5, enums_.get(i)); } if (documentation_ != null) { size += com.google.proto4pingcap.CodedOutputStream .computeMessageSize(6, getDocumentation()); } if (backend_ != null) { size += com.google.proto4pingcap.CodedOutputStream .computeMessageSize(8, getBackend()); } if (http_ != null) { size += com.google.proto4pingcap.CodedOutputStream .computeMessageSize(9, getHttp()); } if (quota_ != null) { size += com.google.proto4pingcap.CodedOutputStream .computeMessageSize(10, getQuota()); } if (authentication_ != null) { size += com.google.proto4pingcap.CodedOutputStream .computeMessageSize(11, getAuthentication()); } if (context_ != null) { size += com.google.proto4pingcap.CodedOutputStream .computeMessageSize(12, getContext()); } if (usage_ != null) { size += com.google.proto4pingcap.CodedOutputStream .computeMessageSize(15, getUsage()); } for (int i = 0; i < endpoints_.size(); i++) { size += com.google.proto4pingcap.CodedOutputStream .computeMessageSize(18, endpoints_.get(i)); } if (configVersion_ != null) { size += com.google.proto4pingcap.CodedOutputStream .computeMessageSize(20, getConfigVersion()); } if (control_ != null) { size += com.google.proto4pingcap.CodedOutputStream .computeMessageSize(21, getControl()); } if (!getProducerProjectIdBytes().isEmpty()) { size += com.google.proto4pingcap.GeneratedMessageV3.computeStringSize(22, producerProjectId_); } for (int i = 0; i < logs_.size(); i++) { size += com.google.proto4pingcap.CodedOutputStream .computeMessageSize(23, logs_.get(i)); } for (int i = 0; i < metrics_.size(); i++) { size += com.google.proto4pingcap.CodedOutputStream .computeMessageSize(24, metrics_.get(i)); } for (int i = 0; i < monitoredResources_.size(); i++) { size += com.google.proto4pingcap.CodedOutputStream .computeMessageSize(25, monitoredResources_.get(i)); } if (logging_ != null) { size += com.google.proto4pingcap.CodedOutputStream .computeMessageSize(27, getLogging()); } if (monitoring_ != null) { size += com.google.proto4pingcap.CodedOutputStream .computeMessageSize(28, getMonitoring()); } if (systemParameters_ != null) { size += com.google.proto4pingcap.CodedOutputStream .computeMessageSize(29, getSystemParameters()); } if (!getIdBytes().isEmpty()) { size += com.google.proto4pingcap.GeneratedMessageV3.computeStringSize(33, id_); } if (sourceInfo_ != null) { size += com.google.proto4pingcap.CodedOutputStream .computeMessageSize(37, getSourceInfo()); } if (experimental_ != null) { size += com.google.proto4pingcap.CodedOutputStream .computeMessageSize(101, getExperimental()); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.api.Service)) { return super.equals(obj); } com.google.api.Service other = (com.google.api.Service) obj; boolean result = true; result = result && (hasConfigVersion() == other.hasConfigVersion()); if (hasConfigVersion()) { result = result && getConfigVersion() .equals(other.getConfigVersion()); } result = result && getName() .equals(other.getName()); result = result && getId() .equals(other.getId()); result = result && getTitle() .equals(other.getTitle()); result = result && getProducerProjectId() .equals(other.getProducerProjectId()); result = result && getApisList() .equals(other.getApisList()); result = result && getTypesList() .equals(other.getTypesList()); result = result && getEnumsList() .equals(other.getEnumsList()); result = result && (hasDocumentation() == other.hasDocumentation()); if (hasDocumentation()) { result = result && getDocumentation() .equals(other.getDocumentation()); } result = result && (hasBackend() == other.hasBackend()); if (hasBackend()) { result = result && getBackend() .equals(other.getBackend()); } result = result && (hasHttp() == other.hasHttp()); if (hasHttp()) { result = result && getHttp() .equals(other.getHttp()); } result = result && (hasQuota() == other.hasQuota()); if (hasQuota()) { result = result && getQuota() .equals(other.getQuota()); } result = result && (hasAuthentication() == other.hasAuthentication()); if (hasAuthentication()) { result = result && getAuthentication() .equals(other.getAuthentication()); } result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && (hasUsage() == other.hasUsage()); if (hasUsage()) { result = result && getUsage() .equals(other.getUsage()); } result = result && getEndpointsList() .equals(other.getEndpointsList()); result = result && (hasControl() == other.hasControl()); if (hasControl()) { result = result && getControl() .equals(other.getControl()); } result = result && getLogsList() .equals(other.getLogsList()); result = result && getMetricsList() .equals(other.getMetricsList()); result = result && getMonitoredResourcesList() .equals(other.getMonitoredResourcesList()); result = result && (hasLogging() == other.hasLogging()); if (hasLogging()) { result = result && getLogging() .equals(other.getLogging()); } result = result && (hasMonitoring() == other.hasMonitoring()); if (hasMonitoring()) { result = result && getMonitoring() .equals(other.getMonitoring()); } result = result && (hasSystemParameters() == other.hasSystemParameters()); if (hasSystemParameters()) { result = result && getSystemParameters() .equals(other.getSystemParameters()); } result = result && (hasSourceInfo() == other.hasSourceInfo()); if (hasSourceInfo()) { result = result && getSourceInfo() .equals(other.getSourceInfo()); } result = result && (hasExperimental() == other.hasExperimental()); if (hasExperimental()) { result = result && getExperimental() .equals(other.getExperimental()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasConfigVersion()) { hash = (37 * hash) + CONFIG_VERSION_FIELD_NUMBER; hash = (53 * hash) + getConfigVersion().hashCode(); } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + TITLE_FIELD_NUMBER; hash = (53 * hash) + getTitle().hashCode(); hash = (37 * hash) + PRODUCER_PROJECT_ID_FIELD_NUMBER; hash = (53 * hash) + getProducerProjectId().hashCode(); if (getApisCount() > 0) { hash = (37 * hash) + APIS_FIELD_NUMBER; hash = (53 * hash) + getApisList().hashCode(); } if (getTypesCount() > 0) { hash = (37 * hash) + TYPES_FIELD_NUMBER; hash = (53 * hash) + getTypesList().hashCode(); } if (getEnumsCount() > 0) { hash = (37 * hash) + ENUMS_FIELD_NUMBER; hash = (53 * hash) + getEnumsList().hashCode(); } if (hasDocumentation()) { hash = (37 * hash) + DOCUMENTATION_FIELD_NUMBER; hash = (53 * hash) + getDocumentation().hashCode(); } if (hasBackend()) { hash = (37 * hash) + BACKEND_FIELD_NUMBER; hash = (53 * hash) + getBackend().hashCode(); } if (hasHttp()) { hash = (37 * hash) + HTTP_FIELD_NUMBER; hash = (53 * hash) + getHttp().hashCode(); } if (hasQuota()) { hash = (37 * hash) + QUOTA_FIELD_NUMBER; hash = (53 * hash) + getQuota().hashCode(); } if (hasAuthentication()) { hash = (37 * hash) + AUTHENTICATION_FIELD_NUMBER; hash = (53 * hash) + getAuthentication().hashCode(); } if (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } if (hasUsage()) { hash = (37 * hash) + USAGE_FIELD_NUMBER; hash = (53 * hash) + getUsage().hashCode(); } if (getEndpointsCount() > 0) { hash = (37 * hash) + ENDPOINTS_FIELD_NUMBER; hash = (53 * hash) + getEndpointsList().hashCode(); } if (hasControl()) { hash = (37 * hash) + CONTROL_FIELD_NUMBER; hash = (53 * hash) + getControl().hashCode(); } if (getLogsCount() > 0) { hash = (37 * hash) + LOGS_FIELD_NUMBER; hash = (53 * hash) + getLogsList().hashCode(); } if (getMetricsCount() > 0) { hash = (37 * hash) + METRICS_FIELD_NUMBER; hash = (53 * hash) + getMetricsList().hashCode(); } if (getMonitoredResourcesCount() > 0) { hash = (37 * hash) + MONITORED_RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getMonitoredResourcesList().hashCode(); } if (hasLogging()) { hash = (37 * hash) + LOGGING_FIELD_NUMBER; hash = (53 * hash) + getLogging().hashCode(); } if (hasMonitoring()) { hash = (37 * hash) + MONITORING_FIELD_NUMBER; hash = (53 * hash) + getMonitoring().hashCode(); } if (hasSystemParameters()) { hash = (37 * hash) + SYSTEM_PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getSystemParameters().hashCode(); } if (hasSourceInfo()) { hash = (37 * hash) + SOURCE_INFO_FIELD_NUMBER; hash = (53 * hash) + getSourceInfo().hashCode(); } if (hasExperimental()) { hash = (37 * hash) + EXPERIMENTAL_FIELD_NUMBER; hash = (53 * hash) + getExperimental().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.api.Service parseFrom( com.google.proto4pingcap.ByteString data) throws com.google.proto4pingcap.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.Service parseFrom( com.google.proto4pingcap.ByteString data, com.google.proto4pingcap.ExtensionRegistryLite extensionRegistry) throws com.google.proto4pingcap.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.Service parseFrom(byte[] data) throws com.google.proto4pingcap.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.Service parseFrom( byte[] data, com.google.proto4pingcap.ExtensionRegistryLite extensionRegistry) throws com.google.proto4pingcap.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.Service parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.proto4pingcap.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.api.Service parseFrom( java.io.InputStream input, com.google.proto4pingcap.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.proto4pingcap.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.Service parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.proto4pingcap.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.api.Service parseDelimitedFrom( java.io.InputStream input, com.google.proto4pingcap.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.proto4pingcap.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.Service parseFrom( com.google.proto4pingcap.CodedInputStream input) throws java.io.IOException { return com.google.proto4pingcap.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.api.Service parseFrom( com.google.proto4pingcap.CodedInputStream input, com.google.proto4pingcap.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.proto4pingcap.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.api.Service prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.proto4pingcap.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
   * title, and delegates other aspects to sub-sections. Each sub-section is
   * either a proto message or a repeated proto message that configures a
   * specific aspect, such as auth. See each proto message definition for details.
   * Example:
   *     type: google.api.Service
   *     config_version: 3
   *     name: calendar.googleapis.com
   *     title: Google Calendar API
   *     apis:
   *     - name: google.calendar.v3.Calendar
   *     authentication:
   *       providers:
   *       - id: google_calendar_auth
   *         jwks_uri: https://www.googleapis.com/oauth2/v1/certs
   *         issuer: https://securetoken.google.com
   *       rules:
   *       - selector: "*"
   *         requirements:
   *           provider_id: google_calendar_auth
   * 
* * Protobuf type {@code google.api.Service} */ public static final class Builder extends com.google.proto4pingcap.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.api.Service) com.google.api.ServiceOrBuilder { public static final com.google.proto4pingcap.Descriptors.Descriptor getDescriptor() { return com.google.api.ServiceProto.internal_static_google_api_Service_descriptor; } protected com.google.proto4pingcap.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.ServiceProto.internal_static_google_api_Service_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.api.Service.class, com.google.api.Service.Builder.class); } // Construct using com.google.api.Service.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.proto4pingcap.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.proto4pingcap.GeneratedMessageV3 .alwaysUseFieldBuilders) { getApisFieldBuilder(); getTypesFieldBuilder(); getEnumsFieldBuilder(); getEndpointsFieldBuilder(); getLogsFieldBuilder(); getMetricsFieldBuilder(); getMonitoredResourcesFieldBuilder(); } } public Builder clear() { super.clear(); if (configVersionBuilder_ == null) { configVersion_ = null; } else { configVersion_ = null; configVersionBuilder_ = null; } name_ = ""; id_ = ""; title_ = ""; producerProjectId_ = ""; if (apisBuilder_ == null) { apis_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { apisBuilder_.clear(); } if (typesBuilder_ == null) { types_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { typesBuilder_.clear(); } if (enumsBuilder_ == null) { enums_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); } else { enumsBuilder_.clear(); } if (documentationBuilder_ == null) { documentation_ = null; } else { documentation_ = null; documentationBuilder_ = null; } if (backendBuilder_ == null) { backend_ = null; } else { backend_ = null; backendBuilder_ = null; } if (httpBuilder_ == null) { http_ = null; } else { http_ = null; httpBuilder_ = null; } if (quotaBuilder_ == null) { quota_ = null; } else { quota_ = null; quotaBuilder_ = null; } if (authenticationBuilder_ == null) { authentication_ = null; } else { authentication_ = null; authenticationBuilder_ = null; } if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } if (usageBuilder_ == null) { usage_ = null; } else { usage_ = null; usageBuilder_ = null; } if (endpointsBuilder_ == null) { endpoints_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00008000); } else { endpointsBuilder_.clear(); } if (controlBuilder_ == null) { control_ = null; } else { control_ = null; controlBuilder_ = null; } if (logsBuilder_ == null) { logs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00020000); } else { logsBuilder_.clear(); } if (metricsBuilder_ == null) { metrics_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00040000); } else { metricsBuilder_.clear(); } if (monitoredResourcesBuilder_ == null) { monitoredResources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00080000); } else { monitoredResourcesBuilder_.clear(); } if (loggingBuilder_ == null) { logging_ = null; } else { logging_ = null; loggingBuilder_ = null; } if (monitoringBuilder_ == null) { monitoring_ = null; } else { monitoring_ = null; monitoringBuilder_ = null; } if (systemParametersBuilder_ == null) { systemParameters_ = null; } else { systemParameters_ = null; systemParametersBuilder_ = null; } if (sourceInfoBuilder_ == null) { sourceInfo_ = null; } else { sourceInfo_ = null; sourceInfoBuilder_ = null; } if (experimentalBuilder_ == null) { experimental_ = null; } else { experimental_ = null; experimentalBuilder_ = null; } return this; } public com.google.proto4pingcap.Descriptors.Descriptor getDescriptorForType() { return com.google.api.ServiceProto.internal_static_google_api_Service_descriptor; } public com.google.api.Service getDefaultInstanceForType() { return com.google.api.Service.getDefaultInstance(); } public com.google.api.Service build() { com.google.api.Service result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } 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 { result.configVersion_ = configVersionBuilder_.build(); } result.name_ = name_; result.id_ = id_; result.title_ = title_; result.producerProjectId_ = producerProjectId_; if (apisBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { apis_ = java.util.Collections.unmodifiableList(apis_); bitField0_ = (bitField0_ & ~0x00000020); } result.apis_ = apis_; } else { result.apis_ = apisBuilder_.build(); } if (typesBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { types_ = java.util.Collections.unmodifiableList(types_); bitField0_ = (bitField0_ & ~0x00000040); } result.types_ = types_; } else { result.types_ = typesBuilder_.build(); } if (enumsBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080)) { enums_ = java.util.Collections.unmodifiableList(enums_); bitField0_ = (bitField0_ & ~0x00000080); } result.enums_ = enums_; } else { result.enums_ = enumsBuilder_.build(); } if (documentationBuilder_ == null) { result.documentation_ = documentation_; } else { result.documentation_ = documentationBuilder_.build(); } if (backendBuilder_ == null) { result.backend_ = backend_; } else { result.backend_ = backendBuilder_.build(); } if (httpBuilder_ == null) { result.http_ = http_; } else { result.http_ = httpBuilder_.build(); } if (quotaBuilder_ == null) { result.quota_ = quota_; } else { result.quota_ = quotaBuilder_.build(); } if (authenticationBuilder_ == null) { result.authentication_ = authentication_; } else { result.authentication_ = authenticationBuilder_.build(); } if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } if (usageBuilder_ == null) { result.usage_ = usage_; } else { result.usage_ = usageBuilder_.build(); } if (endpointsBuilder_ == null) { if (((bitField0_ & 0x00008000) == 0x00008000)) { endpoints_ = java.util.Collections.unmodifiableList(endpoints_); bitField0_ = (bitField0_ & ~0x00008000); } result.endpoints_ = endpoints_; } else { result.endpoints_ = endpointsBuilder_.build(); } if (controlBuilder_ == null) { result.control_ = control_; } else { result.control_ = controlBuilder_.build(); } if (logsBuilder_ == null) { if (((bitField0_ & 0x00020000) == 0x00020000)) { logs_ = java.util.Collections.unmodifiableList(logs_); bitField0_ = (bitField0_ & ~0x00020000); } result.logs_ = logs_; } else { result.logs_ = logsBuilder_.build(); } if (metricsBuilder_ == null) { if (((bitField0_ & 0x00040000) == 0x00040000)) { metrics_ = java.util.Collections.unmodifiableList(metrics_); bitField0_ = (bitField0_ & ~0x00040000); } result.metrics_ = metrics_; } else { result.metrics_ = metricsBuilder_.build(); } if (monitoredResourcesBuilder_ == null) { if (((bitField0_ & 0x00080000) == 0x00080000)) { monitoredResources_ = java.util.Collections.unmodifiableList(monitoredResources_); bitField0_ = (bitField0_ & ~0x00080000); } result.monitoredResources_ = monitoredResources_; } else { result.monitoredResources_ = monitoredResourcesBuilder_.build(); } if (loggingBuilder_ == null) { result.logging_ = logging_; } else { result.logging_ = loggingBuilder_.build(); } if (monitoringBuilder_ == null) { result.monitoring_ = monitoring_; } else { result.monitoring_ = monitoringBuilder_.build(); } if (systemParametersBuilder_ == null) { result.systemParameters_ = systemParameters_; } else { result.systemParameters_ = systemParametersBuilder_.build(); } if (sourceInfoBuilder_ == null) { result.sourceInfo_ = sourceInfo_; } else { result.sourceInfo_ = sourceInfoBuilder_.build(); } if (experimentalBuilder_ == null) { result.experimental_ = experimental_; } else { result.experimental_ = experimentalBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.proto4pingcap.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.proto4pingcap.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.proto4pingcap.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.proto4pingcap.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.proto4pingcap.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.proto4pingcap.Message other) { if (other instanceof com.google.api.Service) { return mergeFrom((com.google.api.Service)other); } else { super.mergeFrom(other); 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()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getTitle().isEmpty()) { title_ = other.title_; onChanged(); } if (!other.getProducerProjectId().isEmpty()) { producerProjectId_ = other.producerProjectId_; onChanged(); } if (apisBuilder_ == null) { if (!other.apis_.isEmpty()) { if (apis_.isEmpty()) { apis_ = other.apis_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureApisIsMutable(); apis_.addAll(other.apis_); } onChanged(); } } else { if (!other.apis_.isEmpty()) { if (apisBuilder_.isEmpty()) { apisBuilder_.dispose(); apisBuilder_ = null; apis_ = other.apis_; bitField0_ = (bitField0_ & ~0x00000020); apisBuilder_ = com.google.proto4pingcap.GeneratedMessageV3.alwaysUseFieldBuilders ? getApisFieldBuilder() : null; } else { apisBuilder_.addAllMessages(other.apis_); } } } if (typesBuilder_ == null) { if (!other.types_.isEmpty()) { if (types_.isEmpty()) { types_ = other.types_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureTypesIsMutable(); types_.addAll(other.types_); } onChanged(); } } else { if (!other.types_.isEmpty()) { if (typesBuilder_.isEmpty()) { typesBuilder_.dispose(); typesBuilder_ = null; types_ = other.types_; bitField0_ = (bitField0_ & ~0x00000040); typesBuilder_ = com.google.proto4pingcap.GeneratedMessageV3.alwaysUseFieldBuilders ? getTypesFieldBuilder() : null; } else { typesBuilder_.addAllMessages(other.types_); } } } if (enumsBuilder_ == null) { if (!other.enums_.isEmpty()) { if (enums_.isEmpty()) { enums_ = other.enums_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureEnumsIsMutable(); enums_.addAll(other.enums_); } onChanged(); } } else { if (!other.enums_.isEmpty()) { if (enumsBuilder_.isEmpty()) { enumsBuilder_.dispose(); enumsBuilder_ = null; enums_ = other.enums_; bitField0_ = (bitField0_ & ~0x00000080); enumsBuilder_ = com.google.proto4pingcap.GeneratedMessageV3.alwaysUseFieldBuilders ? getEnumsFieldBuilder() : null; } else { enumsBuilder_.addAllMessages(other.enums_); } } } if (other.hasDocumentation()) { mergeDocumentation(other.getDocumentation()); } if (other.hasBackend()) { mergeBackend(other.getBackend()); } if (other.hasHttp()) { mergeHttp(other.getHttp()); } if (other.hasQuota()) { mergeQuota(other.getQuota()); } if (other.hasAuthentication()) { mergeAuthentication(other.getAuthentication()); } if (other.hasContext()) { mergeContext(other.getContext()); } if (other.hasUsage()) { mergeUsage(other.getUsage()); } if (endpointsBuilder_ == null) { if (!other.endpoints_.isEmpty()) { if (endpoints_.isEmpty()) { endpoints_ = other.endpoints_; bitField0_ = (bitField0_ & ~0x00008000); } else { ensureEndpointsIsMutable(); endpoints_.addAll(other.endpoints_); } onChanged(); } } else { if (!other.endpoints_.isEmpty()) { if (endpointsBuilder_.isEmpty()) { endpointsBuilder_.dispose(); endpointsBuilder_ = null; endpoints_ = other.endpoints_; bitField0_ = (bitField0_ & ~0x00008000); endpointsBuilder_ = com.google.proto4pingcap.GeneratedMessageV3.alwaysUseFieldBuilders ? getEndpointsFieldBuilder() : null; } else { endpointsBuilder_.addAllMessages(other.endpoints_); } } } if (other.hasControl()) { mergeControl(other.getControl()); } if (logsBuilder_ == null) { if (!other.logs_.isEmpty()) { if (logs_.isEmpty()) { logs_ = other.logs_; bitField0_ = (bitField0_ & ~0x00020000); } else { ensureLogsIsMutable(); logs_.addAll(other.logs_); } onChanged(); } } else { if (!other.logs_.isEmpty()) { if (logsBuilder_.isEmpty()) { logsBuilder_.dispose(); logsBuilder_ = null; logs_ = other.logs_; bitField0_ = (bitField0_ & ~0x00020000); logsBuilder_ = com.google.proto4pingcap.GeneratedMessageV3.alwaysUseFieldBuilders ? getLogsFieldBuilder() : null; } else { logsBuilder_.addAllMessages(other.logs_); } } } if (metricsBuilder_ == null) { if (!other.metrics_.isEmpty()) { if (metrics_.isEmpty()) { metrics_ = other.metrics_; bitField0_ = (bitField0_ & ~0x00040000); } else { ensureMetricsIsMutable(); metrics_.addAll(other.metrics_); } onChanged(); } } else { if (!other.metrics_.isEmpty()) { if (metricsBuilder_.isEmpty()) { metricsBuilder_.dispose(); metricsBuilder_ = null; metrics_ = other.metrics_; bitField0_ = (bitField0_ & ~0x00040000); metricsBuilder_ = com.google.proto4pingcap.GeneratedMessageV3.alwaysUseFieldBuilders ? getMetricsFieldBuilder() : null; } else { metricsBuilder_.addAllMessages(other.metrics_); } } } if (monitoredResourcesBuilder_ == null) { if (!other.monitoredResources_.isEmpty()) { if (monitoredResources_.isEmpty()) { monitoredResources_ = other.monitoredResources_; bitField0_ = (bitField0_ & ~0x00080000); } else { ensureMonitoredResourcesIsMutable(); monitoredResources_.addAll(other.monitoredResources_); } onChanged(); } } else { if (!other.monitoredResources_.isEmpty()) { if (monitoredResourcesBuilder_.isEmpty()) { monitoredResourcesBuilder_.dispose(); monitoredResourcesBuilder_ = null; monitoredResources_ = other.monitoredResources_; bitField0_ = (bitField0_ & ~0x00080000); monitoredResourcesBuilder_ = com.google.proto4pingcap.GeneratedMessageV3.alwaysUseFieldBuilders ? getMonitoredResourcesFieldBuilder() : null; } else { monitoredResourcesBuilder_.addAllMessages(other.monitoredResources_); } } } if (other.hasLogging()) { mergeLogging(other.getLogging()); } if (other.hasMonitoring()) { mergeMonitoring(other.getMonitoring()); } if (other.hasSystemParameters()) { mergeSystemParameters(other.getSystemParameters()); } if (other.hasSourceInfo()) { mergeSourceInfo(other.getSourceInfo()); } if (other.hasExperimental()) { mergeExperimental(other.getExperimental()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.proto4pingcap.CodedInputStream input, com.google.proto4pingcap.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.api.Service parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.proto4pingcap.InvalidProtocolBufferException e) { parsedMessage = (com.google.api.Service) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.proto4pingcap.UInt32Value configVersion_ = null; private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.proto4pingcap.UInt32Value, com.google.proto4pingcap.UInt32Value.Builder, com.google.proto4pingcap.UInt32ValueOrBuilder> configVersionBuilder_; /** *
     * The version of the service configuration. The config version may
     * influence interpretation of the configuration, for example, to
     * determine defaults. This is documented together with applicable
     * options. The current default for the config version itself is `3`.
     * 
* * .google.protobuf.UInt32Value config_version = 20; */ public boolean hasConfigVersion() { return configVersionBuilder_ != null || configVersion_ != null; } /** *
     * The version of the service configuration. The config version may
     * influence interpretation of the configuration, for example, to
     * determine defaults. This is documented together with applicable
     * options. The current default for the config version itself is `3`.
     * 
* * .google.protobuf.UInt32Value config_version = 20; */ public com.google.proto4pingcap.UInt32Value getConfigVersion() { if (configVersionBuilder_ == null) { return configVersion_ == null ? com.google.proto4pingcap.UInt32Value.getDefaultInstance() : configVersion_; } else { return configVersionBuilder_.getMessage(); } } /** *
     * The version of the service configuration. The config version may
     * influence interpretation of the configuration, for example, to
     * determine defaults. This is documented together with applicable
     * options. The current default for the config version itself is `3`.
     * 
* * .google.protobuf.UInt32Value config_version = 20; */ public Builder setConfigVersion(com.google.proto4pingcap.UInt32Value value) { if (configVersionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } configVersion_ = value; onChanged(); } else { configVersionBuilder_.setMessage(value); } return this; } /** *
     * The version of the service configuration. The config version may
     * influence interpretation of the configuration, for example, to
     * determine defaults. This is documented together with applicable
     * options. The current default for the config version itself is `3`.
     * 
* * .google.protobuf.UInt32Value config_version = 20; */ public Builder setConfigVersion( com.google.proto4pingcap.UInt32Value.Builder builderForValue) { if (configVersionBuilder_ == null) { configVersion_ = builderForValue.build(); onChanged(); } else { configVersionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The version of the service configuration. The config version may
     * influence interpretation of the configuration, for example, to
     * determine defaults. This is documented together with applicable
     * options. The current default for the config version itself is `3`.
     * 
* * .google.protobuf.UInt32Value config_version = 20; */ public Builder mergeConfigVersion(com.google.proto4pingcap.UInt32Value value) { if (configVersionBuilder_ == null) { if (configVersion_ != null) { configVersion_ = com.google.proto4pingcap.UInt32Value.newBuilder(configVersion_).mergeFrom(value).buildPartial(); } else { configVersion_ = value; } onChanged(); } else { configVersionBuilder_.mergeFrom(value); } return this; } /** *
     * The version of the service configuration. The config version may
     * influence interpretation of the configuration, for example, to
     * determine defaults. This is documented together with applicable
     * options. The current default for the config version itself is `3`.
     * 
* * .google.protobuf.UInt32Value config_version = 20; */ public Builder clearConfigVersion() { if (configVersionBuilder_ == null) { configVersion_ = null; onChanged(); } else { configVersion_ = null; configVersionBuilder_ = null; } return this; } /** *
     * The version of the service configuration. The config version may
     * influence interpretation of the configuration, for example, to
     * determine defaults. This is documented together with applicable
     * options. The current default for the config version itself is `3`.
     * 
* * .google.protobuf.UInt32Value config_version = 20; */ public com.google.proto4pingcap.UInt32Value.Builder getConfigVersionBuilder() { onChanged(); return getConfigVersionFieldBuilder().getBuilder(); } /** *
     * The version of the service configuration. The config version may
     * influence interpretation of the configuration, for example, to
     * determine defaults. This is documented together with applicable
     * options. The current default for the config version itself is `3`.
     * 
* * .google.protobuf.UInt32Value config_version = 20; */ public com.google.proto4pingcap.UInt32ValueOrBuilder getConfigVersionOrBuilder() { if (configVersionBuilder_ != null) { return configVersionBuilder_.getMessageOrBuilder(); } else { return configVersion_ == null ? com.google.proto4pingcap.UInt32Value.getDefaultInstance() : configVersion_; } } /** *
     * The version of the service configuration. The config version may
     * influence interpretation of the configuration, for example, to
     * determine defaults. This is documented together with applicable
     * options. The current default for the config version itself is `3`.
     * 
* * .google.protobuf.UInt32Value config_version = 20; */ private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.proto4pingcap.UInt32Value, com.google.proto4pingcap.UInt32Value.Builder, com.google.proto4pingcap.UInt32ValueOrBuilder> getConfigVersionFieldBuilder() { if (configVersionBuilder_ == null) { configVersionBuilder_ = new com.google.proto4pingcap.SingleFieldBuilderV3< com.google.proto4pingcap.UInt32Value, com.google.proto4pingcap.UInt32Value.Builder, com.google.proto4pingcap.UInt32ValueOrBuilder>( getConfigVersion(), getParentForChildren(), isClean()); configVersion_ = null; } return configVersionBuilder_; } private java.lang.Object name_ = ""; /** *
     * The DNS address at which this service is available,
     * e.g. `calendar.googleapis.com`.
     * 
* * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.proto4pingcap.ByteString bs = (com.google.proto4pingcap.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The DNS address at which this service is available,
     * e.g. `calendar.googleapis.com`.
     * 
* * string name = 1; */ public com.google.proto4pingcap.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.proto4pingcap.ByteString b = com.google.proto4pingcap.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.proto4pingcap.ByteString) ref; } } /** *
     * The DNS address at which this service is available,
     * e.g. `calendar.googleapis.com`.
     * 
* * string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
     * The DNS address at which this service is available,
     * e.g. `calendar.googleapis.com`.
     * 
* * string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * The DNS address at which this service is available,
     * e.g. `calendar.googleapis.com`.
     * 
* * string name = 1; */ public Builder setNameBytes( com.google.proto4pingcap.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } 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
     * generate one instead.
     * 
* * string id = 33; */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.proto4pingcap.ByteString bs = (com.google.proto4pingcap.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { 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
     * generate one instead.
     * 
* * string id = 33; */ public com.google.proto4pingcap.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.proto4pingcap.ByteString b = com.google.proto4pingcap.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.proto4pingcap.ByteString) 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
     * generate one instead.
     * 
* * string id = 33; */ public Builder setId( java.lang.String value) { if (value == null) { 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
     * generate one instead.
     * 
* * string id = 33; */ 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
     * generate one instead.
     * 
* * string id = 33; */ public Builder setIdBytes( com.google.proto4pingcap.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object title_ = ""; /** *
     * The product title associated with this service.
     * 
* * string title = 2; */ public java.lang.String getTitle() { java.lang.Object ref = title_; if (!(ref instanceof java.lang.String)) { com.google.proto4pingcap.ByteString bs = (com.google.proto4pingcap.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The product title associated with this service.
     * 
* * string title = 2; */ public com.google.proto4pingcap.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof String) { com.google.proto4pingcap.ByteString b = com.google.proto4pingcap.ByteString.copyFromUtf8( (java.lang.String) ref); title_ = b; return b; } else { return (com.google.proto4pingcap.ByteString) ref; } } /** *
     * The product title associated with this service.
     * 
* * string title = 2; */ public Builder setTitle( java.lang.String value) { if (value == null) { throw new NullPointerException(); } title_ = value; onChanged(); return this; } /** *
     * The product title associated with this service.
     * 
* * string title = 2; */ public Builder clearTitle() { title_ = getDefaultInstance().getTitle(); onChanged(); return this; } /** *
     * The product title associated with this service.
     * 
* * string title = 2; */ public Builder setTitleBytes( com.google.proto4pingcap.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); title_ = value; onChanged(); return this; } private java.lang.Object producerProjectId_ = ""; /** *
     * The id of the Google developer project that owns the service.
     * Members of this project can manage the service configuration,
     * manage consumption of the service, etc.
     * 
* * string producer_project_id = 22; */ public java.lang.String getProducerProjectId() { java.lang.Object ref = producerProjectId_; if (!(ref instanceof java.lang.String)) { com.google.proto4pingcap.ByteString bs = (com.google.proto4pingcap.ByteString) ref; java.lang.String s = bs.toStringUtf8(); producerProjectId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The id of the Google developer project that owns the service.
     * Members of this project can manage the service configuration,
     * manage consumption of the service, etc.
     * 
* * string producer_project_id = 22; */ public com.google.proto4pingcap.ByteString getProducerProjectIdBytes() { java.lang.Object ref = producerProjectId_; if (ref instanceof String) { com.google.proto4pingcap.ByteString b = com.google.proto4pingcap.ByteString.copyFromUtf8( (java.lang.String) ref); producerProjectId_ = b; return b; } else { return (com.google.proto4pingcap.ByteString) ref; } } /** *
     * The id of the Google developer project that owns the service.
     * Members of this project can manage the service configuration,
     * manage consumption of the service, etc.
     * 
* * string producer_project_id = 22; */ public Builder setProducerProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } producerProjectId_ = value; onChanged(); return this; } /** *
     * The id of the Google developer project that owns the service.
     * Members of this project can manage the service configuration,
     * manage consumption of the service, etc.
     * 
* * string producer_project_id = 22; */ public Builder clearProducerProjectId() { producerProjectId_ = getDefaultInstance().getProducerProjectId(); onChanged(); return this; } /** *
     * The id of the Google developer project that owns the service.
     * Members of this project can manage the service configuration,
     * manage consumption of the service, etc.
     * 
* * string producer_project_id = 22; */ public Builder setProducerProjectIdBytes( com.google.proto4pingcap.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); producerProjectId_ = value; onChanged(); return this; } private java.util.List apis_ = java.util.Collections.emptyList(); private void ensureApisIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { apis_ = new java.util.ArrayList(apis_); bitField0_ |= 0x00000020; } } private com.google.proto4pingcap.RepeatedFieldBuilderV3< com.google.proto4pingcap.Api, com.google.proto4pingcap.Api.Builder, com.google.proto4pingcap.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
     * author, as the remaining fields will be derived from the IDL during the
     * normalization process. It is an error to specify an API interface here
     * which cannot be resolved against the associated IDL files.
     * 
* * repeated .google.protobuf.Api apis = 3; */ public java.util.List getApisList() { if (apisBuilder_ == null) { return java.util.Collections.unmodifiableList(apis_); } else { return apisBuilder_.getMessageList(); } } /** *
     * 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
     * author, as the remaining fields will be derived from the IDL during the
     * normalization process. It is an error to specify an API interface here
     * which cannot be resolved against the associated IDL files.
     * 
* * repeated .google.protobuf.Api apis = 3; */ public int getApisCount() { if (apisBuilder_ == null) { return apis_.size(); } else { return apisBuilder_.getCount(); } } /** *
     * 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
     * author, as the remaining fields will be derived from the IDL during the
     * normalization process. It is an error to specify an API interface here
     * which cannot be resolved against the associated IDL files.
     * 
* * repeated .google.protobuf.Api apis = 3; */ public com.google.proto4pingcap.Api getApis(int index) { if (apisBuilder_ == null) { return apis_.get(index); } else { return apisBuilder_.getMessage(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
     * author, as the remaining fields will be derived from the IDL during the
     * normalization process. It is an error to specify an API interface here
     * which cannot be resolved against the associated IDL files.
     * 
* * repeated .google.protobuf.Api apis = 3; */ public Builder setApis( int index, com.google.proto4pingcap.Api value) { if (apisBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureApisIsMutable(); apis_.set(index, value); onChanged(); } else { apisBuilder_.setMessage(index, 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
     * author, as the remaining fields will be derived from the IDL during the
     * normalization process. It is an error to specify an API interface here
     * which cannot be resolved against the associated IDL files.
     * 
* * repeated .google.protobuf.Api apis = 3; */ public Builder setApis( int index, com.google.proto4pingcap.Api.Builder builderForValue) { if (apisBuilder_ == null) { ensureApisIsMutable(); apis_.set(index, builderForValue.build()); onChanged(); } else { apisBuilder_.setMessage(index, builderForValue.build()); } 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
     * author, as the remaining fields will be derived from the IDL during the
     * normalization process. It is an error to specify an API interface here
     * which cannot be resolved against the associated IDL files.
     * 
* * repeated .google.protobuf.Api apis = 3; */ public Builder addApis(com.google.proto4pingcap.Api value) { if (apisBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureApisIsMutable(); apis_.add(value); onChanged(); } else { apisBuilder_.addMessage(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
     * author, as the remaining fields will be derived from the IDL during the
     * normalization process. It is an error to specify an API interface here
     * which cannot be resolved against the associated IDL files.
     * 
* * repeated .google.protobuf.Api apis = 3; */ public Builder addApis( int index, com.google.proto4pingcap.Api value) { if (apisBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureApisIsMutable(); apis_.add(index, value); onChanged(); } else { apisBuilder_.addMessage(index, 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
     * author, as the remaining fields will be derived from the IDL during the
     * normalization process. It is an error to specify an API interface here
     * which cannot be resolved against the associated IDL files.
     * 
* * repeated .google.protobuf.Api apis = 3; */ public Builder addApis( com.google.proto4pingcap.Api.Builder builderForValue) { if (apisBuilder_ == null) { ensureApisIsMutable(); apis_.add(builderForValue.build()); onChanged(); } else { apisBuilder_.addMessage(builderForValue.build()); } 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
     * author, as the remaining fields will be derived from the IDL during the
     * normalization process. It is an error to specify an API interface here
     * which cannot be resolved against the associated IDL files.
     * 
* * repeated .google.protobuf.Api apis = 3; */ public Builder addApis( int index, com.google.proto4pingcap.Api.Builder builderForValue) { if (apisBuilder_ == null) { ensureApisIsMutable(); apis_.add(index, builderForValue.build()); onChanged(); } else { apisBuilder_.addMessage(index, builderForValue.build()); } 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
     * author, as the remaining fields will be derived from the IDL during the
     * normalization process. It is an error to specify an API interface here
     * which cannot be resolved against the associated IDL files.
     * 
* * repeated .google.protobuf.Api apis = 3; */ public Builder addAllApis( java.lang.Iterable values) { if (apisBuilder_ == null) { ensureApisIsMutable(); com.google.proto4pingcap.AbstractMessageLite.Builder.addAll( values, apis_); onChanged(); } else { apisBuilder_.addAllMessages(values); } 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
     * author, as the remaining fields will be derived from the IDL during the
     * normalization process. It is an error to specify an API interface here
     * which cannot be resolved against the associated IDL files.
     * 
* * repeated .google.protobuf.Api apis = 3; */ public Builder clearApis() { if (apisBuilder_ == null) { apis_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { apisBuilder_.clear(); } 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
     * author, as the remaining fields will be derived from the IDL during the
     * normalization process. It is an error to specify an API interface here
     * which cannot be resolved against the associated IDL files.
     * 
* * repeated .google.protobuf.Api apis = 3; */ public Builder removeApis(int index) { if (apisBuilder_ == null) { ensureApisIsMutable(); apis_.remove(index); onChanged(); } else { apisBuilder_.remove(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
     * author, as the remaining fields will be derived from the IDL during the
     * normalization process. It is an error to specify an API interface here
     * which cannot be resolved against the associated IDL files.
     * 
* * repeated .google.protobuf.Api apis = 3; */ public com.google.proto4pingcap.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
     * author, as the remaining fields will be derived from the IDL during the
     * normalization process. It is an error to specify an API interface here
     * which cannot be resolved against the associated IDL files.
     * 
* * repeated .google.protobuf.Api apis = 3; */ public com.google.proto4pingcap.ApiOrBuilder getApisOrBuilder( int index) { if (apisBuilder_ == null) { 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
     * author, as the remaining fields will be derived from the IDL during the
     * normalization process. It is an error to specify an API interface here
     * which cannot be resolved against the associated IDL files.
     * 
* * repeated .google.protobuf.Api apis = 3; */ public java.util.List getApisOrBuilderList() { if (apisBuilder_ != null) { return apisBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(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
     * author, as the remaining fields will be derived from the IDL during the
     * normalization process. It is an error to specify an API interface here
     * which cannot be resolved against the associated IDL files.
     * 
* * repeated .google.protobuf.Api apis = 3; */ public com.google.proto4pingcap.Api.Builder addApisBuilder() { return getApisFieldBuilder().addBuilder( com.google.proto4pingcap.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
     * author, as the remaining fields will be derived from the IDL during the
     * normalization process. It is an error to specify an API interface here
     * which cannot be resolved against the associated IDL files.
     * 
* * repeated .google.protobuf.Api apis = 3; */ public com.google.proto4pingcap.Api.Builder addApisBuilder( int index) { return getApisFieldBuilder().addBuilder( index, com.google.proto4pingcap.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
     * author, as the remaining fields will be derived from the IDL during the
     * normalization process. It is an error to specify an API interface here
     * which cannot be resolved against the associated IDL files.
     * 
* * repeated .google.protobuf.Api apis = 3; */ public java.util.List getApisBuilderList() { return getApisFieldBuilder().getBuilderList(); } private com.google.proto4pingcap.RepeatedFieldBuilderV3< com.google.proto4pingcap.Api, com.google.proto4pingcap.Api.Builder, com.google.proto4pingcap.ApiOrBuilder> getApisFieldBuilder() { if (apisBuilder_ == null) { apisBuilder_ = new com.google.proto4pingcap.RepeatedFieldBuilderV3< com.google.proto4pingcap.Api, com.google.proto4pingcap.Api.Builder, com.google.proto4pingcap.ApiOrBuilder>( apis_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); apis_ = null; } return apisBuilder_; } private java.util.List types_ = java.util.Collections.emptyList(); private void ensureTypesIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { types_ = new java.util.ArrayList(types_); bitField0_ |= 0x00000040; } } private com.google.proto4pingcap.RepeatedFieldBuilderV3< com.google.proto4pingcap.Type, com.google.proto4pingcap.Type.Builder, com.google.proto4pingcap.TypeOrBuilder> typesBuilder_; /** *
     * A list of all proto message types included in this API service.
     * Types referenced directly or indirectly by the `apis` are
     * automatically included.  Messages which are not referenced but
     * shall be included, such as types used by the `google.protobuf.Any` type,
     * should be listed here by name. Example:
     *     types:
     *     - name: google.protobuf.Int32
     * 
* * repeated .google.protobuf.Type types = 4; */ public java.util.List getTypesList() { if (typesBuilder_ == null) { return java.util.Collections.unmodifiableList(types_); } else { return typesBuilder_.getMessageList(); } } /** *
     * A list of all proto message types included in this API service.
     * Types referenced directly or indirectly by the `apis` are
     * automatically included.  Messages which are not referenced but
     * shall be included, such as types used by the `google.protobuf.Any` type,
     * should be listed here by name. Example:
     *     types:
     *     - name: google.protobuf.Int32
     * 
* * repeated .google.protobuf.Type types = 4; */ public int getTypesCount() { if (typesBuilder_ == null) { return types_.size(); } else { return typesBuilder_.getCount(); } } /** *
     * A list of all proto message types included in this API service.
     * Types referenced directly or indirectly by the `apis` are
     * automatically included.  Messages which are not referenced but
     * shall be included, such as types used by the `google.protobuf.Any` type,
     * should be listed here by name. Example:
     *     types:
     *     - name: google.protobuf.Int32
     * 
* * repeated .google.protobuf.Type types = 4; */ public com.google.proto4pingcap.Type getTypes(int index) { if (typesBuilder_ == null) { return types_.get(index); } else { return typesBuilder_.getMessage(index); } } /** *
     * A list of all proto message types included in this API service.
     * Types referenced directly or indirectly by the `apis` are
     * automatically included.  Messages which are not referenced but
     * shall be included, such as types used by the `google.protobuf.Any` type,
     * should be listed here by name. Example:
     *     types:
     *     - name: google.protobuf.Int32
     * 
* * repeated .google.protobuf.Type types = 4; */ public Builder setTypes( int index, com.google.proto4pingcap.Type value) { if (typesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTypesIsMutable(); types_.set(index, value); onChanged(); } else { typesBuilder_.setMessage(index, value); } return this; } /** *
     * A list of all proto message types included in this API service.
     * Types referenced directly or indirectly by the `apis` are
     * automatically included.  Messages which are not referenced but
     * shall be included, such as types used by the `google.protobuf.Any` type,
     * should be listed here by name. Example:
     *     types:
     *     - name: google.protobuf.Int32
     * 
* * repeated .google.protobuf.Type types = 4; */ public Builder setTypes( int index, com.google.proto4pingcap.Type.Builder builderForValue) { if (typesBuilder_ == null) { ensureTypesIsMutable(); types_.set(index, builderForValue.build()); onChanged(); } else { typesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * A list of all proto message types included in this API service.
     * Types referenced directly or indirectly by the `apis` are
     * automatically included.  Messages which are not referenced but
     * shall be included, such as types used by the `google.protobuf.Any` type,
     * should be listed here by name. Example:
     *     types:
     *     - name: google.protobuf.Int32
     * 
* * repeated .google.protobuf.Type types = 4; */ public Builder addTypes(com.google.proto4pingcap.Type value) { if (typesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTypesIsMutable(); types_.add(value); onChanged(); } else { typesBuilder_.addMessage(value); } return this; } /** *
     * A list of all proto message types included in this API service.
     * Types referenced directly or indirectly by the `apis` are
     * automatically included.  Messages which are not referenced but
     * shall be included, such as types used by the `google.protobuf.Any` type,
     * should be listed here by name. Example:
     *     types:
     *     - name: google.protobuf.Int32
     * 
* * repeated .google.protobuf.Type types = 4; */ public Builder addTypes( int index, com.google.proto4pingcap.Type value) { if (typesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTypesIsMutable(); types_.add(index, value); onChanged(); } else { typesBuilder_.addMessage(index, value); } return this; } /** *
     * A list of all proto message types included in this API service.
     * Types referenced directly or indirectly by the `apis` are
     * automatically included.  Messages which are not referenced but
     * shall be included, such as types used by the `google.protobuf.Any` type,
     * should be listed here by name. Example:
     *     types:
     *     - name: google.protobuf.Int32
     * 
* * repeated .google.protobuf.Type types = 4; */ public Builder addTypes( com.google.proto4pingcap.Type.Builder builderForValue) { if (typesBuilder_ == null) { ensureTypesIsMutable(); types_.add(builderForValue.build()); onChanged(); } else { typesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * A list of all proto message types included in this API service.
     * Types referenced directly or indirectly by the `apis` are
     * automatically included.  Messages which are not referenced but
     * shall be included, such as types used by the `google.protobuf.Any` type,
     * should be listed here by name. Example:
     *     types:
     *     - name: google.protobuf.Int32
     * 
* * repeated .google.protobuf.Type types = 4; */ public Builder addTypes( int index, com.google.proto4pingcap.Type.Builder builderForValue) { if (typesBuilder_ == null) { ensureTypesIsMutable(); types_.add(index, builderForValue.build()); onChanged(); } else { typesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * A list of all proto message types included in this API service.
     * Types referenced directly or indirectly by the `apis` are
     * automatically included.  Messages which are not referenced but
     * shall be included, such as types used by the `google.protobuf.Any` type,
     * should be listed here by name. Example:
     *     types:
     *     - name: google.protobuf.Int32
     * 
* * repeated .google.protobuf.Type types = 4; */ public Builder addAllTypes( java.lang.Iterable values) { if (typesBuilder_ == null) { ensureTypesIsMutable(); com.google.proto4pingcap.AbstractMessageLite.Builder.addAll( values, types_); onChanged(); } else { typesBuilder_.addAllMessages(values); } return this; } /** *
     * A list of all proto message types included in this API service.
     * Types referenced directly or indirectly by the `apis` are
     * automatically included.  Messages which are not referenced but
     * shall be included, such as types used by the `google.protobuf.Any` type,
     * should be listed here by name. Example:
     *     types:
     *     - name: google.protobuf.Int32
     * 
* * repeated .google.protobuf.Type types = 4; */ public Builder clearTypes() { if (typesBuilder_ == null) { types_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { typesBuilder_.clear(); } return this; } /** *
     * A list of all proto message types included in this API service.
     * Types referenced directly or indirectly by the `apis` are
     * automatically included.  Messages which are not referenced but
     * shall be included, such as types used by the `google.protobuf.Any` type,
     * should be listed here by name. Example:
     *     types:
     *     - name: google.protobuf.Int32
     * 
* * repeated .google.protobuf.Type types = 4; */ public Builder removeTypes(int index) { if (typesBuilder_ == null) { ensureTypesIsMutable(); types_.remove(index); onChanged(); } else { typesBuilder_.remove(index); } return this; } /** *
     * A list of all proto message types included in this API service.
     * Types referenced directly or indirectly by the `apis` are
     * automatically included.  Messages which are not referenced but
     * shall be included, such as types used by the `google.protobuf.Any` type,
     * should be listed here by name. Example:
     *     types:
     *     - name: google.protobuf.Int32
     * 
* * repeated .google.protobuf.Type types = 4; */ public com.google.proto4pingcap.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
     * automatically included.  Messages which are not referenced but
     * shall be included, such as types used by the `google.protobuf.Any` type,
     * should be listed here by name. Example:
     *     types:
     *     - name: google.protobuf.Int32
     * 
* * repeated .google.protobuf.Type types = 4; */ public com.google.proto4pingcap.TypeOrBuilder getTypesOrBuilder( int index) { if (typesBuilder_ == null) { 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
     * automatically included.  Messages which are not referenced but
     * shall be included, such as types used by the `google.protobuf.Any` type,
     * should be listed here by name. Example:
     *     types:
     *     - name: google.protobuf.Int32
     * 
* * repeated .google.protobuf.Type types = 4; */ public java.util.List getTypesOrBuilderList() { if (typesBuilder_ != null) { return typesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(types_); } } /** *
     * A list of all proto message types included in this API service.
     * Types referenced directly or indirectly by the `apis` are
     * automatically included.  Messages which are not referenced but
     * shall be included, such as types used by the `google.protobuf.Any` type,
     * should be listed here by name. Example:
     *     types:
     *     - name: google.protobuf.Int32
     * 
* * repeated .google.protobuf.Type types = 4; */ public com.google.proto4pingcap.Type.Builder addTypesBuilder() { return getTypesFieldBuilder().addBuilder( com.google.proto4pingcap.Type.getDefaultInstance()); } /** *
     * A list of all proto message types included in this API service.
     * Types referenced directly or indirectly by the `apis` are
     * automatically included.  Messages which are not referenced but
     * shall be included, such as types used by the `google.protobuf.Any` type,
     * should be listed here by name. Example:
     *     types:
     *     - name: google.protobuf.Int32
     * 
* * repeated .google.protobuf.Type types = 4; */ public com.google.proto4pingcap.Type.Builder addTypesBuilder( int index) { return getTypesFieldBuilder().addBuilder( index, com.google.proto4pingcap.Type.getDefaultInstance()); } /** *
     * A list of all proto message types included in this API service.
     * Types referenced directly or indirectly by the `apis` are
     * automatically included.  Messages which are not referenced but
     * shall be included, such as types used by the `google.protobuf.Any` type,
     * should be listed here by name. Example:
     *     types:
     *     - name: google.protobuf.Int32
     * 
* * repeated .google.protobuf.Type types = 4; */ public java.util.List getTypesBuilderList() { return getTypesFieldBuilder().getBuilderList(); } private com.google.proto4pingcap.RepeatedFieldBuilderV3< com.google.proto4pingcap.Type, com.google.proto4pingcap.Type.Builder, com.google.proto4pingcap.TypeOrBuilder> getTypesFieldBuilder() { if (typesBuilder_ == null) { typesBuilder_ = new com.google.proto4pingcap.RepeatedFieldBuilderV3< com.google.proto4pingcap.Type, com.google.proto4pingcap.Type.Builder, com.google.proto4pingcap.TypeOrBuilder>( types_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); types_ = null; } return typesBuilder_; } private java.util.List enums_ = java.util.Collections.emptyList(); private void ensureEnumsIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { enums_ = new java.util.ArrayList(enums_); bitField0_ |= 0x00000080; } } private com.google.proto4pingcap.RepeatedFieldBuilderV3< com.google.proto4pingcap.Enum, com.google.proto4pingcap.Enum.Builder, com.google.proto4pingcap.EnumOrBuilder> enumsBuilder_; /** *
     * A list of all enum types included in this API service.  Enums
     * referenced directly or indirectly by the `apis` are automatically
     * included.  Enums which are not referenced but shall be included
     * should be listed here by name. Example:
     *     enums:
     *     - name: google.someapi.v1.SomeEnum
     * 
* * repeated .google.protobuf.Enum enums = 5; */ public java.util.List getEnumsList() { if (enumsBuilder_ == null) { return java.util.Collections.unmodifiableList(enums_); } else { return enumsBuilder_.getMessageList(); } } /** *
     * A list of all enum types included in this API service.  Enums
     * referenced directly or indirectly by the `apis` are automatically
     * included.  Enums which are not referenced but shall be included
     * should be listed here by name. Example:
     *     enums:
     *     - name: google.someapi.v1.SomeEnum
     * 
* * repeated .google.protobuf.Enum enums = 5; */ public int getEnumsCount() { if (enumsBuilder_ == null) { return enums_.size(); } else { return enumsBuilder_.getCount(); } } /** *
     * A list of all enum types included in this API service.  Enums
     * referenced directly or indirectly by the `apis` are automatically
     * included.  Enums which are not referenced but shall be included
     * should be listed here by name. Example:
     *     enums:
     *     - name: google.someapi.v1.SomeEnum
     * 
* * repeated .google.protobuf.Enum enums = 5; */ public com.google.proto4pingcap.Enum getEnums(int index) { if (enumsBuilder_ == null) { return enums_.get(index); } else { return enumsBuilder_.getMessage(index); } } /** *
     * A list of all enum types included in this API service.  Enums
     * referenced directly or indirectly by the `apis` are automatically
     * included.  Enums which are not referenced but shall be included
     * should be listed here by name. Example:
     *     enums:
     *     - name: google.someapi.v1.SomeEnum
     * 
* * repeated .google.protobuf.Enum enums = 5; */ public Builder setEnums( int index, com.google.proto4pingcap.Enum value) { if (enumsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnumsIsMutable(); enums_.set(index, value); onChanged(); } else { enumsBuilder_.setMessage(index, value); } return this; } /** *
     * A list of all enum types included in this API service.  Enums
     * referenced directly or indirectly by the `apis` are automatically
     * included.  Enums which are not referenced but shall be included
     * should be listed here by name. Example:
     *     enums:
     *     - name: google.someapi.v1.SomeEnum
     * 
* * repeated .google.protobuf.Enum enums = 5; */ public Builder setEnums( int index, com.google.proto4pingcap.Enum.Builder builderForValue) { if (enumsBuilder_ == null) { ensureEnumsIsMutable(); enums_.set(index, builderForValue.build()); onChanged(); } else { enumsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * A list of all enum types included in this API service.  Enums
     * referenced directly or indirectly by the `apis` are automatically
     * included.  Enums which are not referenced but shall be included
     * should be listed here by name. Example:
     *     enums:
     *     - name: google.someapi.v1.SomeEnum
     * 
* * repeated .google.protobuf.Enum enums = 5; */ public Builder addEnums(com.google.proto4pingcap.Enum value) { if (enumsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnumsIsMutable(); enums_.add(value); onChanged(); } else { enumsBuilder_.addMessage(value); } return this; } /** *
     * A list of all enum types included in this API service.  Enums
     * referenced directly or indirectly by the `apis` are automatically
     * included.  Enums which are not referenced but shall be included
     * should be listed here by name. Example:
     *     enums:
     *     - name: google.someapi.v1.SomeEnum
     * 
* * repeated .google.protobuf.Enum enums = 5; */ public Builder addEnums( int index, com.google.proto4pingcap.Enum value) { if (enumsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnumsIsMutable(); enums_.add(index, value); onChanged(); } else { enumsBuilder_.addMessage(index, value); } return this; } /** *
     * A list of all enum types included in this API service.  Enums
     * referenced directly or indirectly by the `apis` are automatically
     * included.  Enums which are not referenced but shall be included
     * should be listed here by name. Example:
     *     enums:
     *     - name: google.someapi.v1.SomeEnum
     * 
* * repeated .google.protobuf.Enum enums = 5; */ public Builder addEnums( com.google.proto4pingcap.Enum.Builder builderForValue) { if (enumsBuilder_ == null) { ensureEnumsIsMutable(); enums_.add(builderForValue.build()); onChanged(); } else { enumsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * A list of all enum types included in this API service.  Enums
     * referenced directly or indirectly by the `apis` are automatically
     * included.  Enums which are not referenced but shall be included
     * should be listed here by name. Example:
     *     enums:
     *     - name: google.someapi.v1.SomeEnum
     * 
* * repeated .google.protobuf.Enum enums = 5; */ public Builder addEnums( int index, com.google.proto4pingcap.Enum.Builder builderForValue) { if (enumsBuilder_ == null) { ensureEnumsIsMutable(); enums_.add(index, builderForValue.build()); onChanged(); } else { enumsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * A list of all enum types included in this API service.  Enums
     * referenced directly or indirectly by the `apis` are automatically
     * included.  Enums which are not referenced but shall be included
     * should be listed here by name. Example:
     *     enums:
     *     - name: google.someapi.v1.SomeEnum
     * 
* * repeated .google.protobuf.Enum enums = 5; */ public Builder addAllEnums( java.lang.Iterable values) { if (enumsBuilder_ == null) { ensureEnumsIsMutable(); com.google.proto4pingcap.AbstractMessageLite.Builder.addAll( values, enums_); onChanged(); } else { enumsBuilder_.addAllMessages(values); } return this; } /** *
     * A list of all enum types included in this API service.  Enums
     * referenced directly or indirectly by the `apis` are automatically
     * included.  Enums which are not referenced but shall be included
     * should be listed here by name. Example:
     *     enums:
     *     - name: google.someapi.v1.SomeEnum
     * 
* * repeated .google.protobuf.Enum enums = 5; */ public Builder clearEnums() { if (enumsBuilder_ == null) { enums_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { enumsBuilder_.clear(); } return this; } /** *
     * A list of all enum types included in this API service.  Enums
     * referenced directly or indirectly by the `apis` are automatically
     * included.  Enums which are not referenced but shall be included
     * should be listed here by name. Example:
     *     enums:
     *     - name: google.someapi.v1.SomeEnum
     * 
* * repeated .google.protobuf.Enum enums = 5; */ public Builder removeEnums(int index) { if (enumsBuilder_ == null) { ensureEnumsIsMutable(); enums_.remove(index); onChanged(); } else { enumsBuilder_.remove(index); } return this; } /** *
     * A list of all enum types included in this API service.  Enums
     * referenced directly or indirectly by the `apis` are automatically
     * included.  Enums which are not referenced but shall be included
     * should be listed here by name. Example:
     *     enums:
     *     - name: google.someapi.v1.SomeEnum
     * 
* * repeated .google.protobuf.Enum enums = 5; */ public com.google.proto4pingcap.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
     * included.  Enums which are not referenced but shall be included
     * should be listed here by name. Example:
     *     enums:
     *     - name: google.someapi.v1.SomeEnum
     * 
* * repeated .google.protobuf.Enum enums = 5; */ public com.google.proto4pingcap.EnumOrBuilder getEnumsOrBuilder( int index) { if (enumsBuilder_ == null) { 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
     * included.  Enums which are not referenced but shall be included
     * should be listed here by name. Example:
     *     enums:
     *     - name: google.someapi.v1.SomeEnum
     * 
* * repeated .google.protobuf.Enum enums = 5; */ public java.util.List getEnumsOrBuilderList() { if (enumsBuilder_ != null) { return enumsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(enums_); } } /** *
     * A list of all enum types included in this API service.  Enums
     * referenced directly or indirectly by the `apis` are automatically
     * included.  Enums which are not referenced but shall be included
     * should be listed here by name. Example:
     *     enums:
     *     - name: google.someapi.v1.SomeEnum
     * 
* * repeated .google.protobuf.Enum enums = 5; */ public com.google.proto4pingcap.Enum.Builder addEnumsBuilder() { return getEnumsFieldBuilder().addBuilder( com.google.proto4pingcap.Enum.getDefaultInstance()); } /** *
     * A list of all enum types included in this API service.  Enums
     * referenced directly or indirectly by the `apis` are automatically
     * included.  Enums which are not referenced but shall be included
     * should be listed here by name. Example:
     *     enums:
     *     - name: google.someapi.v1.SomeEnum
     * 
* * repeated .google.protobuf.Enum enums = 5; */ public com.google.proto4pingcap.Enum.Builder addEnumsBuilder( int index) { return getEnumsFieldBuilder().addBuilder( index, com.google.proto4pingcap.Enum.getDefaultInstance()); } /** *
     * A list of all enum types included in this API service.  Enums
     * referenced directly or indirectly by the `apis` are automatically
     * included.  Enums which are not referenced but shall be included
     * should be listed here by name. Example:
     *     enums:
     *     - name: google.someapi.v1.SomeEnum
     * 
* * repeated .google.protobuf.Enum enums = 5; */ public java.util.List getEnumsBuilderList() { return getEnumsFieldBuilder().getBuilderList(); } private com.google.proto4pingcap.RepeatedFieldBuilderV3< com.google.proto4pingcap.Enum, com.google.proto4pingcap.Enum.Builder, com.google.proto4pingcap.EnumOrBuilder> getEnumsFieldBuilder() { if (enumsBuilder_ == null) { enumsBuilder_ = new com.google.proto4pingcap.RepeatedFieldBuilderV3< com.google.proto4pingcap.Enum, com.google.proto4pingcap.Enum.Builder, com.google.proto4pingcap.EnumOrBuilder>( enums_, ((bitField0_ & 0x00000080) == 0x00000080), getParentForChildren(), isClean()); enums_ = null; } return enumsBuilder_; } private com.google.api.Documentation documentation_ = null; private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.Documentation, com.google.api.Documentation.Builder, com.google.api.DocumentationOrBuilder> documentationBuilder_; /** *
     * Additional API documentation.
     * 
* * .google.api.Documentation documentation = 6; */ public boolean hasDocumentation() { return documentationBuilder_ != null || documentation_ != null; } /** *
     * Additional API documentation.
     * 
* * .google.api.Documentation documentation = 6; */ public com.google.api.Documentation getDocumentation() { if (documentationBuilder_ == null) { return documentation_ == null ? com.google.api.Documentation.getDefaultInstance() : documentation_; } else { return documentationBuilder_.getMessage(); } } /** *
     * Additional API documentation.
     * 
* * .google.api.Documentation documentation = 6; */ public Builder setDocumentation(com.google.api.Documentation value) { if (documentationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } documentation_ = value; onChanged(); } else { documentationBuilder_.setMessage(value); } return this; } /** *
     * Additional API documentation.
     * 
* * .google.api.Documentation documentation = 6; */ public Builder setDocumentation( com.google.api.Documentation.Builder builderForValue) { if (documentationBuilder_ == null) { documentation_ = builderForValue.build(); onChanged(); } else { documentationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Additional API documentation.
     * 
* * .google.api.Documentation documentation = 6; */ public Builder mergeDocumentation(com.google.api.Documentation value) { if (documentationBuilder_ == null) { if (documentation_ != null) { documentation_ = com.google.api.Documentation.newBuilder(documentation_).mergeFrom(value).buildPartial(); } else { documentation_ = value; } onChanged(); } else { documentationBuilder_.mergeFrom(value); } return this; } /** *
     * Additional API documentation.
     * 
* * .google.api.Documentation documentation = 6; */ public Builder clearDocumentation() { if (documentationBuilder_ == null) { documentation_ = null; onChanged(); } else { documentation_ = null; documentationBuilder_ = null; } return this; } /** *
     * Additional API documentation.
     * 
* * .google.api.Documentation documentation = 6; */ public com.google.api.Documentation.Builder getDocumentationBuilder() { onChanged(); return getDocumentationFieldBuilder().getBuilder(); } /** *
     * Additional API documentation.
     * 
* * .google.api.Documentation documentation = 6; */ public com.google.api.DocumentationOrBuilder getDocumentationOrBuilder() { if (documentationBuilder_ != null) { return documentationBuilder_.getMessageOrBuilder(); } else { return documentation_ == null ? com.google.api.Documentation.getDefaultInstance() : documentation_; } } /** *
     * Additional API documentation.
     * 
* * .google.api.Documentation documentation = 6; */ private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.Documentation, com.google.api.Documentation.Builder, com.google.api.DocumentationOrBuilder> getDocumentationFieldBuilder() { if (documentationBuilder_ == null) { documentationBuilder_ = new com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.Documentation, com.google.api.Documentation.Builder, com.google.api.DocumentationOrBuilder>( getDocumentation(), getParentForChildren(), isClean()); documentation_ = null; } return documentationBuilder_; } private com.google.api.Backend backend_ = null; private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.Backend, com.google.api.Backend.Builder, com.google.api.BackendOrBuilder> backendBuilder_; /** *
     * API backend configuration.
     * 
* * .google.api.Backend backend = 8; */ public boolean hasBackend() { return backendBuilder_ != null || backend_ != null; } /** *
     * API backend configuration.
     * 
* * .google.api.Backend backend = 8; */ public com.google.api.Backend getBackend() { if (backendBuilder_ == null) { return backend_ == null ? com.google.api.Backend.getDefaultInstance() : backend_; } else { return backendBuilder_.getMessage(); } } /** *
     * API backend configuration.
     * 
* * .google.api.Backend backend = 8; */ public Builder setBackend(com.google.api.Backend value) { if (backendBuilder_ == null) { if (value == null) { throw new NullPointerException(); } backend_ = value; onChanged(); } else { backendBuilder_.setMessage(value); } return this; } /** *
     * API backend configuration.
     * 
* * .google.api.Backend backend = 8; */ public Builder setBackend( com.google.api.Backend.Builder builderForValue) { if (backendBuilder_ == null) { backend_ = builderForValue.build(); onChanged(); } else { backendBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * API backend configuration.
     * 
* * .google.api.Backend backend = 8; */ public Builder mergeBackend(com.google.api.Backend value) { if (backendBuilder_ == null) { if (backend_ != null) { backend_ = com.google.api.Backend.newBuilder(backend_).mergeFrom(value).buildPartial(); } else { backend_ = value; } onChanged(); } else { backendBuilder_.mergeFrom(value); } return this; } /** *
     * API backend configuration.
     * 
* * .google.api.Backend backend = 8; */ public Builder clearBackend() { if (backendBuilder_ == null) { backend_ = null; onChanged(); } else { backend_ = null; backendBuilder_ = null; } return this; } /** *
     * API backend configuration.
     * 
* * .google.api.Backend backend = 8; */ public com.google.api.Backend.Builder getBackendBuilder() { onChanged(); return getBackendFieldBuilder().getBuilder(); } /** *
     * API backend configuration.
     * 
* * .google.api.Backend backend = 8; */ public com.google.api.BackendOrBuilder getBackendOrBuilder() { if (backendBuilder_ != null) { return backendBuilder_.getMessageOrBuilder(); } else { return backend_ == null ? com.google.api.Backend.getDefaultInstance() : backend_; } } /** *
     * API backend configuration.
     * 
* * .google.api.Backend backend = 8; */ private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.Backend, com.google.api.Backend.Builder, com.google.api.BackendOrBuilder> getBackendFieldBuilder() { if (backendBuilder_ == null) { backendBuilder_ = new com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.Backend, com.google.api.Backend.Builder, com.google.api.BackendOrBuilder>( getBackend(), getParentForChildren(), isClean()); backend_ = null; } return backendBuilder_; } private com.google.api.Http http_ = null; private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.Http, com.google.api.Http.Builder, com.google.api.HttpOrBuilder> httpBuilder_; /** *
     * HTTP configuration.
     * 
* * .google.api.Http http = 9; */ public boolean hasHttp() { return httpBuilder_ != null || http_ != null; } /** *
     * HTTP configuration.
     * 
* * .google.api.Http http = 9; */ public com.google.api.Http getHttp() { if (httpBuilder_ == null) { return http_ == null ? com.google.api.Http.getDefaultInstance() : http_; } else { return httpBuilder_.getMessage(); } } /** *
     * HTTP configuration.
     * 
* * .google.api.Http http = 9; */ public Builder setHttp(com.google.api.Http value) { if (httpBuilder_ == null) { if (value == null) { throw new NullPointerException(); } http_ = value; onChanged(); } else { httpBuilder_.setMessage(value); } return this; } /** *
     * HTTP configuration.
     * 
* * .google.api.Http http = 9; */ public Builder setHttp( com.google.api.Http.Builder builderForValue) { if (httpBuilder_ == null) { http_ = builderForValue.build(); onChanged(); } else { httpBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * HTTP configuration.
     * 
* * .google.api.Http http = 9; */ public Builder mergeHttp(com.google.api.Http value) { if (httpBuilder_ == null) { if (http_ != null) { http_ = com.google.api.Http.newBuilder(http_).mergeFrom(value).buildPartial(); } else { http_ = value; } onChanged(); } else { httpBuilder_.mergeFrom(value); } return this; } /** *
     * HTTP configuration.
     * 
* * .google.api.Http http = 9; */ public Builder clearHttp() { if (httpBuilder_ == null) { http_ = null; onChanged(); } else { http_ = null; httpBuilder_ = null; } return this; } /** *
     * HTTP configuration.
     * 
* * .google.api.Http http = 9; */ public com.google.api.Http.Builder getHttpBuilder() { onChanged(); return getHttpFieldBuilder().getBuilder(); } /** *
     * HTTP configuration.
     * 
* * .google.api.Http http = 9; */ public com.google.api.HttpOrBuilder getHttpOrBuilder() { if (httpBuilder_ != null) { return httpBuilder_.getMessageOrBuilder(); } else { return http_ == null ? com.google.api.Http.getDefaultInstance() : http_; } } /** *
     * HTTP configuration.
     * 
* * .google.api.Http http = 9; */ private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.Http, com.google.api.Http.Builder, com.google.api.HttpOrBuilder> getHttpFieldBuilder() { if (httpBuilder_ == null) { httpBuilder_ = new com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.Http, com.google.api.Http.Builder, com.google.api.HttpOrBuilder>( getHttp(), getParentForChildren(), isClean()); http_ = null; } return httpBuilder_; } private com.google.api.Quota quota_ = null; private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.Quota, com.google.api.Quota.Builder, com.google.api.QuotaOrBuilder> quotaBuilder_; /** *
     * Quota configuration.
     * 
* * .google.api.Quota quota = 10; */ public boolean hasQuota() { return quotaBuilder_ != null || quota_ != null; } /** *
     * Quota configuration.
     * 
* * .google.api.Quota quota = 10; */ public com.google.api.Quota getQuota() { if (quotaBuilder_ == null) { return quota_ == null ? com.google.api.Quota.getDefaultInstance() : quota_; } else { return quotaBuilder_.getMessage(); } } /** *
     * Quota configuration.
     * 
* * .google.api.Quota quota = 10; */ public Builder setQuota(com.google.api.Quota value) { if (quotaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } quota_ = value; onChanged(); } else { quotaBuilder_.setMessage(value); } return this; } /** *
     * Quota configuration.
     * 
* * .google.api.Quota quota = 10; */ public Builder setQuota( com.google.api.Quota.Builder builderForValue) { if (quotaBuilder_ == null) { quota_ = builderForValue.build(); onChanged(); } else { quotaBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Quota configuration.
     * 
* * .google.api.Quota quota = 10; */ public Builder mergeQuota(com.google.api.Quota value) { if (quotaBuilder_ == null) { if (quota_ != null) { quota_ = com.google.api.Quota.newBuilder(quota_).mergeFrom(value).buildPartial(); } else { quota_ = value; } onChanged(); } else { quotaBuilder_.mergeFrom(value); } return this; } /** *
     * Quota configuration.
     * 
* * .google.api.Quota quota = 10; */ public Builder clearQuota() { if (quotaBuilder_ == null) { quota_ = null; onChanged(); } else { quota_ = null; quotaBuilder_ = null; } return this; } /** *
     * Quota configuration.
     * 
* * .google.api.Quota quota = 10; */ public com.google.api.Quota.Builder getQuotaBuilder() { onChanged(); return getQuotaFieldBuilder().getBuilder(); } /** *
     * Quota configuration.
     * 
* * .google.api.Quota quota = 10; */ public com.google.api.QuotaOrBuilder getQuotaOrBuilder() { if (quotaBuilder_ != null) { return quotaBuilder_.getMessageOrBuilder(); } else { return quota_ == null ? com.google.api.Quota.getDefaultInstance() : quota_; } } /** *
     * Quota configuration.
     * 
* * .google.api.Quota quota = 10; */ private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.Quota, com.google.api.Quota.Builder, com.google.api.QuotaOrBuilder> getQuotaFieldBuilder() { if (quotaBuilder_ == null) { quotaBuilder_ = new com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.Quota, com.google.api.Quota.Builder, com.google.api.QuotaOrBuilder>( getQuota(), getParentForChildren(), isClean()); quota_ = null; } return quotaBuilder_; } private com.google.api.Authentication authentication_ = null; private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.Authentication, com.google.api.Authentication.Builder, com.google.api.AuthenticationOrBuilder> authenticationBuilder_; /** *
     * Auth configuration.
     * 
* * .google.api.Authentication authentication = 11; */ public boolean hasAuthentication() { return authenticationBuilder_ != null || authentication_ != null; } /** *
     * Auth configuration.
     * 
* * .google.api.Authentication authentication = 11; */ public com.google.api.Authentication getAuthentication() { if (authenticationBuilder_ == null) { return authentication_ == null ? com.google.api.Authentication.getDefaultInstance() : authentication_; } else { return authenticationBuilder_.getMessage(); } } /** *
     * Auth configuration.
     * 
* * .google.api.Authentication authentication = 11; */ public Builder setAuthentication(com.google.api.Authentication value) { if (authenticationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } authentication_ = value; onChanged(); } else { authenticationBuilder_.setMessage(value); } return this; } /** *
     * Auth configuration.
     * 
* * .google.api.Authentication authentication = 11; */ public Builder setAuthentication( com.google.api.Authentication.Builder builderForValue) { if (authenticationBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); } else { authenticationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Auth configuration.
     * 
* * .google.api.Authentication authentication = 11; */ public Builder mergeAuthentication(com.google.api.Authentication value) { if (authenticationBuilder_ == null) { if (authentication_ != null) { authentication_ = com.google.api.Authentication.newBuilder(authentication_).mergeFrom(value).buildPartial(); } else { authentication_ = value; } onChanged(); } else { authenticationBuilder_.mergeFrom(value); } return this; } /** *
     * Auth configuration.
     * 
* * .google.api.Authentication authentication = 11; */ public Builder clearAuthentication() { if (authenticationBuilder_ == null) { authentication_ = null; onChanged(); } else { authentication_ = null; authenticationBuilder_ = null; } return this; } /** *
     * Auth configuration.
     * 
* * .google.api.Authentication authentication = 11; */ public com.google.api.Authentication.Builder getAuthenticationBuilder() { onChanged(); return getAuthenticationFieldBuilder().getBuilder(); } /** *
     * Auth configuration.
     * 
* * .google.api.Authentication authentication = 11; */ public com.google.api.AuthenticationOrBuilder getAuthenticationOrBuilder() { if (authenticationBuilder_ != null) { return authenticationBuilder_.getMessageOrBuilder(); } else { return authentication_ == null ? com.google.api.Authentication.getDefaultInstance() : authentication_; } } /** *
     * Auth configuration.
     * 
* * .google.api.Authentication authentication = 11; */ private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.Authentication, com.google.api.Authentication.Builder, com.google.api.AuthenticationOrBuilder> getAuthenticationFieldBuilder() { if (authenticationBuilder_ == null) { authenticationBuilder_ = new com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.Authentication, com.google.api.Authentication.Builder, com.google.api.AuthenticationOrBuilder>( getAuthentication(), getParentForChildren(), isClean()); authentication_ = null; } return authenticationBuilder_; } private com.google.api.Context context_ = null; private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.Context, com.google.api.Context.Builder, com.google.api.ContextOrBuilder> contextBuilder_; /** *
     * Context configuration.
     * 
* * .google.api.Context context = 12; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** *
     * Context configuration.
     * 
* * .google.api.Context context = 12; */ public com.google.api.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? com.google.api.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** *
     * Context configuration.
     * 
* * .google.api.Context context = 12; */ public Builder setContext(com.google.api.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** *
     * Context configuration.
     * 
* * .google.api.Context context = 12; */ public Builder setContext( com.google.api.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Context configuration.
     * 
* * .google.api.Context context = 12; */ public Builder mergeContext(com.google.api.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = com.google.api.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** *
     * Context configuration.
     * 
* * .google.api.Context context = 12; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** *
     * Context configuration.
     * 
* * .google.api.Context context = 12; */ public com.google.api.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** *
     * Context configuration.
     * 
* * .google.api.Context context = 12; */ public com.google.api.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? com.google.api.Context.getDefaultInstance() : context_; } } /** *
     * Context configuration.
     * 
* * .google.api.Context context = 12; */ private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.Context, com.google.api.Context.Builder, com.google.api.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.Context, com.google.api.Context.Builder, com.google.api.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private com.google.api.Usage usage_ = null; private com.google.proto4pingcap.SingleFieldBuilderV3< 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; */ public boolean hasUsage() { return usageBuilder_ != null || usage_ != null; } /** *
     * Configuration controlling usage of this service.
     * 
* * .google.api.Usage usage = 15; */ public com.google.api.Usage getUsage() { if (usageBuilder_ == null) { 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(com.google.api.Usage value) { if (usageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } usage_ = value; onChanged(); } else { usageBuilder_.setMessage(value); } return this; } /** *
     * Configuration controlling usage of this service.
     * 
* * .google.api.Usage usage = 15; */ public Builder setUsage( com.google.api.Usage.Builder builderForValue) { if (usageBuilder_ == null) { usage_ = builderForValue.build(); onChanged(); } else { usageBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Configuration controlling usage of this service.
     * 
* * .google.api.Usage usage = 15; */ public Builder mergeUsage(com.google.api.Usage value) { if (usageBuilder_ == null) { if (usage_ != null) { usage_ = com.google.api.Usage.newBuilder(usage_).mergeFrom(value).buildPartial(); } else { usage_ = value; } onChanged(); } else { usageBuilder_.mergeFrom(value); } return this; } /** *
     * Configuration controlling usage of this service.
     * 
* * .google.api.Usage usage = 15; */ public Builder clearUsage() { if (usageBuilder_ == null) { usage_ = null; onChanged(); } else { usage_ = null; usageBuilder_ = null; } return this; } /** *
     * Configuration controlling usage of this service.
     * 
* * .google.api.Usage usage = 15; */ public com.google.api.Usage.Builder getUsageBuilder() { onChanged(); return getUsageFieldBuilder().getBuilder(); } /** *
     * Configuration controlling usage of this service.
     * 
* * .google.api.Usage usage = 15; */ public com.google.api.UsageOrBuilder getUsageOrBuilder() { if (usageBuilder_ != null) { return usageBuilder_.getMessageOrBuilder(); } else { return usage_ == null ? com.google.api.Usage.getDefaultInstance() : usage_; } } /** *
     * Configuration controlling usage of this service.
     * 
* * .google.api.Usage usage = 15; */ private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.Usage, com.google.api.Usage.Builder, com.google.api.UsageOrBuilder> getUsageFieldBuilder() { if (usageBuilder_ == null) { usageBuilder_ = new com.google.proto4pingcap.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 void ensureEndpointsIsMutable() { if (!((bitField0_ & 0x00008000) == 0x00008000)) { endpoints_ = new java.util.ArrayList(endpoints_); bitField0_ |= 0x00008000; } } private com.google.proto4pingcap.RepeatedFieldBuilderV3< 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
     * defined APIs.
     * 
* * repeated .google.api.Endpoint endpoints = 18; */ public java.util.List getEndpointsList() { if (endpointsBuilder_ == null) { return java.util.Collections.unmodifiableList(endpoints_); } else { return endpointsBuilder_.getMessageList(); } } /** *
     * Configuration for network endpoints.  If this is empty, then an endpoint
     * with the same name as the service is automatically generated to service all
     * defined APIs.
     * 
* * repeated .google.api.Endpoint endpoints = 18; */ public int getEndpointsCount() { if (endpointsBuilder_ == null) { return endpoints_.size(); } else { return endpointsBuilder_.getCount(); } } /** *
     * Configuration for network endpoints.  If this is empty, then an endpoint
     * with the same name as the service is automatically generated to service all
     * defined APIs.
     * 
* * repeated .google.api.Endpoint endpoints = 18; */ public com.google.api.Endpoint getEndpoints(int index) { if (endpointsBuilder_ == null) { return endpoints_.get(index); } else { return endpointsBuilder_.getMessage(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
     * defined APIs.
     * 
* * repeated .google.api.Endpoint endpoints = 18; */ public Builder setEndpoints( int index, com.google.api.Endpoint value) { if (endpointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEndpointsIsMutable(); endpoints_.set(index, value); onChanged(); } else { endpointsBuilder_.setMessage(index, 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
     * defined APIs.
     * 
* * repeated .google.api.Endpoint endpoints = 18; */ public Builder setEndpoints( int index, com.google.api.Endpoint.Builder builderForValue) { if (endpointsBuilder_ == null) { ensureEndpointsIsMutable(); endpoints_.set(index, builderForValue.build()); onChanged(); } else { endpointsBuilder_.setMessage(index, builderForValue.build()); } 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
     * defined APIs.
     * 
* * repeated .google.api.Endpoint endpoints = 18; */ public Builder addEndpoints(com.google.api.Endpoint value) { if (endpointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEndpointsIsMutable(); endpoints_.add(value); onChanged(); } else { endpointsBuilder_.addMessage(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
     * defined APIs.
     * 
* * repeated .google.api.Endpoint endpoints = 18; */ public Builder addEndpoints( int index, com.google.api.Endpoint value) { if (endpointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEndpointsIsMutable(); endpoints_.add(index, value); onChanged(); } else { endpointsBuilder_.addMessage(index, 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
     * defined APIs.
     * 
* * repeated .google.api.Endpoint endpoints = 18; */ public Builder addEndpoints( com.google.api.Endpoint.Builder builderForValue) { if (endpointsBuilder_ == null) { ensureEndpointsIsMutable(); endpoints_.add(builderForValue.build()); onChanged(); } else { endpointsBuilder_.addMessage(builderForValue.build()); } 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
     * defined APIs.
     * 
* * repeated .google.api.Endpoint endpoints = 18; */ public Builder addEndpoints( int index, com.google.api.Endpoint.Builder builderForValue) { if (endpointsBuilder_ == null) { ensureEndpointsIsMutable(); endpoints_.add(index, builderForValue.build()); onChanged(); } else { endpointsBuilder_.addMessage(index, builderForValue.build()); } 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
     * defined APIs.
     * 
* * repeated .google.api.Endpoint endpoints = 18; */ public Builder addAllEndpoints( java.lang.Iterable values) { if (endpointsBuilder_ == null) { ensureEndpointsIsMutable(); com.google.proto4pingcap.AbstractMessageLite.Builder.addAll( values, endpoints_); onChanged(); } else { endpointsBuilder_.addAllMessages(values); } 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
     * defined APIs.
     * 
* * repeated .google.api.Endpoint endpoints = 18; */ public Builder clearEndpoints() { if (endpointsBuilder_ == null) { endpoints_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00008000); onChanged(); } else { endpointsBuilder_.clear(); } 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
     * defined APIs.
     * 
* * repeated .google.api.Endpoint endpoints = 18; */ public Builder removeEndpoints(int index) { if (endpointsBuilder_ == null) { ensureEndpointsIsMutable(); endpoints_.remove(index); onChanged(); } else { endpointsBuilder_.remove(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
     * defined APIs.
     * 
* * repeated .google.api.Endpoint endpoints = 18; */ 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
     * defined APIs.
     * 
* * repeated .google.api.Endpoint endpoints = 18; */ public com.google.api.EndpointOrBuilder getEndpointsOrBuilder( int index) { if (endpointsBuilder_ == null) { 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
     * defined APIs.
     * 
* * repeated .google.api.Endpoint endpoints = 18; */ public java.util.List getEndpointsOrBuilderList() { if (endpointsBuilder_ != null) { return endpointsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(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
     * defined APIs.
     * 
* * repeated .google.api.Endpoint endpoints = 18; */ public com.google.api.Endpoint.Builder addEndpointsBuilder() { 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
     * defined APIs.
     * 
* * repeated .google.api.Endpoint endpoints = 18; */ 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
     * defined APIs.
     * 
* * repeated .google.api.Endpoint endpoints = 18; */ public java.util.List getEndpointsBuilderList() { return getEndpointsFieldBuilder().getBuilderList(); } private com.google.proto4pingcap.RepeatedFieldBuilderV3< com.google.api.Endpoint, com.google.api.Endpoint.Builder, com.google.api.EndpointOrBuilder> getEndpointsFieldBuilder() { if (endpointsBuilder_ == null) { endpointsBuilder_ = new com.google.proto4pingcap.RepeatedFieldBuilderV3< com.google.api.Endpoint, com.google.api.Endpoint.Builder, com.google.api.EndpointOrBuilder>( endpoints_, ((bitField0_ & 0x00008000) == 0x00008000), getParentForChildren(), isClean()); endpoints_ = null; } return endpointsBuilder_; } private com.google.api.Control control_ = null; private com.google.proto4pingcap.SingleFieldBuilderV3< 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; */ public boolean hasControl() { return controlBuilder_ != null || control_ != null; } /** *
     * Configuration for the service control plane.
     * 
* * .google.api.Control control = 21; */ public com.google.api.Control getControl() { if (controlBuilder_ == null) { 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(com.google.api.Control value) { if (controlBuilder_ == null) { if (value == null) { throw new NullPointerException(); } control_ = value; onChanged(); } else { controlBuilder_.setMessage(value); } return this; } /** *
     * Configuration for the service control plane.
     * 
* * .google.api.Control control = 21; */ public Builder setControl( com.google.api.Control.Builder builderForValue) { if (controlBuilder_ == null) { control_ = builderForValue.build(); onChanged(); } else { controlBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Configuration for the service control plane.
     * 
* * .google.api.Control control = 21; */ public Builder mergeControl(com.google.api.Control value) { if (controlBuilder_ == null) { if (control_ != null) { control_ = com.google.api.Control.newBuilder(control_).mergeFrom(value).buildPartial(); } else { control_ = value; } onChanged(); } else { controlBuilder_.mergeFrom(value); } return this; } /** *
     * Configuration for the service control plane.
     * 
* * .google.api.Control control = 21; */ public Builder clearControl() { if (controlBuilder_ == null) { control_ = null; onChanged(); } else { control_ = null; controlBuilder_ = null; } return this; } /** *
     * Configuration for the service control plane.
     * 
* * .google.api.Control control = 21; */ public com.google.api.Control.Builder getControlBuilder() { onChanged(); return getControlFieldBuilder().getBuilder(); } /** *
     * Configuration for the service control plane.
     * 
* * .google.api.Control control = 21; */ public com.google.api.ControlOrBuilder getControlOrBuilder() { if (controlBuilder_ != null) { return controlBuilder_.getMessageOrBuilder(); } else { return control_ == null ? com.google.api.Control.getDefaultInstance() : control_; } } /** *
     * Configuration for the service control plane.
     * 
* * .google.api.Control control = 21; */ private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.Control, com.google.api.Control.Builder, com.google.api.ControlOrBuilder> getControlFieldBuilder() { if (controlBuilder_ == null) { controlBuilder_ = new com.google.proto4pingcap.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 void ensureLogsIsMutable() { if (!((bitField0_ & 0x00020000) == 0x00020000)) { logs_ = new java.util.ArrayList(logs_); bitField0_ |= 0x00020000; } } private com.google.proto4pingcap.RepeatedFieldBuilderV3< com.google.api.LogDescriptor, com.google.api.LogDescriptor.Builder, com.google.api.LogDescriptorOrBuilder> logsBuilder_; /** *
     * Defines the logs used by this service.
     * 
* * repeated .google.api.LogDescriptor logs = 23; */ public java.util.List getLogsList() { if (logsBuilder_ == null) { return java.util.Collections.unmodifiableList(logs_); } else { return logsBuilder_.getMessageList(); } } /** *
     * Defines the logs used by this service.
     * 
* * repeated .google.api.LogDescriptor logs = 23; */ public int getLogsCount() { if (logsBuilder_ == null) { return logs_.size(); } else { return logsBuilder_.getCount(); } } /** *
     * Defines the logs used by this service.
     * 
* * repeated .google.api.LogDescriptor logs = 23; */ public com.google.api.LogDescriptor getLogs(int index) { if (logsBuilder_ == null) { return logs_.get(index); } else { return logsBuilder_.getMessage(index); } } /** *
     * Defines the logs used by this service.
     * 
* * repeated .google.api.LogDescriptor logs = 23; */ public Builder setLogs( int index, com.google.api.LogDescriptor value) { if (logsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLogsIsMutable(); logs_.set(index, value); onChanged(); } else { logsBuilder_.setMessage(index, value); } 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) { if (logsBuilder_ == null) { ensureLogsIsMutable(); logs_.set(index, builderForValue.build()); onChanged(); } else { logsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Defines the logs used by this service.
     * 
* * repeated .google.api.LogDescriptor logs = 23; */ public Builder addLogs(com.google.api.LogDescriptor value) { if (logsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLogsIsMutable(); logs_.add(value); onChanged(); } else { logsBuilder_.addMessage(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) { if (logsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLogsIsMutable(); logs_.add(index, value); onChanged(); } else { logsBuilder_.addMessage(index, value); } return this; } /** *
     * Defines the logs used by this service.
     * 
* * repeated .google.api.LogDescriptor logs = 23; */ public Builder addLogs( com.google.api.LogDescriptor.Builder builderForValue) { if (logsBuilder_ == null) { ensureLogsIsMutable(); logs_.add(builderForValue.build()); onChanged(); } else { logsBuilder_.addMessage(builderForValue.build()); } 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) { if (logsBuilder_ == null) { ensureLogsIsMutable(); logs_.add(index, builderForValue.build()); onChanged(); } else { logsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Defines the logs used by this service.
     * 
* * repeated .google.api.LogDescriptor logs = 23; */ public Builder addAllLogs( java.lang.Iterable values) { if (logsBuilder_ == null) { ensureLogsIsMutable(); com.google.proto4pingcap.AbstractMessageLite.Builder.addAll( values, logs_); onChanged(); } else { logsBuilder_.addAllMessages(values); } return this; } /** *
     * Defines the logs used by this service.
     * 
* * repeated .google.api.LogDescriptor logs = 23; */ public Builder clearLogs() { if (logsBuilder_ == null) { logs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00020000); onChanged(); } else { logsBuilder_.clear(); } return this; } /** *
     * Defines the logs used by this service.
     * 
* * repeated .google.api.LogDescriptor logs = 23; */ public Builder removeLogs(int index) { if (logsBuilder_ == null) { ensureLogsIsMutable(); logs_.remove(index); onChanged(); } else { logsBuilder_.remove(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) { 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) { if (logsBuilder_ == null) { 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() { if (logsBuilder_ != null) { return logsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(logs_); } } /** *
     * Defines the logs used by this service.
     * 
* * repeated .google.api.LogDescriptor logs = 23; */ public com.google.api.LogDescriptor.Builder addLogsBuilder() { 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()); } /** *
     * Defines the logs used by this service.
     * 
* * repeated .google.api.LogDescriptor logs = 23; */ public java.util.List getLogsBuilderList() { return getLogsFieldBuilder().getBuilderList(); } private com.google.proto4pingcap.RepeatedFieldBuilderV3< com.google.api.LogDescriptor, com.google.api.LogDescriptor.Builder, com.google.api.LogDescriptorOrBuilder> getLogsFieldBuilder() { if (logsBuilder_ == null) { logsBuilder_ = new com.google.proto4pingcap.RepeatedFieldBuilderV3< com.google.api.LogDescriptor, com.google.api.LogDescriptor.Builder, com.google.api.LogDescriptorOrBuilder>( logs_, ((bitField0_ & 0x00020000) == 0x00020000), getParentForChildren(), isClean()); logs_ = null; } return logsBuilder_; } private java.util.List metrics_ = java.util.Collections.emptyList(); private void ensureMetricsIsMutable() { if (!((bitField0_ & 0x00040000) == 0x00040000)) { metrics_ = new java.util.ArrayList(metrics_); bitField0_ |= 0x00040000; } } private com.google.proto4pingcap.RepeatedFieldBuilderV3< com.google.api.MetricDescriptor, com.google.api.MetricDescriptor.Builder, com.google.api.MetricDescriptorOrBuilder> metricsBuilder_; /** *
     * Defines the metrics used by this service.
     * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ public java.util.List getMetricsList() { if (metricsBuilder_ == null) { return java.util.Collections.unmodifiableList(metrics_); } else { return metricsBuilder_.getMessageList(); } } /** *
     * Defines the metrics used by this service.
     * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ public int getMetricsCount() { if (metricsBuilder_ == null) { return metrics_.size(); } else { return metricsBuilder_.getCount(); } } /** *
     * Defines the metrics used by this service.
     * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ public com.google.api.MetricDescriptor getMetrics(int index) { if (metricsBuilder_ == null) { return metrics_.get(index); } else { return metricsBuilder_.getMessage(index); } } /** *
     * Defines the metrics used by this service.
     * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ public Builder setMetrics( int index, com.google.api.MetricDescriptor value) { if (metricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetricsIsMutable(); metrics_.set(index, value); onChanged(); } else { metricsBuilder_.setMessage(index, value); } 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) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.set(index, builderForValue.build()); onChanged(); } else { metricsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Defines the metrics used by this service.
     * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ public Builder addMetrics(com.google.api.MetricDescriptor value) { if (metricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetricsIsMutable(); metrics_.add(value); onChanged(); } else { metricsBuilder_.addMessage(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) { if (metricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetricsIsMutable(); metrics_.add(index, value); onChanged(); } else { metricsBuilder_.addMessage(index, value); } return this; } /** *
     * Defines the metrics used by this service.
     * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ public Builder addMetrics( com.google.api.MetricDescriptor.Builder builderForValue) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.add(builderForValue.build()); onChanged(); } else { metricsBuilder_.addMessage(builderForValue.build()); } 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) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.add(index, builderForValue.build()); onChanged(); } else { metricsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Defines the metrics used by this service.
     * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ public Builder addAllMetrics( java.lang.Iterable values) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); com.google.proto4pingcap.AbstractMessageLite.Builder.addAll( values, metrics_); onChanged(); } else { metricsBuilder_.addAllMessages(values); } return this; } /** *
     * Defines the metrics used by this service.
     * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ public Builder clearMetrics() { if (metricsBuilder_ == null) { metrics_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00040000); onChanged(); } else { metricsBuilder_.clear(); } return this; } /** *
     * Defines the metrics used by this service.
     * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ public Builder removeMetrics(int index) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.remove(index); onChanged(); } else { metricsBuilder_.remove(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) { 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) { if (metricsBuilder_ == null) { 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() { if (metricsBuilder_ != null) { return metricsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(metrics_); } } /** *
     * Defines the metrics used by this service.
     * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ public com.google.api.MetricDescriptor.Builder addMetricsBuilder() { 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()); } /** *
     * Defines the metrics used by this service.
     * 
* * repeated .google.api.MetricDescriptor metrics = 24; */ public java.util.List getMetricsBuilderList() { return getMetricsFieldBuilder().getBuilderList(); } private com.google.proto4pingcap.RepeatedFieldBuilderV3< com.google.api.MetricDescriptor, com.google.api.MetricDescriptor.Builder, com.google.api.MetricDescriptorOrBuilder> getMetricsFieldBuilder() { if (metricsBuilder_ == null) { metricsBuilder_ = new com.google.proto4pingcap.RepeatedFieldBuilderV3< com.google.api.MetricDescriptor, com.google.api.MetricDescriptor.Builder, com.google.api.MetricDescriptorOrBuilder>( metrics_, ((bitField0_ & 0x00040000) == 0x00040000), getParentForChildren(), isClean()); metrics_ = null; } return metricsBuilder_; } private java.util.List monitoredResources_ = java.util.Collections.emptyList(); private void ensureMonitoredResourcesIsMutable() { if (!((bitField0_ & 0x00080000) == 0x00080000)) { monitoredResources_ = new java.util.ArrayList(monitoredResources_); bitField0_ |= 0x00080000; } } private com.google.proto4pingcap.RepeatedFieldBuilderV3< 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.
     * 
* * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; */ public java.util.List getMonitoredResourcesList() { if (monitoredResourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(monitoredResources_); } else { return monitoredResourcesBuilder_.getMessageList(); } } /** *
     * 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.
     * 
* * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; */ public int getMonitoredResourcesCount() { if (monitoredResourcesBuilder_ == null) { return monitoredResources_.size(); } else { return monitoredResourcesBuilder_.getCount(); } } /** *
     * 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.
     * 
* * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; */ public com.google.api.MonitoredResourceDescriptor getMonitoredResources(int index) { if (monitoredResourcesBuilder_ == null) { return monitoredResources_.get(index); } else { return monitoredResourcesBuilder_.getMessage(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.
     * 
* * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; */ public Builder setMonitoredResources( int index, com.google.api.MonitoredResourceDescriptor value) { if (monitoredResourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMonitoredResourcesIsMutable(); monitoredResources_.set(index, value); onChanged(); } else { monitoredResourcesBuilder_.setMessage(index, value); } 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.
     * 
* * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; */ public Builder setMonitoredResources( int index, com.google.api.MonitoredResourceDescriptor.Builder builderForValue) { if (monitoredResourcesBuilder_ == null) { ensureMonitoredResourcesIsMutable(); monitoredResources_.set(index, builderForValue.build()); onChanged(); } else { monitoredResourcesBuilder_.setMessage(index, builderForValue.build()); } 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.
     * 
* * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; */ public Builder addMonitoredResources(com.google.api.MonitoredResourceDescriptor value) { if (monitoredResourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMonitoredResourcesIsMutable(); monitoredResources_.add(value); onChanged(); } else { monitoredResourcesBuilder_.addMessage(value); } 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.
     * 
* * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; */ public Builder addMonitoredResources( int index, com.google.api.MonitoredResourceDescriptor value) { if (monitoredResourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMonitoredResourcesIsMutable(); monitoredResources_.add(index, value); onChanged(); } else { monitoredResourcesBuilder_.addMessage(index, value); } 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.
     * 
* * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; */ public Builder addMonitoredResources( com.google.api.MonitoredResourceDescriptor.Builder builderForValue) { if (monitoredResourcesBuilder_ == null) { ensureMonitoredResourcesIsMutable(); monitoredResources_.add(builderForValue.build()); onChanged(); } else { monitoredResourcesBuilder_.addMessage(builderForValue.build()); } 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.
     * 
* * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; */ public Builder addMonitoredResources( int index, com.google.api.MonitoredResourceDescriptor.Builder builderForValue) { if (monitoredResourcesBuilder_ == null) { ensureMonitoredResourcesIsMutable(); monitoredResources_.add(index, builderForValue.build()); onChanged(); } else { monitoredResourcesBuilder_.addMessage(index, builderForValue.build()); } 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.
     * 
* * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; */ public Builder addAllMonitoredResources( java.lang.Iterable values) { if (monitoredResourcesBuilder_ == null) { ensureMonitoredResourcesIsMutable(); com.google.proto4pingcap.AbstractMessageLite.Builder.addAll( values, monitoredResources_); onChanged(); } else { monitoredResourcesBuilder_.addAllMessages(values); } 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.
     * 
* * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; */ public Builder clearMonitoredResources() { if (monitoredResourcesBuilder_ == null) { monitoredResources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00080000); onChanged(); } else { monitoredResourcesBuilder_.clear(); } 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.
     * 
* * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; */ public Builder removeMonitoredResources(int index) { if (monitoredResourcesBuilder_ == null) { ensureMonitoredResourcesIsMutable(); monitoredResources_.remove(index); onChanged(); } else { monitoredResourcesBuilder_.remove(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.
     * 
* * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; */ public com.google.api.MonitoredResourceDescriptor.Builder getMonitoredResourcesBuilder( int index) { 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.
     * 
* * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; */ public com.google.api.MonitoredResourceDescriptorOrBuilder getMonitoredResourcesOrBuilder( int index) { if (monitoredResourcesBuilder_ == null) { 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.
     * 
* * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; */ public java.util.List getMonitoredResourcesOrBuilderList() { if (monitoredResourcesBuilder_ != null) { return monitoredResourcesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(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.
     * 
* * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; */ public com.google.api.MonitoredResourceDescriptor.Builder addMonitoredResourcesBuilder() { 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.
     * 
* * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; */ public com.google.api.MonitoredResourceDescriptor.Builder addMonitoredResourcesBuilder( int index) { 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.
     * 
* * repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; */ public java.util.List getMonitoredResourcesBuilderList() { return getMonitoredResourcesFieldBuilder().getBuilderList(); } private com.google.proto4pingcap.RepeatedFieldBuilderV3< com.google.api.MonitoredResourceDescriptor, com.google.api.MonitoredResourceDescriptor.Builder, com.google.api.MonitoredResourceDescriptorOrBuilder> getMonitoredResourcesFieldBuilder() { if (monitoredResourcesBuilder_ == null) { monitoredResourcesBuilder_ = new com.google.proto4pingcap.RepeatedFieldBuilderV3< com.google.api.MonitoredResourceDescriptor, com.google.api.MonitoredResourceDescriptor.Builder, com.google.api.MonitoredResourceDescriptorOrBuilder>( monitoredResources_, ((bitField0_ & 0x00080000) == 0x00080000), getParentForChildren(), isClean()); monitoredResources_ = null; } return monitoredResourcesBuilder_; } private com.google.api.Logging logging_ = null; private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.Logging, com.google.api.Logging.Builder, com.google.api.LoggingOrBuilder> loggingBuilder_; /** *
     * Logging configuration.
     * 
* * .google.api.Logging logging = 27; */ public boolean hasLogging() { return loggingBuilder_ != null || logging_ != null; } /** *
     * Logging configuration.
     * 
* * .google.api.Logging logging = 27; */ public com.google.api.Logging getLogging() { if (loggingBuilder_ == null) { return logging_ == null ? com.google.api.Logging.getDefaultInstance() : logging_; } else { return loggingBuilder_.getMessage(); } } /** *
     * Logging configuration.
     * 
* * .google.api.Logging logging = 27; */ public Builder setLogging(com.google.api.Logging value) { if (loggingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } logging_ = value; onChanged(); } else { loggingBuilder_.setMessage(value); } return this; } /** *
     * Logging configuration.
     * 
* * .google.api.Logging logging = 27; */ public Builder setLogging( com.google.api.Logging.Builder builderForValue) { if (loggingBuilder_ == null) { logging_ = builderForValue.build(); onChanged(); } else { loggingBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Logging configuration.
     * 
* * .google.api.Logging logging = 27; */ public Builder mergeLogging(com.google.api.Logging value) { if (loggingBuilder_ == null) { if (logging_ != null) { logging_ = com.google.api.Logging.newBuilder(logging_).mergeFrom(value).buildPartial(); } else { logging_ = value; } onChanged(); } else { loggingBuilder_.mergeFrom(value); } return this; } /** *
     * Logging configuration.
     * 
* * .google.api.Logging logging = 27; */ public Builder clearLogging() { if (loggingBuilder_ == null) { logging_ = null; onChanged(); } else { logging_ = null; loggingBuilder_ = null; } return this; } /** *
     * Logging configuration.
     * 
* * .google.api.Logging logging = 27; */ public com.google.api.Logging.Builder getLoggingBuilder() { onChanged(); return getLoggingFieldBuilder().getBuilder(); } /** *
     * Logging configuration.
     * 
* * .google.api.Logging logging = 27; */ public com.google.api.LoggingOrBuilder getLoggingOrBuilder() { if (loggingBuilder_ != null) { return loggingBuilder_.getMessageOrBuilder(); } else { return logging_ == null ? com.google.api.Logging.getDefaultInstance() : logging_; } } /** *
     * Logging configuration.
     * 
* * .google.api.Logging logging = 27; */ private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.Logging, com.google.api.Logging.Builder, com.google.api.LoggingOrBuilder> getLoggingFieldBuilder() { if (loggingBuilder_ == null) { loggingBuilder_ = new com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.Logging, com.google.api.Logging.Builder, com.google.api.LoggingOrBuilder>( getLogging(), getParentForChildren(), isClean()); logging_ = null; } return loggingBuilder_; } private com.google.api.Monitoring monitoring_ = null; private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.Monitoring, com.google.api.Monitoring.Builder, com.google.api.MonitoringOrBuilder> monitoringBuilder_; /** *
     * Monitoring configuration.
     * 
* * .google.api.Monitoring monitoring = 28; */ public boolean hasMonitoring() { return monitoringBuilder_ != null || monitoring_ != null; } /** *
     * Monitoring configuration.
     * 
* * .google.api.Monitoring monitoring = 28; */ public com.google.api.Monitoring getMonitoring() { if (monitoringBuilder_ == null) { return monitoring_ == null ? com.google.api.Monitoring.getDefaultInstance() : monitoring_; } else { return monitoringBuilder_.getMessage(); } } /** *
     * Monitoring configuration.
     * 
* * .google.api.Monitoring monitoring = 28; */ public Builder setMonitoring(com.google.api.Monitoring value) { if (monitoringBuilder_ == null) { if (value == null) { throw new NullPointerException(); } monitoring_ = value; onChanged(); } else { monitoringBuilder_.setMessage(value); } return this; } /** *
     * Monitoring configuration.
     * 
* * .google.api.Monitoring monitoring = 28; */ public Builder setMonitoring( com.google.api.Monitoring.Builder builderForValue) { if (monitoringBuilder_ == null) { monitoring_ = builderForValue.build(); onChanged(); } else { monitoringBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Monitoring configuration.
     * 
* * .google.api.Monitoring monitoring = 28; */ public Builder mergeMonitoring(com.google.api.Monitoring value) { if (monitoringBuilder_ == null) { if (monitoring_ != null) { monitoring_ = com.google.api.Monitoring.newBuilder(monitoring_).mergeFrom(value).buildPartial(); } else { monitoring_ = value; } onChanged(); } else { monitoringBuilder_.mergeFrom(value); } return this; } /** *
     * Monitoring configuration.
     * 
* * .google.api.Monitoring monitoring = 28; */ public Builder clearMonitoring() { if (monitoringBuilder_ == null) { monitoring_ = null; onChanged(); } else { monitoring_ = null; monitoringBuilder_ = null; } return this; } /** *
     * Monitoring configuration.
     * 
* * .google.api.Monitoring monitoring = 28; */ public com.google.api.Monitoring.Builder getMonitoringBuilder() { onChanged(); return getMonitoringFieldBuilder().getBuilder(); } /** *
     * Monitoring configuration.
     * 
* * .google.api.Monitoring monitoring = 28; */ public com.google.api.MonitoringOrBuilder getMonitoringOrBuilder() { if (monitoringBuilder_ != null) { return monitoringBuilder_.getMessageOrBuilder(); } else { return monitoring_ == null ? com.google.api.Monitoring.getDefaultInstance() : monitoring_; } } /** *
     * Monitoring configuration.
     * 
* * .google.api.Monitoring monitoring = 28; */ private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.Monitoring, com.google.api.Monitoring.Builder, com.google.api.MonitoringOrBuilder> getMonitoringFieldBuilder() { if (monitoringBuilder_ == null) { monitoringBuilder_ = new com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.Monitoring, com.google.api.Monitoring.Builder, com.google.api.MonitoringOrBuilder>( getMonitoring(), getParentForChildren(), isClean()); monitoring_ = null; } return monitoringBuilder_; } private com.google.api.SystemParameters systemParameters_ = null; private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.SystemParameters, com.google.api.SystemParameters.Builder, com.google.api.SystemParametersOrBuilder> systemParametersBuilder_; /** *
     * System parameter configuration.
     * 
* * .google.api.SystemParameters system_parameters = 29; */ public boolean hasSystemParameters() { return systemParametersBuilder_ != null || systemParameters_ != null; } /** *
     * System parameter configuration.
     * 
* * .google.api.SystemParameters system_parameters = 29; */ public com.google.api.SystemParameters getSystemParameters() { if (systemParametersBuilder_ == null) { return systemParameters_ == null ? com.google.api.SystemParameters.getDefaultInstance() : systemParameters_; } else { return systemParametersBuilder_.getMessage(); } } /** *
     * System parameter configuration.
     * 
* * .google.api.SystemParameters system_parameters = 29; */ public Builder setSystemParameters(com.google.api.SystemParameters value) { if (systemParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } systemParameters_ = value; onChanged(); } else { systemParametersBuilder_.setMessage(value); } return this; } /** *
     * System parameter configuration.
     * 
* * .google.api.SystemParameters system_parameters = 29; */ public Builder setSystemParameters( com.google.api.SystemParameters.Builder builderForValue) { if (systemParametersBuilder_ == null) { systemParameters_ = builderForValue.build(); onChanged(); } else { systemParametersBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * System parameter configuration.
     * 
* * .google.api.SystemParameters system_parameters = 29; */ public Builder mergeSystemParameters(com.google.api.SystemParameters value) { if (systemParametersBuilder_ == null) { if (systemParameters_ != null) { systemParameters_ = com.google.api.SystemParameters.newBuilder(systemParameters_).mergeFrom(value).buildPartial(); } else { systemParameters_ = value; } onChanged(); } else { systemParametersBuilder_.mergeFrom(value); } return this; } /** *
     * System parameter configuration.
     * 
* * .google.api.SystemParameters system_parameters = 29; */ public Builder clearSystemParameters() { if (systemParametersBuilder_ == null) { systemParameters_ = null; onChanged(); } else { systemParameters_ = null; systemParametersBuilder_ = null; } return this; } /** *
     * System parameter configuration.
     * 
* * .google.api.SystemParameters system_parameters = 29; */ public com.google.api.SystemParameters.Builder getSystemParametersBuilder() { onChanged(); return getSystemParametersFieldBuilder().getBuilder(); } /** *
     * System parameter configuration.
     * 
* * .google.api.SystemParameters system_parameters = 29; */ public com.google.api.SystemParametersOrBuilder getSystemParametersOrBuilder() { if (systemParametersBuilder_ != null) { return systemParametersBuilder_.getMessageOrBuilder(); } else { return systemParameters_ == null ? com.google.api.SystemParameters.getDefaultInstance() : systemParameters_; } } /** *
     * System parameter configuration.
     * 
* * .google.api.SystemParameters system_parameters = 29; */ private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.SystemParameters, com.google.api.SystemParameters.Builder, com.google.api.SystemParametersOrBuilder> getSystemParametersFieldBuilder() { if (systemParametersBuilder_ == null) { systemParametersBuilder_ = new com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.SystemParameters, com.google.api.SystemParameters.Builder, com.google.api.SystemParametersOrBuilder>( getSystemParameters(), getParentForChildren(), isClean()); systemParameters_ = null; } return systemParametersBuilder_; } private com.google.api.SourceInfo sourceInfo_ = null; private com.google.proto4pingcap.SingleFieldBuilderV3< 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; */ public boolean hasSourceInfo() { return sourceInfoBuilder_ != null || sourceInfo_ != null; } /** *
     * Output only. The source information for this configuration if available.
     * 
* * .google.api.SourceInfo source_info = 37; */ public com.google.api.SourceInfo getSourceInfo() { if (sourceInfoBuilder_ == null) { return sourceInfo_ == null ? com.google.api.SourceInfo.getDefaultInstance() : sourceInfo_; } else { return sourceInfoBuilder_.getMessage(); } } /** *
     * Output only. The source information for this configuration if available.
     * 
* * .google.api.SourceInfo source_info = 37; */ public Builder setSourceInfo(com.google.api.SourceInfo value) { if (sourceInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sourceInfo_ = value; onChanged(); } else { sourceInfoBuilder_.setMessage(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) { if (sourceInfoBuilder_ == null) { sourceInfo_ = builderForValue.build(); onChanged(); } else { sourceInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Output only. The source information for this configuration if available.
     * 
* * .google.api.SourceInfo source_info = 37; */ public Builder mergeSourceInfo(com.google.api.SourceInfo value) { if (sourceInfoBuilder_ == null) { if (sourceInfo_ != null) { sourceInfo_ = com.google.api.SourceInfo.newBuilder(sourceInfo_).mergeFrom(value).buildPartial(); } else { sourceInfo_ = value; } onChanged(); } else { sourceInfoBuilder_.mergeFrom(value); } return this; } /** *
     * Output only. The source information for this configuration if available.
     * 
* * .google.api.SourceInfo source_info = 37; */ public Builder clearSourceInfo() { if (sourceInfoBuilder_ == null) { sourceInfo_ = null; onChanged(); } else { sourceInfo_ = null; sourceInfoBuilder_ = null; } return this; } /** *
     * Output only. The source information for this configuration if available.
     * 
* * .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.
     * 
* * .google.api.SourceInfo source_info = 37; */ public com.google.api.SourceInfoOrBuilder getSourceInfoOrBuilder() { if (sourceInfoBuilder_ != null) { return sourceInfoBuilder_.getMessageOrBuilder(); } else { return sourceInfo_ == null ? com.google.api.SourceInfo.getDefaultInstance() : sourceInfo_; } } /** *
     * Output only. The source information for this configuration if available.
     * 
* * .google.api.SourceInfo source_info = 37; */ private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.SourceInfo, com.google.api.SourceInfo.Builder, com.google.api.SourceInfoOrBuilder> getSourceInfoFieldBuilder() { if (sourceInfoBuilder_ == null) { sourceInfoBuilder_ = new com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.SourceInfo, com.google.api.SourceInfo.Builder, com.google.api.SourceInfoOrBuilder>( getSourceInfo(), getParentForChildren(), isClean()); sourceInfo_ = null; } return sourceInfoBuilder_; } private com.google.api.Experimental experimental_ = null; private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.Experimental, com.google.api.Experimental.Builder, com.google.api.ExperimentalOrBuilder> experimentalBuilder_; /** *
     * Experimental configuration.
     * 
* * .google.api.Experimental experimental = 101; */ public boolean hasExperimental() { return experimentalBuilder_ != null || experimental_ != null; } /** *
     * Experimental configuration.
     * 
* * .google.api.Experimental experimental = 101; */ public com.google.api.Experimental getExperimental() { if (experimentalBuilder_ == null) { return experimental_ == null ? com.google.api.Experimental.getDefaultInstance() : experimental_; } else { return experimentalBuilder_.getMessage(); } } /** *
     * Experimental configuration.
     * 
* * .google.api.Experimental experimental = 101; */ public Builder setExperimental(com.google.api.Experimental value) { if (experimentalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } experimental_ = value; onChanged(); } else { experimentalBuilder_.setMessage(value); } return this; } /** *
     * Experimental configuration.
     * 
* * .google.api.Experimental experimental = 101; */ public Builder setExperimental( com.google.api.Experimental.Builder builderForValue) { if (experimentalBuilder_ == null) { experimental_ = builderForValue.build(); onChanged(); } else { experimentalBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Experimental configuration.
     * 
* * .google.api.Experimental experimental = 101; */ public Builder mergeExperimental(com.google.api.Experimental value) { if (experimentalBuilder_ == null) { if (experimental_ != null) { experimental_ = com.google.api.Experimental.newBuilder(experimental_).mergeFrom(value).buildPartial(); } else { experimental_ = value; } onChanged(); } else { experimentalBuilder_.mergeFrom(value); } return this; } /** *
     * Experimental configuration.
     * 
* * .google.api.Experimental experimental = 101; */ public Builder clearExperimental() { if (experimentalBuilder_ == null) { experimental_ = null; onChanged(); } else { experimental_ = null; experimentalBuilder_ = null; } return this; } /** *
     * Experimental configuration.
     * 
* * .google.api.Experimental experimental = 101; */ public com.google.api.Experimental.Builder getExperimentalBuilder() { onChanged(); return getExperimentalFieldBuilder().getBuilder(); } /** *
     * Experimental configuration.
     * 
* * .google.api.Experimental experimental = 101; */ public com.google.api.ExperimentalOrBuilder getExperimentalOrBuilder() { if (experimentalBuilder_ != null) { return experimentalBuilder_.getMessageOrBuilder(); } else { return experimental_ == null ? com.google.api.Experimental.getDefaultInstance() : experimental_; } } /** *
     * Experimental configuration.
     * 
* * .google.api.Experimental experimental = 101; */ private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.Experimental, com.google.api.Experimental.Builder, com.google.api.ExperimentalOrBuilder> getExperimentalFieldBuilder() { if (experimentalBuilder_ == null) { experimentalBuilder_ = new com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.Experimental, com.google.api.Experimental.Builder, com.google.api.ExperimentalOrBuilder>( getExperimental(), getParentForChildren(), isClean()); experimental_ = null; } return experimentalBuilder_; } public final Builder setUnknownFields( final com.google.proto4pingcap.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.proto4pingcap.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:google.api.Service) } // @@protoc_insertion_point(class_scope:google.api.Service) private static final com.google.api.Service DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.api.Service(); } public static com.google.api.Service getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.proto4pingcap.Parser PARSER = new com.google.proto4pingcap.AbstractParser() { public Service parsePartialFrom( com.google.proto4pingcap.CodedInputStream input, com.google.proto4pingcap.ExtensionRegistryLite extensionRegistry) throws com.google.proto4pingcap.InvalidProtocolBufferException { return new Service(input, extensionRegistry); } }; public static com.google.proto4pingcap.Parser parser() { return PARSER; } @java.lang.Override public com.google.proto4pingcap.Parser getParserForType() { return PARSER; } public com.google.api.Service getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy