Class PhysicalSchema (1.47.0)

public final class PhysicalSchema extends GeneratedMessageV3 implements PhysicalSchemaOrBuilder

Native schema used by a resource represented as an entry. Used by query engines for deserializing and parsing source data.

Protobuf type google.cloud.datacatalog.v1.PhysicalSchema

Static Fields

AVRO_FIELD_NUMBER

public static final int AVRO_FIELD_NUMBER
Field Value
TypeDescription
int

CSV_FIELD_NUMBER

public static final int CSV_FIELD_NUMBER
Field Value
TypeDescription
int

ORC_FIELD_NUMBER

public static final int ORC_FIELD_NUMBER
Field Value
TypeDescription
int

PARQUET_FIELD_NUMBER

public static final int PARQUET_FIELD_NUMBER
Field Value
TypeDescription
int

PROTOBUF_FIELD_NUMBER

public static final int PROTOBUF_FIELD_NUMBER
Field Value
TypeDescription
int

THRIFT_FIELD_NUMBER

public static final int THRIFT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PhysicalSchema getDefaultInstance()
Returns
TypeDescription
PhysicalSchema

getDescriptor()

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

newBuilder()

public static PhysicalSchema.Builder newBuilder()
Returns
TypeDescription
PhysicalSchema.Builder

newBuilder(PhysicalSchema prototype)

public static PhysicalSchema.Builder newBuilder(PhysicalSchema prototype)
Parameter
NameDescription
prototypePhysicalSchema
Returns
TypeDescription
PhysicalSchema.Builder

parseDelimitedFrom(InputStream input)

public static PhysicalSchema parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PhysicalSchema
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static PhysicalSchema parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PhysicalSchema
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static PhysicalSchema parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PhysicalSchema
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static PhysicalSchema parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PhysicalSchema
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static PhysicalSchema parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PhysicalSchema
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<PhysicalSchema> parser()
Returns
TypeDescription
Parser<PhysicalSchema>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAvro()

public PhysicalSchema.AvroSchema getAvro()

Schema in Avro JSON format.

.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema avro = 1;

Returns
TypeDescription
PhysicalSchema.AvroSchema

The avro.

getAvroOrBuilder()

public PhysicalSchema.AvroSchemaOrBuilder getAvroOrBuilder()

Schema in Avro JSON format.

.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema avro = 1;

Returns
TypeDescription
PhysicalSchema.AvroSchemaOrBuilder

getCsv()

public PhysicalSchema.CsvSchema getCsv()

Marks a CSV-encoded data source.

.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema csv = 6;

Returns
TypeDescription
PhysicalSchema.CsvSchema

The csv.

getCsvOrBuilder()

public PhysicalSchema.CsvSchemaOrBuilder getCsvOrBuilder()

Marks a CSV-encoded data source.

.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema csv = 6;

Returns
TypeDescription
PhysicalSchema.CsvSchemaOrBuilder

getDefaultInstanceForType()

public PhysicalSchema getDefaultInstanceForType()
Returns
TypeDescription
PhysicalSchema

getOrc()

public PhysicalSchema.OrcSchema getOrc()

Marks an ORC-encoded data source.

.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema orc = 5;

Returns
TypeDescription
PhysicalSchema.OrcSchema

The orc.

getOrcOrBuilder()

public PhysicalSchema.OrcSchemaOrBuilder getOrcOrBuilder()

Marks an ORC-encoded data source.

.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema orc = 5;

Returns
TypeDescription
PhysicalSchema.OrcSchemaOrBuilder

getParquet()

public PhysicalSchema.ParquetSchema getParquet()

Marks a Parquet-encoded data source.

.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parquet = 4;

Returns
TypeDescription
PhysicalSchema.ParquetSchema

The parquet.

getParquetOrBuilder()

public PhysicalSchema.ParquetSchemaOrBuilder getParquetOrBuilder()

Marks a Parquet-encoded data source.

.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parquet = 4;

Returns
TypeDescription
PhysicalSchema.ParquetSchemaOrBuilder

getParserForType()

public Parser<PhysicalSchema> getParserForType()
Returns
TypeDescription
Parser<PhysicalSchema>
Overrides

getProtobuf()

public PhysicalSchema.ProtobufSchema getProtobuf()

Schema in protocol buffer format.

.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema protobuf = 3;

Returns
TypeDescription
PhysicalSchema.ProtobufSchema

The protobuf.

getProtobufOrBuilder()

public PhysicalSchema.ProtobufSchemaOrBuilder getProtobufOrBuilder()

Schema in protocol buffer format.

.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema protobuf = 3;

Returns
TypeDescription
PhysicalSchema.ProtobufSchemaOrBuilder

getSchemaCase()

public PhysicalSchema.SchemaCase getSchemaCase()
Returns
TypeDescription
PhysicalSchema.SchemaCase

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getThrift()

public PhysicalSchema.ThriftSchema getThrift()

Schema in Thrift format.

.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema thrift = 2;

Returns
TypeDescription
PhysicalSchema.ThriftSchema

The thrift.

getThriftOrBuilder()

public PhysicalSchema.ThriftSchemaOrBuilder getThriftOrBuilder()

Schema in Thrift format.

.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema thrift = 2;

Returns
TypeDescription
PhysicalSchema.ThriftSchemaOrBuilder

hasAvro()

public boolean hasAvro()

Schema in Avro JSON format.

.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema avro = 1;

Returns
TypeDescription
boolean

Whether the avro field is set.

hasCsv()

public boolean hasCsv()

Marks a CSV-encoded data source.

.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema csv = 6;

Returns
TypeDescription
boolean

Whether the csv field is set.

hasOrc()

public boolean hasOrc()

Marks an ORC-encoded data source.

.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema orc = 5;

Returns
TypeDescription
boolean

Whether the orc field is set.

hasParquet()

public boolean hasParquet()

Marks a Parquet-encoded data source.

.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parquet = 4;

Returns
TypeDescription
boolean

Whether the parquet field is set.

hasProtobuf()

public boolean hasProtobuf()

Schema in protocol buffer format.

.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema protobuf = 3;

Returns
TypeDescription
boolean

Whether the protobuf field is set.

hasThrift()

public boolean hasThrift()

Schema in Thrift format.

.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema thrift = 2;

Returns
TypeDescription
boolean

Whether the thrift field is set.

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 PhysicalSchema.Builder newBuilderForType()
Returns
TypeDescription
PhysicalSchema.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public PhysicalSchema.Builder toBuilder()
Returns
TypeDescription
PhysicalSchema.Builder

writeTo(CodedOutputStream output)

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