Class ReserveIdsRequest (2.8.0)

public final class ReserveIdsRequest extends GeneratedMessageV3 implements ReserveIdsRequestOrBuilder

The request for Datastore.ReserveIds.

Protobuf type google.datastore.v1.ReserveIdsRequest

Static Fields

DATABASE_ID_FIELD_NUMBER

public static final int DATABASE_ID_FIELD_NUMBER
Field Value
TypeDescription
int

KEYS_FIELD_NUMBER

public static final int KEYS_FIELD_NUMBER
Field Value
TypeDescription
int

PROJECT_ID_FIELD_NUMBER

public static final int PROJECT_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ReserveIdsRequest getDefaultInstance()
Returns
TypeDescription
ReserveIdsRequest

getDescriptor()

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

newBuilder()

public static ReserveIdsRequest.Builder newBuilder()
Returns
TypeDescription
ReserveIdsRequest.Builder

newBuilder(ReserveIdsRequest prototype)

public static ReserveIdsRequest.Builder newBuilder(ReserveIdsRequest prototype)
Parameter
NameDescription
prototypeReserveIdsRequest
Returns
TypeDescription
ReserveIdsRequest.Builder

parseDelimitedFrom(InputStream input)

public static ReserveIdsRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ReserveIdsRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ReserveIdsRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReserveIdsRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ReserveIdsRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ReserveIdsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ReserveIdsRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReserveIdsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ReserveIdsRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ReserveIdsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ReserveIdsRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReserveIdsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ReserveIdsRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ReserveIdsRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ReserveIdsRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReserveIdsRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ReserveIdsRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ReserveIdsRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ReserveIdsRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReserveIdsRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ReserveIdsRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ReserveIdsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ReserveIdsRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReserveIdsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ReserveIdsRequest> parser()
Returns
TypeDescription
Parser<ReserveIdsRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDatabaseId()

public String getDatabaseId()

If not empty, the ID of the database against which to make the request.

string database_id = 9;

Returns
TypeDescription
String

The databaseId.

getDatabaseIdBytes()

public ByteString getDatabaseIdBytes()

If not empty, the ID of the database against which to make the request.

string database_id = 9;

Returns
TypeDescription
ByteString

The bytes for databaseId.

getDefaultInstanceForType()

public ReserveIdsRequest getDefaultInstanceForType()
Returns
TypeDescription
ReserveIdsRequest

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

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

getParserForType()

public Parser<ReserveIdsRequest> getParserForType()
Returns
TypeDescription
Parser<ReserveIdsRequest>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ReserveIdsRequest.Builder newBuilderForType()
Returns
TypeDescription
ReserveIdsRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ReserveIdsRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ReserveIdsRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ReserveIdsRequest.Builder toBuilder()
Returns
TypeDescription
ReserveIdsRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException