public final class TableFieldSchema
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 BigQuery 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 |
TableFieldSchema.Categories
[Optional] The categories attached to this field, used for field-level access control.
|
static class |
TableFieldSchema.PolicyTags
Model definition for TableFieldSchemaPolicyTags.
|
static class |
TableFieldSchema.RangeElementType
Optional.
|
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
TableFieldSchema() |
| Modifier and Type | Method and Description |
|---|---|
TableFieldSchema |
clone() |
TableFieldSchema.Categories |
getCategories()
[Optional] The categories attached to this field, used for field-level access control.
|
String |
getCollation()
Optional.
|
String |
getDefaultValueExpression()
Optional.
|
String |
getDescription()
[Optional] The field description.
|
List<TableFieldSchema> |
getFields()
[Optional] Describes the nested schema fields if the type property is set to RECORD.
|
Long |
getMaxLength()
[Optional] Maximum length of values of this field for STRINGS or BYTES.
|
String |
getMode()
[Optional] The field mode.
|
String |
getName()
[Required] The field name.
|
TableFieldSchema.PolicyTags |
getPolicyTags() |
Long |
getPrecision()
[Optional] Precision (maximum number of total digits in base 10) and scale (maximum number of
digits in the fractional part in base 10) constraints for values of this field for NUMERIC or
BIGNUMERIC.
|
TableFieldSchema.RangeElementType |
getRangeElementType()
Optional.
|
String |
getRoundingMode()
Optional.
|
Long |
getScale()
[Optional] See documentation for precision.
|
String |
getType()
[Required] The field data type.
|
TableFieldSchema |
set(String fieldName,
Object value) |
TableFieldSchema |
setCategories(TableFieldSchema.Categories categories)
[Optional] The categories attached to this field, used for field-level access control.
|
TableFieldSchema |
setCollation(String collation)
Optional.
|
TableFieldSchema |
setDefaultValueExpression(String defaultValueExpression)
Optional.
|
TableFieldSchema |
setDescription(String description)
[Optional] The field description.
|
TableFieldSchema |
setFields(List<TableFieldSchema> fields)
[Optional] Describes the nested schema fields if the type property is set to RECORD.
|
TableFieldSchema |
setMaxLength(Long maxLength)
[Optional] Maximum length of values of this field for STRINGS or BYTES.
|
TableFieldSchema |
setMode(String mode)
[Optional] The field mode.
|
TableFieldSchema |
setName(String name)
[Required] The field name.
|
TableFieldSchema |
setPolicyTags(TableFieldSchema.PolicyTags policyTags) |
TableFieldSchema |
setPrecision(Long precision)
[Optional] Precision (maximum number of total digits in base 10) and scale (maximum number of
digits in the fractional part in base 10) constraints for values of this field for NUMERIC or
BIGNUMERIC.
|
TableFieldSchema |
setRangeElementType(TableFieldSchema.RangeElementType rangeElementType)
Optional.
|
TableFieldSchema |
setRoundingMode(String roundingMode)
Optional.
|
TableFieldSchema |
setScale(Long scale)
[Optional] See documentation for precision.
|
TableFieldSchema |
setType(String type)
[Required] The field data type.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic TableFieldSchema.Categories getCategories()
null for nonepublic TableFieldSchema setCategories(TableFieldSchema.Categories categories)
categories - categories or null for nonepublic String getCollation()
null for nonepublic TableFieldSchema setCollation(String collation)
collation - collation or null for nonepublic String getDefaultValueExpression()
null for nonepublic TableFieldSchema setDefaultValueExpression(String defaultValueExpression)
defaultValueExpression - defaultValueExpression or null for nonepublic String getDescription()
null for nonepublic TableFieldSchema setDescription(String description)
description - description or null for nonepublic List<TableFieldSchema> getFields()
null for nonepublic TableFieldSchema setFields(List<TableFieldSchema> fields)
fields - fields or null for nonepublic Long getMaxLength()
null for nonepublic TableFieldSchema setMaxLength(Long maxLength)
maxLength - maxLength or null for nonepublic String getMode()
null for nonepublic TableFieldSchema setMode(String mode)
mode - mode or null for nonepublic String getName()
null for nonepublic TableFieldSchema setName(String name)
name - name or null for nonepublic TableFieldSchema.PolicyTags getPolicyTags()
null for nonepublic TableFieldSchema setPolicyTags(TableFieldSchema.PolicyTags policyTags)
policyTags - policyTags or null for nonepublic Long getPrecision()
null for nonepublic TableFieldSchema setPrecision(Long precision)
precision - precision or null for nonepublic TableFieldSchema.RangeElementType getRangeElementType()
null for nonepublic TableFieldSchema setRangeElementType(TableFieldSchema.RangeElementType rangeElementType)
rangeElementType - rangeElementType or null for nonepublic String getRoundingMode()
null for nonepublic TableFieldSchema setRoundingMode(String roundingMode)
roundingMode - roundingMode or null for nonepublic Long getScale()
null for nonepublic TableFieldSchema setScale(Long scale)
scale - scale or null for nonepublic String getType()
null for nonepublic TableFieldSchema setType(String type)
type - type or null for nonepublic TableFieldSchema set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic TableFieldSchema clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2023 Google. All rights reserved.