Class ImportedDataInfo.FieldSchema.Builder (2.13.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

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

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
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()
Overrides

clearDescription()

public ImportedDataInfo.FieldSchema.Builder clearDescription()

Description for this field.

string description = 4;

clearField(Descriptors.FieldDescriptor field)

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

clearFieldName()

public ImportedDataInfo.FieldSchema.Builder clearFieldName()

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

string field_name = 1;

clearIsRepeated()

public ImportedDataInfo.FieldSchema.Builder clearIsRepeated()

Is field repeated.

bool is_repeated = 3;

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSchema()

public ImportedDataInfo.FieldSchema.Builder clearSchema()

Present iff type == RECORD.

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

clearType()

public ImportedDataInfo.FieldSchema.Builder clearType()

Field type

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

clone()

public ImportedDataInfo.FieldSchema.Builder clone()
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;

getSchemaOrBuilder()

public ImportedDataInfo.RecordSchemaOrBuilder getSchemaOrBuilder()

Present iff type == RECORD.

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDescription(String value)

public ImportedDataInfo.FieldSchema.Builder setDescription(String value)

Description for this field.

string description = 4;

Parameter
NameDescription
valueString

setDescriptionBytes(ByteString value)

public ImportedDataInfo.FieldSchema.Builder setDescriptionBytes(ByteString value)

Description for this field.

string description = 4;

Parameter
NameDescription
valueByteString

setField(Descriptors.FieldDescriptor field, Object value)

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

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

setIsRepeated(boolean value)

public ImportedDataInfo.FieldSchema.Builder setIsRepeated(boolean value)

Is field repeated.

bool is_repeated = 3;

Parameter
NameDescription
valueboolean

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
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

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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