cz.proto.FileFormat Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clickzetta-java Show documentation
Show all versions of clickzetta-java Show documentation
The java SDK for clickzetta's Lakehouse
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: table_common.proto
package cz.proto;
/**
* Protobuf type {@code cz.proto.FileFormat}
*/
public final class FileFormat extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.FileFormat)
FileFormatOrBuilder {
private static final long serialVersionUID = 0L;
// Use FileFormat.newBuilder() to construct.
private FileFormat(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FileFormat() {
type_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FileFormat();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FileFormat(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 18: {
cz.proto.TextFileFormat.Builder subBuilder = null;
if (formatCase_ == 2) {
subBuilder = ((cz.proto.TextFileFormat) format_).toBuilder();
}
format_ =
input.readMessage(cz.proto.TextFileFormat.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((cz.proto.TextFileFormat) format_);
format_ = subBuilder.buildPartial();
}
formatCase_ = 2;
break;
}
case 26: {
cz.proto.ParquetFileFormat.Builder subBuilder = null;
if (formatCase_ == 3) {
subBuilder = ((cz.proto.ParquetFileFormat) format_).toBuilder();
}
format_ =
input.readMessage(cz.proto.ParquetFileFormat.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((cz.proto.ParquetFileFormat) format_);
format_ = subBuilder.buildPartial();
}
formatCase_ = 3;
break;
}
case 34: {
cz.proto.OrcFileFormat.Builder subBuilder = null;
if (formatCase_ == 4) {
subBuilder = ((cz.proto.OrcFileFormat) format_).toBuilder();
}
format_ =
input.readMessage(cz.proto.OrcFileFormat.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((cz.proto.OrcFileFormat) format_);
format_ = subBuilder.buildPartial();
}
formatCase_ = 4;
break;
}
case 42: {
cz.proto.CsvFileFormat.Builder subBuilder = null;
if (formatCase_ == 5) {
subBuilder = ((cz.proto.CsvFileFormat) format_).toBuilder();
}
format_ =
input.readMessage(cz.proto.CsvFileFormat.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((cz.proto.CsvFileFormat) format_);
format_ = subBuilder.buildPartial();
}
formatCase_ = 5;
break;
}
case 50: {
cz.proto.HiveResultFileFormat.Builder subBuilder = null;
if (formatCase_ == 6) {
subBuilder = ((cz.proto.HiveResultFileFormat) format_).toBuilder();
}
format_ =
input.readMessage(cz.proto.HiveResultFileFormat.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((cz.proto.HiveResultFileFormat) format_);
format_ = subBuilder.buildPartial();
}
formatCase_ = 6;
break;
}
case 58: {
cz.proto.AvroFileFormat.Builder subBuilder = null;
if (formatCase_ == 7) {
subBuilder = ((cz.proto.AvroFileFormat) format_).toBuilder();
}
format_ =
input.readMessage(cz.proto.AvroFileFormat.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((cz.proto.AvroFileFormat) format_);
format_ = subBuilder.buildPartial();
}
formatCase_ = 7;
break;
}
case 66: {
cz.proto.ArrowFileFormat.Builder subBuilder = null;
if (formatCase_ == 8) {
subBuilder = ((cz.proto.ArrowFileFormat) format_).toBuilder();
}
format_ =
input.readMessage(cz.proto.ArrowFileFormat.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((cz.proto.ArrowFileFormat) format_);
format_ = subBuilder.buildPartial();
}
formatCase_ = 8;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.TableCommon.internal_static_cz_proto_FileFormat_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.TableCommon.internal_static_cz_proto_FileFormat_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.FileFormat.class, cz.proto.FileFormat.Builder.class);
}
private int formatCase_ = 0;
private java.lang.Object format_;
public enum FormatCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
TEXTFILE(2),
PARQUET_FILE(3),
ORC_FILE(4),
CSV_FILE(5),
HIVE_RESULT_FILE(6),
AVRO_FILE(7),
ARROW_FILE(8),
FORMAT_NOT_SET(0);
private final int value;
private FormatCase(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 FormatCase valueOf(int value) {
return forNumber(value);
}
public static FormatCase forNumber(int value) {
switch (value) {
case 2: return TEXTFILE;
case 3: return PARQUET_FILE;
case 4: return ORC_FILE;
case 5: return CSV_FILE;
case 6: return HIVE_RESULT_FILE;
case 7: return AVRO_FILE;
case 8: return ARROW_FILE;
case 0: return FORMAT_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public FormatCase
getFormatCase() {
return FormatCase.forNumber(
formatCase_);
}
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
* .cz.proto.FileFormatType type = 1;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .cz.proto.FileFormatType type = 1;
* @return The type.
*/
@java.lang.Override public cz.proto.FileFormatTypeOuterClass.FileFormatType getType() {
@SuppressWarnings("deprecation")
cz.proto.FileFormatTypeOuterClass.FileFormatType result = cz.proto.FileFormatTypeOuterClass.FileFormatType.valueOf(type_);
return result == null ? cz.proto.FileFormatTypeOuterClass.FileFormatType.UNRECOGNIZED : result;
}
public static final int TEXTFILE_FIELD_NUMBER = 2;
/**
* .cz.proto.TextFileFormat textFile = 2;
* @return Whether the textFile field is set.
*/
@java.lang.Override
public boolean hasTextFile() {
return formatCase_ == 2;
}
/**
* .cz.proto.TextFileFormat textFile = 2;
* @return The textFile.
*/
@java.lang.Override
public cz.proto.TextFileFormat getTextFile() {
if (formatCase_ == 2) {
return (cz.proto.TextFileFormat) format_;
}
return cz.proto.TextFileFormat.getDefaultInstance();
}
/**
* .cz.proto.TextFileFormat textFile = 2;
*/
@java.lang.Override
public cz.proto.TextFileFormatOrBuilder getTextFileOrBuilder() {
if (formatCase_ == 2) {
return (cz.proto.TextFileFormat) format_;
}
return cz.proto.TextFileFormat.getDefaultInstance();
}
public static final int PARQUET_FILE_FIELD_NUMBER = 3;
/**
* .cz.proto.ParquetFileFormat parquet_file = 3;
* @return Whether the parquetFile field is set.
*/
@java.lang.Override
public boolean hasParquetFile() {
return formatCase_ == 3;
}
/**
* .cz.proto.ParquetFileFormat parquet_file = 3;
* @return The parquetFile.
*/
@java.lang.Override
public cz.proto.ParquetFileFormat getParquetFile() {
if (formatCase_ == 3) {
return (cz.proto.ParquetFileFormat) format_;
}
return cz.proto.ParquetFileFormat.getDefaultInstance();
}
/**
* .cz.proto.ParquetFileFormat parquet_file = 3;
*/
@java.lang.Override
public cz.proto.ParquetFileFormatOrBuilder getParquetFileOrBuilder() {
if (formatCase_ == 3) {
return (cz.proto.ParquetFileFormat) format_;
}
return cz.proto.ParquetFileFormat.getDefaultInstance();
}
public static final int ORC_FILE_FIELD_NUMBER = 4;
/**
* .cz.proto.OrcFileFormat orc_file = 4;
* @return Whether the orcFile field is set.
*/
@java.lang.Override
public boolean hasOrcFile() {
return formatCase_ == 4;
}
/**
* .cz.proto.OrcFileFormat orc_file = 4;
* @return The orcFile.
*/
@java.lang.Override
public cz.proto.OrcFileFormat getOrcFile() {
if (formatCase_ == 4) {
return (cz.proto.OrcFileFormat) format_;
}
return cz.proto.OrcFileFormat.getDefaultInstance();
}
/**
* .cz.proto.OrcFileFormat orc_file = 4;
*/
@java.lang.Override
public cz.proto.OrcFileFormatOrBuilder getOrcFileOrBuilder() {
if (formatCase_ == 4) {
return (cz.proto.OrcFileFormat) format_;
}
return cz.proto.OrcFileFormat.getDefaultInstance();
}
public static final int CSV_FILE_FIELD_NUMBER = 5;
/**
* .cz.proto.CsvFileFormat csv_file = 5;
* @return Whether the csvFile field is set.
*/
@java.lang.Override
public boolean hasCsvFile() {
return formatCase_ == 5;
}
/**
* .cz.proto.CsvFileFormat csv_file = 5;
* @return The csvFile.
*/
@java.lang.Override
public cz.proto.CsvFileFormat getCsvFile() {
if (formatCase_ == 5) {
return (cz.proto.CsvFileFormat) format_;
}
return cz.proto.CsvFileFormat.getDefaultInstance();
}
/**
* .cz.proto.CsvFileFormat csv_file = 5;
*/
@java.lang.Override
public cz.proto.CsvFileFormatOrBuilder getCsvFileOrBuilder() {
if (formatCase_ == 5) {
return (cz.proto.CsvFileFormat) format_;
}
return cz.proto.CsvFileFormat.getDefaultInstance();
}
public static final int HIVE_RESULT_FILE_FIELD_NUMBER = 6;
/**
* .cz.proto.HiveResultFileFormat hive_result_file = 6;
* @return Whether the hiveResultFile field is set.
*/
@java.lang.Override
public boolean hasHiveResultFile() {
return formatCase_ == 6;
}
/**
* .cz.proto.HiveResultFileFormat hive_result_file = 6;
* @return The hiveResultFile.
*/
@java.lang.Override
public cz.proto.HiveResultFileFormat getHiveResultFile() {
if (formatCase_ == 6) {
return (cz.proto.HiveResultFileFormat) format_;
}
return cz.proto.HiveResultFileFormat.getDefaultInstance();
}
/**
* .cz.proto.HiveResultFileFormat hive_result_file = 6;
*/
@java.lang.Override
public cz.proto.HiveResultFileFormatOrBuilder getHiveResultFileOrBuilder() {
if (formatCase_ == 6) {
return (cz.proto.HiveResultFileFormat) format_;
}
return cz.proto.HiveResultFileFormat.getDefaultInstance();
}
public static final int AVRO_FILE_FIELD_NUMBER = 7;
/**
* .cz.proto.AvroFileFormat avro_file = 7;
* @return Whether the avroFile field is set.
*/
@java.lang.Override
public boolean hasAvroFile() {
return formatCase_ == 7;
}
/**
* .cz.proto.AvroFileFormat avro_file = 7;
* @return The avroFile.
*/
@java.lang.Override
public cz.proto.AvroFileFormat getAvroFile() {
if (formatCase_ == 7) {
return (cz.proto.AvroFileFormat) format_;
}
return cz.proto.AvroFileFormat.getDefaultInstance();
}
/**
* .cz.proto.AvroFileFormat avro_file = 7;
*/
@java.lang.Override
public cz.proto.AvroFileFormatOrBuilder getAvroFileOrBuilder() {
if (formatCase_ == 7) {
return (cz.proto.AvroFileFormat) format_;
}
return cz.proto.AvroFileFormat.getDefaultInstance();
}
public static final int ARROW_FILE_FIELD_NUMBER = 8;
/**
* .cz.proto.ArrowFileFormat arrow_file = 8;
* @return Whether the arrowFile field is set.
*/
@java.lang.Override
public boolean hasArrowFile() {
return formatCase_ == 8;
}
/**
* .cz.proto.ArrowFileFormat arrow_file = 8;
* @return The arrowFile.
*/
@java.lang.Override
public cz.proto.ArrowFileFormat getArrowFile() {
if (formatCase_ == 8) {
return (cz.proto.ArrowFileFormat) format_;
}
return cz.proto.ArrowFileFormat.getDefaultInstance();
}
/**
* .cz.proto.ArrowFileFormat arrow_file = 8;
*/
@java.lang.Override
public cz.proto.ArrowFileFormatOrBuilder getArrowFileOrBuilder() {
if (formatCase_ == 8) {
return (cz.proto.ArrowFileFormat) format_;
}
return cz.proto.ArrowFileFormat.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 (type_ != cz.proto.FileFormatTypeOuterClass.FileFormatType.TEXT.getNumber()) {
output.writeEnum(1, type_);
}
if (formatCase_ == 2) {
output.writeMessage(2, (cz.proto.TextFileFormat) format_);
}
if (formatCase_ == 3) {
output.writeMessage(3, (cz.proto.ParquetFileFormat) format_);
}
if (formatCase_ == 4) {
output.writeMessage(4, (cz.proto.OrcFileFormat) format_);
}
if (formatCase_ == 5) {
output.writeMessage(5, (cz.proto.CsvFileFormat) format_);
}
if (formatCase_ == 6) {
output.writeMessage(6, (cz.proto.HiveResultFileFormat) format_);
}
if (formatCase_ == 7) {
output.writeMessage(7, (cz.proto.AvroFileFormat) format_);
}
if (formatCase_ == 8) {
output.writeMessage(8, (cz.proto.ArrowFileFormat) format_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (type_ != cz.proto.FileFormatTypeOuterClass.FileFormatType.TEXT.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_);
}
if (formatCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (cz.proto.TextFileFormat) format_);
}
if (formatCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (cz.proto.ParquetFileFormat) format_);
}
if (formatCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (cz.proto.OrcFileFormat) format_);
}
if (formatCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (cz.proto.CsvFileFormat) format_);
}
if (formatCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (cz.proto.HiveResultFileFormat) format_);
}
if (formatCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (cz.proto.AvroFileFormat) format_);
}
if (formatCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (cz.proto.ArrowFileFormat) format_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cz.proto.FileFormat)) {
return super.equals(obj);
}
cz.proto.FileFormat other = (cz.proto.FileFormat) obj;
if (type_ != other.type_) return false;
if (!getFormatCase().equals(other.getFormatCase())) return false;
switch (formatCase_) {
case 2:
if (!getTextFile()
.equals(other.getTextFile())) return false;
break;
case 3:
if (!getParquetFile()
.equals(other.getParquetFile())) return false;
break;
case 4:
if (!getOrcFile()
.equals(other.getOrcFile())) return false;
break;
case 5:
if (!getCsvFile()
.equals(other.getCsvFile())) return false;
break;
case 6:
if (!getHiveResultFile()
.equals(other.getHiveResultFile())) return false;
break;
case 7:
if (!getAvroFile()
.equals(other.getAvroFile())) return false;
break;
case 8:
if (!getArrowFile()
.equals(other.getArrowFile())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) 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) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
switch (formatCase_) {
case 2:
hash = (37 * hash) + TEXTFILE_FIELD_NUMBER;
hash = (53 * hash) + getTextFile().hashCode();
break;
case 3:
hash = (37 * hash) + PARQUET_FILE_FIELD_NUMBER;
hash = (53 * hash) + getParquetFile().hashCode();
break;
case 4:
hash = (37 * hash) + ORC_FILE_FIELD_NUMBER;
hash = (53 * hash) + getOrcFile().hashCode();
break;
case 5:
hash = (37 * hash) + CSV_FILE_FIELD_NUMBER;
hash = (53 * hash) + getCsvFile().hashCode();
break;
case 6:
hash = (37 * hash) + HIVE_RESULT_FILE_FIELD_NUMBER;
hash = (53 * hash) + getHiveResultFile().hashCode();
break;
case 7:
hash = (37 * hash) + AVRO_FILE_FIELD_NUMBER;
hash = (53 * hash) + getAvroFile().hashCode();
break;
case 8:
hash = (37 * hash) + ARROW_FILE_FIELD_NUMBER;
hash = (53 * hash) + getArrowFile().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.FileFormat parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.FileFormat parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.FileFormat parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.FileFormat parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.FileFormat parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.FileFormat parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.FileFormat parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.FileFormat 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 cz.proto.FileFormat parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.FileFormat 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 cz.proto.FileFormat parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.FileFormat 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(cz.proto.FileFormat 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;
}
/**
* Protobuf type {@code cz.proto.FileFormat}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.FileFormat)
cz.proto.FileFormatOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.TableCommon.internal_static_cz_proto_FileFormat_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.TableCommon.internal_static_cz_proto_FileFormat_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.FileFormat.class, cz.proto.FileFormat.Builder.class);
}
// Construct using cz.proto.FileFormat.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
type_ = 0;
formatCase_ = 0;
format_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.TableCommon.internal_static_cz_proto_FileFormat_descriptor;
}
@java.lang.Override
public cz.proto.FileFormat getDefaultInstanceForType() {
return cz.proto.FileFormat.getDefaultInstance();
}
@java.lang.Override
public cz.proto.FileFormat build() {
cz.proto.FileFormat result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.FileFormat buildPartial() {
cz.proto.FileFormat result = new cz.proto.FileFormat(this);
result.type_ = type_;
if (formatCase_ == 2) {
if (textFileBuilder_ == null) {
result.format_ = format_;
} else {
result.format_ = textFileBuilder_.build();
}
}
if (formatCase_ == 3) {
if (parquetFileBuilder_ == null) {
result.format_ = format_;
} else {
result.format_ = parquetFileBuilder_.build();
}
}
if (formatCase_ == 4) {
if (orcFileBuilder_ == null) {
result.format_ = format_;
} else {
result.format_ = orcFileBuilder_.build();
}
}
if (formatCase_ == 5) {
if (csvFileBuilder_ == null) {
result.format_ = format_;
} else {
result.format_ = csvFileBuilder_.build();
}
}
if (formatCase_ == 6) {
if (hiveResultFileBuilder_ == null) {
result.format_ = format_;
} else {
result.format_ = hiveResultFileBuilder_.build();
}
}
if (formatCase_ == 7) {
if (avroFileBuilder_ == null) {
result.format_ = format_;
} else {
result.format_ = avroFileBuilder_.build();
}
}
if (formatCase_ == 8) {
if (arrowFileBuilder_ == null) {
result.format_ = format_;
} else {
result.format_ = arrowFileBuilder_.build();
}
}
result.formatCase_ = formatCase_;
onBuilt();
return result;
}
@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 cz.proto.FileFormat) {
return mergeFrom((cz.proto.FileFormat)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.FileFormat other) {
if (other == cz.proto.FileFormat.getDefaultInstance()) return this;
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
switch (other.getFormatCase()) {
case TEXTFILE: {
mergeTextFile(other.getTextFile());
break;
}
case PARQUET_FILE: {
mergeParquetFile(other.getParquetFile());
break;
}
case ORC_FILE: {
mergeOrcFile(other.getOrcFile());
break;
}
case CSV_FILE: {
mergeCsvFile(other.getCsvFile());
break;
}
case HIVE_RESULT_FILE: {
mergeHiveResultFile(other.getHiveResultFile());
break;
}
case AVRO_FILE: {
mergeAvroFile(other.getAvroFile());
break;
}
case ARROW_FILE: {
mergeArrowFile(other.getArrowFile());
break;
}
case FORMAT_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
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 {
cz.proto.FileFormat parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.FileFormat) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int formatCase_ = 0;
private java.lang.Object format_;
public FormatCase
getFormatCase() {
return FormatCase.forNumber(
formatCase_);
}
public Builder clearFormat() {
formatCase_ = 0;
format_ = null;
onChanged();
return this;
}
private int type_ = 0;
/**
* .cz.proto.FileFormatType type = 1;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .cz.proto.FileFormatType type = 1;
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
* .cz.proto.FileFormatType type = 1;
* @return The type.
*/
@java.lang.Override
public cz.proto.FileFormatTypeOuterClass.FileFormatType getType() {
@SuppressWarnings("deprecation")
cz.proto.FileFormatTypeOuterClass.FileFormatType result = cz.proto.FileFormatTypeOuterClass.FileFormatType.valueOf(type_);
return result == null ? cz.proto.FileFormatTypeOuterClass.FileFormatType.UNRECOGNIZED : result;
}
/**
* .cz.proto.FileFormatType type = 1;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(cz.proto.FileFormatTypeOuterClass.FileFormatType value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
* .cz.proto.FileFormatType type = 1;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.TextFileFormat, cz.proto.TextFileFormat.Builder, cz.proto.TextFileFormatOrBuilder> textFileBuilder_;
/**
* .cz.proto.TextFileFormat textFile = 2;
* @return Whether the textFile field is set.
*/
@java.lang.Override
public boolean hasTextFile() {
return formatCase_ == 2;
}
/**
* .cz.proto.TextFileFormat textFile = 2;
* @return The textFile.
*/
@java.lang.Override
public cz.proto.TextFileFormat getTextFile() {
if (textFileBuilder_ == null) {
if (formatCase_ == 2) {
return (cz.proto.TextFileFormat) format_;
}
return cz.proto.TextFileFormat.getDefaultInstance();
} else {
if (formatCase_ == 2) {
return textFileBuilder_.getMessage();
}
return cz.proto.TextFileFormat.getDefaultInstance();
}
}
/**
* .cz.proto.TextFileFormat textFile = 2;
*/
public Builder setTextFile(cz.proto.TextFileFormat value) {
if (textFileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
format_ = value;
onChanged();
} else {
textFileBuilder_.setMessage(value);
}
formatCase_ = 2;
return this;
}
/**
* .cz.proto.TextFileFormat textFile = 2;
*/
public Builder setTextFile(
cz.proto.TextFileFormat.Builder builderForValue) {
if (textFileBuilder_ == null) {
format_ = builderForValue.build();
onChanged();
} else {
textFileBuilder_.setMessage(builderForValue.build());
}
formatCase_ = 2;
return this;
}
/**
* .cz.proto.TextFileFormat textFile = 2;
*/
public Builder mergeTextFile(cz.proto.TextFileFormat value) {
if (textFileBuilder_ == null) {
if (formatCase_ == 2 &&
format_ != cz.proto.TextFileFormat.getDefaultInstance()) {
format_ = cz.proto.TextFileFormat.newBuilder((cz.proto.TextFileFormat) format_)
.mergeFrom(value).buildPartial();
} else {
format_ = value;
}
onChanged();
} else {
if (formatCase_ == 2) {
textFileBuilder_.mergeFrom(value);
}
textFileBuilder_.setMessage(value);
}
formatCase_ = 2;
return this;
}
/**
* .cz.proto.TextFileFormat textFile = 2;
*/
public Builder clearTextFile() {
if (textFileBuilder_ == null) {
if (formatCase_ == 2) {
formatCase_ = 0;
format_ = null;
onChanged();
}
} else {
if (formatCase_ == 2) {
formatCase_ = 0;
format_ = null;
}
textFileBuilder_.clear();
}
return this;
}
/**
* .cz.proto.TextFileFormat textFile = 2;
*/
public cz.proto.TextFileFormat.Builder getTextFileBuilder() {
return getTextFileFieldBuilder().getBuilder();
}
/**
* .cz.proto.TextFileFormat textFile = 2;
*/
@java.lang.Override
public cz.proto.TextFileFormatOrBuilder getTextFileOrBuilder() {
if ((formatCase_ == 2) && (textFileBuilder_ != null)) {
return textFileBuilder_.getMessageOrBuilder();
} else {
if (formatCase_ == 2) {
return (cz.proto.TextFileFormat) format_;
}
return cz.proto.TextFileFormat.getDefaultInstance();
}
}
/**
* .cz.proto.TextFileFormat textFile = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.TextFileFormat, cz.proto.TextFileFormat.Builder, cz.proto.TextFileFormatOrBuilder>
getTextFileFieldBuilder() {
if (textFileBuilder_ == null) {
if (!(formatCase_ == 2)) {
format_ = cz.proto.TextFileFormat.getDefaultInstance();
}
textFileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.TextFileFormat, cz.proto.TextFileFormat.Builder, cz.proto.TextFileFormatOrBuilder>(
(cz.proto.TextFileFormat) format_,
getParentForChildren(),
isClean());
format_ = null;
}
formatCase_ = 2;
onChanged();;
return textFileBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.ParquetFileFormat, cz.proto.ParquetFileFormat.Builder, cz.proto.ParquetFileFormatOrBuilder> parquetFileBuilder_;
/**
* .cz.proto.ParquetFileFormat parquet_file = 3;
* @return Whether the parquetFile field is set.
*/
@java.lang.Override
public boolean hasParquetFile() {
return formatCase_ == 3;
}
/**
* .cz.proto.ParquetFileFormat parquet_file = 3;
* @return The parquetFile.
*/
@java.lang.Override
public cz.proto.ParquetFileFormat getParquetFile() {
if (parquetFileBuilder_ == null) {
if (formatCase_ == 3) {
return (cz.proto.ParquetFileFormat) format_;
}
return cz.proto.ParquetFileFormat.getDefaultInstance();
} else {
if (formatCase_ == 3) {
return parquetFileBuilder_.getMessage();
}
return cz.proto.ParquetFileFormat.getDefaultInstance();
}
}
/**
* .cz.proto.ParquetFileFormat parquet_file = 3;
*/
public Builder setParquetFile(cz.proto.ParquetFileFormat value) {
if (parquetFileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
format_ = value;
onChanged();
} else {
parquetFileBuilder_.setMessage(value);
}
formatCase_ = 3;
return this;
}
/**
* .cz.proto.ParquetFileFormat parquet_file = 3;
*/
public Builder setParquetFile(
cz.proto.ParquetFileFormat.Builder builderForValue) {
if (parquetFileBuilder_ == null) {
format_ = builderForValue.build();
onChanged();
} else {
parquetFileBuilder_.setMessage(builderForValue.build());
}
formatCase_ = 3;
return this;
}
/**
* .cz.proto.ParquetFileFormat parquet_file = 3;
*/
public Builder mergeParquetFile(cz.proto.ParquetFileFormat value) {
if (parquetFileBuilder_ == null) {
if (formatCase_ == 3 &&
format_ != cz.proto.ParquetFileFormat.getDefaultInstance()) {
format_ = cz.proto.ParquetFileFormat.newBuilder((cz.proto.ParquetFileFormat) format_)
.mergeFrom(value).buildPartial();
} else {
format_ = value;
}
onChanged();
} else {
if (formatCase_ == 3) {
parquetFileBuilder_.mergeFrom(value);
}
parquetFileBuilder_.setMessage(value);
}
formatCase_ = 3;
return this;
}
/**
* .cz.proto.ParquetFileFormat parquet_file = 3;
*/
public Builder clearParquetFile() {
if (parquetFileBuilder_ == null) {
if (formatCase_ == 3) {
formatCase_ = 0;
format_ = null;
onChanged();
}
} else {
if (formatCase_ == 3) {
formatCase_ = 0;
format_ = null;
}
parquetFileBuilder_.clear();
}
return this;
}
/**
* .cz.proto.ParquetFileFormat parquet_file = 3;
*/
public cz.proto.ParquetFileFormat.Builder getParquetFileBuilder() {
return getParquetFileFieldBuilder().getBuilder();
}
/**
* .cz.proto.ParquetFileFormat parquet_file = 3;
*/
@java.lang.Override
public cz.proto.ParquetFileFormatOrBuilder getParquetFileOrBuilder() {
if ((formatCase_ == 3) && (parquetFileBuilder_ != null)) {
return parquetFileBuilder_.getMessageOrBuilder();
} else {
if (formatCase_ == 3) {
return (cz.proto.ParquetFileFormat) format_;
}
return cz.proto.ParquetFileFormat.getDefaultInstance();
}
}
/**
* .cz.proto.ParquetFileFormat parquet_file = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.ParquetFileFormat, cz.proto.ParquetFileFormat.Builder, cz.proto.ParquetFileFormatOrBuilder>
getParquetFileFieldBuilder() {
if (parquetFileBuilder_ == null) {
if (!(formatCase_ == 3)) {
format_ = cz.proto.ParquetFileFormat.getDefaultInstance();
}
parquetFileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.ParquetFileFormat, cz.proto.ParquetFileFormat.Builder, cz.proto.ParquetFileFormatOrBuilder>(
(cz.proto.ParquetFileFormat) format_,
getParentForChildren(),
isClean());
format_ = null;
}
formatCase_ = 3;
onChanged();;
return parquetFileBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.OrcFileFormat, cz.proto.OrcFileFormat.Builder, cz.proto.OrcFileFormatOrBuilder> orcFileBuilder_;
/**
* .cz.proto.OrcFileFormat orc_file = 4;
* @return Whether the orcFile field is set.
*/
@java.lang.Override
public boolean hasOrcFile() {
return formatCase_ == 4;
}
/**
* .cz.proto.OrcFileFormat orc_file = 4;
* @return The orcFile.
*/
@java.lang.Override
public cz.proto.OrcFileFormat getOrcFile() {
if (orcFileBuilder_ == null) {
if (formatCase_ == 4) {
return (cz.proto.OrcFileFormat) format_;
}
return cz.proto.OrcFileFormat.getDefaultInstance();
} else {
if (formatCase_ == 4) {
return orcFileBuilder_.getMessage();
}
return cz.proto.OrcFileFormat.getDefaultInstance();
}
}
/**
* .cz.proto.OrcFileFormat orc_file = 4;
*/
public Builder setOrcFile(cz.proto.OrcFileFormat value) {
if (orcFileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
format_ = value;
onChanged();
} else {
orcFileBuilder_.setMessage(value);
}
formatCase_ = 4;
return this;
}
/**
* .cz.proto.OrcFileFormat orc_file = 4;
*/
public Builder setOrcFile(
cz.proto.OrcFileFormat.Builder builderForValue) {
if (orcFileBuilder_ == null) {
format_ = builderForValue.build();
onChanged();
} else {
orcFileBuilder_.setMessage(builderForValue.build());
}
formatCase_ = 4;
return this;
}
/**
* .cz.proto.OrcFileFormat orc_file = 4;
*/
public Builder mergeOrcFile(cz.proto.OrcFileFormat value) {
if (orcFileBuilder_ == null) {
if (formatCase_ == 4 &&
format_ != cz.proto.OrcFileFormat.getDefaultInstance()) {
format_ = cz.proto.OrcFileFormat.newBuilder((cz.proto.OrcFileFormat) format_)
.mergeFrom(value).buildPartial();
} else {
format_ = value;
}
onChanged();
} else {
if (formatCase_ == 4) {
orcFileBuilder_.mergeFrom(value);
}
orcFileBuilder_.setMessage(value);
}
formatCase_ = 4;
return this;
}
/**
* .cz.proto.OrcFileFormat orc_file = 4;
*/
public Builder clearOrcFile() {
if (orcFileBuilder_ == null) {
if (formatCase_ == 4) {
formatCase_ = 0;
format_ = null;
onChanged();
}
} else {
if (formatCase_ == 4) {
formatCase_ = 0;
format_ = null;
}
orcFileBuilder_.clear();
}
return this;
}
/**
* .cz.proto.OrcFileFormat orc_file = 4;
*/
public cz.proto.OrcFileFormat.Builder getOrcFileBuilder() {
return getOrcFileFieldBuilder().getBuilder();
}
/**
* .cz.proto.OrcFileFormat orc_file = 4;
*/
@java.lang.Override
public cz.proto.OrcFileFormatOrBuilder getOrcFileOrBuilder() {
if ((formatCase_ == 4) && (orcFileBuilder_ != null)) {
return orcFileBuilder_.getMessageOrBuilder();
} else {
if (formatCase_ == 4) {
return (cz.proto.OrcFileFormat) format_;
}
return cz.proto.OrcFileFormat.getDefaultInstance();
}
}
/**
* .cz.proto.OrcFileFormat orc_file = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.OrcFileFormat, cz.proto.OrcFileFormat.Builder, cz.proto.OrcFileFormatOrBuilder>
getOrcFileFieldBuilder() {
if (orcFileBuilder_ == null) {
if (!(formatCase_ == 4)) {
format_ = cz.proto.OrcFileFormat.getDefaultInstance();
}
orcFileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.OrcFileFormat, cz.proto.OrcFileFormat.Builder, cz.proto.OrcFileFormatOrBuilder>(
(cz.proto.OrcFileFormat) format_,
getParentForChildren(),
isClean());
format_ = null;
}
formatCase_ = 4;
onChanged();;
return orcFileBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.CsvFileFormat, cz.proto.CsvFileFormat.Builder, cz.proto.CsvFileFormatOrBuilder> csvFileBuilder_;
/**
* .cz.proto.CsvFileFormat csv_file = 5;
* @return Whether the csvFile field is set.
*/
@java.lang.Override
public boolean hasCsvFile() {
return formatCase_ == 5;
}
/**
* .cz.proto.CsvFileFormat csv_file = 5;
* @return The csvFile.
*/
@java.lang.Override
public cz.proto.CsvFileFormat getCsvFile() {
if (csvFileBuilder_ == null) {
if (formatCase_ == 5) {
return (cz.proto.CsvFileFormat) format_;
}
return cz.proto.CsvFileFormat.getDefaultInstance();
} else {
if (formatCase_ == 5) {
return csvFileBuilder_.getMessage();
}
return cz.proto.CsvFileFormat.getDefaultInstance();
}
}
/**
* .cz.proto.CsvFileFormat csv_file = 5;
*/
public Builder setCsvFile(cz.proto.CsvFileFormat value) {
if (csvFileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
format_ = value;
onChanged();
} else {
csvFileBuilder_.setMessage(value);
}
formatCase_ = 5;
return this;
}
/**
* .cz.proto.CsvFileFormat csv_file = 5;
*/
public Builder setCsvFile(
cz.proto.CsvFileFormat.Builder builderForValue) {
if (csvFileBuilder_ == null) {
format_ = builderForValue.build();
onChanged();
} else {
csvFileBuilder_.setMessage(builderForValue.build());
}
formatCase_ = 5;
return this;
}
/**
* .cz.proto.CsvFileFormat csv_file = 5;
*/
public Builder mergeCsvFile(cz.proto.CsvFileFormat value) {
if (csvFileBuilder_ == null) {
if (formatCase_ == 5 &&
format_ != cz.proto.CsvFileFormat.getDefaultInstance()) {
format_ = cz.proto.CsvFileFormat.newBuilder((cz.proto.CsvFileFormat) format_)
.mergeFrom(value).buildPartial();
} else {
format_ = value;
}
onChanged();
} else {
if (formatCase_ == 5) {
csvFileBuilder_.mergeFrom(value);
}
csvFileBuilder_.setMessage(value);
}
formatCase_ = 5;
return this;
}
/**
* .cz.proto.CsvFileFormat csv_file = 5;
*/
public Builder clearCsvFile() {
if (csvFileBuilder_ == null) {
if (formatCase_ == 5) {
formatCase_ = 0;
format_ = null;
onChanged();
}
} else {
if (formatCase_ == 5) {
formatCase_ = 0;
format_ = null;
}
csvFileBuilder_.clear();
}
return this;
}
/**
* .cz.proto.CsvFileFormat csv_file = 5;
*/
public cz.proto.CsvFileFormat.Builder getCsvFileBuilder() {
return getCsvFileFieldBuilder().getBuilder();
}
/**
* .cz.proto.CsvFileFormat csv_file = 5;
*/
@java.lang.Override
public cz.proto.CsvFileFormatOrBuilder getCsvFileOrBuilder() {
if ((formatCase_ == 5) && (csvFileBuilder_ != null)) {
return csvFileBuilder_.getMessageOrBuilder();
} else {
if (formatCase_ == 5) {
return (cz.proto.CsvFileFormat) format_;
}
return cz.proto.CsvFileFormat.getDefaultInstance();
}
}
/**
* .cz.proto.CsvFileFormat csv_file = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.CsvFileFormat, cz.proto.CsvFileFormat.Builder, cz.proto.CsvFileFormatOrBuilder>
getCsvFileFieldBuilder() {
if (csvFileBuilder_ == null) {
if (!(formatCase_ == 5)) {
format_ = cz.proto.CsvFileFormat.getDefaultInstance();
}
csvFileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.CsvFileFormat, cz.proto.CsvFileFormat.Builder, cz.proto.CsvFileFormatOrBuilder>(
(cz.proto.CsvFileFormat) format_,
getParentForChildren(),
isClean());
format_ = null;
}
formatCase_ = 5;
onChanged();;
return csvFileBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.HiveResultFileFormat, cz.proto.HiveResultFileFormat.Builder, cz.proto.HiveResultFileFormatOrBuilder> hiveResultFileBuilder_;
/**
* .cz.proto.HiveResultFileFormat hive_result_file = 6;
* @return Whether the hiveResultFile field is set.
*/
@java.lang.Override
public boolean hasHiveResultFile() {
return formatCase_ == 6;
}
/**
* .cz.proto.HiveResultFileFormat hive_result_file = 6;
* @return The hiveResultFile.
*/
@java.lang.Override
public cz.proto.HiveResultFileFormat getHiveResultFile() {
if (hiveResultFileBuilder_ == null) {
if (formatCase_ == 6) {
return (cz.proto.HiveResultFileFormat) format_;
}
return cz.proto.HiveResultFileFormat.getDefaultInstance();
} else {
if (formatCase_ == 6) {
return hiveResultFileBuilder_.getMessage();
}
return cz.proto.HiveResultFileFormat.getDefaultInstance();
}
}
/**
* .cz.proto.HiveResultFileFormat hive_result_file = 6;
*/
public Builder setHiveResultFile(cz.proto.HiveResultFileFormat value) {
if (hiveResultFileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
format_ = value;
onChanged();
} else {
hiveResultFileBuilder_.setMessage(value);
}
formatCase_ = 6;
return this;
}
/**
* .cz.proto.HiveResultFileFormat hive_result_file = 6;
*/
public Builder setHiveResultFile(
cz.proto.HiveResultFileFormat.Builder builderForValue) {
if (hiveResultFileBuilder_ == null) {
format_ = builderForValue.build();
onChanged();
} else {
hiveResultFileBuilder_.setMessage(builderForValue.build());
}
formatCase_ = 6;
return this;
}
/**
* .cz.proto.HiveResultFileFormat hive_result_file = 6;
*/
public Builder mergeHiveResultFile(cz.proto.HiveResultFileFormat value) {
if (hiveResultFileBuilder_ == null) {
if (formatCase_ == 6 &&
format_ != cz.proto.HiveResultFileFormat.getDefaultInstance()) {
format_ = cz.proto.HiveResultFileFormat.newBuilder((cz.proto.HiveResultFileFormat) format_)
.mergeFrom(value).buildPartial();
} else {
format_ = value;
}
onChanged();
} else {
if (formatCase_ == 6) {
hiveResultFileBuilder_.mergeFrom(value);
}
hiveResultFileBuilder_.setMessage(value);
}
formatCase_ = 6;
return this;
}
/**
* .cz.proto.HiveResultFileFormat hive_result_file = 6;
*/
public Builder clearHiveResultFile() {
if (hiveResultFileBuilder_ == null) {
if (formatCase_ == 6) {
formatCase_ = 0;
format_ = null;
onChanged();
}
} else {
if (formatCase_ == 6) {
formatCase_ = 0;
format_ = null;
}
hiveResultFileBuilder_.clear();
}
return this;
}
/**
* .cz.proto.HiveResultFileFormat hive_result_file = 6;
*/
public cz.proto.HiveResultFileFormat.Builder getHiveResultFileBuilder() {
return getHiveResultFileFieldBuilder().getBuilder();
}
/**
* .cz.proto.HiveResultFileFormat hive_result_file = 6;
*/
@java.lang.Override
public cz.proto.HiveResultFileFormatOrBuilder getHiveResultFileOrBuilder() {
if ((formatCase_ == 6) && (hiveResultFileBuilder_ != null)) {
return hiveResultFileBuilder_.getMessageOrBuilder();
} else {
if (formatCase_ == 6) {
return (cz.proto.HiveResultFileFormat) format_;
}
return cz.proto.HiveResultFileFormat.getDefaultInstance();
}
}
/**
* .cz.proto.HiveResultFileFormat hive_result_file = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.HiveResultFileFormat, cz.proto.HiveResultFileFormat.Builder, cz.proto.HiveResultFileFormatOrBuilder>
getHiveResultFileFieldBuilder() {
if (hiveResultFileBuilder_ == null) {
if (!(formatCase_ == 6)) {
format_ = cz.proto.HiveResultFileFormat.getDefaultInstance();
}
hiveResultFileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.HiveResultFileFormat, cz.proto.HiveResultFileFormat.Builder, cz.proto.HiveResultFileFormatOrBuilder>(
(cz.proto.HiveResultFileFormat) format_,
getParentForChildren(),
isClean());
format_ = null;
}
formatCase_ = 6;
onChanged();;
return hiveResultFileBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.AvroFileFormat, cz.proto.AvroFileFormat.Builder, cz.proto.AvroFileFormatOrBuilder> avroFileBuilder_;
/**
* .cz.proto.AvroFileFormat avro_file = 7;
* @return Whether the avroFile field is set.
*/
@java.lang.Override
public boolean hasAvroFile() {
return formatCase_ == 7;
}
/**
* .cz.proto.AvroFileFormat avro_file = 7;
* @return The avroFile.
*/
@java.lang.Override
public cz.proto.AvroFileFormat getAvroFile() {
if (avroFileBuilder_ == null) {
if (formatCase_ == 7) {
return (cz.proto.AvroFileFormat) format_;
}
return cz.proto.AvroFileFormat.getDefaultInstance();
} else {
if (formatCase_ == 7) {
return avroFileBuilder_.getMessage();
}
return cz.proto.AvroFileFormat.getDefaultInstance();
}
}
/**
* .cz.proto.AvroFileFormat avro_file = 7;
*/
public Builder setAvroFile(cz.proto.AvroFileFormat value) {
if (avroFileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
format_ = value;
onChanged();
} else {
avroFileBuilder_.setMessage(value);
}
formatCase_ = 7;
return this;
}
/**
* .cz.proto.AvroFileFormat avro_file = 7;
*/
public Builder setAvroFile(
cz.proto.AvroFileFormat.Builder builderForValue) {
if (avroFileBuilder_ == null) {
format_ = builderForValue.build();
onChanged();
} else {
avroFileBuilder_.setMessage(builderForValue.build());
}
formatCase_ = 7;
return this;
}
/**
* .cz.proto.AvroFileFormat avro_file = 7;
*/
public Builder mergeAvroFile(cz.proto.AvroFileFormat value) {
if (avroFileBuilder_ == null) {
if (formatCase_ == 7 &&
format_ != cz.proto.AvroFileFormat.getDefaultInstance()) {
format_ = cz.proto.AvroFileFormat.newBuilder((cz.proto.AvroFileFormat) format_)
.mergeFrom(value).buildPartial();
} else {
format_ = value;
}
onChanged();
} else {
if (formatCase_ == 7) {
avroFileBuilder_.mergeFrom(value);
}
avroFileBuilder_.setMessage(value);
}
formatCase_ = 7;
return this;
}
/**
* .cz.proto.AvroFileFormat avro_file = 7;
*/
public Builder clearAvroFile() {
if (avroFileBuilder_ == null) {
if (formatCase_ == 7) {
formatCase_ = 0;
format_ = null;
onChanged();
}
} else {
if (formatCase_ == 7) {
formatCase_ = 0;
format_ = null;
}
avroFileBuilder_.clear();
}
return this;
}
/**
* .cz.proto.AvroFileFormat avro_file = 7;
*/
public cz.proto.AvroFileFormat.Builder getAvroFileBuilder() {
return getAvroFileFieldBuilder().getBuilder();
}
/**
* .cz.proto.AvroFileFormat avro_file = 7;
*/
@java.lang.Override
public cz.proto.AvroFileFormatOrBuilder getAvroFileOrBuilder() {
if ((formatCase_ == 7) && (avroFileBuilder_ != null)) {
return avroFileBuilder_.getMessageOrBuilder();
} else {
if (formatCase_ == 7) {
return (cz.proto.AvroFileFormat) format_;
}
return cz.proto.AvroFileFormat.getDefaultInstance();
}
}
/**
* .cz.proto.AvroFileFormat avro_file = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.AvroFileFormat, cz.proto.AvroFileFormat.Builder, cz.proto.AvroFileFormatOrBuilder>
getAvroFileFieldBuilder() {
if (avroFileBuilder_ == null) {
if (!(formatCase_ == 7)) {
format_ = cz.proto.AvroFileFormat.getDefaultInstance();
}
avroFileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.AvroFileFormat, cz.proto.AvroFileFormat.Builder, cz.proto.AvroFileFormatOrBuilder>(
(cz.proto.AvroFileFormat) format_,
getParentForChildren(),
isClean());
format_ = null;
}
formatCase_ = 7;
onChanged();;
return avroFileBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.ArrowFileFormat, cz.proto.ArrowFileFormat.Builder, cz.proto.ArrowFileFormatOrBuilder> arrowFileBuilder_;
/**
* .cz.proto.ArrowFileFormat arrow_file = 8;
* @return Whether the arrowFile field is set.
*/
@java.lang.Override
public boolean hasArrowFile() {
return formatCase_ == 8;
}
/**
* .cz.proto.ArrowFileFormat arrow_file = 8;
* @return The arrowFile.
*/
@java.lang.Override
public cz.proto.ArrowFileFormat getArrowFile() {
if (arrowFileBuilder_ == null) {
if (formatCase_ == 8) {
return (cz.proto.ArrowFileFormat) format_;
}
return cz.proto.ArrowFileFormat.getDefaultInstance();
} else {
if (formatCase_ == 8) {
return arrowFileBuilder_.getMessage();
}
return cz.proto.ArrowFileFormat.getDefaultInstance();
}
}
/**
* .cz.proto.ArrowFileFormat arrow_file = 8;
*/
public Builder setArrowFile(cz.proto.ArrowFileFormat value) {
if (arrowFileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
format_ = value;
onChanged();
} else {
arrowFileBuilder_.setMessage(value);
}
formatCase_ = 8;
return this;
}
/**
* .cz.proto.ArrowFileFormat arrow_file = 8;
*/
public Builder setArrowFile(
cz.proto.ArrowFileFormat.Builder builderForValue) {
if (arrowFileBuilder_ == null) {
format_ = builderForValue.build();
onChanged();
} else {
arrowFileBuilder_.setMessage(builderForValue.build());
}
formatCase_ = 8;
return this;
}
/**
* .cz.proto.ArrowFileFormat arrow_file = 8;
*/
public Builder mergeArrowFile(cz.proto.ArrowFileFormat value) {
if (arrowFileBuilder_ == null) {
if (formatCase_ == 8 &&
format_ != cz.proto.ArrowFileFormat.getDefaultInstance()) {
format_ = cz.proto.ArrowFileFormat.newBuilder((cz.proto.ArrowFileFormat) format_)
.mergeFrom(value).buildPartial();
} else {
format_ = value;
}
onChanged();
} else {
if (formatCase_ == 8) {
arrowFileBuilder_.mergeFrom(value);
}
arrowFileBuilder_.setMessage(value);
}
formatCase_ = 8;
return this;
}
/**
* .cz.proto.ArrowFileFormat arrow_file = 8;
*/
public Builder clearArrowFile() {
if (arrowFileBuilder_ == null) {
if (formatCase_ == 8) {
formatCase_ = 0;
format_ = null;
onChanged();
}
} else {
if (formatCase_ == 8) {
formatCase_ = 0;
format_ = null;
}
arrowFileBuilder_.clear();
}
return this;
}
/**
* .cz.proto.ArrowFileFormat arrow_file = 8;
*/
public cz.proto.ArrowFileFormat.Builder getArrowFileBuilder() {
return getArrowFileFieldBuilder().getBuilder();
}
/**
* .cz.proto.ArrowFileFormat arrow_file = 8;
*/
@java.lang.Override
public cz.proto.ArrowFileFormatOrBuilder getArrowFileOrBuilder() {
if ((formatCase_ == 8) && (arrowFileBuilder_ != null)) {
return arrowFileBuilder_.getMessageOrBuilder();
} else {
if (formatCase_ == 8) {
return (cz.proto.ArrowFileFormat) format_;
}
return cz.proto.ArrowFileFormat.getDefaultInstance();
}
}
/**
* .cz.proto.ArrowFileFormat arrow_file = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.ArrowFileFormat, cz.proto.ArrowFileFormat.Builder, cz.proto.ArrowFileFormatOrBuilder>
getArrowFileFieldBuilder() {
if (arrowFileBuilder_ == null) {
if (!(formatCase_ == 8)) {
format_ = cz.proto.ArrowFileFormat.getDefaultInstance();
}
arrowFileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.ArrowFileFormat, cz.proto.ArrowFileFormat.Builder, cz.proto.ArrowFileFormatOrBuilder>(
(cz.proto.ArrowFileFormat) format_,
getParentForChildren(),
isClean());
format_ = null;
}
formatCase_ = 8;
onChanged();;
return arrowFileBuilder_;
}
@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:cz.proto.FileFormat)
}
// @@protoc_insertion_point(class_scope:cz.proto.FileFormat)
private static final cz.proto.FileFormat DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.FileFormat();
}
public static cz.proto.FileFormat getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FileFormat parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FileFormat(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cz.proto.FileFormat getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy