public static final class Session.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Session.Builder> implements SessionOrBuilder
A session in the Cloud Spanner API.Protobuf type
google.spanner.v1.Session| Modifier and Type | Method and Description |
|---|---|
Session.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Session |
build() |
Session |
buildPartial() |
Session.Builder |
clear() |
Session.Builder |
clearApproximateLastUseTime()
Output only.
|
Session.Builder |
clearCreateTime()
Output only.
|
Session.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Session.Builder |
clearLabels() |
Session.Builder |
clearName()
The name of the session.
|
Session.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Session.Builder |
clone() |
boolean |
containsLabels(java.lang.String key)
The labels for the session.
|
com.google.protobuf.Timestamp |
getApproximateLastUseTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getApproximateLastUseTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getApproximateLastUseTimeOrBuilder()
Output only.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getCreateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
Session |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.util.Map<java.lang.String,java.lang.String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
The labels for the session.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabelsMap()
The labels for the session.
|
java.lang.String |
getLabelsOrDefault(java.lang.String key,
java.lang.String defaultValue)
The labels for the session.
|
java.lang.String |
getLabelsOrThrow(java.lang.String key)
The labels for the session.
|
java.util.Map<java.lang.String,java.lang.String> |
getMutableLabels()
Deprecated.
|
java.lang.String |
getName()
The name of the session.
|
com.google.protobuf.ByteString |
getNameBytes()
The name of the session.
|
boolean |
hasApproximateLastUseTime()
Output only.
|
boolean |
hasCreateTime()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
Session.Builder |
mergeApproximateLastUseTime(com.google.protobuf.Timestamp value)
Output only.
|
Session.Builder |
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
Session.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Session.Builder |
mergeFrom(com.google.protobuf.Message other) |
Session.Builder |
mergeFrom(Session other) |
Session.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Session.Builder |
putAllLabels(java.util.Map<java.lang.String,java.lang.String> values)
The labels for the session.
|
Session.Builder |
putLabels(java.lang.String key,
java.lang.String value)
The labels for the session.
|
Session.Builder |
removeLabels(java.lang.String key)
The labels for the session.
|
Session.Builder |
setApproximateLastUseTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
Session.Builder |
setApproximateLastUseTime(com.google.protobuf.Timestamp value)
Output only.
|
Session.Builder |
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
Session.Builder |
setCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
Session.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Session.Builder |
setName(java.lang.String value)
The name of the session.
|
Session.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The name of the session.
|
Session.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Session.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Session.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Session.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Session.Builder>public Session.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Session.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Session.Builder>public Session getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Session build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Session buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Session.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Session.Builder>public Session.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Session.Builder>public Session.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Session.Builder>public Session.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Session.Builder>public Session.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Session.Builder>public Session.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Session.Builder>public Session.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Session.Builder>public Session.Builder mergeFrom(Session other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Session.Builder>public Session.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Session.Builder>java.io.IOExceptionpublic java.lang.String getName()
The name of the session. This is always system-assigned; values provided when creating a session are ignored.
string name = 1;getName in interface SessionOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The name of the session. This is always system-assigned; values provided when creating a session are ignored.
string name = 1;getNameBytes in interface SessionOrBuilderpublic Session.Builder setName(java.lang.String value)
The name of the session. This is always system-assigned; values provided when creating a session are ignored.
string name = 1;public Session.Builder clearName()
The name of the session. This is always system-assigned; values provided when creating a session are ignored.
string name = 1;public Session.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of the session. This is always system-assigned; values provided when creating a session are ignored.
string name = 1;public int getLabelsCount()
SessionOrBuilder
The labels for the session.
* Label keys must be between 1 and 63 characters long and must conform to
the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
* Label values must be between 0 and 63 characters long and must conform
to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
* No more than 64 labels can be associated with a given session.
See https://goo.gl/xmQnxf for more information on and examples of labels.
map<string, string> labels = 2;getLabelsCount in interface SessionOrBuilderpublic boolean containsLabels(java.lang.String key)
The labels for the session.
* Label keys must be between 1 and 63 characters long and must conform to
the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
* Label values must be between 0 and 63 characters long and must conform
to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
* No more than 64 labels can be associated with a given session.
See https://goo.gl/xmQnxf for more information on and examples of labels.
map<string, string> labels = 2;containsLabels in interface SessionOrBuilder@Deprecated public java.util.Map<java.lang.String,java.lang.String> getLabels()
getLabelsMap() instead.getLabels in interface SessionOrBuilderpublic java.util.Map<java.lang.String,java.lang.String> getLabelsMap()
The labels for the session.
* Label keys must be between 1 and 63 characters long and must conform to
the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
* Label values must be between 0 and 63 characters long and must conform
to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
* No more than 64 labels can be associated with a given session.
See https://goo.gl/xmQnxf for more information on and examples of labels.
map<string, string> labels = 2;getLabelsMap in interface SessionOrBuilderpublic java.lang.String getLabelsOrDefault(java.lang.String key,
java.lang.String defaultValue)
The labels for the session.
* Label keys must be between 1 and 63 characters long and must conform to
the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
* Label values must be between 0 and 63 characters long and must conform
to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
* No more than 64 labels can be associated with a given session.
See https://goo.gl/xmQnxf for more information on and examples of labels.
map<string, string> labels = 2;getLabelsOrDefault in interface SessionOrBuilderpublic java.lang.String getLabelsOrThrow(java.lang.String key)
The labels for the session.
* Label keys must be between 1 and 63 characters long and must conform to
the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
* Label values must be between 0 and 63 characters long and must conform
to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
* No more than 64 labels can be associated with a given session.
See https://goo.gl/xmQnxf for more information on and examples of labels.
map<string, string> labels = 2;getLabelsOrThrow in interface SessionOrBuilderpublic Session.Builder clearLabels()
public Session.Builder removeLabels(java.lang.String key)
The labels for the session.
* Label keys must be between 1 and 63 characters long and must conform to
the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
* Label values must be between 0 and 63 characters long and must conform
to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
* No more than 64 labels can be associated with a given session.
See https://goo.gl/xmQnxf for more information on and examples of labels.
map<string, string> labels = 2;@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableLabels()
public Session.Builder putLabels(java.lang.String key, java.lang.String value)
The labels for the session.
* Label keys must be between 1 and 63 characters long and must conform to
the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
* Label values must be between 0 and 63 characters long and must conform
to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
* No more than 64 labels can be associated with a given session.
See https://goo.gl/xmQnxf for more information on and examples of labels.
map<string, string> labels = 2;public Session.Builder putAllLabels(java.util.Map<java.lang.String,java.lang.String> values)
The labels for the session.
* Label keys must be between 1 and 63 characters long and must conform to
the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
* Label values must be between 0 and 63 characters long and must conform
to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
* No more than 64 labels can be associated with a given session.
See https://goo.gl/xmQnxf for more information on and examples of labels.
map<string, string> labels = 2;public boolean hasCreateTime()
Output only. The timestamp when the session is created.
.google.protobuf.Timestamp create_time = 3;hasCreateTime in interface SessionOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Output only. The timestamp when the session is created.
.google.protobuf.Timestamp create_time = 3;getCreateTime in interface SessionOrBuilderpublic Session.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The timestamp when the session is created.
.google.protobuf.Timestamp create_time = 3;public Session.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The timestamp when the session is created.
.google.protobuf.Timestamp create_time = 3;public Session.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The timestamp when the session is created.
.google.protobuf.Timestamp create_time = 3;public Session.Builder clearCreateTime()
Output only. The timestamp when the session is created.
.google.protobuf.Timestamp create_time = 3;public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. The timestamp when the session is created.
.google.protobuf.Timestamp create_time = 3;public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The timestamp when the session is created.
.google.protobuf.Timestamp create_time = 3;getCreateTimeOrBuilder in interface SessionOrBuilderpublic boolean hasApproximateLastUseTime()
Output only. The approximate timestamp when the session is last used. It is typically earlier than the actual last use time.
.google.protobuf.Timestamp approximate_last_use_time = 4;hasApproximateLastUseTime in interface SessionOrBuilderpublic com.google.protobuf.Timestamp getApproximateLastUseTime()
Output only. The approximate timestamp when the session is last used. It is typically earlier than the actual last use time.
.google.protobuf.Timestamp approximate_last_use_time = 4;getApproximateLastUseTime in interface SessionOrBuilderpublic Session.Builder setApproximateLastUseTime(com.google.protobuf.Timestamp value)
Output only. The approximate timestamp when the session is last used. It is typically earlier than the actual last use time.
.google.protobuf.Timestamp approximate_last_use_time = 4;public Session.Builder setApproximateLastUseTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The approximate timestamp when the session is last used. It is typically earlier than the actual last use time.
.google.protobuf.Timestamp approximate_last_use_time = 4;public Session.Builder mergeApproximateLastUseTime(com.google.protobuf.Timestamp value)
Output only. The approximate timestamp when the session is last used. It is typically earlier than the actual last use time.
.google.protobuf.Timestamp approximate_last_use_time = 4;public Session.Builder clearApproximateLastUseTime()
Output only. The approximate timestamp when the session is last used. It is typically earlier than the actual last use time.
.google.protobuf.Timestamp approximate_last_use_time = 4;public com.google.protobuf.Timestamp.Builder getApproximateLastUseTimeBuilder()
Output only. The approximate timestamp when the session is last used. It is typically earlier than the actual last use time.
.google.protobuf.Timestamp approximate_last_use_time = 4;public com.google.protobuf.TimestampOrBuilder getApproximateLastUseTimeOrBuilder()
Output only. The approximate timestamp when the session is last used. It is typically earlier than the actual last use time.
.google.protobuf.Timestamp approximate_last_use_time = 4;getApproximateLastUseTimeOrBuilder in interface SessionOrBuilderpublic final Session.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Session.Builder>public final Session.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Session.Builder>