Class ImportedDataInfo.FieldSchema.Builder (2.18.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportedDataInfo.FieldSchema build()
Returns
TypeDescription
ImportedDataInfo.FieldSchema

buildPartial()

public ImportedDataInfo.FieldSchema buildPartial()
Returns
TypeDescription
ImportedDataInfo.FieldSchema

clear()

public ImportedDataInfo.FieldSchema.Builder clear()
Returns
TypeDescription
ImportedDataInfo.FieldSchema.Builder
Overrides

clearDescription()

public ImportedDataInfo.FieldSchema.Builder clearDescription()

Description for this field.

string description = 4;

Returns
TypeDescription
ImportedDataInfo.FieldSchema.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFieldName()

public ImportedDataInfo.FieldSchema.Builder clearFieldName()

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

string field_name = 1;

Returns
TypeDescription
ImportedDataInfo.FieldSchema.Builder

clearIsRepeated()

public ImportedDataInfo.FieldSchema.Builder clearIsRepeated()

Is field repeated.

bool is_repeated = 3;

Returns
TypeDescription
ImportedDataInfo.FieldSchema.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSchema()

public ImportedDataInfo.FieldSchema.Builder clearSchema()

Present iff type == RECORD.

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

Returns
TypeDescription
ImportedDataInfo.FieldSchema.Builder

clearType()

public ImportedDataInfo.FieldSchema.Builder clearType()

Field type

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

Returns
TypeDescription
ImportedDataInfo.FieldSchema.Builder

clone()

public ImportedDataInfo.FieldSchema.Builder clone()
Returns
TypeDescription
ImportedDataInfo.FieldSchema.Builder
Overrides

getDefaultInstanceForType()

public ImportedDataInfo.FieldSchema getDefaultInstanceForType()
Returns
TypeDescription
ImportedDataInfo.FieldSchema

getDescription()

public String getDescription()

Description for this field.

string description = 4;

Returns
TypeDescription
String

getDescriptionBytes()

public ByteString getDescriptionBytes()

Description for this field.

string description = 4;

Returns
TypeDescription
ByteString

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFieldName()

public String getFieldName()

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

string field_name = 1;

Returns
TypeDescription
String

getFieldNameBytes()

public ByteString getFieldNameBytes()

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

string field_name = 1;

Returns
TypeDescription
ByteString

getIsRepeated()

public boolean getIsRepeated()

Is field repeated.

bool is_repeated = 3;

Returns
TypeDescription
boolean

getSchema()

public ImportedDataInfo.RecordSchema getSchema()

Present iff type == RECORD.

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

Returns
TypeDescription
ImportedDataInfo.RecordSchema

getSchemaBuilder()

public ImportedDataInfo.RecordSchema.Builder getSchemaBuilder()

Present iff type == RECORD.

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

Returns
TypeDescription
ImportedDataInfo.RecordSchema.Builder

getSchemaOrBuilder()

public ImportedDataInfo.RecordSchemaOrBuilder getSchemaOrBuilder()

Present iff type == RECORD.

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

Returns
TypeDescription
ImportedDataInfo.RecordSchemaOrBuilder

getType()

public ImportedDataInfo.FieldSchema.Type getType()

Field type

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

Returns
TypeDescription
ImportedDataInfo.FieldSchema.Type

getTypeValue()

public int getTypeValue()

Field type

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

Returns
TypeDescription
int

hasSchema()

public boolean hasSchema()

Present iff type == RECORD.

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

Returns
TypeDescription
boolean

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ImportedDataInfo.FieldSchema other)

public ImportedDataInfo.FieldSchema.Builder mergeFrom(ImportedDataInfo.FieldSchema other)
Parameter
NameDescription
otherImportedDataInfo.FieldSchema
Returns
TypeDescription
ImportedDataInfo.FieldSchema.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ImportedDataInfo.FieldSchema.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueImportedDataInfo.RecordSchema
Returns
TypeDescription
ImportedDataInfo.FieldSchema.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDescription(String value)

public ImportedDataInfo.FieldSchema.Builder setDescription(String value)

Description for this field.

string description = 4;

Parameter
NameDescription
valueString
Returns
TypeDescription
ImportedDataInfo.FieldSchema.Builder

setDescriptionBytes(ByteString value)

public ImportedDataInfo.FieldSchema.Builder setDescriptionBytes(ByteString value)

Description for this field.

string description = 4;

Parameter
NameDescription
valueByteString
Returns
TypeDescription
ImportedDataInfo.FieldSchema.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ImportedDataInfo.FieldSchema.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString
Returns
TypeDescription
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
NameDescription
valueByteString
Returns
TypeDescription
ImportedDataInfo.FieldSchema.Builder

setIsRepeated(boolean value)

public ImportedDataInfo.FieldSchema.Builder setIsRepeated(boolean value)

Is field repeated.

bool is_repeated = 3;

Parameter
NameDescription
valueboolean
Returns
TypeDescription
ImportedDataInfo.FieldSchema.Builder

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

public ImportedDataInfo.FieldSchema.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueImportedDataInfo.RecordSchema
Returns
TypeDescription
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
NameDescription
builderForValueImportedDataInfo.RecordSchema.Builder
Returns
TypeDescription
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
NameDescription
valueImportedDataInfo.FieldSchema.Type
Returns
TypeDescription
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
NameDescription
valueint
Returns
TypeDescription
ImportedDataInfo.FieldSchema.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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