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
// Protobuf Java Version: 3.25.3
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.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.api.Service)
ServiceOrBuilder {
private static final long serialVersionUID = 0L;
// Use Service.newBuilder() to construct.
private Service(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Service() {
name_ = "";
id_ = "";
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
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Service();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.api.ServiceProto.internal_static_google_api_Service_descriptor;
}
@java.lang.Override
protected com.google.protobuf.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.protobuf.UInt32Value configVersion_;
/**
*
* The semantic version of the service configuration. The config version
* affects the interpretation of the service configuration. For example,
* certain features are enabled by default for certain config versions.
* The latest config version is `3`.
*
*
* .google.protobuf.UInt32Value config_version = 20;
* @return Whether the configVersion field is set.
*/
@java.lang.Override
public boolean hasConfigVersion() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The semantic version of the service configuration. The config version
* affects the interpretation of the service configuration. For example,
* certain features are enabled by default for certain config versions.
* The latest config version is `3`.
*
* The semantic version of the service configuration. The config version
* affects the interpretation of the service configuration. For example,
* certain features are enabled by default for certain config versions.
* The latest config version is `3`.
*
*
* .google.protobuf.UInt32Value config_version = 20;
*/
@java.lang.Override
public com.google.protobuf.UInt32ValueOrBuilder getConfigVersionOrBuilder() {
return configVersion_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : configVersion_;
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
* The DNS address at which this service is available,
* e.g. `calendar.googleapis.com`.
*
*
* string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* The DNS address at which this service is available,
* e.g. `calendar.googleapis.com`.
*
*
* string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ID_FIELD_NUMBER = 33;
@SuppressWarnings("serial")
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;
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
*
* 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;
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TITLE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object title_ = "";
/**
*
* The product title for this service.
*
*
* string title = 2;
* @return The title.
*/
@java.lang.Override
public java.lang.String getTitle() {
java.lang.Object ref = title_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
title_ = s;
return s;
}
}
/**
*
* The product title for this service.
*
*
* string title = 2;
* @return The bytes for title.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PRODUCER_PROJECT_ID_FIELD_NUMBER = 22;
@SuppressWarnings("serial")
private volatile java.lang.Object producerProjectId_ = "";
/**
*
*
* string producer_project_id = 22;
* @return The bytes for producerProjectId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getProducerProjectIdBytes() {
java.lang.Object ref = producerProjectId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
producerProjectId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int APIS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
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;
*/
@java.lang.Override
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;
*/
@java.lang.Override
public com.google.protobuf.ApiOrBuilder getApisOrBuilder(
int index) {
return apis_.get(index);
}
public static final int TYPES_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
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;
*/
@java.lang.Override
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;
*/
@java.lang.Override
public com.google.protobuf.TypeOrBuilder getTypesOrBuilder(
int index) {
return types_.get(index);
}
public static final int ENUMS_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
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;
*/
@java.lang.Override
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;
*/
@java.lang.Override
public com.google.protobuf.EnumOrBuilder getEnumsOrBuilder(
int index) {
return enums_.get(index);
}
public static final int DOCUMENTATION_FIELD_NUMBER = 6;
private com.google.api.Documentation documentation_;
/**
*
* Additional API documentation.
*
*
* .google.api.Documentation documentation = 6;
* @return Whether the documentation field is set.
*/
@java.lang.Override
public boolean hasDocumentation() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Configuration controlling usage of this service.
*
*
* .google.api.Usage usage = 15;
*/
@java.lang.Override
public com.google.api.UsageOrBuilder getUsageOrBuilder() {
return usage_ == null ? com.google.api.Usage.getDefaultInstance() : usage_;
}
public static final int ENDPOINTS_FIELD_NUMBER = 18;
@SuppressWarnings("serial")
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;
*/
@java.lang.Override
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;
*/
@java.lang.Override
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;
* @return Whether the control field is set.
*/
@java.lang.Override
public boolean hasControl() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Configuration for the service control plane.
*
*
* .google.api.Control control = 21;
* @return The control.
*/
@java.lang.Override
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;
*/
@java.lang.Override
public com.google.api.ControlOrBuilder getControlOrBuilder() {
return control_ == null ? com.google.api.Control.getDefaultInstance() : control_;
}
public static final int LOGS_FIELD_NUMBER = 23;
@SuppressWarnings("serial")
private java.util.List logs_;
/**
*
*
* repeated .google.api.MetricDescriptor metrics = 24;
*/
@java.lang.Override
public com.google.api.MetricDescriptorOrBuilder getMetricsOrBuilder(
int index) {
return metrics_.get(index);
}
public static final int MONITORED_RESOURCES_FIELD_NUMBER = 25;
@SuppressWarnings("serial")
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;
*/
@java.lang.Override
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;
*/
@java.lang.Override
public com.google.api.MonitoredResourceDescriptorOrBuilder getMonitoredResourcesOrBuilder(
int index) {
return monitoredResources_.get(index);
}
public static final int BILLING_FIELD_NUMBER = 26;
private com.google.api.Billing billing_;
/**
*
* Billing configuration.
*
*
* .google.api.Billing billing = 26;
* @return Whether the billing field is set.
*/
@java.lang.Override
public boolean hasBilling() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* Output only. The source information for this configuration if available.
*
*
* .google.api.SourceInfo source_info = 37;
*/
@java.lang.Override
public com.google.api.SourceInfoOrBuilder getSourceInfoOrBuilder() {
return sourceInfo_ == null ? com.google.api.SourceInfo.getDefaultInstance() : sourceInfo_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
com.google.protobuf.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 (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(6, getDocumentation());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(8, getBackend());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(9, getHttp());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(10, getQuota());
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(11, getAuthentication());
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(12, getContext());
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeMessage(15, getUsage());
}
for (int i = 0; i < endpoints_.size(); i++) {
output.writeMessage(18, endpoints_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(20, getConfigVersion());
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeMessage(21, getControl());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(producerProjectId_)) {
com.google.protobuf.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 (((bitField0_ & 0x00000200) != 0)) {
output.writeMessage(26, getBilling());
}
if (((bitField0_ & 0x00000400) != 0)) {
output.writeMessage(27, getLogging());
}
if (((bitField0_ & 0x00000800) != 0)) {
output.writeMessage(28, getMonitoring());
}
if (((bitField0_ & 0x00001000) != 0)) {
output.writeMessage(29, getSystemParameters());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 33, id_);
}
if (((bitField0_ & 0x00002000) != 0)) {
output.writeMessage(37, getSourceInfo());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_);
}
for (int i = 0; i < apis_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, apis_.get(i));
}
for (int i = 0; i < types_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, types_.get(i));
}
for (int i = 0; i < enums_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, enums_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getDocumentation());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getBackend());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getHttp());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getQuota());
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getAuthentication());
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getContext());
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getUsage());
}
for (int i = 0; i < endpoints_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, endpoints_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(20, getConfigVersion());
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(21, getControl());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(producerProjectId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, producerProjectId_);
}
for (int i = 0; i < logs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(23, logs_.get(i));
}
for (int i = 0; i < metrics_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(24, metrics_.get(i));
}
for (int i = 0; i < monitoredResources_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(25, monitoredResources_.get(i));
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(26, getBilling());
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(27, getLogging());
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(28, getMonitoring());
}
if (((bitField0_ & 0x00001000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(29, getSystemParameters());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, id_);
}
if (((bitField0_ & 0x00002000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(37, getSourceInfo());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.api.Service)) {
return super.equals(obj);
}
com.google.api.Service other = (com.google.api.Service) obj;
if (hasConfigVersion() != other.hasConfigVersion()) return false;
if (hasConfigVersion()) {
if (!getConfigVersion()
.equals(other.getConfigVersion())) return false;
}
if (!getName()
.equals(other.getName())) return false;
if (!getId()
.equals(other.getId())) return false;
if (!getTitle()
.equals(other.getTitle())) return false;
if (!getProducerProjectId()
.equals(other.getProducerProjectId())) return false;
if (!getApisList()
.equals(other.getApisList())) return false;
if (!getTypesList()
.equals(other.getTypesList())) return false;
if (!getEnumsList()
.equals(other.getEnumsList())) return false;
if (hasDocumentation() != other.hasDocumentation()) return false;
if (hasDocumentation()) {
if (!getDocumentation()
.equals(other.getDocumentation())) return false;
}
if (hasBackend() != other.hasBackend()) return false;
if (hasBackend()) {
if (!getBackend()
.equals(other.getBackend())) return false;
}
if (hasHttp() != other.hasHttp()) return false;
if (hasHttp()) {
if (!getHttp()
.equals(other.getHttp())) return false;
}
if (hasQuota() != other.hasQuota()) return false;
if (hasQuota()) {
if (!getQuota()
.equals(other.getQuota())) return false;
}
if (hasAuthentication() != other.hasAuthentication()) return false;
if (hasAuthentication()) {
if (!getAuthentication()
.equals(other.getAuthentication())) return false;
}
if (hasContext() != other.hasContext()) return false;
if (hasContext()) {
if (!getContext()
.equals(other.getContext())) return false;
}
if (hasUsage() != other.hasUsage()) return false;
if (hasUsage()) {
if (!getUsage()
.equals(other.getUsage())) return false;
}
if (!getEndpointsList()
.equals(other.getEndpointsList())) return false;
if (hasControl() != other.hasControl()) return false;
if (hasControl()) {
if (!getControl()
.equals(other.getControl())) return false;
}
if (!getLogsList()
.equals(other.getLogsList())) return false;
if (!getMetricsList()
.equals(other.getMetricsList())) return false;
if (!getMonitoredResourcesList()
.equals(other.getMonitoredResourcesList())) return false;
if (hasBilling() != other.hasBilling()) return false;
if (hasBilling()) {
if (!getBilling()
.equals(other.getBilling())) return false;
}
if (hasLogging() != other.hasLogging()) return false;
if (hasLogging()) {
if (!getLogging()
.equals(other.getLogging())) return false;
}
if (hasMonitoring() != other.hasMonitoring()) return false;
if (hasMonitoring()) {
if (!getMonitoring()
.equals(other.getMonitoring())) return false;
}
if (hasSystemParameters() != other.hasSystemParameters()) return false;
if (hasSystemParameters()) {
if (!getSystemParameters()
.equals(other.getSystemParameters())) return false;
}
if (hasSourceInfo() != other.hasSourceInfo()) return false;
if (hasSourceInfo()) {
if (!getSourceInfo()
.equals(other.getSourceInfo())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@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 (hasBilling()) {
hash = (37 * hash) + BILLING_FIELD_NUMBER;
hash = (53 * hash) + getBilling().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();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.api.Service parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.api.Service parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.api.Service parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.api.Service parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.api.Service parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.api.Service parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.api.Service parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.api.Service parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.api.Service parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.api.Service parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.api.Service parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.api.Service parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
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);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* `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 semantic version of the service configuration. The config version
* affects the interpretation of the service configuration. For example,
* certain features are enabled by default for certain config versions.
* The latest config version is `3`.
*
*
* .google.protobuf.UInt32Value config_version = 20;
* @return Whether the configVersion field is set.
*/
public boolean hasConfigVersion() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The semantic version of the service configuration. The config version
* affects the interpretation of the service configuration. For example,
* certain features are enabled by default for certain config versions.
* The latest config version is `3`.
*
* The semantic version of the service configuration. The config version
* affects the interpretation of the service configuration. For example,
* certain features are enabled by default for certain config versions.
* The latest config version is `3`.
*
* The semantic version of the service configuration. The config version
* affects the interpretation of the service configuration. For example,
* certain features are enabled by default for certain config versions.
* The latest config version is `3`.
*
* The semantic version of the service configuration. The config version
* affects the interpretation of the service configuration. For example,
* certain features are enabled by default for certain config versions.
* The latest config version is `3`.
*
* The semantic version of the service configuration. The config version
* affects the interpretation of the service configuration. For example,
* certain features are enabled by default for certain config versions.
* The latest config version is `3`.
*
* The semantic version of the service configuration. The config version
* affects the interpretation of the service configuration. For example,
* certain features are enabled by default for certain config versions.
* The latest config version is `3`.
*
* The semantic version of the service configuration. The config version
* affects the interpretation of the service configuration. For example,
* certain features are enabled by default for certain config versions.
* The latest config version is `3`.
*
* The semantic version of the service configuration. The config version
* affects the interpretation of the service configuration. For example,
* certain features are enabled by default for certain config versions.
* The latest config version is `3`.
*
* The DNS address at which this service is available,
* e.g. `calendar.googleapis.com`.
*
*
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
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;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The DNS address at which this service is available,
* e.g. `calendar.googleapis.com`.
*
*
* string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The DNS address at which this service is available,
* e.g. `calendar.googleapis.com`.
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* The DNS address at which this service is available,
* e.g. `calendar.googleapis.com`.
*
*
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000002;
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;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* 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;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 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;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
id_ = value;
bitField0_ |= 0x00000004;
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;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
bitField0_ = (bitField0_ & ~0x00000004);
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;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
id_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object title_ = "";
/**
*
* The product title for this service.
*
*
* string title = 2;
* @return The title.
*/
public java.lang.String getTitle() {
java.lang.Object ref = title_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
title_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The product title for this service.
*
*
* string title = 2;
* @return The bytes for title.
*/
public com.google.protobuf.ByteString
getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The product title for this service.
*
*
* string title = 2;
* @param value The title to set.
* @return This builder for chaining.
*/
public Builder setTitle(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
title_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* The product title for this service.
*
*
* string title = 2;
* @return This builder for chaining.
*/
public Builder clearTitle() {
title_ = getDefaultInstance().getTitle();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* The product title for this service.
*
*
* string title = 2;
* @param value The bytes for title to set.
* @return This builder for chaining.
*/
public Builder setTitleBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
title_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object producerProjectId_ = "";
/**
*
*
* string producer_project_id = 22;
* @param value The bytes for producerProjectId to set.
* @return This builder for chaining.
*/
public Builder setProducerProjectIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
producerProjectId_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.util.List apis_ =
java.util.Collections.emptyList();
private void ensureApisIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
apis_ = new java.util.ArrayList(apis_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Api, com.google.protobuf.Api.Builder, com.google.protobuf.ApiOrBuilder> apisBuilder_;
/**
*
* A list of API interfaces exported by this service. Only the `name` field
* of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
* 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.protobuf.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.protobuf.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.protobuf.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.protobuf.Api.Builder getApisBuilder(
int index) {
return getApisFieldBuilder().getBuilder(index);
}
/**
*
* A list of API interfaces exported by this service. Only the `name` field
* of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
* 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.protobuf.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.protobuf.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.protobuf.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.protobuf.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.protobuf.Type.Builder getTypesBuilder(
int index) {
return getTypesFieldBuilder().getBuilder(index);
}
/**
*
* A list of all proto message types included in this API service.
* Types referenced directly or indirectly by the `apis` are
* 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.protobuf.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.protobuf.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.protobuf.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.protobuf.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.protobuf.Enum.Builder getEnumsBuilder(
int index) {
return getEnumsFieldBuilder().getBuilder(index);
}
/**
*
* A list of all enum types included in this API service. Enums
* referenced directly or indirectly by the `apis` are automatically
* 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.protobuf.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.
*
*
* .google.api.Control control = 21;
* @return Whether the control field is set.
*/
public boolean hasControl() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
*
* Configuration for the service control plane.
*
*
* .google.api.Control control = 21;
* @return The control.
*/
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;
} else {
controlBuilder_.setMessage(value);
}
bitField0_ |= 0x00010000;
onChanged();
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 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.
*