Class PhysicalSchema.Builder (1.59.0)

public static final class PhysicalSchema.Builder extends GeneratedMessageV3.Builder<PhysicalSchema.Builder> 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 Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PhysicalSchema.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PhysicalSchema.Builder
Overrides

build()

public PhysicalSchema build()
Returns
Type Description
PhysicalSchema

buildPartial()

public PhysicalSchema buildPartial()
Returns
Type Description
PhysicalSchema

clear()

public PhysicalSchema.Builder clear()
Returns
Type Description
PhysicalSchema.Builder
Overrides

clearAvro()

public PhysicalSchema.Builder clearAvro()

Schema in Avro JSON format.

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

Returns
Type Description
PhysicalSchema.Builder

clearCsv()

public PhysicalSchema.Builder clearCsv()

Marks a CSV-encoded data source.

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

Returns
Type Description
PhysicalSchema.Builder

clearField(Descriptors.FieldDescriptor field)

public PhysicalSchema.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PhysicalSchema.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PhysicalSchema.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PhysicalSchema.Builder
Overrides

clearOrc()

public PhysicalSchema.Builder clearOrc()

Marks an ORC-encoded data source.

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

Returns
Type Description
PhysicalSchema.Builder

clearParquet()

public PhysicalSchema.Builder clearParquet()

Marks a Parquet-encoded data source.

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

Returns
Type Description
PhysicalSchema.Builder

clearProtobuf()

public PhysicalSchema.Builder clearProtobuf()

Schema in protocol buffer format.

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

Returns
Type Description
PhysicalSchema.Builder

clearSchema()

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

clearThrift()

public PhysicalSchema.Builder clearThrift()

Schema in Thrift format.

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

Returns
Type Description
PhysicalSchema.Builder

clone()

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

getAvroBuilder()

public PhysicalSchema.AvroSchema.Builder getAvroBuilder()

Schema in Avro JSON format.

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

Returns
Type Description
PhysicalSchema.AvroSchema.Builder

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.

getCsvBuilder()

public PhysicalSchema.CsvSchema.Builder getCsvBuilder()

Marks a CSV-encoded data source.

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

Returns
Type Description
PhysicalSchema.CsvSchema.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getOrcBuilder()

public PhysicalSchema.OrcSchema.Builder getOrcBuilder()

Marks an ORC-encoded data source.

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

Returns
Type Description
PhysicalSchema.OrcSchema.Builder

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.

getParquetBuilder()

public PhysicalSchema.ParquetSchema.Builder getParquetBuilder()

Marks a Parquet-encoded data source.

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

Returns
Type Description
PhysicalSchema.ParquetSchema.Builder

getParquetOrBuilder()

public PhysicalSchema.ParquetSchemaOrBuilder getParquetOrBuilder()

Marks a Parquet-encoded data source.

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

Returns
Type Description
PhysicalSchema.ParquetSchemaOrBuilder

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.

getProtobufBuilder()

public PhysicalSchema.ProtobufSchema.Builder getProtobufBuilder()

Schema in protocol buffer format.

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

Returns
Type Description
PhysicalSchema.ProtobufSchema.Builder

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

getThrift()

public PhysicalSchema.ThriftSchema getThrift()

Schema in Thrift format.

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

Returns
Type Description
PhysicalSchema.ThriftSchema

The thrift.

getThriftBuilder()

public PhysicalSchema.ThriftSchema.Builder getThriftBuilder()

Schema in Thrift format.

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

Returns
Type Description
PhysicalSchema.ThriftSchema.Builder

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAvro(PhysicalSchema.AvroSchema value)

public PhysicalSchema.Builder mergeAvro(PhysicalSchema.AvroSchema value)

Schema in Avro JSON format.

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

Parameter
Name Description
value PhysicalSchema.AvroSchema
Returns
Type Description
PhysicalSchema.Builder

mergeCsv(PhysicalSchema.CsvSchema value)

public PhysicalSchema.Builder mergeCsv(PhysicalSchema.CsvSchema value)

Marks a CSV-encoded data source.

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

Parameter
Name Description
value PhysicalSchema.CsvSchema
Returns
Type Description
PhysicalSchema.Builder

mergeFrom(PhysicalSchema other)

public PhysicalSchema.Builder mergeFrom(PhysicalSchema other)
Parameter
Name Description
other PhysicalSchema
Returns
Type Description
PhysicalSchema.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PhysicalSchema.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PhysicalSchema.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PhysicalSchema.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PhysicalSchema.Builder
Overrides

mergeOrc(PhysicalSchema.OrcSchema value)

public PhysicalSchema.Builder mergeOrc(PhysicalSchema.OrcSchema value)

Marks an ORC-encoded data source.

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

Parameter
Name Description
value PhysicalSchema.OrcSchema
Returns
Type Description
PhysicalSchema.Builder

mergeParquet(PhysicalSchema.ParquetSchema value)

public PhysicalSchema.Builder mergeParquet(PhysicalSchema.ParquetSchema value)

Marks a Parquet-encoded data source.

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

Parameter
Name Description
value PhysicalSchema.ParquetSchema
Returns
Type Description
PhysicalSchema.Builder

mergeProtobuf(PhysicalSchema.ProtobufSchema value)

public PhysicalSchema.Builder mergeProtobuf(PhysicalSchema.ProtobufSchema value)

Schema in protocol buffer format.

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

Parameter
Name Description
value PhysicalSchema.ProtobufSchema
Returns
Type Description
PhysicalSchema.Builder

mergeThrift(PhysicalSchema.ThriftSchema value)

public PhysicalSchema.Builder mergeThrift(PhysicalSchema.ThriftSchema value)

Schema in Thrift format.

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

Parameter
Name Description
value PhysicalSchema.ThriftSchema
Returns
Type Description
PhysicalSchema.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PhysicalSchema.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PhysicalSchema.Builder
Overrides

setAvro(PhysicalSchema.AvroSchema value)

public PhysicalSchema.Builder setAvro(PhysicalSchema.AvroSchema value)

Schema in Avro JSON format.

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

Parameter
Name Description
value PhysicalSchema.AvroSchema
Returns
Type Description
PhysicalSchema.Builder

setAvro(PhysicalSchema.AvroSchema.Builder builderForValue)

public PhysicalSchema.Builder setAvro(PhysicalSchema.AvroSchema.Builder builderForValue)

Schema in Avro JSON format.

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

Parameter
Name Description
builderForValue PhysicalSchema.AvroSchema.Builder
Returns
Type Description
PhysicalSchema.Builder

setCsv(PhysicalSchema.CsvSchema value)

public PhysicalSchema.Builder setCsv(PhysicalSchema.CsvSchema value)

Marks a CSV-encoded data source.

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

Parameter
Name Description
value PhysicalSchema.CsvSchema
Returns
Type Description
PhysicalSchema.Builder

setCsv(PhysicalSchema.CsvSchema.Builder builderForValue)

public PhysicalSchema.Builder setCsv(PhysicalSchema.CsvSchema.Builder builderForValue)

Marks a CSV-encoded data source.

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

Parameter
Name Description
builderForValue PhysicalSchema.CsvSchema.Builder
Returns
Type Description
PhysicalSchema.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PhysicalSchema.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PhysicalSchema.Builder
Overrides

setOrc(PhysicalSchema.OrcSchema value)

public PhysicalSchema.Builder setOrc(PhysicalSchema.OrcSchema value)

Marks an ORC-encoded data source.

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

Parameter
Name Description
value PhysicalSchema.OrcSchema
Returns
Type Description
PhysicalSchema.Builder

setOrc(PhysicalSchema.OrcSchema.Builder builderForValue)

public PhysicalSchema.Builder setOrc(PhysicalSchema.OrcSchema.Builder builderForValue)

Marks an ORC-encoded data source.

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

Parameter
Name Description
builderForValue PhysicalSchema.OrcSchema.Builder
Returns
Type Description
PhysicalSchema.Builder

setParquet(PhysicalSchema.ParquetSchema value)

public PhysicalSchema.Builder setParquet(PhysicalSchema.ParquetSchema value)

Marks a Parquet-encoded data source.

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

Parameter
Name Description
value PhysicalSchema.ParquetSchema
Returns
Type Description
PhysicalSchema.Builder

setParquet(PhysicalSchema.ParquetSchema.Builder builderForValue)

public PhysicalSchema.Builder setParquet(PhysicalSchema.ParquetSchema.Builder builderForValue)

Marks a Parquet-encoded data source.

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

Parameter
Name Description
builderForValue PhysicalSchema.ParquetSchema.Builder
Returns
Type Description
PhysicalSchema.Builder

setProtobuf(PhysicalSchema.ProtobufSchema value)

public PhysicalSchema.Builder setProtobuf(PhysicalSchema.ProtobufSchema value)

Schema in protocol buffer format.

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

Parameter
Name Description
value PhysicalSchema.ProtobufSchema
Returns
Type Description
PhysicalSchema.Builder

setProtobuf(PhysicalSchema.ProtobufSchema.Builder builderForValue)

public PhysicalSchema.Builder setProtobuf(PhysicalSchema.ProtobufSchema.Builder builderForValue)

Schema in protocol buffer format.

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

Parameter
Name Description
builderForValue PhysicalSchema.ProtobufSchema.Builder
Returns
Type Description
PhysicalSchema.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PhysicalSchema.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PhysicalSchema.Builder
Overrides

setThrift(PhysicalSchema.ThriftSchema value)

public PhysicalSchema.Builder setThrift(PhysicalSchema.ThriftSchema value)

Schema in Thrift format.

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

Parameter
Name Description
value PhysicalSchema.ThriftSchema
Returns
Type Description
PhysicalSchema.Builder

setThrift(PhysicalSchema.ThriftSchema.Builder builderForValue)

public PhysicalSchema.Builder setThrift(PhysicalSchema.ThriftSchema.Builder builderForValue)

Schema in Thrift format.

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

Parameter
Name Description
builderForValue PhysicalSchema.ThriftSchema.Builder
Returns
Type Description
PhysicalSchema.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final PhysicalSchema.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PhysicalSchema.Builder
Overrides