Class FieldSchema.Builder (3.9.0)

public static final class FieldSchema.Builder extends GeneratedMessageV3.Builder<FieldSchema.Builder> implements FieldSchemaOrBuilder

Schema description of a metastore partition column.

Protobuf type google.cloud.bigquery.storage.v1alpha.FieldSchema

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FieldSchema build()
Returns
Type Description
FieldSchema

buildPartial()

public FieldSchema buildPartial()
Returns
Type Description
FieldSchema

clear()

public FieldSchema.Builder clear()
Returns
Type Description
FieldSchema.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public FieldSchema.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
FieldSchema.Builder
Overrides

clearName()

public FieldSchema.Builder clearName()

Required. The name of the column. The maximum length of the name is 1024 characters

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldSchema.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public FieldSchema.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
FieldSchema.Builder
Overrides

clearType()

public FieldSchema.Builder clearType()

Required. The type of the metastore partition column. Maximum allowed length is 1024 characters.

string type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldSchema.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public FieldSchema getDefaultInstanceForType()
Returns
Type Description
FieldSchema

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Required. The name of the column. The maximum length of the name is 1024 characters

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the column. The maximum length of the name is 1024 characters

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

getType()

public String getType()

Required. The type of the metastore partition column. Maximum allowed length is 1024 characters.

string type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Required. The type of the metastore partition column. Maximum allowed length is 1024 characters.

string type = 2 [(.google.api.field_behavior) = REQUIRED];

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(FieldSchema other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FieldSchema.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FieldSchema.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public FieldSchema.Builder setName(String value)

Required. The name of the column. The maximum length of the name is 1024 characters

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
FieldSchema.Builder

This builder for chaining.

setNameBytes(ByteString value)

public FieldSchema.Builder setNameBytes(ByteString value)

Required. The name of the column. The maximum length of the name is 1024 characters

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
FieldSchema.Builder

This builder for chaining.

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

public FieldSchema.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
FieldSchema.Builder
Overrides

setType(String value)

public FieldSchema.Builder setType(String value)

Required. The type of the metastore partition column. Maximum allowed length is 1024 characters.

string type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The type to set.

Returns
Type Description
FieldSchema.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public FieldSchema.Builder setTypeBytes(ByteString value)

Required. The type of the metastore partition column. Maximum allowed length is 1024 characters.

string type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
FieldSchema.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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