Class BatchEnableServicesRequest.Builder (2.39.0)

publicstaticfinalclass BatchEnableServicesRequest.BuilderextendsGeneratedMessageV3.Builder<BatchEnableServicesRequest.Builder>implementsBatchEnableServicesRequestOrBuilder

Request message for the BatchEnableServices method.

Protobuf type google.api.serviceusage.v1beta1.BatchEnableServicesRequest

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

addAllServiceIds(Iterable<String> values)

publicBatchEnableServicesRequest.BuilderaddAllServiceIds(Iterable<String>values)

The identifiers of the services to enable on the project.

A valid identifier would be: serviceusage.googleapis.com

Enabling services requires that each service is public or is shared with the user enabling the service.

Two or more services must be specified. To enable a single service, use the EnableService method instead.

A single request can enable a maximum of 20 services at a time. If more than 20 services are specified, the request will fail, and no state changes will occur.

repeated string service_ids = 2;

Parameter
Name Description
values Iterable<String>

The serviceIds to add.

Returns
Type Description
BatchEnableServicesRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addServiceIds(String value)

publicBatchEnableServicesRequest.BuilderaddServiceIds(Stringvalue)

The identifiers of the services to enable on the project.

A valid identifier would be: serviceusage.googleapis.com

Enabling services requires that each service is public or is shared with the user enabling the service.

Two or more services must be specified. To enable a single service, use the EnableService method instead.

A single request can enable a maximum of 20 services at a time. If more than 20 services are specified, the request will fail, and no state changes will occur.

repeated string service_ids = 2;

Parameter
Name Description
value String

The serviceIds to add.

Returns
Type Description
BatchEnableServicesRequest.Builder

This builder for chaining.

addServiceIdsBytes(ByteString value)

publicBatchEnableServicesRequest.BuilderaddServiceIdsBytes(ByteStringvalue)

The identifiers of the services to enable on the project.

A valid identifier would be: serviceusage.googleapis.com

Enabling services requires that each service is public or is shared with the user enabling the service.

Two or more services must be specified. To enable a single service, use the EnableService method instead.

A single request can enable a maximum of 20 services at a time. If more than 20 services are specified, the request will fail, and no state changes will occur.

repeated string service_ids = 2;

Parameter
Name Description
value ByteString

The bytes of the serviceIds to add.

Returns
Type Description
BatchEnableServicesRequest.Builder

This builder for chaining.

build()

publicBatchEnableServicesRequestbuild()
Returns
Type Description
BatchEnableServicesRequest

buildPartial()

publicBatchEnableServicesRequestbuildPartial()
Returns
Type Description
BatchEnableServicesRequest

clear()

publicBatchEnableServicesRequest.Builderclear()
Returns
Type Description
BatchEnableServicesRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicBatchEnableServicesRequest.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BatchEnableServicesRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicBatchEnableServicesRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BatchEnableServicesRequest.Builder
Overrides

clearParent()

publicBatchEnableServicesRequest.BuilderclearParent()

Parent to enable services on.

An example name would be: projects/123 where 123 is the project number (not project ID).

The BatchEnableServices method currently only supports projects.

string parent = 1;

Returns
Type Description
BatchEnableServicesRequest.Builder

This builder for chaining.

clearServiceIds()

publicBatchEnableServicesRequest.BuilderclearServiceIds()

The identifiers of the services to enable on the project.

A valid identifier would be: serviceusage.googleapis.com

Enabling services requires that each service is public or is shared with the user enabling the service.

Two or more services must be specified. To enable a single service, use the EnableService method instead.

A single request can enable a maximum of 20 services at a time. If more than 20 services are specified, the request will fail, and no state changes will occur.

repeated string service_ids = 2;

Returns
Type Description
BatchEnableServicesRequest.Builder

This builder for chaining.

clone()

publicBatchEnableServicesRequest.Builderclone()
Returns
Type Description
BatchEnableServicesRequest.Builder
Overrides

getDefaultInstanceForType()

publicBatchEnableServicesRequestgetDefaultInstanceForType()
Returns
Type Description
BatchEnableServicesRequest

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParent()

publicStringgetParent()

Parent to enable services on.

An example name would be: projects/123 where 123 is the project number (not project ID).

The BatchEnableServices method currently only supports projects.

string parent = 1;

Returns
Type Description
String

The parent.

getParentBytes()

publicByteStringgetParentBytes()

Parent to enable services on.

An example name would be: projects/123 where 123 is the project number (not project ID).

The BatchEnableServices method currently only supports projects.

string parent = 1;

Returns
Type Description
ByteString

The bytes for parent.

getServiceIds(int index)

publicStringgetServiceIds(intindex)

The identifiers of the services to enable on the project.

A valid identifier would be: serviceusage.googleapis.com

Enabling services requires that each service is public or is shared with the user enabling the service.

Two or more services must be specified. To enable a single service, use the EnableService method instead.

A single request can enable a maximum of 20 services at a time. If more than 20 services are specified, the request will fail, and no state changes will occur.

repeated string service_ids = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The serviceIds at the given index.

getServiceIdsBytes(int index)

publicByteStringgetServiceIdsBytes(intindex)

The identifiers of the services to enable on the project.

A valid identifier would be: serviceusage.googleapis.com

Enabling services requires that each service is public or is shared with the user enabling the service.

Two or more services must be specified. To enable a single service, use the EnableService method instead.

A single request can enable a maximum of 20 services at a time. If more than 20 services are specified, the request will fail, and no state changes will occur.

repeated string service_ids = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the serviceIds at the given index.

getServiceIdsCount()

publicintgetServiceIdsCount()

The identifiers of the services to enable on the project.

A valid identifier would be: serviceusage.googleapis.com

Enabling services requires that each service is public or is shared with the user enabling the service.

Two or more services must be specified. To enable a single service, use the EnableService method instead.

A single request can enable a maximum of 20 services at a time. If more than 20 services are specified, the request will fail, and no state changes will occur.

repeated string service_ids = 2;

Returns
Type Description
int

The count of serviceIds.

getServiceIdsList()

publicProtocolStringListgetServiceIdsList()

The identifiers of the services to enable on the project.

A valid identifier would be: serviceusage.googleapis.com

Enabling services requires that each service is public or is shared with the user enabling the service.

Two or more services must be specified. To enable a single service, use the EnableService method instead.

A single request can enable a maximum of 20 services at a time. If more than 20 services are specified, the request will fail, and no state changes will occur.

repeated string service_ids = 2;

Returns
Type Description
ProtocolStringList

A list containing the serviceIds.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchEnableServicesRequest other)

publicBatchEnableServicesRequest.BuildermergeFrom(BatchEnableServicesRequestother)
Parameter
Name Description
other BatchEnableServicesRequest
Returns
Type Description
BatchEnableServicesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

publicBatchEnableServicesRequest.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
BatchEnableServicesRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalBatchEnableServicesRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchEnableServicesRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

publicBatchEnableServicesRequest.BuildersetParent(Stringvalue)

Parent to enable services on.

An example name would be: projects/123 where 123 is the project number (not project ID).

The BatchEnableServices method currently only supports projects.

string parent = 1;

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
BatchEnableServicesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

publicBatchEnableServicesRequest.BuildersetParentBytes(ByteStringvalue)

Parent to enable services on.

An example name would be: projects/123 where 123 is the project number (not project ID).

The BatchEnableServices method currently only supports projects.

string parent = 1;

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
BatchEnableServicesRequest.Builder

This builder for chaining.

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

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

setServiceIds(int index, String value)

publicBatchEnableServicesRequest.BuildersetServiceIds(intindex,Stringvalue)

The identifiers of the services to enable on the project.

A valid identifier would be: serviceusage.googleapis.com

Enabling services requires that each service is public or is shared with the user enabling the service.

Two or more services must be specified. To enable a single service, use the EnableService method instead.

A single request can enable a maximum of 20 services at a time. If more than 20 services are specified, the request will fail, and no state changes will occur.

repeated string service_ids = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The serviceIds to set.

Returns
Type Description
BatchEnableServicesRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalBatchEnableServicesRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchEnableServicesRequest.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.