Class ImportedDataInfo.FieldSchema.Builder (2.12.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
Returns Overrides

build()

public ImportedDataInfo.FieldSchema build()
Returns

buildPartial()

public ImportedDataInfo.FieldSchema buildPartial()
Returns

clear()

public ImportedDataInfo.FieldSchema.Builder clear()
Returns Overrides

clearDescription()

public ImportedDataInfo.FieldSchema.Builder clearDescription()

Description for this field.

string description = 4;

Returns

clearField(Descriptors.FieldDescriptor field)

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

clearFieldName()

public ImportedDataInfo.FieldSchema.Builder clearFieldName()

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

string field_name = 1;

Returns

clearIsRepeated()

public ImportedDataInfo.FieldSchema.Builder clearIsRepeated()

Is field repeated.

bool is_repeated = 3;

Returns

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSchema()

public ImportedDataInfo.FieldSchema.Builder clearSchema()

Present iff type == RECORD.

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

Returns

clearType()

public ImportedDataInfo.FieldSchema.Builder clearType()

Field type

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

Returns

clone()

public ImportedDataInfo.FieldSchema.Builder clone()
Returns Overrides

getDefaultInstanceForType()

public ImportedDataInfo.FieldSchema getDefaultInstanceForType()
Returns

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

getSchemaBuilder()

public ImportedDataInfo.RecordSchema.Builder getSchemaBuilder()

Present iff type == RECORD.

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

Returns

getSchemaOrBuilder()

public ImportedDataInfo.RecordSchemaOrBuilder getSchemaOrBuilder()

Present iff type == RECORD.

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

Returns

getType()

public ImportedDataInfo.FieldSchema.Type getType()

Field type

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

Returns

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDescription(String value)

public ImportedDataInfo.FieldSchema.Builder setDescription(String value)

Description for this field.

string description = 4;

Parameter
NameDescription
valueString
Returns

setDescriptionBytes(ByteString value)

public ImportedDataInfo.FieldSchema.Builder setDescriptionBytes(ByteString value)

Description for this field.

string description = 4;

Parameter
NameDescription
valueByteString
Returns

setField(Descriptors.FieldDescriptor field, Object value)

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

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

setIsRepeated(boolean value)

public ImportedDataInfo.FieldSchema.Builder setIsRepeated(boolean value)

Is field repeated.

bool is_repeated = 3;

Parameter
NameDescription
valueboolean
Returns

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

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

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 Returns

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

setUnknownFields(UnknownFieldSet unknownFields)

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