Class BatchGetServicesRequest.Builder (2.76.0)

publicstaticfinalclass BatchGetServicesRequest.BuilderextendsGeneratedMessageV3.Builder<BatchGetServicesRequest.Builder>implementsBatchGetServicesRequestOrBuilder

Request message for the BatchGetServices method.

Protobuf type google.api.serviceusage.v1.BatchGetServicesRequest

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

addAllNames(Iterable<String> values)

publicBatchGetServicesRequest.BuilderaddAllNames(Iterable<String>values)

Names of the services to retrieve.

An example name would be: projects/123/services/serviceusage.googleapis.com where 123 is the project number. A single request can get a maximum of 30 services at a time.

repeated string names = 2;

Parameter
Name Description
values Iterable<String>

The names to add.

Returns
Type Description
BatchGetServicesRequest.Builder

This builder for chaining.

addNames(String value)

publicBatchGetServicesRequest.BuilderaddNames(Stringvalue)

Names of the services to retrieve.

An example name would be: projects/123/services/serviceusage.googleapis.com where 123 is the project number. A single request can get a maximum of 30 services at a time.

repeated string names = 2;

Parameter
Name Description
value String

The names to add.

Returns
Type Description
BatchGetServicesRequest.Builder

This builder for chaining.

addNamesBytes(ByteString value)

publicBatchGetServicesRequest.BuilderaddNamesBytes(ByteStringvalue)

Names of the services to retrieve.

An example name would be: projects/123/services/serviceusage.googleapis.com where 123 is the project number. A single request can get a maximum of 30 services at a time.

repeated string names = 2;

Parameter
Name Description
value ByteString

The bytes of the names to add.

Returns
Type Description
BatchGetServicesRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

publicBatchGetServicesRequestbuild()
Returns
Type Description
BatchGetServicesRequest

buildPartial()

publicBatchGetServicesRequestbuildPartial()
Returns
Type Description
BatchGetServicesRequest

clear()

publicBatchGetServicesRequest.Builderclear()
Returns
Type Description
BatchGetServicesRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicBatchGetServicesRequest.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BatchGetServicesRequest.Builder
Overrides

clearNames()

publicBatchGetServicesRequest.BuilderclearNames()

Names of the services to retrieve.

An example name would be: projects/123/services/serviceusage.googleapis.com where 123 is the project number. A single request can get a maximum of 30 services at a time.

repeated string names = 2;

Returns
Type Description
BatchGetServicesRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicBatchGetServicesRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BatchGetServicesRequest.Builder
Overrides

clearParent()

publicBatchGetServicesRequest.BuilderclearParent()

Parent to retrieve services from. If this is set, the parent of all of the services specified in names must match this field. An example name would be: projects/123 where 123 is the project number. The BatchGetServices method currently only supports projects.

string parent = 1;

Returns
Type Description
BatchGetServicesRequest.Builder

This builder for chaining.

clone()

publicBatchGetServicesRequest.Builderclone()
Returns
Type Description
BatchGetServicesRequest.Builder
Overrides

getDefaultInstanceForType()

publicBatchGetServicesRequestgetDefaultInstanceForType()
Returns
Type Description
BatchGetServicesRequest

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNames(int index)

publicStringgetNames(intindex)

Names of the services to retrieve.

An example name would be: projects/123/services/serviceusage.googleapis.com where 123 is the project number. A single request can get a maximum of 30 services at a time.

repeated string names = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The names at the given index.

getNamesBytes(int index)

publicByteStringgetNamesBytes(intindex)

Names of the services to retrieve.

An example name would be: projects/123/services/serviceusage.googleapis.com where 123 is the project number. A single request can get a maximum of 30 services at a time.

repeated string names = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the names at the given index.

getNamesCount()

publicintgetNamesCount()

Names of the services to retrieve.

An example name would be: projects/123/services/serviceusage.googleapis.com where 123 is the project number. A single request can get a maximum of 30 services at a time.

repeated string names = 2;

Returns
Type Description
int

The count of names.

getNamesList()

publicProtocolStringListgetNamesList()

Names of the services to retrieve.

An example name would be: projects/123/services/serviceusage.googleapis.com where 123 is the project number. A single request can get a maximum of 30 services at a time.

repeated string names = 2;

Returns
Type Description
ProtocolStringList

A list containing the names.

getParent()

publicStringgetParent()

Parent to retrieve services from. If this is set, the parent of all of the services specified in names must match this field. An example name would be: projects/123 where 123 is the project number. The BatchGetServices method currently only supports projects.

string parent = 1;

Returns
Type Description
String

The parent.

getParentBytes()

publicByteStringgetParentBytes()

Parent to retrieve services from. If this is set, the parent of all of the services specified in names must match this field. An example name would be: projects/123 where 123 is the project number. The BatchGetServices method currently only supports projects.

string parent = 1;

Returns
Type Description
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchGetServicesRequest other)

publicBatchGetServicesRequest.BuildermergeFrom(BatchGetServicesRequestother)
Parameter
Name Description
other BatchGetServicesRequest
Returns
Type Description
BatchGetServicesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

publicBatchGetServicesRequest.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
BatchGetServicesRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalBatchGetServicesRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchGetServicesRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setNames(int index, String value)

publicBatchGetServicesRequest.BuildersetNames(intindex,Stringvalue)

Names of the services to retrieve.

An example name would be: projects/123/services/serviceusage.googleapis.com where 123 is the project number. A single request can get a maximum of 30 services at a time.

repeated string names = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The names to set.

Returns
Type Description
BatchGetServicesRequest.Builder

This builder for chaining.

setParent(String value)

publicBatchGetServicesRequest.BuildersetParent(Stringvalue)

Parent to retrieve services from. If this is set, the parent of all of the services specified in names must match this field. An example name would be: projects/123 where 123 is the project number. The BatchGetServices method currently only supports projects.

string parent = 1;

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
BatchGetServicesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

publicBatchGetServicesRequest.BuildersetParentBytes(ByteStringvalue)

Parent to retrieve services from. If this is set, the parent of all of the services specified in names must match this field. An example name would be: projects/123 where 123 is the project number. The BatchGetServices method currently only supports projects.

string parent = 1;

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
BatchGetServicesRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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