Class TableFieldSchema.Builder (3.7.1)

public static final class TableFieldSchema.Builder extends GeneratedMessageV3.Builder<TableFieldSchema.Builder> implements TableFieldSchemaOrBuilder

A field in TableSchema.

Protobuf type google.cloud.asset.v1.TableFieldSchema

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllFields(Iterable<? extends TableFieldSchema> values)

public TableFieldSchema.Builder addAllFields(Iterable<? extends TableFieldSchema> values)

Describes the nested schema fields if the type property is set to RECORD.

repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.asset.v1.TableFieldSchema>
Returns
TypeDescription
TableFieldSchema.Builder

addFields(TableFieldSchema value)

public TableFieldSchema.Builder addFields(TableFieldSchema value)

Describes the nested schema fields if the type property is set to RECORD.

repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;

Parameter
NameDescription
valueTableFieldSchema
Returns
TypeDescription
TableFieldSchema.Builder

addFields(TableFieldSchema.Builder builderForValue)

public TableFieldSchema.Builder addFields(TableFieldSchema.Builder builderForValue)

Describes the nested schema fields if the type property is set to RECORD.

repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;

Parameter
NameDescription
builderForValueTableFieldSchema.Builder
Returns
TypeDescription
TableFieldSchema.Builder

addFields(int index, TableFieldSchema value)

public TableFieldSchema.Builder addFields(int index, TableFieldSchema value)

Describes the nested schema fields if the type property is set to RECORD.

repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;

Parameters
NameDescription
indexint
valueTableFieldSchema
Returns
TypeDescription
TableFieldSchema.Builder

addFields(int index, TableFieldSchema.Builder builderForValue)

public TableFieldSchema.Builder addFields(int index, TableFieldSchema.Builder builderForValue)

Describes the nested schema fields if the type property is set to RECORD.

repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;

Parameters
NameDescription
indexint
builderForValueTableFieldSchema.Builder
Returns
TypeDescription
TableFieldSchema.Builder

addFieldsBuilder()

public TableFieldSchema.Builder addFieldsBuilder()

Describes the nested schema fields if the type property is set to RECORD.

repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;

Returns
TypeDescription
TableFieldSchema.Builder

addFieldsBuilder(int index)

public TableFieldSchema.Builder addFieldsBuilder(int index)

Describes the nested schema fields if the type property is set to RECORD.

repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
TableFieldSchema.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TableFieldSchema.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TableFieldSchema.Builder
Overrides

build()

public TableFieldSchema build()
Returns
TypeDescription
TableFieldSchema

buildPartial()

public TableFieldSchema buildPartial()
Returns
TypeDescription
TableFieldSchema

clear()

public TableFieldSchema.Builder clear()
Returns
TypeDescription
TableFieldSchema.Builder
Overrides

clearField()

public TableFieldSchema.Builder clearField()

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 field = 1;

Returns
TypeDescription
TableFieldSchema.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TableFieldSchema.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TableFieldSchema.Builder
Overrides

clearFields()

public TableFieldSchema.Builder clearFields()

Describes the nested schema fields if the type property is set to RECORD.

repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;

Returns
TypeDescription
TableFieldSchema.Builder

clearMode()

public TableFieldSchema.Builder clearMode()

The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.

string mode = 3;

Returns
TypeDescription
TableFieldSchema.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TableFieldSchema.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TableFieldSchema.Builder
Overrides

clearType()

public TableFieldSchema.Builder clearType()

The field data type. Possible values include

  • STRING
  • BYTES
  • INTEGER
  • FLOAT
  • BOOLEAN
  • TIMESTAMP
  • DATE
  • TIME
  • DATETIME
  • GEOGRAPHY,
  • NUMERIC,
  • BIGNUMERIC,
  • RECORD (where RECORD indicates that the field contains a nested schema).

string type = 2;

Returns
TypeDescription
TableFieldSchema.Builder

This builder for chaining.

clone()

public TableFieldSchema.Builder clone()
Returns
TypeDescription
TableFieldSchema.Builder
Overrides

getDefaultInstanceForType()

public TableFieldSchema getDefaultInstanceForType()
Returns
TypeDescription
TableFieldSchema

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getField()

public String getField()

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 field = 1;

Returns
TypeDescription
String

The field.

getFieldBytes()

public ByteString getFieldBytes()

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 field = 1;

Returns
TypeDescription
ByteString

The bytes for field.

getFields(int index)

public TableFieldSchema getFields(int index)

Describes the nested schema fields if the type property is set to RECORD.

repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
TableFieldSchema

getFieldsBuilder(int index)

public TableFieldSchema.Builder getFieldsBuilder(int index)

Describes the nested schema fields if the type property is set to RECORD.

repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
TableFieldSchema.Builder

getFieldsBuilderList()

public List<TableFieldSchema.Builder> getFieldsBuilderList()

Describes the nested schema fields if the type property is set to RECORD.

repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;

Returns
TypeDescription
List<Builder>

getFieldsCount()

public int getFieldsCount()

Describes the nested schema fields if the type property is set to RECORD.

repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;

Returns
TypeDescription
int

getFieldsList()

public List<TableFieldSchema> getFieldsList()

Describes the nested schema fields if the type property is set to RECORD.

repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;

Returns
TypeDescription
List<TableFieldSchema>

getFieldsOrBuilder(int index)

public TableFieldSchemaOrBuilder getFieldsOrBuilder(int index)

Describes the nested schema fields if the type property is set to RECORD.

repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
TableFieldSchemaOrBuilder

getFieldsOrBuilderList()

public List<? extends TableFieldSchemaOrBuilder> getFieldsOrBuilderList()

Describes the nested schema fields if the type property is set to RECORD.

repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;

Returns
TypeDescription
List<? extends com.google.cloud.asset.v1.TableFieldSchemaOrBuilder>

getMode()

public String getMode()

The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.

string mode = 3;

Returns
TypeDescription
String

The mode.

getModeBytes()

public ByteString getModeBytes()

The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.

string mode = 3;

Returns
TypeDescription
ByteString

The bytes for mode.

getType()

public String getType()

The field data type. Possible values include

  • STRING
  • BYTES
  • INTEGER
  • FLOAT
  • BOOLEAN
  • TIMESTAMP
  • DATE
  • TIME
  • DATETIME
  • GEOGRAPHY,
  • NUMERIC,
  • BIGNUMERIC,
  • RECORD (where RECORD indicates that the field contains a nested schema).

string type = 2;

Returns
TypeDescription
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

The field data type. Possible values include

  • STRING
  • BYTES
  • INTEGER
  • FLOAT
  • BOOLEAN
  • TIMESTAMP
  • DATE
  • TIME
  • DATETIME
  • GEOGRAPHY,
  • NUMERIC,
  • BIGNUMERIC,
  • RECORD (where RECORD indicates that the field contains a nested schema).

string type = 2;

Returns
TypeDescription
ByteString

The bytes for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TableFieldSchema other)

public TableFieldSchema.Builder mergeFrom(TableFieldSchema other)
Parameter
NameDescription
otherTableFieldSchema
Returns
TypeDescription
TableFieldSchema.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TableFieldSchema.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TableFieldSchema.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TableFieldSchema.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TableFieldSchema.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TableFieldSchema.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TableFieldSchema.Builder
Overrides

removeFields(int index)

public TableFieldSchema.Builder removeFields(int index)

Describes the nested schema fields if the type property is set to RECORD.

repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
TableFieldSchema.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TableFieldSchema.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TableFieldSchema.Builder
Overrides

setField(String value)

public TableFieldSchema.Builder setField(String value)

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 field = 1;

Parameter
NameDescription
valueString

The field to set.

Returns
TypeDescription
TableFieldSchema.Builder

This builder for chaining.

setFieldBytes(ByteString value)

public TableFieldSchema.Builder setFieldBytes(ByteString value)

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 field = 1;

Parameter
NameDescription
valueByteString

The bytes for field to set.

Returns
TypeDescription
TableFieldSchema.Builder

This builder for chaining.

setFields(int index, TableFieldSchema value)

public TableFieldSchema.Builder setFields(int index, TableFieldSchema value)

Describes the nested schema fields if the type property is set to RECORD.

repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;

Parameters
NameDescription
indexint
valueTableFieldSchema
Returns
TypeDescription
TableFieldSchema.Builder

setFields(int index, TableFieldSchema.Builder builderForValue)

public TableFieldSchema.Builder setFields(int index, TableFieldSchema.Builder builderForValue)

Describes the nested schema fields if the type property is set to RECORD.

repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;

Parameters
NameDescription
indexint
builderForValueTableFieldSchema.Builder
Returns
TypeDescription
TableFieldSchema.Builder

setMode(String value)

public TableFieldSchema.Builder setMode(String value)

The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.

string mode = 3;

Parameter
NameDescription
valueString

The mode to set.

Returns
TypeDescription
TableFieldSchema.Builder

This builder for chaining.

setModeBytes(ByteString value)

public TableFieldSchema.Builder setModeBytes(ByteString value)

The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.

string mode = 3;

Parameter
NameDescription
valueByteString

The bytes for mode to set.

Returns
TypeDescription
TableFieldSchema.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TableFieldSchema.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TableFieldSchema.Builder
Overrides

setType(String value)

public TableFieldSchema.Builder setType(String value)

The field data type. Possible values include

  • STRING
  • BYTES
  • INTEGER
  • FLOAT
  • BOOLEAN
  • TIMESTAMP
  • DATE
  • TIME
  • DATETIME
  • GEOGRAPHY,
  • NUMERIC,
  • BIGNUMERIC,
  • RECORD (where RECORD indicates that the field contains a nested schema).

string type = 2;

Parameter
NameDescription
valueString

The type to set.

Returns
TypeDescription
TableFieldSchema.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public TableFieldSchema.Builder setTypeBytes(ByteString value)

The field data type. Possible values include

  • STRING
  • BYTES
  • INTEGER
  • FLOAT
  • BOOLEAN
  • TIMESTAMP
  • DATE
  • TIME
  • DATETIME
  • GEOGRAPHY,
  • NUMERIC,
  • BIGNUMERIC,
  • RECORD (where RECORD indicates that the field contains a nested schema).

string type = 2;

Parameter
NameDescription
valueByteString

The bytes for type to set.

Returns
TypeDescription
TableFieldSchema.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final TableFieldSchema.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TableFieldSchema.Builder
Overrides