Class BatchCreateSessionsRequest (6.54.0)

public final class BatchCreateSessionsRequest extends GeneratedMessageV3 implements BatchCreateSessionsRequestOrBuilder

The request for BatchCreateSessions.

Protobuf type google.spanner.v1.BatchCreateSessionsRequest

Static Fields

DATABASE_FIELD_NUMBER

public static final int DATABASE_FIELD_NUMBER
Field Value
TypeDescription
int

SESSION_COUNT_FIELD_NUMBER

public static final int SESSION_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

SESSION_TEMPLATE_FIELD_NUMBER

public static final int SESSION_TEMPLATE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static BatchCreateSessionsRequest getDefaultInstance()
Returns
TypeDescription
BatchCreateSessionsRequest

getDescriptor()

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

newBuilder()

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

newBuilder(BatchCreateSessionsRequest prototype)

public static BatchCreateSessionsRequest.Builder newBuilder(BatchCreateSessionsRequest prototype)
Parameter
NameDescription
prototypeBatchCreateSessionsRequest
Returns
TypeDescription
BatchCreateSessionsRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDatabase()

public String getDatabase()

Required. The database in which the new sessions are created.

string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The database.

getDatabaseBytes()

public ByteString getDatabaseBytes()

Required. The database in which the new sessions are created.

string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for database.

getDefaultInstanceForType()

public BatchCreateSessionsRequest getDefaultInstanceForType()
Returns
TypeDescription
BatchCreateSessionsRequest

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSessionCount()

public int getSessionCount()

Required. The number of sessions to be created in this batch call. The API may return fewer than the requested number of sessions. If a specific number of sessions are desired, the client can make additional calls to BatchCreateSessions (adjusting session_count as necessary).

int32 session_count = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The sessionCount.

getSessionTemplate()

public Session getSessionTemplate()

Parameters to be applied to each created session.

.google.spanner.v1.Session session_template = 2;

Returns
TypeDescription
Session

The sessionTemplate.

getSessionTemplateOrBuilder()

public SessionOrBuilder getSessionTemplateOrBuilder()

Parameters to be applied to each created session.

.google.spanner.v1.Session session_template = 2;

Returns
TypeDescription
SessionOrBuilder

hasSessionTemplate()

public boolean hasSessionTemplate()

Parameters to be applied to each created session.

.google.spanner.v1.Session session_template = 2;

Returns
TypeDescription
boolean

Whether the sessionTemplate field is set.

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 BatchCreateSessionsRequest.Builder newBuilderForType()
Returns
TypeDescription
BatchCreateSessionsRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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