Class Service.Builder (2.14.1)

public static final class Service.Builder extends GeneratedMessageV3.Builder<Service.Builder> implements ServiceOrBuilder

Service is the root object of Google API service configuration (service config). It describes the basic information about a logical service, such as the service name and the user-facing 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. For more information, see each proto message definition. Example: type: google.api.Service name: calendar.googleapis.com title: Google Calendar API apis:

  • name: google.calendar.v3.Calendar visibility: rules:

Protobuf type google.api.Service

Implements

ServiceOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllApis(Iterable<? extends Api> values)

public Service.Builder addAllApis(Iterable<? extends Api> values)

A list of API interfaces exported by this service. Only the name field of the 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;

Parameter
NameDescription
valuesIterable<? extends com.google.protobuf.Api>
Returns
TypeDescription
Service.Builder

addAllEndpoints(Iterable<? extends Endpoint> values)

public Service.Builder addAllEndpoints(Iterable<? extends Endpoint> values)

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;

Parameter
NameDescription
valuesIterable<? extends com.google.api.Endpoint>
Returns
TypeDescription
Service.Builder

addAllEnums(Iterable<? extends Enum> values)

public Service.Builder addAllEnums(Iterable<? extends Enum> values)

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 by the configuration author. Example: enums:

  • name: google.someapi.v1.SomeEnum

repeated .google.protobuf.Enum enums = 5;

Parameter
NameDescription
valuesIterable<? extends com.google.protobuf.Enum>
Returns
TypeDescription
Service.Builder

addAllLogs(Iterable<? extends LogDescriptor> values)

public Service.Builder addAllLogs(Iterable<? extends LogDescriptor> values)

Defines the logs used by this service.

repeated .google.api.LogDescriptor logs = 23;

Parameter
NameDescription
valuesIterable<? extends com.google.api.LogDescriptor>
Returns
TypeDescription
Service.Builder

addAllMetrics(Iterable<? extends MetricDescriptor> values)

public Service.Builder addAllMetrics(Iterable<? extends MetricDescriptor> values)

Defines the metrics used by this service.

repeated .google.api.MetricDescriptor metrics = 24;

Parameter
NameDescription
valuesIterable<? extends com.google.api.MetricDescriptor>
Returns
TypeDescription
Service.Builder

addAllMonitoredResources(Iterable<? extends MonitoredResourceDescriptor> values)

public Service.Builder addAllMonitoredResources(Iterable<? extends MonitoredResourceDescriptor> values)

Defines the monitored resources used by this service. This is required by the Service.monitoring and Service.logging configurations.

repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;

Parameter
NameDescription
valuesIterable<? extends com.google.api.MonitoredResourceDescriptor>
Returns
TypeDescription
Service.Builder

addAllTypes(Iterable<? extends Type> values)

public Service.Builder addAllTypes(Iterable<? extends Type> values)

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 by the configuration author. Example: types:

  • name: google.protobuf.Int32

repeated .google.protobuf.Type types = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.protobuf.Type>
Returns
TypeDescription
Service.Builder

addApis(Api value)

public Service.Builder addApis(Api value)

A list of API interfaces exported by this service. Only the name field of the 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;

Parameter
NameDescription
valueApi
Returns
TypeDescription
Service.Builder

addApis(Api.Builder builderForValue)

public Service.Builder addApis(Api.Builder builderForValue)

A list of API interfaces exported by this service. Only the name field of the 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;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Service.Builder

addApis(int index, Api value)

public Service.Builder addApis(int index, Api value)

A list of API interfaces exported by this service. Only the name field of the 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;

Parameters
NameDescription
indexint
valueApi
Returns
TypeDescription
Service.Builder

addApis(int index, Api.Builder builderForValue)

public Service.Builder addApis(int index, Api.Builder builderForValue)

A list of API interfaces exported by this service. Only the name field of the 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;

Parameters
NameDescription
indexint
builderForValueBuilder
Returns
TypeDescription
Service.Builder

addApisBuilder()

public Api.Builder addApisBuilder()

A list of API interfaces exported by this service. Only the name field of the 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;

Returns
TypeDescription
Builder

addApisBuilder(int index)

public Api.Builder addApisBuilder(int index)

A list of API interfaces exported by this service. Only the name field of the 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;

Parameter
NameDescription
indexint
Returns
TypeDescription
Builder

addEndpoints(Endpoint value)

public Service.Builder addEndpoints(Endpoint value)

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;

Parameter
NameDescription
valueEndpoint
Returns
TypeDescription
Service.Builder

addEndpoints(Endpoint.Builder builderForValue)

public Service.Builder addEndpoints(Endpoint.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueEndpoint.Builder
Returns
TypeDescription
Service.Builder

addEndpoints(int index, Endpoint value)

public Service.Builder addEndpoints(int index, Endpoint value)

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;

Parameters
NameDescription
indexint
valueEndpoint
Returns
TypeDescription
Service.Builder

addEndpoints(int index, Endpoint.Builder builderForValue)

public Service.Builder addEndpoints(int index, Endpoint.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueEndpoint.Builder
Returns
TypeDescription
Service.Builder

addEndpointsBuilder()

public Endpoint.Builder addEndpointsBuilder()

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;

Returns
TypeDescription
Endpoint.Builder

addEndpointsBuilder(int index)

public Endpoint.Builder addEndpointsBuilder(int index)

Configuration for network endpoints. If this is empty, then an endpoint with the same name as the service is automatically generated to service all defined APIs.

repeated .google.api.Endpoint endpoints = 18;

Parameter
NameDescription
indexint
Returns
TypeDescription
Endpoint.Builder

addEnums(Enum value)

public Service.Builder addEnums(Enum value)

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 by the configuration author. Example: enums:

  • name: google.someapi.v1.SomeEnum

repeated .google.protobuf.Enum enums = 5;

Parameter
NameDescription
valueEnum
Returns
TypeDescription
Service.Builder

addEnums(Enum.Builder builderForValue)

public Service.Builder addEnums(Enum.Builder builderForValue)

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 by the configuration author. Example: enums:

  • name: google.someapi.v1.SomeEnum

repeated .google.protobuf.Enum enums = 5;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Service.Builder

addEnums(int index, Enum value)

public Service.Builder addEnums(int index, Enum value)

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 by the configuration author. Example: enums:

  • name: google.someapi.v1.SomeEnum

repeated .google.protobuf.Enum enums = 5;

Parameters
NameDescription
indexint
valueEnum
Returns
TypeDescription
Service.Builder

addEnums(int index, Enum.Builder builderForValue)

public Service.Builder addEnums(int index, Enum.Builder builderForValue)

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 by the configuration author. Example: enums:

  • name: google.someapi.v1.SomeEnum

repeated .google.protobuf.Enum enums = 5;

Parameters
NameDescription
indexint
builderForValueBuilder
Returns
TypeDescription
Service.Builder

addEnumsBuilder()

public Enum.Builder addEnumsBuilder()

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 by the configuration author. Example: enums:

  • name: google.someapi.v1.SomeEnum

repeated .google.protobuf.Enum enums = 5;

Returns
TypeDescription
Builder

addEnumsBuilder(int index)

public Enum.Builder addEnumsBuilder(int 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 by the configuration author. Example: enums:

  • name: google.someapi.v1.SomeEnum

repeated .google.protobuf.Enum enums = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
Builder

addLogs(LogDescriptor value)

public Service.Builder addLogs(LogDescriptor value)

Defines the logs used by this service.

repeated .google.api.LogDescriptor logs = 23;

Parameter
NameDescription
valueLogDescriptor
Returns
TypeDescription
Service.Builder

addLogs(LogDescriptor.Builder builderForValue)

public Service.Builder addLogs(LogDescriptor.Builder builderForValue)

Defines the logs used by this service.

repeated .google.api.LogDescriptor logs = 23;

Parameter
NameDescription
builderForValueLogDescriptor.Builder
Returns
TypeDescription
Service.Builder

addLogs(int index, LogDescriptor value)

public Service.Builder addLogs(int index, LogDescriptor value)

Defines the logs used by this service.

repeated .google.api.LogDescriptor logs = 23;

Parameters
NameDescription
indexint
valueLogDescriptor
Returns
TypeDescription
Service.Builder

addLogs(int index, LogDescriptor.Builder builderForValue)

public Service.Builder addLogs(int index, LogDescriptor.Builder builderForValue)

Defines the logs used by this service.

repeated .google.api.LogDescriptor logs = 23;

Parameters
NameDescription
indexint
builderForValueLogDescriptor.Builder
Returns
TypeDescription
Service.Builder

addLogsBuilder()

public LogDescriptor.Builder addLogsBuilder()

Defines the logs used by this service.

repeated .google.api.LogDescriptor logs = 23;

Returns
TypeDescription
LogDescriptor.Builder

addLogsBuilder(int index)

public LogDescriptor.Builder addLogsBuilder(int index)

Defines the logs used by this service.

repeated .google.api.LogDescriptor logs = 23;

Parameter
NameDescription
indexint
Returns
TypeDescription
LogDescriptor.Builder

addMetrics(MetricDescriptor value)

public Service.Builder addMetrics(MetricDescriptor value)

Defines the metrics used by this service.

repeated .google.api.MetricDescriptor metrics = 24;

Parameter
NameDescription
valueMetricDescriptor
Returns
TypeDescription
Service.Builder

addMetrics(MetricDescriptor.Builder builderForValue)

public Service.Builder addMetrics(MetricDescriptor.Builder builderForValue)

Defines the metrics used by this service.

repeated .google.api.MetricDescriptor metrics = 24;

Parameter
NameDescription
builderForValueMetricDescriptor.Builder
Returns
TypeDescription
Service.Builder

addMetrics(int index, MetricDescriptor value)

public Service.Builder addMetrics(int index, MetricDescriptor value)

Defines the metrics used by this service.

repeated .google.api.MetricDescriptor metrics = 24;

Parameters
NameDescription
indexint
valueMetricDescriptor
Returns
TypeDescription
Service.Builder

addMetrics(int index, MetricDescriptor.Builder builderForValue)

public Service.Builder addMetrics(int index, MetricDescriptor.Builder builderForValue)

Defines the metrics used by this service.

repeated .google.api.MetricDescriptor metrics = 24;

Parameters
NameDescription
indexint
builderForValueMetricDescriptor.Builder
Returns
TypeDescription
Service.Builder

addMetricsBuilder()

public MetricDescriptor.Builder addMetricsBuilder()

Defines the metrics used by this service.

repeated .google.api.MetricDescriptor metrics = 24;

Returns
TypeDescription
MetricDescriptor.Builder

addMetricsBuilder(int index)

public MetricDescriptor.Builder addMetricsBuilder(int index)

Defines the metrics used by this service.

repeated .google.api.MetricDescriptor metrics = 24;

Parameter
NameDescription
indexint
Returns
TypeDescription
MetricDescriptor.Builder

addMonitoredResources(MonitoredResourceDescriptor value)

public Service.Builder addMonitoredResources(MonitoredResourceDescriptor value)

Defines the monitored resources used by this service. This is required by the Service.monitoring and Service.logging configurations.

repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;

Parameter
NameDescription
valueMonitoredResourceDescriptor
Returns
TypeDescription
Service.Builder

addMonitoredResources(MonitoredResourceDescriptor.Builder builderForValue)

public Service.Builder addMonitoredResources(MonitoredResourceDescriptor.Builder builderForValue)

Defines the monitored resources used by this service. This is required by the Service.monitoring and Service.logging configurations.

repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;

Parameter
NameDescription
builderForValueMonitoredResourceDescriptor.Builder
Returns
TypeDescription
Service.Builder

addMonitoredResources(int index, MonitoredResourceDescriptor value)

public Service.Builder addMonitoredResources(int index, MonitoredResourceDescriptor value)

Defines the monitored resources used by this service. This is required by the Service.monitoring and Service.logging configurations.

repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;

Parameters
NameDescription
indexint
valueMonitoredResourceDescriptor
Returns
TypeDescription
Service.Builder

addMonitoredResources(int index, MonitoredResourceDescriptor.Builder builderForValue)

public Service.Builder addMonitoredResources(int index, MonitoredResourceDescriptor.Builder builderForValue)

Defines the monitored resources used by this service. This is required by the Service.monitoring and Service.logging configurations.

repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;

Parameters
NameDescription
indexint
builderForValueMonitoredResourceDescriptor.Builder
Returns
TypeDescription
Service.Builder

addMonitoredResourcesBuilder()

public MonitoredResourceDescriptor.Builder addMonitoredResourcesBuilder()

Defines the monitored resources used by this service. This is required by the Service.monitoring and Service.logging configurations.

repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;

Returns
TypeDescription
MonitoredResourceDescriptor.Builder

addMonitoredResourcesBuilder(int index)

public MonitoredResourceDescriptor.Builder addMonitoredResourcesBuilder(int index)

Defines the monitored resources used by this service. This is required by the Service.monitoring and Service.logging configurations.

repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;

Parameter
NameDescription
indexint
Returns
TypeDescription
MonitoredResourceDescriptor.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Service.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Service.Builder
Overrides

addTypes(Type value)

public Service.Builder addTypes(Type value)

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 by the configuration author. Example: types:

  • name: google.protobuf.Int32

repeated .google.protobuf.Type types = 4;

Parameter
NameDescription
valueType
Returns
TypeDescription
Service.Builder

addTypes(Type.Builder builderForValue)

public Service.Builder addTypes(Type.Builder builderForValue)

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 by the configuration author. Example: types:

  • name: google.protobuf.Int32

repeated .google.protobuf.Type types = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Service.Builder

addTypes(int index, Type value)

public Service.Builder addTypes(int index, Type value)

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 by the configuration author. Example: types:

  • name: google.protobuf.Int32

repeated .google.protobuf.Type types = 4;

Parameters
NameDescription
indexint
valueType
Returns
TypeDescription
Service.Builder

addTypes(int index, Type.Builder builderForValue)

public Service.Builder addTypes(int index, Type.Builder builderForValue)

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 by the configuration author. Example: types:

  • name: google.protobuf.Int32

repeated .google.protobuf.Type types = 4;

Parameters
NameDescription
indexint
builderForValueBuilder
Returns
TypeDescription
Service.Builder

addTypesBuilder()

public Type.Builder addTypesBuilder()

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 by the configuration author. Example: types:

  • name: google.protobuf.Int32

repeated .google.protobuf.Type types = 4;

Returns
TypeDescription
Builder

addTypesBuilder(int index)

public Type.Builder addTypesBuilder(int 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 by the configuration author. Example: types:

  • name: google.protobuf.Int32

repeated .google.protobuf.Type types = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Builder

build()

public Service build()
Returns
TypeDescription
Service

buildPartial()

public Service buildPartial()
Returns
TypeDescription
Service

clear()

public Service.Builder clear()
Returns
TypeDescription
Service.Builder
Overrides

clearApis()

public Service.Builder clearApis()

A list of API interfaces exported by this service. Only the name field of the 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;

Returns
TypeDescription
Service.Builder

clearAuthentication()

public Service.Builder clearAuthentication()

Auth configuration.

.google.api.Authentication authentication = 11;

Returns
TypeDescription
Service.Builder

clearBackend()

public Service.Builder clearBackend()

API backend configuration.

.google.api.Backend backend = 8;

Returns
TypeDescription
Service.Builder

clearBilling()

public Service.Builder clearBilling()

Billing configuration.

.google.api.Billing billing = 26;

Returns
TypeDescription
Service.Builder

clearConfigVersion()

public Service.Builder clearConfigVersion()

Obsolete. Do not use. This field has no semantic meaning. The service config compiler always sets this field to 3.

.google.protobuf.UInt32Value config_version = 20;

Returns
TypeDescription
Service.Builder

clearContext()

public Service.Builder clearContext()

Context configuration.

.google.api.Context context = 12;

Returns
TypeDescription
Service.Builder

clearControl()

public Service.Builder clearControl()

Configuration for the service control plane.

.google.api.Control control = 21;

Returns
TypeDescription
Service.Builder

clearDocumentation()

public Service.Builder clearDocumentation()

Additional API documentation.

.google.api.Documentation documentation = 6;

Returns
TypeDescription
Service.Builder

clearEndpoints()

public Service.Builder clearEndpoints()

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;

Returns
TypeDescription
Service.Builder

clearEnums()

public Service.Builder clearEnums()

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 by the configuration author. Example: enums:

  • name: google.someapi.v1.SomeEnum

repeated .google.protobuf.Enum enums = 5;

Returns
TypeDescription
Service.Builder

clearField(Descriptors.FieldDescriptor field)

public Service.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Service.Builder
Overrides

clearHttp()

public Service.Builder clearHttp()

HTTP configuration.

.google.api.Http http = 9;

Returns
TypeDescription
Service.Builder

clearId()

public Service.Builder clearId()

A unique ID for a specific instance of this message, typically assigned by the client for tracking purpose. Must be no longer than 63 characters and only lower case letters, digits, '.', '_' and '-' are allowed. If empty, the server may choose to generate one instead.

string id = 33;

Returns
TypeDescription
Service.Builder

This builder for chaining.

clearLogging()

public Service.Builder clearLogging()

Logging configuration.

.google.api.Logging logging = 27;

Returns
TypeDescription
Service.Builder

clearLogs()

public Service.Builder clearLogs()

Defines the logs used by this service.

repeated .google.api.LogDescriptor logs = 23;

Returns
TypeDescription
Service.Builder

clearMetrics()

public Service.Builder clearMetrics()

Defines the metrics used by this service.

repeated .google.api.MetricDescriptor metrics = 24;

Returns
TypeDescription
Service.Builder

clearMonitoredResources()

public Service.Builder clearMonitoredResources()

Defines the monitored resources used by this service. This is required by the Service.monitoring and Service.logging configurations.

repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;

Returns
TypeDescription
Service.Builder

clearMonitoring()

public Service.Builder clearMonitoring()

Monitoring configuration.

.google.api.Monitoring monitoring = 28;

Returns
TypeDescription
Service.Builder

clearName()

public Service.Builder clearName()

The service name, which is a DNS-like logical identifier for the service, such as calendar.googleapis.com. The service name typically goes through DNS verification to make sure the owner of the service also owns the DNS name.

string name = 1;

Returns
TypeDescription
Service.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Service.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Service.Builder
Overrides

clearProducerProjectId()

public Service.Builder clearProducerProjectId()

The Google project that owns this service.

string producer_project_id = 22;

Returns
TypeDescription
Service.Builder

This builder for chaining.

clearPublishing()

public Service.Builder clearPublishing()

Settings for Google Cloud Client libraries generated from APIs defined as protocol buffers.

.google.api.Publishing publishing = 45;

Returns
TypeDescription
Service.Builder

clearQuota()

public Service.Builder clearQuota()

Quota configuration.

.google.api.Quota quota = 10;

Returns
TypeDescription
Service.Builder

clearSourceInfo()

public Service.Builder clearSourceInfo()

Output only. The source information for this configuration if available.

.google.api.SourceInfo source_info = 37;

Returns
TypeDescription
Service.Builder

clearSystemParameters()

public Service.Builder clearSystemParameters()

System parameter configuration.

.google.api.SystemParameters system_parameters = 29;

Returns
TypeDescription
Service.Builder

clearTitle()

public Service.Builder clearTitle()

The product title for this service, it is the name displayed in Google Cloud Console.

string title = 2;

Returns
TypeDescription
Service.Builder

This builder for chaining.

clearTypes()

public Service.Builder clearTypes()

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 by the configuration author. Example: types:

  • name: google.protobuf.Int32

repeated .google.protobuf.Type types = 4;

Returns
TypeDescription
Service.Builder

clearUsage()

public Service.Builder clearUsage()

Configuration controlling usage of this service.

.google.api.Usage usage = 15;

Returns
TypeDescription
Service.Builder

clone()

public Service.Builder clone()
Returns
TypeDescription
Service.Builder
Overrides

getApis(int index)

public Api getApis(int index)

A list of API interfaces exported by this service. Only the name field of the 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;

Parameter
NameDescription
indexint
Returns
TypeDescription
Api

getApisBuilder(int index)

public Api.Builder getApisBuilder(int index)

A list of API interfaces exported by this service. Only the name field of the 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;

Parameter
NameDescription
indexint
Returns
TypeDescription
Builder

getApisBuilderList()

public List<Api.Builder> getApisBuilderList()

A list of API interfaces exported by this service. Only the name field of the 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;

Returns
TypeDescription
List<Builder>

getApisCount()

public int getApisCount()

A list of API interfaces exported by this service. Only the name field of the 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;

Returns
TypeDescription
int

getApisList()

public List<Api> getApisList()

A list of API interfaces exported by this service. Only the name field of the 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;

Returns
TypeDescription
List<Api>

getApisOrBuilder(int index)

public ApiOrBuilder getApisOrBuilder(int index)

A list of API interfaces exported by this service. Only the name field of the 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;

Parameter
NameDescription
indexint
Returns
TypeDescription
ApiOrBuilder

getApisOrBuilderList()

public List<? extends ApiOrBuilder> getApisOrBuilderList()

A list of API interfaces exported by this service. Only the name field of the 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;

Returns
TypeDescription
List<? extends com.google.protobuf.ApiOrBuilder>

getAuthentication()

public Authentication getAuthentication()

Auth configuration.

.google.api.Authentication authentication = 11;

Returns
TypeDescription
Authentication

The authentication.

getAuthenticationBuilder()

public Authentication.Builder getAuthenticationBuilder()

Auth configuration.

.google.api.Authentication authentication = 11;

Returns
TypeDescription
Authentication.Builder

getAuthenticationOrBuilder()

public AuthenticationOrBuilder getAuthenticationOrBuilder()

Auth configuration.

.google.api.Authentication authentication = 11;

Returns
TypeDescription
AuthenticationOrBuilder

getBackend()

public Backend getBackend()

API backend configuration.

.google.api.Backend backend = 8;

Returns
TypeDescription
Backend

The backend.

getBackendBuilder()

public Backend.Builder getBackendBuilder()

API backend configuration.

.google.api.Backend backend = 8;

Returns
TypeDescription
Backend.Builder

getBackendOrBuilder()

public BackendOrBuilder getBackendOrBuilder()

API backend configuration.

.google.api.Backend backend = 8;

Returns
TypeDescription
BackendOrBuilder

getBilling()

public Billing getBilling()

Billing configuration.

.google.api.Billing billing = 26;

Returns
TypeDescription
Billing

The billing.

getBillingBuilder()

public Billing.Builder getBillingBuilder()

Billing configuration.

.google.api.Billing billing = 26;

Returns
TypeDescription
Billing.Builder

getBillingOrBuilder()

public BillingOrBuilder getBillingOrBuilder()

Billing configuration.

.google.api.Billing billing = 26;

Returns
TypeDescription
BillingOrBuilder

getConfigVersion()

public UInt32Value getConfigVersion()

Obsolete. Do not use. This field has no semantic meaning. The service config compiler always sets this field to 3.

.google.protobuf.UInt32Value config_version = 20;

Returns
TypeDescription
UInt32Value

The configVersion.

getConfigVersionBuilder()

public UInt32Value.Builder getConfigVersionBuilder()

Obsolete. Do not use. This field has no semantic meaning. The service config compiler always sets this field to 3.

.google.protobuf.UInt32Value config_version = 20;

Returns
TypeDescription
Builder

getConfigVersionOrBuilder()

public UInt32ValueOrBuilder getConfigVersionOrBuilder()

Obsolete. Do not use. This field has no semantic meaning. The service config compiler always sets this field to 3.

.google.protobuf.UInt32Value config_version = 20;

Returns
TypeDescription
UInt32ValueOrBuilder

getContext()

public Context getContext()

Context configuration.

.google.api.Context context = 12;

Returns
TypeDescription
Context

The context.

getContextBuilder()

public Context.Builder getContextBuilder()

Context configuration.

.google.api.Context context = 12;

Returns
TypeDescription
Context.Builder

getContextOrBuilder()

public ContextOrBuilder getContextOrBuilder()

Context configuration.

.google.api.Context context = 12;

Returns
TypeDescription
ContextOrBuilder

getControl()

public Control getControl()

Configuration for the service control plane.

.google.api.Control control = 21;

Returns
TypeDescription
Control

The control.

getControlBuilder()

public Control.Builder getControlBuilder()

Configuration for the service control plane.

.google.api.Control control = 21;

Returns
TypeDescription
Control.Builder

getControlOrBuilder()

public ControlOrBuilder getControlOrBuilder()

Configuration for the service control plane.

.google.api.Control control = 21;

Returns
TypeDescription
ControlOrBuilder

getDefaultInstanceForType()

public Service getDefaultInstanceForType()
Returns
TypeDescription
Service

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDocumentation()

public Documentation getDocumentation()

Additional API documentation.

.google.api.Documentation documentation = 6;

Returns
TypeDescription
Documentation

The documentation.

getDocumentationBuilder()

public Documentation.Builder getDocumentationBuilder()

Additional API documentation.

.google.api.Documentation documentation = 6;

Returns
TypeDescription
Documentation.Builder

getDocumentationOrBuilder()

public DocumentationOrBuilder getDocumentationOrBuilder()

Additional API documentation.

.google.api.Documentation documentation = 6;

Returns
TypeDescription
DocumentationOrBuilder

getEndpoints(int index)

public Endpoint getEndpoints(int index)

Configuration for network endpoints. If this is empty, then an endpoint with the same name as the service is automatically generated to service all defined APIs.

repeated .google.api.Endpoint endpoints = 18;

Parameter
NameDescription
indexint
Returns
TypeDescription
Endpoint

getEndpointsBuilder(int index)

public Endpoint.Builder getEndpointsBuilder(int index)

Configuration for network endpoints. If this is empty, then an endpoint with the same name as the service is automatically generated to service all defined APIs.

repeated .google.api.Endpoint endpoints = 18;

Parameter
NameDescription
indexint
Returns
TypeDescription
Endpoint.Builder

getEndpointsBuilderList()

public List<Endpoint.Builder> getEndpointsBuilderList()

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;

Returns
TypeDescription
List<Builder>

getEndpointsCount()

public int getEndpointsCount()

Configuration for network endpoints. If this is empty, then an endpoint with the same name as the service is automatically generated to service all defined APIs.

repeated .google.api.Endpoint endpoints = 18;

Returns
TypeDescription
int

getEndpointsList()

public List<Endpoint> getEndpointsList()

Configuration for network endpoints. If this is empty, then an endpoint with the same name as the service is automatically generated to service all defined APIs.

repeated .google.api.Endpoint endpoints = 18;

Returns
TypeDescription
List<Endpoint>

getEndpointsOrBuilder(int index)

public EndpointOrBuilder getEndpointsOrBuilder(int index)

Configuration for network endpoints. If this is empty, then an endpoint with the same name as the service is automatically generated to service all defined APIs.

repeated .google.api.Endpoint endpoints = 18;

Parameter
NameDescription
indexint
Returns
TypeDescription
EndpointOrBuilder

getEndpointsOrBuilderList()

public List<? extends EndpointOrBuilder> getEndpointsOrBuilderList()

Configuration for network endpoints. If this is empty, then an endpoint with the same name as the service is automatically generated to service all defined APIs.

repeated .google.api.Endpoint endpoints = 18;

Returns
TypeDescription
List<? extends com.google.api.EndpointOrBuilder>

getEnums(int index)

public Enum getEnums(int index)

A list of all enum types included in this API service. Enums referenced directly or indirectly by the apis are automatically included. Enums which are not referenced but shall be included should be listed here by name by the configuration author. Example: enums:

  • name: google.someapi.v1.SomeEnum

repeated .google.protobuf.Enum enums = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
Enum

getEnumsBuilder(int index)

public Enum.Builder getEnumsBuilder(int 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 by the configuration author. Example: enums:

  • name: google.someapi.v1.SomeEnum

repeated .google.protobuf.Enum enums = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
Builder

getEnumsBuilderList()

public List<Enum.Builder> getEnumsBuilderList()

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 by the configuration author. Example: enums:

  • name: google.someapi.v1.SomeEnum

repeated .google.protobuf.Enum enums = 5;

Returns
TypeDescription
List<Builder>

getEnumsCount()

public int getEnumsCount()

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 by the configuration author. Example: enums:

  • name: google.someapi.v1.SomeEnum

repeated .google.protobuf.Enum enums = 5;

Returns
TypeDescription
int

getEnumsList()

public List<Enum> getEnumsList()

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 by the configuration author. Example: enums:

  • name: google.someapi.v1.SomeEnum

repeated .google.protobuf.Enum enums = 5;

Returns
TypeDescription
List<Enum>

getEnumsOrBuilder(int index)

public EnumOrBuilder getEnumsOrBuilder(int 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 by the configuration author. Example: enums:

  • name: google.someapi.v1.SomeEnum

repeated .google.protobuf.Enum enums = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
EnumOrBuilder

getEnumsOrBuilderList()

public List<? extends EnumOrBuilder> getEnumsOrBuilderList()

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 by the configuration author. Example: enums:

  • name: google.someapi.v1.SomeEnum

repeated .google.protobuf.Enum enums = 5;

Returns
TypeDescription
List<? extends com.google.protobuf.EnumOrBuilder>

getHttp()

public Http getHttp()

HTTP configuration.

.google.api.Http http = 9;

Returns
TypeDescription
Http

The http.

getHttpBuilder()

public Http.Builder getHttpBuilder()

HTTP configuration.

.google.api.Http http = 9;

Returns
TypeDescription
Http.Builder

getHttpOrBuilder()

public HttpOrBuilder getHttpOrBuilder()

HTTP configuration.

.google.api.Http http = 9;

Returns
TypeDescription
HttpOrBuilder

getId()

public String getId()

A unique ID for a specific instance of this message, typically assigned by the client for tracking purpose. Must be no longer than 63 characters and only lower case letters, digits, '.', '_' and '-' are allowed. If empty, the server may choose to generate one instead.

string id = 33;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

A unique ID for a specific instance of this message, typically assigned by the client for tracking purpose. Must be no longer than 63 characters and only lower case letters, digits, '.', '_' and '-' are allowed. If empty, the server may choose to generate one instead.

string id = 33;

Returns
TypeDescription
ByteString

The bytes for id.

getLogging()

public Logging getLogging()

Logging configuration.

.google.api.Logging logging = 27;

Returns
TypeDescription
Logging

The logging.

getLoggingBuilder()

public Logging.Builder getLoggingBuilder()

Logging configuration.

.google.api.Logging logging = 27;

Returns
TypeDescription
Logging.Builder

getLoggingOrBuilder()

public LoggingOrBuilder getLoggingOrBuilder()

Logging configuration.

.google.api.Logging logging = 27;

Returns
TypeDescription
LoggingOrBuilder

getLogs(int index)

public LogDescriptor getLogs(int index)

Defines the logs used by this service.

repeated .google.api.LogDescriptor logs = 23;

Parameter
NameDescription
indexint
Returns
TypeDescription
LogDescriptor

getLogsBuilder(int index)

public LogDescriptor.Builder getLogsBuilder(int index)

Defines the logs used by this service.

repeated .google.api.LogDescriptor logs = 23;

Parameter
NameDescription
indexint
Returns
TypeDescription
LogDescriptor.Builder

getLogsBuilderList()

public List<LogDescriptor.Builder> getLogsBuilderList()

Defines the logs used by this service.

repeated .google.api.LogDescriptor logs = 23;

Returns
TypeDescription
List<Builder>

getLogsCount()

public int getLogsCount()

Defines the logs used by this service.

repeated .google.api.LogDescriptor logs = 23;

Returns
TypeDescription
int

getLogsList()

public List<LogDescriptor> getLogsList()

Defines the logs used by this service.

repeated .google.api.LogDescriptor logs = 23;

Returns
TypeDescription
List<LogDescriptor>

getLogsOrBuilder(int index)

public LogDescriptorOrBuilder getLogsOrBuilder(int index)

Defines the logs used by this service.

repeated .google.api.LogDescriptor logs = 23;

Parameter
NameDescription
indexint
Returns
TypeDescription
LogDescriptorOrBuilder

getLogsOrBuilderList()

public List<? extends LogDescriptorOrBuilder> getLogsOrBuilderList()

Defines the logs used by this service.

repeated .google.api.LogDescriptor logs = 23;

Returns
TypeDescription
List<? extends com.google.api.LogDescriptorOrBuilder>

getMetrics(int index)

public MetricDescriptor getMetrics(int index)

Defines the metrics used by this service.

repeated .google.api.MetricDescriptor metrics = 24;

Parameter
NameDescription
indexint
Returns
TypeDescription
MetricDescriptor

getMetricsBuilder(int index)

public MetricDescriptor.Builder getMetricsBuilder(int index)

Defines the metrics used by this service.

repeated .google.api.MetricDescriptor metrics = 24;

Parameter
NameDescription
indexint
Returns
TypeDescription
MetricDescriptor.Builder

getMetricsBuilderList()

public List<MetricDescriptor.Builder> getMetricsBuilderList()

Defines the metrics used by this service.

repeated .google.api.MetricDescriptor metrics = 24;

Returns
TypeDescription
List<Builder>

getMetricsCount()

public int getMetricsCount()

Defines the metrics used by this service.

repeated .google.api.MetricDescriptor metrics = 24;

Returns
TypeDescription
int

getMetricsList()

public List<MetricDescriptor> getMetricsList()

Defines the metrics used by this service.

repeated .google.api.MetricDescriptor metrics = 24;

Returns
TypeDescription
List<MetricDescriptor>

getMetricsOrBuilder(int index)

public MetricDescriptorOrBuilder getMetricsOrBuilder(int index)

Defines the metrics used by this service.

repeated .google.api.MetricDescriptor metrics = 24;

Parameter
NameDescription
indexint
Returns
TypeDescription
MetricDescriptorOrBuilder

getMetricsOrBuilderList()

public List<? extends MetricDescriptorOrBuilder> getMetricsOrBuilderList()

Defines the metrics used by this service.

repeated .google.api.MetricDescriptor metrics = 24;

Returns
TypeDescription
List<? extends com.google.api.MetricDescriptorOrBuilder>

getMonitoredResources(int index)

public MonitoredResourceDescriptor getMonitoredResources(int index)

Defines the monitored resources used by this service. This is required by the Service.monitoring and Service.logging configurations.

repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;

Parameter
NameDescription
indexint
Returns
TypeDescription
MonitoredResourceDescriptor

getMonitoredResourcesBuilder(int index)

public MonitoredResourceDescriptor.Builder getMonitoredResourcesBuilder(int index)

Defines the monitored resources used by this service. This is required by the Service.monitoring and Service.logging configurations.

repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;

Parameter
NameDescription
indexint
Returns
TypeDescription
MonitoredResourceDescriptor.Builder

getMonitoredResourcesBuilderList()

public List<MonitoredResourceDescriptor.Builder> getMonitoredResourcesBuilderList()

Defines the monitored resources used by this service. This is required by the Service.monitoring and Service.logging configurations.

repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;

Returns
TypeDescription
List<Builder>

getMonitoredResourcesCount()

public int getMonitoredResourcesCount()

Defines the monitored resources used by this service. This is required by the Service.monitoring and Service.logging configurations.

repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;

Returns
TypeDescription
int

getMonitoredResourcesList()

public List<MonitoredResourceDescriptor> getMonitoredResourcesList()

Defines the monitored resources used by this service. This is required by the Service.monitoring and Service.logging configurations.

repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;

Returns
TypeDescription
List<MonitoredResourceDescriptor>

getMonitoredResourcesOrBuilder(int index)

public MonitoredResourceDescriptorOrBuilder getMonitoredResourcesOrBuilder(int index)

Defines the monitored resources used by this service. This is required by the Service.monitoring and Service.logging configurations.

repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;

Parameter
NameDescription
indexint
Returns
TypeDescription
MonitoredResourceDescriptorOrBuilder

getMonitoredResourcesOrBuilderList()

public List<? extends MonitoredResourceDescriptorOrBuilder> getMonitoredResourcesOrBuilderList()

Defines the monitored resources used by this service. This is required by the Service.monitoring and Service.logging configurations.

repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;

Returns
TypeDescription
List<? extends com.google.api.MonitoredResourceDescriptorOrBuilder>

getMonitoring()

public Monitoring getMonitoring()

Monitoring configuration.

.google.api.Monitoring monitoring = 28;

Returns
TypeDescription
Monitoring

The monitoring.

getMonitoringBuilder()

public Monitoring.Builder getMonitoringBuilder()

Monitoring configuration.

.google.api.Monitoring monitoring = 28;

Returns
TypeDescription
Monitoring.Builder

getMonitoringOrBuilder()

public MonitoringOrBuilder getMonitoringOrBuilder()

Monitoring configuration.

.google.api.Monitoring monitoring = 28;

Returns
TypeDescription
MonitoringOrBuilder

getName()

public String getName()

The service name, which is a DNS-like logical identifier for the service, such as calendar.googleapis.com. The service name typically goes through DNS verification to make sure the owner of the service also owns the DNS name.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The service name, which is a DNS-like logical identifier for the service, such as calendar.googleapis.com. The service name typically goes through DNS verification to make sure the owner of the service also owns the DNS name.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getProducerProjectId()

public String getProducerProjectId()

The Google project that owns this service.

string producer_project_id = 22;

Returns
TypeDescription
String

The producerProjectId.

getProducerProjectIdBytes()

public ByteString getProducerProjectIdBytes()

The Google project that owns this service.

string producer_project_id = 22;

Returns
TypeDescription
ByteString

The bytes for producerProjectId.

getPublishing()

public Publishing getPublishing()

Settings for Google Cloud Client libraries generated from APIs defined as protocol buffers.

.google.api.Publishing publishing = 45;

Returns
TypeDescription
Publishing

The publishing.

getPublishingBuilder()

public Publishing.Builder getPublishingBuilder()

Settings for Google Cloud Client libraries generated from APIs defined as protocol buffers.

.google.api.Publishing publishing = 45;

Returns
TypeDescription
Publishing.Builder

getPublishingOrBuilder()

public PublishingOrBuilder getPublishingOrBuilder()

Settings for Google Cloud Client libraries generated from APIs defined as protocol buffers.

.google.api.Publishing publishing = 45;

Returns
TypeDescription
PublishingOrBuilder

getQuota()

public Quota getQuota()

Quota configuration.

.google.api.Quota quota = 10;

Returns
TypeDescription
Quota

The quota.

getQuotaBuilder()

public Quota.Builder getQuotaBuilder()

Quota configuration.

.google.api.Quota quota = 10;

Returns
TypeDescription
Quota.Builder

getQuotaOrBuilder()

public QuotaOrBuilder getQuotaOrBuilder()

Quota configuration.

.google.api.Quota quota = 10;

Returns
TypeDescription
QuotaOrBuilder

getSourceInfo()

public SourceInfo getSourceInfo()

Output only. The source information for this configuration if available.

.google.api.SourceInfo source_info = 37;

Returns
TypeDescription
SourceInfo

The sourceInfo.

getSourceInfoBuilder()

public SourceInfo.Builder getSourceInfoBuilder()

Output only. The source information for this configuration if available.

.google.api.SourceInfo source_info = 37;

Returns
TypeDescription
SourceInfo.Builder

getSourceInfoOrBuilder()

public SourceInfoOrBuilder getSourceInfoOrBuilder()

Output only. The source information for this configuration if available.

.google.api.SourceInfo source_info = 37;

Returns
TypeDescription
SourceInfoOrBuilder

getSystemParameters()

public SystemParameters getSystemParameters()

System parameter configuration.

.google.api.SystemParameters system_parameters = 29;

Returns
TypeDescription
SystemParameters

The systemParameters.

getSystemParametersBuilder()

public SystemParameters.Builder getSystemParametersBuilder()

System parameter configuration.

.google.api.SystemParameters system_parameters = 29;

Returns
TypeDescription
SystemParameters.Builder

getSystemParametersOrBuilder()

public SystemParametersOrBuilder getSystemParametersOrBuilder()

System parameter configuration.

.google.api.SystemParameters system_parameters = 29;

Returns
TypeDescription
SystemParametersOrBuilder

getTitle()

public String getTitle()

The product title for this service, it is the name displayed in Google Cloud Console.

string title = 2;

Returns
TypeDescription
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

The product title for this service, it is the name displayed in Google Cloud Console.

string title = 2;

Returns
TypeDescription
ByteString

The bytes for title.

getTypes(int index)

public Type getTypes(int index)

A list of all proto message types included in this API service. Types referenced directly or indirectly by the apis are 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 by the configuration author. Example: types:

  • name: google.protobuf.Int32

repeated .google.protobuf.Type types = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Type

getTypesBuilder(int index)

public Type.Builder getTypesBuilder(int 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 by the configuration author. Example: types:

  • name: google.protobuf.Int32

repeated .google.protobuf.Type types = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Builder

getTypesBuilderList()

public List<Type.Builder> getTypesBuilderList()

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 by the configuration author. Example: types:

  • name: google.protobuf.Int32

repeated .google.protobuf.Type types = 4;

Returns
TypeDescription
List<Builder>

getTypesCount()

public int getTypesCount()

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 by the configuration author. Example: types:

  • name: google.protobuf.Int32

repeated .google.protobuf.Type types = 4;

Returns
TypeDescription
int

getTypesList()

public List<Type> getTypesList()

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 by the configuration author. Example: types:

  • name: google.protobuf.Int32

repeated .google.protobuf.Type types = 4;

Returns
TypeDescription
List<Type>

getTypesOrBuilder(int index)

public TypeOrBuilder getTypesOrBuilder(int 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 by the configuration author. Example: types:

  • name: google.protobuf.Int32

repeated .google.protobuf.Type types = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
TypeOrBuilder

getTypesOrBuilderList()

public List<? extends TypeOrBuilder> getTypesOrBuilderList()

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 by the configuration author. Example: types:

  • name: google.protobuf.Int32

repeated .google.protobuf.Type types = 4;

Returns
TypeDescription
List<? extends com.google.protobuf.TypeOrBuilder>

getUsage()

public Usage getUsage()

Configuration controlling usage of this service.

.google.api.Usage usage = 15;

Returns
TypeDescription
Usage

The usage.

getUsageBuilder()

public Usage.Builder getUsageBuilder()

Configuration controlling usage of this service.

.google.api.Usage usage = 15;

Returns
TypeDescription
Usage.Builder

getUsageOrBuilder()

public UsageOrBuilder getUsageOrBuilder()

Configuration controlling usage of this service.

.google.api.Usage usage = 15;

Returns
TypeDescription
UsageOrBuilder

hasAuthentication()

public boolean hasAuthentication()

Auth configuration.

.google.api.Authentication authentication = 11;

Returns
TypeDescription
boolean

Whether the authentication field is set.

hasBackend()

public boolean hasBackend()

API backend configuration.

.google.api.Backend backend = 8;

Returns
TypeDescription
boolean

Whether the backend field is set.

hasBilling()

public boolean hasBilling()

Billing configuration.

.google.api.Billing billing = 26;

Returns
TypeDescription
boolean

Whether the billing field is set.

hasConfigVersion()

public boolean hasConfigVersion()

Obsolete. Do not use. This field has no semantic meaning. The service config compiler always sets this field to 3.

.google.protobuf.UInt32Value config_version = 20;

Returns
TypeDescription
boolean

Whether the configVersion field is set.

hasContext()

public boolean hasContext()

Context configuration.

.google.api.Context context = 12;

Returns
TypeDescription
boolean

Whether the context field is set.

hasControl()

public boolean hasControl()

Configuration for the service control plane.

.google.api.Control control = 21;

Returns
TypeDescription
boolean

Whether the control field is set.

hasDocumentation()

public boolean hasDocumentation()

Additional API documentation.

.google.api.Documentation documentation = 6;

Returns
TypeDescription
boolean

Whether the documentation field is set.

hasHttp()

public boolean hasHttp()

HTTP configuration.

.google.api.Http http = 9;

Returns
TypeDescription
boolean

Whether the http field is set.

hasLogging()

public boolean hasLogging()

Logging configuration.

.google.api.Logging logging = 27;

Returns
TypeDescription
boolean

Whether the logging field is set.

hasMonitoring()

public boolean hasMonitoring()

Monitoring configuration.

.google.api.Monitoring monitoring = 28;

Returns
TypeDescription
boolean

Whether the monitoring field is set.

hasPublishing()

public boolean hasPublishing()

Settings for Google Cloud Client libraries generated from APIs defined as protocol buffers.

.google.api.Publishing publishing = 45;

Returns
TypeDescription
boolean

Whether the publishing field is set.

hasQuota()

public boolean hasQuota()

Quota configuration.

.google.api.Quota quota = 10;

Returns
TypeDescription
boolean

Whether the quota field is set.

hasSourceInfo()

public boolean hasSourceInfo()

Output only. The source information for this configuration if available.

.google.api.SourceInfo source_info = 37;

Returns
TypeDescription
boolean

Whether the sourceInfo field is set.

hasSystemParameters()

public boolean hasSystemParameters()

System parameter configuration.

.google.api.SystemParameters system_parameters = 29;

Returns
TypeDescription
boolean

Whether the systemParameters field is set.

hasUsage()

public boolean hasUsage()

Configuration controlling usage of this service.

.google.api.Usage usage = 15;

Returns
TypeDescription
boolean

Whether the usage field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAuthentication(Authentication value)

public Service.Builder mergeAuthentication(Authentication value)

Auth configuration.

.google.api.Authentication authentication = 11;

Parameter
NameDescription
valueAuthentication
Returns
TypeDescription
Service.Builder

mergeBackend(Backend value)

public Service.Builder mergeBackend(Backend value)

API backend configuration.

.google.api.Backend backend = 8;

Parameter
NameDescription
valueBackend
Returns
TypeDescription
Service.Builder

mergeBilling(Billing value)

public Service.Builder mergeBilling(Billing value)

Billing configuration.

.google.api.Billing billing = 26;

Parameter
NameDescription
valueBilling
Returns
TypeDescription
Service.Builder

mergeConfigVersion(UInt32Value value)

public Service.Builder mergeConfigVersion(UInt32Value value)

Obsolete. Do not use. This field has no semantic meaning. The service config compiler always sets this field to 3.

.google.protobuf.UInt32Value config_version = 20;

Parameter
NameDescription
valueUInt32Value
Returns
TypeDescription
Service.Builder

mergeContext(Context value)

public Service.Builder mergeContext(Context value)

Context configuration.

.google.api.Context context = 12;

Parameter
NameDescription
valueContext
Returns
TypeDescription
Service.Builder

mergeControl(Control value)

public Service.Builder mergeControl(Control value)

Configuration for the service control plane.

.google.api.Control control = 21;

Parameter
NameDescription
valueControl
Returns
TypeDescription
Service.Builder

mergeDocumentation(Documentation value)

public Service.Builder mergeDocumentation(Documentation value)

Additional API documentation.

.google.api.Documentation documentation = 6;

Parameter
NameDescription
valueDocumentation
Returns
TypeDescription
Service.Builder

mergeFrom(Service other)

public Service.Builder mergeFrom(Service other)
Parameter
NameDescription
otherService
Returns
TypeDescription
Service.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Service.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Service.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Service.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Service.Builder
Overrides

mergeHttp(Http value)

public Service.Builder mergeHttp(Http value)

HTTP configuration.

.google.api.Http http = 9;

Parameter
NameDescription
valueHttp
Returns
TypeDescription
Service.Builder

mergeLogging(Logging value)

public Service.Builder mergeLogging(Logging value)

Logging configuration.

.google.api.Logging logging = 27;

Parameter
NameDescription
valueLogging
Returns
TypeDescription
Service.Builder

mergeMonitoring(Monitoring value)

public Service.Builder mergeMonitoring(Monitoring value)

Monitoring configuration.

.google.api.Monitoring monitoring = 28;

Parameter
NameDescription
valueMonitoring
Returns
TypeDescription
Service.Builder

mergePublishing(Publishing value)

public Service.Builder mergePublishing(Publishing value)

Settings for Google Cloud Client libraries generated from APIs defined as protocol buffers.

.google.api.Publishing publishing = 45;

Parameter
NameDescription
valuePublishing
Returns
TypeDescription
Service.Builder

mergeQuota(Quota value)

public Service.Builder mergeQuota(Quota value)

Quota configuration.

.google.api.Quota quota = 10;

Parameter
NameDescription
valueQuota
Returns
TypeDescription
Service.Builder

mergeSourceInfo(SourceInfo value)

public Service.Builder mergeSourceInfo(SourceInfo value)

Output only. The source information for this configuration if available.

.google.api.SourceInfo source_info = 37;

Parameter
NameDescription
valueSourceInfo
Returns
TypeDescription
Service.Builder

mergeSystemParameters(SystemParameters value)

public Service.Builder mergeSystemParameters(SystemParameters value)

System parameter configuration.

.google.api.SystemParameters system_parameters = 29;

Parameter
NameDescription
valueSystemParameters
Returns
TypeDescription
Service.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Service.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Service.Builder
Overrides

mergeUsage(Usage value)

public Service.Builder mergeUsage(Usage value)

Configuration controlling usage of this service.

.google.api.Usage usage = 15;

Parameter
NameDescription
valueUsage
Returns
TypeDescription
Service.Builder

removeApis(int index)

public Service.Builder removeApis(int index)

A list of API interfaces exported by this service. Only the name field of the 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;

Parameter
NameDescription
indexint
Returns
TypeDescription
Service.Builder

removeEndpoints(int index)

public Service.Builder removeEndpoints(int index)

Configuration for network endpoints. If this is empty, then an endpoint with the same name as the service is automatically generated to service all defined APIs.

repeated .google.api.Endpoint endpoints = 18;

Parameter
NameDescription
indexint
Returns
TypeDescription
Service.Builder

removeEnums(int index)

public Service.Builder removeEnums(int 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 by the configuration author. Example: enums:

  • name: google.someapi.v1.SomeEnum

repeated .google.protobuf.Enum enums = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
Service.Builder

removeLogs(int index)

public Service.Builder removeLogs(int index)

Defines the logs used by this service.

repeated .google.api.LogDescriptor logs = 23;

Parameter
NameDescription
indexint
Returns
TypeDescription
Service.Builder

removeMetrics(int index)

public Service.Builder removeMetrics(int index)

Defines the metrics used by this service.

repeated .google.api.MetricDescriptor metrics = 24;

Parameter
NameDescription
indexint
Returns
TypeDescription
Service.Builder

removeMonitoredResources(int index)

public Service.Builder removeMonitoredResources(int index)

Defines the monitored resources used by this service. This is required by the Service.monitoring and Service.logging configurations.

repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;

Parameter
NameDescription
indexint
Returns
TypeDescription
Service.Builder

removeTypes(int index)

public Service.Builder removeTypes(int 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 by the configuration author. Example: types:

  • name: google.protobuf.Int32

repeated .google.protobuf.Type types = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Service.Builder

setApis(int index, Api value)

public Service.Builder setApis(int index, Api value)

A list of API interfaces exported by this service. Only the name field of the 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;

Parameters
NameDescription
indexint
valueApi
Returns
TypeDescription
Service.Builder

setApis(int index, Api.Builder builderForValue)

public Service.Builder setApis(int index, Api.Builder builderForValue)

A list of API interfaces exported by this service. Only the name field of the 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;

Parameters
NameDescription
indexint
builderForValueBuilder
Returns
TypeDescription
Service.Builder

setAuthentication(Authentication value)

public Service.Builder setAuthentication(Authentication value)

Auth configuration.

.google.api.Authentication authentication = 11;

Parameter
NameDescription
valueAuthentication
Returns
TypeDescription
Service.Builder

setAuthentication(Authentication.Builder builderForValue)

public Service.Builder setAuthentication(Authentication.Builder builderForValue)

Auth configuration.

.google.api.Authentication authentication = 11;

Parameter
NameDescription
builderForValueAuthentication.Builder
Returns
TypeDescription
Service.Builder

setBackend(Backend value)

public Service.Builder setBackend(Backend value)

API backend configuration.

.google.api.Backend backend = 8;

Parameter
NameDescription
valueBackend
Returns
TypeDescription
Service.Builder

setBackend(Backend.Builder builderForValue)

public Service.Builder setBackend(Backend.Builder builderForValue)

API backend configuration.

.google.api.Backend backend = 8;

Parameter
NameDescription
builderForValueBackend.Builder
Returns
TypeDescription
Service.Builder

setBilling(Billing value)

public Service.Builder setBilling(Billing value)

Billing configuration.

.google.api.Billing billing = 26;

Parameter
NameDescription
valueBilling
Returns
TypeDescription
Service.Builder

setBilling(Billing.Builder builderForValue)

public Service.Builder setBilling(Billing.Builder builderForValue)

Billing configuration.

.google.api.Billing billing = 26;

Parameter
NameDescription
builderForValueBilling.Builder
Returns
TypeDescription
Service.Builder

setConfigVersion(UInt32Value value)

public Service.Builder setConfigVersion(UInt32Value value)

Obsolete. Do not use. This field has no semantic meaning. The service config compiler always sets this field to 3.

.google.protobuf.UInt32Value config_version = 20;

Parameter
NameDescription
valueUInt32Value
Returns
TypeDescription
Service.Builder

setConfigVersion(UInt32Value.Builder builderForValue)

public Service.Builder setConfigVersion(UInt32Value.Builder builderForValue)

Obsolete. Do not use. This field has no semantic meaning. The service config compiler always sets this field to 3.

.google.protobuf.UInt32Value config_version = 20;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Service.Builder

setContext(Context value)

public Service.Builder setContext(Context value)

Context configuration.

.google.api.Context context = 12;

Parameter
NameDescription
valueContext
Returns
TypeDescription
Service.Builder

setContext(Context.Builder builderForValue)

public Service.Builder setContext(Context.Builder builderForValue)

Context configuration.

.google.api.Context context = 12;

Parameter
NameDescription
builderForValueContext.Builder
Returns
TypeDescription
Service.Builder

setControl(Control value)

public Service.Builder setControl(Control value)

Configuration for the service control plane.

.google.api.Control control = 21;

Parameter
NameDescription
valueControl
Returns
TypeDescription
Service.Builder

setControl(Control.Builder builderForValue)

public Service.Builder setControl(Control.Builder builderForValue)

Configuration for the service control plane.

.google.api.Control control = 21;

Parameter
NameDescription
builderForValueControl.Builder
Returns
TypeDescription
Service.Builder

setDocumentation(Documentation value)

public Service.Builder setDocumentation(Documentation value)

Additional API documentation.

.google.api.Documentation documentation = 6;

Parameter
NameDescription
valueDocumentation
Returns
TypeDescription
Service.Builder

setDocumentation(Documentation.Builder builderForValue)

public Service.Builder setDocumentation(Documentation.Builder builderForValue)

Additional API documentation.

.google.api.Documentation documentation = 6;

Parameter
NameDescription
builderForValueDocumentation.Builder
Returns
TypeDescription
Service.Builder

setEndpoints(int index, Endpoint value)

public Service.Builder setEndpoints(int index, Endpoint value)

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;

Parameters
NameDescription
indexint
valueEndpoint
Returns
TypeDescription
Service.Builder

setEndpoints(int index, Endpoint.Builder builderForValue)

public Service.Builder setEndpoints(int index, Endpoint.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueEndpoint.Builder
Returns
TypeDescription
Service.Builder

setEnums(int index, Enum value)

public Service.Builder setEnums(int index, Enum value)

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 by the configuration author. Example: enums:

  • name: google.someapi.v1.SomeEnum

repeated .google.protobuf.Enum enums = 5;

Parameters
NameDescription
indexint
valueEnum
Returns
TypeDescription
Service.Builder

setEnums(int index, Enum.Builder builderForValue)

public Service.Builder setEnums(int index, Enum.Builder builderForValue)

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 by the configuration author. Example: enums:

  • name: google.someapi.v1.SomeEnum

repeated .google.protobuf.Enum enums = 5;

Parameters
NameDescription
indexint
builderForValueBuilder
Returns
TypeDescription
Service.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Service.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Service.Builder
Overrides

setHttp(Http value)

public Service.Builder setHttp(Http value)

HTTP configuration.

.google.api.Http http = 9;

Parameter
NameDescription
valueHttp
Returns
TypeDescription
Service.Builder

setHttp(Http.Builder builderForValue)

public Service.Builder setHttp(Http.Builder builderForValue)

HTTP configuration.

.google.api.Http http = 9;

Parameter
NameDescription
builderForValueHttp.Builder
Returns
TypeDescription
Service.Builder

setId(String value)

public Service.Builder setId(String value)

A unique ID for a specific instance of this message, typically assigned by the client for tracking purpose. Must be no longer than 63 characters and only lower case letters, digits, '.', '_' and '-' are allowed. If empty, the server may choose to generate one instead.

string id = 33;

Parameter
NameDescription
valueString

The id to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setIdBytes(ByteString value)

public Service.Builder setIdBytes(ByteString value)

A unique ID for a specific instance of this message, typically assigned by the client for tracking purpose. Must be no longer than 63 characters and only lower case letters, digits, '.', '_' and '-' are allowed. If empty, the server may choose to generate one instead.

string id = 33;

Parameter
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setLogging(Logging value)

public Service.Builder setLogging(Logging value)

Logging configuration.

.google.api.Logging logging = 27;

Parameter
NameDescription
valueLogging
Returns
TypeDescription
Service.Builder

setLogging(Logging.Builder builderForValue)

public Service.Builder setLogging(Logging.Builder builderForValue)

Logging configuration.

.google.api.Logging logging = 27;

Parameter
NameDescription
builderForValueLogging.Builder
Returns
TypeDescription
Service.Builder

setLogs(int index, LogDescriptor value)

public Service.Builder setLogs(int index, LogDescriptor value)

Defines the logs used by this service.

repeated .google.api.LogDescriptor logs = 23;

Parameters
NameDescription
indexint
valueLogDescriptor
Returns
TypeDescription
Service.Builder

setLogs(int index, LogDescriptor.Builder builderForValue)

public Service.Builder setLogs(int index, LogDescriptor.Builder builderForValue)

Defines the logs used by this service.

repeated .google.api.LogDescriptor logs = 23;

Parameters
NameDescription
indexint
builderForValueLogDescriptor.Builder
Returns
TypeDescription
Service.Builder

setMetrics(int index, MetricDescriptor value)

public Service.Builder setMetrics(int index, MetricDescriptor value)

Defines the metrics used by this service.

repeated .google.api.MetricDescriptor metrics = 24;

Parameters
NameDescription
indexint
valueMetricDescriptor
Returns
TypeDescription
Service.Builder

setMetrics(int index, MetricDescriptor.Builder builderForValue)

public Service.Builder setMetrics(int index, MetricDescriptor.Builder builderForValue)

Defines the metrics used by this service.

repeated .google.api.MetricDescriptor metrics = 24;

Parameters
NameDescription
indexint
builderForValueMetricDescriptor.Builder
Returns
TypeDescription
Service.Builder

setMonitoredResources(int index, MonitoredResourceDescriptor value)

public Service.Builder setMonitoredResources(int index, MonitoredResourceDescriptor value)

Defines the monitored resources used by this service. This is required by the Service.monitoring and Service.logging configurations.

repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;

Parameters
NameDescription
indexint
valueMonitoredResourceDescriptor
Returns
TypeDescription
Service.Builder

setMonitoredResources(int index, MonitoredResourceDescriptor.Builder builderForValue)

public Service.Builder setMonitoredResources(int index, MonitoredResourceDescriptor.Builder builderForValue)

Defines the monitored resources used by this service. This is required by the Service.monitoring and Service.logging configurations.

repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;

Parameters
NameDescription
indexint
builderForValueMonitoredResourceDescriptor.Builder
Returns
TypeDescription
Service.Builder

setMonitoring(Monitoring value)

public Service.Builder setMonitoring(Monitoring value)

Monitoring configuration.

.google.api.Monitoring monitoring = 28;

Parameter
NameDescription
valueMonitoring
Returns
TypeDescription
Service.Builder

setMonitoring(Monitoring.Builder builderForValue)

public Service.Builder setMonitoring(Monitoring.Builder builderForValue)

Monitoring configuration.

.google.api.Monitoring monitoring = 28;

Parameter
NameDescription
builderForValueMonitoring.Builder
Returns
TypeDescription
Service.Builder

setName(String value)

public Service.Builder setName(String value)

The service name, which is a DNS-like logical identifier for the service, such as calendar.googleapis.com. The service name typically goes through DNS verification to make sure the owner of the service also owns the DNS name.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Service.Builder setNameBytes(ByteString value)

The service name, which is a DNS-like logical identifier for the service, such as calendar.googleapis.com. The service name typically goes through DNS verification to make sure the owner of the service also owns the DNS name.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setProducerProjectId(String value)

public Service.Builder setProducerProjectId(String value)

The Google project that owns this service.

string producer_project_id = 22;

Parameter
NameDescription
valueString

The producerProjectId to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setProducerProjectIdBytes(ByteString value)

public Service.Builder setProducerProjectIdBytes(ByteString value)

The Google project that owns this service.

string producer_project_id = 22;

Parameter
NameDescription
valueByteString

The bytes for producerProjectId to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setPublishing(Publishing value)

public Service.Builder setPublishing(Publishing value)

Settings for Google Cloud Client libraries generated from APIs defined as protocol buffers.

.google.api.Publishing publishing = 45;

Parameter
NameDescription
valuePublishing
Returns
TypeDescription
Service.Builder

setPublishing(Publishing.Builder builderForValue)

public Service.Builder setPublishing(Publishing.Builder builderForValue)

Settings for Google Cloud Client libraries generated from APIs defined as protocol buffers.

.google.api.Publishing publishing = 45;

Parameter
NameDescription
builderForValuePublishing.Builder
Returns
TypeDescription
Service.Builder

setQuota(Quota value)

public Service.Builder setQuota(Quota value)

Quota configuration.

.google.api.Quota quota = 10;

Parameter
NameDescription
valueQuota
Returns
TypeDescription
Service.Builder

setQuota(Quota.Builder builderForValue)

public Service.Builder setQuota(Quota.Builder builderForValue)

Quota configuration.

.google.api.Quota quota = 10;

Parameter
NameDescription
builderForValueQuota.Builder
Returns
TypeDescription
Service.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Service.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Service.Builder
Overrides

setSourceInfo(SourceInfo value)

public Service.Builder setSourceInfo(SourceInfo value)

Output only. The source information for this configuration if available.

.google.api.SourceInfo source_info = 37;

Parameter
NameDescription
valueSourceInfo
Returns
TypeDescription
Service.Builder

setSourceInfo(SourceInfo.Builder builderForValue)

public Service.Builder setSourceInfo(SourceInfo.Builder builderForValue)

Output only. The source information for this configuration if available.

.google.api.SourceInfo source_info = 37;

Parameter
NameDescription
builderForValueSourceInfo.Builder
Returns
TypeDescription
Service.Builder

setSystemParameters(SystemParameters value)

public Service.Builder setSystemParameters(SystemParameters value)

System parameter configuration.

.google.api.SystemParameters system_parameters = 29;

Parameter
NameDescription
valueSystemParameters
Returns
TypeDescription
Service.Builder

setSystemParameters(SystemParameters.Builder builderForValue)

public Service.Builder setSystemParameters(SystemParameters.Builder builderForValue)

System parameter configuration.

.google.api.SystemParameters system_parameters = 29;

Parameter
NameDescription
builderForValueSystemParameters.Builder
Returns
TypeDescription
Service.Builder

setTitle(String value)

public Service.Builder setTitle(String value)

The product title for this service, it is the name displayed in Google Cloud Console.

string title = 2;

Parameter
NameDescription
valueString

The title to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public Service.Builder setTitleBytes(ByteString value)

The product title for this service, it is the name displayed in Google Cloud Console.

string title = 2;

Parameter
NameDescription
valueByteString

The bytes for title to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setTypes(int index, Type value)

public Service.Builder setTypes(int index, Type value)

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 by the configuration author. Example: types:

  • name: google.protobuf.Int32

repeated .google.protobuf.Type types = 4;

Parameters
NameDescription
indexint
valueType
Returns
TypeDescription
Service.Builder

setTypes(int index, Type.Builder builderForValue)

public Service.Builder setTypes(int index, Type.Builder builderForValue)

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 by the configuration author. Example: types:

  • name: google.protobuf.Int32

repeated .google.protobuf.Type types = 4;

Parameters
NameDescription
indexint
builderForValueBuilder
Returns
TypeDescription
Service.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Service.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Service.Builder
Overrides

setUsage(Usage value)

public Service.Builder setUsage(Usage value)

Configuration controlling usage of this service.

.google.api.Usage usage = 15;

Parameter
NameDescription
valueUsage
Returns
TypeDescription
Service.Builder

setUsage(Usage.Builder builderForValue)

public Service.Builder setUsage(Usage.Builder builderForValue)

Configuration controlling usage of this service.

.google.api.Usage usage = 15;

Parameter
NameDescription
builderForValueUsage.Builder
Returns
TypeDescription
Service.Builder