public static final class SessionMetadata.Builder extends GeneratedMessage.Builder<SessionMetadata.Builder> implements SessionMetadataOrBuilderMetadata 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SessionMetadata.BuilderImplements
SessionMetadataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllSupportedFeatures(Iterable<? extends SqlDataFeature> values)
public SessionMetadata.Builder addAllSupportedFeatures(Iterable<? extends SqlDataFeature> values)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 |
values |
Iterable<? extends com.google.cloud.sql.v1beta4.SqlDataFeature>The supportedFeatures to add. |
| Returns | |
|---|---|
| Type | Description |
SessionMetadata.Builder |
This builder for chaining. |
addAllSupportedFeaturesValue(Iterable<Integer> values)
public SessionMetadata.Builder addAllSupportedFeaturesValue(Iterable<Integer> values)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 |
values |
Iterable<Integer>The enum numeric values on the wire for supportedFeatures to add. |
| Returns | |
|---|---|
| Type | Description |
SessionMetadata.Builder |
This builder for chaining. |
addSupportedFeatures(SqlDataFeature value)
public SessionMetadata.Builder addSupportedFeatures(SqlDataFeature value)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 |
value |
SqlDataFeatureThe supportedFeatures to add. |
| Returns | |
|---|---|
| Type | Description |
SessionMetadata.Builder |
This builder for chaining. |
addSupportedFeaturesValue(int value)
public SessionMetadata.Builder addSupportedFeaturesValue(int value)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 |
value |
intThe enum numeric value on the wire for supportedFeatures to add. |
| Returns | |
|---|---|
| Type | Description |
SessionMetadata.Builder |
This builder for chaining. |
build()
public SessionMetadata build()| Returns | |
|---|---|
| Type | Description |
SessionMetadata |
|
buildPartial()
public SessionMetadata buildPartial()| Returns | |
|---|---|
| Type | Description |
SessionMetadata |
|
clear()
public SessionMetadata.Builder clear()| Returns | |
|---|---|
| Type | Description |
SessionMetadata.Builder |
|
clearSupportedFeatures()
public SessionMetadata.Builder clearSupportedFeatures()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 |
SessionMetadata.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public SessionMetadata getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SessionMetadata |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 |
intThe 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 |
intThe 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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(SessionMetadata other)
public SessionMetadata.Builder mergeFrom(SessionMetadata other)| Parameter | |
|---|---|
| Name | Description |
other |
SessionMetadata |
| Returns | |
|---|---|
| Type | Description |
SessionMetadata.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SessionMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SessionMetadata.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SessionMetadata.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SessionMetadata.Builder |
|
setSupportedFeatures(int index, SqlDataFeature value)
public SessionMetadata.Builder setSupportedFeatures(int index, SqlDataFeature value)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;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
SqlDataFeatureThe supportedFeatures to set. |
| Returns | |
|---|---|
| Type | Description |
SessionMetadata.Builder |
This builder for chaining. |
setSupportedFeaturesValue(int index, int value)
public SessionMetadata.Builder setSupportedFeaturesValue(int index, int value)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;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
intThe enum numeric value on the wire for supportedFeatures to set. |
| Returns | |
|---|---|
| Type | Description |
SessionMetadata.Builder |
This builder for chaining. |