Class BatchEnableServicesResponse.Builder (2.54.0)

publicstaticfinalclass BatchEnableServicesResponse.BuilderextendsGeneratedMessageV3.Builder<BatchEnableServicesResponse.Builder>implementsBatchEnableServicesResponseOrBuilder

Response message for the BatchEnableServices method. This response message is assigned to the response field of the returned Operation when that operation is done.

Protobuf type google.api.serviceusage.v1.BatchEnableServicesResponse

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

addAllFailures(Iterable<? extends BatchEnableServicesResponse.EnableFailure> values)

publicBatchEnableServicesResponse.BuilderaddAllFailures(Iterable<?extendsBatchEnableServicesResponse.EnableFailure>values)

If allow_partial_success is true, and one or more services could not be enabled, this field contains the details about each failure.

repeated .google.api.serviceusage.v1.BatchEnableServicesResponse.EnableFailure failures = 2;

Parameter
Name Description
values Iterable<? extends com.google.api.serviceusage.v1.BatchEnableServicesResponse.EnableFailure>
Returns
Type Description
BatchEnableServicesResponse.Builder

addAllServices(Iterable<? extends Service> values)

publicBatchEnableServicesResponse.BuilderaddAllServices(Iterable<?extendsService>values)

The new state of the services after enabling.

repeated .google.api.serviceusage.v1.Service services = 1;

Parameter
Name Description
values Iterable<? extends com.google.api.serviceusage.v1.Service>
Returns
Type Description
BatchEnableServicesResponse.Builder

addFailures(BatchEnableServicesResponse.EnableFailure value)

publicBatchEnableServicesResponse.BuilderaddFailures(BatchEnableServicesResponse.EnableFailurevalue)

If allow_partial_success is true, and one or more services could not be enabled, this field contains the details about each failure.

repeated .google.api.serviceusage.v1.BatchEnableServicesResponse.EnableFailure failures = 2;

Parameter
Name Description
value BatchEnableServicesResponse.EnableFailure
Returns
Type Description
BatchEnableServicesResponse.Builder

addFailures(BatchEnableServicesResponse.EnableFailure.Builder builderForValue)

publicBatchEnableServicesResponse.BuilderaddFailures(BatchEnableServicesResponse.EnableFailure.BuilderbuilderForValue)

If allow_partial_success is true, and one or more services could not be enabled, this field contains the details about each failure.

repeated .google.api.serviceusage.v1.BatchEnableServicesResponse.EnableFailure failures = 2;

Parameter
Name Description
builderForValue BatchEnableServicesResponse.EnableFailure.Builder
Returns
Type Description
BatchEnableServicesResponse.Builder

addFailures(int index, BatchEnableServicesResponse.EnableFailure value)

publicBatchEnableServicesResponse.BuilderaddFailures(intindex,BatchEnableServicesResponse.EnableFailurevalue)

If allow_partial_success is true, and one or more services could not be enabled, this field contains the details about each failure.

repeated .google.api.serviceusage.v1.BatchEnableServicesResponse.EnableFailure failures = 2;

Parameters
Name Description
index int
value BatchEnableServicesResponse.EnableFailure
Returns
Type Description
BatchEnableServicesResponse.Builder

addFailures(int index, BatchEnableServicesResponse.EnableFailure.Builder builderForValue)

publicBatchEnableServicesResponse.BuilderaddFailures(intindex,BatchEnableServicesResponse.EnableFailure.BuilderbuilderForValue)

If allow_partial_success is true, and one or more services could not be enabled, this field contains the details about each failure.

repeated .google.api.serviceusage.v1.BatchEnableServicesResponse.EnableFailure failures = 2;

Parameters
Name Description
index int
builderForValue BatchEnableServicesResponse.EnableFailure.Builder
Returns
Type Description
BatchEnableServicesResponse.Builder

addFailuresBuilder()

publicBatchEnableServicesResponse.EnableFailure.BuilderaddFailuresBuilder()

If allow_partial_success is true, and one or more services could not be enabled, this field contains the details about each failure.

repeated .google.api.serviceusage.v1.BatchEnableServicesResponse.EnableFailure failures = 2;

Returns
Type Description
BatchEnableServicesResponse.EnableFailure.Builder

addFailuresBuilder(int index)

publicBatchEnableServicesResponse.EnableFailure.BuilderaddFailuresBuilder(intindex)

If allow_partial_success is true, and one or more services could not be enabled, this field contains the details about each failure.

repeated .google.api.serviceusage.v1.BatchEnableServicesResponse.EnableFailure failures = 2;

Parameter
Name Description
index int
Returns
Type Description
BatchEnableServicesResponse.EnableFailure.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicBatchEnableServicesResponse.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchEnableServicesResponse.Builder
Overrides

addServices(Service value)

publicBatchEnableServicesResponse.BuilderaddServices(Servicevalue)

The new state of the services after enabling.

repeated .google.api.serviceusage.v1.Service services = 1;

Parameter
Name Description
value Service
Returns
Type Description
BatchEnableServicesResponse.Builder

addServices(Service.Builder builderForValue)

publicBatchEnableServicesResponse.BuilderaddServices(Service.BuilderbuilderForValue)

The new state of the services after enabling.

repeated .google.api.serviceusage.v1.Service services = 1;

Parameter
Name Description
builderForValue Service.Builder
Returns
Type Description
BatchEnableServicesResponse.Builder

addServices(int index, Service value)

publicBatchEnableServicesResponse.BuilderaddServices(intindex,Servicevalue)

The new state of the services after enabling.

repeated .google.api.serviceusage.v1.Service services = 1;

Parameters
Name Description
index int
value Service
Returns
Type Description
BatchEnableServicesResponse.Builder

addServices(int index, Service.Builder builderForValue)

publicBatchEnableServicesResponse.BuilderaddServices(intindex,Service.BuilderbuilderForValue)

The new state of the services after enabling.

repeated .google.api.serviceusage.v1.Service services = 1;

Parameters
Name Description
index int
builderForValue Service.Builder
Returns
Type Description
BatchEnableServicesResponse.Builder

addServicesBuilder()

publicService.BuilderaddServicesBuilder()

The new state of the services after enabling.

repeated .google.api.serviceusage.v1.Service services = 1;

Returns
Type Description
Service.Builder

addServicesBuilder(int index)

publicService.BuilderaddServicesBuilder(intindex)

The new state of the services after enabling.

repeated .google.api.serviceusage.v1.Service services = 1;

Parameter
Name Description
index int
Returns
Type Description
Service.Builder

build()

publicBatchEnableServicesResponsebuild()
Returns
Type Description
BatchEnableServicesResponse

buildPartial()

publicBatchEnableServicesResponsebuildPartial()
Returns
Type Description
BatchEnableServicesResponse

clear()

publicBatchEnableServicesResponse.Builderclear()
Returns
Type Description
BatchEnableServicesResponse.Builder
Overrides

clearFailures()

publicBatchEnableServicesResponse.BuilderclearFailures()

If allow_partial_success is true, and one or more services could not be enabled, this field contains the details about each failure.

repeated .google.api.serviceusage.v1.BatchEnableServicesResponse.EnableFailure failures = 2;

Returns
Type Description
BatchEnableServicesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

publicBatchEnableServicesResponse.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BatchEnableServicesResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicBatchEnableServicesResponse.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BatchEnableServicesResponse.Builder
Overrides

clearServices()

publicBatchEnableServicesResponse.BuilderclearServices()

The new state of the services after enabling.

repeated .google.api.serviceusage.v1.Service services = 1;

Returns
Type Description
BatchEnableServicesResponse.Builder

clone()

publicBatchEnableServicesResponse.Builderclone()
Returns
Type Description
BatchEnableServicesResponse.Builder
Overrides

getDefaultInstanceForType()

publicBatchEnableServicesResponsegetDefaultInstanceForType()
Returns
Type Description
BatchEnableServicesResponse

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFailures(int index)

publicBatchEnableServicesResponse.EnableFailuregetFailures(intindex)

If allow_partial_success is true, and one or more services could not be enabled, this field contains the details about each failure.

repeated .google.api.serviceusage.v1.BatchEnableServicesResponse.EnableFailure failures = 2;

Parameter
Name Description
index int
Returns
Type Description
BatchEnableServicesResponse.EnableFailure

getFailuresBuilder(int index)

publicBatchEnableServicesResponse.EnableFailure.BuildergetFailuresBuilder(intindex)

If allow_partial_success is true, and one or more services could not be enabled, this field contains the details about each failure.

repeated .google.api.serviceusage.v1.BatchEnableServicesResponse.EnableFailure failures = 2;

Parameter
Name Description
index int
Returns
Type Description
BatchEnableServicesResponse.EnableFailure.Builder

getFailuresBuilderList()

publicList<BatchEnableServicesResponse.EnableFailure.Builder>getFailuresBuilderList()

If allow_partial_success is true, and one or more services could not be enabled, this field contains the details about each failure.

repeated .google.api.serviceusage.v1.BatchEnableServicesResponse.EnableFailure failures = 2;

Returns
Type Description
List<Builder>

getFailuresCount()

publicintgetFailuresCount()

If allow_partial_success is true, and one or more services could not be enabled, this field contains the details about each failure.

repeated .google.api.serviceusage.v1.BatchEnableServicesResponse.EnableFailure failures = 2;

Returns
Type Description
int

getFailuresList()

publicList<BatchEnableServicesResponse.EnableFailure>getFailuresList()

If allow_partial_success is true, and one or more services could not be enabled, this field contains the details about each failure.

repeated .google.api.serviceusage.v1.BatchEnableServicesResponse.EnableFailure failures = 2;

Returns
Type Description
List<EnableFailure>

getFailuresOrBuilder(int index)

publicBatchEnableServicesResponse.EnableFailureOrBuildergetFailuresOrBuilder(intindex)

If allow_partial_success is true, and one or more services could not be enabled, this field contains the details about each failure.

repeated .google.api.serviceusage.v1.BatchEnableServicesResponse.EnableFailure failures = 2;

Parameter
Name Description
index int
Returns
Type Description
BatchEnableServicesResponse.EnableFailureOrBuilder

getFailuresOrBuilderList()

publicList<?extendsBatchEnableServicesResponse.EnableFailureOrBuilder>getFailuresOrBuilderList()

If allow_partial_success is true, and one or more services could not be enabled, this field contains the details about each failure.

repeated .google.api.serviceusage.v1.BatchEnableServicesResponse.EnableFailure failures = 2;

Returns
Type Description
List<? extends com.google.api.serviceusage.v1.BatchEnableServicesResponse.EnableFailureOrBuilder>

getServices(int index)

publicServicegetServices(intindex)

The new state of the services after enabling.

repeated .google.api.serviceusage.v1.Service services = 1;

Parameter
Name Description
index int
Returns
Type Description
Service

getServicesBuilder(int index)

publicService.BuildergetServicesBuilder(intindex)

The new state of the services after enabling.

repeated .google.api.serviceusage.v1.Service services = 1;

Parameter
Name Description
index int
Returns
Type Description
Service.Builder

getServicesBuilderList()

publicList<Service.Builder>getServicesBuilderList()

The new state of the services after enabling.

repeated .google.api.serviceusage.v1.Service services = 1;

Returns
Type Description
List<Builder>

getServicesCount()

publicintgetServicesCount()

The new state of the services after enabling.

repeated .google.api.serviceusage.v1.Service services = 1;

Returns
Type Description
int

getServicesList()

publicList<Service>getServicesList()

The new state of the services after enabling.

