Interface BatchEnableServicesRequestOrBuilder (2.31.0)

publicinterface BatchEnableServicesRequestOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getParent()

publicabstractStringgetParent()

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

publicabstractByteStringgetParentBytes()

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)

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

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

publicabstractintgetServiceIdsCount()

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

publicabstractList<String>getServiceIdsList()

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
List<String>

A list containing the serviceIds.

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.