Class StorageFormat (1.35.0)

public final class StorageFormat extends GeneratedMessageV3 implements StorageFormatOrBuilder

Describes the format of the data within its storage location.

Protobuf type google.cloud.dataplex.v1.StorageFormat

Static Fields

COMPRESSION_FORMAT_FIELD_NUMBER

public static final int COMPRESSION_FORMAT_FIELD_NUMBER
Field Value
TypeDescription
int

CSV_FIELD_NUMBER

public static final int CSV_FIELD_NUMBER
Field Value
TypeDescription
int

FORMAT_FIELD_NUMBER

public static final int FORMAT_FIELD_NUMBER
Field Value
TypeDescription
int

ICEBERG_FIELD_NUMBER

public static final int ICEBERG_FIELD_NUMBER
Field Value
TypeDescription
int

JSON_FIELD_NUMBER

public static final int JSON_FIELD_NUMBER
Field Value
TypeDescription
int

MIME_TYPE_FIELD_NUMBER

public static final int MIME_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static StorageFormat getDefaultInstance()
Returns
TypeDescription
StorageFormat

getDescriptor()

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

newBuilder()

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

newBuilder(StorageFormat prototype)

public static StorageFormat.Builder newBuilder(StorageFormat prototype)
Parameter
NameDescription
prototypeStorageFormat
Returns
TypeDescription
StorageFormat.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.

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

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.

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.

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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