Class AllocateIdsRequest.Builder (2.30.0)

publicstaticfinalclass AllocateIdsRequest.BuilderextendsGeneratedMessageV3.Builder<AllocateIdsRequest.Builder>implementsAllocateIdsRequestOrBuilder

The request for Datastore.AllocateIds.

Protobuf type google.datastore.v1.AllocateIdsRequest

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)

publicAllocateIdsRequest.BuilderaddAllKeys(Iterable<?extendsKey>values)

Required. A list of keys with incomplete key paths for which to allocate IDs. No key may be reserved/read-only.

repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];

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

addKeys(Key value)

publicAllocateIdsRequest.BuilderaddKeys(Keyvalue)

Required. A list of keys with incomplete key paths for which to allocate IDs. No key may be reserved/read-only.

repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Key
Returns
Type Description
AllocateIdsRequest.Builder

addKeys(Key.Builder builderForValue)

publicAllocateIdsRequest.BuilderaddKeys(Key.BuilderbuilderForValue)

Required. A list of keys with incomplete key paths for which to allocate IDs. No key may be reserved/read-only.

repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];

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

addKeys(int index, Key value)

publicAllocateIdsRequest.BuilderaddKeys(intindex,Keyvalue)

Required. A list of keys with incomplete key paths for which to allocate IDs. No key may be reserved/read-only.

repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];

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

addKeys(int index, Key.Builder builderForValue)

publicAllocateIdsRequest.BuilderaddKeys(intindex,Key.BuilderbuilderForValue)

Required. A list of keys with incomplete key paths for which to allocate IDs. No key may be reserved/read-only.

repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];

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

addKeysBuilder()

publicKey.BuilderaddKeysBuilder()

Required. A list of keys with incomplete key paths for which to allocate IDs. No key may be reserved/read-only.

repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Key.Builder

addKeysBuilder(int index)

publicKey.BuilderaddKeysBuilder(intindex)

Required. A list of keys with incomplete key paths for which to allocate IDs. No key may be reserved/read-only.

repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Key.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

publicAllocateIdsRequestbuild()
Returns
Type Description
AllocateIdsRequest

buildPartial()

publicAllocateIdsRequestbuildPartial()
Returns
Type Description
AllocateIdsRequest

clear()

publicAllocateIdsRequest.Builderclear()
Returns
Type Description
AllocateIdsRequest.Builder
Overrides

clearDatabaseId()

publicAllocateIdsRequest.BuilderclearDatabaseId()

The ID of the database against which to make the request.

'(default)' is not allowed; please use empty string '' to refer the default database.

string database_id = 9;

Returns
Type Description
AllocateIdsRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicAllocateIdsRequest.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AllocateIdsRequest.Builder
Overrides

clearKeys()

publicAllocateIdsRequest.BuilderclearKeys()

Required. A list of keys with incomplete key paths for which to allocate IDs. No key may be reserved/read-only.

repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AllocateIdsRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

publicAllocateIdsRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AllocateIdsRequest.Builder
Overrides

clearProjectId()

publicAllocateIdsRequest.BuilderclearProjectId()

Required. The ID of the project against which to make the request.

string project_id = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AllocateIdsRequest.Builder

This builder for chaining.

clone()

publicAllocateIdsRequest.Builderclone()
Returns
Type Description
AllocateIdsRequest.Builder
Overrides

getDatabaseId()

publicStringgetDatabaseId()

The ID of the database against which to make the request.

'(default)' is not allowed; please use empty string '' to refer the default database.

string database_id = 9;

Returns
Type Description
String

The databaseId.

getDatabaseIdBytes()

publicByteStringgetDatabaseIdBytes()

The ID of the database against which to make the request.

'(default)' is not allowed; please use empty string '' to refer the default database.

string database_id = 9;

Returns
Type Description
ByteString

The bytes for databaseId.

getDefaultInstanceForType()

publicAllocateIdsRequestgetDefaultInstanceForType()
Returns
Type Description
AllocateIdsRequest

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getKeys(int index)

publicKeygetKeys(intindex)

Required. A list of keys with incomplete key paths for which to allocate IDs. No key may be reserved/read-only.

repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Key

getKeysBuilder(int index)

publicKey.BuildergetKeysBuilder(intindex)

Required. A list of keys with incomplete key paths for which to allocate IDs. No key may be reserved/read-only.

repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Key.Builder

getKeysBuilderList()

publicList<Key.Builder>getKeysBuilderList()

Required. A list of keys with incomplete key paths for which to allocate IDs. No key may be reserved/read-only.

repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getKeysCount()

publicintgetKeysCount()

Required. A list of keys with incomplete key paths for which to allocate IDs. No key may be reserved/read-only.

repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getKeysList()

publicList<Key>getKeysList()

Required. A list of keys with incomplete key paths for which to allocate IDs. No key may be reserved/read-only.

repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Key>

getKeysOrBuilder(int index)

publicKeyOrBuildergetKeysOrBuilder(intindex)

Required. A list of keys with incomplete key paths for which to allocate IDs. No key may be reserved/read-only.

repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
KeyOrBuilder

getKeysOrBuilderList()

publicList<?extendsKeyOrBuilder>getKeysOrBuilderList()

Required. A list of keys with incomplete key paths for which to allocate IDs. No key may be reserved/read-only.

repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];

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

getProjectId()

publicStringgetProjectId()

Required. The ID of the project against which to make the request.

string project_id = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The projectId.

getProjectIdBytes()

publicByteStringgetProjectIdBytes()

Required. The ID of the project against which to make the request.

string project_id = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for projectId.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AllocateIdsRequest other)

publicAllocateIdsRequest.BuildermergeFrom(AllocateIdsRequestother)
Parameter
Name Description
other AllocateIdsRequest
Returns
Type Description
AllocateIdsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

publicAllocateIdsRequest.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
AllocateIdsRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalAllocateIdsRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AllocateIdsRequest.Builder
Overrides

removeKeys(int index)

publicAllocateIdsRequest.BuilderremoveKeys(intindex)

Required. A list of keys with incomplete key paths for which to allocate IDs. No key may be reserved/read-only.

repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
AllocateIdsRequest.Builder

setDatabaseId(String value)

publicAllocateIdsRequest.BuildersetDatabaseId(Stringvalue)

The ID of the database against which to make the request.

'(default)' is not allowed; please use empty string '' to refer the default database.

string database_id = 9;

Parameter
Name Description
value String

The databaseId to set.

Returns
Type Description
AllocateIdsRequest.Builder

This builder for chaining.

setDatabaseIdBytes(ByteString value)

publicAllocateIdsRequest.BuildersetDatabaseIdBytes(ByteStringvalue)

The ID of the database against which to make the request.

'(default)' is not allowed; please use empty string '' to refer the default database.

string database_id = 9;

Parameter
Name Description
value ByteString

The bytes for databaseId to set.

Returns
Type Description
AllocateIdsRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setKeys(int index, Key value)

publicAllocateIdsRequest.BuildersetKeys(intindex,Keyvalue)

Required. A list of keys with incomplete key paths for which to allocate IDs. No key may be reserved/read-only.

repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];

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

setKeys(int index, Key.Builder builderForValue)

publicAllocateIdsRequest.BuildersetKeys(intindex,Key.BuilderbuilderForValue)

Required. A list of keys with incomplete key paths for which to allocate IDs. No key may be reserved/read-only.

repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];

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

setProjectId(String value)

publicAllocateIdsRequest.BuildersetProjectId(Stringvalue)

Required. The ID of the project against which to make the request.

string project_id = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The projectId to set.

Returns
Type Description
AllocateIdsRequest.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

publicAllocateIdsRequest.BuildersetProjectIdBytes(ByteStringvalue)

Required. The ID of the project against which to make the request.

string project_id = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
AllocateIdsRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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