
com.google.cloud.dataplex.v1.StorageFormat Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-dataplex-v1 Show documentation
Show all versions of proto-google-cloud-dataplex-v1 Show documentation
Proto library for google-cloud-dataplex
/*
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/dataplex/v1/metadata.proto
package com.google.cloud.dataplex.v1;
/**
*
*
*
* Describes the format of the data within its storage location.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.StorageFormat}
*/
public final class StorageFormat extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.StorageFormat)
StorageFormatOrBuilder {
private static final long serialVersionUID = 0L;
// Use StorageFormat.newBuilder() to construct.
private StorageFormat(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StorageFormat() {
format_ = 0;
compressionFormat_ = 0;
mimeType_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new StorageFormat();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.MetadataProto
.internal_static_google_cloud_dataplex_v1_StorageFormat_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.MetadataProto
.internal_static_google_cloud_dataplex_v1_StorageFormat_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.StorageFormat.class,
com.google.cloud.dataplex.v1.StorageFormat.Builder.class);
}
/**
*
*
*
* The specific file format of the data.
*
*
* Protobuf enum {@code google.cloud.dataplex.v1.StorageFormat.Format}
*/
public enum Format implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* Format unspecified.
*
*
* FORMAT_UNSPECIFIED = 0;
*/
FORMAT_UNSPECIFIED(0),
/**
*
*
*
* Parquet-formatted structured data.
*
*
* PARQUET = 1;
*/
PARQUET(1),
/**
*
*
*
* Avro-formatted structured data.
*
*
* AVRO = 2;
*/
AVRO(2),
/**
*
*
*
* Orc-formatted structured data.
*
*
* ORC = 3;
*/
ORC(3),
/**
*
*
*
* Csv-formatted semi-structured data.
*
*
* CSV = 100;
*/
CSV(100),
/**
*
*
*
* Json-formatted semi-structured data.
*
*
* JSON = 101;
*/
JSON(101),
/**
*
*
*
* Image data formats (such as jpg and png).
*
*
* IMAGE = 200;
*/
IMAGE(200),
/**
*
*
*
* Audio data formats (such as mp3, and wav).
*
*
* AUDIO = 201;
*/
AUDIO(201),
/**
*
*
*
* Video data formats (such as mp4 and mpg).
*
*
* VIDEO = 202;
*/
VIDEO(202),
/**
*
*
*
* Textual data formats (such as txt and xml).
*
*
* TEXT = 203;
*/
TEXT(203),
/**
*
*
*
* TensorFlow record format.
*
*
* TFRECORD = 204;
*/
TFRECORD(204),
/**
*
*
*
* Data that doesn't match a specific format.
*
*
* OTHER = 1000;
*/
OTHER(1000),
/**
*
*
*
* Data of an unknown format.
*
*
* UNKNOWN = 1001;
*/
UNKNOWN(1001),
UNRECOGNIZED(-1),
;
/**
*
*
*
* Format unspecified.
*
*
* FORMAT_UNSPECIFIED = 0;
*/
public static final int FORMAT_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* Parquet-formatted structured data.
*
*
* PARQUET = 1;
*/
public static final int PARQUET_VALUE = 1;
/**
*
*
*
* Avro-formatted structured data.
*
*
* AVRO = 2;
*/
public static final int AVRO_VALUE = 2;
/**
*
*
*
* Orc-formatted structured data.
*
*
* ORC = 3;
*/
public static final int ORC_VALUE = 3;
/**
*
*
*
* Csv-formatted semi-structured data.
*
*
* CSV = 100;
*/
public static final int CSV_VALUE = 100;
/**
*
*
*
* Json-formatted semi-structured data.
*
*
* JSON = 101;
*/
public static final int JSON_VALUE = 101;
/**
*
*
*
* Image data formats (such as jpg and png).
*
*
* IMAGE = 200;
*/
public static final int IMAGE_VALUE = 200;
/**
*
*
*
* Audio data formats (such as mp3, and wav).
*
*
* AUDIO = 201;
*/
public static final int AUDIO_VALUE = 201;
/**
*
*
*
* Video data formats (such as mp4 and mpg).
*
*
* VIDEO = 202;
*/
public static final int VIDEO_VALUE = 202;
/**
*
*
*
* Textual data formats (such as txt and xml).
*
*
* TEXT = 203;
*/
public static final int TEXT_VALUE = 203;
/**
*
*
*
* TensorFlow record format.
*
*
* TFRECORD = 204;
*/
public static final int TFRECORD_VALUE = 204;
/**
*
*
*
* Data that doesn't match a specific format.
*
*
* OTHER = 1000;
*/
public static final int OTHER_VALUE = 1000;
/**
*
*
*
* Data of an unknown format.
*
*
* UNKNOWN = 1001;
*/
public static final int UNKNOWN_VALUE = 1001;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Format valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Format forNumber(int value) {
switch (value) {
case 0:
return FORMAT_UNSPECIFIED;
case 1:
return PARQUET;
case 2:
return AVRO;
case 3:
return ORC;
case 100:
return CSV;
case 101:
return JSON;
case 200:
return IMAGE;
case 201:
return AUDIO;
case 202:
return VIDEO;
case 203:
return TEXT;
case 204:
return TFRECORD;
case 1000:
return OTHER;
case 1001:
return UNKNOWN;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Format findValueByNumber(int number) {
return Format.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.cloud.dataplex.v1.StorageFormat.getDescriptor().getEnumTypes().get(0);
}
private static final Format[] VALUES = values();
public static Format valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Format(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.StorageFormat.Format)
}
/**
*
*
*
* The specific compressed file format of the data.
*
*
* Protobuf enum {@code google.cloud.dataplex.v1.StorageFormat.CompressionFormat}
*/
public enum CompressionFormat implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* CompressionFormat unspecified. Implies uncompressed data.
*
*
* COMPRESSION_FORMAT_UNSPECIFIED = 0;
*/
COMPRESSION_FORMAT_UNSPECIFIED(0),
/**
*
*
*
* GZip compressed set of files.
*
*
* GZIP = 2;
*/
GZIP(2),
/**
*
*
*
* BZip2 compressed set of files.
*
*
* BZIP2 = 3;
*/
BZIP2(3),
UNRECOGNIZED(-1),
;
/**
*
*
*
* CompressionFormat unspecified. Implies uncompressed data.
*
*
* COMPRESSION_FORMAT_UNSPECIFIED = 0;
*/
public static final int COMPRESSION_FORMAT_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* GZip compressed set of files.
*
*
* GZIP = 2;
*/
public static final int GZIP_VALUE = 2;
/**
*
*
*
* BZip2 compressed set of files.
*
*
* BZIP2 = 3;
*/
public static final int BZIP2_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static CompressionFormat valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static CompressionFormat forNumber(int value) {
switch (value) {
case 0:
return COMPRESSION_FORMAT_UNSPECIFIED;
case 2:
return GZIP;
case 3:
return BZIP2;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public CompressionFormat findValueByNumber(int number) {
return CompressionFormat.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.cloud.dataplex.v1.StorageFormat.getDescriptor().getEnumTypes().get(1);
}
private static final CompressionFormat[] VALUES = values();
public static CompressionFormat valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private CompressionFormat(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.StorageFormat.CompressionFormat)
}
public interface CsvOptionsOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.StorageFormat.CsvOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Optional. The character encoding of the data. Accepts "US-ASCII",
* "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified.
*
*
* string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The encoding.
*/
java.lang.String getEncoding();
/**
*
*
*
* Optional. The character encoding of the data. Accepts "US-ASCII",
* "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified.
*
*
* string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for encoding.
*/
com.google.protobuf.ByteString getEncodingBytes();
/**
*
*
*
* Optional. The number of rows to interpret as header rows that should be
* skipped when reading data rows. Defaults to 0.
*
*
* int32 header_rows = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The headerRows.
*/
int getHeaderRows();
/**
*
*
*
* Optional. The delimiter used to separate values. Defaults to ','.
*
*
* string delimiter = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The delimiter.
*/
java.lang.String getDelimiter();
/**
*
*
*
* Optional. The delimiter used to separate values. Defaults to ','.
*
*
* string delimiter = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for delimiter.
*/
com.google.protobuf.ByteString getDelimiterBytes();
/**
*
*
*
* Optional. The character used to quote column values. Accepts '"'
* (double quotation mark) or ''' (single quotation mark). Defaults to
* '"' (double quotation mark) if unspecified.
*
*
* string quote = 4 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The quote.
*/
java.lang.String getQuote();
/**
*
*
*
* Optional. The character used to quote column values. Accepts '"'
* (double quotation mark) or ''' (single quotation mark). Defaults to
* '"' (double quotation mark) if unspecified.
*
*
* string quote = 4 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for quote.
*/
com.google.protobuf.ByteString getQuoteBytes();
}
/**
*
*
*
* Describes CSV and similar semi-structured data formats.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.StorageFormat.CsvOptions}
*/
public static final class CsvOptions extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.StorageFormat.CsvOptions)
CsvOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use CsvOptions.newBuilder() to construct.
private CsvOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CsvOptions() {
encoding_ = "";
delimiter_ = "";
quote_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new CsvOptions();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.MetadataProto
.internal_static_google_cloud_dataplex_v1_StorageFormat_CsvOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.MetadataProto
.internal_static_google_cloud_dataplex_v1_StorageFormat_CsvOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.StorageFormat.CsvOptions.class,
com.google.cloud.dataplex.v1.StorageFormat.CsvOptions.Builder.class);
}
public static final int ENCODING_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object encoding_ = "";
/**
*
*
*
* Optional. The character encoding of the data. Accepts "US-ASCII",
* "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified.
*
*
* string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The encoding.
*/
@java.lang.Override
public java.lang.String getEncoding() {
java.lang.Object ref = encoding_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
encoding_ = s;
return s;
}
}
/**
*
*
*
* Optional. The character encoding of the data. Accepts "US-ASCII",
* "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified.
*
*
* string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for encoding.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEncodingBytes() {
java.lang.Object ref = encoding_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
encoding_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HEADER_ROWS_FIELD_NUMBER = 2;
private int headerRows_ = 0;
/**
*
*
*
* Optional. The number of rows to interpret as header rows that should be
* skipped when reading data rows. Defaults to 0.
*
*
* int32 header_rows = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The headerRows.
*/
@java.lang.Override
public int getHeaderRows() {
return headerRows_;
}
public static final int DELIMITER_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object delimiter_ = "";
/**
*
*
*
* Optional. The delimiter used to separate values. Defaults to ','.
*
*
* string delimiter = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The delimiter.
*/
@java.lang.Override
public java.lang.String getDelimiter() {
java.lang.Object ref = delimiter_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
delimiter_ = s;
return s;
}
}
/**
*
*
*
* Optional. The delimiter used to separate values. Defaults to ','.
*
*
* string delimiter = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for delimiter.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDelimiterBytes() {
java.lang.Object ref = delimiter_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
delimiter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int QUOTE_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object quote_ = "";
/**
*
*
*
* Optional. The character used to quote column values. Accepts '"'
* (double quotation mark) or ''' (single quotation mark). Defaults to
* '"' (double quotation mark) if unspecified.
*
*
* string quote = 4 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The quote.
*/
@java.lang.Override
public java.lang.String getQuote() {
java.lang.Object ref = quote_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
quote_ = s;
return s;
}
}
/**
*
*
*
* Optional. The character used to quote column values. Accepts '"'
* (double quotation mark) or ''' (single quotation mark). Defaults to
* '"' (double quotation mark) if unspecified.
*
*
* string quote = 4 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for quote.
*/
@java.lang.Override
public com.google.protobuf.ByteString getQuoteBytes() {
java.lang.Object ref = quote_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
quote_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encoding_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, encoding_);
}
if (headerRows_ != 0) {
output.writeInt32(2, headerRows_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(delimiter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, delimiter_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(quote_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, quote_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encoding_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, encoding_);
}
if (headerRows_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, headerRows_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(delimiter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, delimiter_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(quote_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, quote_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.dataplex.v1.StorageFormat.CsvOptions)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.StorageFormat.CsvOptions other =
(com.google.cloud.dataplex.v1.StorageFormat.CsvOptions) obj;
if (!getEncoding().equals(other.getEncoding())) return false;
if (getHeaderRows() != other.getHeaderRows()) return false;
if (!getDelimiter().equals(other.getDelimiter())) return false;
if (!getQuote().equals(other.getQuote())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ENCODING_FIELD_NUMBER;
hash = (53 * hash) + getEncoding().hashCode();
hash = (37 * hash) + HEADER_ROWS_FIELD_NUMBER;
hash = (53 * hash) + getHeaderRows();
hash = (37 * hash) + DELIMITER_FIELD_NUMBER;
hash = (53 * hash) + getDelimiter().hashCode();
hash = (37 * hash) + QUOTE_FIELD_NUMBER;
hash = (53 * hash) + getQuote().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.StorageFormat.CsvOptions parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.StorageFormat.CsvOptions parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.StorageFormat.CsvOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.StorageFormat.CsvOptions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.StorageFormat.CsvOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.StorageFormat.CsvOptions parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.StorageFormat.CsvOptions parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.StorageFormat.CsvOptions parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.StorageFormat.CsvOptions parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.StorageFormat.CsvOptions parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.StorageFormat.CsvOptions parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.StorageFormat.CsvOptions parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
com.google.cloud.dataplex.v1.StorageFormat.CsvOptions prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* Describes CSV and similar semi-structured data formats.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.StorageFormat.CsvOptions}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.StorageFormat.CsvOptions)
com.google.cloud.dataplex.v1.StorageFormat.CsvOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.MetadataProto
.internal_static_google_cloud_dataplex_v1_StorageFormat_CsvOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.MetadataProto
.internal_static_google_cloud_dataplex_v1_StorageFormat_CsvOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.StorageFormat.CsvOptions.class,
com.google.cloud.dataplex.v1.StorageFormat.CsvOptions.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.StorageFormat.CsvOptions.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
encoding_ = "";
headerRows_ = 0;
delimiter_ = "";
quote_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.MetadataProto
.internal_static_google_cloud_dataplex_v1_StorageFormat_CsvOptions_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat.CsvOptions getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.StorageFormat.CsvOptions.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat.CsvOptions build() {
com.google.cloud.dataplex.v1.StorageFormat.CsvOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat.CsvOptions buildPartial() {
com.google.cloud.dataplex.v1.StorageFormat.CsvOptions result =
new com.google.cloud.dataplex.v1.StorageFormat.CsvOptions(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.dataplex.v1.StorageFormat.CsvOptions result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.encoding_ = encoding_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.headerRows_ = headerRows_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.delimiter_ = delimiter_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.quote_ = quote_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dataplex.v1.StorageFormat.CsvOptions) {
return mergeFrom((com.google.cloud.dataplex.v1.StorageFormat.CsvOptions) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.StorageFormat.CsvOptions other) {
if (other == com.google.cloud.dataplex.v1.StorageFormat.CsvOptions.getDefaultInstance())
return this;
if (!other.getEncoding().isEmpty()) {
encoding_ = other.encoding_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getHeaderRows() != 0) {
setHeaderRows(other.getHeaderRows());
}
if (!other.getDelimiter().isEmpty()) {
delimiter_ = other.delimiter_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getQuote().isEmpty()) {
quote_ = other.quote_;
bitField0_ |= 0x00000008;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
encoding_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
headerRows_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26:
{
delimiter_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
quote_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object encoding_ = "";
/**
*
*
*
* Optional. The character encoding of the data. Accepts "US-ASCII",
* "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified.
*
*
* string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The encoding.
*/
public java.lang.String getEncoding() {
java.lang.Object ref = encoding_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
encoding_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Optional. The character encoding of the data. Accepts "US-ASCII",
* "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified.
*
*
* string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for encoding.
*/
public com.google.protobuf.ByteString getEncodingBytes() {
java.lang.Object ref = encoding_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
encoding_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Optional. The character encoding of the data. Accepts "US-ASCII",
* "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified.
*
*
* string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The encoding to set.
* @return This builder for chaining.
*/
public Builder setEncoding(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
encoding_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Optional. The character encoding of the data. Accepts "US-ASCII",
* "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified.
*
*
* string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
public Builder clearEncoding() {
encoding_ = getDefaultInstance().getEncoding();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Optional. The character encoding of the data. Accepts "US-ASCII",
* "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified.
*
*
* string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for encoding to set.
* @return This builder for chaining.
*/
public Builder setEncodingBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
encoding_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int headerRows_;
/**
*
*
*
* Optional. The number of rows to interpret as header rows that should be
* skipped when reading data rows. Defaults to 0.
*
*
* int32 header_rows = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The headerRows.
*/
@java.lang.Override
public int getHeaderRows() {
return headerRows_;
}
/**
*
*
*
* Optional. The number of rows to interpret as header rows that should be
* skipped when reading data rows. Defaults to 0.
*
*
* int32 header_rows = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The headerRows to set.
* @return This builder for chaining.
*/
public Builder setHeaderRows(int value) {
headerRows_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Optional. The number of rows to interpret as header rows that should be
* skipped when reading data rows. Defaults to 0.
*
*
* int32 header_rows = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
public Builder clearHeaderRows() {
bitField0_ = (bitField0_ & ~0x00000002);
headerRows_ = 0;
onChanged();
return this;
}
private java.lang.Object delimiter_ = "";
/**
*
*
*
* Optional. The delimiter used to separate values. Defaults to ','.
*
*
* string delimiter = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The delimiter.
*/
public java.lang.String getDelimiter() {
java.lang.Object ref = delimiter_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
delimiter_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Optional. The delimiter used to separate values. Defaults to ','.
*
*
* string delimiter = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for delimiter.
*/
public com.google.protobuf.ByteString getDelimiterBytes() {
java.lang.Object ref = delimiter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
delimiter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Optional. The delimiter used to separate values. Defaults to ','.
*
*
* string delimiter = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The delimiter to set.
* @return This builder for chaining.
*/
public Builder setDelimiter(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
delimiter_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Optional. The delimiter used to separate values. Defaults to ','.
*
*
* string delimiter = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
public Builder clearDelimiter() {
delimiter_ = getDefaultInstance().getDelimiter();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
* Optional. The delimiter used to separate values. Defaults to ','.
*
*
* string delimiter = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for delimiter to set.
* @return This builder for chaining.
*/
public Builder setDelimiterBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
delimiter_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object quote_ = "";
/**
*
*
*
* Optional. The character used to quote column values. Accepts '"'
* (double quotation mark) or ''' (single quotation mark). Defaults to
* '"' (double quotation mark) if unspecified.
*
*
* string quote = 4 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The quote.
*/
public java.lang.String getQuote() {
java.lang.Object ref = quote_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
quote_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Optional. The character used to quote column values. Accepts '"'
* (double quotation mark) or ''' (single quotation mark). Defaults to
* '"' (double quotation mark) if unspecified.
*
*
* string quote = 4 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for quote.
*/
public com.google.protobuf.ByteString getQuoteBytes() {
java.lang.Object ref = quote_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
quote_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Optional. The character used to quote column values. Accepts '"'
* (double quotation mark) or ''' (single quotation mark). Defaults to
* '"' (double quotation mark) if unspecified.
*
*
* string quote = 4 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The quote to set.
* @return This builder for chaining.
*/
public Builder setQuote(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
quote_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Optional. The character used to quote column values. Accepts '"'
* (double quotation mark) or ''' (single quotation mark). Defaults to
* '"' (double quotation mark) if unspecified.
*
*
* string quote = 4 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
public Builder clearQuote() {
quote_ = getDefaultInstance().getQuote();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
*
*
* Optional. The character used to quote column values. Accepts '"'
* (double quotation mark) or ''' (single quotation mark). Defaults to
* '"' (double quotation mark) if unspecified.
*
*
* string quote = 4 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for quote to set.
* @return This builder for chaining.
*/
public Builder setQuoteBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
quote_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.StorageFormat.CsvOptions)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.StorageFormat.CsvOptions)
private static final com.google.cloud.dataplex.v1.StorageFormat.CsvOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.StorageFormat.CsvOptions();
}
public static com.google.cloud.dataplex.v1.StorageFormat.CsvOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CsvOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat.CsvOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface JsonOptionsOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.StorageFormat.JsonOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8"
* and "ISO-8859-1". Defaults to UTF-8 if not specified.
*
*
* string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The encoding.
*/
java.lang.String getEncoding();
/**
*
*
*
* Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8"
* and "ISO-8859-1". Defaults to UTF-8 if not specified.
*
*
* string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for encoding.
*/
com.google.protobuf.ByteString getEncodingBytes();
}
/**
*
*
*
* Describes JSON data format.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.StorageFormat.JsonOptions}
*/
public static final class JsonOptions extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.StorageFormat.JsonOptions)
JsonOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use JsonOptions.newBuilder() to construct.
private JsonOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private JsonOptions() {
encoding_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new JsonOptions();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.MetadataProto
.internal_static_google_cloud_dataplex_v1_StorageFormat_JsonOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.MetadataProto
.internal_static_google_cloud_dataplex_v1_StorageFormat_JsonOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.StorageFormat.JsonOptions.class,
com.google.cloud.dataplex.v1.StorageFormat.JsonOptions.Builder.class);
}
public static final int ENCODING_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object encoding_ = "";
/**
*
*
*
* Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8"
* and "ISO-8859-1". Defaults to UTF-8 if not specified.
*
*
* string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The encoding.
*/
@java.lang.Override
public java.lang.String getEncoding() {
java.lang.Object ref = encoding_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
encoding_ = s;
return s;
}
}
/**
*
*
*
* Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8"
* and "ISO-8859-1". Defaults to UTF-8 if not specified.
*
*
* string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for encoding.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEncodingBytes() {
java.lang.Object ref = encoding_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
encoding_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encoding_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, encoding_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encoding_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, encoding_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.dataplex.v1.StorageFormat.JsonOptions)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.StorageFormat.JsonOptions other =
(com.google.cloud.dataplex.v1.StorageFormat.JsonOptions) obj;
if (!getEncoding().equals(other.getEncoding())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ENCODING_FIELD_NUMBER;
hash = (53 * hash) + getEncoding().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.StorageFormat.JsonOptions parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.StorageFormat.JsonOptions parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.StorageFormat.JsonOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.StorageFormat.JsonOptions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.StorageFormat.JsonOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.StorageFormat.JsonOptions parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.StorageFormat.JsonOptions parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.StorageFormat.JsonOptions parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.StorageFormat.JsonOptions parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.StorageFormat.JsonOptions parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.StorageFormat.JsonOptions parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.StorageFormat.JsonOptions parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
com.google.cloud.dataplex.v1.StorageFormat.JsonOptions prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* Describes JSON data format.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.StorageFormat.JsonOptions}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.StorageFormat.JsonOptions)
com.google.cloud.dataplex.v1.StorageFormat.JsonOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.MetadataProto
.internal_static_google_cloud_dataplex_v1_StorageFormat_JsonOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.MetadataProto
.internal_static_google_cloud_dataplex_v1_StorageFormat_JsonOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.StorageFormat.JsonOptions.class,
com.google.cloud.dataplex.v1.StorageFormat.JsonOptions.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.StorageFormat.JsonOptions.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
encoding_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.MetadataProto
.internal_static_google_cloud_dataplex_v1_StorageFormat_JsonOptions_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat.JsonOptions getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.StorageFormat.JsonOptions.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat.JsonOptions build() {
com.google.cloud.dataplex.v1.StorageFormat.JsonOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat.JsonOptions buildPartial() {
com.google.cloud.dataplex.v1.StorageFormat.JsonOptions result =
new com.google.cloud.dataplex.v1.StorageFormat.JsonOptions(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.dataplex.v1.StorageFormat.JsonOptions result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.encoding_ = encoding_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dataplex.v1.StorageFormat.JsonOptions) {
return mergeFrom((com.google.cloud.dataplex.v1.StorageFormat.JsonOptions) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.StorageFormat.JsonOptions other) {
if (other == com.google.cloud.dataplex.v1.StorageFormat.JsonOptions.getDefaultInstance())
return this;
if (!other.getEncoding().isEmpty()) {
encoding_ = other.encoding_;
bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
encoding_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object encoding_ = "";
/**
*
*
*
* Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8"
* and "ISO-8859-1". Defaults to UTF-8 if not specified.
*
*
* string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The encoding.
*/
public java.lang.String getEncoding() {
java.lang.Object ref = encoding_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
encoding_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8"
* and "ISO-8859-1". Defaults to UTF-8 if not specified.
*
*
* string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for encoding.
*/
public com.google.protobuf.ByteString getEncodingBytes() {
java.lang.Object ref = encoding_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
encoding_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8"
* and "ISO-8859-1". Defaults to UTF-8 if not specified.
*
*
* string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The encoding to set.
* @return This builder for chaining.
*/
public Builder setEncoding(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
encoding_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8"
* and "ISO-8859-1". Defaults to UTF-8 if not specified.
*
*
* string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
public Builder clearEncoding() {
encoding_ = getDefaultInstance().getEncoding();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8"
* and "ISO-8859-1". Defaults to UTF-8 if not specified.
*
*
* string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for encoding to set.
* @return This builder for chaining.
*/
public Builder setEncodingBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
encoding_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.StorageFormat.JsonOptions)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.StorageFormat.JsonOptions)
private static final com.google.cloud.dataplex.v1.StorageFormat.JsonOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.StorageFormat.JsonOptions();
}
public static com.google.cloud.dataplex.v1.StorageFormat.JsonOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public JsonOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat.JsonOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IcebergOptionsOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.StorageFormat.IcebergOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Optional. The location of where the iceberg metadata is present, must be
* within the table path
*
*
* string metadata_location = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The metadataLocation.
*/
java.lang.String getMetadataLocation();
/**
*
*
*
* Optional. The location of where the iceberg metadata is present, must be
* within the table path
*
*
* string metadata_location = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for metadataLocation.
*/
com.google.protobuf.ByteString getMetadataLocationBytes();
}
/**
*
*
*
* Describes Iceberg data format.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.StorageFormat.IcebergOptions}
*/
public static final class IcebergOptions extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.StorageFormat.IcebergOptions)
IcebergOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use IcebergOptions.newBuilder() to construct.
private IcebergOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IcebergOptions() {
metadataLocation_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new IcebergOptions();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.MetadataProto
.internal_static_google_cloud_dataplex_v1_StorageFormat_IcebergOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.MetadataProto
.internal_static_google_cloud_dataplex_v1_StorageFormat_IcebergOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.class,
com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.Builder.class);
}
public static final int METADATA_LOCATION_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object metadataLocation_ = "";
/**
*
*
*
* Optional. The location of where the iceberg metadata is present, must be
* within the table path
*
*
* string metadata_location = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The metadataLocation.
*/
@java.lang.Override
public java.lang.String getMetadataLocation() {
java.lang.Object ref = metadataLocation_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
metadataLocation_ = s;
return s;
}
}
/**
*
*
*
* Optional. The location of where the iceberg metadata is present, must be
* within the table path
*
*
* string metadata_location = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for metadataLocation.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMetadataLocationBytes() {
java.lang.Object ref = metadataLocation_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
metadataLocation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metadataLocation_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metadataLocation_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metadataLocation_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metadataLocation_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions other =
(com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions) obj;
if (!getMetadataLocation().equals(other.getMetadataLocation())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + METADATA_LOCATION_FIELD_NUMBER;
hash = (53 * hash) + getMetadataLocation().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* Describes Iceberg data format.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.StorageFormat.IcebergOptions}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.StorageFormat.IcebergOptions)
com.google.cloud.dataplex.v1.StorageFormat.IcebergOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.MetadataProto
.internal_static_google_cloud_dataplex_v1_StorageFormat_IcebergOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.MetadataProto
.internal_static_google_cloud_dataplex_v1_StorageFormat_IcebergOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.class,
com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
metadataLocation_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.MetadataProto
.internal_static_google_cloud_dataplex_v1_StorageFormat_IcebergOptions_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions build() {
com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions buildPartial() {
com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions result =
new com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.metadataLocation_ = metadataLocation_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions) {
return mergeFrom((com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions other) {
if (other == com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.getDefaultInstance())
return this;
if (!other.getMetadataLocation().isEmpty()) {
metadataLocation_ = other.metadataLocation_;
bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
metadataLocation_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object metadataLocation_ = "";
/**
*
*
*
* Optional. The location of where the iceberg metadata is present, must be
* within the table path
*
*
* string metadata_location = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The metadataLocation.
*/
public java.lang.String getMetadataLocation() {
java.lang.Object ref = metadataLocation_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
metadataLocation_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Optional. The location of where the iceberg metadata is present, must be
* within the table path
*
*
* string metadata_location = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for metadataLocation.
*/
public com.google.protobuf.ByteString getMetadataLocationBytes() {
java.lang.Object ref = metadataLocation_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
metadataLocation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Optional. The location of where the iceberg metadata is present, must be
* within the table path
*
*
* string metadata_location = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The metadataLocation to set.
* @return This builder for chaining.
*/
public Builder setMetadataLocation(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
metadataLocation_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Optional. The location of where the iceberg metadata is present, must be
* within the table path
*
*
* string metadata_location = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
public Builder clearMetadataLocation() {
metadataLocation_ = getDefaultInstance().getMetadataLocation();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Optional. The location of where the iceberg metadata is present, must be
* within the table path
*
*
* string metadata_location = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for metadataLocation to set.
* @return This builder for chaining.
*/
public Builder setMetadataLocationBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
metadataLocation_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.StorageFormat.IcebergOptions)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.StorageFormat.IcebergOptions)
private static final com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions();
}
public static com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IcebergOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int optionsCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object options_;
public enum OptionsCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
CSV(10),
JSON(11),
ICEBERG(12),
OPTIONS_NOT_SET(0);
private final int value;
private OptionsCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static OptionsCase valueOf(int value) {
return forNumber(value);
}
public static OptionsCase forNumber(int value) {
switch (value) {
case 10:
return CSV;
case 11:
return JSON;
case 12:
return ICEBERG;
case 0:
return OPTIONS_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public OptionsCase getOptionsCase() {
return OptionsCase.forNumber(optionsCase_);
}
public static final int FORMAT_FIELD_NUMBER = 1;
private int format_ = 0;
/**
*
*
*
* 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];
*
*
* @return The enum numeric value on the wire for format.
*/
@java.lang.Override
public int getFormatValue() {
return format_;
}
/**
*
*
*
* 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];
*
*
* @return The format.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat.Format getFormat() {
com.google.cloud.dataplex.v1.StorageFormat.Format result =
com.google.cloud.dataplex.v1.StorageFormat.Format.forNumber(format_);
return result == null ? com.google.cloud.dataplex.v1.StorageFormat.Format.UNRECOGNIZED : result;
}
public static final int COMPRESSION_FORMAT_FIELD_NUMBER = 2;
private int compressionFormat_ = 0;
/**
*
*
*
* 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];
*
*
* @return The enum numeric value on the wire for compressionFormat.
*/
@java.lang.Override
public int getCompressionFormatValue() {
return compressionFormat_;
}
/**
*
*
*
* 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];
*
*
* @return The compressionFormat.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat.CompressionFormat getCompressionFormat() {
com.google.cloud.dataplex.v1.StorageFormat.CompressionFormat result =
com.google.cloud.dataplex.v1.StorageFormat.CompressionFormat.forNumber(compressionFormat_);
return result == null
? com.google.cloud.dataplex.v1.StorageFormat.CompressionFormat.UNRECOGNIZED
: result;
}
public static final int MIME_TYPE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object mimeType_ = "";
/**
*
*
*
* 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];
*
* @return The mimeType.
*/
@java.lang.Override
public java.lang.String getMimeType() {
java.lang.Object ref = mimeType_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
mimeType_ = s;
return s;
}
}
/**
*
*
*
* 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];
*
* @return The bytes for mimeType.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMimeTypeBytes() {
java.lang.Object ref = mimeType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
mimeType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CSV_FIELD_NUMBER = 10;
/**
*
*
*
* Optional. Additional information about CSV formatted data.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.CsvOptions csv = 10 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the csv field is set.
*/
@java.lang.Override
public boolean hasCsv() {
return optionsCase_ == 10;
}
/**
*
*
*
* Optional. Additional information about CSV formatted data.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.CsvOptions csv = 10 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The csv.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat.CsvOptions getCsv() {
if (optionsCase_ == 10) {
return (com.google.cloud.dataplex.v1.StorageFormat.CsvOptions) options_;
}
return com.google.cloud.dataplex.v1.StorageFormat.CsvOptions.getDefaultInstance();
}
/**
*
*
*
* Optional. Additional information about CSV formatted data.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.CsvOptions csv = 10 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat.CsvOptionsOrBuilder getCsvOrBuilder() {
if (optionsCase_ == 10) {
return (com.google.cloud.dataplex.v1.StorageFormat.CsvOptions) options_;
}
return com.google.cloud.dataplex.v1.StorageFormat.CsvOptions.getDefaultInstance();
}
public static final int JSON_FIELD_NUMBER = 11;
/**
*
*
*
* Optional. Additional information about CSV formatted data.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.JsonOptions json = 11 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the json field is set.
*/
@java.lang.Override
public boolean hasJson() {
return optionsCase_ == 11;
}
/**
*
*
*
* Optional. Additional information about CSV formatted data.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.JsonOptions json = 11 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The json.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat.JsonOptions getJson() {
if (optionsCase_ == 11) {
return (com.google.cloud.dataplex.v1.StorageFormat.JsonOptions) options_;
}
return com.google.cloud.dataplex.v1.StorageFormat.JsonOptions.getDefaultInstance();
}
/**
*
*
*
* Optional. Additional information about CSV formatted data.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.JsonOptions json = 11 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat.JsonOptionsOrBuilder getJsonOrBuilder() {
if (optionsCase_ == 11) {
return (com.google.cloud.dataplex.v1.StorageFormat.JsonOptions) options_;
}
return com.google.cloud.dataplex.v1.StorageFormat.JsonOptions.getDefaultInstance();
}
public static final int ICEBERG_FIELD_NUMBER = 12;
/**
*
*
*
* Optional. Additional information about iceberg tables.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the iceberg field is set.
*/
@java.lang.Override
public boolean hasIceberg() {
return optionsCase_ == 12;
}
/**
*
*
*
* Optional. Additional information about iceberg tables.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The iceberg.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions getIceberg() {
if (optionsCase_ == 12) {
return (com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions) options_;
}
return com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.getDefaultInstance();
}
/**
*
*
*
* Optional. Additional information about iceberg tables.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat.IcebergOptionsOrBuilder getIcebergOrBuilder() {
if (optionsCase_ == 12) {
return (com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions) options_;
}
return com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (format_
!= com.google.cloud.dataplex.v1.StorageFormat.Format.FORMAT_UNSPECIFIED.getNumber()) {
output.writeEnum(1, format_);
}
if (compressionFormat_
!= com.google.cloud.dataplex.v1.StorageFormat.CompressionFormat
.COMPRESSION_FORMAT_UNSPECIFIED
.getNumber()) {
output.writeEnum(2, compressionFormat_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mimeType_);
}
if (optionsCase_ == 10) {
output.writeMessage(10, (com.google.cloud.dataplex.v1.StorageFormat.CsvOptions) options_);
}
if (optionsCase_ == 11) {
output.writeMessage(11, (com.google.cloud.dataplex.v1.StorageFormat.JsonOptions) options_);
}
if (optionsCase_ == 12) {
output.writeMessage(12, (com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions) options_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (format_
!= com.google.cloud.dataplex.v1.StorageFormat.Format.FORMAT_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, format_);
}
if (compressionFormat_
!= com.google.cloud.dataplex.v1.StorageFormat.CompressionFormat
.COMPRESSION_FORMAT_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, compressionFormat_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mimeType_);
}
if (optionsCase_ == 10) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
10, (com.google.cloud.dataplex.v1.StorageFormat.CsvOptions) options_);
}
if (optionsCase_ == 11) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
11, (com.google.cloud.dataplex.v1.StorageFormat.JsonOptions) options_);
}
if (optionsCase_ == 12) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
12, (com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions) options_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.dataplex.v1.StorageFormat)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.StorageFormat other =
(com.google.cloud.dataplex.v1.StorageFormat) obj;
if (format_ != other.format_) return false;
if (compressionFormat_ != other.compressionFormat_) return false;
if (!getMimeType().equals(other.getMimeType())) return false;
if (!getOptionsCase().equals(other.getOptionsCase())) return false;
switch (optionsCase_) {
case 10:
if (!getCsv().equals(other.getCsv())) return false;
break;
case 11:
if (!getJson().equals(other.getJson())) return false;
break;
case 12:
if (!getIceberg().equals(other.getIceberg())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + FORMAT_FIELD_NUMBER;
hash = (53 * hash) + format_;
hash = (37 * hash) + COMPRESSION_FORMAT_FIELD_NUMBER;
hash = (53 * hash) + compressionFormat_;
hash = (37 * hash) + MIME_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getMimeType().hashCode();
switch (optionsCase_) {
case 10:
hash = (37 * hash) + CSV_FIELD_NUMBER;
hash = (53 * hash) + getCsv().hashCode();
break;
case 11:
hash = (37 * hash) + JSON_FIELD_NUMBER;
hash = (53 * hash) + getJson().hashCode();
break;
case 12:
hash = (37 * hash) + ICEBERG_FIELD_NUMBER;
hash = (53 * hash) + getIceberg().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.StorageFormat parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.StorageFormat parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.StorageFormat parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.StorageFormat parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.StorageFormat parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.StorageFormat parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.StorageFormat parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.StorageFormat parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.StorageFormat parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.StorageFormat parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.StorageFormat parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.StorageFormat parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.cloud.dataplex.v1.StorageFormat prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* Describes the format of the data within its storage location.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.StorageFormat}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.StorageFormat)
com.google.cloud.dataplex.v1.StorageFormatOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.MetadataProto
.internal_static_google_cloud_dataplex_v1_StorageFormat_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.MetadataProto
.internal_static_google_cloud_dataplex_v1_StorageFormat_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.StorageFormat.class,
com.google.cloud.dataplex.v1.StorageFormat.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.StorageFormat.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
format_ = 0;
compressionFormat_ = 0;
mimeType_ = "";
if (csvBuilder_ != null) {
csvBuilder_.clear();
}
if (jsonBuilder_ != null) {
jsonBuilder_.clear();
}
if (icebergBuilder_ != null) {
icebergBuilder_.clear();
}
optionsCase_ = 0;
options_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.MetadataProto
.internal_static_google_cloud_dataplex_v1_StorageFormat_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.StorageFormat.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat build() {
com.google.cloud.dataplex.v1.StorageFormat result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat buildPartial() {
com.google.cloud.dataplex.v1.StorageFormat result =
new com.google.cloud.dataplex.v1.StorageFormat(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.dataplex.v1.StorageFormat result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.format_ = format_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.compressionFormat_ = compressionFormat_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.mimeType_ = mimeType_;
}
}
private void buildPartialOneofs(com.google.cloud.dataplex.v1.StorageFormat result) {
result.optionsCase_ = optionsCase_;
result.options_ = this.options_;
if (optionsCase_ == 10 && csvBuilder_ != null) {
result.options_ = csvBuilder_.build();
}
if (optionsCase_ == 11 && jsonBuilder_ != null) {
result.options_ = jsonBuilder_.build();
}
if (optionsCase_ == 12 && icebergBuilder_ != null) {
result.options_ = icebergBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dataplex.v1.StorageFormat) {
return mergeFrom((com.google.cloud.dataplex.v1.StorageFormat) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.StorageFormat other) {
if (other == com.google.cloud.dataplex.v1.StorageFormat.getDefaultInstance()) return this;
if (other.format_ != 0) {
setFormatValue(other.getFormatValue());
}
if (other.compressionFormat_ != 0) {
setCompressionFormatValue(other.getCompressionFormatValue());
}
if (!other.getMimeType().isEmpty()) {
mimeType_ = other.mimeType_;
bitField0_ |= 0x00000004;
onChanged();
}
switch (other.getOptionsCase()) {
case CSV:
{
mergeCsv(other.getCsv());
break;
}
case JSON:
{
mergeJson(other.getJson());
break;
}
case ICEBERG:
{
mergeIceberg(other.getIceberg());
break;
}
case OPTIONS_NOT_SET:
{
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8:
{
format_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16:
{
compressionFormat_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26:
{
mimeType_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 82:
{
input.readMessage(getCsvFieldBuilder().getBuilder(), extensionRegistry);
optionsCase_ = 10;
break;
} // case 82
case 90:
{
input.readMessage(getJsonFieldBuilder().getBuilder(), extensionRegistry);
optionsCase_ = 11;
break;
} // case 90
case 98:
{
input.readMessage(getIcebergFieldBuilder().getBuilder(), extensionRegistry);
optionsCase_ = 12;
break;
} // case 98
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int optionsCase_ = 0;
private java.lang.Object options_;
public OptionsCase getOptionsCase() {
return OptionsCase.forNumber(optionsCase_);
}
public Builder clearOptions() {
optionsCase_ = 0;
options_ = null;
onChanged();
return this;
}
private int bitField0_;
private int format_ = 0;
/**
*
*
*
* 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];
*
*
* @return The enum numeric value on the wire for format.
*/
@java.lang.Override
public int getFormatValue() {
return format_;
}
/**
*
*
*
* 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];
*
*
* @param value The enum numeric value on the wire for format to set.
* @return This builder for chaining.
*/
public Builder setFormatValue(int value) {
format_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* 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];
*
*
* @return The format.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat.Format getFormat() {
com.google.cloud.dataplex.v1.StorageFormat.Format result =
com.google.cloud.dataplex.v1.StorageFormat.Format.forNumber(format_);
return result == null
? com.google.cloud.dataplex.v1.StorageFormat.Format.UNRECOGNIZED
: result;
}
/**
*
*
*
* 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];
*
*
* @param value The format to set.
* @return This builder for chaining.
*/
public Builder setFormat(com.google.cloud.dataplex.v1.StorageFormat.Format value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
format_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* 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];
*
*
* @return This builder for chaining.
*/
public Builder clearFormat() {
bitField0_ = (bitField0_ & ~0x00000001);
format_ = 0;
onChanged();
return this;
}
private int compressionFormat_ = 0;
/**
*
*
*
* 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];
*
*
* @return The enum numeric value on the wire for compressionFormat.
*/
@java.lang.Override
public int getCompressionFormatValue() {
return compressionFormat_;
}
/**
*
*
*
* 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];
*
*
* @param value The enum numeric value on the wire for compressionFormat to set.
* @return This builder for chaining.
*/
public Builder setCompressionFormatValue(int value) {
compressionFormat_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* 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];
*
*
* @return The compressionFormat.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat.CompressionFormat getCompressionFormat() {
com.google.cloud.dataplex.v1.StorageFormat.CompressionFormat result =
com.google.cloud.dataplex.v1.StorageFormat.CompressionFormat.forNumber(
compressionFormat_);
return result == null
? com.google.cloud.dataplex.v1.StorageFormat.CompressionFormat.UNRECOGNIZED
: result;
}
/**
*
*
*
* 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];
*
*
* @param value The compressionFormat to set.
* @return This builder for chaining.
*/
public Builder setCompressionFormat(
com.google.cloud.dataplex.v1.StorageFormat.CompressionFormat value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
compressionFormat_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* 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];
*
*
* @return This builder for chaining.
*/
public Builder clearCompressionFormat() {
bitField0_ = (bitField0_ & ~0x00000002);
compressionFormat_ = 0;
onChanged();
return this;
}
private java.lang.Object mimeType_ = "";
/**
*
*
*
* 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];
*
* @return The mimeType.
*/
public java.lang.String getMimeType() {
java.lang.Object ref = mimeType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
mimeType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* 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];
*
* @return The bytes for mimeType.
*/
public com.google.protobuf.ByteString getMimeTypeBytes() {
java.lang.Object ref = mimeType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
mimeType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* 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];
*
* @param value The mimeType to set.
* @return This builder for chaining.
*/
public Builder setMimeType(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
mimeType_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* 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];
*
* @return This builder for chaining.
*/
public Builder clearMimeType() {
mimeType_ = getDefaultInstance().getMimeType();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
* 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];
*
* @param value The bytes for mimeType to set.
* @return This builder for chaining.
*/
public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
mimeType_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.StorageFormat.CsvOptions,
com.google.cloud.dataplex.v1.StorageFormat.CsvOptions.Builder,
com.google.cloud.dataplex.v1.StorageFormat.CsvOptionsOrBuilder>
csvBuilder_;
/**
*
*
*
* Optional. Additional information about CSV formatted data.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.CsvOptions csv = 10 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the csv field is set.
*/
@java.lang.Override
public boolean hasCsv() {
return optionsCase_ == 10;
}
/**
*
*
*
* Optional. Additional information about CSV formatted data.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.CsvOptions csv = 10 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The csv.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat.CsvOptions getCsv() {
if (csvBuilder_ == null) {
if (optionsCase_ == 10) {
return (com.google.cloud.dataplex.v1.StorageFormat.CsvOptions) options_;
}
return com.google.cloud.dataplex.v1.StorageFormat.CsvOptions.getDefaultInstance();
} else {
if (optionsCase_ == 10) {
return csvBuilder_.getMessage();
}
return com.google.cloud.dataplex.v1.StorageFormat.CsvOptions.getDefaultInstance();
}
}
/**
*
*
*
* Optional. Additional information about CSV formatted data.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.CsvOptions csv = 10 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setCsv(com.google.cloud.dataplex.v1.StorageFormat.CsvOptions value) {
if (csvBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
options_ = value;
onChanged();
} else {
csvBuilder_.setMessage(value);
}
optionsCase_ = 10;
return this;
}
/**
*
*
*
* Optional. Additional information about CSV formatted data.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.CsvOptions csv = 10 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setCsv(
com.google.cloud.dataplex.v1.StorageFormat.CsvOptions.Builder builderForValue) {
if (csvBuilder_ == null) {
options_ = builderForValue.build();
onChanged();
} else {
csvBuilder_.setMessage(builderForValue.build());
}
optionsCase_ = 10;
return this;
}
/**
*
*
*
* Optional. Additional information about CSV formatted data.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.CsvOptions csv = 10 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder mergeCsv(com.google.cloud.dataplex.v1.StorageFormat.CsvOptions value) {
if (csvBuilder_ == null) {
if (optionsCase_ == 10
&& options_
!= com.google.cloud.dataplex.v1.StorageFormat.CsvOptions.getDefaultInstance()) {
options_ =
com.google.cloud.dataplex.v1.StorageFormat.CsvOptions.newBuilder(
(com.google.cloud.dataplex.v1.StorageFormat.CsvOptions) options_)
.mergeFrom(value)
.buildPartial();
} else {
options_ = value;
}
onChanged();
} else {
if (optionsCase_ == 10) {
csvBuilder_.mergeFrom(value);
} else {
csvBuilder_.setMessage(value);
}
}
optionsCase_ = 10;
return this;
}
/**
*
*
*
* Optional. Additional information about CSV formatted data.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.CsvOptions csv = 10 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder clearCsv() {
if (csvBuilder_ == null) {
if (optionsCase_ == 10) {
optionsCase_ = 0;
options_ = null;
onChanged();
}
} else {
if (optionsCase_ == 10) {
optionsCase_ = 0;
options_ = null;
}
csvBuilder_.clear();
}
return this;
}
/**
*
*
*
* Optional. Additional information about CSV formatted data.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.CsvOptions csv = 10 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.dataplex.v1.StorageFormat.CsvOptions.Builder getCsvBuilder() {
return getCsvFieldBuilder().getBuilder();
}
/**
*
*
*
* Optional. Additional information about CSV formatted data.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.CsvOptions csv = 10 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat.CsvOptionsOrBuilder getCsvOrBuilder() {
if ((optionsCase_ == 10) && (csvBuilder_ != null)) {
return csvBuilder_.getMessageOrBuilder();
} else {
if (optionsCase_ == 10) {
return (com.google.cloud.dataplex.v1.StorageFormat.CsvOptions) options_;
}
return com.google.cloud.dataplex.v1.StorageFormat.CsvOptions.getDefaultInstance();
}
}
/**
*
*
*
* Optional. Additional information about CSV formatted data.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.CsvOptions csv = 10 [(.google.api.field_behavior) = OPTIONAL];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.StorageFormat.CsvOptions,
com.google.cloud.dataplex.v1.StorageFormat.CsvOptions.Builder,
com.google.cloud.dataplex.v1.StorageFormat.CsvOptionsOrBuilder>
getCsvFieldBuilder() {
if (csvBuilder_ == null) {
if (!(optionsCase_ == 10)) {
options_ = com.google.cloud.dataplex.v1.StorageFormat.CsvOptions.getDefaultInstance();
}
csvBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.StorageFormat.CsvOptions,
com.google.cloud.dataplex.v1.StorageFormat.CsvOptions.Builder,
com.google.cloud.dataplex.v1.StorageFormat.CsvOptionsOrBuilder>(
(com.google.cloud.dataplex.v1.StorageFormat.CsvOptions) options_,
getParentForChildren(),
isClean());
options_ = null;
}
optionsCase_ = 10;
onChanged();
return csvBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.StorageFormat.JsonOptions,
com.google.cloud.dataplex.v1.StorageFormat.JsonOptions.Builder,
com.google.cloud.dataplex.v1.StorageFormat.JsonOptionsOrBuilder>
jsonBuilder_;
/**
*
*
*
* Optional. Additional information about CSV formatted data.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.JsonOptions json = 11 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the json field is set.
*/
@java.lang.Override
public boolean hasJson() {
return optionsCase_ == 11;
}
/**
*
*
*
* Optional. Additional information about CSV formatted data.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.JsonOptions json = 11 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The json.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat.JsonOptions getJson() {
if (jsonBuilder_ == null) {
if (optionsCase_ == 11) {
return (com.google.cloud.dataplex.v1.StorageFormat.JsonOptions) options_;
}
return com.google.cloud.dataplex.v1.StorageFormat.JsonOptions.getDefaultInstance();
} else {
if (optionsCase_ == 11) {
return jsonBuilder_.getMessage();
}
return com.google.cloud.dataplex.v1.StorageFormat.JsonOptions.getDefaultInstance();
}
}
/**
*
*
*
* Optional. Additional information about CSV formatted data.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.JsonOptions json = 11 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setJson(com.google.cloud.dataplex.v1.StorageFormat.JsonOptions value) {
if (jsonBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
options_ = value;
onChanged();
} else {
jsonBuilder_.setMessage(value);
}
optionsCase_ = 11;
return this;
}
/**
*
*
*
* Optional. Additional information about CSV formatted data.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.JsonOptions json = 11 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setJson(
com.google.cloud.dataplex.v1.StorageFormat.JsonOptions.Builder builderForValue) {
if (jsonBuilder_ == null) {
options_ = builderForValue.build();
onChanged();
} else {
jsonBuilder_.setMessage(builderForValue.build());
}
optionsCase_ = 11;
return this;
}
/**
*
*
*
* Optional. Additional information about CSV formatted data.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.JsonOptions json = 11 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder mergeJson(com.google.cloud.dataplex.v1.StorageFormat.JsonOptions value) {
if (jsonBuilder_ == null) {
if (optionsCase_ == 11
&& options_
!= com.google.cloud.dataplex.v1.StorageFormat.JsonOptions.getDefaultInstance()) {
options_ =
com.google.cloud.dataplex.v1.StorageFormat.JsonOptions.newBuilder(
(com.google.cloud.dataplex.v1.StorageFormat.JsonOptions) options_)
.mergeFrom(value)
.buildPartial();
} else {
options_ = value;
}
onChanged();
} else {
if (optionsCase_ == 11) {
jsonBuilder_.mergeFrom(value);
} else {
jsonBuilder_.setMessage(value);
}
}
optionsCase_ = 11;
return this;
}
/**
*
*
*
* Optional. Additional information about CSV formatted data.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.JsonOptions json = 11 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder clearJson() {
if (jsonBuilder_ == null) {
if (optionsCase_ == 11) {
optionsCase_ = 0;
options_ = null;
onChanged();
}
} else {
if (optionsCase_ == 11) {
optionsCase_ = 0;
options_ = null;
}
jsonBuilder_.clear();
}
return this;
}
/**
*
*
*
* Optional. Additional information about CSV formatted data.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.JsonOptions json = 11 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.dataplex.v1.StorageFormat.JsonOptions.Builder getJsonBuilder() {
return getJsonFieldBuilder().getBuilder();
}
/**
*
*
*
* Optional. Additional information about CSV formatted data.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.JsonOptions json = 11 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat.JsonOptionsOrBuilder getJsonOrBuilder() {
if ((optionsCase_ == 11) && (jsonBuilder_ != null)) {
return jsonBuilder_.getMessageOrBuilder();
} else {
if (optionsCase_ == 11) {
return (com.google.cloud.dataplex.v1.StorageFormat.JsonOptions) options_;
}
return com.google.cloud.dataplex.v1.StorageFormat.JsonOptions.getDefaultInstance();
}
}
/**
*
*
*
* Optional. Additional information about CSV formatted data.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.JsonOptions json = 11 [(.google.api.field_behavior) = OPTIONAL];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.StorageFormat.JsonOptions,
com.google.cloud.dataplex.v1.StorageFormat.JsonOptions.Builder,
com.google.cloud.dataplex.v1.StorageFormat.JsonOptionsOrBuilder>
getJsonFieldBuilder() {
if (jsonBuilder_ == null) {
if (!(optionsCase_ == 11)) {
options_ = com.google.cloud.dataplex.v1.StorageFormat.JsonOptions.getDefaultInstance();
}
jsonBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.StorageFormat.JsonOptions,
com.google.cloud.dataplex.v1.StorageFormat.JsonOptions.Builder,
com.google.cloud.dataplex.v1.StorageFormat.JsonOptionsOrBuilder>(
(com.google.cloud.dataplex.v1.StorageFormat.JsonOptions) options_,
getParentForChildren(),
isClean());
options_ = null;
}
optionsCase_ = 11;
onChanged();
return jsonBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions,
com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.Builder,
com.google.cloud.dataplex.v1.StorageFormat.IcebergOptionsOrBuilder>
icebergBuilder_;
/**
*
*
*
* Optional. Additional information about iceberg tables.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the iceberg field is set.
*/
@java.lang.Override
public boolean hasIceberg() {
return optionsCase_ == 12;
}
/**
*
*
*
* Optional. Additional information about iceberg tables.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The iceberg.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions getIceberg() {
if (icebergBuilder_ == null) {
if (optionsCase_ == 12) {
return (com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions) options_;
}
return com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.getDefaultInstance();
} else {
if (optionsCase_ == 12) {
return icebergBuilder_.getMessage();
}
return com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.getDefaultInstance();
}
}
/**
*
*
*
* Optional. Additional information about iceberg tables.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setIceberg(com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions value) {
if (icebergBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
options_ = value;
onChanged();
} else {
icebergBuilder_.setMessage(value);
}
optionsCase_ = 12;
return this;
}
/**
*
*
*
* Optional. Additional information about iceberg tables.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setIceberg(
com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.Builder builderForValue) {
if (icebergBuilder_ == null) {
options_ = builderForValue.build();
onChanged();
} else {
icebergBuilder_.setMessage(builderForValue.build());
}
optionsCase_ = 12;
return this;
}
/**
*
*
*
* Optional. Additional information about iceberg tables.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder mergeIceberg(com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions value) {
if (icebergBuilder_ == null) {
if (optionsCase_ == 12
&& options_
!= com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.getDefaultInstance()) {
options_ =
com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.newBuilder(
(com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions) options_)
.mergeFrom(value)
.buildPartial();
} else {
options_ = value;
}
onChanged();
} else {
if (optionsCase_ == 12) {
icebergBuilder_.mergeFrom(value);
} else {
icebergBuilder_.setMessage(value);
}
}
optionsCase_ = 12;
return this;
}
/**
*
*
*
* Optional. Additional information about iceberg tables.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder clearIceberg() {
if (icebergBuilder_ == null) {
if (optionsCase_ == 12) {
optionsCase_ = 0;
options_ = null;
onChanged();
}
} else {
if (optionsCase_ == 12) {
optionsCase_ = 0;
options_ = null;
}
icebergBuilder_.clear();
}
return this;
}
/**
*
*
*
* Optional. Additional information about iceberg tables.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.Builder getIcebergBuilder() {
return getIcebergFieldBuilder().getBuilder();
}
/**
*
*
*
* Optional. Additional information about iceberg tables.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat.IcebergOptionsOrBuilder
getIcebergOrBuilder() {
if ((optionsCase_ == 12) && (icebergBuilder_ != null)) {
return icebergBuilder_.getMessageOrBuilder();
} else {
if (optionsCase_ == 12) {
return (com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions) options_;
}
return com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.getDefaultInstance();
}
}
/**
*
*
*
* Optional. Additional information about iceberg tables.
*
*
*
* .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions,
com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.Builder,
com.google.cloud.dataplex.v1.StorageFormat.IcebergOptionsOrBuilder>
getIcebergFieldBuilder() {
if (icebergBuilder_ == null) {
if (!(optionsCase_ == 12)) {
options_ = com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.getDefaultInstance();
}
icebergBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions,
com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.Builder,
com.google.cloud.dataplex.v1.StorageFormat.IcebergOptionsOrBuilder>(
(com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions) options_,
getParentForChildren(),
isClean());
options_ = null;
}
optionsCase_ = 12;
onChanged();
return icebergBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.StorageFormat)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.StorageFormat)
private static final com.google.cloud.dataplex.v1.StorageFormat DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.StorageFormat();
}
public static com.google.cloud.dataplex.v1.StorageFormat getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StorageFormat parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.StorageFormat getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy