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
public static final int COMPRESSION_FORMAT_FIELD_NUMBER
Field Value
public static final int CSV_FIELD_NUMBER
Field Value
public static final int FORMAT_FIELD_NUMBER
Field Value
public static final int ICEBERG_FIELD_NUMBER
Field Value
public static final int JSON_FIELD_NUMBER
Field Value
public static final int MIME_TYPE_FIELD_NUMBER
Field Value
Static Methods
public static StorageFormat getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static StorageFormat.Builder newBuilder()
Returns
public static StorageFormat.Builder newBuilder(StorageFormat prototype)
Parameter
Returns
public static StorageFormat parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static StorageFormat parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static StorageFormat parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static StorageFormat parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static StorageFormat parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static StorageFormat parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static StorageFormat parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static StorageFormat parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static StorageFormat parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static StorageFormat parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static StorageFormat parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static StorageFormat parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<StorageFormat> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
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
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
Type | Description |
int | The enum numeric value on the wire for compressionFormat.
|
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
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
public StorageFormat getDefaultInstanceForType()
Returns
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
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
Type | Description |
int | The enum numeric value on the wire for format.
|
public StorageFormat.IcebergOptions getIceberg()
Optional. Additional information about iceberg tables.
.google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL];
Returns
public StorageFormat.IcebergOptionsOrBuilder getIcebergOrBuilder()
Optional. Additional information about iceberg tables.
.google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL];
Returns
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
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
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
Type | Description |
String | The mimeType.
|
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
public StorageFormat.OptionsCase getOptionsCase()
Returns
public Parser<StorageFormat> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
Optional. Additional information about CSV formatted data.
.google.cloud.dataplex.v1.StorageFormat.CsvOptions csv = 10 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
boolean | Whether the csv field is set.
|
public boolean hasIceberg()
Optional. Additional information about iceberg tables.
.google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
boolean | Whether the iceberg field is set.
|
Optional. Additional information about CSV formatted data.
.google.cloud.dataplex.v1.StorageFormat.JsonOptions json = 11 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
boolean | Whether the json field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public StorageFormat.Builder newBuilderForType()
Returns
protected StorageFormat.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public StorageFormat.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions