Class ServiceConfig.Builder (2.31.0)

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.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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
Descriptor

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
ServiceConfig.Builder

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
ServiceConfig.Builder

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
ServiceConfig.Builder

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
ServiceConfig.Builder

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
ServiceConfig.Builder

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
ServiceConfig.Builder

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
ServiceConfig.Builder

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
Builder

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
Builder

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
ServiceConfig.Builder

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
ServiceConfig.Builder

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
ServiceConfig.Builder

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
ServiceConfig.Builder

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
ServiceConfig.Builder

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
ServiceConfig.Builder

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
ServiceConfig.Builder

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
ServiceConfig.Builder

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
field FieldDescriptor
value Object
Returns
Type Description
ServiceConfig.Builder
Overrides

build()

publicServiceConfigbuild()
Returns
Type Description
ServiceConfig

buildPartial()

publicServiceConfigbuildPartial()
Returns
Type Description
ServiceConfig

clear()

publicServiceConfig.Builderclear()
Returns
Type Description
ServiceConfig.Builder
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
ServiceConfig.Builder

clearAuthentication()

publicServiceConfig.BuilderclearAuthentication()

Auth configuration. Contains only the OAuth rules.

.google.api.Authentication authentication = 11;

Returns
Type Description
ServiceConfig.Builder

clearDocumentation()

publicServiceConfig.BuilderclearDocumentation()

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

.google.api.Documentation documentation = 6;

Returns
Type Description
ServiceConfig.Builder

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
ServiceConfig.Builder

clearField(Descriptors.FieldDescriptor field)

publicServiceConfig.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ServiceConfig.Builder
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
ServiceConfig.Builder

clearMonitoring()

publicServiceConfig.BuilderclearMonitoring()

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

.google.api.Monitoring monitoring = 28;

Returns
Type Description
ServiceConfig.Builder

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
oneof OneofDescriptor
Returns
Type Description
ServiceConfig.Builder
Overrides

clearQuota()

publicServiceConfig.BuilderclearQuota()

Quota configuration.

.google.api.Quota quota = 10;

Returns
Type Description
ServiceConfig.Builder

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
ServiceConfig.Builder

clone()

publicServiceConfig.Builderclone()
Returns
Type Description
ServiceConfig.Builder
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
Builder

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
List<Builder>

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
List<Api>

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
ApiOrBuilder

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
ServiceConfig

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
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
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
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
ServiceConfig.Builder

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
ServiceConfig.Builder

mergeFrom(ServiceConfig other)

publicServiceConfig.BuildermergeFrom(ServiceConfigother)
Parameter
Name Description
other ServiceConfig
Returns
Type Description
ServiceConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicServiceConfig.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServiceConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicServiceConfig.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
ServiceConfig.Builder
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
ServiceConfig.Builder

mergeQuota(Quota value)

publicServiceConfig.BuildermergeQuota(Quotavalue)

Quota configuration.

.google.api.Quota quota = 10;

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

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalServiceConfig.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ServiceConfig.Builder
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
ServiceConfig.Builder

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
ServiceConfig.Builder

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
ServiceConfig.Builder

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
ServiceConfig.Builder

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
ServiceConfig.Builder

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
ServiceConfig.Builder

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
ServiceConfig.Builder

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
ServiceConfig.Builder

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
ServiceConfig.Builder

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
ServiceConfig.Builder

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
ServiceConfig.Builder

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
ServiceConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

publicServiceConfig.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ServiceConfig.Builder
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
ServiceConfig.Builder

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
ServiceConfig.Builder

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
ServiceConfig.Builder

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
ServiceConfig.Builder

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
ServiceConfig.Builder

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
ServiceConfig.Builder

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

publicServiceConfig.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ServiceConfig.Builder
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
ServiceConfig.Builder
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
ServiceConfig.Builder

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
ServiceConfig.Builder

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.