public final class CreateSessionRequest extends GeneratedMessageV3 implements CreateSessionRequestOrBuilder
The request for CreateSession.
Protobuf type google.spanner.v1.CreateSessionRequest
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > CreateSessionRequestImplements
CreateSessionRequestOrBuilderStatic Fields
DATABASE_FIELD_NUMBER
public static final int DATABASE_FIELD_NUMBER
Type | Description |
int |
SESSION_FIELD_NUMBER
public static final int SESSION_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static CreateSessionRequest getDefaultInstance()
Type | Description |
CreateSessionRequest |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static CreateSessionRequest.Builder newBuilder()
Type | Description |
CreateSessionRequest.Builder |
newBuilder(CreateSessionRequest prototype)
public static CreateSessionRequest.Builder newBuilder(CreateSessionRequest prototype)
Name | Description |
prototype | CreateSessionRequest |
Type | Description |
CreateSessionRequest.Builder |
parseDelimitedFrom(InputStream input)
public static CreateSessionRequest parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
CreateSessionRequest |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static CreateSessionRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateSessionRequest |
Type | Description |
IOException |
parseFrom(byte[] data)
public static CreateSessionRequest parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
CreateSessionRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CreateSessionRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateSessionRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static CreateSessionRequest parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
CreateSessionRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CreateSessionRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateSessionRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static CreateSessionRequest parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
CreateSessionRequest |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CreateSessionRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateSessionRequest |
Type | Description |
IOException |
parseFrom(InputStream input)
public static CreateSessionRequest parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
CreateSessionRequest |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static CreateSessionRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateSessionRequest |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static CreateSessionRequest parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
CreateSessionRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CreateSessionRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateSessionRequest |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<CreateSessionRequest> parser()
Type | Description |
Parser<CreateSessionRequest> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDatabase()
public String getDatabase()
Required. The database in which the new session is created.
string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
String | The database. |
getDatabaseBytes()
public ByteString getDatabaseBytes()
Required. The database in which the new session is created.
string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
ByteString | The bytes for database. |
getDefaultInstanceForType()
public CreateSessionRequest getDefaultInstanceForType()
Type | Description |
CreateSessionRequest |
getParserForType()
public Parser<CreateSessionRequest> getParserForType()
Type | Description |
Parser<CreateSessionRequest> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getSession()
public Session getSession()
The session to create.
.google.spanner.v1.Session session = 2;
Type | Description |
Session | The session. |
getSessionOrBuilder()
public SessionOrBuilder getSessionOrBuilder()
The session to create.
.google.spanner.v1.Session session = 2;
Type | Description |
SessionOrBuilder |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hasSession()
public boolean hasSession()
The session to create.
.google.spanner.v1.Session session = 2;
Type | Description |
boolean | Whether the session field is set. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public CreateSessionRequest.Builder newBuilderForType()
Type | Description |
CreateSessionRequest.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CreateSessionRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
CreateSessionRequest.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public CreateSessionRequest.Builder toBuilder()
Type | Description |
CreateSessionRequest.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |