Class ImportedDataInfo.FieldSchema (2.39.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
TypeDescription
int

FIELD_NAME_FIELD_NUMBER

public static final int FIELD_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

IS_REPEATED_FIELD_NUMBER

public static final int IS_REPEATED_FIELD_NUMBER
Field Value
TypeDescription
int

SCHEMA_FIELD_NUMBER

public static final int SCHEMA_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ImportedDataInfo.FieldSchema getDefaultInstance()
Returns
TypeDescription
ImportedDataInfo.FieldSchema

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ImportedDataInfo.FieldSchema.Builder newBuilder()
Returns
TypeDescription
ImportedDataInfo.FieldSchema.Builder

newBuilder(ImportedDataInfo.FieldSchema prototype)

public static ImportedDataInfo.FieldSchema.Builder newBuilder(ImportedDataInfo.FieldSchema prototype)
Parameter
NameDescription
prototypeImportedDataInfo.FieldSchema
Returns
TypeDescription
ImportedDataInfo.FieldSchema.Builder

parseDelimitedFrom(InputStream input)

public static ImportedDataInfo.FieldSchema parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ImportedDataInfo.FieldSchema
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo.FieldSchema parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportedDataInfo.FieldSchema
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ImportedDataInfo.FieldSchema parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ImportedDataInfo.FieldSchema
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo.FieldSchema parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportedDataInfo.FieldSchema
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ImportedDataInfo.FieldSchema parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ImportedDataInfo.FieldSchema
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo.FieldSchema parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportedDataInfo.FieldSchema
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ImportedDataInfo.FieldSchema parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ImportedDataInfo.FieldSchema
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo.FieldSchema parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportedDataInfo.FieldSchema
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ImportedDataInfo.FieldSchema parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ImportedDataInfo.FieldSchema
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo.FieldSchema parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportedDataInfo.FieldSchema
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ImportedDataInfo.FieldSchema parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ImportedDataInfo.FieldSchema
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo.FieldSchema parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportedDataInfo.FieldSchema
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

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

getParserForType()

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

getSchema()

public ImportedDataInfo.RecordSchema getSchema()

Present iff type == RECORD.

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

Returns
TypeDescription
ImportedDataInfo.RecordSchema

getSchemaOrBuilder()

public ImportedDataInfo.RecordSchemaOrBuilder getSchemaOrBuilder()

Present iff type == RECORD.

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

Returns
TypeDescription
ImportedDataInfo.RecordSchemaOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasSchema()

public boolean hasSchema()

Present iff type == RECORD.

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

Returns
TypeDescription
boolean

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ImportedDataInfo.FieldSchema.Builder newBuilderForType()
Returns
TypeDescription
ImportedDataInfo.FieldSchema.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ImportedDataInfo.FieldSchema.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ImportedDataInfo.FieldSchema.Builder
Overrides

toBuilder()

public ImportedDataInfo.FieldSchema.Builder toBuilder()
Returns
TypeDescription
ImportedDataInfo.FieldSchema.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException