Class BatchEnableServicesResponse.Builder (2.47.0)

public static final class BatchEnableServicesResponse.Builder extends GeneratedMessageV3.Builder<BatchEnableServicesResponse.Builder> implements BatchEnableServicesResponseOrBuilder

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

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

public BatchEnableServicesResponse.Builder addAllFailures(Iterable<? extends BatchEnableServicesResponse.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)

public BatchEnableServicesResponse.Builder addAllServices(Iterable<? extends Service> 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)

public BatchEnableServicesResponse.Builder addFailures(BatchEnableServicesResponse.EnableFailure value)

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)

public BatchEnableServicesResponse.Builder addFailures(BatchEnableServicesResponse.EnableFailure.Builder builderForValue)

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)

public BatchEnableServicesResponse.Builder addFailures(int index, BatchEnableServicesResponse.EnableFailure value)

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)

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

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()

public BatchEnableServicesResponse.EnableFailure.Builder addFailuresBuilder()

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)

public BatchEnableServicesResponse.EnableFailure.Builder addFailuresBuilder(int index)

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)

public BatchEnableServicesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchEnableServicesResponse.Builder
Overrides

addServices(Service value)

public BatchEnableServicesResponse.Builder addServices(Service value)

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)

public BatchEnableServicesResponse.Builder addServices(Service.Builder builderForValue)

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)

public BatchEnableServicesResponse.Builder addServices(int index, Service value)

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)

public BatchEnableServicesResponse.Builder addServices(int index, Service.Builder builderForValue)

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()

public Service.Builder addServicesBuilder()

The new state of the services after enabling.

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

Returns
Type Description
Service.Builder

addServicesBuilder(int index)

public Service.Builder addServicesBuilder(int index)

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()

public BatchEnableServicesResponse build()
Returns
Type Description
BatchEnableServicesResponse

buildPartial()

public BatchEnableServicesResponse buildPartial()
Returns
Type Description
BatchEnableServicesResponse

clear()

public BatchEnableServicesResponse.Builder clear()
Returns
Type Description
BatchEnableServicesResponse.Builder
Overrides

clearFailures()

public BatchEnableServicesResponse.Builder clearFailures()

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)

public BatchEnableServicesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BatchEnableServicesResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchEnableServicesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BatchEnableServicesResponse.Builder
Overrides

clearServices()

public BatchEnableServicesResponse.Builder clearServices()

The new state of the services after enabling.

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

Returns
Type Description
BatchEnableServicesResponse.Builder

clone()

public BatchEnableServicesResponse.Builder clone()
Returns
Type Description
BatchEnableServicesResponse.Builder
Overrides

getDefaultInstanceForType()

public BatchEnableServicesResponse getDefaultInstanceForType()
Returns
Type Description
BatchEnableServicesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFailures(int index)

public BatchEnableServicesResponse.EnableFailure getFailures(int index)

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)

public BatchEnableServicesResponse.EnableFailure.Builder getFailuresBuilder(int index)

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()

public List<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()

public int getFailuresCount()

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()

public List<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)

public BatchEnableServicesResponse.EnableFailureOrBuilder getFailuresOrBuilder(int index)

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()

public List<? extends BatchEnableServicesResponse.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)

public Service getServices(int index)

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)

public Service.Builder getServicesBuilder(int index)

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()

public List<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()

public int getServicesCount()

The new state of the services after enabling.

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

Returns
Type Description
int

getServicesList()

public List<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)

public ServiceOrBuilder getServicesOrBuilder(int index)

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()

public List<? extends ServiceOrBuilder> 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()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchEnableServicesResponse other)

public BatchEnableServicesResponse.Builder mergeFrom(BatchEnableServicesResponse other)
Parameter
Name Description
other BatchEnableServicesResponse
Returns
Type Description
BatchEnableServicesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchEnableServicesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchEnableServicesResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BatchEnableServicesResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BatchEnableServicesResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchEnableServicesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchEnableServicesResponse.Builder
Overrides

removeFailures(int index)

public BatchEnableServicesResponse.Builder removeFailures(int index)

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)

public BatchEnableServicesResponse.Builder removeServices(int index)

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)

public BatchEnableServicesResponse.Builder setFailures(int index, BatchEnableServicesResponse.EnableFailure value)

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)

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

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)

public BatchEnableServicesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchEnableServicesResponse.Builder
Overrides

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

public BatchEnableServicesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BatchEnableServicesResponse.Builder
Overrides

setServices(int index, Service value)

public BatchEnableServicesResponse.Builder setServices(int index, Service value)

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)

public BatchEnableServicesResponse.Builder setServices(int index, Service.Builder builderForValue)

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)

public final BatchEnableServicesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchEnableServicesResponse.Builder
Overrides