Class AllocateIdsResponse.Builder (2.18.5)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.datastore.v1.Key>
Returns
TypeDescription
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
NameDescription
valueKey
Returns
TypeDescription
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
NameDescription
builderForValueKey.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueKey
Returns
TypeDescription
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
NameDescription
indexint
builderForValueKey.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Key.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AllocateIdsResponse build()
Returns
TypeDescription
AllocateIdsResponse

buildPartial()

public AllocateIdsResponse buildPartial()
Returns
TypeDescription
AllocateIdsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public AllocateIdsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
AllocateIdsResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public AllocateIdsResponse getDefaultInstanceForType()
Returns
TypeDescription
AllocateIdsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.datastore.v1.KeyOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AllocateIdsResponse other)

public AllocateIdsResponse.Builder mergeFrom(AllocateIdsResponse other)
Parameter
NameDescription
otherAllocateIdsResponse
Returns
TypeDescription
AllocateIdsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AllocateIdsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
AllocateIdsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AllocateIdsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueKey
Returns
TypeDescription
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
NameDescription
indexint
builderForValueKey.Builder
Returns
TypeDescription
AllocateIdsResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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