Class AllocateIdsRequest.Builder (2.17.6)

public static final class AllocateIdsRequest.Builder extends GeneratedMessageV3.Builder<AllocateIdsRequest.Builder> implements AllocateIdsRequestOrBuilder

The request for Datastore.AllocateIds.

Protobuf type google.datastore.v1.AllocateIdsRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllKeys(Iterable<? extends Key> values)

public AllocateIdsRequest.Builder addAllKeys(Iterable<? extends Key> 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
NameDescription
valuesIterable<? extends com.google.datastore.v1.Key>
Returns
TypeDescription
AllocateIdsRequest.Builder

addKeys(Key value)

public AllocateIdsRequest.Builder addKeys(Key value)

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
NameDescription
valueKey
Returns
TypeDescription
AllocateIdsRequest.Builder

addKeys(Key.Builder builderForValue)

public AllocateIdsRequest.Builder addKeys(Key.Builder builderForValue)

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
NameDescription
builderForValueKey.Builder
Returns
TypeDescription
AllocateIdsRequest.Builder

addKeys(int index, Key value)

public AllocateIdsRequest.Builder addKeys(int index, Key value)

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
NameDescription
indexint
valueKey
Returns
TypeDescription
AllocateIdsRequest.Builder

addKeys(int index, Key.Builder builderForValue)

public AllocateIdsRequest.Builder addKeys(int index, Key.Builder builderForValue)

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
NameDescription
indexint
builderForValueKey.Builder
Returns
TypeDescription
AllocateIdsRequest.Builder

addKeysBuilder()

public Key.Builder addKeysBuilder()

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
TypeDescription
Key.Builder

addKeysBuilder(int index)

public Key.Builder addKeysBuilder(int index)

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
NameDescription
indexint
Returns
TypeDescription
Key.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AllocateIdsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AllocateIdsRequest.Builder
Overrides

build()

public AllocateIdsRequest build()
Returns
TypeDescription
AllocateIdsRequest

buildPartial()

public AllocateIdsRequest buildPartial()
Returns
TypeDescription
AllocateIdsRequest

clear()

public AllocateIdsRequest.Builder clear()
Returns
TypeDescription
AllocateIdsRequest.Builder
Overrides

clearDatabaseId()

public AllocateIdsRequest.Builder clearDatabaseId()

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
TypeDescription
AllocateIdsRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AllocateIdsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AllocateIdsRequest.Builder
Overrides

clearKeys()

public AllocateIdsRequest.Builder clearKeys()

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
TypeDescription
AllocateIdsRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AllocateIdsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AllocateIdsRequest.Builder
Overrides

clearProjectId()

public AllocateIdsRequest.Builder clearProjectId()

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

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

Returns
TypeDescription
AllocateIdsRequest.Builder

This builder for chaining.

clone()

public AllocateIdsRequest.Builder clone()
Returns
TypeDescription
AllocateIdsRequest.Builder
Overrides

getDatabaseId()

public String getDatabaseId()

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

The databaseId.

getDatabaseIdBytes()

public ByteString getDatabaseIdBytes()

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
TypeDescription
ByteString

The bytes for databaseId.

getDefaultInstanceForType()

public AllocateIdsRequest getDefaultInstanceForType()
Returns
TypeDescription
AllocateIdsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKeys(int index)

public Key getKeys(int index)

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
NameDescription
indexint
Returns
TypeDescription
Key

getKeysBuilder(int index)

public Key.Builder getKeysBuilder(int index)

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
NameDescription
indexint
Returns
TypeDescription
Key.Builder

getKeysBuilderList()

public List<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
TypeDescription
List<Builder>

getKeysCount()

public int getKeysCount()

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
TypeDescription
int

getKeysList()

public List<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
TypeDescription
List<Key>

getKeysOrBuilder(int index)

public KeyOrBuilder getKeysOrBuilder(int index)

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
NameDescription
indexint
Returns
TypeDescription
KeyOrBuilder

getKeysOrBuilderList()

public List<? extends KeyOrBuilder> 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
TypeDescription
List<? extends com.google.datastore.v1.KeyOrBuilder>

getProjectId()

public String getProjectId()

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

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

Returns
TypeDescription
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

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

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

Returns
TypeDescription
ByteString

The bytes for projectId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AllocateIdsRequest other)

public AllocateIdsRequest.Builder mergeFrom(AllocateIdsRequest other)
Parameter
NameDescription
otherAllocateIdsRequest
Returns
TypeDescription
AllocateIdsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AllocateIdsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AllocateIdsRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AllocateIdsRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AllocateIdsRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AllocateIdsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AllocateIdsRequest.Builder
Overrides

removeKeys(int index)

public AllocateIdsRequest.Builder removeKeys(int index)

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
NameDescription
indexint
Returns
TypeDescription
AllocateIdsRequest.Builder

setDatabaseId(String value)

public AllocateIdsRequest.Builder setDatabaseId(String value)

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
NameDescription
valueString

The databaseId to set.

Returns
TypeDescription
AllocateIdsRequest.Builder

This builder for chaining.

setDatabaseIdBytes(ByteString value)

public AllocateIdsRequest.Builder setDatabaseIdBytes(ByteString value)

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
NameDescription
valueByteString

The bytes for databaseId to set.

Returns
TypeDescription
AllocateIdsRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AllocateIdsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AllocateIdsRequest.Builder
Overrides

setKeys(int index, Key value)

public AllocateIdsRequest.Builder setKeys(int index, Key value)

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
NameDescription
indexint
valueKey
Returns
TypeDescription
AllocateIdsRequest.Builder

setKeys(int index, Key.Builder builderForValue)

public AllocateIdsRequest.Builder setKeys(int index, Key.Builder builderForValue)

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
NameDescription
indexint
builderForValueKey.Builder
Returns
TypeDescription
AllocateIdsRequest.Builder

setProjectId(String value)

public AllocateIdsRequest.Builder setProjectId(String value)

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

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

Parameter
NameDescription
valueString

The projectId to set.

Returns
TypeDescription
AllocateIdsRequest.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public AllocateIdsRequest.Builder setProjectIdBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes for projectId to set.

Returns
TypeDescription
AllocateIdsRequest.Builder

This builder for chaining.

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

public AllocateIdsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AllocateIdsRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AllocateIdsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AllocateIdsRequest.Builder
Overrides