public final class Type
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
Constructor and Description |
---|
Type() |
Modifier and Type | Method and Description |
---|---|
Type |
clone() |
Type |
getArrayElementType()
If code == ARRAY, then `array_element_type` is the type of the array elements.
|
java.lang.String |
getCode()
Required.
|
StructType |
getStructType()
If code == STRUCT, then `struct_type` provides type information for the struct's fields.
|
Type |
set(java.lang.String fieldName,
java.lang.Object value) |
Type |
setArrayElementType(Type arrayElementType)
If code == ARRAY, then `array_element_type` is the type of the array elements.
|
Type |
setCode(java.lang.String code)
Required.
|
Type |
setStructType(StructType structType)
If code == STRUCT, then `struct_type` provides type information for the struct's fields.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public Type getArrayElementType()
null
for nonepublic Type setArrayElementType(Type arrayElementType)
arrayElementType
- arrayElementType or null
for nonepublic java.lang.String getCode()
null
for nonepublic Type setCode(java.lang.String code)
code
- code or null
for nonepublic StructType getStructType()
null
for nonepublic Type setStructType(StructType structType)
structType
- structType or null
for nonepublic Type set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Type clone()
clone
in class com.google.api.client.json.GenericJson