Class AllocateIdsResponse.Builder (2.33.3)

public static final class AllocateIdsResponse.Builder extends GeneratedMessage.Builder<AllocateIdsResponse.Builder> implements AllocateIdsResponseOrBuilder

The response for Datastore.AllocateIds.

Protobuf type google.datastore.v1.AllocateIdsResponse

Static Methods

getDescriptor()

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

Methods

addAllKeys(Iterable<? extends Key> values)

public AllocateIdsResponse.Builder addAllKeys(Iterable<? extends Key> 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)

public AllocateIdsResponse.Builder addKeys(Key value)

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)

public AllocateIdsResponse.Builder addKeys(Key.Builder builderForValue)

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)

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

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)

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

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()

public Key.Builder addKeysBuilder()

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)

public Key.Builder addKeysBuilder(int index)

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

build()

public AllocateIdsResponse build()
Returns
Type Description
AllocateIdsResponse

buildPartial()

public AllocateIdsResponse buildPartial()
Returns
Type Description
AllocateIdsResponse

clear()

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

clearKeys()

public AllocateIdsResponse.Builder clearKeys()

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

getDefaultInstanceForType()

public AllocateIdsResponse getDefaultInstanceForType()
Returns
Type Description
AllocateIdsResponse

getDescriptorForType()

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

getKeys(int index)

public Key getKeys(int index)

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)

public Key.Builder getKeysBuilder(int index)

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()

public List<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()

public int getKeysCount()

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()

public List<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)

public KeyOrBuilder getKeysOrBuilder(int index)

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()

public List<? extends KeyOrBuilder> 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()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AllocateIdsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeKeys(int index)

public AllocateIdsResponse.Builder removeKeys(int index)

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

setKeys(int index, Key value)

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

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)

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

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