repeated .google.api.serviceusage.v1.Service services = 1;

Returns
Type Description
List<Service>

getServicesOrBuilder(int index)

publicServiceOrBuildergetServicesOrBuilder(intindex)

The new state of the services after enabling.

repeated .google.api.serviceusage.v1.Service services = 1;

Parameter
Name Description
index int
Returns
Type Description
ServiceOrBuilder

getServicesOrBuilderList()

publicList<?extendsServiceOrBuilder>getServicesOrBuilderList()

The new state of the services after enabling.

repeated .google.api.serviceusage.v1.Service services = 1;

Returns
Type Description
List<? extends com.google.api.serviceusage.v1.ServiceOrBuilder>

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchEnableServicesResponse other)

publicBatchEnableServicesResponse.BuildermergeFrom(BatchEnableServicesResponseother)
Parameter
Name Description
other BatchEnableServicesResponse
Returns
Type Description
BatchEnableServicesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

publicBatchEnableServicesResponse.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
BatchEnableServicesResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalBatchEnableServicesResponse.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchEnableServicesResponse.Builder
Overrides

removeFailures(int index)

publicBatchEnableServicesResponse.BuilderremoveFailures(intindex)

If allow_partial_success is true, and one or more services could not be enabled, this field contains the details about each failure.

repeated .google.api.serviceusage.v1.BatchEnableServicesResponse.EnableFailure failures = 2;

Parameter
Name Description
index int
Returns
Type Description
BatchEnableServicesResponse.Builder

removeServices(int index)

publicBatchEnableServicesResponse.BuilderremoveServices(intindex)

The new state of the services after enabling.

repeated .google.api.serviceusage.v1.Service services = 1;

Parameter
Name Description
index int
Returns
Type Description
BatchEnableServicesResponse.Builder

setFailures(int index, BatchEnableServicesResponse.EnableFailure value)

publicBatchEnableServicesResponse.BuildersetFailures(intindex,BatchEnableServicesResponse.EnableFailurevalue)

If allow_partial_success is true, and one or more services could not be enabled, this field contains the details about each failure.

repeated .google.api.serviceusage.v1.BatchEnableServicesResponse.EnableFailure failures = 2;

Parameters
Name Description
index int
value BatchEnableServicesResponse.EnableFailure
Returns
Type Description
BatchEnableServicesResponse.Builder

setFailures(int index, BatchEnableServicesResponse.EnableFailure.Builder builderForValue)

publicBatchEnableServicesResponse.BuildersetFailures(intindex,BatchEnableServicesResponse.EnableFailure.BuilderbuilderForValue)

If allow_partial_success is true, and one or more services could not be enabled, this field contains the details about each failure.

repeated .google.api.serviceusage.v1.BatchEnableServicesResponse.EnableFailure failures = 2;

Parameters
Name Description
index int
builderForValue BatchEnableServicesResponse.EnableFailure.Builder
Returns
Type Description
BatchEnableServicesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

publicBatchEnableServicesResponse.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchEnableServicesResponse.Builder
Overrides

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

publicBatchEnableServicesResponse.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BatchEnableServicesResponse.Builder
Overrides

setServices(int index, Service value)

publicBatchEnableServicesResponse.BuildersetServices(intindex,Servicevalue)

The new state of the services after enabling.

repeated .google.api.serviceusage.v1.Service services = 1;

Parameters
Name Description
index int
value Service
Returns
Type Description
BatchEnableServicesResponse.Builder

setServices(int index, Service.Builder builderForValue)

publicBatchEnableServicesResponse.BuildersetServices(intindex,Service.BuilderbuilderForValue)

The new state of the services after enabling.

repeated .google.api.serviceusage.v1.Service services = 1;

Parameters
Name Description
index int
builderForValue Service.Builder
Returns
Type Description
BatchEnableServicesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalBatchEnableServicesResponse.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchEnableServicesResponse.Builder
Overrides

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.