public final class StreamSqlDataRequest extends GeneratedMessage implements StreamSqlDataRequestOrBuilder
Message sent from the client to SqlDataService.
Protobuf type google.cloud.sql.v1beta4.StreamSqlDataRequest
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
ACK_FIELD_NUMBER
public static final int ACK_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
CONTINUE_SESSION_FIELD_NUMBER
public static final int CONTINUE_SESSION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
DATA_FIELD_NUMBER
public static final int DATA_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
INSTANCE_ID_FIELD_NUMBER
public static final int INSTANCE_ID_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
START_SESSION_FIELD_NUMBER
public static final int START_SESSION_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 StreamSqlDataRequest getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static StreamSqlDataRequest.Builder newBuilder()
newBuilder(StreamSqlDataRequest prototype)
public static StreamSqlDataRequest.Builder newBuilder(StreamSqlDataRequest prototype)
public static StreamSqlDataRequest parseDelimitedFrom(InputStream input)
public static StreamSqlDataRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static StreamSqlDataRequest parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static StreamSqlDataRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static StreamSqlDataRequest parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static StreamSqlDataRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static StreamSqlDataRequest parseFrom(CodedInputStream input)
public static StreamSqlDataRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static StreamSqlDataRequest parseFrom(InputStream input)
public static StreamSqlDataRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static StreamSqlDataRequest parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static StreamSqlDataRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<StreamSqlDataRequest> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
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.
|
getAckOrBuilder()
public AckOrBuilder getAckOrBuilder()
Optional. Acknowledges data received by the client.
.google.cloud.sql.v1beta4.Ack ack = 4 [(.google.api.field_behavior) = OPTIONAL];
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;
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;
getData()
public DataPacket getData()
Database data.
.google.cloud.sql.v1beta4.DataPacket data = 7;
getDataOrBuilder()
public DataPacketOrBuilder getDataOrBuilder()
Database data.
.google.cloud.sql.v1beta4.DataPacket data = 7;
getDefaultInstanceForType()
public StreamSqlDataRequest getDefaultInstanceForType()
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()
getParserForType()
public Parser<StreamSqlDataRequest> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
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;
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;
getTerminateSession()
public TerminateSession getTerminateSession()
Terminates the session. This closes the connection to the database.
.google.cloud.sql.v1beta4.TerminateSession terminate_session = 8;
getTerminateSessionOrBuilder()
public TerminateSessionOrBuilder getTerminateSessionOrBuilder()
Terminates the session. This closes the connection to the database.
.google.cloud.sql.v1beta4.TerminateSession terminate_session = 8;
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()
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.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public StreamSqlDataRequest.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected StreamSqlDataRequest.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public StreamSqlDataRequest.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides