Class ContinueSession.Builder (0.1.0)

public static final class ContinueSession.Builder extends GeneratedMessage.Builder<ContinueSession.Builder> implements ContinueSessionOrBuilder

Reconnects to an existing session. The client must send this as the first message to the server to reconnect to an existing session. The client may immediately send Data messages without waiting for a reply from the server.

Protobuf type google.cloud.sql.v1beta4.ContinueSession

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ContinueSession build()
Returns
Type Description
ContinueSession

buildPartial()

public ContinueSession buildPartial()
Returns
Type Description
ContinueSession

clear()

public ContinueSession.Builder clear()
Returns
Type Description
ContinueSession.Builder
Overrides

clearInstanceId()

public ContinueSession.Builder clearInstanceId()

Required. The Cloud SQL instance resource name, for example: projects/example-project/instances/example-instance

string instance_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ContinueSession.Builder

This builder for chaining.

clearLocationId()

public ContinueSession.Builder clearLocationId()

Required. location_id is used to route the request to a specific region. Use the same region which was used to create the instance. Use the format locations/{location}, for example: locations/us-central1.

string location_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContinueSession.Builder

This builder for chaining.

clearSessionId()

public ContinueSession.Builder clearSessionId()

Required. The id of the session to reconnect.

string session_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContinueSession.Builder

This builder for chaining.

getDefaultInstanceForType()

public ContinueSession getDefaultInstanceForType()
Returns
Type Description
ContinueSession

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInstanceId()

public String getInstanceId()

Required. The Cloud SQL instance resource name, for example: projects/example-project/instances/example-instance

string instance_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The instanceId.

getInstanceIdBytes()

public ByteString getInstanceIdBytes()

Required. The Cloud SQL instance resource name, for example: projects/example-project/instances/example-instance

string instance_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for instanceId.

getLocationId()

public String getLocationId()

Required. location_id is used to route the request to a specific region. Use the same region which was used to create the instance. Use the format locations/{location}, for example: locations/us-central1.

string location_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The locationId.

getLocationIdBytes()

public ByteString getLocationIdBytes()

Required. location_id is used to route the request to a specific region. Use the same region which was used to create the instance. Use the format locations/{location}, for example: locations/us-central1.

string location_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for locationId.

getSessionId()

public String getSessionId()

Required. The id of the session to reconnect.

string session_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The sessionId.

getSessionIdBytes()

public ByteString getSessionIdBytes()

Required. The id of the session to reconnect.

string session_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for sessionId.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ContinueSession other)

public ContinueSession.Builder mergeFrom(ContinueSession other)
Parameter
Name Description
other ContinueSession
Returns
Type Description
ContinueSession.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ContinueSession.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContinueSession.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ContinueSession.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ContinueSession.Builder
Overrides

setInstanceId(String value)

public ContinueSession.Builder setInstanceId(String value)

Required. The Cloud SQL instance resource name, for example: projects/example-project/instances/example-instance

string instance_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The instanceId to set.

Returns
Type Description
ContinueSession.Builder

This builder for chaining.

setInstanceIdBytes(ByteString value)

public ContinueSession.Builder setInstanceIdBytes(ByteString value)

Required. The Cloud SQL instance resource name, for example: projects/example-project/instances/example-instance

string instance_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for instanceId to set.

Returns
Type Description
ContinueSession.Builder

This builder for chaining.

setLocationId(String value)

public ContinueSession.Builder setLocationId(String value)

Required. location_id is used to route the request to a specific region. Use the same region which was used to create the instance. Use the format locations/{location}, for example: locations/us-central1.

string location_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The locationId to set.

Returns
Type Description
ContinueSession.Builder

This builder for chaining.

setLocationIdBytes(ByteString value)

public ContinueSession.Builder setLocationIdBytes(ByteString value)

Required. location_id is used to route the request to a specific region. Use the same region which was used to create the instance. Use the format locations/{location}, for example: locations/us-central1.

string location_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for locationId to set.

Returns
Type Description
ContinueSession.Builder

This builder for chaining.

setSessionId(String value)

public ContinueSession.Builder setSessionId(String value)

Required. The id of the session to reconnect.

string session_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The sessionId to set.

Returns
Type Description
ContinueSession.Builder

This builder for chaining.

setSessionIdBytes(ByteString value)

public ContinueSession.Builder setSessionIdBytes(ByteString value)

Required. The id of the session to reconnect.

string session_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for sessionId to set.

Returns
Type Description
ContinueSession.Builder

This builder for chaining.