public static final class CreateSessionRequest.Builder extends GeneratedMessageV3.Builder<CreateSessionRequest.Builder> implements CreateSessionRequestOrBuilder
The request for CreateSession.
Protobuf type google.spanner.v1.CreateSessionRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CreateSessionRequest.BuilderImplements
CreateSessionRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateSessionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CreateSessionRequest.Builder |
build()
public CreateSessionRequest build()
Type | Description |
CreateSessionRequest |
buildPartial()
public CreateSessionRequest buildPartial()
Type | Description |
CreateSessionRequest |
clear()
public CreateSessionRequest.Builder clear()
Type | Description |
CreateSessionRequest.Builder |
clearDatabase()
public CreateSessionRequest.Builder clearDatabase()
Required. The database in which the new session is created.
string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
CreateSessionRequest.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public CreateSessionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
CreateSessionRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateSessionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
CreateSessionRequest.Builder |
clearSession()
public CreateSessionRequest.Builder clearSession()
Required. The session to create.
.google.spanner.v1.Session session = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
CreateSessionRequest.Builder |
clone()
public CreateSessionRequest.Builder clone()
Type | Description |
CreateSessionRequest.Builder |
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 |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getSession()
public Session getSession()
Required. The session to create.
.google.spanner.v1.Session session = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
Session | The session. |
getSessionBuilder()
public Session.Builder getSessionBuilder()
Required. The session to create.
.google.spanner.v1.Session session = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
Session.Builder |
getSessionOrBuilder()
public SessionOrBuilder getSessionOrBuilder()
Required. The session to create.
.google.spanner.v1.Session session = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
SessionOrBuilder |
hasSession()
public boolean hasSession()
Required. The session to create.
.google.spanner.v1.Session session = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
boolean | Whether the session field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateSessionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateSessionRequest.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public CreateSessionRequest.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
CreateSessionRequest.Builder |
mergeFrom(CreateSessionRequest other)
public CreateSessionRequest.Builder mergeFrom(CreateSessionRequest other)
Name | Description |
other | CreateSessionRequest |
Type | Description |
CreateSessionRequest.Builder |
mergeSession(Session value)
public CreateSessionRequest.Builder mergeSession(Session value)
Required. The session to create.
.google.spanner.v1.Session session = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | Session |
Type | Description |
CreateSessionRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateSessionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CreateSessionRequest.Builder |
setDatabase(String value)
public CreateSessionRequest.Builder setDatabase(String value)
Required. The database in which the new session is created.
string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Name | Description |
value | String The database to set. |
Type | Description |
CreateSessionRequest.Builder | This builder for chaining. |
setDatabaseBytes(ByteString value)
public CreateSessionRequest.Builder setDatabaseBytes(ByteString value)
Required. The database in which the new session is created.
string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Name | Description |
value | ByteString The bytes for database to set. |
Type | Description |
CreateSessionRequest.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public CreateSessionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CreateSessionRequest.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateSessionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
CreateSessionRequest.Builder |
setSession(Session value)
public CreateSessionRequest.Builder setSession(Session value)
Required. The session to create.
.google.spanner.v1.Session session = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | Session |
Type | Description |
CreateSessionRequest.Builder |
setSession(Session.Builder builderForValue)
public CreateSessionRequest.Builder setSession(Session.Builder builderForValue)
Required. The session to create.
.google.spanner.v1.Session session = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
builderForValue | Session.Builder |
Type | Description |
CreateSessionRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateSessionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CreateSessionRequest.Builder |