Class BatchEnableServicesResponse.Builder (2.17.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.api.serviceusage.v1.BatchEnableServicesResponse.EnableFailure>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.api.serviceusage.v1.Service>
Returns
TypeDescription
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
NameDescription
valueBatchEnableServicesResponse.EnableFailure
Returns
TypeDescription
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
NameDescription
builderForValueBatchEnableServicesResponse.EnableFailure.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueBatchEnableServicesResponse.EnableFailure
Returns
TypeDescription
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
NameDescription
indexint
builderForValueBatchEnableServicesResponse.EnableFailure.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
BatchEnableServicesResponse.EnableFailure.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchEnableServicesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueService
Returns
TypeDescription
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
NameDescription
builderForValueService.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueService
Returns
TypeDescription
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
NameDescription
indexint
builderForValueService.Builder
Returns
TypeDescription
BatchEnableServicesResponse.Builder

addServicesBuilder()

public Service.Builder addServicesBuilder()

The new state of the services after enabling.

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

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

build()

public BatchEnableServicesResponse build()
Returns
TypeDescription
BatchEnableServicesResponse

buildPartial()

public BatchEnableServicesResponse buildPartial()
Returns
TypeDescription
BatchEnableServicesResponse

clear()

public BatchEnableServicesResponse.Builder clear()
Returns
TypeDescription
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
TypeDescription
BatchEnableServicesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchEnableServicesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
BatchEnableServicesResponse.Builder

clone()

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

getDefaultInstanceForType()

public BatchEnableServicesResponse getDefaultInstanceForType()
Returns
TypeDescription
BatchEnableServicesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getServicesCount()

public int getServicesCount()

The new state of the services after enabling.

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

Returns
TypeDescription
int

getServicesList()

public List<Service> getServicesList()

The new state of the services after enabling.

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

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

getServicesOrBuilderList()

public List<? extends ServiceOrBuilder> getServicesOrBuilderList()

The new state of the services after enabling.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BatchEnableServicesResponse other)

public BatchEnableServicesResponse.Builder mergeFrom(BatchEnableServicesResponse other)
Parameter
NameDescription
otherBatchEnableServicesResponse
Returns
TypeDescription
BatchEnableServicesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchEnableServicesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueBatchEnableServicesResponse.EnableFailure
Returns
TypeDescription
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
NameDescription
indexint
builderForValueBatchEnableServicesResponse.EnableFailure.Builder
Returns
TypeDescription
BatchEnableServicesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public BatchEnableServicesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueService
Returns
TypeDescription
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
NameDescription
indexint
builderForValueService.Builder
Returns
TypeDescription
BatchEnableServicesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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