Class ImportedDataInfo.FieldSchema (2.47.0)

public static final class ImportedDataInfo.FieldSchema extends GeneratedMessageV3 implements ImportedDataInfo.FieldSchemaOrBuilder

Defines schema of a field in the imported data.

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

Static Fields

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

FIELD_NAME_FIELD_NUMBER

public static final int FIELD_NAME_FIELD_NUMBER
Field Value
Type Description
int

IS_REPEATED_FIELD_NUMBER

public static final int IS_REPEATED_FIELD_NUMBER
Field Value
Type Description
int

SCHEMA_FIELD_NUMBER

public static final int SCHEMA_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ImportedDataInfo.FieldSchema getDefaultInstance()
Returns
Type Description
ImportedDataInfo.FieldSchema

getDescriptor()

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

newBuilder()

public static ImportedDataInfo.FieldSchema.Builder newBuilder()
Returns
Type Description
ImportedDataInfo.FieldSchema.Builder

newBuilder(ImportedDataInfo.FieldSchema prototype)

public static ImportedDataInfo.FieldSchema.Builder newBuilder(ImportedDataInfo.FieldSchema prototype)
Parameter
Name Description
prototype ImportedDataInfo.FieldSchema
Returns
Type Description
ImportedDataInfo.FieldSchema.Builder

parseDelimitedFrom(InputStream input)

public static ImportedDataInfo.FieldSchema parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ImportedDataInfo.FieldSchema
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo.FieldSchema parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportedDataInfo.FieldSchema
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ImportedDataInfo.FieldSchema parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ImportedDataInfo.FieldSchema
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo.FieldSchema parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportedDataInfo.FieldSchema
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ImportedDataInfo.FieldSchema parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ImportedDataInfo.FieldSchema
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo.FieldSchema parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportedDataInfo.FieldSchema
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ImportedDataInfo.FieldSchema parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ImportedDataInfo.FieldSchema
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo.FieldSchema parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportedDataInfo.FieldSchema
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ImportedDataInfo.FieldSchema parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ImportedDataInfo.FieldSchema
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo.FieldSchema parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportedDataInfo.FieldSchema
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ImportedDataInfo.FieldSchema parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ImportedDataInfo.FieldSchema
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo.FieldSchema parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportedDataInfo.FieldSchema
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ImportedDataInfo.FieldSchema> parser()
Returns
Type Description
Parser<FieldSchema>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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

getParserForType()

public Parser<ImportedDataInfo.FieldSchema> getParserForType()
Returns
Type Description
Parser<FieldSchema>
Overrides

getSchema()

public ImportedDataInfo.RecordSchema getSchema()

Present iff type == RECORD.

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

Returns
Type Description
ImportedDataInfo.RecordSchema

getSchemaOrBuilder()

public ImportedDataInfo.RecordSchemaOrBuilder getSchemaOrBuilder()

Present iff type == RECORD.

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

Returns
Type Description
ImportedDataInfo.RecordSchemaOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

hasSchema()

public boolean hasSchema()

Present iff type == RECORD.

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

Returns
Type Description
boolean

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ImportedDataInfo.FieldSchema.Builder newBuilderForType()
Returns
Type Description
ImportedDataInfo.FieldSchema.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ImportedDataInfo.FieldSchema.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ImportedDataInfo.FieldSchema.Builder
Overrides

toBuilder()

public ImportedDataInfo.FieldSchema.Builder toBuilder()
Returns
Type Description
ImportedDataInfo.FieldSchema.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException