Class PhysicalSchema (1.52.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
Type Description
int

CSV_FIELD_NUMBER

public static final int CSV_FIELD_NUMBER
Field Value
Type Description
int

ORC_FIELD_NUMBER

public static final int ORC_FIELD_NUMBER
Field Value
Type Description
int

PARQUET_FIELD_NUMBER

public static final int PARQUET_FIELD_NUMBER
Field Value
Type Description
int

PROTOBUF_FIELD_NUMBER

public static final int PROTOBUF_FIELD_NUMBER
Field Value
Type Description
int

THRIFT_FIELD_NUMBER

public static final int THRIFT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PhysicalSchema getDefaultInstance()
Returns
Type Description
PhysicalSchema

getDescriptor()

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

newBuilder()

public static PhysicalSchema.Builder newBuilder()
Returns
Type Description
PhysicalSchema.Builder

newBuilder(PhysicalSchema prototype)

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

parseDelimitedFrom(InputStream input)

public static PhysicalSchema parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PhysicalSchema
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static PhysicalSchema parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PhysicalSchema
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static PhysicalSchema parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PhysicalSchema
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static PhysicalSchema parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PhysicalSchema
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static PhysicalSchema parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PhysicalSchema
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<PhysicalSchema> parser()
Returns
Type Description
Parser<PhysicalSchema>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAvro()

public PhysicalSchema.AvroSchema getAvro()

Schema in Avro JSON format.

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

Returns
Type Description
PhysicalSchema.AvroSchema

The avro.

getAvroOrBuilder()

public PhysicalSchema.AvroSchemaOrBuilder getAvroOrBuilder()

Schema in Avro JSON format.

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

Returns
Type Description
PhysicalSchema.AvroSchemaOrBuilder

getCsv()

public PhysicalSchema.CsvSchema getCsv()

Marks a CSV-encoded data source.

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

Returns
Type Description
PhysicalSchema.CsvSchema

The csv.

getCsvOrBuilder()

public PhysicalSchema.CsvSchemaOrBuilder getCsvOrBuilder()

Marks a CSV-encoded data source.

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

Returns
Type Description
PhysicalSchema.CsvSchemaOrBuilder

getDefaultInstanceForType()

public PhysicalSchema getDefaultInstanceForType()
Returns
Type Description
PhysicalSchema

getOrc()

public PhysicalSchema.OrcSchema getOrc()

Marks an ORC-encoded data source.

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

Returns
Type Description
PhysicalSchema.OrcSchema

The orc.

getOrcOrBuilder()

public PhysicalSchema.OrcSchemaOrBuilder getOrcOrBuilder()

Marks an ORC-encoded data source.

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

Returns
Type Description
PhysicalSchema.OrcSchemaOrBuilder

getParquet()

public PhysicalSchema.ParquetSchema getParquet()

Marks a Parquet-encoded data source.

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

Returns
Type Description
PhysicalSchema.ParquetSchema

The parquet.

getParquetOrBuilder()

public PhysicalSchema.ParquetSchemaOrBuilder getParquetOrBuilder()

Marks a Parquet-encoded data source.

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

Returns
Type Description
PhysicalSchema.ParquetSchemaOrBuilder

getParserForType()

public Parser<PhysicalSchema> getParserForType()
Returns
Type Description
Parser<PhysicalSchema>
Overrides

getProtobuf()

public PhysicalSchema.ProtobufSchema getProtobuf()

Schema in protocol buffer format.

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

Returns
Type Description
PhysicalSchema.ProtobufSchema

The protobuf.

getProtobufOrBuilder()

public PhysicalSchema.ProtobufSchemaOrBuilder getProtobufOrBuilder()

Schema in protocol buffer format.

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

Returns
Type Description
PhysicalSchema.ProtobufSchemaOrBuilder

getSchemaCase()

public PhysicalSchema.SchemaCase getSchemaCase()
Returns
Type Description
PhysicalSchema.SchemaCase

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getThrift()

public PhysicalSchema.ThriftSchema getThrift()

Schema in Thrift format.

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

Returns
Type Description
PhysicalSchema.ThriftSchema

The thrift.

getThriftOrBuilder()

public PhysicalSchema.ThriftSchemaOrBuilder getThriftOrBuilder()

Schema in Thrift format.

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

Returns
Type Description
PhysicalSchema.ThriftSchemaOrBuilder

hasAvro()

public boolean hasAvro()

Schema in Avro JSON format.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the protobuf field is set.

hasThrift()

public boolean hasThrift()

Schema in Thrift format.

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

Returns
Type Description
boolean

Whether the thrift field is set.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public PhysicalSchema.Builder toBuilder()
Returns
Type Description
PhysicalSchema.Builder

writeTo(CodedOutputStream output)

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