Class SessionMetadata (0.1.0)

public final class SessionMetadata extends GeneratedMessage implements SessionMetadataOrBuilder

Metadata from the server to the client about the session. The server will always send this as the first message

Protobuf type google.cloud.sql.v1beta4.SessionMetadata

Static Fields

SUPPORTED_FEATURES_FIELD_NUMBER

public static final int SUPPORTED_FEATURES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SessionMetadata getDefaultInstance()
Returns
Type Description
SessionMetadata

getDescriptor()

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

newBuilder()

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

newBuilder(SessionMetadata prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public SessionMetadata getDefaultInstanceForType()
Returns
Type Description
SessionMetadata

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSupportedFeatures(int index)

public SqlDataFeature getSupportedFeatures(int index)

The features supported by the server for this session. This field is used by the client to determine which features are available on the server. The features supported by the server for this session.

repeated .google.cloud.sql.v1beta4.SqlDataFeature supported_features = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
SqlDataFeature

The supportedFeatures at the given index.

getSupportedFeaturesCount()

public int getSupportedFeaturesCount()

The features supported by the server for this session. This field is used by the client to determine which features are available on the server. The features supported by the server for this session.

repeated .google.cloud.sql.v1beta4.SqlDataFeature supported_features = 1;

Returns
Type Description
int

The count of supportedFeatures.

getSupportedFeaturesList()

public List<SqlDataFeature> getSupportedFeaturesList()

The features supported by the server for this session. This field is used by the client to determine which features are available on the server. The features supported by the server for this session.

repeated .google.cloud.sql.v1beta4.SqlDataFeature supported_features = 1;

Returns
Type Description
List<SqlDataFeature>

A list containing the supportedFeatures.

getSupportedFeaturesValue(int index)

public int getSupportedFeaturesValue(int index)

The features supported by the server for this session. This field is used by the client to determine which features are available on the server. The features supported by the server for this session.

repeated .google.cloud.sql.v1beta4.SqlDataFeature supported_features = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of supportedFeatures at the given index.

getSupportedFeaturesValueList()

public List<Integer> getSupportedFeaturesValueList()

The features supported by the server for this session. This field is used by the client to determine which features are available on the server. The features supported by the server for this session.

repeated .google.cloud.sql.v1beta4.SqlDataFeature supported_features = 1;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for supportedFeatures.

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 SessionMetadata.Builder newBuilderForType()
Returns
Type Description
SessionMetadata.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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