Class ServiceConfig.Builder (2.2.8)

publicstaticfinalclass ServiceConfig.BuilderextendsGeneratedMessageV3.Builder<ServiceConfig.Builder>implementsServiceConfigOrBuilder

The configuration of the service.

Protobuf type google.api.serviceusage.v1.ServiceConfig

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description

Methods

addAllApis(Iterable<? extends Api> values)

publicServiceConfig.BuilderaddAllApis(Iterable<?extendsApi>values)

A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces.

repeated .google.protobuf.Api apis = 3;

Parameter
Name Description
values Iterable<? extends com.google.protobuf.Api>
Returns
Type Description

addAllEndpoints(Iterable<? extends Endpoint> values)

publicServiceConfig.BuilderaddAllEndpoints(Iterable<?extendsEndpoint>values)

Configuration for network endpoints. Contains only the names and aliases of the endpoints.

repeated .google.api.Endpoint endpoints = 18;

Parameter
Name Description
values Iterable<? extends com.google.api.Endpoint>
Returns
Type Description

addAllMonitoredResources(Iterable<? extends MonitoredResourceDescriptor> values)

publicServiceConfig.BuilderaddAllMonitoredResources(Iterable<?extendsMonitoredResourceDescriptor>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
Name Description
values Iterable<? extends com.google.api.MonitoredResourceDescriptor>
Returns
Type Description

addApis(Api value)

publicServiceConfig.BuilderaddApis(Apivalue)

A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces.

repeated .google.protobuf.Api apis = 3;

Parameter
Name Description
value Api
Returns
Type Description

addApis(Api.Builder builderForValue)

publicServiceConfig.BuilderaddApis(Api.BuilderbuilderForValue)

A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces.

repeated .google.protobuf.Api apis = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description

addApis(int index, Api value)

publicServiceConfig.BuilderaddApis(intindex,Apivalue)

A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces.

repeated .google.protobuf.Api apis = 3;

Parameters
Name Description
index int
value Api
Returns
Type Description

addApis(int index, Api.Builder builderForValue)

publicServiceConfig.BuilderaddApis(intindex,Api.BuilderbuilderForValue)

A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces.

repeated .google.protobuf.Api apis = 3;

Parameters
Name Description
index int
builderForValue Builder
Returns
Type Description

addApisBuilder()

publicApi.BuilderaddApisBuilder()

A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces.

repeated .google.protobuf.Api apis = 3;

Returns
Type Description

addApisBuilder(int index)

publicApi.BuilderaddApisBuilder(intindex)

A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces.

repeated .google.protobuf.Api apis = 3;

Parameter
Name Description
index int
Returns
Type Description

addEndpoints(Endpoint value)

publicServiceConfig.BuilderaddEndpoints(Endpointvalue)

Configuration for network endpoints. Contains only the names and aliases of the endpoints.

repeated .google.api.Endpoint endpoints = 18;

Parameter
Name Description
value com.google.api.Endpoint
Returns
Type Description

addEndpoints(Endpoint.Builder builderForValue)

publicServiceConfig.BuilderaddEndpoints(Endpoint.BuilderbuilderForValue)

Configuration for network endpoints. Contains only the names and aliases of the endpoints.

repeated .google.api.Endpoint endpoints = 18;

Parameter
Name Description
builderForValue com.google.api.Endpoint.Builder
Returns
Type Description

addEndpoints(int index, Endpoint value)

publicServiceConfig.BuilderaddEndpoints(intindex,Endpointvalue)

Configuration for network endpoints. Contains only the names and aliases of the endpoints.

repeated .google.api.Endpoint endpoints = 18;

Parameters
Name Description
index int
value com.google.api.Endpoint
Returns
Type Description

addEndpoints(int index, Endpoint.Builder builderForValue)

publicServiceConfig.BuilderaddEndpoints(intindex,Endpoint.BuilderbuilderForValue)

Configuration for network endpoints. Contains only the names and aliases of the endpoints.

repeated .google.api.Endpoint endpoints = 18;

Parameters
Name Description
index int
builderForValue com.google.api.Endpoint.Builder
Returns
Type Description

addEndpointsBuilder()

publicEndpoint.BuilderaddEndpointsBuilder()

Configuration for network endpoints. Contains only the names and aliases of the endpoints.

repeated .google.api.Endpoint endpoints = 18;

Returns
Type Description
com.google.api.Endpoint.Builder

addEndpointsBuilder(int index)

publicEndpoint.BuilderaddEndpointsBuilder(intindex)

Configuration for network endpoints. Contains only the names and aliases of the endpoints.

repeated .google.api.Endpoint endpoints = 18;

Parameter
Name Description
index int
Returns
Type Description
com.google.api.Endpoint.Builder

addMonitoredResources(MonitoredResourceDescriptor value)

publicServiceConfig.BuilderaddMonitoredResources(MonitoredResourceDescriptorvalue)

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
Name Description
value com.google.api.MonitoredResourceDescriptor
Returns
Type Description

addMonitoredResources(MonitoredResourceDescriptor.Builder builderForValue)

publicServiceConfig.BuilderaddMonitoredResources(MonitoredResourceDescriptor.BuilderbuilderForValue)

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
Name Description
builderForValue com.google.api.MonitoredResourceDescriptor.Builder
Returns
Type Description

addMonitoredResources(int index, MonitoredResourceDescriptor value)

publicServiceConfig.BuilderaddMonitoredResources(intindex,MonitoredResourceDescriptorvalue)

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
Name Description
index int
value com.google.api.MonitoredResourceDescriptor
Returns
Type Description

addMonitoredResources(int index, MonitoredResourceDescriptor.Builder builderForValue)

publicServiceConfig.BuilderaddMonitoredResources(intindex,MonitoredResourceDescriptor.BuilderbuilderForValue)

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
Name Description
index int
builderForValue com.google.api.MonitoredResourceDescriptor.Builder
Returns
Type Description

addMonitoredResourcesBuilder()

publicMonitoredResourceDescriptor.BuilderaddMonitoredResourcesBuilder()

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
Type Description
com.google.api.MonitoredResourceDescriptor.Builder

addMonitoredResourcesBuilder(int index)

publicMonitoredResourceDescriptor.BuilderaddMonitoredResourcesBuilder(intindex)

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
Name Description
index int
Returns
Type Description
com.google.api.MonitoredResourceDescriptor.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicServiceConfig.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

build()

publicServiceConfigbuild()
Returns
Type Description

buildPartial()

publicServiceConfigbuildPartial()
Returns
Type Description

clear()

publicServiceConfig.Builderclear()
Returns
Type Description
Overrides

clearApis()

publicServiceConfig.BuilderclearApis()

A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces.

repeated .google.protobuf.Api apis = 3;

Returns
Type Description

clearAuthentication()

publicServiceConfig.BuilderclearAuthentication()

Auth configuration. Contains only the OAuth rules.

.google.api.Authentication authentication = 11;

Returns
Type Description

clearDocumentation()

publicServiceConfig.BuilderclearDocumentation()

Additional API documentation. Contains only the summary and the documentation URL.

.google.api.Documentation documentation = 6;

Returns
Type Description

clearEndpoints()

publicServiceConfig.BuilderclearEndpoints()

Configuration for network endpoints. Contains only the names and aliases of the endpoints.

repeated .google.api.Endpoint endpoints = 18;

Returns
Type Description

clearField(Descriptors.FieldDescriptor field)

publicServiceConfig.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
Returns
Type Description
Overrides

clearMonitoredResources()

publicServiceConfig.BuilderclearMonitoredResources()

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
Type Description

clearMonitoring()

publicServiceConfig.BuilderclearMonitoring()

Monitoring configuration. This should not include the 'producer_destinations' field.

.google.api.Monitoring monitoring = 28;

Returns
Type Description

clearName()

publicServiceConfig.BuilderclearName()

The DNS address at which this service is available. An example DNS address would be: calendar.googleapis.com.

string name = 1;

Returns
Type Description
ServiceConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicServiceConfig.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
Returns
Type Description
Overrides

clearQuota()

publicServiceConfig.BuilderclearQuota()

Quota configuration.

.google.api.Quota quota = 10;

Returns
Type Description

clearTitle()

publicServiceConfig.BuilderclearTitle()

The product title for this service.

string title = 2;

Returns
Type Description
ServiceConfig.Builder

This builder for chaining.

clearUsage()

publicServiceConfig.BuilderclearUsage()

Configuration controlling usage of this service.

.google.api.Usage usage = 15;

Returns
Type Description

clone()

publicServiceConfig.Builderclone()
Returns
Type Description
Overrides

getApis(int index)

publicApigetApis(intindex)

A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces.

repeated .google.protobuf.Api apis = 3;

Parameter
Name Description
index int
Returns
Type Description
Api

getApisBuilder(int index)

publicApi.BuildergetApisBuilder(intindex)

A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces.

repeated .google.protobuf.Api apis = 3;

Parameter
Name Description
index int
Returns
Type Description

getApisBuilderList()

publicList<Api.Builder>getApisBuilderList()

A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces.

repeated .google.protobuf.Api apis = 3;

Returns
Type Description

getApisCount()

publicintgetApisCount()

A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces.

repeated .google.protobuf.Api apis = 3;

Returns
Type Description
int

getApisList()

publicList<Api>getApisList()

A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces.

repeated .google.protobuf.Api apis = 3;

Returns
Type Description

getApisOrBuilder(int index)

publicApiOrBuildergetApisOrBuilder(intindex)

A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces.

repeated .google.protobuf.Api apis = 3;

Parameter
Name Description
index int
Returns
Type Description

getApisOrBuilderList()

publicList<?extendsApiOrBuilder>getApisOrBuilderList()

A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces.

repeated .google.protobuf.Api apis = 3;

Returns
Type Description
List<? extends com.google.protobuf.ApiOrBuilder>

getAuthentication()

publicAuthenticationgetAuthentication()

Auth configuration. Contains only the OAuth rules.

.google.api.Authentication authentication = 11;

Returns
Type Description
com.google.api.Authentication

The authentication.

getAuthenticationBuilder()

publicAuthentication.BuildergetAuthenticationBuilder()

Auth configuration. Contains only the OAuth rules.

.google.api.Authentication authentication = 11;

Returns
Type Description
com.google.api.Authentication.Builder

getAuthenticationOrBuilder()

publicAuthenticationOrBuildergetAuthenticationOrBuilder()

Auth configuration. Contains only the OAuth rules.

.google.api.Authentication authentication = 11;

Returns
Type Description
com.google.api.AuthenticationOrBuilder

getDefaultInstanceForType()

publicServiceConfiggetDefaultInstanceForType()
Returns
Type Description

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Overrides

getDocumentation()

publicDocumentationgetDocumentation()

Additional API documentation. Contains only the summary and the documentation URL.

.google.api.Documentation documentation = 6;

Returns
Type Description
com.google.api.Documentation

The documentation.

getDocumentationBuilder()

publicDocumentation.BuildergetDocumentationBuilder()

Additional API documentation. Contains only the summary and the documentation URL.

.google.api.Documentation documentation = 6;

Returns
Type Description
com.google.api.Documentation.Builder

getDocumentationOrBuilder()

publicDocumentationOrBuildergetDocumentationOrBuilder()

Additional API documentation. Contains only the summary and the documentation URL.

.google.api.Documentation documentation = 6;

Returns
Type Description
com.google.api.DocumentationOrBuilder

getEndpoints(int index)

publicEndpointgetEndpoints(intindex)

Configuration for network endpoints. Contains only the names and aliases of the endpoints.

repeated .google.api.Endpoint endpoints = 18;

Parameter
Name Description
index int
Returns
Type Description
com.google.api.Endpoint

getEndpointsBuilder(int index)

publicEndpoint.BuildergetEndpointsBuilder(intindex)

Configuration for network endpoints. Contains only the names and aliases of the endpoints.

repeated .google.api.Endpoint endpoints = 18;

Parameter
Name Description
index int
Returns
Type Description
com.google.api.Endpoint.Builder

getEndpointsBuilderList()

publicList<Endpoint.Builder>getEndpointsBuilderList()

Configuration for network endpoints. Contains only the names and aliases of the endpoints.

repeated .google.api.Endpoint endpoints = 18;

Returns
Type Description
List<com.google.api.Endpoint.Builder>

getEndpointsCount()

publicintgetEndpointsCount()

Configuration for network endpoints. Contains only the names and aliases of the endpoints.

repeated .google.api.Endpoint endpoints = 18;

Returns
Type Description
int

getEndpointsList()

publicList<Endpoint>getEndpointsList()

Configuration for network endpoints. Contains only the names and aliases of the endpoints.

repeated .google.api.Endpoint endpoints = 18;

Returns
Type Description
List<com.google.api.Endpoint>

getEndpointsOrBuilder(int index)

publicEndpointOrBuildergetEndpointsOrBuilder(intindex)

Configuration for network endpoints. Contains only the names and aliases of the endpoints.

repeated .google.api.Endpoint endpoints = 18;

Parameter
Name Description
index int
Returns
Type Description
com.google.api.EndpointOrBuilder

getEndpointsOrBuilderList()

publicList<?extendsEndpointOrBuilder>getEndpointsOrBuilderList()

Configuration for network endpoints. Contains only the names and aliases of the endpoints.

repeated .google.api.Endpoint endpoints = 18;

Returns
Type Description
List<? extends com.google.api.EndpointOrBuilder>

getMonitoredResources(int index)

publicMonitoredResourceDescriptorgetMonitoredResources(intindex)

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
Name Description
index int
Returns
Type Description
com.google.api.MonitoredResourceDescriptor

getMonitoredResourcesBuilder(int index)

publicMonitoredResourceDescriptor.BuildergetMonitoredResourcesBuilder(intindex)

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
Name Description
index int
Returns
Type Description
com.google.api.MonitoredResourceDescriptor.Builder

getMonitoredResourcesBuilderList()

publicList<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
Type Description
List<com.google.api.MonitoredResourceDescriptor.Builder>

getMonitoredResourcesCount()

publicintgetMonitoredResourcesCount()

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
Type Description
int

getMonitoredResourcesList()

publicList<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
Type Description
List<com.google.api.MonitoredResourceDescriptor>

getMonitoredResourcesOrBuilder(int index)

publicMonitoredResourceDescriptorOrBuildergetMonitoredResourcesOrBuilder(intindex)

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
Name Description
index int
Returns
Type Description
com.google.api.MonitoredResourceDescriptorOrBuilder

getMonitoredResourcesOrBuilderList()

publicList<?extendsMonitoredResourceDescriptorOrBuilder>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
Type Description
List<? extends com.google.api.MonitoredResourceDescriptorOrBuilder>

getMonitoring()

publicMonitoringgetMonitoring()

Monitoring configuration. This should not include the 'producer_destinations' field.

.google.api.Monitoring monitoring = 28;

Returns
Type Description
com.google.api.Monitoring

The monitoring.

getMonitoringBuilder()

publicMonitoring.BuildergetMonitoringBuilder()

Monitoring configuration. This should not include the 'producer_destinations' field.

.google.api.Monitoring monitoring = 28;

Returns
Type Description
com.google.api.Monitoring.Builder

getMonitoringOrBuilder()

publicMonitoringOrBuildergetMonitoringOrBuilder()

Monitoring configuration. This should not include the 'producer_destinations' field.

.google.api.Monitoring monitoring = 28;

Returns
Type Description
com.google.api.MonitoringOrBuilder

getName()

publicStringgetName()

The DNS address at which this service is available. An example DNS address would be: calendar.googleapis.com.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

The DNS address at which this service is available. An example DNS address would be: calendar.googleapis.com.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getQuota()

publicQuotagetQuota()

Quota configuration.

.google.api.Quota quota = 10;

Returns
Type Description
com.google.api.Quota

The quota.

getQuotaBuilder()

publicQuota.BuildergetQuotaBuilder()

Quota configuration.

.google.api.Quota quota = 10;

Returns
Type Description
com.google.api.Quota.Builder

getQuotaOrBuilder()

publicQuotaOrBuildergetQuotaOrBuilder()

Quota configuration.

.google.api.Quota quota = 10;

Returns
Type Description
com.google.api.QuotaOrBuilder

getTitle()

publicStringgetTitle()

The product title for this service.

string title = 2;

Returns
Type Description
String

The title.

getTitleBytes()

publicByteStringgetTitleBytes()

The product title for this service.

string title = 2;

Returns
Type Description
ByteString

The bytes for title.

getUsage()

publicUsagegetUsage()

Configuration controlling usage of this service.

.google.api.Usage usage = 15;

Returns
Type Description
com.google.api.Usage

The usage.

getUsageBuilder()

publicUsage.BuildergetUsageBuilder()

Configuration controlling usage of this service.

.google.api.Usage usage = 15;

Returns
Type Description
com.google.api.Usage.Builder

getUsageOrBuilder()

publicUsageOrBuildergetUsageOrBuilder()

Configuration controlling usage of this service.

.google.api.Usage usage = 15;

Returns
Type Description
com.google.api.UsageOrBuilder

hasAuthentication()

publicbooleanhasAuthentication()

Auth configuration. Contains only the OAuth rules.

.google.api.Authentication authentication = 11;

Returns
Type Description
boolean

Whether the authentication field is set.

hasDocumentation()

publicbooleanhasDocumentation()

Additional API documentation. Contains only the summary and the documentation URL.

.google.api.Documentation documentation = 6;

Returns
Type Description
boolean

Whether the documentation field is set.

hasMonitoring()

publicbooleanhasMonitoring()

Monitoring configuration. This should not include the 'producer_destinations' field.

.google.api.Monitoring monitoring = 28;

Returns
Type Description
boolean

Whether the monitoring field is set.

hasQuota()

publicbooleanhasQuota()

Quota configuration.

.google.api.Quota quota = 10;

Returns
Type Description
boolean

Whether the quota field is set.

hasUsage()

publicbooleanhasUsage()

Configuration controlling usage of this service.

.google.api.Usage usage = 15;

Returns
Type Description
boolean

Whether the usage field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

mergeAuthentication(Authentication value)

publicServiceConfig.BuildermergeAuthentication(Authenticationvalue)

Auth configuration. Contains only the OAuth rules.

.google.api.Authentication authentication = 11;

Parameter
Name Description
value com.google.api.Authentication
Returns
Type Description

mergeDocumentation(Documentation value)

publicServiceConfig.BuildermergeDocumentation(Documentationvalue)

Additional API documentation. Contains only the summary and the documentation URL.

.google.api.Documentation documentation = 6;

Parameter
Name Description
value com.google.api.Documentation
Returns
Type Description

mergeFrom(ServiceConfig other)

publicServiceConfig.BuildermergeFrom(ServiceConfigother)
Parameter
Name Description
Returns
Type Description

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicServiceConfig.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Overrides Exceptions
Type Description

mergeFrom(Message other)

publicServiceConfig.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Overrides

mergeMonitoring(Monitoring value)

publicServiceConfig.BuildermergeMonitoring(Monitoringvalue)

Monitoring configuration. This should not include the 'producer_destinations' field.

.google.api.Monitoring monitoring = 28;

Parameter
Name Description
value com.google.api.Monitoring
Returns
Type Description

mergeQuota(Quota value)

publicServiceConfig.BuildermergeQuota(Quotavalue)

Quota configuration.

.google.api.Quota quota = 10;

Parameter
Name Description
value com.google.api.Quota
Returns
Type Description

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalServiceConfig.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

mergeUsage(Usage value)

publicServiceConfig.BuildermergeUsage(Usagevalue)

Configuration controlling usage of this service.

.google.api.Usage usage = 15;

Parameter
Name Description
value com.google.api.Usage
Returns
Type Description

removeApis(int index)

publicServiceConfig.BuilderremoveApis(intindex)

A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces.

repeated .google.protobuf.Api apis = 3;

Parameter
Name Description
index int
Returns
Type Description

removeEndpoints(int index)

publicServiceConfig.BuilderremoveEndpoints(intindex)

Configuration for network endpoints. Contains only the names and aliases of the endpoints.

repeated .google.api.Endpoint endpoints = 18;

Parameter
Name Description
index int
Returns
Type Description

removeMonitoredResources(int index)

publicServiceConfig.BuilderremoveMonitoredResources(intindex)

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
Name Description
index int
Returns
Type Description

setApis(int index, Api value)

publicServiceConfig.BuildersetApis(intindex,Apivalue)

A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces.

repeated .google.protobuf.Api apis = 3;

Parameters
Name Description
index int
value Api
Returns
Type Description

setApis(int index, Api.Builder builderForValue)

publicServiceConfig.BuildersetApis(intindex,Api.BuilderbuilderForValue)

A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces.

repeated .google.protobuf.Api apis = 3;

Parameters
Name Description
index int
builderForValue Builder
Returns
Type Description

setAuthentication(Authentication value)

publicServiceConfig.BuildersetAuthentication(Authenticationvalue)

Auth configuration. Contains only the OAuth rules.

.google.api.Authentication authentication = 11;

Parameter
Name Description
value com.google.api.Authentication
Returns
Type Description

setAuthentication(Authentication.Builder builderForValue)

publicServiceConfig.BuildersetAuthentication(Authentication.BuilderbuilderForValue)

Auth configuration. Contains only the OAuth rules.

.google.api.Authentication authentication = 11;

Parameter
Name Description
builderForValue com.google.api.Authentication.Builder
Returns
Type Description

setDocumentation(Documentation value)

publicServiceConfig.BuildersetDocumentation(Documentationvalue)

Additional API documentation. Contains only the summary and the documentation URL.

.google.api.Documentation documentation = 6;

Parameter
Name Description
value com.google.api.Documentation
Returns
Type Description

setDocumentation(Documentation.Builder builderForValue)

publicServiceConfig.BuildersetDocumentation(Documentation.BuilderbuilderForValue)

Additional API documentation. Contains only the summary and the documentation URL.

.google.api.Documentation documentation = 6;

Parameter
Name Description
builderForValue com.google.api.Documentation.Builder
Returns
Type Description

setEndpoints(int index, Endpoint value)

publicServiceConfig.BuildersetEndpoints(intindex,Endpointvalue)

Configuration for network endpoints. Contains only the names and aliases of the endpoints.

repeated .google.api.Endpoint endpoints = 18;

Parameters
Name Description
index int
value com.google.api.Endpoint
Returns
Type Description

setEndpoints(int index, Endpoint.Builder builderForValue)

publicServiceConfig.BuildersetEndpoints(intindex,Endpoint.BuilderbuilderForValue)

Configuration for network endpoints. Contains only the names and aliases of the endpoints.

repeated .google.api.Endpoint endpoints = 18;

Parameters
Name Description
index int
builderForValue com.google.api.Endpoint.Builder
Returns
Type Description

setField(Descriptors.FieldDescriptor field, Object value)

publicServiceConfig.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

setMonitoredResources(int index, MonitoredResourceDescriptor value)

publicServiceConfig.BuildersetMonitoredResources(intindex,MonitoredResourceDescriptorvalue)

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
Name Description
index int
value com.google.api.MonitoredResourceDescriptor
Returns
Type Description

setMonitoredResources(int index, MonitoredResourceDescriptor.Builder builderForValue)

publicServiceConfig.BuildersetMonitoredResources(intindex,MonitoredResourceDescriptor.BuilderbuilderForValue)

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
Name Description
index int
builderForValue com.google.api.MonitoredResourceDescriptor.Builder
Returns
Type Description

setMonitoring(Monitoring value)

publicServiceConfig.BuildersetMonitoring(Monitoringvalue)

Monitoring configuration. This should not include the 'producer_destinations' field.

.google.api.Monitoring monitoring = 28;

Parameter
Name Description
value com.google.api.Monitoring
Returns
Type Description

setMonitoring(Monitoring.Builder builderForValue)

publicServiceConfig.BuildersetMonitoring(Monitoring.BuilderbuilderForValue)

Monitoring configuration. This should not include the 'producer_destinations' field.

.google.api.Monitoring monitoring = 28;

Parameter
Name Description
builderForValue com.google.api.Monitoring.Builder
Returns
Type Description

setName(String value)

publicServiceConfig.BuildersetName(Stringvalue)

The DNS address at which this service is available. An example DNS address would be: calendar.googleapis.com.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ServiceConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

publicServiceConfig.BuildersetNameBytes(ByteStringvalue)

The DNS address at which this service is available. An example DNS address would be: calendar.googleapis.com.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ServiceConfig.Builder

This builder for chaining.

setQuota(Quota value)

publicServiceConfig.BuildersetQuota(Quotavalue)

Quota configuration.

.google.api.Quota quota = 10;

Parameter
Name Description
value com.google.api.Quota
Returns
Type Description

setQuota(Quota.Builder builderForValue)

publicServiceConfig.BuildersetQuota(Quota.BuilderbuilderForValue)

Quota configuration.

.google.api.Quota quota = 10;

Parameter
Name Description
builderForValue com.google.api.Quota.Builder
Returns
Type Description

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

publicServiceConfig.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
index int
value Object
Returns
Type Description
Overrides

setTitle(String value)

publicServiceConfig.BuildersetTitle(Stringvalue)

The product title for this service.

string title = 2;

Parameter
Name Description
value String

The title to set.

Returns
Type Description
ServiceConfig.Builder

This builder for chaining.

setTitleBytes(ByteString value)

publicServiceConfig.BuildersetTitleBytes(ByteStringvalue)

The product title for this service.

string title = 2;

Parameter
Name Description
value ByteString

The bytes for title to set.

Returns
Type Description
ServiceConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalServiceConfig.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

setUsage(Usage value)

publicServiceConfig.BuildersetUsage(Usagevalue)

Configuration controlling usage of this service.

.google.api.Usage usage = 15;

Parameter
Name Description
value com.google.api.Usage
Returns
Type Description

setUsage(Usage.Builder builderForValue)

publicServiceConfig.BuildersetUsage(Usage.BuilderbuilderForValue)

Configuration controlling usage of this service.

.google.api.Usage usage = 15;

Parameter
Name Description
builderForValue com.google.api.Usage.Builder
Returns
Type Description

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.