Class PhysicalSchema.Builder (1.45.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PhysicalSchema.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PhysicalSchema.Builder
Overrides

build()

public PhysicalSchema build()
Returns
TypeDescription
PhysicalSchema

buildPartial()

public PhysicalSchema buildPartial()
Returns
TypeDescription
PhysicalSchema

clear()

public PhysicalSchema.Builder clear()
Returns
TypeDescription
PhysicalSchema.Builder
Overrides

clearAvro()

public PhysicalSchema.Builder clearAvro()

Schema in Avro JSON format.

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

Returns
TypeDescription
PhysicalSchema.Builder

clearCsv()

public PhysicalSchema.Builder clearCsv()

Marks a CSV-encoded data source.

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

Returns
TypeDescription
PhysicalSchema.Builder

clearField(Descriptors.FieldDescriptor field)

public PhysicalSchema.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PhysicalSchema.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PhysicalSchema.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PhysicalSchema.Builder
Overrides

clearOrc()

public PhysicalSchema.Builder clearOrc()

Marks an ORC-encoded data source.

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

Returns
TypeDescription
PhysicalSchema.Builder

clearParquet()

public PhysicalSchema.Builder clearParquet()

Marks a Parquet-encoded data source.

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

Returns
TypeDescription
PhysicalSchema.Builder

clearProtobuf()

public PhysicalSchema.Builder clearProtobuf()

Schema in protocol buffer format.

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

Returns
TypeDescription
PhysicalSchema.Builder

clearSchema()

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

clearThrift()

public PhysicalSchema.Builder clearThrift()

Schema in Thrift format.

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

Returns
TypeDescription
PhysicalSchema.Builder

clone()

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

getAvroBuilder()

public PhysicalSchema.AvroSchema.Builder getAvroBuilder()

Schema in Avro JSON format.

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

Returns
TypeDescription
PhysicalSchema.AvroSchema.Builder

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.

getCsvBuilder()

public PhysicalSchema.CsvSchema.Builder getCsvBuilder()

Marks a CSV-encoded data source.

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

Returns
TypeDescription
PhysicalSchema.CsvSchema.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

getOrcBuilder()

public PhysicalSchema.OrcSchema.Builder getOrcBuilder()

Marks an ORC-encoded data source.

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

Returns
TypeDescription
PhysicalSchema.OrcSchema.Builder

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.

getParquetBuilder()

public PhysicalSchema.ParquetSchema.Builder getParquetBuilder()

Marks a Parquet-encoded data source.

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

Returns
TypeDescription
PhysicalSchema.ParquetSchema.Builder

getParquetOrBuilder()

public PhysicalSchema.ParquetSchemaOrBuilder getParquetOrBuilder()

Marks a Parquet-encoded data source.

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

Returns
TypeDescription
PhysicalSchema.ParquetSchemaOrBuilder

getProtobuf()

public PhysicalSchema.ProtobufSchema getProtobuf()

Schema in protocol buffer format.

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

Returns
TypeDescription
PhysicalSchema.ProtobufSchema

The protobuf.

getProtobufBuilder()

public PhysicalSchema.ProtobufSchema.Builder getProtobufBuilder()

Schema in protocol buffer format.

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

Returns
TypeDescription
PhysicalSchema.ProtobufSchema.Builder

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

getThrift()

public PhysicalSchema.ThriftSchema getThrift()

Schema in Thrift format.

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

Returns
TypeDescription
PhysicalSchema.ThriftSchema

The thrift.

getThriftBuilder()

public PhysicalSchema.ThriftSchema.Builder getThriftBuilder()

Schema in Thrift format.

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

Returns
TypeDescription
PhysicalSchema.ThriftSchema.Builder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valuePhysicalSchema.AvroSchema
Returns
TypeDescription
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
NameDescription
valuePhysicalSchema.CsvSchema
Returns
TypeDescription
PhysicalSchema.Builder

mergeFrom(PhysicalSchema other)

public PhysicalSchema.Builder mergeFrom(PhysicalSchema other)
Parameter
NameDescription
otherPhysicalSchema
Returns
TypeDescription
PhysicalSchema.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PhysicalSchema.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PhysicalSchema.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PhysicalSchema.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valuePhysicalSchema.OrcSchema
Returns
TypeDescription
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
NameDescription
valuePhysicalSchema.ParquetSchema
Returns
TypeDescription
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
NameDescription
valuePhysicalSchema.ProtobufSchema
Returns
TypeDescription
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
NameDescription
valuePhysicalSchema.ThriftSchema
Returns
TypeDescription
PhysicalSchema.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PhysicalSchema.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuePhysicalSchema.AvroSchema
Returns
TypeDescription
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
NameDescription
builderForValuePhysicalSchema.AvroSchema.Builder
Returns
TypeDescription
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
NameDescription
valuePhysicalSchema.CsvSchema
Returns
TypeDescription
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
NameDescription
builderForValuePhysicalSchema.CsvSchema.Builder
Returns
TypeDescription
PhysicalSchema.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PhysicalSchema.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuePhysicalSchema.OrcSchema
Returns
TypeDescription
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
NameDescription
builderForValuePhysicalSchema.OrcSchema.Builder
Returns
TypeDescription
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
NameDescription
valuePhysicalSchema.ParquetSchema
Returns
TypeDescription
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
NameDescription
builderForValuePhysicalSchema.ParquetSchema.Builder
Returns
TypeDescription
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
NameDescription
valuePhysicalSchema.ProtobufSchema
Returns
TypeDescription
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
NameDescription
builderForValuePhysicalSchema.ProtobufSchema.Builder
Returns
TypeDescription
PhysicalSchema.Builder

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

public PhysicalSchema.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valuePhysicalSchema.ThriftSchema
Returns
TypeDescription
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
NameDescription
builderForValuePhysicalSchema.ThriftSchema.Builder
Returns
TypeDescription
PhysicalSchema.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final PhysicalSchema.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PhysicalSchema.Builder
Overrides