public static final class StreamSqlDataRequest.Builder extends GeneratedMessage.Builder<StreamSqlDataRequest.Builder> implements StreamSqlDataRequestOrBuilder Message sent from the client to SqlDataService.
Protobuf type google.cloud.sql.v1beta4.StreamSqlDataRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > StreamSqlDataRequest.BuilderImplements
StreamSqlDataRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public StreamSqlDataRequest build()| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest |
|
buildPartial()
public StreamSqlDataRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest |
|
clear()
public StreamSqlDataRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest.Builder |
|
clearAck()
public StreamSqlDataRequest.Builder clearAck()Optional. Acknowledges data received by the client.
.google.cloud.sql.v1beta4.Ack ack = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest.Builder |
|
clearContinueSession()
public StreamSqlDataRequest.Builder clearContinueSession()Continues an existing session. When continuing an existing session, this is the first message the client sends.
.google.cloud.sql.v1beta4.ContinueSession continue_session = 6;
| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest.Builder |
|
clearData()
public StreamSqlDataRequest.Builder clearData()Database data.
.google.cloud.sql.v1beta4.DataPacket data = 7;
| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest.Builder |
|
clearInstanceId()
public StreamSqlDataRequest.Builder clearInstanceId() Optional. Deprecated: Use StartSession.instance_id or
ContinueSession.instance_id instead.
The Cloud SQL instance resource name, for example:
projects/example-project/instances/example-instance
string instance_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest.Builder |
This builder for chaining. |
clearMessage()
public StreamSqlDataRequest.Builder clearMessage()| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest.Builder |
|
clearStartSession()
public StreamSqlDataRequest.Builder clearStartSession()Starts a new session. When starting a new session, this is the first message the client sends.
.google.cloud.sql.v1beta4.StartSession start_session = 5;
| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest.Builder |
|
clearTerminateSession()
public StreamSqlDataRequest.Builder clearTerminateSession()Terminates the session. This closes the connection to the database.
.google.cloud.sql.v1beta4.TerminateSession terminate_session = 8;
| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest.Builder |
|
getAck()
public Ack getAck()Optional. Acknowledges data received by the client.
.google.cloud.sql.v1beta4.Ack ack = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Ack |
The ack. |
getAckBuilder()
public Ack.Builder getAckBuilder()Optional. Acknowledges data received by the client.
.google.cloud.sql.v1beta4.Ack ack = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Ack.Builder |
|
getAckOrBuilder()
public AckOrBuilder getAckOrBuilder()Optional. Acknowledges data received by the client.
.google.cloud.sql.v1beta4.Ack ack = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AckOrBuilder |
|
getContinueSession()
public ContinueSession getContinueSession()Continues an existing session. When continuing an existing session, this is the first message the client sends.
.google.cloud.sql.v1beta4.ContinueSession continue_session = 6;
| Returns | |
|---|---|
| Type | Description |
ContinueSession |
The continueSession. |
getContinueSessionBuilder()
public ContinueSession.Builder getContinueSessionBuilder()Continues an existing session. When continuing an existing session, this is the first message the client sends.
.google.cloud.sql.v1beta4.ContinueSession continue_session = 6;
| Returns | |
|---|---|
| Type | Description |
ContinueSession.Builder |
|
getContinueSessionOrBuilder()
public ContinueSessionOrBuilder getContinueSessionOrBuilder()Continues an existing session. When continuing an existing session, this is the first message the client sends.
.google.cloud.sql.v1beta4.ContinueSession continue_session = 6;
| Returns | |
|---|---|
| Type | Description |
ContinueSessionOrBuilder |
|
getData()
public DataPacket getData()Database data.
.google.cloud.sql.v1beta4.DataPacket data = 7;
| Returns | |
|---|---|
| Type | Description |
DataPacket |
The data. |
getDataBuilder()
public DataPacket.Builder getDataBuilder()Database data.
.google.cloud.sql.v1beta4.DataPacket data = 7;
| Returns | |
|---|---|
| Type | Description |
DataPacket.Builder |
|
getDataOrBuilder()
public DataPacketOrBuilder getDataOrBuilder()Database data.
.google.cloud.sql.v1beta4.DataPacket data = 7;
| Returns | |
|---|---|
| Type | Description |
DataPacketOrBuilder |
|
getDefaultInstanceForType()
public StreamSqlDataRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getInstanceId()
public String getInstanceId() Optional. Deprecated: Use StartSession.instance_id or
ContinueSession.instance_id instead.
The Cloud SQL instance resource name, for example:
projects/example-project/instances/example-instance
string instance_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The instanceId. |
getInstanceIdBytes()
public ByteString getInstanceIdBytes() Optional. Deprecated: Use StartSession.instance_id or
ContinueSession.instance_id instead.
The Cloud SQL instance resource name, for example:
projects/example-project/instances/example-instance
string instance_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for instanceId. |
getMessageCase()
public StreamSqlDataRequest.MessageCase getMessageCase()| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest.MessageCase |
|
getStartSession()
public StartSession getStartSession()Starts a new session. When starting a new session, this is the first message the client sends.
.google.cloud.sql.v1beta4.StartSession start_session = 5;
| Returns | |
|---|---|
| Type | Description |
StartSession |
The startSession. |
getStartSessionBuilder()
public StartSession.Builder getStartSessionBuilder()Starts a new session. When starting a new session, this is the first message the client sends.
.google.cloud.sql.v1beta4.StartSession start_session = 5;
| Returns | |
|---|---|
| Type | Description |
StartSession.Builder |
|
getStartSessionOrBuilder()
public StartSessionOrBuilder getStartSessionOrBuilder()Starts a new session. When starting a new session, this is the first message the client sends.
.google.cloud.sql.v1beta4.StartSession start_session = 5;
| Returns | |
|---|---|
| Type | Description |
StartSessionOrBuilder |
|
getTerminateSession()
public TerminateSession getTerminateSession()Terminates the session. This closes the connection to the database.
.google.cloud.sql.v1beta4.TerminateSession terminate_session = 8;
| Returns | |
|---|---|
| Type | Description |
TerminateSession |
The terminateSession. |
getTerminateSessionBuilder()
public TerminateSession.Builder getTerminateSessionBuilder()Terminates the session. This closes the connection to the database.
.google.cloud.sql.v1beta4.TerminateSession terminate_session = 8;
| Returns | |
|---|---|
| Type | Description |
TerminateSession.Builder |
|
getTerminateSessionOrBuilder()
public TerminateSessionOrBuilder getTerminateSessionOrBuilder()Terminates the session. This closes the connection to the database.
.google.cloud.sql.v1beta4.TerminateSession terminate_session = 8;
| Returns | |
|---|---|
| Type | Description |
TerminateSessionOrBuilder |
|
hasAck()
public boolean hasAck()Optional. Acknowledges data received by the client.
.google.cloud.sql.v1beta4.Ack ack = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the ack field is set. |
hasContinueSession()
public boolean hasContinueSession()Continues an existing session. When continuing an existing session, this is the first message the client sends.
.google.cloud.sql.v1beta4.ContinueSession continue_session = 6;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the continueSession field is set. |
hasData()
public boolean hasData()Database data.
.google.cloud.sql.v1beta4.DataPacket data = 7;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the data field is set. |
hasStartSession()
public boolean hasStartSession()Starts a new session. When starting a new session, this is the first message the client sends.
.google.cloud.sql.v1beta4.StartSession start_session = 5;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the startSession field is set. |
hasTerminateSession()
public boolean hasTerminateSession()Terminates the session. This closes the connection to the database.
.google.cloud.sql.v1beta4.TerminateSession terminate_session = 8;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the terminateSession field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeAck(Ack value)
public StreamSqlDataRequest.Builder mergeAck(Ack value)Optional. Acknowledges data received by the client.
.google.cloud.sql.v1beta4.Ack ack = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Ack |
| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest.Builder |
|
mergeContinueSession(ContinueSession value)
public StreamSqlDataRequest.Builder mergeContinueSession(ContinueSession value)Continues an existing session. When continuing an existing session, this is the first message the client sends.
.google.cloud.sql.v1beta4.ContinueSession continue_session = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
ContinueSession |
| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest.Builder |
|
mergeData(DataPacket value)
public StreamSqlDataRequest.Builder mergeData(DataPacket value)Database data.
.google.cloud.sql.v1beta4.DataPacket data = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
DataPacket |
| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest.Builder |
|
mergeFrom(StreamSqlDataRequest other)
public StreamSqlDataRequest.Builder mergeFrom(StreamSqlDataRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
StreamSqlDataRequest |
| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public StreamSqlDataRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public StreamSqlDataRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest.Builder |
|
mergeStartSession(StartSession value)
public StreamSqlDataRequest.Builder mergeStartSession(StartSession value)Starts a new session. When starting a new session, this is the first message the client sends.
.google.cloud.sql.v1beta4.StartSession start_session = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
StartSession |
| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest.Builder |
|
mergeTerminateSession(TerminateSession value)
public StreamSqlDataRequest.Builder mergeTerminateSession(TerminateSession value)Terminates the session. This closes the connection to the database.
.google.cloud.sql.v1beta4.TerminateSession terminate_session = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
TerminateSession |
| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest.Builder |
|
setAck(Ack value)
public StreamSqlDataRequest.Builder setAck(Ack value)Optional. Acknowledges data received by the client.
.google.cloud.sql.v1beta4.Ack ack = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Ack |
| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest.Builder |
|
setAck(Ack.Builder builderForValue)
public StreamSqlDataRequest.Builder setAck(Ack.Builder builderForValue)Optional. Acknowledges data received by the client.
.google.cloud.sql.v1beta4.Ack ack = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Ack.Builder |
| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest.Builder |
|
setContinueSession(ContinueSession value)
public StreamSqlDataRequest.Builder setContinueSession(ContinueSession value)Continues an existing session. When continuing an existing session, this is the first message the client sends.
.google.cloud.sql.v1beta4.ContinueSession continue_session = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
ContinueSession |
| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest.Builder |
|
setContinueSession(ContinueSession.Builder builderForValue)
public StreamSqlDataRequest.Builder setContinueSession(ContinueSession.Builder builderForValue)Continues an existing session. When continuing an existing session, this is the first message the client sends.
.google.cloud.sql.v1beta4.ContinueSession continue_session = 6;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ContinueSession.Builder |
| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest.Builder |
|
setData(DataPacket value)
public StreamSqlDataRequest.Builder setData(DataPacket value)Database data.
.google.cloud.sql.v1beta4.DataPacket data = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
DataPacket |
| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest.Builder |
|
setData(DataPacket.Builder builderForValue)
public StreamSqlDataRequest.Builder setData(DataPacket.Builder builderForValue)Database data.
.google.cloud.sql.v1beta4.DataPacket data = 7;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
DataPacket.Builder |
| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest.Builder |
|
setInstanceId(String value)
public StreamSqlDataRequest.Builder setInstanceId(String value) Optional. Deprecated: Use StartSession.instance_id or
ContinueSession.instance_id instead.
The Cloud SQL instance resource name, for example:
projects/example-project/instances/example-instance
string instance_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe instanceId to set. |
| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest.Builder |
This builder for chaining. |
setInstanceIdBytes(ByteString value)
public StreamSqlDataRequest.Builder setInstanceIdBytes(ByteString value) Optional. Deprecated: Use StartSession.instance_id or
ContinueSession.instance_id instead.
The Cloud SQL instance resource name, for example:
projects/example-project/instances/example-instance
string instance_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for instanceId to set. |
| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest.Builder |
This builder for chaining. |
setStartSession(StartSession value)
public StreamSqlDataRequest.Builder setStartSession(StartSession value)Starts a new session. When starting a new session, this is the first message the client sends.
.google.cloud.sql.v1beta4.StartSession start_session = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
StartSession |
| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest.Builder |
|
setStartSession(StartSession.Builder builderForValue)
public StreamSqlDataRequest.Builder setStartSession(StartSession.Builder builderForValue)Starts a new session. When starting a new session, this is the first message the client sends.
.google.cloud.sql.v1beta4.StartSession start_session = 5;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
StartSession.Builder |
| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest.Builder |
|
setTerminateSession(TerminateSession value)
public StreamSqlDataRequest.Builder setTerminateSession(TerminateSession value)Terminates the session. This closes the connection to the database.
.google.cloud.sql.v1beta4.TerminateSession terminate_session = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
TerminateSession |
| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest.Builder |
|
setTerminateSession(TerminateSession.Builder builderForValue)
public StreamSqlDataRequest.Builder setTerminateSession(TerminateSession.Builder builderForValue)Terminates the session. This closes the connection to the database.
.google.cloud.sql.v1beta4.TerminateSession terminate_session = 8;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
TerminateSession.Builder |
| Returns | |
|---|---|
| Type | Description |
StreamSqlDataRequest.Builder |
|