Class ReserveIdsRequest.Builder (2.23.0)

public static final class ReserveIdsRequest.Builder extends GeneratedMessageV3.Builder<ReserveIdsRequest.Builder> implements ReserveIdsRequestOrBuilder

The request for Datastore.ReserveIds.

Protobuf type google.datastore.v1.ReserveIdsRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllKeys(Iterable<? extends Key> values)

public ReserveIdsRequest.Builder addAllKeys(Iterable<? extends Key> values)

Required. A list of keys with complete key paths whose numeric IDs should not be auto-allocated.

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
ReserveIdsRequest.Builder

addKeys(Key value)

public ReserveIdsRequest.Builder addKeys(Key value)

Required. A list of keys with complete key paths whose numeric IDs should not be auto-allocated.

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

Parameter
Name Description
value Key
Returns
Type Description
ReserveIdsRequest.Builder

addKeys(Key.Builder builderForValue)

public ReserveIdsRequest.Builder addKeys(Key.Builder builderForValue)

Required. A list of keys with complete key paths whose numeric IDs should not be auto-allocated.

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

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

addKeys(int index, Key value)

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

Required. A list of keys with complete key paths whose numeric IDs should not be auto-allocated.

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

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

addKeys(int index, Key.Builder builderForValue)

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

Required. A list of keys with complete key paths whose numeric IDs should not be auto-allocated.

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

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

addKeysBuilder()

public Key.Builder addKeysBuilder()

Required. A list of keys with complete key paths whose numeric IDs should not be auto-allocated.

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

Returns
Type Description
Key.Builder

addKeysBuilder(int index)

public Key.Builder addKeysBuilder(int index)

Required. A list of keys with complete key paths whose numeric IDs should not be auto-allocated.

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)

public ReserveIdsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ReserveIdsRequest.Builder
Overrides

build()

public ReserveIdsRequest build()
Returns
Type Description
ReserveIdsRequest

buildPartial()

public ReserveIdsRequest buildPartial()
Returns
Type Description
ReserveIdsRequest

clear()

public ReserveIdsRequest.Builder clear()
Returns
Type Description
ReserveIdsRequest.Builder
Overrides

clearDatabaseId()

public ReserveIdsRequest.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
Type Description
ReserveIdsRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ReserveIdsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ReserveIdsRequest.Builder
Overrides

clearKeys()

public ReserveIdsRequest.Builder clearKeys()

Required. A list of keys with complete key paths whose numeric IDs should not be auto-allocated.

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

Returns
Type Description
ReserveIdsRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ReserveIdsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ReserveIdsRequest.Builder
Overrides

clearProjectId()

public ReserveIdsRequest.Builder clearProjectId()

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

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

Returns
Type Description
ReserveIdsRequest.Builder

This builder for chaining.

clone()

public ReserveIdsRequest.Builder clone()
Returns
Type Description
ReserveIdsRequest.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
Type Description
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
Type Description
ByteString

The bytes for databaseId.

getDefaultInstanceForType()

public ReserveIdsRequest getDefaultInstanceForType()
Returns
Type Description
ReserveIdsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getKeys(int index)

public Key getKeys(int index)

Required. A list of keys with complete key paths whose numeric IDs should not be auto-allocated.

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

Parameter
Name Description
index int
Returns
Type Description
Key

getKeysBuilder(int index)

public Key.Builder getKeysBuilder(int index)

Required. A list of keys with complete key paths whose numeric IDs should not be auto-allocated.

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

Parameter
Name Description
index int
Returns
Type Description
Key.Builder

getKeysBuilderList()

public List<Key.Builder> getKeysBuilderList()

Required. A list of keys with complete key paths whose numeric IDs should not be auto-allocated.

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

Returns
Type Description
List<Builder>

getKeysCount()

public int getKeysCount()

Required. A list of keys with complete key paths whose numeric IDs should not be auto-allocated.

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

Returns
Type Description
int

getKeysList()

public List<Key> getKeysList()

Required. A list of keys with complete key paths whose numeric IDs should not be auto-allocated.

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

Returns
Type Description
List<Key>

getKeysOrBuilder(int index)

public KeyOrBuilder getKeysOrBuilder(int index)

Required. A list of keys with complete key paths whose numeric IDs should not be auto-allocated.

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

Parameter
Name Description
index int
Returns
Type Description
KeyOrBuilder

getKeysOrBuilderList()

public List<? extends KeyOrBuilder> getKeysOrBuilderList()

Required. A list of keys with complete key paths whose numeric IDs should not be auto-allocated.

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

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for projectId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ReserveIdsRequest other)

public ReserveIdsRequest.Builder mergeFrom(ReserveIdsRequest other)
Parameter
Name Description
other ReserveIdsRequest
Returns
Type Description
ReserveIdsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ReserveIdsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReserveIdsRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ReserveIdsRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ReserveIdsRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReserveIdsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ReserveIdsRequest.Builder
Overrides

removeKeys(int index)

public ReserveIdsRequest.Builder removeKeys(int index)

Required. A list of keys with complete key paths whose numeric IDs should not be auto-allocated.

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

Parameter
Name Description
index int
Returns
Type Description
ReserveIdsRequest.Builder

setDatabaseId(String value)

public ReserveIdsRequest.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
Name Description
value String

The databaseId to set.

Returns
Type Description
ReserveIdsRequest.Builder

This builder for chaining.

setDatabaseIdBytes(ByteString value)

public ReserveIdsRequest.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
Name Description
value ByteString

The bytes for databaseId to set.

Returns
Type Description
ReserveIdsRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ReserveIdsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ReserveIdsRequest.Builder
Overrides

setKeys(int index, Key value)

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

Required. A list of keys with complete key paths whose numeric IDs should not be auto-allocated.

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

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

setKeys(int index, Key.Builder builderForValue)

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

Required. A list of keys with complete key paths whose numeric IDs should not be auto-allocated.

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

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

setProjectId(String value)

public ReserveIdsRequest.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
Name Description
value String

The projectId to set.

Returns
Type Description
ReserveIdsRequest.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public ReserveIdsRequest.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
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
ReserveIdsRequest.Builder

This builder for chaining.

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

public ReserveIdsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ReserveIdsRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ReserveIdsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ReserveIdsRequest.Builder
Overrides