Class AllocateIdsResponse.Builder (2.25.1)

public static final class AllocateIdsResponse.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public AllocateIdsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AllocateIdsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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