Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// 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`.
*
* 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`.
*
* 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`.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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_;
/**
*
* 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.
*
* 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.
*
* 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.
*
* 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;
}
/**
*
*
* 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.
*
* 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.
*
* 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.
*
* 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_;
/**
*
*
* .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
*
* 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`.
*
* 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`.
*
* 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`.
*
* 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`.
*
* 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`.
*
* 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`.
*
* 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`.
*
* 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`.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*