public final class Session
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Spanner API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Session() |
Modifier and Type | Method and Description |
---|---|
Session |
clone() |
String |
getApproximateLastUseTime()
Output only.
|
String |
getCreateTime()
Output only.
|
String |
getCreatorRole()
The database role which created this session.
|
Map<String,String> |
getLabels()
The labels for the session.
|
Boolean |
getMultiplexed()
Optional.
|
String |
getName()
Output only.
|
Session |
set(String fieldName,
Object value) |
Session |
setApproximateLastUseTime(String approximateLastUseTime)
Output only.
|
Session |
setCreateTime(String createTime)
Output only.
|
Session |
setCreatorRole(String creatorRole)
The database role which created this session.
|
Session |
setLabels(Map<String,String> labels)
The labels for the session.
|
Session |
setMultiplexed(Boolean multiplexed)
Optional.
|
Session |
setName(String name)
Output only.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getApproximateLastUseTime()
null
for nonepublic Session setApproximateLastUseTime(String approximateLastUseTime)
approximateLastUseTime
- approximateLastUseTime or null
for nonepublic String getCreateTime()
null
for nonepublic Session setCreateTime(String createTime)
createTime
- createTime or null
for nonepublic String getCreatorRole()
null
for nonepublic Session setCreatorRole(String creatorRole)
creatorRole
- creatorRole or null
for nonepublic Map<String,String> getLabels()
null
for nonepublic Session setLabels(Map<String,String> labels)
labels
- labels or null
for nonepublic Boolean getMultiplexed()
null
for nonepublic Session setMultiplexed(Boolean multiplexed)
multiplexed
- multiplexed or null
for nonepublic String getName()
null
for nonepublic Session setName(String name)
name
- name or null
for nonepublic Session set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public Session clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.