Class TableFieldSchema.Builder (3.50.0)

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
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.asset.v1.TableFieldSchema>
Returns
Type Description
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
Name Description
value TableFieldSchema
Returns
Type Description
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
Name Description
builderForValue TableFieldSchema.Builder
Returns
Type Description
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
Name Description
index int
value TableFieldSchema
Returns
Type Description
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
Name Description
index int
builderForValue TableFieldSchema.Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
TableFieldSchema.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TableFieldSchema.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TableFieldSchema.Builder
Overrides

build()

public TableFieldSchema build()
Returns
Type Description
TableFieldSchema

buildPartial()

public TableFieldSchema buildPartial()
Returns
Type Description
TableFieldSchema

clear()

public TableFieldSchema.Builder clear()
Returns
Type Description
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
Type Description
TableFieldSchema.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TableFieldSchema.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
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
Type Description
TableFieldSchema.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TableFieldSchema.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
TableFieldSchema.Builder

This builder for chaining.

clone()

public TableFieldSchema.Builder clone()
Returns
Type Description
TableFieldSchema.Builder
Overrides

getDefaultInstanceForType()

public TableFieldSchema getDefaultInstanceForType()
Returns
Type Description
TableFieldSchema

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TableFieldSchema other)

public TableFieldSchema.Builder mergeFrom(TableFieldSchema other)
Parameter
Name Description
other TableFieldSchema
Returns
Type Description
TableFieldSchema.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TableFieldSchema.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TableFieldSchema.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TableFieldSchema.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TableFieldSchema.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TableFieldSchema.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
TableFieldSchema.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TableFieldSchema.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The field to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for field to set.

Returns
Type Description
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
Name Description
index int
value TableFieldSchema
Returns
Type Description
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
Name Description
index int
builderForValue TableFieldSchema.Builder
Returns
Type Description
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
Name Description
value String

The mode to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for mode to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value String

The type to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
TableFieldSchema.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final TableFieldSchema.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TableFieldSchema.Builder
Overrides