public final class SchemaFieldSpec extends 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 Admin SDK API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
Modifier and Type | Class and Description |
---|---|
static class |
SchemaFieldSpec.NumericIndexingSpec
Indexing spec for a numeric field.
|
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
SchemaFieldSpec() |
Modifier and Type | Method and Description |
---|---|
SchemaFieldSpec |
clone() |
String |
getDisplayName()
Display Name of the field.
|
String |
getEtag()
The ETag of the field.
|
String |
getFieldId()
The unique identifier of the field (Read-only)
|
String |
getFieldName()
The name of the field.
|
String |
getFieldType()
The type of the field.
|
Boolean |
getIndexed()
Boolean specifying whether the field is indexed or not.
|
String |
getKind()
The kind of resource this is.
|
Boolean |
getMultiValued()
A boolean specifying whether this is a multi-valued field or not.
|
SchemaFieldSpec.NumericIndexingSpec |
getNumericIndexingSpec()
Indexing spec for a numeric field.
|
String |
getReadAccessType()
Specifies who can view values of this field.
|
boolean |
isIndexed()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
SchemaFieldSpec |
set(String fieldName,
Object value) |
SchemaFieldSpec |
setDisplayName(String displayName)
Display Name of the field.
|
SchemaFieldSpec |
setEtag(String etag)
The ETag of the field.
|
SchemaFieldSpec |
setFieldId(String fieldId)
The unique identifier of the field (Read-only)
|
SchemaFieldSpec |
setFieldName(String fieldName)
The name of the field.
|
SchemaFieldSpec |
setFieldType(String fieldType)
The type of the field.
|
SchemaFieldSpec |
setIndexed(Boolean indexed)
Boolean specifying whether the field is indexed or not.
|
SchemaFieldSpec |
setKind(String kind)
The kind of resource this is.
|
SchemaFieldSpec |
setMultiValued(Boolean multiValued)
A boolean specifying whether this is a multi-valued field or not.
|
SchemaFieldSpec |
setNumericIndexingSpec(SchemaFieldSpec.NumericIndexingSpec numericIndexingSpec)
Indexing spec for a numeric field.
|
SchemaFieldSpec |
setReadAccessType(String readAccessType)
Specifies who can view values of this field.
|
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 getDisplayName()
null
for nonepublic SchemaFieldSpec setDisplayName(String displayName)
displayName
- displayName or null
for nonepublic String getEtag()
null
for nonepublic SchemaFieldSpec setEtag(String etag)
etag
- etag or null
for nonepublic String getFieldId()
null
for nonepublic SchemaFieldSpec setFieldId(String fieldId)
fieldId
- fieldId or null
for nonepublic String getFieldName()
null
for nonepublic SchemaFieldSpec setFieldName(String fieldName)
fieldName
- fieldName or null
for nonepublic String getFieldType()
null
for nonepublic SchemaFieldSpec setFieldType(String fieldType)
fieldType
- fieldType or null
for nonepublic Boolean getIndexed()
null
for nonepublic SchemaFieldSpec setIndexed(Boolean indexed)
indexed
- indexed or null
for nonepublic boolean isIndexed()
Boolean.TRUE
or Boolean.FALSE
.
Boolean properties can have four possible values:
null
, Data.NULL_BOOLEAN
, Boolean.TRUE
or Boolean.FALSE
.
This method returns Boolean.TRUE
if the default of the property is Boolean.TRUE
and it is null
or Data.NULL_BOOLEAN
.
Boolean.FALSE
is returned if the default of the property is Boolean.FALSE
and
it is null
or Data.NULL_BOOLEAN
.
Boolean specifying whether the field is indexed or not. Default: `true`.
public String getKind()
null
for nonepublic SchemaFieldSpec setKind(String kind)
kind
- kind or null
for nonepublic Boolean getMultiValued()
null
for nonepublic SchemaFieldSpec setMultiValued(Boolean multiValued)
multiValued
- multiValued or null
for nonepublic SchemaFieldSpec.NumericIndexingSpec getNumericIndexingSpec()
null
for nonepublic SchemaFieldSpec setNumericIndexingSpec(SchemaFieldSpec.NumericIndexingSpec numericIndexingSpec)
numericIndexingSpec
- numericIndexingSpec or null
for nonepublic String getReadAccessType()
null
for nonepublic SchemaFieldSpec setReadAccessType(String readAccessType)
readAccessType
- readAccessType or null
for nonepublic SchemaFieldSpec set(String fieldName, Object value)
set
in class GenericJson
public SchemaFieldSpec clone()
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.