Class ImportedDataInfo.FieldSchema.Builder (2.47.0)

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

Defines schema of a field in the imported data.

Protobuf type google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportedDataInfo.FieldSchema build()
Returns
Type Description
ImportedDataInfo.FieldSchema

buildPartial()

public ImportedDataInfo.FieldSchema buildPartial()
Returns
Type Description
ImportedDataInfo.FieldSchema

clear()

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

clearDescription()

public ImportedDataInfo.FieldSchema.Builder clearDescription()

Description for this field.

string description = 4;

Returns
Type Description
ImportedDataInfo.FieldSchema.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFieldName()

public ImportedDataInfo.FieldSchema.Builder clearFieldName()

Field name. Matches: A-Za-z_{0,127}

string field_name = 1;

Returns
Type Description
ImportedDataInfo.FieldSchema.Builder

clearIsRepeated()

public ImportedDataInfo.FieldSchema.Builder clearIsRepeated()

Is field repeated.

bool is_repeated = 3;

Returns
Type Description
ImportedDataInfo.FieldSchema.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSchema()

public ImportedDataInfo.FieldSchema.Builder clearSchema()

Present iff type == RECORD.

.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 5;

Returns
Type Description
ImportedDataInfo.FieldSchema.Builder

clearType()

public ImportedDataInfo.FieldSchema.Builder clearType()

Field type

.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Type type = 2;

Returns
Type Description
ImportedDataInfo.FieldSchema.Builder

clone()

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

getDefaultInstanceForType()

public ImportedDataInfo.FieldSchema getDefaultInstanceForType()
Returns
Type Description
ImportedDataInfo.FieldSchema

getDescription()

public String getDescription()

Description for this field.

string description = 4;

Returns
Type Description
String

getDescriptionBytes()

public ByteString getDescriptionBytes()

Description for this field.

string description = 4;

Returns
Type Description
ByteString

getDescriptorForType()

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

getFieldName()

public String getFieldName()

Field name. Matches: A-Za-z_{0,127}

string field_name = 1;

Returns
Type Description
String

getFieldNameBytes()

public ByteString getFieldNameBytes()

Field name. Matches: A-Za-z_{0,127}

string field_name = 1;

Returns
Type Description
ByteString

getIsRepeated()

public boolean getIsRepeated()

Is field repeated.

bool is_repeated = 3;

Returns
Type Description
boolean

getSchema()

public ImportedDataInfo.RecordSchema getSchema()

Present iff type == RECORD.

.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 5;

Returns
Type Description
ImportedDataInfo.RecordSchema

getSchemaBuilder()

public ImportedDataInfo.RecordSchema.Builder getSchemaBuilder()

Present iff type == RECORD.

.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 5;

Returns
Type Description
ImportedDataInfo.RecordSchema.Builder

getSchemaOrBuilder()

public ImportedDataInfo.RecordSchemaOrBuilder getSchemaOrBuilder()

Present iff type == RECORD.

.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 5;

Returns
Type Description
ImportedDataInfo.RecordSchemaOrBuilder

getType()

public ImportedDataInfo.FieldSchema.Type getType()

Field type

.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Type type = 2;

Returns
Type Description
ImportedDataInfo.FieldSchema.Type

getTypeValue()

public int getTypeValue()

Field type

.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Type type = 2;

Returns
Type Description
int

hasSchema()

public boolean hasSchema()

Present iff type == RECORD.

.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 5;

Returns
Type Description
boolean

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImportedDataInfo.FieldSchema other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSchema(ImportedDataInfo.RecordSchema value)

public ImportedDataInfo.FieldSchema.Builder mergeSchema(ImportedDataInfo.RecordSchema value)

Present iff type == RECORD.

.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 5;

Parameter
Name Description
value ImportedDataInfo.RecordSchema
Returns
Type Description
ImportedDataInfo.FieldSchema.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDescription(String value)

public ImportedDataInfo.FieldSchema.Builder setDescription(String value)

Description for this field.

string description = 4;

Parameter
Name Description
value String
Returns
Type Description
ImportedDataInfo.FieldSchema.Builder

setDescriptionBytes(ByteString value)

public ImportedDataInfo.FieldSchema.Builder setDescriptionBytes(ByteString value)

Description for this field.

string description = 4;

Parameter
Name Description
value ByteString
Returns
Type Description
ImportedDataInfo.FieldSchema.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFieldName(String value)

public ImportedDataInfo.FieldSchema.Builder setFieldName(String value)

Field name. Matches: A-Za-z_{0,127}

string field_name = 1;

Parameter
Name Description
value String
Returns
Type Description
ImportedDataInfo.FieldSchema.Builder

setFieldNameBytes(ByteString value)

public ImportedDataInfo.FieldSchema.Builder setFieldNameBytes(ByteString value)

Field name. Matches: A-Za-z_{0,127}

string field_name = 1;

Parameter
Name Description
value ByteString
Returns
Type Description
ImportedDataInfo.FieldSchema.Builder

setIsRepeated(boolean value)

public ImportedDataInfo.FieldSchema.Builder setIsRepeated(boolean value)

Is field repeated.

bool is_repeated = 3;

Parameter
Name Description
value boolean
Returns
Type Description
ImportedDataInfo.FieldSchema.Builder

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

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

setSchema(ImportedDataInfo.RecordSchema value)

public ImportedDataInfo.FieldSchema.Builder setSchema(ImportedDataInfo.RecordSchema value)

Present iff type == RECORD.

.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 5;

Parameter
Name Description
value ImportedDataInfo.RecordSchema
Returns
Type Description
ImportedDataInfo.FieldSchema.Builder

setSchema(ImportedDataInfo.RecordSchema.Builder builderForValue)

public ImportedDataInfo.FieldSchema.Builder setSchema(ImportedDataInfo.RecordSchema.Builder builderForValue)

Present iff type == RECORD.

.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 5;

Parameter
Name Description
builderForValue ImportedDataInfo.RecordSchema.Builder
Returns
Type Description
ImportedDataInfo.FieldSchema.Builder

setType(ImportedDataInfo.FieldSchema.Type value)

public ImportedDataInfo.FieldSchema.Builder setType(ImportedDataInfo.FieldSchema.Type value)

Field type

.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Type type = 2;

Parameter
Name Description
value ImportedDataInfo.FieldSchema.Type
Returns
Type Description
ImportedDataInfo.FieldSchema.Builder

setTypeValue(int value)

public ImportedDataInfo.FieldSchema.Builder setTypeValue(int value)

Field type

.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Type type = 2;

Parameter
Name Description
value int
Returns
Type Description
ImportedDataInfo.FieldSchema.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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