com.dimajix.flowman.kernel.proto.Field Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: dataframe.proto
package com.dimajix.flowman.kernel.proto;
/**
* Protobuf type {@code com.dimajix.flowman.kernel.Field}
*/
public final class Field extends
com.dimajix.shaded.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.dimajix.flowman.kernel.Field)
FieldOrBuilder {
private static final long serialVersionUID = 0L;
// Use Field.newBuilder() to construct.
private Field(com.dimajix.shaded.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Field() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Field();
}
public static final com.dimajix.shaded.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.dimajix.flowman.kernel.proto.DataFrameProto.internal_static_com_dimajix_flowman_kernel_Field_descriptor;
}
@java.lang.Override
protected com.dimajix.shaded.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.dimajix.flowman.kernel.proto.DataFrameProto.internal_static_com_dimajix_flowman_kernel_Field_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.dimajix.flowman.kernel.proto.Field.class, com.dimajix.flowman.kernel.proto.Field.Builder.class);
}
private int valueCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object value_;
public enum ValueCase
implements com.dimajix.shaded.protobuf.Internal.EnumLite,
com.dimajix.shaded.protobuf.AbstractMessage.InternalOneOfEnum {
DOUBLE(1),
LONG(2),
BOOL(3),
STRING(4),
BYTES(5),
TIMESTAMP(6),
DATE(7),
MAP(8),
ARRAY(9),
ROW(10),
NULL(11),
VALUE_NOT_SET(0);
private final int value;
private ValueCase(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 ValueCase valueOf(int value) {
return forNumber(value);
}
public static ValueCase forNumber(int value) {
switch (value) {
case 1: return DOUBLE;
case 2: return LONG;
case 3: return BOOL;
case 4: return STRING;
case 5: return BYTES;
case 6: return TIMESTAMP;
case 7: return DATE;
case 8: return MAP;
case 9: return ARRAY;
case 10: return ROW;
case 11: return NULL;
case 0: return VALUE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ValueCase
getValueCase() {
return ValueCase.forNumber(
valueCase_);
}
public static final int DOUBLE_FIELD_NUMBER = 1;
/**
* double double = 1;
* @return Whether the double field is set.
*/
@java.lang.Override
public boolean hasDouble() {
return valueCase_ == 1;
}
/**
* double double = 1;
* @return The double.
*/
@java.lang.Override
public double getDouble() {
if (valueCase_ == 1) {
return (java.lang.Double) value_;
}
return 0D;
}
public static final int LONG_FIELD_NUMBER = 2;
/**
* int64 long = 2;
* @return Whether the long field is set.
*/
@java.lang.Override
public boolean hasLong() {
return valueCase_ == 2;
}
/**
* int64 long = 2;
* @return The long.
*/
@java.lang.Override
public long getLong() {
if (valueCase_ == 2) {
return (java.lang.Long) value_;
}
return 0L;
}
public static final int BOOL_FIELD_NUMBER = 3;
/**
* bool bool = 3;
* @return Whether the bool field is set.
*/
@java.lang.Override
public boolean hasBool() {
return valueCase_ == 3;
}
/**
* bool bool = 3;
* @return The bool.
*/
@java.lang.Override
public boolean getBool() {
if (valueCase_ == 3) {
return (java.lang.Boolean) value_;
}
return false;
}
public static final int STRING_FIELD_NUMBER = 4;
/**
* string string = 4;
* @return Whether the string field is set.
*/
public boolean hasString() {
return valueCase_ == 4;
}
/**
* string string = 4;
* @return The string.
*/
public java.lang.String getString() {
java.lang.Object ref = "";
if (valueCase_ == 4) {
ref = value_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.dimajix.shaded.protobuf.ByteString bs =
(com.dimajix.shaded.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (valueCase_ == 4) {
value_ = s;
}
return s;
}
}
/**
* string string = 4;
* @return The bytes for string.
*/
public com.dimajix.shaded.protobuf.ByteString
getStringBytes() {
java.lang.Object ref = "";
if (valueCase_ == 4) {
ref = value_;
}
if (ref instanceof java.lang.String) {
com.dimajix.shaded.protobuf.ByteString b =
com.dimajix.shaded.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (valueCase_ == 4) {
value_ = b;
}
return b;
} else {
return (com.dimajix.shaded.protobuf.ByteString) ref;
}
}
public static final int BYTES_FIELD_NUMBER = 5;
/**
* bytes bytes = 5;
* @return Whether the bytes field is set.
*/
@java.lang.Override
public boolean hasBytes() {
return valueCase_ == 5;
}
/**
* bytes bytes = 5;
* @return The bytes.
*/
@java.lang.Override
public com.dimajix.shaded.protobuf.ByteString getBytes() {
if (valueCase_ == 5) {
return (com.dimajix.shaded.protobuf.ByteString) value_;
}
return com.google.protobuf.ByteString.EMPTY;
}
public static final int TIMESTAMP_FIELD_NUMBER = 6;
/**
* .com.dimajix.flowman.kernel.Timestamp timestamp = 6;
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return valueCase_ == 6;
}
/**
* .com.dimajix.flowman.kernel.Timestamp timestamp = 6;
* @return The timestamp.
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.Timestamp getTimestamp() {
if (valueCase_ == 6) {
return (com.dimajix.flowman.kernel.proto.Timestamp) value_;
}
return com.dimajix.flowman.kernel.proto.Timestamp.getDefaultInstance();
}
/**
* .com.dimajix.flowman.kernel.Timestamp timestamp = 6;
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.TimestampOrBuilder getTimestampOrBuilder() {
if (valueCase_ == 6) {
return (com.dimajix.flowman.kernel.proto.Timestamp) value_;
}
return com.dimajix.flowman.kernel.proto.Timestamp.getDefaultInstance();
}
public static final int DATE_FIELD_NUMBER = 7;
/**
* .com.dimajix.flowman.kernel.Date date = 7;
* @return Whether the date field is set.
*/
@java.lang.Override
public boolean hasDate() {
return valueCase_ == 7;
}
/**
* .com.dimajix.flowman.kernel.Date date = 7;
* @return The date.
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.Date getDate() {
if (valueCase_ == 7) {
return (com.dimajix.flowman.kernel.proto.Date) value_;
}
return com.dimajix.flowman.kernel.proto.Date.getDefaultInstance();
}
/**
* .com.dimajix.flowman.kernel.Date date = 7;
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.DateOrBuilder getDateOrBuilder() {
if (valueCase_ == 7) {
return (com.dimajix.flowman.kernel.proto.Date) value_;
}
return com.dimajix.flowman.kernel.proto.Date.getDefaultInstance();
}
public static final int MAP_FIELD_NUMBER = 8;
/**
* .com.dimajix.flowman.kernel.Map map = 8;
* @return Whether the map field is set.
*/
@java.lang.Override
public boolean hasMap() {
return valueCase_ == 8;
}
/**
* .com.dimajix.flowman.kernel.Map map = 8;
* @return The map.
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.Map getMap() {
if (valueCase_ == 8) {
return (com.dimajix.flowman.kernel.proto.Map) value_;
}
return com.dimajix.flowman.kernel.proto.Map.getDefaultInstance();
}
/**
* .com.dimajix.flowman.kernel.Map map = 8;
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.MapOrBuilder getMapOrBuilder() {
if (valueCase_ == 8) {
return (com.dimajix.flowman.kernel.proto.Map) value_;
}
return com.dimajix.flowman.kernel.proto.Map.getDefaultInstance();
}
public static final int ARRAY_FIELD_NUMBER = 9;
/**
* .com.dimajix.flowman.kernel.Array array = 9;
* @return Whether the array field is set.
*/
@java.lang.Override
public boolean hasArray() {
return valueCase_ == 9;
}
/**
* .com.dimajix.flowman.kernel.Array array = 9;
* @return The array.
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.Array getArray() {
if (valueCase_ == 9) {
return (com.dimajix.flowman.kernel.proto.Array) value_;
}
return com.dimajix.flowman.kernel.proto.Array.getDefaultInstance();
}
/**
* .com.dimajix.flowman.kernel.Array array = 9;
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.ArrayOrBuilder getArrayOrBuilder() {
if (valueCase_ == 9) {
return (com.dimajix.flowman.kernel.proto.Array) value_;
}
return com.dimajix.flowman.kernel.proto.Array.getDefaultInstance();
}
public static final int ROW_FIELD_NUMBER = 10;
/**
* .com.dimajix.flowman.kernel.Row row = 10;
* @return Whether the row field is set.
*/
@java.lang.Override
public boolean hasRow() {
return valueCase_ == 10;
}
/**
* .com.dimajix.flowman.kernel.Row row = 10;
* @return The row.
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.Row getRow() {
if (valueCase_ == 10) {
return (com.dimajix.flowman.kernel.proto.Row) value_;
}
return com.dimajix.flowman.kernel.proto.Row.getDefaultInstance();
}
/**
* .com.dimajix.flowman.kernel.Row row = 10;
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.RowOrBuilder getRowOrBuilder() {
if (valueCase_ == 10) {
return (com.dimajix.flowman.kernel.proto.Row) value_;
}
return com.dimajix.flowman.kernel.proto.Row.getDefaultInstance();
}
public static final int NULL_FIELD_NUMBER = 11;
/**
* .com.dimajix.flowman.kernel.Null null = 11;
* @return Whether the null field is set.
*/
@java.lang.Override
public boolean hasNull() {
return valueCase_ == 11;
}
/**
* .com.dimajix.flowman.kernel.Null null = 11;
* @return The null.
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.Null getNull() {
if (valueCase_ == 11) {
return (com.dimajix.flowman.kernel.proto.Null) value_;
}
return com.dimajix.flowman.kernel.proto.Null.getDefaultInstance();
}
/**
* .com.dimajix.flowman.kernel.Null null = 11;
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.NullOrBuilder getNullOrBuilder() {
if (valueCase_ == 11) {
return (com.dimajix.flowman.kernel.proto.Null) value_;
}
return com.dimajix.flowman.kernel.proto.Null.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.dimajix.shaded.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (valueCase_ == 1) {
output.writeDouble(
1, (double)((java.lang.Double) value_));
}
if (valueCase_ == 2) {
output.writeInt64(
2, (long)((java.lang.Long) value_));
}
if (valueCase_ == 3) {
output.writeBool(
3, (boolean)((java.lang.Boolean) value_));
}
if (valueCase_ == 4) {
com.dimajix.shaded.protobuf.GeneratedMessageV3.writeString(output, 4, value_);
}
if (valueCase_ == 5) {
output.writeBytes(
5, (com.dimajix.shaded.protobuf.ByteString) value_);
}
if (valueCase_ == 6) {
output.writeMessage(6, (com.dimajix.flowman.kernel.proto.Timestamp) value_);
}
if (valueCase_ == 7) {
output.writeMessage(7, (com.dimajix.flowman.kernel.proto.Date) value_);
}
if (valueCase_ == 8) {
output.writeMessage(8, (com.dimajix.flowman.kernel.proto.Map) value_);
}
if (valueCase_ == 9) {
output.writeMessage(9, (com.dimajix.flowman.kernel.proto.Array) value_);
}
if (valueCase_ == 10) {
output.writeMessage(10, (com.dimajix.flowman.kernel.proto.Row) value_);
}
if (valueCase_ == 11) {
output.writeMessage(11, (com.dimajix.flowman.kernel.proto.Null) value_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (valueCase_ == 1) {
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeDoubleSize(
1, (double)((java.lang.Double) value_));
}
if (valueCase_ == 2) {
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeInt64Size(
2, (long)((java.lang.Long) value_));
}
if (valueCase_ == 3) {
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeBoolSize(
3, (boolean)((java.lang.Boolean) value_));
}
if (valueCase_ == 4) {
size += com.dimajix.shaded.protobuf.GeneratedMessageV3.computeStringSize(4, value_);
}
if (valueCase_ == 5) {
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeBytesSize(
5, (com.dimajix.shaded.protobuf.ByteString) value_);
}
if (valueCase_ == 6) {
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeMessageSize(6, (com.dimajix.flowman.kernel.proto.Timestamp) value_);
}
if (valueCase_ == 7) {
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeMessageSize(7, (com.dimajix.flowman.kernel.proto.Date) value_);
}
if (valueCase_ == 8) {
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeMessageSize(8, (com.dimajix.flowman.kernel.proto.Map) value_);
}
if (valueCase_ == 9) {
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeMessageSize(9, (com.dimajix.flowman.kernel.proto.Array) value_);
}
if (valueCase_ == 10) {
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeMessageSize(10, (com.dimajix.flowman.kernel.proto.Row) value_);
}
if (valueCase_ == 11) {
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeMessageSize(11, (com.dimajix.flowman.kernel.proto.Null) value_);
}
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.dimajix.flowman.kernel.proto.Field)) {
return super.equals(obj);
}
com.dimajix.flowman.kernel.proto.Field other = (com.dimajix.flowman.kernel.proto.Field) obj;
if (!getValueCase().equals(other.getValueCase())) return false;
switch (valueCase_) {
case 1:
if (java.lang.Double.doubleToLongBits(getDouble())
!= java.lang.Double.doubleToLongBits(
other.getDouble())) return false;
break;
case 2:
if (getLong()
!= other.getLong()) return false;
break;
case 3:
if (getBool()
!= other.getBool()) return false;
break;
case 4:
if (!getString()
.equals(other.getString())) return false;
break;
case 5:
if (!getBytes()
.equals(other.getBytes())) return false;
break;
case 6:
if (!getTimestamp()
.equals(other.getTimestamp())) return false;
break;
case 7:
if (!getDate()
.equals(other.getDate())) return false;
break;
case 8:
if (!getMap()
.equals(other.getMap())) return false;
break;
case 9:
if (!getArray()
.equals(other.getArray())) return false;
break;
case 10:
if (!getRow()
.equals(other.getRow())) return false;
break;
case 11:
if (!getNull()
.equals(other.getNull())) 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();
switch (valueCase_) {
case 1:
hash = (37 * hash) + DOUBLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getDouble()));
break;
case 2:
hash = (37 * hash) + LONG_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLong());
break;
case 3:
hash = (37 * hash) + BOOL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getBool());
break;
case 4:
hash = (37 * hash) + STRING_FIELD_NUMBER;
hash = (53 * hash) + getString().hashCode();
break;
case 5:
hash = (37 * hash) + BYTES_FIELD_NUMBER;
hash = (53 * hash) + getBytes().hashCode();
break;
case 6:
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getTimestamp().hashCode();
break;
case 7:
hash = (37 * hash) + DATE_FIELD_NUMBER;
hash = (53 * hash) + getDate().hashCode();
break;
case 8:
hash = (37 * hash) + MAP_FIELD_NUMBER;
hash = (53 * hash) + getMap().hashCode();
break;
case 9:
hash = (37 * hash) + ARRAY_FIELD_NUMBER;
hash = (53 * hash) + getArray().hashCode();
break;
case 10:
hash = (37 * hash) + ROW_FIELD_NUMBER;
hash = (53 * hash) + getRow().hashCode();
break;
case 11:
hash = (37 * hash) + NULL_FIELD_NUMBER;
hash = (53 * hash) + getNull().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.dimajix.flowman.kernel.proto.Field parseFrom(
java.nio.ByteBuffer data)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dimajix.flowman.kernel.proto.Field parseFrom(
java.nio.ByteBuffer data,
com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.dimajix.flowman.kernel.proto.Field parseFrom(
com.dimajix.shaded.protobuf.ByteString data)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dimajix.flowman.kernel.proto.Field parseFrom(
com.dimajix.shaded.protobuf.ByteString data,
com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.dimajix.flowman.kernel.proto.Field parseFrom(byte[] data)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dimajix.flowman.kernel.proto.Field parseFrom(
byte[] data,
com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.dimajix.flowman.kernel.proto.Field parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.dimajix.flowman.kernel.proto.Field parseFrom(
java.io.InputStream input,
com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.dimajix.flowman.kernel.proto.Field parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.dimajix.flowman.kernel.proto.Field parseDelimitedFrom(
java.io.InputStream input,
com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.dimajix.flowman.kernel.proto.Field parseFrom(
com.dimajix.shaded.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.dimajix.flowman.kernel.proto.Field parseFrom(
com.dimajix.shaded.protobuf.CodedInputStream input,
com.dimajix.shaded.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.dimajix.flowman.kernel.proto.Field 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.dimajix.shaded.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.dimajix.flowman.kernel.Field}
*/
public static final class Builder extends
com.dimajix.shaded.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.dimajix.flowman.kernel.Field)
com.dimajix.flowman.kernel.proto.FieldOrBuilder {
public static final com.dimajix.shaded.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.dimajix.flowman.kernel.proto.DataFrameProto.internal_static_com_dimajix_flowman_kernel_Field_descriptor;
}
@java.lang.Override
protected com.dimajix.shaded.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.dimajix.flowman.kernel.proto.DataFrameProto.internal_static_com_dimajix_flowman_kernel_Field_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.dimajix.flowman.kernel.proto.Field.class, com.dimajix.flowman.kernel.proto.Field.Builder.class);
}
// Construct using com.dimajix.flowman.kernel.proto.Field.newBuilder()
private Builder() {
}
private Builder(
com.dimajix.shaded.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (timestampBuilder_ != null) {
timestampBuilder_.clear();
}
if (dateBuilder_ != null) {
dateBuilder_.clear();
}
if (mapBuilder_ != null) {
mapBuilder_.clear();
}
if (arrayBuilder_ != null) {
arrayBuilder_.clear();
}
if (rowBuilder_ != null) {
rowBuilder_.clear();
}
if (nullBuilder_ != null) {
nullBuilder_.clear();
}
valueCase_ = 0;
value_ = null;
return this;
}
@java.lang.Override
public com.dimajix.shaded.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.dimajix.flowman.kernel.proto.DataFrameProto.internal_static_com_dimajix_flowman_kernel_Field_descriptor;
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.Field getDefaultInstanceForType() {
return com.dimajix.flowman.kernel.proto.Field.getDefaultInstance();
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.Field build() {
com.dimajix.flowman.kernel.proto.Field result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.Field buildPartial() {
com.dimajix.flowman.kernel.proto.Field result = new com.dimajix.flowman.kernel.proto.Field(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.dimajix.flowman.kernel.proto.Field result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(com.dimajix.flowman.kernel.proto.Field result) {
result.valueCase_ = valueCase_;
result.value_ = this.value_;
if (valueCase_ == 6 &&
timestampBuilder_ != null) {
result.value_ = timestampBuilder_.build();
}
if (valueCase_ == 7 &&
dateBuilder_ != null) {
result.value_ = dateBuilder_.build();
}
if (valueCase_ == 8 &&
mapBuilder_ != null) {
result.value_ = mapBuilder_.build();
}
if (valueCase_ == 9 &&
arrayBuilder_ != null) {
result.value_ = arrayBuilder_.build();
}
if (valueCase_ == 10 &&
rowBuilder_ != null) {
result.value_ = rowBuilder_.build();
}
if (valueCase_ == 11 &&
nullBuilder_ != null) {
result.value_ = nullBuilder_.build();
}
}
@java.lang.Override
public Builder mergeFrom(com.dimajix.shaded.protobuf.Message other) {
if (other instanceof com.dimajix.flowman.kernel.proto.Field) {
return mergeFrom((com.dimajix.flowman.kernel.proto.Field)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.dimajix.flowman.kernel.proto.Field other) {
if (other == com.dimajix.flowman.kernel.proto.Field.getDefaultInstance()) return this;
switch (other.getValueCase()) {
case DOUBLE: {
setDouble(other.getDouble());
break;
}
case LONG: {
setLong(other.getLong());
break;
}
case BOOL: {
setBool(other.getBool());
break;
}
case STRING: {
valueCase_ = 4;
value_ = other.value_;
onChanged();
break;
}
case BYTES: {
setBytes(other.getBytes());
break;
}
case TIMESTAMP: {
mergeTimestamp(other.getTimestamp());
break;
}
case DATE: {
mergeDate(other.getDate());
break;
}
case MAP: {
mergeMap(other.getMap());
break;
}
case ARRAY: {
mergeArray(other.getArray());
break;
}
case ROW: {
mergeRow(other.getRow());
break;
}
case NULL: {
mergeNull(other.getNull());
break;
}
case VALUE_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.dimajix.shaded.protobuf.CodedInputStream input,
com.dimajix.shaded.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 9: {
value_ = input.readDouble();
valueCase_ = 1;
break;
} // case 9
case 16: {
value_ = input.readInt64();
valueCase_ = 2;
break;
} // case 16
case 24: {
value_ = input.readBool();
valueCase_ = 3;
break;
} // case 24
case 34: {
java.lang.String s = input.readStringRequireUtf8();
valueCase_ = 4;
value_ = s;
break;
} // case 34
case 42: {
value_ = input.readBytes();
valueCase_ = 5;
break;
} // case 42
case 50: {
input.readMessage(
getTimestampFieldBuilder().getBuilder(),
extensionRegistry);
valueCase_ = 6;
break;
} // case 50
case 58: {
input.readMessage(
getDateFieldBuilder().getBuilder(),
extensionRegistry);
valueCase_ = 7;
break;
} // case 58
case 66: {
input.readMessage(
getMapFieldBuilder().getBuilder(),
extensionRegistry);
valueCase_ = 8;
break;
} // case 66
case 74: {
input.readMessage(
getArrayFieldBuilder().getBuilder(),
extensionRegistry);
valueCase_ = 9;
break;
} // case 74
case 82: {
input.readMessage(
getRowFieldBuilder().getBuilder(),
extensionRegistry);
valueCase_ = 10;
break;
} // case 82
case 90: {
input.readMessage(
getNullFieldBuilder().getBuilder(),
extensionRegistry);
valueCase_ = 11;
break;
} // case 90
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.dimajix.shaded.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int valueCase_ = 0;
private java.lang.Object value_;
public ValueCase
getValueCase() {
return ValueCase.forNumber(
valueCase_);
}
public Builder clearValue() {
valueCase_ = 0;
value_ = null;
onChanged();
return this;
}
private int bitField0_;
/**
* double double = 1;
* @return Whether the double field is set.
*/
public boolean hasDouble() {
return valueCase_ == 1;
}
/**
* double double = 1;
* @return The double.
*/
public double getDouble() {
if (valueCase_ == 1) {
return (java.lang.Double) value_;
}
return 0D;
}
/**
* double double = 1;
* @param value The double to set.
* @return This builder for chaining.
*/
public Builder setDouble(double value) {
valueCase_ = 1;
value_ = value;
onChanged();
return this;
}
/**
* double double = 1;
* @return This builder for chaining.
*/
public Builder clearDouble() {
if (valueCase_ == 1) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
/**
* int64 long = 2;
* @return Whether the long field is set.
*/
public boolean hasLong() {
return valueCase_ == 2;
}
/**
* int64 long = 2;
* @return The long.
*/
public long getLong() {
if (valueCase_ == 2) {
return (java.lang.Long) value_;
}
return 0L;
}
/**
* int64 long = 2;
* @param value The long to set.
* @return This builder for chaining.
*/
public Builder setLong(long value) {
valueCase_ = 2;
value_ = value;
onChanged();
return this;
}
/**
* int64 long = 2;
* @return This builder for chaining.
*/
public Builder clearLong() {
if (valueCase_ == 2) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
/**
* bool bool = 3;
* @return Whether the bool field is set.
*/
public boolean hasBool() {
return valueCase_ == 3;
}
/**
* bool bool = 3;
* @return The bool.
*/
public boolean getBool() {
if (valueCase_ == 3) {
return (java.lang.Boolean) value_;
}
return false;
}
/**
* bool bool = 3;
* @param value The bool to set.
* @return This builder for chaining.
*/
public Builder setBool(boolean value) {
valueCase_ = 3;
value_ = value;
onChanged();
return this;
}
/**
* bool bool = 3;
* @return This builder for chaining.
*/
public Builder clearBool() {
if (valueCase_ == 3) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
/**
* string string = 4;
* @return Whether the string field is set.
*/
@java.lang.Override
public boolean hasString() {
return valueCase_ == 4;
}
/**
* string string = 4;
* @return The string.
*/
@java.lang.Override
public java.lang.String getString() {
java.lang.Object ref = "";
if (valueCase_ == 4) {
ref = value_;
}
if (!(ref instanceof java.lang.String)) {
com.dimajix.shaded.protobuf.ByteString bs =
(com.dimajix.shaded.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (valueCase_ == 4) {
value_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string string = 4;
* @return The bytes for string.
*/
@java.lang.Override
public com.dimajix.shaded.protobuf.ByteString
getStringBytes() {
java.lang.Object ref = "";
if (valueCase_ == 4) {
ref = value_;
}
if (ref instanceof String) {
com.dimajix.shaded.protobuf.ByteString b =
com.dimajix.shaded.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (valueCase_ == 4) {
value_ = b;
}
return b;
} else {
return (com.dimajix.shaded.protobuf.ByteString) ref;
}
}
/**
* string string = 4;
* @param value The string to set.
* @return This builder for chaining.
*/
public Builder setString(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
valueCase_ = 4;
value_ = value;
onChanged();
return this;
}
/**
* string string = 4;
* @return This builder for chaining.
*/
public Builder clearString() {
if (valueCase_ == 4) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
/**
* string string = 4;
* @param value The bytes for string to set.
* @return This builder for chaining.
*/
public Builder setStringBytes(
com.dimajix.shaded.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
valueCase_ = 4;
value_ = value;
onChanged();
return this;
}
/**
* bytes bytes = 5;
* @return Whether the bytes field is set.
*/
public boolean hasBytes() {
return valueCase_ == 5;
}
/**
* bytes bytes = 5;
* @return The bytes.
*/
public com.dimajix.shaded.protobuf.ByteString getBytes() {
if (valueCase_ == 5) {
return (com.dimajix.shaded.protobuf.ByteString) value_;
}
return com.google.protobuf.ByteString.EMPTY;
}
/**
* bytes bytes = 5;
* @param value The bytes to set.
* @return This builder for chaining.
*/
public Builder setBytes(com.dimajix.shaded.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
valueCase_ = 5;
value_ = value;
onChanged();
return this;
}
/**
* bytes bytes = 5;
* @return This builder for chaining.
*/
public Builder clearBytes() {
if (valueCase_ == 5) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
private com.dimajix.shaded.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.Timestamp, com.dimajix.flowman.kernel.proto.Timestamp.Builder, com.dimajix.flowman.kernel.proto.TimestampOrBuilder> timestampBuilder_;
/**
* .com.dimajix.flowman.kernel.Timestamp timestamp = 6;
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return valueCase_ == 6;
}
/**
* .com.dimajix.flowman.kernel.Timestamp timestamp = 6;
* @return The timestamp.
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.Timestamp getTimestamp() {
if (timestampBuilder_ == null) {
if (valueCase_ == 6) {
return (com.dimajix.flowman.kernel.proto.Timestamp) value_;
}
return com.dimajix.flowman.kernel.proto.Timestamp.getDefaultInstance();
} else {
if (valueCase_ == 6) {
return timestampBuilder_.getMessage();
}
return com.dimajix.flowman.kernel.proto.Timestamp.getDefaultInstance();
}
}
/**
* .com.dimajix.flowman.kernel.Timestamp timestamp = 6;
*/
public Builder setTimestamp(com.dimajix.flowman.kernel.proto.Timestamp value) {
if (timestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
timestampBuilder_.setMessage(value);
}
valueCase_ = 6;
return this;
}
/**
* .com.dimajix.flowman.kernel.Timestamp timestamp = 6;
*/
public Builder setTimestamp(
com.dimajix.flowman.kernel.proto.Timestamp.Builder builderForValue) {
if (timestampBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
timestampBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 6;
return this;
}
/**
* .com.dimajix.flowman.kernel.Timestamp timestamp = 6;
*/
public Builder mergeTimestamp(com.dimajix.flowman.kernel.proto.Timestamp value) {
if (timestampBuilder_ == null) {
if (valueCase_ == 6 &&
value_ != com.dimajix.flowman.kernel.proto.Timestamp.getDefaultInstance()) {
value_ = com.dimajix.flowman.kernel.proto.Timestamp.newBuilder((com.dimajix.flowman.kernel.proto.Timestamp) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 6) {
timestampBuilder_.mergeFrom(value);
} else {
timestampBuilder_.setMessage(value);
}
}
valueCase_ = 6;
return this;
}
/**
* .com.dimajix.flowman.kernel.Timestamp timestamp = 6;
*/
public Builder clearTimestamp() {
if (timestampBuilder_ == null) {
if (valueCase_ == 6) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 6) {
valueCase_ = 0;
value_ = null;
}
timestampBuilder_.clear();
}
return this;
}
/**
* .com.dimajix.flowman.kernel.Timestamp timestamp = 6;
*/
public com.dimajix.flowman.kernel.proto.Timestamp.Builder getTimestampBuilder() {
return getTimestampFieldBuilder().getBuilder();
}
/**
* .com.dimajix.flowman.kernel.Timestamp timestamp = 6;
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.TimestampOrBuilder getTimestampOrBuilder() {
if ((valueCase_ == 6) && (timestampBuilder_ != null)) {
return timestampBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 6) {
return (com.dimajix.flowman.kernel.proto.Timestamp) value_;
}
return com.dimajix.flowman.kernel.proto.Timestamp.getDefaultInstance();
}
}
/**
* .com.dimajix.flowman.kernel.Timestamp timestamp = 6;
*/
private com.dimajix.shaded.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.Timestamp, com.dimajix.flowman.kernel.proto.Timestamp.Builder, com.dimajix.flowman.kernel.proto.TimestampOrBuilder>
getTimestampFieldBuilder() {
if (timestampBuilder_ == null) {
if (!(valueCase_ == 6)) {
value_ = com.dimajix.flowman.kernel.proto.Timestamp.getDefaultInstance();
}
timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.Timestamp, com.dimajix.flowman.kernel.proto.Timestamp.Builder, com.dimajix.flowman.kernel.proto.TimestampOrBuilder>(
(com.dimajix.flowman.kernel.proto.Timestamp) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 6;
onChanged();
return timestampBuilder_;
}
private com.dimajix.shaded.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.Date, com.dimajix.flowman.kernel.proto.Date.Builder, com.dimajix.flowman.kernel.proto.DateOrBuilder> dateBuilder_;
/**
* .com.dimajix.flowman.kernel.Date date = 7;
* @return Whether the date field is set.
*/
@java.lang.Override
public boolean hasDate() {
return valueCase_ == 7;
}
/**
* .com.dimajix.flowman.kernel.Date date = 7;
* @return The date.
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.Date getDate() {
if (dateBuilder_ == null) {
if (valueCase_ == 7) {
return (com.dimajix.flowman.kernel.proto.Date) value_;
}
return com.dimajix.flowman.kernel.proto.Date.getDefaultInstance();
} else {
if (valueCase_ == 7) {
return dateBuilder_.getMessage();
}
return com.dimajix.flowman.kernel.proto.Date.getDefaultInstance();
}
}
/**
* .com.dimajix.flowman.kernel.Date date = 7;
*/
public Builder setDate(com.dimajix.flowman.kernel.proto.Date value) {
if (dateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
dateBuilder_.setMessage(value);
}
valueCase_ = 7;
return this;
}
/**
* .com.dimajix.flowman.kernel.Date date = 7;
*/
public Builder setDate(
com.dimajix.flowman.kernel.proto.Date.Builder builderForValue) {
if (dateBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
dateBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 7;
return this;
}
/**
* .com.dimajix.flowman.kernel.Date date = 7;
*/
public Builder mergeDate(com.dimajix.flowman.kernel.proto.Date value) {
if (dateBuilder_ == null) {
if (valueCase_ == 7 &&
value_ != com.dimajix.flowman.kernel.proto.Date.getDefaultInstance()) {
value_ = com.dimajix.flowman.kernel.proto.Date.newBuilder((com.dimajix.flowman.kernel.proto.Date) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 7) {
dateBuilder_.mergeFrom(value);
} else {
dateBuilder_.setMessage(value);
}
}
valueCase_ = 7;
return this;
}
/**
* .com.dimajix.flowman.kernel.Date date = 7;
*/
public Builder clearDate() {
if (dateBuilder_ == null) {
if (valueCase_ == 7) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 7) {
valueCase_ = 0;
value_ = null;
}
dateBuilder_.clear();
}
return this;
}
/**
* .com.dimajix.flowman.kernel.Date date = 7;
*/
public com.dimajix.flowman.kernel.proto.Date.Builder getDateBuilder() {
return getDateFieldBuilder().getBuilder();
}
/**
* .com.dimajix.flowman.kernel.Date date = 7;
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.DateOrBuilder getDateOrBuilder() {
if ((valueCase_ == 7) && (dateBuilder_ != null)) {
return dateBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 7) {
return (com.dimajix.flowman.kernel.proto.Date) value_;
}
return com.dimajix.flowman.kernel.proto.Date.getDefaultInstance();
}
}
/**
* .com.dimajix.flowman.kernel.Date date = 7;
*/
private com.dimajix.shaded.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.Date, com.dimajix.flowman.kernel.proto.Date.Builder, com.dimajix.flowman.kernel.proto.DateOrBuilder>
getDateFieldBuilder() {
if (dateBuilder_ == null) {
if (!(valueCase_ == 7)) {
value_ = com.dimajix.flowman.kernel.proto.Date.getDefaultInstance();
}
dateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.Date, com.dimajix.flowman.kernel.proto.Date.Builder, com.dimajix.flowman.kernel.proto.DateOrBuilder>(
(com.dimajix.flowman.kernel.proto.Date) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 7;
onChanged();
return dateBuilder_;
}
private com.dimajix.shaded.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.Map, com.dimajix.flowman.kernel.proto.Map.Builder, com.dimajix.flowman.kernel.proto.MapOrBuilder> mapBuilder_;
/**
* .com.dimajix.flowman.kernel.Map map = 8;
* @return Whether the map field is set.
*/
@java.lang.Override
public boolean hasMap() {
return valueCase_ == 8;
}
/**
* .com.dimajix.flowman.kernel.Map map = 8;
* @return The map.
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.Map getMap() {
if (mapBuilder_ == null) {
if (valueCase_ == 8) {
return (com.dimajix.flowman.kernel.proto.Map) value_;
}
return com.dimajix.flowman.kernel.proto.Map.getDefaultInstance();
} else {
if (valueCase_ == 8) {
return mapBuilder_.getMessage();
}
return com.dimajix.flowman.kernel.proto.Map.getDefaultInstance();
}
}
/**
* .com.dimajix.flowman.kernel.Map map = 8;
*/
public Builder setMap(com.dimajix.flowman.kernel.proto.Map value) {
if (mapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
mapBuilder_.setMessage(value);
}
valueCase_ = 8;
return this;
}
/**
* .com.dimajix.flowman.kernel.Map map = 8;
*/
public Builder setMap(
com.dimajix.flowman.kernel.proto.Map.Builder builderForValue) {
if (mapBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
mapBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 8;
return this;
}
/**
* .com.dimajix.flowman.kernel.Map map = 8;
*/
public Builder mergeMap(com.dimajix.flowman.kernel.proto.Map value) {
if (mapBuilder_ == null) {
if (valueCase_ == 8 &&
value_ != com.dimajix.flowman.kernel.proto.Map.getDefaultInstance()) {
value_ = com.dimajix.flowman.kernel.proto.Map.newBuilder((com.dimajix.flowman.kernel.proto.Map) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 8) {
mapBuilder_.mergeFrom(value);
} else {
mapBuilder_.setMessage(value);
}
}
valueCase_ = 8;
return this;
}
/**
* .com.dimajix.flowman.kernel.Map map = 8;
*/
public Builder clearMap() {
if (mapBuilder_ == null) {
if (valueCase_ == 8) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 8) {
valueCase_ = 0;
value_ = null;
}
mapBuilder_.clear();
}
return this;
}
/**
* .com.dimajix.flowman.kernel.Map map = 8;
*/
public com.dimajix.flowman.kernel.proto.Map.Builder getMapBuilder() {
return getMapFieldBuilder().getBuilder();
}
/**
* .com.dimajix.flowman.kernel.Map map = 8;
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.MapOrBuilder getMapOrBuilder() {
if ((valueCase_ == 8) && (mapBuilder_ != null)) {
return mapBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 8) {
return (com.dimajix.flowman.kernel.proto.Map) value_;
}
return com.dimajix.flowman.kernel.proto.Map.getDefaultInstance();
}
}
/**
* .com.dimajix.flowman.kernel.Map map = 8;
*/
private com.dimajix.shaded.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.Map, com.dimajix.flowman.kernel.proto.Map.Builder, com.dimajix.flowman.kernel.proto.MapOrBuilder>
getMapFieldBuilder() {
if (mapBuilder_ == null) {
if (!(valueCase_ == 8)) {
value_ = com.dimajix.flowman.kernel.proto.Map.getDefaultInstance();
}
mapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.Map, com.dimajix.flowman.kernel.proto.Map.Builder, com.dimajix.flowman.kernel.proto.MapOrBuilder>(
(com.dimajix.flowman.kernel.proto.Map) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 8;
onChanged();
return mapBuilder_;
}
private com.dimajix.shaded.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.Array, com.dimajix.flowman.kernel.proto.Array.Builder, com.dimajix.flowman.kernel.proto.ArrayOrBuilder> arrayBuilder_;
/**
* .com.dimajix.flowman.kernel.Array array = 9;
* @return Whether the array field is set.
*/
@java.lang.Override
public boolean hasArray() {
return valueCase_ == 9;
}
/**
* .com.dimajix.flowman.kernel.Array array = 9;
* @return The array.
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.Array getArray() {
if (arrayBuilder_ == null) {
if (valueCase_ == 9) {
return (com.dimajix.flowman.kernel.proto.Array) value_;
}
return com.dimajix.flowman.kernel.proto.Array.getDefaultInstance();
} else {
if (valueCase_ == 9) {
return arrayBuilder_.getMessage();
}
return com.dimajix.flowman.kernel.proto.Array.getDefaultInstance();
}
}
/**
* .com.dimajix.flowman.kernel.Array array = 9;
*/
public Builder setArray(com.dimajix.flowman.kernel.proto.Array value) {
if (arrayBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
arrayBuilder_.setMessage(value);
}
valueCase_ = 9;
return this;
}
/**
* .com.dimajix.flowman.kernel.Array array = 9;
*/
public Builder setArray(
com.dimajix.flowman.kernel.proto.Array.Builder builderForValue) {
if (arrayBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
arrayBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 9;
return this;
}
/**
* .com.dimajix.flowman.kernel.Array array = 9;
*/
public Builder mergeArray(com.dimajix.flowman.kernel.proto.Array value) {
if (arrayBuilder_ == null) {
if (valueCase_ == 9 &&
value_ != com.dimajix.flowman.kernel.proto.Array.getDefaultInstance()) {
value_ = com.dimajix.flowman.kernel.proto.Array.newBuilder((com.dimajix.flowman.kernel.proto.Array) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 9) {
arrayBuilder_.mergeFrom(value);
} else {
arrayBuilder_.setMessage(value);
}
}
valueCase_ = 9;
return this;
}
/**
* .com.dimajix.flowman.kernel.Array array = 9;
*/
public Builder clearArray() {
if (arrayBuilder_ == null) {
if (valueCase_ == 9) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 9) {
valueCase_ = 0;
value_ = null;
}
arrayBuilder_.clear();
}
return this;
}
/**
* .com.dimajix.flowman.kernel.Array array = 9;
*/
public com.dimajix.flowman.kernel.proto.Array.Builder getArrayBuilder() {
return getArrayFieldBuilder().getBuilder();
}
/**
* .com.dimajix.flowman.kernel.Array array = 9;
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.ArrayOrBuilder getArrayOrBuilder() {
if ((valueCase_ == 9) && (arrayBuilder_ != null)) {
return arrayBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 9) {
return (com.dimajix.flowman.kernel.proto.Array) value_;
}
return com.dimajix.flowman.kernel.proto.Array.getDefaultInstance();
}
}
/**
* .com.dimajix.flowman.kernel.Array array = 9;
*/
private com.dimajix.shaded.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.Array, com.dimajix.flowman.kernel.proto.Array.Builder, com.dimajix.flowman.kernel.proto.ArrayOrBuilder>
getArrayFieldBuilder() {
if (arrayBuilder_ == null) {
if (!(valueCase_ == 9)) {
value_ = com.dimajix.flowman.kernel.proto.Array.getDefaultInstance();
}
arrayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.Array, com.dimajix.flowman.kernel.proto.Array.Builder, com.dimajix.flowman.kernel.proto.ArrayOrBuilder>(
(com.dimajix.flowman.kernel.proto.Array) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 9;
onChanged();
return arrayBuilder_;
}
private com.dimajix.shaded.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.Row, com.dimajix.flowman.kernel.proto.Row.Builder, com.dimajix.flowman.kernel.proto.RowOrBuilder> rowBuilder_;
/**
* .com.dimajix.flowman.kernel.Row row = 10;
* @return Whether the row field is set.
*/
@java.lang.Override
public boolean hasRow() {
return valueCase_ == 10;
}
/**
* .com.dimajix.flowman.kernel.Row row = 10;
* @return The row.
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.Row getRow() {
if (rowBuilder_ == null) {
if (valueCase_ == 10) {
return (com.dimajix.flowman.kernel.proto.Row) value_;
}
return com.dimajix.flowman.kernel.proto.Row.getDefaultInstance();
} else {
if (valueCase_ == 10) {
return rowBuilder_.getMessage();
}
return com.dimajix.flowman.kernel.proto.Row.getDefaultInstance();
}
}
/**
* .com.dimajix.flowman.kernel.Row row = 10;
*/
public Builder setRow(com.dimajix.flowman.kernel.proto.Row value) {
if (rowBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
rowBuilder_.setMessage(value);
}
valueCase_ = 10;
return this;
}
/**
* .com.dimajix.flowman.kernel.Row row = 10;
*/
public Builder setRow(
com.dimajix.flowman.kernel.proto.Row.Builder builderForValue) {
if (rowBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
rowBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 10;
return this;
}
/**
* .com.dimajix.flowman.kernel.Row row = 10;
*/
public Builder mergeRow(com.dimajix.flowman.kernel.proto.Row value) {
if (rowBuilder_ == null) {
if (valueCase_ == 10 &&
value_ != com.dimajix.flowman.kernel.proto.Row.getDefaultInstance()) {
value_ = com.dimajix.flowman.kernel.proto.Row.newBuilder((com.dimajix.flowman.kernel.proto.Row) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 10) {
rowBuilder_.mergeFrom(value);
} else {
rowBuilder_.setMessage(value);
}
}
valueCase_ = 10;
return this;
}
/**
* .com.dimajix.flowman.kernel.Row row = 10;
*/
public Builder clearRow() {
if (rowBuilder_ == null) {
if (valueCase_ == 10) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 10) {
valueCase_ = 0;
value_ = null;
}
rowBuilder_.clear();
}
return this;
}
/**
* .com.dimajix.flowman.kernel.Row row = 10;
*/
public com.dimajix.flowman.kernel.proto.Row.Builder getRowBuilder() {
return getRowFieldBuilder().getBuilder();
}
/**
* .com.dimajix.flowman.kernel.Row row = 10;
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.RowOrBuilder getRowOrBuilder() {
if ((valueCase_ == 10) && (rowBuilder_ != null)) {
return rowBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 10) {
return (com.dimajix.flowman.kernel.proto.Row) value_;
}
return com.dimajix.flowman.kernel.proto.Row.getDefaultInstance();
}
}
/**
* .com.dimajix.flowman.kernel.Row row = 10;
*/
private com.dimajix.shaded.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.Row, com.dimajix.flowman.kernel.proto.Row.Builder, com.dimajix.flowman.kernel.proto.RowOrBuilder>
getRowFieldBuilder() {
if (rowBuilder_ == null) {
if (!(valueCase_ == 10)) {
value_ = com.dimajix.flowman.kernel.proto.Row.getDefaultInstance();
}
rowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.Row, com.dimajix.flowman.kernel.proto.Row.Builder, com.dimajix.flowman.kernel.proto.RowOrBuilder>(
(com.dimajix.flowman.kernel.proto.Row) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 10;
onChanged();
return rowBuilder_;
}
private com.dimajix.shaded.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.Null, com.dimajix.flowman.kernel.proto.Null.Builder, com.dimajix.flowman.kernel.proto.NullOrBuilder> nullBuilder_;
/**
* .com.dimajix.flowman.kernel.Null null = 11;
* @return Whether the null field is set.
*/
@java.lang.Override
public boolean hasNull() {
return valueCase_ == 11;
}
/**
* .com.dimajix.flowman.kernel.Null null = 11;
* @return The null.
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.Null getNull() {
if (nullBuilder_ == null) {
if (valueCase_ == 11) {
return (com.dimajix.flowman.kernel.proto.Null) value_;
}
return com.dimajix.flowman.kernel.proto.Null.getDefaultInstance();
} else {
if (valueCase_ == 11) {
return nullBuilder_.getMessage();
}
return com.dimajix.flowman.kernel.proto.Null.getDefaultInstance();
}
}
/**
* .com.dimajix.flowman.kernel.Null null = 11;
*/
public Builder setNull(com.dimajix.flowman.kernel.proto.Null value) {
if (nullBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
nullBuilder_.setMessage(value);
}
valueCase_ = 11;
return this;
}
/**
* .com.dimajix.flowman.kernel.Null null = 11;
*/
public Builder setNull(
com.dimajix.flowman.kernel.proto.Null.Builder builderForValue) {
if (nullBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
nullBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 11;
return this;
}
/**
* .com.dimajix.flowman.kernel.Null null = 11;
*/
public Builder mergeNull(com.dimajix.flowman.kernel.proto.Null value) {
if (nullBuilder_ == null) {
if (valueCase_ == 11 &&
value_ != com.dimajix.flowman.kernel.proto.Null.getDefaultInstance()) {
value_ = com.dimajix.flowman.kernel.proto.Null.newBuilder((com.dimajix.flowman.kernel.proto.Null) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 11) {
nullBuilder_.mergeFrom(value);
} else {
nullBuilder_.setMessage(value);
}
}
valueCase_ = 11;
return this;
}
/**
* .com.dimajix.flowman.kernel.Null null = 11;
*/
public Builder clearNull() {
if (nullBuilder_ == null) {
if (valueCase_ == 11) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 11) {
valueCase_ = 0;
value_ = null;
}
nullBuilder_.clear();
}
return this;
}
/**
* .com.dimajix.flowman.kernel.Null null = 11;
*/
public com.dimajix.flowman.kernel.proto.Null.Builder getNullBuilder() {
return getNullFieldBuilder().getBuilder();
}
/**
* .com.dimajix.flowman.kernel.Null null = 11;
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.NullOrBuilder getNullOrBuilder() {
if ((valueCase_ == 11) && (nullBuilder_ != null)) {
return nullBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 11) {
return (com.dimajix.flowman.kernel.proto.Null) value_;
}
return com.dimajix.flowman.kernel.proto.Null.getDefaultInstance();
}
}
/**
* .com.dimajix.flowman.kernel.Null null = 11;
*/
private com.dimajix.shaded.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.Null, com.dimajix.flowman.kernel.proto.Null.Builder, com.dimajix.flowman.kernel.proto.NullOrBuilder>
getNullFieldBuilder() {
if (nullBuilder_ == null) {
if (!(valueCase_ == 11)) {
value_ = com.dimajix.flowman.kernel.proto.Null.getDefaultInstance();
}
nullBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.Null, com.dimajix.flowman.kernel.proto.Null.Builder, com.dimajix.flowman.kernel.proto.NullOrBuilder>(
(com.dimajix.flowman.kernel.proto.Null) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 11;
onChanged();
return nullBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.dimajix.shaded.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.dimajix.shaded.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.dimajix.flowman.kernel.Field)
}
// @@protoc_insertion_point(class_scope:com.dimajix.flowman.kernel.Field)
private static final com.dimajix.flowman.kernel.proto.Field DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.dimajix.flowman.kernel.proto.Field();
}
public static com.dimajix.flowman.kernel.proto.Field getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.dimajix.shaded.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Field parsePartialFrom(
com.dimajix.shaded.protobuf.CodedInputStream input,
com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.dimajix.shaded.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.dimajix.shaded.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.dimajix.shaded.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.dimajix.shaded.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.Field getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy