Class TableFieldSchema.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TableFieldSchema.Builder>
-
- com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder
-
- All Implemented Interfaces:
TableFieldSchemaOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TableFieldSchema
public static final class TableFieldSchema.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TableFieldSchema.Builder> implements TableFieldSchemaOrBuilder
TableFieldSchema defines a single field/column within a table schema.
Protobuf typegoogle.cloud.bigquery.storage.v1.TableFieldSchema
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TableFieldSchema.Builder>
-
clear
public TableFieldSchema.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<TableFieldSchema.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<TableFieldSchema.Builder>
-
getDefaultInstanceForType
public TableFieldSchema getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TableFieldSchema build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TableFieldSchema buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TableFieldSchema.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TableFieldSchema.Builder>
-
setField
public TableFieldSchema.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TableFieldSchema.Builder>
-
clearField
public TableFieldSchema.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TableFieldSchema.Builder>
-
clearOneof
public TableFieldSchema.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TableFieldSchema.Builder>
-
setRepeatedField
public TableFieldSchema.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TableFieldSchema.Builder>
-
addRepeatedField
public TableFieldSchema.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TableFieldSchema.Builder>
-
mergeFrom
public TableFieldSchema.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TableFieldSchema.Builder>
-
mergeFrom
public TableFieldSchema.Builder mergeFrom(TableFieldSchema other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<TableFieldSchema.Builder>
-
mergeFrom
public TableFieldSchema.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TableFieldSchema.Builder>- Throws:
IOException
-
getName
public String getName()
Required. The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters.
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNamein interfaceTableFieldSchemaOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Required. The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters.
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNameBytesin interfaceTableFieldSchemaOrBuilder- Returns:
- The bytes for name.
-
setName
public TableFieldSchema.Builder setName(String value)
Required. The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters.
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public TableFieldSchema.Builder clearName()
Required. The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters.
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setNameBytes
public TableFieldSchema.Builder setNameBytes(com.google.protobuf.ByteString value)
Required. The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters.
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()
Required. The field data type.
.google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTypeValuein interfaceTableFieldSchemaOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
public TableFieldSchema.Builder setTypeValue(int value)
Required. The field data type.
.google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
public TableFieldSchema.Type getType()
Required. The field data type.
.google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTypein interfaceTableFieldSchemaOrBuilder- Returns:
- The type.
-
setType
public TableFieldSchema.Builder setType(TableFieldSchema.Type value)
Required. The field data type.
.google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
public TableFieldSchema.Builder clearType()
Required. The field data type.
.google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
getModeValue
public int getModeValue()
Optional. The field mode. The default value is NULLABLE.
.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getModeValuein interfaceTableFieldSchemaOrBuilder- Returns:
- The enum numeric value on the wire for mode.
-
setModeValue
public TableFieldSchema.Builder setModeValue(int value)
Optional. The field mode. The default value is NULLABLE.
.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for mode to set.- Returns:
- This builder for chaining.
-
getMode
public TableFieldSchema.Mode getMode()
Optional. The field mode. The default value is NULLABLE.
.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getModein interfaceTableFieldSchemaOrBuilder- Returns:
- The mode.
-
setMode
public TableFieldSchema.Builder setMode(TableFieldSchema.Mode value)
Optional. The field mode. The default value is NULLABLE.
.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The mode to set.- Returns:
- This builder for chaining.
-
clearMode
public TableFieldSchema.Builder clearMode()
Optional. The field mode. The default value is NULLABLE.
.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getFieldsList
public List<TableFieldSchema> getFieldsList()
Optional. Describes the nested schema fields if the type property is set to STRUCT.
repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFieldsListin interfaceTableFieldSchemaOrBuilder
-
getFieldsCount
public int getFieldsCount()
Optional. Describes the nested schema fields if the type property is set to STRUCT.
repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFieldsCountin interfaceTableFieldSchemaOrBuilder
-
getFields
public TableFieldSchema getFields(int index)
Optional. Describes the nested schema fields if the type property is set to STRUCT.
repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFieldsin interfaceTableFieldSchemaOrBuilder
-
setFields
public TableFieldSchema.Builder setFields(int index, TableFieldSchema value)
Optional. Describes the nested schema fields if the type property is set to STRUCT.
repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
-
setFields
public TableFieldSchema.Builder setFields(int index, TableFieldSchema.Builder builderForValue)
Optional. Describes the nested schema fields if the type property is set to STRUCT.
repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
-
addFields
public TableFieldSchema.Builder addFields(TableFieldSchema value)
Optional. Describes the nested schema fields if the type property is set to STRUCT.
repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
-
addFields
public TableFieldSchema.Builder addFields(int index, TableFieldSchema value)
Optional. Describes the nested schema fields if the type property is set to STRUCT.
repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
-
addFields
public TableFieldSchema.Builder addFields(TableFieldSchema.Builder builderForValue)
Optional. Describes the nested schema fields if the type property is set to STRUCT.
repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
-
addFields
public TableFieldSchema.Builder addFields(int index, TableFieldSchema.Builder builderForValue)
Optional. Describes the nested schema fields if the type property is set to STRUCT.
repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
-
addAllFields
public TableFieldSchema.Builder addAllFields(Iterable<? extends TableFieldSchema> values)
Optional. Describes the nested schema fields if the type property is set to STRUCT.
repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
-
clearFields
public TableFieldSchema.Builder clearFields()
Optional. Describes the nested schema fields if the type property is set to STRUCT.
repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
-
removeFields
public TableFieldSchema.Builder removeFields(int index)
Optional. Describes the nested schema fields if the type property is set to STRUCT.
repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
-
getFieldsBuilder
public TableFieldSchema.Builder getFieldsBuilder(int index)
Optional. Describes the nested schema fields if the type property is set to STRUCT.
repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
-
getFieldsOrBuilder
public TableFieldSchemaOrBuilder getFieldsOrBuilder(int index)
Optional. Describes the nested schema fields if the type property is set to STRUCT.
repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFieldsOrBuilderin interfaceTableFieldSchemaOrBuilder
-
getFieldsOrBuilderList
public List<? extends TableFieldSchemaOrBuilder> getFieldsOrBuilderList()
Optional. Describes the nested schema fields if the type property is set to STRUCT.
repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFieldsOrBuilderListin interfaceTableFieldSchemaOrBuilder
-
addFieldsBuilder
public TableFieldSchema.Builder addFieldsBuilder()
Optional. Describes the nested schema fields if the type property is set to STRUCT.
repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
-
addFieldsBuilder
public TableFieldSchema.Builder addFieldsBuilder(int index)
Optional. Describes the nested schema fields if the type property is set to STRUCT.
repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
-
getFieldsBuilderList
public List<TableFieldSchema.Builder> getFieldsBuilderList()
Optional. Describes the nested schema fields if the type property is set to STRUCT.
repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
-
getDescription
public String getDescription()
Optional. The field description. The maximum length is 1,024 characters.
string description = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionin interfaceTableFieldSchemaOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Optional. The field description. The maximum length is 1,024 characters.
string description = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionBytesin interfaceTableFieldSchemaOrBuilder- Returns:
- The bytes for description.
-
setDescription
public TableFieldSchema.Builder setDescription(String value)
Optional. The field description. The maximum length is 1,024 characters.
string description = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public TableFieldSchema.Builder clearDescription()
Optional. The field description. The maximum length is 1,024 characters.
string description = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDescriptionBytes
public TableFieldSchema.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Optional. The field description. The maximum length is 1,024 characters.
string description = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getMaxLength
public long getMaxLength()
Optional. Maximum length of values of this field for STRINGS or BYTES. If max_length is not specified, no maximum length constraint is imposed on this field. If type = "STRING", then max_length represents the maximum UTF-8 length of strings in this field. If type = "BYTES", then max_length represents the maximum number of bytes in this field. It is invalid to set this field if type is not "STRING" or "BYTES".
int64 max_length = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMaxLengthin interfaceTableFieldSchemaOrBuilder- Returns:
- The maxLength.
-
setMaxLength
public TableFieldSchema.Builder setMaxLength(long value)
Optional. Maximum length of values of this field for STRINGS or BYTES. If max_length is not specified, no maximum length constraint is imposed on this field. If type = "STRING", then max_length represents the maximum UTF-8 length of strings in this field. If type = "BYTES", then max_length represents the maximum number of bytes in this field. It is invalid to set this field if type is not "STRING" or "BYTES".
int64 max_length = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The maxLength to set.- Returns:
- This builder for chaining.
-
clearMaxLength
public TableFieldSchema.Builder clearMaxLength()
Optional. Maximum length of values of this field for STRINGS or BYTES. If max_length is not specified, no maximum length constraint is imposed on this field. If type = "STRING", then max_length represents the maximum UTF-8 length of strings in this field. If type = "BYTES", then max_length represents the maximum number of bytes in this field. It is invalid to set this field if type is not "STRING" or "BYTES".
int64 max_length = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getPrecision
public 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. It is invalid to set precision or scale if type is not "NUMERIC" or "BIGNUMERIC". If precision and scale are not specified, no value range constraint is imposed on this field insofar as values are permitted by the type. Values of this NUMERIC or BIGNUMERIC field must be in this range when: * Precision (P) and scale (S) are specified: [-10^(P-S) + 10^(-S), 10^(P-S) - 10^(-S)] * Precision (P) is specified but not scale (and thus scale is interpreted to be equal to zero): [-10^P + 1, 10^P - 1]. Acceptable values for precision and scale if both are specified: * If type = "NUMERIC": 1 <= precision - scale <= 29 and 0 <= scale <= 9. * If type = "BIGNUMERIC": 1 <= precision - scale <= 38 and 0 <= scale <= 38. Acceptable values for precision if only precision is specified but not scale (and thus scale is interpreted to be equal to zero): * If type = "NUMERIC": 1 <= precision <= 29. * If type = "BIGNUMERIC": 1 <= precision <= 38. If scale is specified but not precision, then it is invalid.
int64 precision = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPrecisionin interfaceTableFieldSchemaOrBuilder- Returns:
- The precision.
-
setPrecision
public TableFieldSchema.Builder setPrecision(long value)
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. It is invalid to set precision or scale if type is not "NUMERIC" or "BIGNUMERIC". If precision and scale are not specified, no value range constraint is imposed on this field insofar as values are permitted by the type. Values of this NUMERIC or BIGNUMERIC field must be in this range when: * Precision (P) and scale (S) are specified: [-10^(P-S) + 10^(-S), 10^(P-S) - 10^(-S)] * Precision (P) is specified but not scale (and thus scale is interpreted to be equal to zero): [-10^P + 1, 10^P - 1]. Acceptable values for precision and scale if both are specified: * If type = "NUMERIC": 1 <= precision - scale <= 29 and 0 <= scale <= 9. * If type = "BIGNUMERIC": 1 <= precision - scale <= 38 and 0 <= scale <= 38. Acceptable values for precision if only precision is specified but not scale (and thus scale is interpreted to be equal to zero): * If type = "NUMERIC": 1 <= precision <= 29. * If type = "BIGNUMERIC": 1 <= precision <= 38. If scale is specified but not precision, then it is invalid.
int64 precision = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The precision to set.- Returns:
- This builder for chaining.
-
clearPrecision
public TableFieldSchema.Builder clearPrecision()
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. It is invalid to set precision or scale if type is not "NUMERIC" or "BIGNUMERIC". If precision and scale are not specified, no value range constraint is imposed on this field insofar as values are permitted by the type. Values of this NUMERIC or BIGNUMERIC field must be in this range when: * Precision (P) and scale (S) are specified: [-10^(P-S) + 10^(-S), 10^(P-S) - 10^(-S)] * Precision (P) is specified but not scale (and thus scale is interpreted to be equal to zero): [-10^P + 1, 10^P - 1]. Acceptable values for precision and scale if both are specified: * If type = "NUMERIC": 1 <= precision - scale <= 29 and 0 <= scale <= 9. * If type = "BIGNUMERIC": 1 <= precision - scale <= 38 and 0 <= scale <= 38. Acceptable values for precision if only precision is specified but not scale (and thus scale is interpreted to be equal to zero): * If type = "NUMERIC": 1 <= precision <= 29. * If type = "BIGNUMERIC": 1 <= precision <= 38. If scale is specified but not precision, then it is invalid.
int64 precision = 8 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getScale
public long getScale()
Optional. See documentation for precision.
int64 scale = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getScalein interfaceTableFieldSchemaOrBuilder- Returns:
- The scale.
-
setScale
public TableFieldSchema.Builder setScale(long value)
Optional. See documentation for precision.
int64 scale = 9 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The scale to set.- Returns:
- This builder for chaining.
-
clearScale
public TableFieldSchema.Builder clearScale()
Optional. See documentation for precision.
int64 scale = 9 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getDefaultValueExpression
public String getDefaultValueExpression()
Optional. A SQL expression to specify the [default value] (https://cloud.google.com/bigquery/docs/default-values) for this field.
string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDefaultValueExpressionin interfaceTableFieldSchemaOrBuilder- Returns:
- The defaultValueExpression.
-
getDefaultValueExpressionBytes
public com.google.protobuf.ByteString getDefaultValueExpressionBytes()
Optional. A SQL expression to specify the [default value] (https://cloud.google.com/bigquery/docs/default-values) for this field.
string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDefaultValueExpressionBytesin interfaceTableFieldSchemaOrBuilder- Returns:
- The bytes for defaultValueExpression.
-
setDefaultValueExpression
public TableFieldSchema.Builder setDefaultValueExpression(String value)
Optional. A SQL expression to specify the [default value] (https://cloud.google.com/bigquery/docs/default-values) for this field.
string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The defaultValueExpression to set.- Returns:
- This builder for chaining.
-
clearDefaultValueExpression
public TableFieldSchema.Builder clearDefaultValueExpression()
Optional. A SQL expression to specify the [default value] (https://cloud.google.com/bigquery/docs/default-values) for this field.
string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDefaultValueExpressionBytes
public TableFieldSchema.Builder setDefaultValueExpressionBytes(com.google.protobuf.ByteString value)
Optional. A SQL expression to specify the [default value] (https://cloud.google.com/bigquery/docs/default-values) for this field.
string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for defaultValueExpression to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final TableFieldSchema.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TableFieldSchema.Builder>
-
mergeUnknownFields
public final TableFieldSchema.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TableFieldSchema.Builder>
-
-