Class StreamSqlDataResponse (0.1.0)

public final class StreamSqlDataResponse extends GeneratedMessage implements StreamSqlDataResponseOrBuilder

Message sent from SqlDataService back to the client.

Protobuf type google.cloud.sql.v1beta4.StreamSqlDataResponse

Static Fields

ACK_FIELD_NUMBER

public static final int ACK_FIELD_NUMBER
Field Value
Type Description
int

DATA_FIELD_NUMBER

public static final int DATA_FIELD_NUMBER
Field Value
Type Description
int

SESSION_METADATA_FIELD_NUMBER

public static final int SESSION_METADATA_FIELD_NUMBER
Field Value
Type Description
int

TERMINATE_SESSION_FIELD_NUMBER

public static final int TERMINATE_SESSION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static StreamSqlDataResponse getDefaultInstance()
Returns
Type Description
StreamSqlDataResponse

getDescriptor()

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

newBuilder()

public static StreamSqlDataResponse.Builder newBuilder()
Returns
Type Description
StreamSqlDataResponse.Builder

newBuilder(StreamSqlDataResponse prototype)

public static StreamSqlDataResponse.Builder newBuilder(StreamSqlDataResponse prototype)
Parameter
Name Description
prototype StreamSqlDataResponse
Returns
Type Description
StreamSqlDataResponse.Builder

parseDelimitedFrom(InputStream input)

public static StreamSqlDataResponse parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StreamSqlDataResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamSqlDataResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamSqlDataResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static StreamSqlDataResponse parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
StreamSqlDataResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static StreamSqlDataResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamSqlDataResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static StreamSqlDataResponse parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
StreamSqlDataResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static StreamSqlDataResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamSqlDataResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static StreamSqlDataResponse parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
StreamSqlDataResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamSqlDataResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamSqlDataResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static StreamSqlDataResponse parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StreamSqlDataResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamSqlDataResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamSqlDataResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static StreamSqlDataResponse parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
StreamSqlDataResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static StreamSqlDataResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamSqlDataResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<StreamSqlDataResponse> parser()
Returns
Type Description
Parser<StreamSqlDataResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAck()

public Ack getAck()

Acknowledges data received by the server.

.google.cloud.sql.v1beta4.Ack ack = 2;

Returns
Type Description
Ack

The ack.

getAckOrBuilder()

public AckOrBuilder getAckOrBuilder()

Acknowledges data received by the server.

.google.cloud.sql.v1beta4.Ack ack = 2;

Returns
Type Description
AckOrBuilder

getData()

public DataPacket getData()

Data from the database.

.google.cloud.sql.v1beta4.DataPacket data = 4;

Returns
Type Description
DataPacket

The data.

getDataOrBuilder()

public DataPacketOrBuilder getDataOrBuilder()

Data from the database.

.google.cloud.sql.v1beta4.DataPacket data = 4;

Returns
Type Description
DataPacketOrBuilder

getDefaultInstanceForType()

public StreamSqlDataResponse getDefaultInstanceForType()
Returns
Type Description
StreamSqlDataResponse

getMessageCase()

public StreamSqlDataResponse.MessageCase getMessageCase()
Returns
Type Description
StreamSqlDataResponse.MessageCase

getParserForType()

public Parser<StreamSqlDataResponse> getParserForType()
Returns
Type Description
Parser<StreamSqlDataResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSessionMetadata()

public SessionMetadata getSessionMetadata()

The first message from the server to the client, containing metadata about this session.

.google.cloud.sql.v1beta4.SessionMetadata session_metadata = 3;

Returns
Type Description
SessionMetadata

The sessionMetadata.

getSessionMetadataOrBuilder()

public SessionMetadataOrBuilder getSessionMetadataOrBuilder()

The first message from the server to the client, containing metadata about this session.

.google.cloud.sql.v1beta4.SessionMetadata session_metadata = 3;

Returns
Type Description
SessionMetadataOrBuilder

getTerminateSession()

public TerminateSession getTerminateSession()

Terminates the session. This indicates that the database connection is closed. When the client receives this message, it should not attempt to reconnect.

.google.cloud.sql.v1beta4.TerminateSession terminate_session = 5;

Returns
Type Description
TerminateSession

The terminateSession.

getTerminateSessionOrBuilder()

public TerminateSessionOrBuilder getTerminateSessionOrBuilder()

Terminates the session. This indicates that the database connection is closed. When the client receives this message, it should not attempt to reconnect.

.google.cloud.sql.v1beta4.TerminateSession terminate_session = 5;

Returns
Type Description
TerminateSessionOrBuilder

hasAck()

public boolean hasAck()

Acknowledges data received by the server.

.google.cloud.sql.v1beta4.Ack ack = 2;

Returns
Type Description
boolean

Whether the ack field is set.

hasData()

public boolean hasData()

Data from the database.

.google.cloud.sql.v1beta4.DataPacket data = 4;

Returns
Type Description
boolean

Whether the data field is set.

hasSessionMetadata()

public boolean hasSessionMetadata()

The first message from the server to the client, containing metadata about this session.

.google.cloud.sql.v1beta4.SessionMetadata session_metadata = 3;

Returns
Type Description
boolean

Whether the sessionMetadata field is set.

hasTerminateSession()

public boolean hasTerminateSession()

Terminates the session. This indicates that the database connection is closed. When the client receives this message, it should not attempt to reconnect.

.google.cloud.sql.v1beta4.TerminateSession terminate_session = 5;

Returns
Type Description
boolean

Whether the terminateSession field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public StreamSqlDataResponse.Builder newBuilderForType()
Returns
Type Description
StreamSqlDataResponse.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected StreamSqlDataResponse.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
StreamSqlDataResponse.Builder
Overrides

toBuilder()

public StreamSqlDataResponse.Builder toBuilder()
Returns
Type Description
StreamSqlDataResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException