Class StorageFormat.Builder (1.21.0)

public static final class StorageFormat.Builder extends GeneratedMessageV3.Builder<StorageFormat.Builder> implements StorageFormatOrBuilder

Describes the format of the data within its storage location.

Protobuf type google.cloud.dataplex.v1.StorageFormat

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StorageFormat build()
Returns
TypeDescription
StorageFormat

buildPartial()

public StorageFormat buildPartial()
Returns
TypeDescription
StorageFormat

clear()

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

clearCompressionFormat()

public StorageFormat.Builder clearCompressionFormat()

Optional. The compression type associated with the stored data. If unspecified, the data is uncompressed.

.google.cloud.dataplex.v1.StorageFormat.CompressionFormat compression_format = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StorageFormat.Builder

This builder for chaining.

clearCsv()

public StorageFormat.Builder clearCsv()

Optional. Additional information about CSV formatted data.

.google.cloud.dataplex.v1.StorageFormat.CsvOptions csv = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StorageFormat.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFormat()

public StorageFormat.Builder clearFormat()

Output only. The data format associated with the stored data, which represents content type values. The value is inferred from mime type.

.google.cloud.dataplex.v1.StorageFormat.Format format = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
StorageFormat.Builder

This builder for chaining.

clearIceberg()

public StorageFormat.Builder clearIceberg()

Optional. Additional information about iceberg tables.

.google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StorageFormat.Builder

clearJson()

public StorageFormat.Builder clearJson()

Optional. Additional information about CSV formatted data.

.google.cloud.dataplex.v1.StorageFormat.JsonOptions json = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StorageFormat.Builder

clearMimeType()

public StorageFormat.Builder clearMimeType()

Required. The mime type descriptor for the data. Must match the pattern {type}/{subtype}. Supported values:

  • application/x-parquet
  • application/x-avro
  • application/x-orc
  • application/x-tfrecord
  • application/x-parquet+iceberg
  • application/x-avro+iceberg
  • application/x-orc+iceberg
  • application/json
  • application/{subtypes}
  • text/csv
  • text/<subtypes>
  • image/{image subtype}
  • video/{video subtype}
  • audio/{audio subtype}

string mime_type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
StorageFormat.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOptions()

public StorageFormat.Builder clearOptions()
Returns
TypeDescription
StorageFormat.Builder

clone()

public StorageFormat.Builder clone()
Returns
TypeDescription
StorageFormat.Builder
Overrides

getCompressionFormat()

public StorageFormat.CompressionFormat getCompressionFormat()

Optional. The compression type associated with the stored data. If unspecified, the data is uncompressed.

.google.cloud.dataplex.v1.StorageFormat.CompressionFormat compression_format = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StorageFormat.CompressionFormat

The compressionFormat.

getCompressionFormatValue()

public int getCompressionFormatValue()

Optional. The compression type associated with the stored data. If unspecified, the data is uncompressed.

.google.cloud.dataplex.v1.StorageFormat.CompressionFormat compression_format = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The enum numeric value on the wire for compressionFormat.

getCsv()

public StorageFormat.CsvOptions getCsv()

Optional. Additional information about CSV formatted data.

.google.cloud.dataplex.v1.StorageFormat.CsvOptions csv = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StorageFormat.CsvOptions

The csv.

getCsvBuilder()

public StorageFormat.CsvOptions.Builder getCsvBuilder()

Optional. Additional information about CSV formatted data.

.google.cloud.dataplex.v1.StorageFormat.CsvOptions csv = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StorageFormat.CsvOptions.Builder

getCsvOrBuilder()

public StorageFormat.CsvOptionsOrBuilder getCsvOrBuilder()

Optional. Additional information about CSV formatted data.

.google.cloud.dataplex.v1.StorageFormat.CsvOptions csv = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StorageFormat.CsvOptionsOrBuilder

getDefaultInstanceForType()

public StorageFormat getDefaultInstanceForType()
Returns
TypeDescription
StorageFormat

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFormat()

public StorageFormat.Format getFormat()

Output only. The data format associated with the stored data, which represents content type values. The value is inferred from mime type.

.google.cloud.dataplex.v1.StorageFormat.Format format = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
StorageFormat.Format

The format.

getFormatValue()

public int getFormatValue()

Output only. The data format associated with the stored data, which represents content type values. The value is inferred from mime type.

.google.cloud.dataplex.v1.StorageFormat.Format format = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for format.

getIceberg()

public StorageFormat.IcebergOptions getIceberg()

Optional. Additional information about iceberg tables.

.google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StorageFormat.IcebergOptions

The iceberg.

getIcebergBuilder()

public StorageFormat.IcebergOptions.Builder getIcebergBuilder()

Optional. Additional information about iceberg tables.

.google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StorageFormat.IcebergOptions.Builder

getIcebergOrBuilder()

public StorageFormat.IcebergOptionsOrBuilder getIcebergOrBuilder()

Optional. Additional information about iceberg tables.

.google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StorageFormat.IcebergOptionsOrBuilder

getJson()

public StorageFormat.JsonOptions getJson()

Optional. Additional information about CSV formatted data.

.google.cloud.dataplex.v1.StorageFormat.JsonOptions json = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StorageFormat.JsonOptions

The json.

getJsonBuilder()

public StorageFormat.JsonOptions.Builder getJsonBuilder()

Optional. Additional information about CSV formatted data.

.google.cloud.dataplex.v1.StorageFormat.JsonOptions json = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StorageFormat.JsonOptions.Builder

getJsonOrBuilder()

public StorageFormat.JsonOptionsOrBuilder getJsonOrBuilder()

Optional. Additional information about CSV formatted data.

.google.cloud.dataplex.v1.StorageFormat.JsonOptions json = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StorageFormat.JsonOptionsOrBuilder

getMimeType()

public String getMimeType()

Required. The mime type descriptor for the data. Must match the pattern {type}/{subtype}. Supported values:

  • application/x-parquet
  • application/x-avro
  • application/x-orc
  • application/x-tfrecord
  • application/x-parquet+iceberg
  • application/x-avro+iceberg
  • application/x-orc+iceberg
  • application/json
  • application/{subtypes}
  • text/csv
  • text/<subtypes>
  • image/{image subtype}
  • video/{video subtype}
  • audio/{audio subtype}

string mime_type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The mimeType.

getMimeTypeBytes()

public ByteString getMimeTypeBytes()

Required. The mime type descriptor for the data. Must match the pattern {type}/{subtype}. Supported values:

  • application/x-parquet
  • application/x-avro
  • application/x-orc
  • application/x-tfrecord
  • application/x-parquet+iceberg
  • application/x-avro+iceberg
  • application/x-orc+iceberg
  • application/json
  • application/{subtypes}
  • text/csv
  • text/<subtypes>
  • image/{image subtype}
  • video/{video subtype}
  • audio/{audio subtype}

string mime_type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for mimeType.

getOptionsCase()

public StorageFormat.OptionsCase getOptionsCase()
Returns
TypeDescription
StorageFormat.OptionsCase

hasCsv()

public boolean hasCsv()

Optional. Additional information about CSV formatted data.

.google.cloud.dataplex.v1.StorageFormat.CsvOptions csv = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the csv field is set.

hasIceberg()

public boolean hasIceberg()

Optional. Additional information about iceberg tables.

.google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the iceberg field is set.

hasJson()

public boolean hasJson()

Optional. Additional information about CSV formatted data.

.google.cloud.dataplex.v1.StorageFormat.JsonOptions json = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the json field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCsv(StorageFormat.CsvOptions value)

public StorageFormat.Builder mergeCsv(StorageFormat.CsvOptions value)

Optional. Additional information about CSV formatted data.

.google.cloud.dataplex.v1.StorageFormat.CsvOptions csv = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueStorageFormat.CsvOptions
Returns
TypeDescription
StorageFormat.Builder

mergeFrom(StorageFormat other)

public StorageFormat.Builder mergeFrom(StorageFormat other)
Parameter
NameDescription
otherStorageFormat
Returns
TypeDescription
StorageFormat.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public StorageFormat.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
StorageFormat.Builder
Overrides

mergeIceberg(StorageFormat.IcebergOptions value)

public StorageFormat.Builder mergeIceberg(StorageFormat.IcebergOptions value)

Optional. Additional information about iceberg tables.

.google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueStorageFormat.IcebergOptions
Returns
TypeDescription
StorageFormat.Builder

mergeJson(StorageFormat.JsonOptions value)

public StorageFormat.Builder mergeJson(StorageFormat.JsonOptions value)

Optional. Additional information about CSV formatted data.

.google.cloud.dataplex.v1.StorageFormat.JsonOptions json = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueStorageFormat.JsonOptions
Returns
TypeDescription
StorageFormat.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StorageFormat.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StorageFormat.Builder
Overrides

setCompressionFormat(StorageFormat.CompressionFormat value)

public StorageFormat.Builder setCompressionFormat(StorageFormat.CompressionFormat value)

Optional. The compression type associated with the stored data. If unspecified, the data is uncompressed.

.google.cloud.dataplex.v1.StorageFormat.CompressionFormat compression_format = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueStorageFormat.CompressionFormat

The compressionFormat to set.

Returns
TypeDescription
StorageFormat.Builder

This builder for chaining.

setCompressionFormatValue(int value)

public StorageFormat.Builder setCompressionFormatValue(int value)

Optional. The compression type associated with the stored data. If unspecified, the data is uncompressed.

.google.cloud.dataplex.v1.StorageFormat.CompressionFormat compression_format = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueint

The enum numeric value on the wire for compressionFormat to set.

Returns
TypeDescription
StorageFormat.Builder

This builder for chaining.

setCsv(StorageFormat.CsvOptions value)

public StorageFormat.Builder setCsv(StorageFormat.CsvOptions value)

Optional. Additional information about CSV formatted data.

.google.cloud.dataplex.v1.StorageFormat.CsvOptions csv = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueStorageFormat.CsvOptions
Returns
TypeDescription
StorageFormat.Builder

setCsv(StorageFormat.CsvOptions.Builder builderForValue)

public StorageFormat.Builder setCsv(StorageFormat.CsvOptions.Builder builderForValue)

Optional. Additional information about CSV formatted data.

.google.cloud.dataplex.v1.StorageFormat.CsvOptions csv = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueStorageFormat.CsvOptions.Builder
Returns
TypeDescription
StorageFormat.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFormat(StorageFormat.Format value)

public StorageFormat.Builder setFormat(StorageFormat.Format value)

Output only. The data format associated with the stored data, which represents content type values. The value is inferred from mime type.

.google.cloud.dataplex.v1.StorageFormat.Format format = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueStorageFormat.Format

The format to set.

Returns
TypeDescription
StorageFormat.Builder

This builder for chaining.

setFormatValue(int value)

public StorageFormat.Builder setFormatValue(int value)

Output only. The data format associated with the stored data, which represents content type values. The value is inferred from mime type.

.google.cloud.dataplex.v1.StorageFormat.Format format = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for format to set.

Returns
TypeDescription
StorageFormat.Builder

This builder for chaining.

setIceberg(StorageFormat.IcebergOptions value)

public StorageFormat.Builder setIceberg(StorageFormat.IcebergOptions value)

Optional. Additional information about iceberg tables.

.google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueStorageFormat.IcebergOptions
Returns
TypeDescription
StorageFormat.Builder

setIceberg(StorageFormat.IcebergOptions.Builder builderForValue)

public StorageFormat.Builder setIceberg(StorageFormat.IcebergOptions.Builder builderForValue)

Optional. Additional information about iceberg tables.

.google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueStorageFormat.IcebergOptions.Builder
Returns
TypeDescription
StorageFormat.Builder

setJson(StorageFormat.JsonOptions value)

public StorageFormat.Builder setJson(StorageFormat.JsonOptions value)

Optional. Additional information about CSV formatted data.

.google.cloud.dataplex.v1.StorageFormat.JsonOptions json = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueStorageFormat.JsonOptions
Returns
TypeDescription
StorageFormat.Builder

setJson(StorageFormat.JsonOptions.Builder builderForValue)

public StorageFormat.Builder setJson(StorageFormat.JsonOptions.Builder builderForValue)

Optional. Additional information about CSV formatted data.

.google.cloud.dataplex.v1.StorageFormat.JsonOptions json = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueStorageFormat.JsonOptions.Builder
Returns
TypeDescription
StorageFormat.Builder

setMimeType(String value)

public StorageFormat.Builder setMimeType(String value)

Required. The mime type descriptor for the data. Must match the pattern {type}/{subtype}. Supported values:

  • application/x-parquet
  • application/x-avro
  • application/x-orc
  • application/x-tfrecord
  • application/x-parquet+iceberg
  • application/x-avro+iceberg
  • application/x-orc+iceberg
  • application/json
  • application/{subtypes}
  • text/csv
  • text/<subtypes>
  • image/{image subtype}
  • video/{video subtype}
  • audio/{audio subtype}

string mime_type = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The mimeType to set.

Returns
TypeDescription
StorageFormat.Builder

This builder for chaining.

setMimeTypeBytes(ByteString value)

public StorageFormat.Builder setMimeTypeBytes(ByteString value)

Required. The mime type descriptor for the data. Must match the pattern {type}/{subtype}. Supported values:

  • application/x-parquet
  • application/x-avro
  • application/x-orc
  • application/x-tfrecord
  • application/x-parquet+iceberg
  • application/x-avro+iceberg
  • application/x-orc+iceberg
  • application/json
  • application/{subtypes}
  • text/csv
  • text/<subtypes>
  • image/{image subtype}
  • video/{video subtype}
  • audio/{audio subtype}

string mime_type = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for mimeType to set.

Returns
TypeDescription
StorageFormat.Builder

This builder for chaining.

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

public StorageFormat.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
StorageFormat.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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