Class AllocateIdsResponse.Builder (2.33.0)

publicstaticfinalclass AllocateIdsResponse.BuilderextendsGeneratedMessageV3.Builder<AllocateIdsResponse.Builder>implementsAllocateIdsResponseOrBuilder

The response for Datastore.AllocateIds.

Protobuf type google.datastore.v1.AllocateIdsResponse

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

addAllKeys(Iterable<? extends Key> values)

publicAllocateIdsResponse.BuilderaddAllKeys(Iterable<?extendsKey>values)

The keys specified in the request (in the same order), each with its key path completed with a newly allocated ID.

repeated .google.datastore.v1.Key keys = 1;

Parameter
Name Description
values Iterable<? extends com.google.datastore.v1.Key>
Returns
Type Description
AllocateIdsResponse.Builder

addKeys(Key value)

publicAllocateIdsResponse.BuilderaddKeys(Keyvalue)

The keys specified in the request (in the same order), each with its key path completed with a newly allocated ID.

repeated .google.datastore.v1.Key keys = 1;

Parameter
Name Description
value Key
Returns
Type Description
AllocateIdsResponse.Builder

addKeys(Key.Builder builderForValue)

publicAllocateIdsResponse.BuilderaddKeys(Key.BuilderbuilderForValue)

The keys specified in the request (in the same order), each with its key path completed with a newly allocated ID.

repeated .google.datastore.v1.Key keys = 1;

Parameter
Name Description
builderForValue Key.Builder
Returns
Type Description
AllocateIdsResponse.Builder

addKeys(int index, Key value)

publicAllocateIdsResponse.BuilderaddKeys(intindex,Keyvalue)

The keys specified in the request (in the same order), each with its key path completed with a newly allocated ID.

repeated .google.datastore.v1.Key keys = 1;

Parameters
Name Description
index int
value Key
Returns
Type Description
AllocateIdsResponse.Builder

addKeys(int index, Key.Builder builderForValue)

publicAllocateIdsResponse.BuilderaddKeys(intindex,Key.BuilderbuilderForValue)

The keys specified in the request (in the same order), each with its key path completed with a newly allocated ID.

repeated .google.datastore.v1.Key keys = 1;

Parameters
Name Description
index int
builderForValue Key.Builder
Returns
Type Description
AllocateIdsResponse.Builder

addKeysBuilder()

publicKey.BuilderaddKeysBuilder()

The keys specified in the request (in the same order), each with its key path completed with a newly allocated ID.

repeated .google.datastore.v1.Key keys = 1;

Returns
Type Description
Key.Builder

addKeysBuilder(int index)

publicKey.BuilderaddKeysBuilder(intindex)

The keys specified in the request (in the same order), each with its key path completed with a newly allocated ID.

repeated .google.datastore.v1.Key keys = 1;

Parameter
Name Description
index int
Returns
Type Description
Key.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

publicAllocateIdsResponsebuild()
Returns
Type Description
AllocateIdsResponse

buildPartial()

publicAllocateIdsResponsebuildPartial()
Returns
Type Description
AllocateIdsResponse

clear()

publicAllocateIdsResponse.Builderclear()
Returns
Type Description
AllocateIdsResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicAllocateIdsResponse.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AllocateIdsResponse.Builder
Overrides

clearKeys()

publicAllocateIdsResponse.BuilderclearKeys()

The keys specified in the request (in the same order), each with its key path completed with a newly allocated ID.

repeated .google.datastore.v1.Key keys = 1;

Returns
Type Description
AllocateIdsResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

publicAllocateIdsResponse.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AllocateIdsResponse.Builder
Overrides

clone()

publicAllocateIdsResponse.Builderclone()
Returns
Type Description
AllocateIdsResponse.Builder
Overrides

getDefaultInstanceForType()

publicAllocateIdsResponsegetDefaultInstanceForType()
Returns
Type Description
AllocateIdsResponse

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getKeys(int index)

publicKeygetKeys(intindex)

The keys specified in the request (in the same order), each with its key path completed with a newly allocated ID.

repeated .google.datastore.v1.Key keys = 1;

Parameter
Name Description
index int
Returns
Type Description
Key

getKeysBuilder(int index)

publicKey.BuildergetKeysBuilder(intindex)

The keys specified in the request (in the same order), each with its key path completed with a newly allocated ID.

repeated .google.datastore.v1.Key keys = 1;

Parameter
Name Description
index int
Returns
Type Description
Key.Builder

getKeysBuilderList()

publicList<Key.Builder>getKeysBuilderList()

The keys specified in the request (in the same order), each with its key path completed with a newly allocated ID.

repeated .google.datastore.v1.Key keys = 1;

Returns
Type Description
List<Builder>

getKeysCount()

publicintgetKeysCount()

The keys specified in the request (in the same order), each with its key path completed with a newly allocated ID.

repeated .google.datastore.v1.Key keys = 1;

Returns
Type Description
int

getKeysList()

publicList<Key>getKeysList()

The keys specified in the request (in the same order), each with its key path completed with a newly allocated ID.

repeated .google.datastore.v1.Key keys = 1;

Returns
Type Description
List<Key>

getKeysOrBuilder(int index)

publicKeyOrBuildergetKeysOrBuilder(intindex)

The keys specified in the request (in the same order), each with its key path completed with a newly allocated ID.

repeated .google.datastore.v1.Key keys = 1;

Parameter
Name Description
index int
Returns
Type Description
KeyOrBuilder

getKeysOrBuilderList()

publicList<?extendsKeyOrBuilder>getKeysOrBuilderList()

The keys specified in the request (in the same order), each with its key path completed with a newly allocated ID.

repeated .google.datastore.v1.Key keys = 1;

Returns
Type Description
List<? extends com.google.datastore.v1.KeyOrBuilder>

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AllocateIdsResponse other)

publicAllocateIdsResponse.BuildermergeFrom(AllocateIdsResponseother)
Parameter
Name Description
other AllocateIdsResponse
Returns
Type Description
AllocateIdsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

publicAllocateIdsResponse.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
AllocateIdsResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalAllocateIdsResponse.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AllocateIdsResponse.Builder
Overrides

removeKeys(int index)

publicAllocateIdsResponse.BuilderremoveKeys(intindex)

The keys specified in the request (in the same order), each with its key path completed with a newly allocated ID.

repeated .google.datastore.v1.Key keys = 1;

Parameter
Name Description
index int
Returns
Type Description
AllocateIdsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setKeys(int index, Key value)

publicAllocateIdsResponse.BuildersetKeys(intindex,Keyvalue)

The keys specified in the request (in the same order), each with its key path completed with a newly allocated ID.

repeated .google.datastore.v1.Key keys = 1;

Parameters
Name Description
index int
value Key
Returns
Type Description
AllocateIdsResponse.Builder

setKeys(int index, Key.Builder builderForValue)

publicAllocateIdsResponse.BuildersetKeys(intindex,Key.BuilderbuilderForValue)

The keys specified in the request (in the same order), each with its key path completed with a newly allocated ID.

repeated .google.datastore.v1.Key keys = 1;

Parameters
Name Description
index int
builderForValue Key.Builder
Returns
Type Description
AllocateIdsResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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