Class ServiceConfig.Builder (2.22.0)

public static final class ServiceConfig.Builder extends GeneratedMessageV3.Builder<ServiceConfig.Builder> implements ServiceConfigOrBuilder

The configuration of the service.

Protobuf type google.api.serviceusage.v1.ServiceConfig

Static Methods

getDescriptor()

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

Methods

addAllApis(Iterable<? extends Api> values)

public ServiceConfig.Builder addAllApis(Iterable<? extends Api> 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
NameDescription
valuesIterable<? extends com.google.protobuf.Api>
Returns
TypeDescription
ServiceConfig.Builder

addAllEndpoints(Iterable<? extends Endpoint> values)

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

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

repeated .google.api.Endpoint endpoints = 18;

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

addAllMonitoredResources(Iterable<? extends MonitoredResourceDescriptor> values)

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

addApis(Api value)

public ServiceConfig.Builder addApis(Api value)

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
NameDescription
valueApi
Returns
TypeDescription
ServiceConfig.Builder

addApis(Api.Builder builderForValue)

public ServiceConfig.Builder addApis(Api.Builder builderForValue)

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
NameDescription
builderForValueBuilder
Returns
TypeDescription
ServiceConfig.Builder

addApis(int index, Api value)

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

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
NameDescription
indexint
valueApi
Returns
TypeDescription
ServiceConfig.Builder

addApis(int index, Api.Builder builderForValue)

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

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
NameDescription
indexint
builderForValueBuilder
Returns
TypeDescription
ServiceConfig.Builder

addApisBuilder()

public Api.Builder addApisBuilder()

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

addApisBuilder(int index)

public Api.Builder addApisBuilder(int index)

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
NameDescription
indexint
Returns
TypeDescription
Builder

addEndpoints(Endpoint value)

public ServiceConfig.Builder addEndpoints(Endpoint value)

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

repeated .google.api.Endpoint endpoints = 18;

Parameter
NameDescription
valuecom.google.api.Endpoint
Returns
TypeDescription
ServiceConfig.Builder

addEndpoints(Endpoint.Builder builderForValue)

public ServiceConfig.Builder addEndpoints(Endpoint.Builder builderForValue)

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

repeated .google.api.Endpoint endpoints = 18;

Parameter
NameDescription
builderForValuecom.google.api.Endpoint.Builder
Returns
TypeDescription
ServiceConfig.Builder

addEndpoints(int index, Endpoint value)

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

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

repeated .google.api.Endpoint endpoints = 18;

Parameters
NameDescription
indexint
valuecom.google.api.Endpoint
Returns
TypeDescription
ServiceConfig.Builder

addEndpoints(int index, Endpoint.Builder builderForValue)

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

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

repeated .google.api.Endpoint endpoints = 18;

Parameters
NameDescription
indexint
builderForValuecom.google.api.Endpoint.Builder
Returns
TypeDescription
ServiceConfig.Builder

addEndpointsBuilder()

public Endpoint.Builder addEndpointsBuilder()

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

repeated .google.api.Endpoint endpoints = 18;

Returns
TypeDescription
com.google.api.Endpoint.Builder

addEndpointsBuilder(int index)

public Endpoint.Builder addEndpointsBuilder(int index)

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

repeated .google.api.Endpoint endpoints = 18;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.api.Endpoint.Builder

addMonitoredResources(MonitoredResourceDescriptor value)

public ServiceConfig.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
valuecom.google.api.MonitoredResourceDescriptor
Returns
TypeDescription
ServiceConfig.Builder

addMonitoredResources(MonitoredResourceDescriptor.Builder builderForValue)

public ServiceConfig.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
builderForValuecom.google.api.MonitoredResourceDescriptor.Builder
Returns
TypeDescription
ServiceConfig.Builder

addMonitoredResources(int index, MonitoredResourceDescriptor value)

public ServiceConfig.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
valuecom.google.api.MonitoredResourceDescriptor
Returns
TypeDescription
ServiceConfig.Builder

addMonitoredResources(int index, MonitoredResourceDescriptor.Builder builderForValue)

public ServiceConfig.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
builderForValuecom.google.api.MonitoredResourceDescriptor.Builder
Returns
TypeDescription
ServiceConfig.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
com.google.api.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
com.google.api.MonitoredResourceDescriptor.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ServiceConfig build()
Returns
TypeDescription
ServiceConfig

buildPartial()

public ServiceConfig buildPartial()
Returns
TypeDescription
ServiceConfig

clear()

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

clearApis()

public ServiceConfig.Builder clearApis()

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

clearAuthentication()

public ServiceConfig.Builder clearAuthentication()

Auth configuration. Contains only the OAuth rules.

.google.api.Authentication authentication = 11;

Returns
TypeDescription
ServiceConfig.Builder

clearDocumentation()

public ServiceConfig.Builder clearDocumentation()

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

.google.api.Documentation documentation = 6;

Returns
TypeDescription
ServiceConfig.Builder

clearEndpoints()

public ServiceConfig.Builder clearEndpoints()

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

repeated .google.api.Endpoint endpoints = 18;

Returns
TypeDescription
ServiceConfig.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMonitoredResources()

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

clearMonitoring()

public ServiceConfig.Builder clearMonitoring()

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

.google.api.Monitoring monitoring = 28;

Returns
TypeDescription
ServiceConfig.Builder

clearName()

public ServiceConfig.Builder clearName()

The DNS address at which this service is available.

An example DNS address would be: calendar.googleapis.com.

string name = 1;

Returns
TypeDescription
ServiceConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearQuota()

public ServiceConfig.Builder clearQuota()

Quota configuration.

.google.api.Quota quota = 10;

Returns
TypeDescription
ServiceConfig.Builder

clearTitle()

public ServiceConfig.Builder clearTitle()

The product title for this service.

string title = 2;

Returns
TypeDescription
ServiceConfig.Builder

This builder for chaining.

clearUsage()

public ServiceConfig.Builder clearUsage()

Configuration controlling usage of this service.

.google.api.Usage usage = 15;

Returns
TypeDescription
ServiceConfig.Builder

clone()

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

getApis(int index)

public Api getApis(int index)

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
NameDescription
indexint
Returns
TypeDescription
Api

getApisBuilder(int index)

public Api.Builder getApisBuilder(int index)

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
NameDescription
indexint
Returns
TypeDescription
Builder

getApisBuilderList()

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

getApisCount()

public int getApisCount()

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
TypeDescription
int

getApisList()

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

getApisOrBuilder(int index)

public ApiOrBuilder getApisOrBuilder(int index)

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
NameDescription
indexint
Returns
TypeDescription
ApiOrBuilder

getApisOrBuilderList()

public List<? extends ApiOrBuilder> 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
TypeDescription
List<? extends com.google.protobuf.ApiOrBuilder>

getAuthentication()

public Authentication getAuthentication()

Auth configuration. Contains only the OAuth rules.

.google.api.Authentication authentication = 11;

Returns
TypeDescription
com.google.api.Authentication

The authentication.

getAuthenticationBuilder()

public Authentication.Builder getAuthenticationBuilder()

Auth configuration. Contains only the OAuth rules.

.google.api.Authentication authentication = 11;

Returns
TypeDescription
com.google.api.Authentication.Builder

getAuthenticationOrBuilder()

public AuthenticationOrBuilder getAuthenticationOrBuilder()

Auth configuration. Contains only the OAuth rules.

.google.api.Authentication authentication = 11;

Returns
TypeDescription
com.google.api.AuthenticationOrBuilder

getDefaultInstanceForType()

public ServiceConfig getDefaultInstanceForType()
Returns
TypeDescription
ServiceConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDocumentation()

public Documentation getDocumentation()

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

.google.api.Documentation documentation = 6;

Returns
TypeDescription
com.google.api.Documentation

The documentation.

getDocumentationBuilder()

public Documentation.Builder getDocumentationBuilder()

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

.google.api.Documentation documentation = 6;

Returns
TypeDescription
com.google.api.Documentation.Builder

getDocumentationOrBuilder()

public DocumentationOrBuilder getDocumentationOrBuilder()

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

.google.api.Documentation documentation = 6;

Returns
TypeDescription
com.google.api.DocumentationOrBuilder

getEndpoints(int index)

public Endpoint getEndpoints(int index)

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

repeated .google.api.Endpoint endpoints = 18;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.api.Endpoint

getEndpointsBuilder(int index)

public Endpoint.Builder getEndpointsBuilder(int index)

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

repeated .google.api.Endpoint endpoints = 18;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.api.Endpoint.Builder

getEndpointsBuilderList()

public List<Endpoint.Builder> getEndpointsBuilderList()

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

repeated .google.api.Endpoint endpoints = 18;

Returns
TypeDescription
List<com.google.api.Endpoint.Builder>

getEndpointsCount()

public int getEndpointsCount()

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

repeated .google.api.Endpoint endpoints = 18;

Returns
TypeDescription
int

getEndpointsList()

public List<Endpoint> getEndpointsList()

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

repeated .google.api.Endpoint endpoints = 18;

Returns
TypeDescription
List<com.google.api.Endpoint>

getEndpointsOrBuilder(int index)

public EndpointOrBuilder getEndpointsOrBuilder(int index)

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

repeated .google.api.Endpoint endpoints = 18;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.api.EndpointOrBuilder

getEndpointsOrBuilderList()

public List<? extends EndpointOrBuilder> getEndpointsOrBuilderList()

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

repeated .google.api.Endpoint endpoints = 18;

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

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
com.google.api.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
com.google.api.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<com.google.api.MonitoredResourceDescriptor.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<com.google.api.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
com.google.api.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. This should not include the 'producer_destinations' field.

.google.api.Monitoring monitoring = 28;

Returns
TypeDescription
com.google.api.Monitoring

The monitoring.

getMonitoringBuilder()

public Monitoring.Builder getMonitoringBuilder()

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

.google.api.Monitoring monitoring = 28;

Returns
TypeDescription
com.google.api.Monitoring.Builder

getMonitoringOrBuilder()

public MonitoringOrBuilder getMonitoringOrBuilder()

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

.google.api.Monitoring monitoring = 28;

Returns
TypeDescription
com.google.api.MonitoringOrBuilder

getName()

public String getName()

The DNS address at which this service is available.

An example DNS address would be: calendar.googleapis.com.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The DNS address at which this service is available.

An example DNS address would be: calendar.googleapis.com.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getQuota()

public Quota getQuota()

Quota configuration.

.google.api.Quota quota = 10;

Returns
TypeDescription
com.google.api.Quota

The quota.

getQuotaBuilder()

public Quota.Builder getQuotaBuilder()

Quota configuration.

.google.api.Quota quota = 10;

Returns
TypeDescription
com.google.api.Quota.Builder

getQuotaOrBuilder()

public QuotaOrBuilder getQuotaOrBuilder()

Quota configuration.

.google.api.Quota quota = 10;

Returns
TypeDescription
com.google.api.QuotaOrBuilder

getTitle()

public String getTitle()

The product title for this service.

string title = 2;

Returns
TypeDescription
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

The product title for this service.

string title = 2;

Returns
TypeDescription
ByteString

The bytes for title.

getUsage()

public Usage getUsage()

Configuration controlling usage of this service.

.google.api.Usage usage = 15;

Returns
TypeDescription
com.google.api.Usage

The usage.

getUsageBuilder()

public Usage.Builder getUsageBuilder()

Configuration controlling usage of this service.

.google.api.Usage usage = 15;

Returns
TypeDescription
com.google.api.Usage.Builder

getUsageOrBuilder()

public UsageOrBuilder getUsageOrBuilder()

Configuration controlling usage of this service.

.google.api.Usage usage = 15;

Returns
TypeDescription
com.google.api.UsageOrBuilder

hasAuthentication()

public boolean hasAuthentication()

Auth configuration. Contains only the OAuth rules.

.google.api.Authentication authentication = 11;

Returns
TypeDescription
boolean

Whether the authentication field is set.

hasDocumentation()

public boolean hasDocumentation()

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

.google.api.Documentation documentation = 6;

Returns
TypeDescription
boolean

Whether the documentation field is set.

hasMonitoring()

public boolean hasMonitoring()

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

.google.api.Monitoring monitoring = 28;

Returns
TypeDescription
boolean

Whether the monitoring field is set.

hasQuota()

public boolean hasQuota()

Quota configuration.

.google.api.Quota quota = 10;

Returns
TypeDescription
boolean

Whether the quota 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 ServiceConfig.Builder mergeAuthentication(Authentication value)

Auth configuration. Contains only the OAuth rules.

.google.api.Authentication authentication = 11;

Parameter
NameDescription
valuecom.google.api.Authentication
Returns
TypeDescription
ServiceConfig.Builder

mergeDocumentation(Documentation value)

public ServiceConfig.Builder mergeDocumentation(Documentation value)

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

.google.api.Documentation documentation = 6;

Parameter
NameDescription
valuecom.google.api.Documentation
Returns
TypeDescription
ServiceConfig.Builder

mergeFrom(ServiceConfig other)

public ServiceConfig.Builder mergeFrom(ServiceConfig other)
Parameter
NameDescription
otherServiceConfig
Returns
TypeDescription
ServiceConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMonitoring(Monitoring value)

public ServiceConfig.Builder mergeMonitoring(Monitoring value)

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

.google.api.Monitoring monitoring = 28;

Parameter
NameDescription
valuecom.google.api.Monitoring
Returns
TypeDescription
ServiceConfig.Builder

mergeQuota(Quota value)

public ServiceConfig.Builder mergeQuota(Quota value)

Quota configuration.

.google.api.Quota quota = 10;

Parameter
NameDescription
valuecom.google.api.Quota
Returns
TypeDescription
ServiceConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUsage(Usage value)

public ServiceConfig.Builder mergeUsage(Usage value)

Configuration controlling usage of this service.

.google.api.Usage usage = 15;

Parameter
NameDescription
valuecom.google.api.Usage
Returns
TypeDescription
ServiceConfig.Builder

removeApis(int index)

public ServiceConfig.Builder removeApis(int index)

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
NameDescription
indexint
Returns
TypeDescription
ServiceConfig.Builder

removeEndpoints(int index)

public ServiceConfig.Builder removeEndpoints(int index)

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

repeated .google.api.Endpoint endpoints = 18;

Parameter
NameDescription
indexint
Returns
TypeDescription
ServiceConfig.Builder

removeMonitoredResources(int index)

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

setApis(int index, Api value)

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

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
NameDescription
indexint
valueApi
Returns
TypeDescription
ServiceConfig.Builder

setApis(int index, Api.Builder builderForValue)

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

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
NameDescription
indexint
builderForValueBuilder
Returns
TypeDescription
ServiceConfig.Builder

setAuthentication(Authentication value)

public ServiceConfig.Builder setAuthentication(Authentication value)

Auth configuration. Contains only the OAuth rules.

.google.api.Authentication authentication = 11;

Parameter
NameDescription
valuecom.google.api.Authentication
Returns
TypeDescription
ServiceConfig.Builder

setAuthentication(Authentication.Builder builderForValue)

public ServiceConfig.Builder setAuthentication(Authentication.Builder builderForValue)

Auth configuration. Contains only the OAuth rules.

.google.api.Authentication authentication = 11;

Parameter
NameDescription
builderForValuecom.google.api.Authentication.Builder
Returns
TypeDescription
ServiceConfig.Builder

setDocumentation(Documentation value)

public ServiceConfig.Builder setDocumentation(Documentation value)

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

.google.api.Documentation documentation = 6;

Parameter
NameDescription
valuecom.google.api.Documentation
Returns
TypeDescription
ServiceConfig.Builder

setDocumentation(Documentation.Builder builderForValue)

public ServiceConfig.Builder setDocumentation(Documentation.Builder builderForValue)

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

.google.api.Documentation documentation = 6;

Parameter
NameDescription
builderForValuecom.google.api.Documentation.Builder
Returns
TypeDescription
ServiceConfig.Builder

setEndpoints(int index, Endpoint value)

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

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

repeated .google.api.Endpoint endpoints = 18;

Parameters
NameDescription
indexint
valuecom.google.api.Endpoint
Returns
TypeDescription
ServiceConfig.Builder

setEndpoints(int index, Endpoint.Builder builderForValue)

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

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

repeated .google.api.Endpoint endpoints = 18;

Parameters
NameDescription
indexint
builderForValuecom.google.api.Endpoint.Builder
Returns
TypeDescription
ServiceConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMonitoredResources(int index, MonitoredResourceDescriptor value)

public ServiceConfig.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
valuecom.google.api.MonitoredResourceDescriptor
Returns
TypeDescription
ServiceConfig.Builder

setMonitoredResources(int index, MonitoredResourceDescriptor.Builder builderForValue)

public ServiceConfig.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
builderForValuecom.google.api.MonitoredResourceDescriptor.Builder
Returns
TypeDescription
ServiceConfig.Builder

setMonitoring(Monitoring value)

public ServiceConfig.Builder setMonitoring(Monitoring value)

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

.google.api.Monitoring monitoring = 28;

Parameter
NameDescription
valuecom.google.api.Monitoring
Returns
TypeDescription
ServiceConfig.Builder

setMonitoring(Monitoring.Builder builderForValue)

public ServiceConfig.Builder setMonitoring(Monitoring.Builder builderForValue)

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

.google.api.Monitoring monitoring = 28;

Parameter
NameDescription
builderForValuecom.google.api.Monitoring.Builder
Returns
TypeDescription
ServiceConfig.Builder

setName(String value)

public ServiceConfig.Builder setName(String value)

The DNS address at which this service is available.

An example DNS address would be: calendar.googleapis.com.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ServiceConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ServiceConfig.Builder setNameBytes(ByteString value)

The DNS address at which this service is available.

An example DNS address would be: calendar.googleapis.com.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ServiceConfig.Builder

This builder for chaining.

setQuota(Quota value)

public ServiceConfig.Builder setQuota(Quota value)

Quota configuration.

.google.api.Quota quota = 10;

Parameter
NameDescription
valuecom.google.api.Quota
Returns
TypeDescription
ServiceConfig.Builder

setQuota(Quota.Builder builderForValue)

public ServiceConfig.Builder setQuota(Quota.Builder builderForValue)

Quota configuration.

.google.api.Quota quota = 10;

Parameter
NameDescription
builderForValuecom.google.api.Quota.Builder
Returns
TypeDescription
ServiceConfig.Builder

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

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

setTitle(String value)

public ServiceConfig.Builder setTitle(String value)

The product title for this service.

string title = 2;

Parameter
NameDescription
valueString

The title to set.

Returns
TypeDescription
ServiceConfig.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public ServiceConfig.Builder setTitleBytes(ByteString value)

The product title for this service.

string title = 2;

Parameter
NameDescription
valueByteString

The bytes for title to set.

Returns
TypeDescription
ServiceConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUsage(Usage value)

public ServiceConfig.Builder setUsage(Usage value)

Configuration controlling usage of this service.

.google.api.Usage usage = 15;

Parameter
NameDescription
valuecom.google.api.Usage
Returns
TypeDescription
ServiceConfig.Builder

setUsage(Usage.Builder builderForValue)

public ServiceConfig.Builder setUsage(Usage.Builder builderForValue)

Configuration controlling usage of this service.

.google.api.Usage usage = 15;

Parameter
NameDescription
builderForValuecom.google.api.Usage.Builder
Returns
TypeDescription
ServiceConfig.Builder