Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.substrait.proto.Expression Maven / Gradle / Ivy
Go to download
Create a well-defined, cross-language specification for data compute operations
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: substrait/algebra.proto
// Protobuf Java Version: 3.25.5
package io.substrait.proto;
/**
* Protobuf type {@code substrait.Expression}
*/
public final class Expression extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Expression)
ExpressionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Expression.newBuilder() to construct.
private Expression(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Expression() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Expression();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.class, io.substrait.proto.Expression.Builder.class);
}
@java.lang.Deprecated public interface EnumOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.Expression.Enum)
com.google.protobuf.MessageOrBuilder {
/**
* string specified = 1;
* @return Whether the specified field is set.
*/
boolean hasSpecified();
/**
* string specified = 1;
* @return The specified.
*/
java.lang.String getSpecified();
/**
* string specified = 1;
* @return The bytes for specified.
*/
com.google.protobuf.ByteString
getSpecifiedBytes();
/**
* .substrait.Expression.Enum.Empty unspecified = 2;
* @return Whether the unspecified field is set.
*/
boolean hasUnspecified();
/**
* .substrait.Expression.Enum.Empty unspecified = 2;
* @return The unspecified.
*/
io.substrait.proto.Expression.Enum.Empty getUnspecified();
/**
* .substrait.Expression.Enum.Empty unspecified = 2;
*/
io.substrait.proto.Expression.Enum.EmptyOrBuilder getUnspecifiedOrBuilder();
io.substrait.proto.Expression.Enum.EnumKindCase getEnumKindCase();
}
/**
* Protobuf type {@code substrait.Expression.Enum}
*/
@java.lang.Deprecated public static final class Enum extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Expression.Enum)
EnumOrBuilder {
private static final long serialVersionUID = 0L;
// Use Enum.newBuilder() to construct.
private Enum(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Enum() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Enum();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Enum_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Enum_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Enum.class, io.substrait.proto.Expression.Enum.Builder.class);
}
@java.lang.Deprecated public interface EmptyOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.Expression.Enum.Empty)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code substrait.Expression.Enum.Empty}
*/
@java.lang.Deprecated public static final class Empty extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Expression.Enum.Empty)
EmptyOrBuilder {
private static final long serialVersionUID = 0L;
// Use Empty.newBuilder() to construct.
private Empty(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Empty() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Empty();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Enum_Empty_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Enum_Empty_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Enum.Empty.class, io.substrait.proto.Expression.Enum.Empty.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 io.substrait.proto.Expression.Enum.Empty)) {
return super.equals(obj);
}
io.substrait.proto.Expression.Enum.Empty other = (io.substrait.proto.Expression.Enum.Empty) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.Expression.Enum.Empty parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Enum.Empty parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Enum.Empty parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Enum.Empty parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Enum.Empty parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Enum.Empty parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Enum.Empty parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Enum.Empty 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 io.substrait.proto.Expression.Enum.Empty parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Enum.Empty 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 io.substrait.proto.Expression.Enum.Empty parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Enum.Empty 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(io.substrait.proto.Expression.Enum.Empty 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 substrait.Expression.Enum.Empty}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Expression.Enum.Empty)
io.substrait.proto.Expression.Enum.EmptyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Enum_Empty_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Enum_Empty_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Enum.Empty.class, io.substrait.proto.Expression.Enum.Empty.Builder.class);
}
// Construct using io.substrait.proto.Expression.Enum.Empty.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Enum_Empty_descriptor;
}
@java.lang.Override
public io.substrait.proto.Expression.Enum.Empty getDefaultInstanceForType() {
return io.substrait.proto.Expression.Enum.Empty.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Expression.Enum.Empty build() {
io.substrait.proto.Expression.Enum.Empty result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Expression.Enum.Empty buildPartial() {
io.substrait.proto.Expression.Enum.Empty result = new io.substrait.proto.Expression.Enum.Empty(this);
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 io.substrait.proto.Expression.Enum.Empty) {
return mergeFrom((io.substrait.proto.Expression.Enum.Empty)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Expression.Enum.Empty other) {
if (other == io.substrait.proto.Expression.Enum.Empty.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@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:substrait.Expression.Enum.Empty)
}
// @@protoc_insertion_point(class_scope:substrait.Expression.Enum.Empty)
private static final io.substrait.proto.Expression.Enum.Empty DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.Expression.Enum.Empty();
}
public static io.substrait.proto.Expression.Enum.Empty getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Empty parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.Expression.Enum.Empty getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int enumKindCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object enumKind_;
public enum EnumKindCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
SPECIFIED(1),
UNSPECIFIED(2),
ENUMKIND_NOT_SET(0);
private final int value;
private EnumKindCase(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 EnumKindCase valueOf(int value) {
return forNumber(value);
}
public static EnumKindCase forNumber(int value) {
switch (value) {
case 1: return SPECIFIED;
case 2: return UNSPECIFIED;
case 0: return ENUMKIND_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public EnumKindCase
getEnumKindCase() {
return EnumKindCase.forNumber(
enumKindCase_);
}
public static final int SPECIFIED_FIELD_NUMBER = 1;
/**
* string specified = 1;
* @return Whether the specified field is set.
*/
public boolean hasSpecified() {
return enumKindCase_ == 1;
}
/**
* string specified = 1;
* @return The specified.
*/
public java.lang.String getSpecified() {
java.lang.Object ref = "";
if (enumKindCase_ == 1) {
ref = enumKind_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (enumKindCase_ == 1) {
enumKind_ = s;
}
return s;
}
}
/**
* string specified = 1;
* @return The bytes for specified.
*/
public com.google.protobuf.ByteString
getSpecifiedBytes() {
java.lang.Object ref = "";
if (enumKindCase_ == 1) {
ref = enumKind_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (enumKindCase_ == 1) {
enumKind_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UNSPECIFIED_FIELD_NUMBER = 2;
/**
* .substrait.Expression.Enum.Empty unspecified = 2;
* @return Whether the unspecified field is set.
*/
@java.lang.Override
public boolean hasUnspecified() {
return enumKindCase_ == 2;
}
/**
* .substrait.Expression.Enum.Empty unspecified = 2;
* @return The unspecified.
*/
@java.lang.Override
public io.substrait.proto.Expression.Enum.Empty getUnspecified() {
if (enumKindCase_ == 2) {
return (io.substrait.proto.Expression.Enum.Empty) enumKind_;
}
return io.substrait.proto.Expression.Enum.Empty.getDefaultInstance();
}
/**
* .substrait.Expression.Enum.Empty unspecified = 2;
*/
@java.lang.Override
public io.substrait.proto.Expression.Enum.EmptyOrBuilder getUnspecifiedOrBuilder() {
if (enumKindCase_ == 2) {
return (io.substrait.proto.Expression.Enum.Empty) enumKind_;
}
return io.substrait.proto.Expression.Enum.Empty.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 (enumKindCase_ == 1) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, enumKind_);
}
if (enumKindCase_ == 2) {
output.writeMessage(2, (io.substrait.proto.Expression.Enum.Empty) enumKind_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (enumKindCase_ == 1) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, enumKind_);
}
if (enumKindCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.substrait.proto.Expression.Enum.Empty) enumKind_);
}
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 io.substrait.proto.Expression.Enum)) {
return super.equals(obj);
}
io.substrait.proto.Expression.Enum other = (io.substrait.proto.Expression.Enum) obj;
if (!getEnumKindCase().equals(other.getEnumKindCase())) return false;
switch (enumKindCase_) {
case 1:
if (!getSpecified()
.equals(other.getSpecified())) return false;
break;
case 2:
if (!getUnspecified()
.equals(other.getUnspecified())) 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 (enumKindCase_) {
case 1:
hash = (37 * hash) + SPECIFIED_FIELD_NUMBER;
hash = (53 * hash) + getSpecified().hashCode();
break;
case 2:
hash = (37 * hash) + UNSPECIFIED_FIELD_NUMBER;
hash = (53 * hash) + getUnspecified().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.Expression.Enum parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Enum parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Enum parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Enum parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Enum parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Enum parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Enum parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Enum 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 io.substrait.proto.Expression.Enum parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Enum 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 io.substrait.proto.Expression.Enum parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Enum 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(io.substrait.proto.Expression.Enum 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 substrait.Expression.Enum}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Expression.Enum)
io.substrait.proto.Expression.EnumOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Enum_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Enum_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Enum.class, io.substrait.proto.Expression.Enum.Builder.class);
}
// Construct using io.substrait.proto.Expression.Enum.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (unspecifiedBuilder_ != null) {
unspecifiedBuilder_.clear();
}
enumKindCase_ = 0;
enumKind_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Enum_descriptor;
}
@java.lang.Override
public io.substrait.proto.Expression.Enum getDefaultInstanceForType() {
return io.substrait.proto.Expression.Enum.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Expression.Enum build() {
io.substrait.proto.Expression.Enum result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Expression.Enum buildPartial() {
io.substrait.proto.Expression.Enum result = new io.substrait.proto.Expression.Enum(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.Expression.Enum result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(io.substrait.proto.Expression.Enum result) {
result.enumKindCase_ = enumKindCase_;
result.enumKind_ = this.enumKind_;
if (enumKindCase_ == 2 &&
unspecifiedBuilder_ != null) {
result.enumKind_ = unspecifiedBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.substrait.proto.Expression.Enum) {
return mergeFrom((io.substrait.proto.Expression.Enum)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Expression.Enum other) {
if (other == io.substrait.proto.Expression.Enum.getDefaultInstance()) return this;
switch (other.getEnumKindCase()) {
case SPECIFIED: {
enumKindCase_ = 1;
enumKind_ = other.enumKind_;
onChanged();
break;
}
case UNSPECIFIED: {
mergeUnspecified(other.getUnspecified());
break;
}
case ENUMKIND_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
enumKindCase_ = 1;
enumKind_ = s;
break;
} // case 10
case 18: {
input.readMessage(
getUnspecifiedFieldBuilder().getBuilder(),
extensionRegistry);
enumKindCase_ = 2;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int enumKindCase_ = 0;
private java.lang.Object enumKind_;
public EnumKindCase
getEnumKindCase() {
return EnumKindCase.forNumber(
enumKindCase_);
}
public Builder clearEnumKind() {
enumKindCase_ = 0;
enumKind_ = null;
onChanged();
return this;
}
private int bitField0_;
/**
* string specified = 1;
* @return Whether the specified field is set.
*/
@java.lang.Override
public boolean hasSpecified() {
return enumKindCase_ == 1;
}
/**
* string specified = 1;
* @return The specified.
*/
@java.lang.Override
public java.lang.String getSpecified() {
java.lang.Object ref = "";
if (enumKindCase_ == 1) {
ref = enumKind_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (enumKindCase_ == 1) {
enumKind_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string specified = 1;
* @return The bytes for specified.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSpecifiedBytes() {
java.lang.Object ref = "";
if (enumKindCase_ == 1) {
ref = enumKind_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (enumKindCase_ == 1) {
enumKind_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string specified = 1;
* @param value The specified to set.
* @return This builder for chaining.
*/
public Builder setSpecified(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
enumKindCase_ = 1;
enumKind_ = value;
onChanged();
return this;
}
/**
* string specified = 1;
* @return This builder for chaining.
*/
public Builder clearSpecified() {
if (enumKindCase_ == 1) {
enumKindCase_ = 0;
enumKind_ = null;
onChanged();
}
return this;
}
/**
* string specified = 1;
* @param value The bytes for specified to set.
* @return This builder for chaining.
*/
public Builder setSpecifiedBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
enumKindCase_ = 1;
enumKind_ = value;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Enum.Empty, io.substrait.proto.Expression.Enum.Empty.Builder, io.substrait.proto.Expression.Enum.EmptyOrBuilder> unspecifiedBuilder_;
/**
* .substrait.Expression.Enum.Empty unspecified = 2;
* @return Whether the unspecified field is set.
*/
@java.lang.Override
public boolean hasUnspecified() {
return enumKindCase_ == 2;
}
/**
* .substrait.Expression.Enum.Empty unspecified = 2;
* @return The unspecified.
*/
@java.lang.Override
public io.substrait.proto.Expression.Enum.Empty getUnspecified() {
if (unspecifiedBuilder_ == null) {
if (enumKindCase_ == 2) {
return (io.substrait.proto.Expression.Enum.Empty) enumKind_;
}
return io.substrait.proto.Expression.Enum.Empty.getDefaultInstance();
} else {
if (enumKindCase_ == 2) {
return unspecifiedBuilder_.getMessage();
}
return io.substrait.proto.Expression.Enum.Empty.getDefaultInstance();
}
}
/**
* .substrait.Expression.Enum.Empty unspecified = 2;
*/
public Builder setUnspecified(io.substrait.proto.Expression.Enum.Empty value) {
if (unspecifiedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
enumKind_ = value;
onChanged();
} else {
unspecifiedBuilder_.setMessage(value);
}
enumKindCase_ = 2;
return this;
}
/**
* .substrait.Expression.Enum.Empty unspecified = 2;
*/
public Builder setUnspecified(
io.substrait.proto.Expression.Enum.Empty.Builder builderForValue) {
if (unspecifiedBuilder_ == null) {
enumKind_ = builderForValue.build();
onChanged();
} else {
unspecifiedBuilder_.setMessage(builderForValue.build());
}
enumKindCase_ = 2;
return this;
}
/**
* .substrait.Expression.Enum.Empty unspecified = 2;
*/
public Builder mergeUnspecified(io.substrait.proto.Expression.Enum.Empty value) {
if (unspecifiedBuilder_ == null) {
if (enumKindCase_ == 2 &&
enumKind_ != io.substrait.proto.Expression.Enum.Empty.getDefaultInstance()) {
enumKind_ = io.substrait.proto.Expression.Enum.Empty.newBuilder((io.substrait.proto.Expression.Enum.Empty) enumKind_)
.mergeFrom(value).buildPartial();
} else {
enumKind_ = value;
}
onChanged();
} else {
if (enumKindCase_ == 2) {
unspecifiedBuilder_.mergeFrom(value);
} else {
unspecifiedBuilder_.setMessage(value);
}
}
enumKindCase_ = 2;
return this;
}
/**
* .substrait.Expression.Enum.Empty unspecified = 2;
*/
public Builder clearUnspecified() {
if (unspecifiedBuilder_ == null) {
if (enumKindCase_ == 2) {
enumKindCase_ = 0;
enumKind_ = null;
onChanged();
}
} else {
if (enumKindCase_ == 2) {
enumKindCase_ = 0;
enumKind_ = null;
}
unspecifiedBuilder_.clear();
}
return this;
}
/**
* .substrait.Expression.Enum.Empty unspecified = 2;
*/
public io.substrait.proto.Expression.Enum.Empty.Builder getUnspecifiedBuilder() {
return getUnspecifiedFieldBuilder().getBuilder();
}
/**
* .substrait.Expression.Enum.Empty unspecified = 2;
*/
@java.lang.Override
public io.substrait.proto.Expression.Enum.EmptyOrBuilder getUnspecifiedOrBuilder() {
if ((enumKindCase_ == 2) && (unspecifiedBuilder_ != null)) {
return unspecifiedBuilder_.getMessageOrBuilder();
} else {
if (enumKindCase_ == 2) {
return (io.substrait.proto.Expression.Enum.Empty) enumKind_;
}
return io.substrait.proto.Expression.Enum.Empty.getDefaultInstance();
}
}
/**
* .substrait.Expression.Enum.Empty unspecified = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Enum.Empty, io.substrait.proto.Expression.Enum.Empty.Builder, io.substrait.proto.Expression.Enum.EmptyOrBuilder>
getUnspecifiedFieldBuilder() {
if (unspecifiedBuilder_ == null) {
if (!(enumKindCase_ == 2)) {
enumKind_ = io.substrait.proto.Expression.Enum.Empty.getDefaultInstance();
}
unspecifiedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Enum.Empty, io.substrait.proto.Expression.Enum.Empty.Builder, io.substrait.proto.Expression.Enum.EmptyOrBuilder>(
(io.substrait.proto.Expression.Enum.Empty) enumKind_,
getParentForChildren(),
isClean());
enumKind_ = null;
}
enumKindCase_ = 2;
onChanged();
return unspecifiedBuilder_;
}
@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:substrait.Expression.Enum)
}
// @@protoc_insertion_point(class_scope:substrait.Expression.Enum)
private static final io.substrait.proto.Expression.Enum DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.Expression.Enum();
}
public static io.substrait.proto.Expression.Enum getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Enum parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.Expression.Enum getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LiteralOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.Expression.Literal)
com.google.protobuf.MessageOrBuilder {
/**
* bool boolean = 1;
* @return Whether the boolean field is set.
*/
boolean hasBoolean();
/**
* bool boolean = 1;
* @return The boolean.
*/
boolean getBoolean();
/**
* int32 i8 = 2;
* @return Whether the i8 field is set.
*/
boolean hasI8();
/**
* int32 i8 = 2;
* @return The i8.
*/
int getI8();
/**
* int32 i16 = 3;
* @return Whether the i16 field is set.
*/
boolean hasI16();
/**
* int32 i16 = 3;
* @return The i16.
*/
int getI16();
/**
* int32 i32 = 5;
* @return Whether the i32 field is set.
*/
boolean hasI32();
/**
* int32 i32 = 5;
* @return The i32.
*/
int getI32();
/**
* int64 i64 = 7;
* @return Whether the i64 field is set.
*/
boolean hasI64();
/**
* int64 i64 = 7;
* @return The i64.
*/
long getI64();
/**
* float fp32 = 10;
* @return Whether the fp32 field is set.
*/
boolean hasFp32();
/**
* float fp32 = 10;
* @return The fp32.
*/
float getFp32();
/**
* double fp64 = 11;
* @return Whether the fp64 field is set.
*/
boolean hasFp64();
/**
* double fp64 = 11;
* @return The fp64.
*/
double getFp64();
/**
* string string = 12;
* @return Whether the string field is set.
*/
boolean hasString();
/**
* string string = 12;
* @return The string.
*/
java.lang.String getString();
/**
* string string = 12;
* @return The bytes for string.
*/
com.google.protobuf.ByteString
getStringBytes();
/**
* bytes binary = 13;
* @return Whether the binary field is set.
*/
boolean hasBinary();
/**
* bytes binary = 13;
* @return The binary.
*/
com.google.protobuf.ByteString getBinary();
/**
*
* Timestamp in units of microseconds since the UNIX epoch.
* Deprecated in favor of `precision_timestamp`
*
*
* int64 timestamp = 14 [deprecated = true];
* @deprecated substrait.Expression.Literal.timestamp is deprecated.
* See substrait/algebra.proto;l=864
* @return Whether the timestamp field is set.
*/
@java.lang.Deprecated boolean hasTimestamp();
/**
*
* Timestamp in units of microseconds since the UNIX epoch.
* Deprecated in favor of `precision_timestamp`
*
*
* int64 timestamp = 14 [deprecated = true];
* @deprecated substrait.Expression.Literal.timestamp is deprecated.
* See substrait/algebra.proto;l=864
* @return The timestamp.
*/
@java.lang.Deprecated long getTimestamp();
/**
*
* Date in units of days since the UNIX epoch.
*
*
* int32 date = 16;
* @return Whether the date field is set.
*/
boolean hasDate();
/**
*
* Date in units of days since the UNIX epoch.
*
*
* int32 date = 16;
* @return The date.
*/
int getDate();
/**
*
* Time in units of microseconds past midnight
*
*
* int64 time = 17;
* @return Whether the time field is set.
*/
boolean hasTime();
/**
*
* Time in units of microseconds past midnight
*
*
* int64 time = 17;
* @return The time.
*/
long getTime();
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 19;
* @return Whether the intervalYearToMonth field is set.
*/
boolean hasIntervalYearToMonth();
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 19;
* @return The intervalYearToMonth.
*/
io.substrait.proto.Expression.Literal.IntervalYearToMonth getIntervalYearToMonth();
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 19;
*/
io.substrait.proto.Expression.Literal.IntervalYearToMonthOrBuilder getIntervalYearToMonthOrBuilder();
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 20;
* @return Whether the intervalDayToSecond field is set.
*/
boolean hasIntervalDayToSecond();
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 20;
* @return The intervalDayToSecond.
*/
io.substrait.proto.Expression.Literal.IntervalDayToSecond getIntervalDayToSecond();
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 20;
*/
io.substrait.proto.Expression.Literal.IntervalDayToSecondOrBuilder getIntervalDayToSecondOrBuilder();
/**
* .substrait.Expression.Literal.IntervalCompound interval_compound = 36;
* @return Whether the intervalCompound field is set.
*/
boolean hasIntervalCompound();
/**
* .substrait.Expression.Literal.IntervalCompound interval_compound = 36;
* @return The intervalCompound.
*/
io.substrait.proto.Expression.Literal.IntervalCompound getIntervalCompound();
/**
* .substrait.Expression.Literal.IntervalCompound interval_compound = 36;
*/
io.substrait.proto.Expression.Literal.IntervalCompoundOrBuilder getIntervalCompoundOrBuilder();
/**
* string fixed_char = 21;
* @return Whether the fixedChar field is set.
*/
boolean hasFixedChar();
/**
* string fixed_char = 21;
* @return The fixedChar.
*/
java.lang.String getFixedChar();
/**
* string fixed_char = 21;
* @return The bytes for fixedChar.
*/
com.google.protobuf.ByteString
getFixedCharBytes();
/**
* .substrait.Expression.Literal.VarChar var_char = 22;
* @return Whether the varChar field is set.
*/
boolean hasVarChar();
/**
* .substrait.Expression.Literal.VarChar var_char = 22;
* @return The varChar.
*/
io.substrait.proto.Expression.Literal.VarChar getVarChar();
/**
* .substrait.Expression.Literal.VarChar var_char = 22;
*/
io.substrait.proto.Expression.Literal.VarCharOrBuilder getVarCharOrBuilder();
/**
* bytes fixed_binary = 23;
* @return Whether the fixedBinary field is set.
*/
boolean hasFixedBinary();
/**
* bytes fixed_binary = 23;
* @return The fixedBinary.
*/
com.google.protobuf.ByteString getFixedBinary();
/**
* .substrait.Expression.Literal.Decimal decimal = 24;
* @return Whether the decimal field is set.
*/
boolean hasDecimal();
/**
* .substrait.Expression.Literal.Decimal decimal = 24;
* @return The decimal.
*/
io.substrait.proto.Expression.Literal.Decimal getDecimal();
/**
* .substrait.Expression.Literal.Decimal decimal = 24;
*/
io.substrait.proto.Expression.Literal.DecimalOrBuilder getDecimalOrBuilder();
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp = 34;
* @return Whether the precisionTimestamp field is set.
*/
boolean hasPrecisionTimestamp();
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp = 34;
* @return The precisionTimestamp.
*/
io.substrait.proto.Expression.Literal.PrecisionTimestamp getPrecisionTimestamp();
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp = 34;
*/
io.substrait.proto.Expression.Literal.PrecisionTimestampOrBuilder getPrecisionTimestampOrBuilder();
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp_tz = 35;
* @return Whether the precisionTimestampTz field is set.
*/
boolean hasPrecisionTimestampTz();
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp_tz = 35;
* @return The precisionTimestampTz.
*/
io.substrait.proto.Expression.Literal.PrecisionTimestamp getPrecisionTimestampTz();
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp_tz = 35;
*/
io.substrait.proto.Expression.Literal.PrecisionTimestampOrBuilder getPrecisionTimestampTzOrBuilder();
/**
* .substrait.Expression.Literal.Struct struct = 25;
* @return Whether the struct field is set.
*/
boolean hasStruct();
/**
* .substrait.Expression.Literal.Struct struct = 25;
* @return The struct.
*/
io.substrait.proto.Expression.Literal.Struct getStruct();
/**
* .substrait.Expression.Literal.Struct struct = 25;
*/
io.substrait.proto.Expression.Literal.StructOrBuilder getStructOrBuilder();
/**
* .substrait.Expression.Literal.Map map = 26;
* @return Whether the map field is set.
*/
boolean hasMap();
/**
* .substrait.Expression.Literal.Map map = 26;
* @return The map.
*/
io.substrait.proto.Expression.Literal.Map getMap();
/**
* .substrait.Expression.Literal.Map map = 26;
*/
io.substrait.proto.Expression.Literal.MapOrBuilder getMapOrBuilder();
/**
*
* Timestamp in units of microseconds since the UNIX epoch.
* Deprecated in favor of `precision_timestamp_tz`
*
*
* int64 timestamp_tz = 27 [deprecated = true];
* @deprecated substrait.Expression.Literal.timestamp_tz is deprecated.
* See substrait/algebra.proto;l=882
* @return Whether the timestampTz field is set.
*/
@java.lang.Deprecated boolean hasTimestampTz();
/**
*
* Timestamp in units of microseconds since the UNIX epoch.
* Deprecated in favor of `precision_timestamp_tz`
*
*
* int64 timestamp_tz = 27 [deprecated = true];
* @deprecated substrait.Expression.Literal.timestamp_tz is deprecated.
* See substrait/algebra.proto;l=882
* @return The timestampTz.
*/
@java.lang.Deprecated long getTimestampTz();
/**
* bytes uuid = 28;
* @return Whether the uuid field is set.
*/
boolean hasUuid();
/**
* bytes uuid = 28;
* @return The uuid.
*/
com.google.protobuf.ByteString getUuid();
/**
*
* a typed null literal
*
*
* .substrait.Type null = 29;
* @return Whether the null field is set.
*/
boolean hasNull();
/**
*
* a typed null literal
*
*
* .substrait.Type null = 29;
* @return The null.
*/
io.substrait.proto.Type getNull();
/**
*
* a typed null literal
*
*
* .substrait.Type null = 29;
*/
io.substrait.proto.TypeOrBuilder getNullOrBuilder();
/**
* .substrait.Expression.Literal.List list = 30;
* @return Whether the list field is set.
*/
boolean hasList();
/**
* .substrait.Expression.Literal.List list = 30;
* @return The list.
*/
io.substrait.proto.Expression.Literal.List getList();
/**
* .substrait.Expression.Literal.List list = 30;
*/
io.substrait.proto.Expression.Literal.ListOrBuilder getListOrBuilder();
/**
* .substrait.Type.List empty_list = 31;
* @return Whether the emptyList field is set.
*/
boolean hasEmptyList();
/**
* .substrait.Type.List empty_list = 31;
* @return The emptyList.
*/
io.substrait.proto.Type.List getEmptyList();
/**
* .substrait.Type.List empty_list = 31;
*/
io.substrait.proto.Type.ListOrBuilder getEmptyListOrBuilder();
/**
* .substrait.Type.Map empty_map = 32;
* @return Whether the emptyMap field is set.
*/
boolean hasEmptyMap();
/**
* .substrait.Type.Map empty_map = 32;
* @return The emptyMap.
*/
io.substrait.proto.Type.Map getEmptyMap();
/**
* .substrait.Type.Map empty_map = 32;
*/
io.substrait.proto.Type.MapOrBuilder getEmptyMapOrBuilder();
/**
* .substrait.Expression.Literal.UserDefined user_defined = 33;
* @return Whether the userDefined field is set.
*/
boolean hasUserDefined();
/**
* .substrait.Expression.Literal.UserDefined user_defined = 33;
* @return The userDefined.
*/
io.substrait.proto.Expression.Literal.UserDefined getUserDefined();
/**
* .substrait.Expression.Literal.UserDefined user_defined = 33;
*/
io.substrait.proto.Expression.Literal.UserDefinedOrBuilder getUserDefinedOrBuilder();
/**
*
* Whether the literal_type above should be treated as a nullable type.
* Applies to all members of the literal_type oneof EXCEPT:
* * Type null (must be nullable by definition)
* * Type.List empty_list (use Type.List::nullability)
* * Type.Map empty_map (use Type.Map::nullability)
*
*
* bool nullable = 50;
* @return The nullable.
*/
boolean getNullable();
/**
*
* optionally points to a type_variation_anchor defined in this plan.
* Applies to all members of union other than the Typed null (which should
* directly declare the type variation).
*
*
* uint32 type_variation_reference = 51;
* @return The typeVariationReference.
*/
int getTypeVariationReference();
io.substrait.proto.Expression.Literal.LiteralTypeCase getLiteralTypeCase();
}
/**
* Protobuf type {@code substrait.Expression.Literal}
*/
public static final class Literal extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Expression.Literal)
LiteralOrBuilder {
private static final long serialVersionUID = 0L;
// Use Literal.newBuilder() to construct.
private Literal(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Literal() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Literal();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Literal.class, io.substrait.proto.Expression.Literal.Builder.class);
}
public interface VarCharOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.Expression.Literal.VarChar)
com.google.protobuf.MessageOrBuilder {
/**
* string value = 1;
* @return The value.
*/
java.lang.String getValue();
/**
* string value = 1;
* @return The bytes for value.
*/
com.google.protobuf.ByteString
getValueBytes();
/**
* uint32 length = 2;
* @return The length.
*/
int getLength();
}
/**
* Protobuf type {@code substrait.Expression.Literal.VarChar}
*/
public static final class VarChar extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Expression.Literal.VarChar)
VarCharOrBuilder {
private static final long serialVersionUID = 0L;
// Use VarChar.newBuilder() to construct.
private VarChar(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VarChar() {
value_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new VarChar();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_VarChar_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_VarChar_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Literal.VarChar.class, io.substrait.proto.Expression.Literal.VarChar.Builder.class);
}
public static final int VALUE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object value_ = "";
/**
* string value = 1;
* @return The value.
*/
@java.lang.Override
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
value_ = s;
return s;
}
}
/**
* string value = 1;
* @return The bytes for value.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LENGTH_FIELD_NUMBER = 2;
private int length_ = 0;
/**
* uint32 length = 2;
* @return The length.
*/
@java.lang.Override
public int getLength() {
return length_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_);
}
if (length_ != 0) {
output.writeUInt32(2, length_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_);
}
if (length_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, length_);
}
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 io.substrait.proto.Expression.Literal.VarChar)) {
return super.equals(obj);
}
io.substrait.proto.Expression.Literal.VarChar other = (io.substrait.proto.Expression.Literal.VarChar) obj;
if (!getValue()
.equals(other.getValue())) return false;
if (getLength()
!= other.getLength()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (37 * hash) + LENGTH_FIELD_NUMBER;
hash = (53 * hash) + getLength();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.Expression.Literal.VarChar parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.VarChar parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.VarChar parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.VarChar parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.VarChar parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.VarChar parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.VarChar parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.VarChar 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 io.substrait.proto.Expression.Literal.VarChar parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.VarChar 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 io.substrait.proto.Expression.Literal.VarChar parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.VarChar 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(io.substrait.proto.Expression.Literal.VarChar 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 substrait.Expression.Literal.VarChar}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Expression.Literal.VarChar)
io.substrait.proto.Expression.Literal.VarCharOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_VarChar_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_VarChar_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Literal.VarChar.class, io.substrait.proto.Expression.Literal.VarChar.Builder.class);
}
// Construct using io.substrait.proto.Expression.Literal.VarChar.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
value_ = "";
length_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_VarChar_descriptor;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.VarChar getDefaultInstanceForType() {
return io.substrait.proto.Expression.Literal.VarChar.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.VarChar build() {
io.substrait.proto.Expression.Literal.VarChar result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.VarChar buildPartial() {
io.substrait.proto.Expression.Literal.VarChar result = new io.substrait.proto.Expression.Literal.VarChar(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.Expression.Literal.VarChar result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.value_ = value_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.length_ = length_;
}
}
@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 io.substrait.proto.Expression.Literal.VarChar) {
return mergeFrom((io.substrait.proto.Expression.Literal.VarChar)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Expression.Literal.VarChar other) {
if (other == io.substrait.proto.Expression.Literal.VarChar.getDefaultInstance()) return this;
if (!other.getValue().isEmpty()) {
value_ = other.value_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getLength() != 0) {
setLength(other.getLength());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
value_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
length_ = input.readUInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object value_ = "";
/**
* string value = 1;
* @return The value.
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
value_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string value = 1;
* @return The bytes for value.
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string value = 1;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
value_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string value = 1;
* @return This builder for chaining.
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string value = 1;
* @param value The bytes for value to set.
* @return This builder for chaining.
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
value_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int length_ ;
/**
* uint32 length = 2;
* @return The length.
*/
@java.lang.Override
public int getLength() {
return length_;
}
/**
* uint32 length = 2;
* @param value The length to set.
* @return This builder for chaining.
*/
public Builder setLength(int value) {
length_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* uint32 length = 2;
* @return This builder for chaining.
*/
public Builder clearLength() {
bitField0_ = (bitField0_ & ~0x00000002);
length_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:substrait.Expression.Literal.VarChar)
}
// @@protoc_insertion_point(class_scope:substrait.Expression.Literal.VarChar)
private static final io.substrait.proto.Expression.Literal.VarChar DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.Expression.Literal.VarChar();
}
public static io.substrait.proto.Expression.Literal.VarChar getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public VarChar parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.VarChar getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DecimalOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.Expression.Literal.Decimal)
com.google.protobuf.MessageOrBuilder {
/**
*
* little-endian twos-complement integer representation of complete value
* (ignoring precision) Always 16 bytes in length
*
*
* bytes value = 1;
* @return The value.
*/
com.google.protobuf.ByteString getValue();
/**
*
* The maximum number of digits allowed in the value.
* the maximum precision is 38.
*
*
* int32 precision = 2;
* @return The precision.
*/
int getPrecision();
/**
*
* declared scale of decimal literal
*
*
* int32 scale = 3;
* @return The scale.
*/
int getScale();
}
/**
* Protobuf type {@code substrait.Expression.Literal.Decimal}
*/
public static final class Decimal extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Expression.Literal.Decimal)
DecimalOrBuilder {
private static final long serialVersionUID = 0L;
// Use Decimal.newBuilder() to construct.
private Decimal(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Decimal() {
value_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Decimal();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_Decimal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_Decimal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Literal.Decimal.class, io.substrait.proto.Expression.Literal.Decimal.Builder.class);
}
public static final int VALUE_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* little-endian twos-complement integer representation of complete value
* (ignoring precision) Always 16 bytes in length
*
*
* bytes value = 1;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
public static final int PRECISION_FIELD_NUMBER = 2;
private int precision_ = 0;
/**
*
* The maximum number of digits allowed in the value.
* the maximum precision is 38.
*
*
* int32 precision = 2;
* @return The precision.
*/
@java.lang.Override
public int getPrecision() {
return precision_;
}
public static final int SCALE_FIELD_NUMBER = 3;
private int scale_ = 0;
/**
*
* declared scale of decimal literal
*
*
* int32 scale = 3;
* @return The scale.
*/
@java.lang.Override
public int getScale() {
return scale_;
}
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 (!value_.isEmpty()) {
output.writeBytes(1, value_);
}
if (precision_ != 0) {
output.writeInt32(2, precision_);
}
if (scale_ != 0) {
output.writeInt32(3, scale_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!value_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, value_);
}
if (precision_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, precision_);
}
if (scale_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, scale_);
}
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 io.substrait.proto.Expression.Literal.Decimal)) {
return super.equals(obj);
}
io.substrait.proto.Expression.Literal.Decimal other = (io.substrait.proto.Expression.Literal.Decimal) obj;
if (!getValue()
.equals(other.getValue())) return false;
if (getPrecision()
!= other.getPrecision()) return false;
if (getScale()
!= other.getScale()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (37 * hash) + PRECISION_FIELD_NUMBER;
hash = (53 * hash) + getPrecision();
hash = (37 * hash) + SCALE_FIELD_NUMBER;
hash = (53 * hash) + getScale();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.Expression.Literal.Decimal parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.Decimal parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.Decimal parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.Decimal parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.Decimal parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.Decimal parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.Decimal parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.Decimal 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 io.substrait.proto.Expression.Literal.Decimal parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.Decimal 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 io.substrait.proto.Expression.Literal.Decimal parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.Decimal 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(io.substrait.proto.Expression.Literal.Decimal 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 substrait.Expression.Literal.Decimal}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Expression.Literal.Decimal)
io.substrait.proto.Expression.Literal.DecimalOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_Decimal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_Decimal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Literal.Decimal.class, io.substrait.proto.Expression.Literal.Decimal.Builder.class);
}
// Construct using io.substrait.proto.Expression.Literal.Decimal.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
value_ = com.google.protobuf.ByteString.EMPTY;
precision_ = 0;
scale_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_Decimal_descriptor;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.Decimal getDefaultInstanceForType() {
return io.substrait.proto.Expression.Literal.Decimal.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.Decimal build() {
io.substrait.proto.Expression.Literal.Decimal result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.Decimal buildPartial() {
io.substrait.proto.Expression.Literal.Decimal result = new io.substrait.proto.Expression.Literal.Decimal(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.Expression.Literal.Decimal result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.value_ = value_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.precision_ = precision_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.scale_ = scale_;
}
}
@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 io.substrait.proto.Expression.Literal.Decimal) {
return mergeFrom((io.substrait.proto.Expression.Literal.Decimal)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Expression.Literal.Decimal other) {
if (other == io.substrait.proto.Expression.Literal.Decimal.getDefaultInstance()) return this;
if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
setValue(other.getValue());
}
if (other.getPrecision() != 0) {
setPrecision(other.getPrecision());
}
if (other.getScale() != 0) {
setScale(other.getScale());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
value_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
precision_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
scale_ = input.readInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* little-endian twos-complement integer representation of complete value
* (ignoring precision) Always 16 bytes in length
*
*
* bytes value = 1;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
*
* little-endian twos-complement integer representation of complete value
* (ignoring precision) Always 16 bytes in length
*
*
* bytes value = 1;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
value_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* little-endian twos-complement integer representation of complete value
* (ignoring precision) Always 16 bytes in length
*
*
* bytes value = 1;
* @return This builder for chaining.
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000001);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
private int precision_ ;
/**
*
* The maximum number of digits allowed in the value.
* the maximum precision is 38.
*
*
* int32 precision = 2;
* @return The precision.
*/
@java.lang.Override
public int getPrecision() {
return precision_;
}
/**
*
* The maximum number of digits allowed in the value.
* the maximum precision is 38.
*
*
* int32 precision = 2;
* @param value The precision to set.
* @return This builder for chaining.
*/
public Builder setPrecision(int value) {
precision_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The maximum number of digits allowed in the value.
* the maximum precision is 38.
*
*
* int32 precision = 2;
* @return This builder for chaining.
*/
public Builder clearPrecision() {
bitField0_ = (bitField0_ & ~0x00000002);
precision_ = 0;
onChanged();
return this;
}
private int scale_ ;
/**
*
* declared scale of decimal literal
*
*
* int32 scale = 3;
* @return The scale.
*/
@java.lang.Override
public int getScale() {
return scale_;
}
/**
*
* declared scale of decimal literal
*
*
* int32 scale = 3;
* @param value The scale to set.
* @return This builder for chaining.
*/
public Builder setScale(int value) {
scale_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* declared scale of decimal literal
*
*
* int32 scale = 3;
* @return This builder for chaining.
*/
public Builder clearScale() {
bitField0_ = (bitField0_ & ~0x00000004);
scale_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:substrait.Expression.Literal.Decimal)
}
// @@protoc_insertion_point(class_scope:substrait.Expression.Literal.Decimal)
private static final io.substrait.proto.Expression.Literal.Decimal DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.Expression.Literal.Decimal();
}
public static io.substrait.proto.Expression.Literal.Decimal getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Decimal parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.Decimal getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PrecisionTimestampOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.Expression.Literal.PrecisionTimestamp)
com.google.protobuf.MessageOrBuilder {
/**
*
* Sub-second precision, 0 means the value given is in seconds, 3 is milliseconds, 6 microseconds, 9 is nanoseconds
*
*
* int32 precision = 1;
* @return The precision.
*/
int getPrecision();
/**
*
* Time passed since 1970-01-01 00:00:00.000000 in UTC for PrecisionTimestampTZ and unspecified timezone for PrecisionTimestamp
*
*
* int64 value = 2;
* @return The value.
*/
long getValue();
}
/**
* Protobuf type {@code substrait.Expression.Literal.PrecisionTimestamp}
*/
public static final class PrecisionTimestamp extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Expression.Literal.PrecisionTimestamp)
PrecisionTimestampOrBuilder {
private static final long serialVersionUID = 0L;
// Use PrecisionTimestamp.newBuilder() to construct.
private PrecisionTimestamp(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PrecisionTimestamp() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PrecisionTimestamp();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_PrecisionTimestamp_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_PrecisionTimestamp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Literal.PrecisionTimestamp.class, io.substrait.proto.Expression.Literal.PrecisionTimestamp.Builder.class);
}
public static final int PRECISION_FIELD_NUMBER = 1;
private int precision_ = 0;
/**
*
* Sub-second precision, 0 means the value given is in seconds, 3 is milliseconds, 6 microseconds, 9 is nanoseconds
*
*
* int32 precision = 1;
* @return The precision.
*/
@java.lang.Override
public int getPrecision() {
return precision_;
}
public static final int VALUE_FIELD_NUMBER = 2;
private long value_ = 0L;
/**
*
* Time passed since 1970-01-01 00:00:00.000000 in UTC for PrecisionTimestampTZ and unspecified timezone for PrecisionTimestamp
*
*
* int64 value = 2;
* @return The value.
*/
@java.lang.Override
public long getValue() {
return value_;
}
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 (precision_ != 0) {
output.writeInt32(1, precision_);
}
if (value_ != 0L) {
output.writeInt64(2, value_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (precision_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, precision_);
}
if (value_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, 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 io.substrait.proto.Expression.Literal.PrecisionTimestamp)) {
return super.equals(obj);
}
io.substrait.proto.Expression.Literal.PrecisionTimestamp other = (io.substrait.proto.Expression.Literal.PrecisionTimestamp) obj;
if (getPrecision()
!= other.getPrecision()) return false;
if (getValue()
!= other.getValue()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PRECISION_FIELD_NUMBER;
hash = (53 * hash) + getPrecision();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getValue());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.Expression.Literal.PrecisionTimestamp parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.PrecisionTimestamp parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.PrecisionTimestamp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.PrecisionTimestamp parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.PrecisionTimestamp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.PrecisionTimestamp parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.PrecisionTimestamp parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.PrecisionTimestamp 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 io.substrait.proto.Expression.Literal.PrecisionTimestamp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.PrecisionTimestamp 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 io.substrait.proto.Expression.Literal.PrecisionTimestamp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.PrecisionTimestamp 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(io.substrait.proto.Expression.Literal.PrecisionTimestamp 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 substrait.Expression.Literal.PrecisionTimestamp}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Expression.Literal.PrecisionTimestamp)
io.substrait.proto.Expression.Literal.PrecisionTimestampOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_PrecisionTimestamp_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_PrecisionTimestamp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Literal.PrecisionTimestamp.class, io.substrait.proto.Expression.Literal.PrecisionTimestamp.Builder.class);
}
// Construct using io.substrait.proto.Expression.Literal.PrecisionTimestamp.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
precision_ = 0;
value_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_PrecisionTimestamp_descriptor;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.PrecisionTimestamp getDefaultInstanceForType() {
return io.substrait.proto.Expression.Literal.PrecisionTimestamp.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.PrecisionTimestamp build() {
io.substrait.proto.Expression.Literal.PrecisionTimestamp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.PrecisionTimestamp buildPartial() {
io.substrait.proto.Expression.Literal.PrecisionTimestamp result = new io.substrait.proto.Expression.Literal.PrecisionTimestamp(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.Expression.Literal.PrecisionTimestamp result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.precision_ = precision_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.value_ = value_;
}
}
@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 io.substrait.proto.Expression.Literal.PrecisionTimestamp) {
return mergeFrom((io.substrait.proto.Expression.Literal.PrecisionTimestamp)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Expression.Literal.PrecisionTimestamp other) {
if (other == io.substrait.proto.Expression.Literal.PrecisionTimestamp.getDefaultInstance()) return this;
if (other.getPrecision() != 0) {
setPrecision(other.getPrecision());
}
if (other.getValue() != 0L) {
setValue(other.getValue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
precision_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
value_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int precision_ ;
/**
*
* Sub-second precision, 0 means the value given is in seconds, 3 is milliseconds, 6 microseconds, 9 is nanoseconds
*
*
* int32 precision = 1;
* @return The precision.
*/
@java.lang.Override
public int getPrecision() {
return precision_;
}
/**
*
* Sub-second precision, 0 means the value given is in seconds, 3 is milliseconds, 6 microseconds, 9 is nanoseconds
*
*
* int32 precision = 1;
* @param value The precision to set.
* @return This builder for chaining.
*/
public Builder setPrecision(int value) {
precision_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Sub-second precision, 0 means the value given is in seconds, 3 is milliseconds, 6 microseconds, 9 is nanoseconds
*
*
* int32 precision = 1;
* @return This builder for chaining.
*/
public Builder clearPrecision() {
bitField0_ = (bitField0_ & ~0x00000001);
precision_ = 0;
onChanged();
return this;
}
private long value_ ;
/**
*
* Time passed since 1970-01-01 00:00:00.000000 in UTC for PrecisionTimestampTZ and unspecified timezone for PrecisionTimestamp
*
*
* int64 value = 2;
* @return The value.
*/
@java.lang.Override
public long getValue() {
return value_;
}
/**
*
* Time passed since 1970-01-01 00:00:00.000000 in UTC for PrecisionTimestampTZ and unspecified timezone for PrecisionTimestamp
*
*
* int64 value = 2;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(long value) {
value_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Time passed since 1970-01-01 00:00:00.000000 in UTC for PrecisionTimestampTZ and unspecified timezone for PrecisionTimestamp
*
*
* int64 value = 2;
* @return This builder for chaining.
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:substrait.Expression.Literal.PrecisionTimestamp)
}
// @@protoc_insertion_point(class_scope:substrait.Expression.Literal.PrecisionTimestamp)
private static final io.substrait.proto.Expression.Literal.PrecisionTimestamp DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.Expression.Literal.PrecisionTimestamp();
}
public static io.substrait.proto.Expression.Literal.PrecisionTimestamp getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PrecisionTimestamp parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.PrecisionTimestamp getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MapOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.Expression.Literal.Map)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .substrait.Expression.Literal.Map.KeyValue key_values = 1;
*/
java.util.List
getKeyValuesList();
/**
* repeated .substrait.Expression.Literal.Map.KeyValue key_values = 1;
*/
io.substrait.proto.Expression.Literal.Map.KeyValue getKeyValues(int index);
/**
* repeated .substrait.Expression.Literal.Map.KeyValue key_values = 1;
*/
int getKeyValuesCount();
/**
* repeated .substrait.Expression.Literal.Map.KeyValue key_values = 1;
*/
java.util.List extends io.substrait.proto.Expression.Literal.Map.KeyValueOrBuilder>
getKeyValuesOrBuilderList();
/**
* repeated .substrait.Expression.Literal.Map.KeyValue key_values = 1;
*/
io.substrait.proto.Expression.Literal.Map.KeyValueOrBuilder getKeyValuesOrBuilder(
int index);
}
/**
* Protobuf type {@code substrait.Expression.Literal.Map}
*/
public static final class Map extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Expression.Literal.Map)
MapOrBuilder {
private static final long serialVersionUID = 0L;
// Use Map.newBuilder() to construct.
private Map(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Map() {
keyValues_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Map();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_Map_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_Map_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Literal.Map.class, io.substrait.proto.Expression.Literal.Map.Builder.class);
}
public interface KeyValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.Expression.Literal.Map.KeyValue)
com.google.protobuf.MessageOrBuilder {
/**
* .substrait.Expression.Literal key = 1;
* @return Whether the key field is set.
*/
boolean hasKey();
/**
* .substrait.Expression.Literal key = 1;
* @return The key.
*/
io.substrait.proto.Expression.Literal getKey();
/**
* .substrait.Expression.Literal key = 1;
*/
io.substrait.proto.Expression.LiteralOrBuilder getKeyOrBuilder();
/**
* .substrait.Expression.Literal value = 2;
* @return Whether the value field is set.
*/
boolean hasValue();
/**
* .substrait.Expression.Literal value = 2;
* @return The value.
*/
io.substrait.proto.Expression.Literal getValue();
/**
* .substrait.Expression.Literal value = 2;
*/
io.substrait.proto.Expression.LiteralOrBuilder getValueOrBuilder();
}
/**
* Protobuf type {@code substrait.Expression.Literal.Map.KeyValue}
*/
public static final class KeyValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Expression.Literal.Map.KeyValue)
KeyValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use KeyValue.newBuilder() to construct.
private KeyValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private KeyValue() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new KeyValue();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_Map_KeyValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_Map_KeyValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Literal.Map.KeyValue.class, io.substrait.proto.Expression.Literal.Map.KeyValue.Builder.class);
}
private int bitField0_;
public static final int KEY_FIELD_NUMBER = 1;
private io.substrait.proto.Expression.Literal key_;
/**
* .substrait.Expression.Literal key = 1;
* @return Whether the key field is set.
*/
@java.lang.Override
public boolean hasKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .substrait.Expression.Literal key = 1;
* @return The key.
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal getKey() {
return key_ == null ? io.substrait.proto.Expression.Literal.getDefaultInstance() : key_;
}
/**
* .substrait.Expression.Literal key = 1;
*/
@java.lang.Override
public io.substrait.proto.Expression.LiteralOrBuilder getKeyOrBuilder() {
return key_ == null ? io.substrait.proto.Expression.Literal.getDefaultInstance() : key_;
}
public static final int VALUE_FIELD_NUMBER = 2;
private io.substrait.proto.Expression.Literal value_;
/**
* .substrait.Expression.Literal value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .substrait.Expression.Literal value = 2;
* @return The value.
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal getValue() {
return value_ == null ? io.substrait.proto.Expression.Literal.getDefaultInstance() : value_;
}
/**
* .substrait.Expression.Literal value = 2;
*/
@java.lang.Override
public io.substrait.proto.Expression.LiteralOrBuilder getValueOrBuilder() {
return value_ == null ? io.substrait.proto.Expression.Literal.getDefaultInstance() : value_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getKey());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getValue());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getKey());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getValue());
}
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 io.substrait.proto.Expression.Literal.Map.KeyValue)) {
return super.equals(obj);
}
io.substrait.proto.Expression.Literal.Map.KeyValue other = (io.substrait.proto.Expression.Literal.Map.KeyValue) obj;
if (hasKey() != other.hasKey()) return false;
if (hasKey()) {
if (!getKey()
.equals(other.getKey())) return false;
}
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.Expression.Literal.Map.KeyValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.Map.KeyValue parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.Map.KeyValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.Map.KeyValue parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.Map.KeyValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.Map.KeyValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.Map.KeyValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.Map.KeyValue 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 io.substrait.proto.Expression.Literal.Map.KeyValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.Map.KeyValue 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 io.substrait.proto.Expression.Literal.Map.KeyValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.Map.KeyValue 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(io.substrait.proto.Expression.Literal.Map.KeyValue 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 substrait.Expression.Literal.Map.KeyValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Expression.Literal.Map.KeyValue)
io.substrait.proto.Expression.Literal.Map.KeyValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_Map_KeyValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_Map_KeyValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Literal.Map.KeyValue.class, io.substrait.proto.Expression.Literal.Map.KeyValue.Builder.class);
}
// Construct using io.substrait.proto.Expression.Literal.Map.KeyValue.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getKeyFieldBuilder();
getValueFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
key_ = null;
if (keyBuilder_ != null) {
keyBuilder_.dispose();
keyBuilder_ = null;
}
value_ = null;
if (valueBuilder_ != null) {
valueBuilder_.dispose();
valueBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_Map_KeyValue_descriptor;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.Map.KeyValue getDefaultInstanceForType() {
return io.substrait.proto.Expression.Literal.Map.KeyValue.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.Map.KeyValue build() {
io.substrait.proto.Expression.Literal.Map.KeyValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.Map.KeyValue buildPartial() {
io.substrait.proto.Expression.Literal.Map.KeyValue result = new io.substrait.proto.Expression.Literal.Map.KeyValue(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.Expression.Literal.Map.KeyValue result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.key_ = keyBuilder_ == null
? key_
: keyBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.value_ = valueBuilder_ == null
? value_
: valueBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@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 io.substrait.proto.Expression.Literal.Map.KeyValue) {
return mergeFrom((io.substrait.proto.Expression.Literal.Map.KeyValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Expression.Literal.Map.KeyValue other) {
if (other == io.substrait.proto.Expression.Literal.Map.KeyValue.getDefaultInstance()) return this;
if (other.hasKey()) {
mergeKey(other.getKey());
}
if (other.hasValue()) {
mergeValue(other.getValue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getKeyFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getValueFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private io.substrait.proto.Expression.Literal key_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal, io.substrait.proto.Expression.Literal.Builder, io.substrait.proto.Expression.LiteralOrBuilder> keyBuilder_;
/**
* .substrait.Expression.Literal key = 1;
* @return Whether the key field is set.
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .substrait.Expression.Literal key = 1;
* @return The key.
*/
public io.substrait.proto.Expression.Literal getKey() {
if (keyBuilder_ == null) {
return key_ == null ? io.substrait.proto.Expression.Literal.getDefaultInstance() : key_;
} else {
return keyBuilder_.getMessage();
}
}
/**
* .substrait.Expression.Literal key = 1;
*/
public Builder setKey(io.substrait.proto.Expression.Literal value) {
if (keyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
} else {
keyBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .substrait.Expression.Literal key = 1;
*/
public Builder setKey(
io.substrait.proto.Expression.Literal.Builder builderForValue) {
if (keyBuilder_ == null) {
key_ = builderForValue.build();
} else {
keyBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .substrait.Expression.Literal key = 1;
*/
public Builder mergeKey(io.substrait.proto.Expression.Literal value) {
if (keyBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
key_ != null &&
key_ != io.substrait.proto.Expression.Literal.getDefaultInstance()) {
getKeyBuilder().mergeFrom(value);
} else {
key_ = value;
}
} else {
keyBuilder_.mergeFrom(value);
}
if (key_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .substrait.Expression.Literal key = 1;
*/
public Builder clearKey() {
bitField0_ = (bitField0_ & ~0x00000001);
key_ = null;
if (keyBuilder_ != null) {
keyBuilder_.dispose();
keyBuilder_ = null;
}
onChanged();
return this;
}
/**
* .substrait.Expression.Literal key = 1;
*/
public io.substrait.proto.Expression.Literal.Builder getKeyBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getKeyFieldBuilder().getBuilder();
}
/**
* .substrait.Expression.Literal key = 1;
*/
public io.substrait.proto.Expression.LiteralOrBuilder getKeyOrBuilder() {
if (keyBuilder_ != null) {
return keyBuilder_.getMessageOrBuilder();
} else {
return key_ == null ?
io.substrait.proto.Expression.Literal.getDefaultInstance() : key_;
}
}
/**
* .substrait.Expression.Literal key = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal, io.substrait.proto.Expression.Literal.Builder, io.substrait.proto.Expression.LiteralOrBuilder>
getKeyFieldBuilder() {
if (keyBuilder_ == null) {
keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal, io.substrait.proto.Expression.Literal.Builder, io.substrait.proto.Expression.LiteralOrBuilder>(
getKey(),
getParentForChildren(),
isClean());
key_ = null;
}
return keyBuilder_;
}
private io.substrait.proto.Expression.Literal value_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal, io.substrait.proto.Expression.Literal.Builder, io.substrait.proto.Expression.LiteralOrBuilder> valueBuilder_;
/**
* .substrait.Expression.Literal value = 2;
* @return Whether the value field is set.
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .substrait.Expression.Literal value = 2;
* @return The value.
*/
public io.substrait.proto.Expression.Literal getValue() {
if (valueBuilder_ == null) {
return value_ == null ? io.substrait.proto.Expression.Literal.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
* .substrait.Expression.Literal value = 2;
*/
public Builder setValue(io.substrait.proto.Expression.Literal value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
} else {
valueBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .substrait.Expression.Literal value = 2;
*/
public Builder setValue(
io.substrait.proto.Expression.Literal.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .substrait.Expression.Literal value = 2;
*/
public Builder mergeValue(io.substrait.proto.Expression.Literal value) {
if (valueBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
value_ != null &&
value_ != io.substrait.proto.Expression.Literal.getDefaultInstance()) {
getValueBuilder().mergeFrom(value);
} else {
value_ = value;
}
} else {
valueBuilder_.mergeFrom(value);
}
if (value_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .substrait.Expression.Literal value = 2;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = null;
if (valueBuilder_ != null) {
valueBuilder_.dispose();
valueBuilder_ = null;
}
onChanged();
return this;
}
/**
* .substrait.Expression.Literal value = 2;
*/
public io.substrait.proto.Expression.Literal.Builder getValueBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
* .substrait.Expression.Literal value = 2;
*/
public io.substrait.proto.Expression.LiteralOrBuilder getValueOrBuilder() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilder();
} else {
return value_ == null ?
io.substrait.proto.Expression.Literal.getDefaultInstance() : value_;
}
}
/**
* .substrait.Expression.Literal value = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal, io.substrait.proto.Expression.Literal.Builder, io.substrait.proto.Expression.LiteralOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal, io.substrait.proto.Expression.Literal.Builder, io.substrait.proto.Expression.LiteralOrBuilder>(
getValue(),
getParentForChildren(),
isClean());
value_ = null;
}
return valueBuilder_;
}
@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:substrait.Expression.Literal.Map.KeyValue)
}
// @@protoc_insertion_point(class_scope:substrait.Expression.Literal.Map.KeyValue)
private static final io.substrait.proto.Expression.Literal.Map.KeyValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.Expression.Literal.Map.KeyValue();
}
public static io.substrait.proto.Expression.Literal.Map.KeyValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public KeyValue parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.Map.KeyValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int KEY_VALUES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List keyValues_;
/**
* repeated .substrait.Expression.Literal.Map.KeyValue key_values = 1;
*/
@java.lang.Override
public java.util.List getKeyValuesList() {
return keyValues_;
}
/**
* repeated .substrait.Expression.Literal.Map.KeyValue key_values = 1;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.Expression.Literal.Map.KeyValueOrBuilder>
getKeyValuesOrBuilderList() {
return keyValues_;
}
/**
* repeated .substrait.Expression.Literal.Map.KeyValue key_values = 1;
*/
@java.lang.Override
public int getKeyValuesCount() {
return keyValues_.size();
}
/**
* repeated .substrait.Expression.Literal.Map.KeyValue key_values = 1;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.Map.KeyValue getKeyValues(int index) {
return keyValues_.get(index);
}
/**
* repeated .substrait.Expression.Literal.Map.KeyValue key_values = 1;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.Map.KeyValueOrBuilder getKeyValuesOrBuilder(
int index) {
return keyValues_.get(index);
}
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 {
for (int i = 0; i < keyValues_.size(); i++) {
output.writeMessage(1, keyValues_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < keyValues_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, keyValues_.get(i));
}
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 io.substrait.proto.Expression.Literal.Map)) {
return super.equals(obj);
}
io.substrait.proto.Expression.Literal.Map other = (io.substrait.proto.Expression.Literal.Map) obj;
if (!getKeyValuesList()
.equals(other.getKeyValuesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getKeyValuesCount() > 0) {
hash = (37 * hash) + KEY_VALUES_FIELD_NUMBER;
hash = (53 * hash) + getKeyValuesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.Expression.Literal.Map parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.Map parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.Map parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.Map parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.Map parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.Map parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.Map parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.Map 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 io.substrait.proto.Expression.Literal.Map parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.Map 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 io.substrait.proto.Expression.Literal.Map parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.Map 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(io.substrait.proto.Expression.Literal.Map 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 substrait.Expression.Literal.Map}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Expression.Literal.Map)
io.substrait.proto.Expression.Literal.MapOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_Map_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_Map_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Literal.Map.class, io.substrait.proto.Expression.Literal.Map.Builder.class);
}
// Construct using io.substrait.proto.Expression.Literal.Map.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (keyValuesBuilder_ == null) {
keyValues_ = java.util.Collections.emptyList();
} else {
keyValues_ = null;
keyValuesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_Map_descriptor;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.Map getDefaultInstanceForType() {
return io.substrait.proto.Expression.Literal.Map.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.Map build() {
io.substrait.proto.Expression.Literal.Map result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.Map buildPartial() {
io.substrait.proto.Expression.Literal.Map result = new io.substrait.proto.Expression.Literal.Map(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.substrait.proto.Expression.Literal.Map result) {
if (keyValuesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
keyValues_ = java.util.Collections.unmodifiableList(keyValues_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.keyValues_ = keyValues_;
} else {
result.keyValues_ = keyValuesBuilder_.build();
}
}
private void buildPartial0(io.substrait.proto.Expression.Literal.Map result) {
int from_bitField0_ = bitField0_;
}
@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 io.substrait.proto.Expression.Literal.Map) {
return mergeFrom((io.substrait.proto.Expression.Literal.Map)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Expression.Literal.Map other) {
if (other == io.substrait.proto.Expression.Literal.Map.getDefaultInstance()) return this;
if (keyValuesBuilder_ == null) {
if (!other.keyValues_.isEmpty()) {
if (keyValues_.isEmpty()) {
keyValues_ = other.keyValues_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureKeyValuesIsMutable();
keyValues_.addAll(other.keyValues_);
}
onChanged();
}
} else {
if (!other.keyValues_.isEmpty()) {
if (keyValuesBuilder_.isEmpty()) {
keyValuesBuilder_.dispose();
keyValuesBuilder_ = null;
keyValues_ = other.keyValues_;
bitField0_ = (bitField0_ & ~0x00000001);
keyValuesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getKeyValuesFieldBuilder() : null;
} else {
keyValuesBuilder_.addAllMessages(other.keyValues_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.substrait.proto.Expression.Literal.Map.KeyValue m =
input.readMessage(
io.substrait.proto.Expression.Literal.Map.KeyValue.parser(),
extensionRegistry);
if (keyValuesBuilder_ == null) {
ensureKeyValuesIsMutable();
keyValues_.add(m);
} else {
keyValuesBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List keyValues_ =
java.util.Collections.emptyList();
private void ensureKeyValuesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
keyValues_ = new java.util.ArrayList(keyValues_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression.Literal.Map.KeyValue, io.substrait.proto.Expression.Literal.Map.KeyValue.Builder, io.substrait.proto.Expression.Literal.Map.KeyValueOrBuilder> keyValuesBuilder_;
/**
* repeated .substrait.Expression.Literal.Map.KeyValue key_values = 1;
*/
public java.util.List getKeyValuesList() {
if (keyValuesBuilder_ == null) {
return java.util.Collections.unmodifiableList(keyValues_);
} else {
return keyValuesBuilder_.getMessageList();
}
}
/**
* repeated .substrait.Expression.Literal.Map.KeyValue key_values = 1;
*/
public int getKeyValuesCount() {
if (keyValuesBuilder_ == null) {
return keyValues_.size();
} else {
return keyValuesBuilder_.getCount();
}
}
/**
* repeated .substrait.Expression.Literal.Map.KeyValue key_values = 1;
*/
public io.substrait.proto.Expression.Literal.Map.KeyValue getKeyValues(int index) {
if (keyValuesBuilder_ == null) {
return keyValues_.get(index);
} else {
return keyValuesBuilder_.getMessage(index);
}
}
/**
* repeated .substrait.Expression.Literal.Map.KeyValue key_values = 1;
*/
public Builder setKeyValues(
int index, io.substrait.proto.Expression.Literal.Map.KeyValue value) {
if (keyValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeyValuesIsMutable();
keyValues_.set(index, value);
onChanged();
} else {
keyValuesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .substrait.Expression.Literal.Map.KeyValue key_values = 1;
*/
public Builder setKeyValues(
int index, io.substrait.proto.Expression.Literal.Map.KeyValue.Builder builderForValue) {
if (keyValuesBuilder_ == null) {
ensureKeyValuesIsMutable();
keyValues_.set(index, builderForValue.build());
onChanged();
} else {
keyValuesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .substrait.Expression.Literal.Map.KeyValue key_values = 1;
*/
public Builder addKeyValues(io.substrait.proto.Expression.Literal.Map.KeyValue value) {
if (keyValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeyValuesIsMutable();
keyValues_.add(value);
onChanged();
} else {
keyValuesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .substrait.Expression.Literal.Map.KeyValue key_values = 1;
*/
public Builder addKeyValues(
int index, io.substrait.proto.Expression.Literal.Map.KeyValue value) {
if (keyValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeyValuesIsMutable();
keyValues_.add(index, value);
onChanged();
} else {
keyValuesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .substrait.Expression.Literal.Map.KeyValue key_values = 1;
*/
public Builder addKeyValues(
io.substrait.proto.Expression.Literal.Map.KeyValue.Builder builderForValue) {
if (keyValuesBuilder_ == null) {
ensureKeyValuesIsMutable();
keyValues_.add(builderForValue.build());
onChanged();
} else {
keyValuesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .substrait.Expression.Literal.Map.KeyValue key_values = 1;
*/
public Builder addKeyValues(
int index, io.substrait.proto.Expression.Literal.Map.KeyValue.Builder builderForValue) {
if (keyValuesBuilder_ == null) {
ensureKeyValuesIsMutable();
keyValues_.add(index, builderForValue.build());
onChanged();
} else {
keyValuesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .substrait.Expression.Literal.Map.KeyValue key_values = 1;
*/
public Builder addAllKeyValues(
java.lang.Iterable extends io.substrait.proto.Expression.Literal.Map.KeyValue> values) {
if (keyValuesBuilder_ == null) {
ensureKeyValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, keyValues_);
onChanged();
} else {
keyValuesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .substrait.Expression.Literal.Map.KeyValue key_values = 1;
*/
public Builder clearKeyValues() {
if (keyValuesBuilder_ == null) {
keyValues_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
keyValuesBuilder_.clear();
}
return this;
}
/**
* repeated .substrait.Expression.Literal.Map.KeyValue key_values = 1;
*/
public Builder removeKeyValues(int index) {
if (keyValuesBuilder_ == null) {
ensureKeyValuesIsMutable();
keyValues_.remove(index);
onChanged();
} else {
keyValuesBuilder_.remove(index);
}
return this;
}
/**
* repeated .substrait.Expression.Literal.Map.KeyValue key_values = 1;
*/
public io.substrait.proto.Expression.Literal.Map.KeyValue.Builder getKeyValuesBuilder(
int index) {
return getKeyValuesFieldBuilder().getBuilder(index);
}
/**
* repeated .substrait.Expression.Literal.Map.KeyValue key_values = 1;
*/
public io.substrait.proto.Expression.Literal.Map.KeyValueOrBuilder getKeyValuesOrBuilder(
int index) {
if (keyValuesBuilder_ == null) {
return keyValues_.get(index); } else {
return keyValuesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .substrait.Expression.Literal.Map.KeyValue key_values = 1;
*/
public java.util.List extends io.substrait.proto.Expression.Literal.Map.KeyValueOrBuilder>
getKeyValuesOrBuilderList() {
if (keyValuesBuilder_ != null) {
return keyValuesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(keyValues_);
}
}
/**
* repeated .substrait.Expression.Literal.Map.KeyValue key_values = 1;
*/
public io.substrait.proto.Expression.Literal.Map.KeyValue.Builder addKeyValuesBuilder() {
return getKeyValuesFieldBuilder().addBuilder(
io.substrait.proto.Expression.Literal.Map.KeyValue.getDefaultInstance());
}
/**
* repeated .substrait.Expression.Literal.Map.KeyValue key_values = 1;
*/
public io.substrait.proto.Expression.Literal.Map.KeyValue.Builder addKeyValuesBuilder(
int index) {
return getKeyValuesFieldBuilder().addBuilder(
index, io.substrait.proto.Expression.Literal.Map.KeyValue.getDefaultInstance());
}
/**
* repeated .substrait.Expression.Literal.Map.KeyValue key_values = 1;
*/
public java.util.List
getKeyValuesBuilderList() {
return getKeyValuesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression.Literal.Map.KeyValue, io.substrait.proto.Expression.Literal.Map.KeyValue.Builder, io.substrait.proto.Expression.Literal.Map.KeyValueOrBuilder>
getKeyValuesFieldBuilder() {
if (keyValuesBuilder_ == null) {
keyValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression.Literal.Map.KeyValue, io.substrait.proto.Expression.Literal.Map.KeyValue.Builder, io.substrait.proto.Expression.Literal.Map.KeyValueOrBuilder>(
keyValues_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
keyValues_ = null;
}
return keyValuesBuilder_;
}
@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:substrait.Expression.Literal.Map)
}
// @@protoc_insertion_point(class_scope:substrait.Expression.Literal.Map)
private static final io.substrait.proto.Expression.Literal.Map DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.Expression.Literal.Map();
}
public static io.substrait.proto.Expression.Literal.Map getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Map parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.Map getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IntervalYearToMonthOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.Expression.Literal.IntervalYearToMonth)
com.google.protobuf.MessageOrBuilder {
/**
* int32 years = 1;
* @return The years.
*/
int getYears();
/**
* int32 months = 2;
* @return The months.
*/
int getMonths();
}
/**
* Protobuf type {@code substrait.Expression.Literal.IntervalYearToMonth}
*/
public static final class IntervalYearToMonth extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Expression.Literal.IntervalYearToMonth)
IntervalYearToMonthOrBuilder {
private static final long serialVersionUID = 0L;
// Use IntervalYearToMonth.newBuilder() to construct.
private IntervalYearToMonth(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IntervalYearToMonth() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IntervalYearToMonth();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_IntervalYearToMonth_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_IntervalYearToMonth_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Literal.IntervalYearToMonth.class, io.substrait.proto.Expression.Literal.IntervalYearToMonth.Builder.class);
}
public static final int YEARS_FIELD_NUMBER = 1;
private int years_ = 0;
/**
* int32 years = 1;
* @return The years.
*/
@java.lang.Override
public int getYears() {
return years_;
}
public static final int MONTHS_FIELD_NUMBER = 2;
private int months_ = 0;
/**
* int32 months = 2;
* @return The months.
*/
@java.lang.Override
public int getMonths() {
return months_;
}
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 (years_ != 0) {
output.writeInt32(1, years_);
}
if (months_ != 0) {
output.writeInt32(2, months_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (years_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, years_);
}
if (months_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, months_);
}
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 io.substrait.proto.Expression.Literal.IntervalYearToMonth)) {
return super.equals(obj);
}
io.substrait.proto.Expression.Literal.IntervalYearToMonth other = (io.substrait.proto.Expression.Literal.IntervalYearToMonth) obj;
if (getYears()
!= other.getYears()) return false;
if (getMonths()
!= other.getMonths()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + YEARS_FIELD_NUMBER;
hash = (53 * hash) + getYears();
hash = (37 * hash) + MONTHS_FIELD_NUMBER;
hash = (53 * hash) + getMonths();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.Expression.Literal.IntervalYearToMonth parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.IntervalYearToMonth parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.IntervalYearToMonth parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.IntervalYearToMonth parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.IntervalYearToMonth parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.IntervalYearToMonth parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.IntervalYearToMonth parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.IntervalYearToMonth 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 io.substrait.proto.Expression.Literal.IntervalYearToMonth parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.IntervalYearToMonth 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 io.substrait.proto.Expression.Literal.IntervalYearToMonth parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.IntervalYearToMonth 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(io.substrait.proto.Expression.Literal.IntervalYearToMonth 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 substrait.Expression.Literal.IntervalYearToMonth}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Expression.Literal.IntervalYearToMonth)
io.substrait.proto.Expression.Literal.IntervalYearToMonthOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_IntervalYearToMonth_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_IntervalYearToMonth_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Literal.IntervalYearToMonth.class, io.substrait.proto.Expression.Literal.IntervalYearToMonth.Builder.class);
}
// Construct using io.substrait.proto.Expression.Literal.IntervalYearToMonth.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
years_ = 0;
months_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_IntervalYearToMonth_descriptor;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.IntervalYearToMonth getDefaultInstanceForType() {
return io.substrait.proto.Expression.Literal.IntervalYearToMonth.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.IntervalYearToMonth build() {
io.substrait.proto.Expression.Literal.IntervalYearToMonth result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.IntervalYearToMonth buildPartial() {
io.substrait.proto.Expression.Literal.IntervalYearToMonth result = new io.substrait.proto.Expression.Literal.IntervalYearToMonth(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.Expression.Literal.IntervalYearToMonth result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.years_ = years_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.months_ = months_;
}
}
@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 io.substrait.proto.Expression.Literal.IntervalYearToMonth) {
return mergeFrom((io.substrait.proto.Expression.Literal.IntervalYearToMonth)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Expression.Literal.IntervalYearToMonth other) {
if (other == io.substrait.proto.Expression.Literal.IntervalYearToMonth.getDefaultInstance()) return this;
if (other.getYears() != 0) {
setYears(other.getYears());
}
if (other.getMonths() != 0) {
setMonths(other.getMonths());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
years_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
months_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int years_ ;
/**
* int32 years = 1;
* @return The years.
*/
@java.lang.Override
public int getYears() {
return years_;
}
/**
* int32 years = 1;
* @param value The years to set.
* @return This builder for chaining.
*/
public Builder setYears(int value) {
years_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* int32 years = 1;
* @return This builder for chaining.
*/
public Builder clearYears() {
bitField0_ = (bitField0_ & ~0x00000001);
years_ = 0;
onChanged();
return this;
}
private int months_ ;
/**
* int32 months = 2;
* @return The months.
*/
@java.lang.Override
public int getMonths() {
return months_;
}
/**
* int32 months = 2;
* @param value The months to set.
* @return This builder for chaining.
*/
public Builder setMonths(int value) {
months_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* int32 months = 2;
* @return This builder for chaining.
*/
public Builder clearMonths() {
bitField0_ = (bitField0_ & ~0x00000002);
months_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:substrait.Expression.Literal.IntervalYearToMonth)
}
// @@protoc_insertion_point(class_scope:substrait.Expression.Literal.IntervalYearToMonth)
private static final io.substrait.proto.Expression.Literal.IntervalYearToMonth DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.Expression.Literal.IntervalYearToMonth();
}
public static io.substrait.proto.Expression.Literal.IntervalYearToMonth getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IntervalYearToMonth parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.IntervalYearToMonth getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IntervalDayToSecondOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.Expression.Literal.IntervalDayToSecond)
com.google.protobuf.MessageOrBuilder {
/**
* int32 days = 1;
* @return The days.
*/
int getDays();
/**
* int32 seconds = 2;
* @return The seconds.
*/
int getSeconds();
/**
*
* use precision and subseconds below, they cover and replace microseconds.
*
*
* int32 microseconds = 3 [deprecated = true];
* @deprecated substrait.Expression.Literal.IntervalDayToSecond.microseconds is deprecated.
* See substrait/algebra.proto;l=946
* @return Whether the microseconds field is set.
*/
@java.lang.Deprecated boolean hasMicroseconds();
/**
*
* use precision and subseconds below, they cover and replace microseconds.
*
*
* int32 microseconds = 3 [deprecated = true];
* @deprecated substrait.Expression.Literal.IntervalDayToSecond.microseconds is deprecated.
* See substrait/algebra.proto;l=946
* @return The microseconds.
*/
@java.lang.Deprecated int getMicroseconds();
/**
*
* Sub-second precision, 0 means the value given is in seconds, 3 is milliseconds, 6 microseconds, 9 is nanoseconds. Should be used with subseconds below.
*
*
* int32 precision = 4;
* @return Whether the precision field is set.
*/
boolean hasPrecision();
/**
*
* Sub-second precision, 0 means the value given is in seconds, 3 is milliseconds, 6 microseconds, 9 is nanoseconds. Should be used with subseconds below.
*
*
* int32 precision = 4;
* @return The precision.
*/
int getPrecision();
/**
*
* the number of fractional seconds using 1e(-precision) units. Should only be used with precision field, not microseconds.
*
*
* int64 subseconds = 5;
* @return The subseconds.
*/
long getSubseconds();
io.substrait.proto.Expression.Literal.IntervalDayToSecond.PrecisionModeCase getPrecisionModeCase();
}
/**
* Protobuf type {@code substrait.Expression.Literal.IntervalDayToSecond}
*/
public static final class IntervalDayToSecond extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Expression.Literal.IntervalDayToSecond)
IntervalDayToSecondOrBuilder {
private static final long serialVersionUID = 0L;
// Use IntervalDayToSecond.newBuilder() to construct.
private IntervalDayToSecond(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IntervalDayToSecond() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IntervalDayToSecond();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_IntervalDayToSecond_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_IntervalDayToSecond_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Literal.IntervalDayToSecond.class, io.substrait.proto.Expression.Literal.IntervalDayToSecond.Builder.class);
}
private int precisionModeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object precisionMode_;
public enum PrecisionModeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
@java.lang.Deprecated MICROSECONDS(3),
PRECISION(4),
PRECISIONMODE_NOT_SET(0);
private final int value;
private PrecisionModeCase(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 PrecisionModeCase valueOf(int value) {
return forNumber(value);
}
public static PrecisionModeCase forNumber(int value) {
switch (value) {
case 3: return MICROSECONDS;
case 4: return PRECISION;
case 0: return PRECISIONMODE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public PrecisionModeCase
getPrecisionModeCase() {
return PrecisionModeCase.forNumber(
precisionModeCase_);
}
public static final int DAYS_FIELD_NUMBER = 1;
private int days_ = 0;
/**
* int32 days = 1;
* @return The days.
*/
@java.lang.Override
public int getDays() {
return days_;
}
public static final int SECONDS_FIELD_NUMBER = 2;
private int seconds_ = 0;
/**
* int32 seconds = 2;
* @return The seconds.
*/
@java.lang.Override
public int getSeconds() {
return seconds_;
}
public static final int MICROSECONDS_FIELD_NUMBER = 3;
/**
*
* use precision and subseconds below, they cover and replace microseconds.
*
*
* int32 microseconds = 3 [deprecated = true];
* @deprecated substrait.Expression.Literal.IntervalDayToSecond.microseconds is deprecated.
* See substrait/algebra.proto;l=946
* @return Whether the microseconds field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasMicroseconds() {
return precisionModeCase_ == 3;
}
/**
*
* use precision and subseconds below, they cover and replace microseconds.
*
*
* int32 microseconds = 3 [deprecated = true];
* @deprecated substrait.Expression.Literal.IntervalDayToSecond.microseconds is deprecated.
* See substrait/algebra.proto;l=946
* @return The microseconds.
*/
@java.lang.Override
@java.lang.Deprecated public int getMicroseconds() {
if (precisionModeCase_ == 3) {
return (java.lang.Integer) precisionMode_;
}
return 0;
}
public static final int PRECISION_FIELD_NUMBER = 4;
/**
*
* Sub-second precision, 0 means the value given is in seconds, 3 is milliseconds, 6 microseconds, 9 is nanoseconds. Should be used with subseconds below.
*
*
* int32 precision = 4;
* @return Whether the precision field is set.
*/
@java.lang.Override
public boolean hasPrecision() {
return precisionModeCase_ == 4;
}
/**
*
* Sub-second precision, 0 means the value given is in seconds, 3 is milliseconds, 6 microseconds, 9 is nanoseconds. Should be used with subseconds below.
*
*
* int32 precision = 4;
* @return The precision.
*/
@java.lang.Override
public int getPrecision() {
if (precisionModeCase_ == 4) {
return (java.lang.Integer) precisionMode_;
}
return 0;
}
public static final int SUBSECONDS_FIELD_NUMBER = 5;
private long subseconds_ = 0L;
/**
*
* the number of fractional seconds using 1e(-precision) units. Should only be used with precision field, not microseconds.
*
*
* int64 subseconds = 5;
* @return The subseconds.
*/
@java.lang.Override
public long getSubseconds() {
return subseconds_;
}
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 (days_ != 0) {
output.writeInt32(1, days_);
}
if (seconds_ != 0) {
output.writeInt32(2, seconds_);
}
if (precisionModeCase_ == 3) {
output.writeInt32(
3, (int)((java.lang.Integer) precisionMode_));
}
if (precisionModeCase_ == 4) {
output.writeInt32(
4, (int)((java.lang.Integer) precisionMode_));
}
if (subseconds_ != 0L) {
output.writeInt64(5, subseconds_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (days_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, days_);
}
if (seconds_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, seconds_);
}
if (precisionModeCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
3, (int)((java.lang.Integer) precisionMode_));
}
if (precisionModeCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
4, (int)((java.lang.Integer) precisionMode_));
}
if (subseconds_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, subseconds_);
}
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 io.substrait.proto.Expression.Literal.IntervalDayToSecond)) {
return super.equals(obj);
}
io.substrait.proto.Expression.Literal.IntervalDayToSecond other = (io.substrait.proto.Expression.Literal.IntervalDayToSecond) obj;
if (getDays()
!= other.getDays()) return false;
if (getSeconds()
!= other.getSeconds()) return false;
if (getSubseconds()
!= other.getSubseconds()) return false;
if (!getPrecisionModeCase().equals(other.getPrecisionModeCase())) return false;
switch (precisionModeCase_) {
case 3:
if (getMicroseconds()
!= other.getMicroseconds()) return false;
break;
case 4:
if (getPrecision()
!= other.getPrecision()) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DAYS_FIELD_NUMBER;
hash = (53 * hash) + getDays();
hash = (37 * hash) + SECONDS_FIELD_NUMBER;
hash = (53 * hash) + getSeconds();
hash = (37 * hash) + SUBSECONDS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSubseconds());
switch (precisionModeCase_) {
case 3:
hash = (37 * hash) + MICROSECONDS_FIELD_NUMBER;
hash = (53 * hash) + getMicroseconds();
break;
case 4:
hash = (37 * hash) + PRECISION_FIELD_NUMBER;
hash = (53 * hash) + getPrecision();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.Expression.Literal.IntervalDayToSecond parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.IntervalDayToSecond parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.IntervalDayToSecond parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.IntervalDayToSecond parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.IntervalDayToSecond parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.IntervalDayToSecond parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.IntervalDayToSecond parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.IntervalDayToSecond 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 io.substrait.proto.Expression.Literal.IntervalDayToSecond parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.IntervalDayToSecond 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 io.substrait.proto.Expression.Literal.IntervalDayToSecond parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.IntervalDayToSecond 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(io.substrait.proto.Expression.Literal.IntervalDayToSecond 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 substrait.Expression.Literal.IntervalDayToSecond}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Expression.Literal.IntervalDayToSecond)
io.substrait.proto.Expression.Literal.IntervalDayToSecondOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_IntervalDayToSecond_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_IntervalDayToSecond_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Literal.IntervalDayToSecond.class, io.substrait.proto.Expression.Literal.IntervalDayToSecond.Builder.class);
}
// Construct using io.substrait.proto.Expression.Literal.IntervalDayToSecond.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
days_ = 0;
seconds_ = 0;
subseconds_ = 0L;
precisionModeCase_ = 0;
precisionMode_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_IntervalDayToSecond_descriptor;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.IntervalDayToSecond getDefaultInstanceForType() {
return io.substrait.proto.Expression.Literal.IntervalDayToSecond.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.IntervalDayToSecond build() {
io.substrait.proto.Expression.Literal.IntervalDayToSecond result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.IntervalDayToSecond buildPartial() {
io.substrait.proto.Expression.Literal.IntervalDayToSecond result = new io.substrait.proto.Expression.Literal.IntervalDayToSecond(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.Expression.Literal.IntervalDayToSecond result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.days_ = days_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.seconds_ = seconds_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.subseconds_ = subseconds_;
}
}
private void buildPartialOneofs(io.substrait.proto.Expression.Literal.IntervalDayToSecond result) {
result.precisionModeCase_ = precisionModeCase_;
result.precisionMode_ = this.precisionMode_;
}
@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 io.substrait.proto.Expression.Literal.IntervalDayToSecond) {
return mergeFrom((io.substrait.proto.Expression.Literal.IntervalDayToSecond)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Expression.Literal.IntervalDayToSecond other) {
if (other == io.substrait.proto.Expression.Literal.IntervalDayToSecond.getDefaultInstance()) return this;
if (other.getDays() != 0) {
setDays(other.getDays());
}
if (other.getSeconds() != 0) {
setSeconds(other.getSeconds());
}
if (other.getSubseconds() != 0L) {
setSubseconds(other.getSubseconds());
}
switch (other.getPrecisionModeCase()) {
case MICROSECONDS: {
setMicroseconds(other.getMicroseconds());
break;
}
case PRECISION: {
setPrecision(other.getPrecision());
break;
}
case PRECISIONMODE_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
days_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
seconds_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
precisionMode_ = input.readInt32();
precisionModeCase_ = 3;
break;
} // case 24
case 32: {
precisionMode_ = input.readInt32();
precisionModeCase_ = 4;
break;
} // case 32
case 40: {
subseconds_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int precisionModeCase_ = 0;
private java.lang.Object precisionMode_;
public PrecisionModeCase
getPrecisionModeCase() {
return PrecisionModeCase.forNumber(
precisionModeCase_);
}
public Builder clearPrecisionMode() {
precisionModeCase_ = 0;
precisionMode_ = null;
onChanged();
return this;
}
private int bitField0_;
private int days_ ;
/**
* int32 days = 1;
* @return The days.
*/
@java.lang.Override
public int getDays() {
return days_;
}
/**
* int32 days = 1;
* @param value The days to set.
* @return This builder for chaining.
*/
public Builder setDays(int value) {
days_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* int32 days = 1;
* @return This builder for chaining.
*/
public Builder clearDays() {
bitField0_ = (bitField0_ & ~0x00000001);
days_ = 0;
onChanged();
return this;
}
private int seconds_ ;
/**
* int32 seconds = 2;
* @return The seconds.
*/
@java.lang.Override
public int getSeconds() {
return seconds_;
}
/**
* int32 seconds = 2;
* @param value The seconds to set.
* @return This builder for chaining.
*/
public Builder setSeconds(int value) {
seconds_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* int32 seconds = 2;
* @return This builder for chaining.
*/
public Builder clearSeconds() {
bitField0_ = (bitField0_ & ~0x00000002);
seconds_ = 0;
onChanged();
return this;
}
/**
*
* use precision and subseconds below, they cover and replace microseconds.
*
*
* int32 microseconds = 3 [deprecated = true];
* @deprecated substrait.Expression.Literal.IntervalDayToSecond.microseconds is deprecated.
* See substrait/algebra.proto;l=946
* @return Whether the microseconds field is set.
*/
@java.lang.Deprecated public boolean hasMicroseconds() {
return precisionModeCase_ == 3;
}
/**
*
* use precision and subseconds below, they cover and replace microseconds.
*
*
* int32 microseconds = 3 [deprecated = true];
* @deprecated substrait.Expression.Literal.IntervalDayToSecond.microseconds is deprecated.
* See substrait/algebra.proto;l=946
* @return The microseconds.
*/
@java.lang.Deprecated public int getMicroseconds() {
if (precisionModeCase_ == 3) {
return (java.lang.Integer) precisionMode_;
}
return 0;
}
/**
*
* use precision and subseconds below, they cover and replace microseconds.
*
*
* int32 microseconds = 3 [deprecated = true];
* @deprecated substrait.Expression.Literal.IntervalDayToSecond.microseconds is deprecated.
* See substrait/algebra.proto;l=946
* @param value The microseconds to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setMicroseconds(int value) {
precisionModeCase_ = 3;
precisionMode_ = value;
onChanged();
return this;
}
/**
*
* use precision and subseconds below, they cover and replace microseconds.
*
*
* int32 microseconds = 3 [deprecated = true];
* @deprecated substrait.Expression.Literal.IntervalDayToSecond.microseconds is deprecated.
* See substrait/algebra.proto;l=946
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearMicroseconds() {
if (precisionModeCase_ == 3) {
precisionModeCase_ = 0;
precisionMode_ = null;
onChanged();
}
return this;
}
/**
*
* Sub-second precision, 0 means the value given is in seconds, 3 is milliseconds, 6 microseconds, 9 is nanoseconds. Should be used with subseconds below.
*
*
* int32 precision = 4;
* @return Whether the precision field is set.
*/
public boolean hasPrecision() {
return precisionModeCase_ == 4;
}
/**
*
* Sub-second precision, 0 means the value given is in seconds, 3 is milliseconds, 6 microseconds, 9 is nanoseconds. Should be used with subseconds below.
*
*
* int32 precision = 4;
* @return The precision.
*/
public int getPrecision() {
if (precisionModeCase_ == 4) {
return (java.lang.Integer) precisionMode_;
}
return 0;
}
/**
*
* Sub-second precision, 0 means the value given is in seconds, 3 is milliseconds, 6 microseconds, 9 is nanoseconds. Should be used with subseconds below.
*
*
* int32 precision = 4;
* @param value The precision to set.
* @return This builder for chaining.
*/
public Builder setPrecision(int value) {
precisionModeCase_ = 4;
precisionMode_ = value;
onChanged();
return this;
}
/**
*
* Sub-second precision, 0 means the value given is in seconds, 3 is milliseconds, 6 microseconds, 9 is nanoseconds. Should be used with subseconds below.
*
*
* int32 precision = 4;
* @return This builder for chaining.
*/
public Builder clearPrecision() {
if (precisionModeCase_ == 4) {
precisionModeCase_ = 0;
precisionMode_ = null;
onChanged();
}
return this;
}
private long subseconds_ ;
/**
*
* the number of fractional seconds using 1e(-precision) units. Should only be used with precision field, not microseconds.
*
*
* int64 subseconds = 5;
* @return The subseconds.
*/
@java.lang.Override
public long getSubseconds() {
return subseconds_;
}
/**
*
* the number of fractional seconds using 1e(-precision) units. Should only be used with precision field, not microseconds.
*
*
* int64 subseconds = 5;
* @param value The subseconds to set.
* @return This builder for chaining.
*/
public Builder setSubseconds(long value) {
subseconds_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* the number of fractional seconds using 1e(-precision) units. Should only be used with precision field, not microseconds.
*
*
* int64 subseconds = 5;
* @return This builder for chaining.
*/
public Builder clearSubseconds() {
bitField0_ = (bitField0_ & ~0x00000010);
subseconds_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:substrait.Expression.Literal.IntervalDayToSecond)
}
// @@protoc_insertion_point(class_scope:substrait.Expression.Literal.IntervalDayToSecond)
private static final io.substrait.proto.Expression.Literal.IntervalDayToSecond DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.Expression.Literal.IntervalDayToSecond();
}
public static io.substrait.proto.Expression.Literal.IntervalDayToSecond getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IntervalDayToSecond parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.IntervalDayToSecond getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IntervalCompoundOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.Expression.Literal.IntervalCompound)
com.google.protobuf.MessageOrBuilder {
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 1;
* @return Whether the intervalYearToMonth field is set.
*/
boolean hasIntervalYearToMonth();
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 1;
* @return The intervalYearToMonth.
*/
io.substrait.proto.Expression.Literal.IntervalYearToMonth getIntervalYearToMonth();
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 1;
*/
io.substrait.proto.Expression.Literal.IntervalYearToMonthOrBuilder getIntervalYearToMonthOrBuilder();
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 2;
* @return Whether the intervalDayToSecond field is set.
*/
boolean hasIntervalDayToSecond();
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 2;
* @return The intervalDayToSecond.
*/
io.substrait.proto.Expression.Literal.IntervalDayToSecond getIntervalDayToSecond();
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 2;
*/
io.substrait.proto.Expression.Literal.IntervalDayToSecondOrBuilder getIntervalDayToSecondOrBuilder();
}
/**
* Protobuf type {@code substrait.Expression.Literal.IntervalCompound}
*/
public static final class IntervalCompound extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Expression.Literal.IntervalCompound)
IntervalCompoundOrBuilder {
private static final long serialVersionUID = 0L;
// Use IntervalCompound.newBuilder() to construct.
private IntervalCompound(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IntervalCompound() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IntervalCompound();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_IntervalCompound_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_IntervalCompound_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Literal.IntervalCompound.class, io.substrait.proto.Expression.Literal.IntervalCompound.Builder.class);
}
private int bitField0_;
public static final int INTERVAL_YEAR_TO_MONTH_FIELD_NUMBER = 1;
private io.substrait.proto.Expression.Literal.IntervalYearToMonth intervalYearToMonth_;
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 1;
* @return Whether the intervalYearToMonth field is set.
*/
@java.lang.Override
public boolean hasIntervalYearToMonth() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 1;
* @return The intervalYearToMonth.
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.IntervalYearToMonth getIntervalYearToMonth() {
return intervalYearToMonth_ == null ? io.substrait.proto.Expression.Literal.IntervalYearToMonth.getDefaultInstance() : intervalYearToMonth_;
}
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 1;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.IntervalYearToMonthOrBuilder getIntervalYearToMonthOrBuilder() {
return intervalYearToMonth_ == null ? io.substrait.proto.Expression.Literal.IntervalYearToMonth.getDefaultInstance() : intervalYearToMonth_;
}
public static final int INTERVAL_DAY_TO_SECOND_FIELD_NUMBER = 2;
private io.substrait.proto.Expression.Literal.IntervalDayToSecond intervalDayToSecond_;
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 2;
* @return Whether the intervalDayToSecond field is set.
*/
@java.lang.Override
public boolean hasIntervalDayToSecond() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 2;
* @return The intervalDayToSecond.
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.IntervalDayToSecond getIntervalDayToSecond() {
return intervalDayToSecond_ == null ? io.substrait.proto.Expression.Literal.IntervalDayToSecond.getDefaultInstance() : intervalDayToSecond_;
}
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 2;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.IntervalDayToSecondOrBuilder getIntervalDayToSecondOrBuilder() {
return intervalDayToSecond_ == null ? io.substrait.proto.Expression.Literal.IntervalDayToSecond.getDefaultInstance() : intervalDayToSecond_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getIntervalYearToMonth());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getIntervalDayToSecond());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getIntervalYearToMonth());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getIntervalDayToSecond());
}
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 io.substrait.proto.Expression.Literal.IntervalCompound)) {
return super.equals(obj);
}
io.substrait.proto.Expression.Literal.IntervalCompound other = (io.substrait.proto.Expression.Literal.IntervalCompound) obj;
if (hasIntervalYearToMonth() != other.hasIntervalYearToMonth()) return false;
if (hasIntervalYearToMonth()) {
if (!getIntervalYearToMonth()
.equals(other.getIntervalYearToMonth())) return false;
}
if (hasIntervalDayToSecond() != other.hasIntervalDayToSecond()) return false;
if (hasIntervalDayToSecond()) {
if (!getIntervalDayToSecond()
.equals(other.getIntervalDayToSecond())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasIntervalYearToMonth()) {
hash = (37 * hash) + INTERVAL_YEAR_TO_MONTH_FIELD_NUMBER;
hash = (53 * hash) + getIntervalYearToMonth().hashCode();
}
if (hasIntervalDayToSecond()) {
hash = (37 * hash) + INTERVAL_DAY_TO_SECOND_FIELD_NUMBER;
hash = (53 * hash) + getIntervalDayToSecond().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.Expression.Literal.IntervalCompound parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.IntervalCompound parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.IntervalCompound parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.IntervalCompound parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.IntervalCompound parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.IntervalCompound parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.IntervalCompound parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.IntervalCompound 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 io.substrait.proto.Expression.Literal.IntervalCompound parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.IntervalCompound 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 io.substrait.proto.Expression.Literal.IntervalCompound parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.IntervalCompound 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(io.substrait.proto.Expression.Literal.IntervalCompound 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 substrait.Expression.Literal.IntervalCompound}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Expression.Literal.IntervalCompound)
io.substrait.proto.Expression.Literal.IntervalCompoundOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_IntervalCompound_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_IntervalCompound_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Literal.IntervalCompound.class, io.substrait.proto.Expression.Literal.IntervalCompound.Builder.class);
}
// Construct using io.substrait.proto.Expression.Literal.IntervalCompound.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getIntervalYearToMonthFieldBuilder();
getIntervalDayToSecondFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
intervalYearToMonth_ = null;
if (intervalYearToMonthBuilder_ != null) {
intervalYearToMonthBuilder_.dispose();
intervalYearToMonthBuilder_ = null;
}
intervalDayToSecond_ = null;
if (intervalDayToSecondBuilder_ != null) {
intervalDayToSecondBuilder_.dispose();
intervalDayToSecondBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_IntervalCompound_descriptor;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.IntervalCompound getDefaultInstanceForType() {
return io.substrait.proto.Expression.Literal.IntervalCompound.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.IntervalCompound build() {
io.substrait.proto.Expression.Literal.IntervalCompound result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.IntervalCompound buildPartial() {
io.substrait.proto.Expression.Literal.IntervalCompound result = new io.substrait.proto.Expression.Literal.IntervalCompound(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.Expression.Literal.IntervalCompound result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.intervalYearToMonth_ = intervalYearToMonthBuilder_ == null
? intervalYearToMonth_
: intervalYearToMonthBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.intervalDayToSecond_ = intervalDayToSecondBuilder_ == null
? intervalDayToSecond_
: intervalDayToSecondBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@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 io.substrait.proto.Expression.Literal.IntervalCompound) {
return mergeFrom((io.substrait.proto.Expression.Literal.IntervalCompound)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Expression.Literal.IntervalCompound other) {
if (other == io.substrait.proto.Expression.Literal.IntervalCompound.getDefaultInstance()) return this;
if (other.hasIntervalYearToMonth()) {
mergeIntervalYearToMonth(other.getIntervalYearToMonth());
}
if (other.hasIntervalDayToSecond()) {
mergeIntervalDayToSecond(other.getIntervalDayToSecond());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getIntervalYearToMonthFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getIntervalDayToSecondFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private io.substrait.proto.Expression.Literal.IntervalYearToMonth intervalYearToMonth_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.IntervalYearToMonth, io.substrait.proto.Expression.Literal.IntervalYearToMonth.Builder, io.substrait.proto.Expression.Literal.IntervalYearToMonthOrBuilder> intervalYearToMonthBuilder_;
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 1;
* @return Whether the intervalYearToMonth field is set.
*/
public boolean hasIntervalYearToMonth() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 1;
* @return The intervalYearToMonth.
*/
public io.substrait.proto.Expression.Literal.IntervalYearToMonth getIntervalYearToMonth() {
if (intervalYearToMonthBuilder_ == null) {
return intervalYearToMonth_ == null ? io.substrait.proto.Expression.Literal.IntervalYearToMonth.getDefaultInstance() : intervalYearToMonth_;
} else {
return intervalYearToMonthBuilder_.getMessage();
}
}
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 1;
*/
public Builder setIntervalYearToMonth(io.substrait.proto.Expression.Literal.IntervalYearToMonth value) {
if (intervalYearToMonthBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
intervalYearToMonth_ = value;
} else {
intervalYearToMonthBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 1;
*/
public Builder setIntervalYearToMonth(
io.substrait.proto.Expression.Literal.IntervalYearToMonth.Builder builderForValue) {
if (intervalYearToMonthBuilder_ == null) {
intervalYearToMonth_ = builderForValue.build();
} else {
intervalYearToMonthBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 1;
*/
public Builder mergeIntervalYearToMonth(io.substrait.proto.Expression.Literal.IntervalYearToMonth value) {
if (intervalYearToMonthBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
intervalYearToMonth_ != null &&
intervalYearToMonth_ != io.substrait.proto.Expression.Literal.IntervalYearToMonth.getDefaultInstance()) {
getIntervalYearToMonthBuilder().mergeFrom(value);
} else {
intervalYearToMonth_ = value;
}
} else {
intervalYearToMonthBuilder_.mergeFrom(value);
}
if (intervalYearToMonth_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 1;
*/
public Builder clearIntervalYearToMonth() {
bitField0_ = (bitField0_ & ~0x00000001);
intervalYearToMonth_ = null;
if (intervalYearToMonthBuilder_ != null) {
intervalYearToMonthBuilder_.dispose();
intervalYearToMonthBuilder_ = null;
}
onChanged();
return this;
}
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 1;
*/
public io.substrait.proto.Expression.Literal.IntervalYearToMonth.Builder getIntervalYearToMonthBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getIntervalYearToMonthFieldBuilder().getBuilder();
}
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 1;
*/
public io.substrait.proto.Expression.Literal.IntervalYearToMonthOrBuilder getIntervalYearToMonthOrBuilder() {
if (intervalYearToMonthBuilder_ != null) {
return intervalYearToMonthBuilder_.getMessageOrBuilder();
} else {
return intervalYearToMonth_ == null ?
io.substrait.proto.Expression.Literal.IntervalYearToMonth.getDefaultInstance() : intervalYearToMonth_;
}
}
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.IntervalYearToMonth, io.substrait.proto.Expression.Literal.IntervalYearToMonth.Builder, io.substrait.proto.Expression.Literal.IntervalYearToMonthOrBuilder>
getIntervalYearToMonthFieldBuilder() {
if (intervalYearToMonthBuilder_ == null) {
intervalYearToMonthBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.IntervalYearToMonth, io.substrait.proto.Expression.Literal.IntervalYearToMonth.Builder, io.substrait.proto.Expression.Literal.IntervalYearToMonthOrBuilder>(
getIntervalYearToMonth(),
getParentForChildren(),
isClean());
intervalYearToMonth_ = null;
}
return intervalYearToMonthBuilder_;
}
private io.substrait.proto.Expression.Literal.IntervalDayToSecond intervalDayToSecond_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.IntervalDayToSecond, io.substrait.proto.Expression.Literal.IntervalDayToSecond.Builder, io.substrait.proto.Expression.Literal.IntervalDayToSecondOrBuilder> intervalDayToSecondBuilder_;
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 2;
* @return Whether the intervalDayToSecond field is set.
*/
public boolean hasIntervalDayToSecond() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 2;
* @return The intervalDayToSecond.
*/
public io.substrait.proto.Expression.Literal.IntervalDayToSecond getIntervalDayToSecond() {
if (intervalDayToSecondBuilder_ == null) {
return intervalDayToSecond_ == null ? io.substrait.proto.Expression.Literal.IntervalDayToSecond.getDefaultInstance() : intervalDayToSecond_;
} else {
return intervalDayToSecondBuilder_.getMessage();
}
}
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 2;
*/
public Builder setIntervalDayToSecond(io.substrait.proto.Expression.Literal.IntervalDayToSecond value) {
if (intervalDayToSecondBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
intervalDayToSecond_ = value;
} else {
intervalDayToSecondBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 2;
*/
public Builder setIntervalDayToSecond(
io.substrait.proto.Expression.Literal.IntervalDayToSecond.Builder builderForValue) {
if (intervalDayToSecondBuilder_ == null) {
intervalDayToSecond_ = builderForValue.build();
} else {
intervalDayToSecondBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 2;
*/
public Builder mergeIntervalDayToSecond(io.substrait.proto.Expression.Literal.IntervalDayToSecond value) {
if (intervalDayToSecondBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
intervalDayToSecond_ != null &&
intervalDayToSecond_ != io.substrait.proto.Expression.Literal.IntervalDayToSecond.getDefaultInstance()) {
getIntervalDayToSecondBuilder().mergeFrom(value);
} else {
intervalDayToSecond_ = value;
}
} else {
intervalDayToSecondBuilder_.mergeFrom(value);
}
if (intervalDayToSecond_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 2;
*/
public Builder clearIntervalDayToSecond() {
bitField0_ = (bitField0_ & ~0x00000002);
intervalDayToSecond_ = null;
if (intervalDayToSecondBuilder_ != null) {
intervalDayToSecondBuilder_.dispose();
intervalDayToSecondBuilder_ = null;
}
onChanged();
return this;
}
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 2;
*/
public io.substrait.proto.Expression.Literal.IntervalDayToSecond.Builder getIntervalDayToSecondBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getIntervalDayToSecondFieldBuilder().getBuilder();
}
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 2;
*/
public io.substrait.proto.Expression.Literal.IntervalDayToSecondOrBuilder getIntervalDayToSecondOrBuilder() {
if (intervalDayToSecondBuilder_ != null) {
return intervalDayToSecondBuilder_.getMessageOrBuilder();
} else {
return intervalDayToSecond_ == null ?
io.substrait.proto.Expression.Literal.IntervalDayToSecond.getDefaultInstance() : intervalDayToSecond_;
}
}
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.IntervalDayToSecond, io.substrait.proto.Expression.Literal.IntervalDayToSecond.Builder, io.substrait.proto.Expression.Literal.IntervalDayToSecondOrBuilder>
getIntervalDayToSecondFieldBuilder() {
if (intervalDayToSecondBuilder_ == null) {
intervalDayToSecondBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.IntervalDayToSecond, io.substrait.proto.Expression.Literal.IntervalDayToSecond.Builder, io.substrait.proto.Expression.Literal.IntervalDayToSecondOrBuilder>(
getIntervalDayToSecond(),
getParentForChildren(),
isClean());
intervalDayToSecond_ = null;
}
return intervalDayToSecondBuilder_;
}
@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:substrait.Expression.Literal.IntervalCompound)
}
// @@protoc_insertion_point(class_scope:substrait.Expression.Literal.IntervalCompound)
private static final io.substrait.proto.Expression.Literal.IntervalCompound DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.Expression.Literal.IntervalCompound();
}
public static io.substrait.proto.Expression.Literal.IntervalCompound getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IntervalCompound parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.IntervalCompound getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StructOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.Expression.Literal.Struct)
com.google.protobuf.MessageOrBuilder {
/**
*
* A possibly heterogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal fields = 1;
*/
java.util.List
getFieldsList();
/**
*
* A possibly heterogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal fields = 1;
*/
io.substrait.proto.Expression.Literal getFields(int index);
/**
*
* A possibly heterogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal fields = 1;
*/
int getFieldsCount();
/**
*
* A possibly heterogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal fields = 1;
*/
java.util.List extends io.substrait.proto.Expression.LiteralOrBuilder>
getFieldsOrBuilderList();
/**
*
* A possibly heterogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal fields = 1;
*/
io.substrait.proto.Expression.LiteralOrBuilder getFieldsOrBuilder(
int index);
}
/**
* Protobuf type {@code substrait.Expression.Literal.Struct}
*/
public static final class Struct extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Expression.Literal.Struct)
StructOrBuilder {
private static final long serialVersionUID = 0L;
// Use Struct.newBuilder() to construct.
private Struct(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Struct() {
fields_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Struct();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_Struct_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_Struct_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Literal.Struct.class, io.substrait.proto.Expression.Literal.Struct.Builder.class);
}
public static final int FIELDS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List fields_;
/**
*
* A possibly heterogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal fields = 1;
*/
@java.lang.Override
public java.util.List getFieldsList() {
return fields_;
}
/**
*
* A possibly heterogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal fields = 1;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.Expression.LiteralOrBuilder>
getFieldsOrBuilderList() {
return fields_;
}
/**
*
* A possibly heterogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal fields = 1;
*/
@java.lang.Override
public int getFieldsCount() {
return fields_.size();
}
/**
*
* A possibly heterogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal fields = 1;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal getFields(int index) {
return fields_.get(index);
}
/**
*
* A possibly heterogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal fields = 1;
*/
@java.lang.Override
public io.substrait.proto.Expression.LiteralOrBuilder getFieldsOrBuilder(
int index) {
return fields_.get(index);
}
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 {
for (int i = 0; i < fields_.size(); i++) {
output.writeMessage(1, fields_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < fields_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, fields_.get(i));
}
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 io.substrait.proto.Expression.Literal.Struct)) {
return super.equals(obj);
}
io.substrait.proto.Expression.Literal.Struct other = (io.substrait.proto.Expression.Literal.Struct) obj;
if (!getFieldsList()
.equals(other.getFieldsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getFieldsCount() > 0) {
hash = (37 * hash) + FIELDS_FIELD_NUMBER;
hash = (53 * hash) + getFieldsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.Expression.Literal.Struct parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.Struct parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.Struct parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.Struct parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.Struct parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.Struct parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.Struct parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.Struct 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 io.substrait.proto.Expression.Literal.Struct parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.Struct 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 io.substrait.proto.Expression.Literal.Struct parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.Struct 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(io.substrait.proto.Expression.Literal.Struct 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 substrait.Expression.Literal.Struct}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Expression.Literal.Struct)
io.substrait.proto.Expression.Literal.StructOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_Struct_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_Struct_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Literal.Struct.class, io.substrait.proto.Expression.Literal.Struct.Builder.class);
}
// Construct using io.substrait.proto.Expression.Literal.Struct.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (fieldsBuilder_ == null) {
fields_ = java.util.Collections.emptyList();
} else {
fields_ = null;
fieldsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_Struct_descriptor;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.Struct getDefaultInstanceForType() {
return io.substrait.proto.Expression.Literal.Struct.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.Struct build() {
io.substrait.proto.Expression.Literal.Struct result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.Struct buildPartial() {
io.substrait.proto.Expression.Literal.Struct result = new io.substrait.proto.Expression.Literal.Struct(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.substrait.proto.Expression.Literal.Struct result) {
if (fieldsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
fields_ = java.util.Collections.unmodifiableList(fields_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.fields_ = fields_;
} else {
result.fields_ = fieldsBuilder_.build();
}
}
private void buildPartial0(io.substrait.proto.Expression.Literal.Struct result) {
int from_bitField0_ = bitField0_;
}
@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 io.substrait.proto.Expression.Literal.Struct) {
return mergeFrom((io.substrait.proto.Expression.Literal.Struct)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Expression.Literal.Struct other) {
if (other == io.substrait.proto.Expression.Literal.Struct.getDefaultInstance()) return this;
if (fieldsBuilder_ == null) {
if (!other.fields_.isEmpty()) {
if (fields_.isEmpty()) {
fields_ = other.fields_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureFieldsIsMutable();
fields_.addAll(other.fields_);
}
onChanged();
}
} else {
if (!other.fields_.isEmpty()) {
if (fieldsBuilder_.isEmpty()) {
fieldsBuilder_.dispose();
fieldsBuilder_ = null;
fields_ = other.fields_;
bitField0_ = (bitField0_ & ~0x00000001);
fieldsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFieldsFieldBuilder() : null;
} else {
fieldsBuilder_.addAllMessages(other.fields_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.substrait.proto.Expression.Literal m =
input.readMessage(
io.substrait.proto.Expression.Literal.parser(),
extensionRegistry);
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(m);
} else {
fieldsBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List fields_ =
java.util.Collections.emptyList();
private void ensureFieldsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
fields_ = new java.util.ArrayList(fields_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression.Literal, io.substrait.proto.Expression.Literal.Builder, io.substrait.proto.Expression.LiteralOrBuilder> fieldsBuilder_;
/**
*
* A possibly heterogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal fields = 1;
*/
public java.util.List getFieldsList() {
if (fieldsBuilder_ == null) {
return java.util.Collections.unmodifiableList(fields_);
} else {
return fieldsBuilder_.getMessageList();
}
}
/**
*
* A possibly heterogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal fields = 1;
*/
public int getFieldsCount() {
if (fieldsBuilder_ == null) {
return fields_.size();
} else {
return fieldsBuilder_.getCount();
}
}
/**
*
* A possibly heterogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal fields = 1;
*/
public io.substrait.proto.Expression.Literal getFields(int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index);
} else {
return fieldsBuilder_.getMessage(index);
}
}
/**
*
* A possibly heterogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal fields = 1;
*/
public Builder setFields(
int index, io.substrait.proto.Expression.Literal value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.set(index, value);
onChanged();
} else {
fieldsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* A possibly heterogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal fields = 1;
*/
public Builder setFields(
int index, io.substrait.proto.Expression.Literal.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.set(index, builderForValue.build());
onChanged();
} else {
fieldsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A possibly heterogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal fields = 1;
*/
public Builder addFields(io.substrait.proto.Expression.Literal value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.add(value);
onChanged();
} else {
fieldsBuilder_.addMessage(value);
}
return this;
}
/**
*
* A possibly heterogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal fields = 1;
*/
public Builder addFields(
int index, io.substrait.proto.Expression.Literal value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.add(index, value);
onChanged();
} else {
fieldsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* A possibly heterogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal fields = 1;
*/
public Builder addFields(
io.substrait.proto.Expression.Literal.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(builderForValue.build());
onChanged();
} else {
fieldsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* A possibly heterogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal fields = 1;
*/
public Builder addFields(
int index, io.substrait.proto.Expression.Literal.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(index, builderForValue.build());
onChanged();
} else {
fieldsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A possibly heterogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal fields = 1;
*/
public Builder addAllFields(
java.lang.Iterable extends io.substrait.proto.Expression.Literal> values) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fields_);
onChanged();
} else {
fieldsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* A possibly heterogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal fields = 1;
*/
public Builder clearFields() {
if (fieldsBuilder_ == null) {
fields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
fieldsBuilder_.clear();
}
return this;
}
/**
*
* A possibly heterogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal fields = 1;
*/
public Builder removeFields(int index) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.remove(index);
onChanged();
} else {
fieldsBuilder_.remove(index);
}
return this;
}
/**
*
* A possibly heterogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal fields = 1;
*/
public io.substrait.proto.Expression.Literal.Builder getFieldsBuilder(
int index) {
return getFieldsFieldBuilder().getBuilder(index);
}
/**
*
* A possibly heterogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal fields = 1;
*/
public io.substrait.proto.Expression.LiteralOrBuilder getFieldsOrBuilder(
int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index); } else {
return fieldsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* A possibly heterogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal fields = 1;
*/
public java.util.List extends io.substrait.proto.Expression.LiteralOrBuilder>
getFieldsOrBuilderList() {
if (fieldsBuilder_ != null) {
return fieldsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(fields_);
}
}
/**
*
* A possibly heterogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal fields = 1;
*/
public io.substrait.proto.Expression.Literal.Builder addFieldsBuilder() {
return getFieldsFieldBuilder().addBuilder(
io.substrait.proto.Expression.Literal.getDefaultInstance());
}
/**
*
* A possibly heterogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal fields = 1;
*/
public io.substrait.proto.Expression.Literal.Builder addFieldsBuilder(
int index) {
return getFieldsFieldBuilder().addBuilder(
index, io.substrait.proto.Expression.Literal.getDefaultInstance());
}
/**
*
* A possibly heterogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal fields = 1;
*/
public java.util.List
getFieldsBuilderList() {
return getFieldsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression.Literal, io.substrait.proto.Expression.Literal.Builder, io.substrait.proto.Expression.LiteralOrBuilder>
getFieldsFieldBuilder() {
if (fieldsBuilder_ == null) {
fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression.Literal, io.substrait.proto.Expression.Literal.Builder, io.substrait.proto.Expression.LiteralOrBuilder>(
fields_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
fields_ = null;
}
return fieldsBuilder_;
}
@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:substrait.Expression.Literal.Struct)
}
// @@protoc_insertion_point(class_scope:substrait.Expression.Literal.Struct)
private static final io.substrait.proto.Expression.Literal.Struct DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.Expression.Literal.Struct();
}
public static io.substrait.proto.Expression.Literal.Struct getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Struct parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.Struct getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.Expression.Literal.List)
com.google.protobuf.MessageOrBuilder {
/**
*
* A homogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal values = 1;
*/
java.util.List
getValuesList();
/**
*
* A homogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal values = 1;
*/
io.substrait.proto.Expression.Literal getValues(int index);
/**
*
* A homogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal values = 1;
*/
int getValuesCount();
/**
*
* A homogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal values = 1;
*/
java.util.List extends io.substrait.proto.Expression.LiteralOrBuilder>
getValuesOrBuilderList();
/**
*
* A homogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal values = 1;
*/
io.substrait.proto.Expression.LiteralOrBuilder getValuesOrBuilder(
int index);
}
/**
* Protobuf type {@code substrait.Expression.Literal.List}
*/
public static final class List extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Expression.Literal.List)
ListOrBuilder {
private static final long serialVersionUID = 0L;
// Use List.newBuilder() to construct.
private List(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private List() {
values_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new List();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_List_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_List_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Literal.List.class, io.substrait.proto.Expression.Literal.List.Builder.class);
}
public static final int VALUES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List values_;
/**
*
* A homogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal values = 1;
*/
@java.lang.Override
public java.util.List getValuesList() {
return values_;
}
/**
*
* A homogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal values = 1;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.Expression.LiteralOrBuilder>
getValuesOrBuilderList() {
return values_;
}
/**
*
* A homogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal values = 1;
*/
@java.lang.Override
public int getValuesCount() {
return values_.size();
}
/**
*
* A homogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal values = 1;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal getValues(int index) {
return values_.get(index);
}
/**
*
* A homogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal values = 1;
*/
@java.lang.Override
public io.substrait.proto.Expression.LiteralOrBuilder getValuesOrBuilder(
int index) {
return values_.get(index);
}
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 {
for (int i = 0; i < values_.size(); i++) {
output.writeMessage(1, values_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < values_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, values_.get(i));
}
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 io.substrait.proto.Expression.Literal.List)) {
return super.equals(obj);
}
io.substrait.proto.Expression.Literal.List other = (io.substrait.proto.Expression.Literal.List) obj;
if (!getValuesList()
.equals(other.getValuesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getValuesCount() > 0) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + getValuesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.Expression.Literal.List parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.List parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.List parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.List parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.List parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.List parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.List parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.List 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 io.substrait.proto.Expression.Literal.List parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.List 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 io.substrait.proto.Expression.Literal.List parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.List 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(io.substrait.proto.Expression.Literal.List 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 substrait.Expression.Literal.List}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Expression.Literal.List)
io.substrait.proto.Expression.Literal.ListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_List_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_List_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Literal.List.class, io.substrait.proto.Expression.Literal.List.Builder.class);
}
// Construct using io.substrait.proto.Expression.Literal.List.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (valuesBuilder_ == null) {
values_ = java.util.Collections.emptyList();
} else {
values_ = null;
valuesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_List_descriptor;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.List getDefaultInstanceForType() {
return io.substrait.proto.Expression.Literal.List.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.List build() {
io.substrait.proto.Expression.Literal.List result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.List buildPartial() {
io.substrait.proto.Expression.Literal.List result = new io.substrait.proto.Expression.Literal.List(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.substrait.proto.Expression.Literal.List result) {
if (valuesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
values_ = java.util.Collections.unmodifiableList(values_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.values_ = values_;
} else {
result.values_ = valuesBuilder_.build();
}
}
private void buildPartial0(io.substrait.proto.Expression.Literal.List result) {
int from_bitField0_ = bitField0_;
}
@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 io.substrait.proto.Expression.Literal.List) {
return mergeFrom((io.substrait.proto.Expression.Literal.List)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Expression.Literal.List other) {
if (other == io.substrait.proto.Expression.Literal.List.getDefaultInstance()) return this;
if (valuesBuilder_ == null) {
if (!other.values_.isEmpty()) {
if (values_.isEmpty()) {
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureValuesIsMutable();
values_.addAll(other.values_);
}
onChanged();
}
} else {
if (!other.values_.isEmpty()) {
if (valuesBuilder_.isEmpty()) {
valuesBuilder_.dispose();
valuesBuilder_ = null;
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000001);
valuesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getValuesFieldBuilder() : null;
} else {
valuesBuilder_.addAllMessages(other.values_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.substrait.proto.Expression.Literal m =
input.readMessage(
io.substrait.proto.Expression.Literal.parser(),
extensionRegistry);
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.add(m);
} else {
valuesBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List values_ =
java.util.Collections.emptyList();
private void ensureValuesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
values_ = new java.util.ArrayList(values_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression.Literal, io.substrait.proto.Expression.Literal.Builder, io.substrait.proto.Expression.LiteralOrBuilder> valuesBuilder_;
/**
*
* A homogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal values = 1;
*/
public java.util.List getValuesList() {
if (valuesBuilder_ == null) {
return java.util.Collections.unmodifiableList(values_);
} else {
return valuesBuilder_.getMessageList();
}
}
/**
*
* A homogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal values = 1;
*/
public int getValuesCount() {
if (valuesBuilder_ == null) {
return values_.size();
} else {
return valuesBuilder_.getCount();
}
}
/**
*
* A homogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal values = 1;
*/
public io.substrait.proto.Expression.Literal getValues(int index) {
if (valuesBuilder_ == null) {
return values_.get(index);
} else {
return valuesBuilder_.getMessage(index);
}
}
/**
*
* A homogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal values = 1;
*/
public Builder setValues(
int index, io.substrait.proto.Expression.Literal value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.set(index, value);
onChanged();
} else {
valuesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* A homogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal values = 1;
*/
public Builder setValues(
int index, io.substrait.proto.Expression.Literal.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.set(index, builderForValue.build());
onChanged();
} else {
valuesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A homogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal values = 1;
*/
public Builder addValues(io.substrait.proto.Expression.Literal value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.add(value);
onChanged();
} else {
valuesBuilder_.addMessage(value);
}
return this;
}
/**
*
* A homogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal values = 1;
*/
public Builder addValues(
int index, io.substrait.proto.Expression.Literal value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.add(index, value);
onChanged();
} else {
valuesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* A homogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal values = 1;
*/
public Builder addValues(
io.substrait.proto.Expression.Literal.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.add(builderForValue.build());
onChanged();
} else {
valuesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* A homogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal values = 1;
*/
public Builder addValues(
int index, io.substrait.proto.Expression.Literal.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.add(index, builderForValue.build());
onChanged();
} else {
valuesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A homogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal values = 1;
*/
public Builder addAllValues(
java.lang.Iterable extends io.substrait.proto.Expression.Literal> values) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, values_);
onChanged();
} else {
valuesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* A homogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal values = 1;
*/
public Builder clearValues() {
if (valuesBuilder_ == null) {
values_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
valuesBuilder_.clear();
}
return this;
}
/**
*
* A homogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal values = 1;
*/
public Builder removeValues(int index) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.remove(index);
onChanged();
} else {
valuesBuilder_.remove(index);
}
return this;
}
/**
*
* A homogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal values = 1;
*/
public io.substrait.proto.Expression.Literal.Builder getValuesBuilder(
int index) {
return getValuesFieldBuilder().getBuilder(index);
}
/**
*
* A homogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal values = 1;
*/
public io.substrait.proto.Expression.LiteralOrBuilder getValuesOrBuilder(
int index) {
if (valuesBuilder_ == null) {
return values_.get(index); } else {
return valuesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* A homogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal values = 1;
*/
public java.util.List extends io.substrait.proto.Expression.LiteralOrBuilder>
getValuesOrBuilderList() {
if (valuesBuilder_ != null) {
return valuesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(values_);
}
}
/**
*
* A homogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal values = 1;
*/
public io.substrait.proto.Expression.Literal.Builder addValuesBuilder() {
return getValuesFieldBuilder().addBuilder(
io.substrait.proto.Expression.Literal.getDefaultInstance());
}
/**
*
* A homogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal values = 1;
*/
public io.substrait.proto.Expression.Literal.Builder addValuesBuilder(
int index) {
return getValuesFieldBuilder().addBuilder(
index, io.substrait.proto.Expression.Literal.getDefaultInstance());
}
/**
*
* A homogeneously typed list of literals
*
*
* repeated .substrait.Expression.Literal values = 1;
*/
public java.util.List
getValuesBuilderList() {
return getValuesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression.Literal, io.substrait.proto.Expression.Literal.Builder, io.substrait.proto.Expression.LiteralOrBuilder>
getValuesFieldBuilder() {
if (valuesBuilder_ == null) {
valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression.Literal, io.substrait.proto.Expression.Literal.Builder, io.substrait.proto.Expression.LiteralOrBuilder>(
values_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
values_ = null;
}
return valuesBuilder_;
}
@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:substrait.Expression.Literal.List)
}
// @@protoc_insertion_point(class_scope:substrait.Expression.Literal.List)
private static final io.substrait.proto.Expression.Literal.List DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.Expression.Literal.List();
}
public static io.substrait.proto.Expression.Literal.List getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public List parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.List getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UserDefinedOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.Expression.Literal.UserDefined)
com.google.protobuf.MessageOrBuilder {
/**
*
* points to a type_anchor defined in this plan
*
*
* uint32 type_reference = 1;
* @return The typeReference.
*/
int getTypeReference();
/**
*
* The parameters to be bound to the type class, if the type class is
* parameterizable.
*
*
* repeated .substrait.Type.Parameter type_parameters = 3;
*/
java.util.List
getTypeParametersList();
/**
*
* The parameters to be bound to the type class, if the type class is
* parameterizable.
*
*
* repeated .substrait.Type.Parameter type_parameters = 3;
*/
io.substrait.proto.Type.Parameter getTypeParameters(int index);
/**
*
* The parameters to be bound to the type class, if the type class is
* parameterizable.
*
*
* repeated .substrait.Type.Parameter type_parameters = 3;
*/
int getTypeParametersCount();
/**
*
* The parameters to be bound to the type class, if the type class is
* parameterizable.
*
*
* repeated .substrait.Type.Parameter type_parameters = 3;
*/
java.util.List extends io.substrait.proto.Type.ParameterOrBuilder>
getTypeParametersOrBuilderList();
/**
*
* The parameters to be bound to the type class, if the type class is
* parameterizable.
*
*
* repeated .substrait.Type.Parameter type_parameters = 3;
*/
io.substrait.proto.Type.ParameterOrBuilder getTypeParametersOrBuilder(
int index);
/**
*
* the value of the literal, serialized using some type-specific protobuf message
*
*
* .google.protobuf.Any value = 2;
* @return Whether the value field is set.
*/
boolean hasValue();
/**
*
* the value of the literal, serialized using some type-specific protobuf message
*
*
* .google.protobuf.Any value = 2;
* @return The value.
*/
com.google.protobuf.Any getValue();
/**
*
* the value of the literal, serialized using some type-specific protobuf message
*
*
* .google.protobuf.Any value = 2;
*/
com.google.protobuf.AnyOrBuilder getValueOrBuilder();
/**
*
* the value of the literal, serialized using the structure definition in its declaration
*
*
* .substrait.Expression.Literal.Struct struct = 4;
* @return Whether the struct field is set.
*/
boolean hasStruct();
/**
*
* the value of the literal, serialized using the structure definition in its declaration
*
*
* .substrait.Expression.Literal.Struct struct = 4;
* @return The struct.
*/
io.substrait.proto.Expression.Literal.Struct getStruct();
/**
*
* the value of the literal, serialized using the structure definition in its declaration
*
*
* .substrait.Expression.Literal.Struct struct = 4;
*/
io.substrait.proto.Expression.Literal.StructOrBuilder getStructOrBuilder();
io.substrait.proto.Expression.Literal.UserDefined.ValCase getValCase();
}
/**
* Protobuf type {@code substrait.Expression.Literal.UserDefined}
*/
public static final class UserDefined extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Expression.Literal.UserDefined)
UserDefinedOrBuilder {
private static final long serialVersionUID = 0L;
// Use UserDefined.newBuilder() to construct.
private UserDefined(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UserDefined() {
typeParameters_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UserDefined();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_UserDefined_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_UserDefined_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Literal.UserDefined.class, io.substrait.proto.Expression.Literal.UserDefined.Builder.class);
}
private int valCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object val_;
public enum ValCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
VALUE(2),
STRUCT(4),
VAL_NOT_SET(0);
private final int value;
private ValCase(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 ValCase valueOf(int value) {
return forNumber(value);
}
public static ValCase forNumber(int value) {
switch (value) {
case 2: return VALUE;
case 4: return STRUCT;
case 0: return VAL_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ValCase
getValCase() {
return ValCase.forNumber(
valCase_);
}
public static final int TYPE_REFERENCE_FIELD_NUMBER = 1;
private int typeReference_ = 0;
/**
*
* points to a type_anchor defined in this plan
*
*
* uint32 type_reference = 1;
* @return The typeReference.
*/
@java.lang.Override
public int getTypeReference() {
return typeReference_;
}
public static final int TYPE_PARAMETERS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List typeParameters_;
/**
*
* The parameters to be bound to the type class, if the type class is
* parameterizable.
*
*
* repeated .substrait.Type.Parameter type_parameters = 3;
*/
@java.lang.Override
public java.util.List getTypeParametersList() {
return typeParameters_;
}
/**
*
* The parameters to be bound to the type class, if the type class is
* parameterizable.
*
*
* repeated .substrait.Type.Parameter type_parameters = 3;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.Type.ParameterOrBuilder>
getTypeParametersOrBuilderList() {
return typeParameters_;
}
/**
*
* The parameters to be bound to the type class, if the type class is
* parameterizable.
*
*
* repeated .substrait.Type.Parameter type_parameters = 3;
*/
@java.lang.Override
public int getTypeParametersCount() {
return typeParameters_.size();
}
/**
*
* The parameters to be bound to the type class, if the type class is
* parameterizable.
*
*
* repeated .substrait.Type.Parameter type_parameters = 3;
*/
@java.lang.Override
public io.substrait.proto.Type.Parameter getTypeParameters(int index) {
return typeParameters_.get(index);
}
/**
*
* The parameters to be bound to the type class, if the type class is
* parameterizable.
*
*
* repeated .substrait.Type.Parameter type_parameters = 3;
*/
@java.lang.Override
public io.substrait.proto.Type.ParameterOrBuilder getTypeParametersOrBuilder(
int index) {
return typeParameters_.get(index);
}
public static final int VALUE_FIELD_NUMBER = 2;
/**
*
* the value of the literal, serialized using some type-specific protobuf message
*
*
* .google.protobuf.Any value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return valCase_ == 2;
}
/**
*
* the value of the literal, serialized using some type-specific protobuf message
*
*
* .google.protobuf.Any value = 2;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.Any getValue() {
if (valCase_ == 2) {
return (com.google.protobuf.Any) val_;
}
return com.google.protobuf.Any.getDefaultInstance();
}
/**
*
* the value of the literal, serialized using some type-specific protobuf message
*
*
* .google.protobuf.Any value = 2;
*/
@java.lang.Override
public com.google.protobuf.AnyOrBuilder getValueOrBuilder() {
if (valCase_ == 2) {
return (com.google.protobuf.Any) val_;
}
return com.google.protobuf.Any.getDefaultInstance();
}
public static final int STRUCT_FIELD_NUMBER = 4;
/**
*
* the value of the literal, serialized using the structure definition in its declaration
*
*
* .substrait.Expression.Literal.Struct struct = 4;
* @return Whether the struct field is set.
*/
@java.lang.Override
public boolean hasStruct() {
return valCase_ == 4;
}
/**
*
* the value of the literal, serialized using the structure definition in its declaration
*
*
* .substrait.Expression.Literal.Struct struct = 4;
* @return The struct.
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.Struct getStruct() {
if (valCase_ == 4) {
return (io.substrait.proto.Expression.Literal.Struct) val_;
}
return io.substrait.proto.Expression.Literal.Struct.getDefaultInstance();
}
/**
*
* the value of the literal, serialized using the structure definition in its declaration
*
*
* .substrait.Expression.Literal.Struct struct = 4;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.StructOrBuilder getStructOrBuilder() {
if (valCase_ == 4) {
return (io.substrait.proto.Expression.Literal.Struct) val_;
}
return io.substrait.proto.Expression.Literal.Struct.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 (typeReference_ != 0) {
output.writeUInt32(1, typeReference_);
}
if (valCase_ == 2) {
output.writeMessage(2, (com.google.protobuf.Any) val_);
}
for (int i = 0; i < typeParameters_.size(); i++) {
output.writeMessage(3, typeParameters_.get(i));
}
if (valCase_ == 4) {
output.writeMessage(4, (io.substrait.proto.Expression.Literal.Struct) val_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (typeReference_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, typeReference_);
}
if (valCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.google.protobuf.Any) val_);
}
for (int i = 0; i < typeParameters_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, typeParameters_.get(i));
}
if (valCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (io.substrait.proto.Expression.Literal.Struct) val_);
}
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 io.substrait.proto.Expression.Literal.UserDefined)) {
return super.equals(obj);
}
io.substrait.proto.Expression.Literal.UserDefined other = (io.substrait.proto.Expression.Literal.UserDefined) obj;
if (getTypeReference()
!= other.getTypeReference()) return false;
if (!getTypeParametersList()
.equals(other.getTypeParametersList())) return false;
if (!getValCase().equals(other.getValCase())) return false;
switch (valCase_) {
case 2:
if (!getValue()
.equals(other.getValue())) return false;
break;
case 4:
if (!getStruct()
.equals(other.getStruct())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TYPE_REFERENCE_FIELD_NUMBER;
hash = (53 * hash) + getTypeReference();
if (getTypeParametersCount() > 0) {
hash = (37 * hash) + TYPE_PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + getTypeParametersList().hashCode();
}
switch (valCase_) {
case 2:
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
break;
case 4:
hash = (37 * hash) + STRUCT_FIELD_NUMBER;
hash = (53 * hash) + getStruct().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.Expression.Literal.UserDefined parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.UserDefined parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.UserDefined parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.UserDefined parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.UserDefined parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal.UserDefined parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal.UserDefined parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.UserDefined 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 io.substrait.proto.Expression.Literal.UserDefined parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.UserDefined 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 io.substrait.proto.Expression.Literal.UserDefined parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal.UserDefined 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(io.substrait.proto.Expression.Literal.UserDefined 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 substrait.Expression.Literal.UserDefined}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Expression.Literal.UserDefined)
io.substrait.proto.Expression.Literal.UserDefinedOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_UserDefined_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_UserDefined_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Literal.UserDefined.class, io.substrait.proto.Expression.Literal.UserDefined.Builder.class);
}
// Construct using io.substrait.proto.Expression.Literal.UserDefined.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
typeReference_ = 0;
if (typeParametersBuilder_ == null) {
typeParameters_ = java.util.Collections.emptyList();
} else {
typeParameters_ = null;
typeParametersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (valueBuilder_ != null) {
valueBuilder_.clear();
}
if (structBuilder_ != null) {
structBuilder_.clear();
}
valCase_ = 0;
val_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_UserDefined_descriptor;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.UserDefined getDefaultInstanceForType() {
return io.substrait.proto.Expression.Literal.UserDefined.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.UserDefined build() {
io.substrait.proto.Expression.Literal.UserDefined result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.UserDefined buildPartial() {
io.substrait.proto.Expression.Literal.UserDefined result = new io.substrait.proto.Expression.Literal.UserDefined(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.substrait.proto.Expression.Literal.UserDefined result) {
if (typeParametersBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
typeParameters_ = java.util.Collections.unmodifiableList(typeParameters_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.typeParameters_ = typeParameters_;
} else {
result.typeParameters_ = typeParametersBuilder_.build();
}
}
private void buildPartial0(io.substrait.proto.Expression.Literal.UserDefined result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.typeReference_ = typeReference_;
}
}
private void buildPartialOneofs(io.substrait.proto.Expression.Literal.UserDefined result) {
result.valCase_ = valCase_;
result.val_ = this.val_;
if (valCase_ == 2 &&
valueBuilder_ != null) {
result.val_ = valueBuilder_.build();
}
if (valCase_ == 4 &&
structBuilder_ != null) {
result.val_ = structBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.substrait.proto.Expression.Literal.UserDefined) {
return mergeFrom((io.substrait.proto.Expression.Literal.UserDefined)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Expression.Literal.UserDefined other) {
if (other == io.substrait.proto.Expression.Literal.UserDefined.getDefaultInstance()) return this;
if (other.getTypeReference() != 0) {
setTypeReference(other.getTypeReference());
}
if (typeParametersBuilder_ == null) {
if (!other.typeParameters_.isEmpty()) {
if (typeParameters_.isEmpty()) {
typeParameters_ = other.typeParameters_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureTypeParametersIsMutable();
typeParameters_.addAll(other.typeParameters_);
}
onChanged();
}
} else {
if (!other.typeParameters_.isEmpty()) {
if (typeParametersBuilder_.isEmpty()) {
typeParametersBuilder_.dispose();
typeParametersBuilder_ = null;
typeParameters_ = other.typeParameters_;
bitField0_ = (bitField0_ & ~0x00000002);
typeParametersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTypeParametersFieldBuilder() : null;
} else {
typeParametersBuilder_.addAllMessages(other.typeParameters_);
}
}
}
switch (other.getValCase()) {
case VALUE: {
mergeValue(other.getValue());
break;
}
case STRUCT: {
mergeStruct(other.getStruct());
break;
}
case VAL_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
typeReference_ = input.readUInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
input.readMessage(
getValueFieldBuilder().getBuilder(),
extensionRegistry);
valCase_ = 2;
break;
} // case 18
case 26: {
io.substrait.proto.Type.Parameter m =
input.readMessage(
io.substrait.proto.Type.Parameter.parser(),
extensionRegistry);
if (typeParametersBuilder_ == null) {
ensureTypeParametersIsMutable();
typeParameters_.add(m);
} else {
typeParametersBuilder_.addMessage(m);
}
break;
} // case 26
case 34: {
input.readMessage(
getStructFieldBuilder().getBuilder(),
extensionRegistry);
valCase_ = 4;
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int valCase_ = 0;
private java.lang.Object val_;
public ValCase
getValCase() {
return ValCase.forNumber(
valCase_);
}
public Builder clearVal() {
valCase_ = 0;
val_ = null;
onChanged();
return this;
}
private int bitField0_;
private int typeReference_ ;
/**
*
* points to a type_anchor defined in this plan
*
*
* uint32 type_reference = 1;
* @return The typeReference.
*/
@java.lang.Override
public int getTypeReference() {
return typeReference_;
}
/**
*
* points to a type_anchor defined in this plan
*
*
* uint32 type_reference = 1;
* @param value The typeReference to set.
* @return This builder for chaining.
*/
public Builder setTypeReference(int value) {
typeReference_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* points to a type_anchor defined in this plan
*
*
* uint32 type_reference = 1;
* @return This builder for chaining.
*/
public Builder clearTypeReference() {
bitField0_ = (bitField0_ & ~0x00000001);
typeReference_ = 0;
onChanged();
return this;
}
private java.util.List typeParameters_ =
java.util.Collections.emptyList();
private void ensureTypeParametersIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
typeParameters_ = new java.util.ArrayList(typeParameters_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Type.Parameter, io.substrait.proto.Type.Parameter.Builder, io.substrait.proto.Type.ParameterOrBuilder> typeParametersBuilder_;
/**
*
* The parameters to be bound to the type class, if the type class is
* parameterizable.
*
*
* repeated .substrait.Type.Parameter type_parameters = 3;
*/
public java.util.List getTypeParametersList() {
if (typeParametersBuilder_ == null) {
return java.util.Collections.unmodifiableList(typeParameters_);
} else {
return typeParametersBuilder_.getMessageList();
}
}
/**
*
* The parameters to be bound to the type class, if the type class is
* parameterizable.
*
*
* repeated .substrait.Type.Parameter type_parameters = 3;
*/
public int getTypeParametersCount() {
if (typeParametersBuilder_ == null) {
return typeParameters_.size();
} else {
return typeParametersBuilder_.getCount();
}
}
/**
*
* The parameters to be bound to the type class, if the type class is
* parameterizable.
*
*
* repeated .substrait.Type.Parameter type_parameters = 3;
*/
public io.substrait.proto.Type.Parameter getTypeParameters(int index) {
if (typeParametersBuilder_ == null) {
return typeParameters_.get(index);
} else {
return typeParametersBuilder_.getMessage(index);
}
}
/**
*
* The parameters to be bound to the type class, if the type class is
* parameterizable.
*
*
* repeated .substrait.Type.Parameter type_parameters = 3;
*/
public Builder setTypeParameters(
int index, io.substrait.proto.Type.Parameter value) {
if (typeParametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTypeParametersIsMutable();
typeParameters_.set(index, value);
onChanged();
} else {
typeParametersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The parameters to be bound to the type class, if the type class is
* parameterizable.
*
*
* repeated .substrait.Type.Parameter type_parameters = 3;
*/
public Builder setTypeParameters(
int index, io.substrait.proto.Type.Parameter.Builder builderForValue) {
if (typeParametersBuilder_ == null) {
ensureTypeParametersIsMutable();
typeParameters_.set(index, builderForValue.build());
onChanged();
} else {
typeParametersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The parameters to be bound to the type class, if the type class is
* parameterizable.
*
*
* repeated .substrait.Type.Parameter type_parameters = 3;
*/
public Builder addTypeParameters(io.substrait.proto.Type.Parameter value) {
if (typeParametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTypeParametersIsMutable();
typeParameters_.add(value);
onChanged();
} else {
typeParametersBuilder_.addMessage(value);
}
return this;
}
/**
*
* The parameters to be bound to the type class, if the type class is
* parameterizable.
*
*
* repeated .substrait.Type.Parameter type_parameters = 3;
*/
public Builder addTypeParameters(
int index, io.substrait.proto.Type.Parameter value) {
if (typeParametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTypeParametersIsMutable();
typeParameters_.add(index, value);
onChanged();
} else {
typeParametersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The parameters to be bound to the type class, if the type class is
* parameterizable.
*
*
* repeated .substrait.Type.Parameter type_parameters = 3;
*/
public Builder addTypeParameters(
io.substrait.proto.Type.Parameter.Builder builderForValue) {
if (typeParametersBuilder_ == null) {
ensureTypeParametersIsMutable();
typeParameters_.add(builderForValue.build());
onChanged();
} else {
typeParametersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The parameters to be bound to the type class, if the type class is
* parameterizable.
*
*
* repeated .substrait.Type.Parameter type_parameters = 3;
*/
public Builder addTypeParameters(
int index, io.substrait.proto.Type.Parameter.Builder builderForValue) {
if (typeParametersBuilder_ == null) {
ensureTypeParametersIsMutable();
typeParameters_.add(index, builderForValue.build());
onChanged();
} else {
typeParametersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The parameters to be bound to the type class, if the type class is
* parameterizable.
*
*
* repeated .substrait.Type.Parameter type_parameters = 3;
*/
public Builder addAllTypeParameters(
java.lang.Iterable extends io.substrait.proto.Type.Parameter> values) {
if (typeParametersBuilder_ == null) {
ensureTypeParametersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, typeParameters_);
onChanged();
} else {
typeParametersBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The parameters to be bound to the type class, if the type class is
* parameterizable.
*
*
* repeated .substrait.Type.Parameter type_parameters = 3;
*/
public Builder clearTypeParameters() {
if (typeParametersBuilder_ == null) {
typeParameters_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
typeParametersBuilder_.clear();
}
return this;
}
/**
*
* The parameters to be bound to the type class, if the type class is
* parameterizable.
*
*
* repeated .substrait.Type.Parameter type_parameters = 3;
*/
public Builder removeTypeParameters(int index) {
if (typeParametersBuilder_ == null) {
ensureTypeParametersIsMutable();
typeParameters_.remove(index);
onChanged();
} else {
typeParametersBuilder_.remove(index);
}
return this;
}
/**
*
* The parameters to be bound to the type class, if the type class is
* parameterizable.
*
*
* repeated .substrait.Type.Parameter type_parameters = 3;
*/
public io.substrait.proto.Type.Parameter.Builder getTypeParametersBuilder(
int index) {
return getTypeParametersFieldBuilder().getBuilder(index);
}
/**
*
* The parameters to be bound to the type class, if the type class is
* parameterizable.
*
*
* repeated .substrait.Type.Parameter type_parameters = 3;
*/
public io.substrait.proto.Type.ParameterOrBuilder getTypeParametersOrBuilder(
int index) {
if (typeParametersBuilder_ == null) {
return typeParameters_.get(index); } else {
return typeParametersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The parameters to be bound to the type class, if the type class is
* parameterizable.
*
*
* repeated .substrait.Type.Parameter type_parameters = 3;
*/
public java.util.List extends io.substrait.proto.Type.ParameterOrBuilder>
getTypeParametersOrBuilderList() {
if (typeParametersBuilder_ != null) {
return typeParametersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(typeParameters_);
}
}
/**
*
* The parameters to be bound to the type class, if the type class is
* parameterizable.
*
*
* repeated .substrait.Type.Parameter type_parameters = 3;
*/
public io.substrait.proto.Type.Parameter.Builder addTypeParametersBuilder() {
return getTypeParametersFieldBuilder().addBuilder(
io.substrait.proto.Type.Parameter.getDefaultInstance());
}
/**
*
* The parameters to be bound to the type class, if the type class is
* parameterizable.
*
*
* repeated .substrait.Type.Parameter type_parameters = 3;
*/
public io.substrait.proto.Type.Parameter.Builder addTypeParametersBuilder(
int index) {
return getTypeParametersFieldBuilder().addBuilder(
index, io.substrait.proto.Type.Parameter.getDefaultInstance());
}
/**
*
* The parameters to be bound to the type class, if the type class is
* parameterizable.
*
*
* repeated .substrait.Type.Parameter type_parameters = 3;
*/
public java.util.List
getTypeParametersBuilderList() {
return getTypeParametersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Type.Parameter, io.substrait.proto.Type.Parameter.Builder, io.substrait.proto.Type.ParameterOrBuilder>
getTypeParametersFieldBuilder() {
if (typeParametersBuilder_ == null) {
typeParametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Type.Parameter, io.substrait.proto.Type.Parameter.Builder, io.substrait.proto.Type.ParameterOrBuilder>(
typeParameters_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
typeParameters_ = null;
}
return typeParametersBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> valueBuilder_;
/**
*
* the value of the literal, serialized using some type-specific protobuf message
*
*
* .google.protobuf.Any value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return valCase_ == 2;
}
/**
*
* the value of the literal, serialized using some type-specific protobuf message
*
*
* .google.protobuf.Any value = 2;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.Any getValue() {
if (valueBuilder_ == null) {
if (valCase_ == 2) {
return (com.google.protobuf.Any) val_;
}
return com.google.protobuf.Any.getDefaultInstance();
} else {
if (valCase_ == 2) {
return valueBuilder_.getMessage();
}
return com.google.protobuf.Any.getDefaultInstance();
}
}
/**
*
* the value of the literal, serialized using some type-specific protobuf message
*
*
* .google.protobuf.Any value = 2;
*/
public Builder setValue(com.google.protobuf.Any value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
val_ = value;
onChanged();
} else {
valueBuilder_.setMessage(value);
}
valCase_ = 2;
return this;
}
/**
*
* the value of the literal, serialized using some type-specific protobuf message
*
*
* .google.protobuf.Any value = 2;
*/
public Builder setValue(
com.google.protobuf.Any.Builder builderForValue) {
if (valueBuilder_ == null) {
val_ = builderForValue.build();
onChanged();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
valCase_ = 2;
return this;
}
/**
*
* the value of the literal, serialized using some type-specific protobuf message
*
*
* .google.protobuf.Any value = 2;
*/
public Builder mergeValue(com.google.protobuf.Any value) {
if (valueBuilder_ == null) {
if (valCase_ == 2 &&
val_ != com.google.protobuf.Any.getDefaultInstance()) {
val_ = com.google.protobuf.Any.newBuilder((com.google.protobuf.Any) val_)
.mergeFrom(value).buildPartial();
} else {
val_ = value;
}
onChanged();
} else {
if (valCase_ == 2) {
valueBuilder_.mergeFrom(value);
} else {
valueBuilder_.setMessage(value);
}
}
valCase_ = 2;
return this;
}
/**
*
* the value of the literal, serialized using some type-specific protobuf message
*
*
* .google.protobuf.Any value = 2;
*/
public Builder clearValue() {
if (valueBuilder_ == null) {
if (valCase_ == 2) {
valCase_ = 0;
val_ = null;
onChanged();
}
} else {
if (valCase_ == 2) {
valCase_ = 0;
val_ = null;
}
valueBuilder_.clear();
}
return this;
}
/**
*
* the value of the literal, serialized using some type-specific protobuf message
*
*
* .google.protobuf.Any value = 2;
*/
public com.google.protobuf.Any.Builder getValueBuilder() {
return getValueFieldBuilder().getBuilder();
}
/**
*
* the value of the literal, serialized using some type-specific protobuf message
*
*
* .google.protobuf.Any value = 2;
*/
@java.lang.Override
public com.google.protobuf.AnyOrBuilder getValueOrBuilder() {
if ((valCase_ == 2) && (valueBuilder_ != null)) {
return valueBuilder_.getMessageOrBuilder();
} else {
if (valCase_ == 2) {
return (com.google.protobuf.Any) val_;
}
return com.google.protobuf.Any.getDefaultInstance();
}
}
/**
*
* the value of the literal, serialized using some type-specific protobuf message
*
*
* .google.protobuf.Any value = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
if (!(valCase_ == 2)) {
val_ = com.google.protobuf.Any.getDefaultInstance();
}
valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
(com.google.protobuf.Any) val_,
getParentForChildren(),
isClean());
val_ = null;
}
valCase_ = 2;
onChanged();
return valueBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.Struct, io.substrait.proto.Expression.Literal.Struct.Builder, io.substrait.proto.Expression.Literal.StructOrBuilder> structBuilder_;
/**
*
* the value of the literal, serialized using the structure definition in its declaration
*
*
* .substrait.Expression.Literal.Struct struct = 4;
* @return Whether the struct field is set.
*/
@java.lang.Override
public boolean hasStruct() {
return valCase_ == 4;
}
/**
*
* the value of the literal, serialized using the structure definition in its declaration
*
*
* .substrait.Expression.Literal.Struct struct = 4;
* @return The struct.
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.Struct getStruct() {
if (structBuilder_ == null) {
if (valCase_ == 4) {
return (io.substrait.proto.Expression.Literal.Struct) val_;
}
return io.substrait.proto.Expression.Literal.Struct.getDefaultInstance();
} else {
if (valCase_ == 4) {
return structBuilder_.getMessage();
}
return io.substrait.proto.Expression.Literal.Struct.getDefaultInstance();
}
}
/**
*
* the value of the literal, serialized using the structure definition in its declaration
*
*
* .substrait.Expression.Literal.Struct struct = 4;
*/
public Builder setStruct(io.substrait.proto.Expression.Literal.Struct value) {
if (structBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
val_ = value;
onChanged();
} else {
structBuilder_.setMessage(value);
}
valCase_ = 4;
return this;
}
/**
*
* the value of the literal, serialized using the structure definition in its declaration
*
*
* .substrait.Expression.Literal.Struct struct = 4;
*/
public Builder setStruct(
io.substrait.proto.Expression.Literal.Struct.Builder builderForValue) {
if (structBuilder_ == null) {
val_ = builderForValue.build();
onChanged();
} else {
structBuilder_.setMessage(builderForValue.build());
}
valCase_ = 4;
return this;
}
/**
*
* the value of the literal, serialized using the structure definition in its declaration
*
*
* .substrait.Expression.Literal.Struct struct = 4;
*/
public Builder mergeStruct(io.substrait.proto.Expression.Literal.Struct value) {
if (structBuilder_ == null) {
if (valCase_ == 4 &&
val_ != io.substrait.proto.Expression.Literal.Struct.getDefaultInstance()) {
val_ = io.substrait.proto.Expression.Literal.Struct.newBuilder((io.substrait.proto.Expression.Literal.Struct) val_)
.mergeFrom(value).buildPartial();
} else {
val_ = value;
}
onChanged();
} else {
if (valCase_ == 4) {
structBuilder_.mergeFrom(value);
} else {
structBuilder_.setMessage(value);
}
}
valCase_ = 4;
return this;
}
/**
*
* the value of the literal, serialized using the structure definition in its declaration
*
*
* .substrait.Expression.Literal.Struct struct = 4;
*/
public Builder clearStruct() {
if (structBuilder_ == null) {
if (valCase_ == 4) {
valCase_ = 0;
val_ = null;
onChanged();
}
} else {
if (valCase_ == 4) {
valCase_ = 0;
val_ = null;
}
structBuilder_.clear();
}
return this;
}
/**
*
* the value of the literal, serialized using the structure definition in its declaration
*
*
* .substrait.Expression.Literal.Struct struct = 4;
*/
public io.substrait.proto.Expression.Literal.Struct.Builder getStructBuilder() {
return getStructFieldBuilder().getBuilder();
}
/**
*
* the value of the literal, serialized using the structure definition in its declaration
*
*
* .substrait.Expression.Literal.Struct struct = 4;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.StructOrBuilder getStructOrBuilder() {
if ((valCase_ == 4) && (structBuilder_ != null)) {
return structBuilder_.getMessageOrBuilder();
} else {
if (valCase_ == 4) {
return (io.substrait.proto.Expression.Literal.Struct) val_;
}
return io.substrait.proto.Expression.Literal.Struct.getDefaultInstance();
}
}
/**
*
* the value of the literal, serialized using the structure definition in its declaration
*
*
* .substrait.Expression.Literal.Struct struct = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.Struct, io.substrait.proto.Expression.Literal.Struct.Builder, io.substrait.proto.Expression.Literal.StructOrBuilder>
getStructFieldBuilder() {
if (structBuilder_ == null) {
if (!(valCase_ == 4)) {
val_ = io.substrait.proto.Expression.Literal.Struct.getDefaultInstance();
}
structBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.Struct, io.substrait.proto.Expression.Literal.Struct.Builder, io.substrait.proto.Expression.Literal.StructOrBuilder>(
(io.substrait.proto.Expression.Literal.Struct) val_,
getParentForChildren(),
isClean());
val_ = null;
}
valCase_ = 4;
onChanged();
return structBuilder_;
}
@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:substrait.Expression.Literal.UserDefined)
}
// @@protoc_insertion_point(class_scope:substrait.Expression.Literal.UserDefined)
private static final io.substrait.proto.Expression.Literal.UserDefined DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.Expression.Literal.UserDefined();
}
public static io.substrait.proto.Expression.Literal.UserDefined getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UserDefined parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal.UserDefined getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int literalTypeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object literalType_;
public enum LiteralTypeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
BOOLEAN(1),
I8(2),
I16(3),
I32(5),
I64(7),
FP32(10),
FP64(11),
STRING(12),
BINARY(13),
@java.lang.Deprecated TIMESTAMP(14),
DATE(16),
TIME(17),
INTERVAL_YEAR_TO_MONTH(19),
INTERVAL_DAY_TO_SECOND(20),
INTERVAL_COMPOUND(36),
FIXED_CHAR(21),
VAR_CHAR(22),
FIXED_BINARY(23),
DECIMAL(24),
PRECISION_TIMESTAMP(34),
PRECISION_TIMESTAMP_TZ(35),
STRUCT(25),
MAP(26),
@java.lang.Deprecated TIMESTAMP_TZ(27),
UUID(28),
NULL(29),
LIST(30),
EMPTY_LIST(31),
EMPTY_MAP(32),
USER_DEFINED(33),
LITERALTYPE_NOT_SET(0);
private final int value;
private LiteralTypeCase(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 LiteralTypeCase valueOf(int value) {
return forNumber(value);
}
public static LiteralTypeCase forNumber(int value) {
switch (value) {
case 1: return BOOLEAN;
case 2: return I8;
case 3: return I16;
case 5: return I32;
case 7: return I64;
case 10: return FP32;
case 11: return FP64;
case 12: return STRING;
case 13: return BINARY;
case 14: return TIMESTAMP;
case 16: return DATE;
case 17: return TIME;
case 19: return INTERVAL_YEAR_TO_MONTH;
case 20: return INTERVAL_DAY_TO_SECOND;
case 36: return INTERVAL_COMPOUND;
case 21: return FIXED_CHAR;
case 22: return VAR_CHAR;
case 23: return FIXED_BINARY;
case 24: return DECIMAL;
case 34: return PRECISION_TIMESTAMP;
case 35: return PRECISION_TIMESTAMP_TZ;
case 25: return STRUCT;
case 26: return MAP;
case 27: return TIMESTAMP_TZ;
case 28: return UUID;
case 29: return NULL;
case 30: return LIST;
case 31: return EMPTY_LIST;
case 32: return EMPTY_MAP;
case 33: return USER_DEFINED;
case 0: return LITERALTYPE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public LiteralTypeCase
getLiteralTypeCase() {
return LiteralTypeCase.forNumber(
literalTypeCase_);
}
public static final int BOOLEAN_FIELD_NUMBER = 1;
/**
* bool boolean = 1;
* @return Whether the boolean field is set.
*/
@java.lang.Override
public boolean hasBoolean() {
return literalTypeCase_ == 1;
}
/**
* bool boolean = 1;
* @return The boolean.
*/
@java.lang.Override
public boolean getBoolean() {
if (literalTypeCase_ == 1) {
return (java.lang.Boolean) literalType_;
}
return false;
}
public static final int I8_FIELD_NUMBER = 2;
/**
* int32 i8 = 2;
* @return Whether the i8 field is set.
*/
@java.lang.Override
public boolean hasI8() {
return literalTypeCase_ == 2;
}
/**
* int32 i8 = 2;
* @return The i8.
*/
@java.lang.Override
public int getI8() {
if (literalTypeCase_ == 2) {
return (java.lang.Integer) literalType_;
}
return 0;
}
public static final int I16_FIELD_NUMBER = 3;
/**
* int32 i16 = 3;
* @return Whether the i16 field is set.
*/
@java.lang.Override
public boolean hasI16() {
return literalTypeCase_ == 3;
}
/**
* int32 i16 = 3;
* @return The i16.
*/
@java.lang.Override
public int getI16() {
if (literalTypeCase_ == 3) {
return (java.lang.Integer) literalType_;
}
return 0;
}
public static final int I32_FIELD_NUMBER = 5;
/**
* int32 i32 = 5;
* @return Whether the i32 field is set.
*/
@java.lang.Override
public boolean hasI32() {
return literalTypeCase_ == 5;
}
/**
* int32 i32 = 5;
* @return The i32.
*/
@java.lang.Override
public int getI32() {
if (literalTypeCase_ == 5) {
return (java.lang.Integer) literalType_;
}
return 0;
}
public static final int I64_FIELD_NUMBER = 7;
/**
* int64 i64 = 7;
* @return Whether the i64 field is set.
*/
@java.lang.Override
public boolean hasI64() {
return literalTypeCase_ == 7;
}
/**
* int64 i64 = 7;
* @return The i64.
*/
@java.lang.Override
public long getI64() {
if (literalTypeCase_ == 7) {
return (java.lang.Long) literalType_;
}
return 0L;
}
public static final int FP32_FIELD_NUMBER = 10;
/**
* float fp32 = 10;
* @return Whether the fp32 field is set.
*/
@java.lang.Override
public boolean hasFp32() {
return literalTypeCase_ == 10;
}
/**
* float fp32 = 10;
* @return The fp32.
*/
@java.lang.Override
public float getFp32() {
if (literalTypeCase_ == 10) {
return (java.lang.Float) literalType_;
}
return 0F;
}
public static final int FP64_FIELD_NUMBER = 11;
/**
* double fp64 = 11;
* @return Whether the fp64 field is set.
*/
@java.lang.Override
public boolean hasFp64() {
return literalTypeCase_ == 11;
}
/**
* double fp64 = 11;
* @return The fp64.
*/
@java.lang.Override
public double getFp64() {
if (literalTypeCase_ == 11) {
return (java.lang.Double) literalType_;
}
return 0D;
}
public static final int STRING_FIELD_NUMBER = 12;
/**
* string string = 12;
* @return Whether the string field is set.
*/
public boolean hasString() {
return literalTypeCase_ == 12;
}
/**
* string string = 12;
* @return The string.
*/
public java.lang.String getString() {
java.lang.Object ref = "";
if (literalTypeCase_ == 12) {
ref = literalType_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (literalTypeCase_ == 12) {
literalType_ = s;
}
return s;
}
}
/**
* string string = 12;
* @return The bytes for string.
*/
public com.google.protobuf.ByteString
getStringBytes() {
java.lang.Object ref = "";
if (literalTypeCase_ == 12) {
ref = literalType_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (literalTypeCase_ == 12) {
literalType_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BINARY_FIELD_NUMBER = 13;
/**
* bytes binary = 13;
* @return Whether the binary field is set.
*/
@java.lang.Override
public boolean hasBinary() {
return literalTypeCase_ == 13;
}
/**
* bytes binary = 13;
* @return The binary.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBinary() {
if (literalTypeCase_ == 13) {
return (com.google.protobuf.ByteString) literalType_;
}
return com.google.protobuf.ByteString.EMPTY;
}
public static final int TIMESTAMP_FIELD_NUMBER = 14;
/**
*
* Timestamp in units of microseconds since the UNIX epoch.
* Deprecated in favor of `precision_timestamp`
*
*
* int64 timestamp = 14 [deprecated = true];
* @deprecated substrait.Expression.Literal.timestamp is deprecated.
* See substrait/algebra.proto;l=864
* @return Whether the timestamp field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasTimestamp() {
return literalTypeCase_ == 14;
}
/**
*
* Timestamp in units of microseconds since the UNIX epoch.
* Deprecated in favor of `precision_timestamp`
*
*
* int64 timestamp = 14 [deprecated = true];
* @deprecated substrait.Expression.Literal.timestamp is deprecated.
* See substrait/algebra.proto;l=864
* @return The timestamp.
*/
@java.lang.Override
@java.lang.Deprecated public long getTimestamp() {
if (literalTypeCase_ == 14) {
return (java.lang.Long) literalType_;
}
return 0L;
}
public static final int DATE_FIELD_NUMBER = 16;
/**
*
* Date in units of days since the UNIX epoch.
*
*
* int32 date = 16;
* @return Whether the date field is set.
*/
@java.lang.Override
public boolean hasDate() {
return literalTypeCase_ == 16;
}
/**
*
* Date in units of days since the UNIX epoch.
*
*
* int32 date = 16;
* @return The date.
*/
@java.lang.Override
public int getDate() {
if (literalTypeCase_ == 16) {
return (java.lang.Integer) literalType_;
}
return 0;
}
public static final int TIME_FIELD_NUMBER = 17;
/**
*
* Time in units of microseconds past midnight
*
*
* int64 time = 17;
* @return Whether the time field is set.
*/
@java.lang.Override
public boolean hasTime() {
return literalTypeCase_ == 17;
}
/**
*
* Time in units of microseconds past midnight
*
*
* int64 time = 17;
* @return The time.
*/
@java.lang.Override
public long getTime() {
if (literalTypeCase_ == 17) {
return (java.lang.Long) literalType_;
}
return 0L;
}
public static final int INTERVAL_YEAR_TO_MONTH_FIELD_NUMBER = 19;
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 19;
* @return Whether the intervalYearToMonth field is set.
*/
@java.lang.Override
public boolean hasIntervalYearToMonth() {
return literalTypeCase_ == 19;
}
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 19;
* @return The intervalYearToMonth.
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.IntervalYearToMonth getIntervalYearToMonth() {
if (literalTypeCase_ == 19) {
return (io.substrait.proto.Expression.Literal.IntervalYearToMonth) literalType_;
}
return io.substrait.proto.Expression.Literal.IntervalYearToMonth.getDefaultInstance();
}
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 19;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.IntervalYearToMonthOrBuilder getIntervalYearToMonthOrBuilder() {
if (literalTypeCase_ == 19) {
return (io.substrait.proto.Expression.Literal.IntervalYearToMonth) literalType_;
}
return io.substrait.proto.Expression.Literal.IntervalYearToMonth.getDefaultInstance();
}
public static final int INTERVAL_DAY_TO_SECOND_FIELD_NUMBER = 20;
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 20;
* @return Whether the intervalDayToSecond field is set.
*/
@java.lang.Override
public boolean hasIntervalDayToSecond() {
return literalTypeCase_ == 20;
}
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 20;
* @return The intervalDayToSecond.
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.IntervalDayToSecond getIntervalDayToSecond() {
if (literalTypeCase_ == 20) {
return (io.substrait.proto.Expression.Literal.IntervalDayToSecond) literalType_;
}
return io.substrait.proto.Expression.Literal.IntervalDayToSecond.getDefaultInstance();
}
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 20;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.IntervalDayToSecondOrBuilder getIntervalDayToSecondOrBuilder() {
if (literalTypeCase_ == 20) {
return (io.substrait.proto.Expression.Literal.IntervalDayToSecond) literalType_;
}
return io.substrait.proto.Expression.Literal.IntervalDayToSecond.getDefaultInstance();
}
public static final int INTERVAL_COMPOUND_FIELD_NUMBER = 36;
/**
* .substrait.Expression.Literal.IntervalCompound interval_compound = 36;
* @return Whether the intervalCompound field is set.
*/
@java.lang.Override
public boolean hasIntervalCompound() {
return literalTypeCase_ == 36;
}
/**
* .substrait.Expression.Literal.IntervalCompound interval_compound = 36;
* @return The intervalCompound.
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.IntervalCompound getIntervalCompound() {
if (literalTypeCase_ == 36) {
return (io.substrait.proto.Expression.Literal.IntervalCompound) literalType_;
}
return io.substrait.proto.Expression.Literal.IntervalCompound.getDefaultInstance();
}
/**
* .substrait.Expression.Literal.IntervalCompound interval_compound = 36;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.IntervalCompoundOrBuilder getIntervalCompoundOrBuilder() {
if (literalTypeCase_ == 36) {
return (io.substrait.proto.Expression.Literal.IntervalCompound) literalType_;
}
return io.substrait.proto.Expression.Literal.IntervalCompound.getDefaultInstance();
}
public static final int FIXED_CHAR_FIELD_NUMBER = 21;
/**
* string fixed_char = 21;
* @return Whether the fixedChar field is set.
*/
public boolean hasFixedChar() {
return literalTypeCase_ == 21;
}
/**
* string fixed_char = 21;
* @return The fixedChar.
*/
public java.lang.String getFixedChar() {
java.lang.Object ref = "";
if (literalTypeCase_ == 21) {
ref = literalType_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (literalTypeCase_ == 21) {
literalType_ = s;
}
return s;
}
}
/**
* string fixed_char = 21;
* @return The bytes for fixedChar.
*/
public com.google.protobuf.ByteString
getFixedCharBytes() {
java.lang.Object ref = "";
if (literalTypeCase_ == 21) {
ref = literalType_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (literalTypeCase_ == 21) {
literalType_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VAR_CHAR_FIELD_NUMBER = 22;
/**
* .substrait.Expression.Literal.VarChar var_char = 22;
* @return Whether the varChar field is set.
*/
@java.lang.Override
public boolean hasVarChar() {
return literalTypeCase_ == 22;
}
/**
* .substrait.Expression.Literal.VarChar var_char = 22;
* @return The varChar.
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.VarChar getVarChar() {
if (literalTypeCase_ == 22) {
return (io.substrait.proto.Expression.Literal.VarChar) literalType_;
}
return io.substrait.proto.Expression.Literal.VarChar.getDefaultInstance();
}
/**
* .substrait.Expression.Literal.VarChar var_char = 22;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.VarCharOrBuilder getVarCharOrBuilder() {
if (literalTypeCase_ == 22) {
return (io.substrait.proto.Expression.Literal.VarChar) literalType_;
}
return io.substrait.proto.Expression.Literal.VarChar.getDefaultInstance();
}
public static final int FIXED_BINARY_FIELD_NUMBER = 23;
/**
* bytes fixed_binary = 23;
* @return Whether the fixedBinary field is set.
*/
@java.lang.Override
public boolean hasFixedBinary() {
return literalTypeCase_ == 23;
}
/**
* bytes fixed_binary = 23;
* @return The fixedBinary.
*/
@java.lang.Override
public com.google.protobuf.ByteString getFixedBinary() {
if (literalTypeCase_ == 23) {
return (com.google.protobuf.ByteString) literalType_;
}
return com.google.protobuf.ByteString.EMPTY;
}
public static final int DECIMAL_FIELD_NUMBER = 24;
/**
* .substrait.Expression.Literal.Decimal decimal = 24;
* @return Whether the decimal field is set.
*/
@java.lang.Override
public boolean hasDecimal() {
return literalTypeCase_ == 24;
}
/**
* .substrait.Expression.Literal.Decimal decimal = 24;
* @return The decimal.
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.Decimal getDecimal() {
if (literalTypeCase_ == 24) {
return (io.substrait.proto.Expression.Literal.Decimal) literalType_;
}
return io.substrait.proto.Expression.Literal.Decimal.getDefaultInstance();
}
/**
* .substrait.Expression.Literal.Decimal decimal = 24;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.DecimalOrBuilder getDecimalOrBuilder() {
if (literalTypeCase_ == 24) {
return (io.substrait.proto.Expression.Literal.Decimal) literalType_;
}
return io.substrait.proto.Expression.Literal.Decimal.getDefaultInstance();
}
public static final int PRECISION_TIMESTAMP_FIELD_NUMBER = 34;
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp = 34;
* @return Whether the precisionTimestamp field is set.
*/
@java.lang.Override
public boolean hasPrecisionTimestamp() {
return literalTypeCase_ == 34;
}
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp = 34;
* @return The precisionTimestamp.
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.PrecisionTimestamp getPrecisionTimestamp() {
if (literalTypeCase_ == 34) {
return (io.substrait.proto.Expression.Literal.PrecisionTimestamp) literalType_;
}
return io.substrait.proto.Expression.Literal.PrecisionTimestamp.getDefaultInstance();
}
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp = 34;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.PrecisionTimestampOrBuilder getPrecisionTimestampOrBuilder() {
if (literalTypeCase_ == 34) {
return (io.substrait.proto.Expression.Literal.PrecisionTimestamp) literalType_;
}
return io.substrait.proto.Expression.Literal.PrecisionTimestamp.getDefaultInstance();
}
public static final int PRECISION_TIMESTAMP_TZ_FIELD_NUMBER = 35;
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp_tz = 35;
* @return Whether the precisionTimestampTz field is set.
*/
@java.lang.Override
public boolean hasPrecisionTimestampTz() {
return literalTypeCase_ == 35;
}
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp_tz = 35;
* @return The precisionTimestampTz.
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.PrecisionTimestamp getPrecisionTimestampTz() {
if (literalTypeCase_ == 35) {
return (io.substrait.proto.Expression.Literal.PrecisionTimestamp) literalType_;
}
return io.substrait.proto.Expression.Literal.PrecisionTimestamp.getDefaultInstance();
}
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp_tz = 35;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.PrecisionTimestampOrBuilder getPrecisionTimestampTzOrBuilder() {
if (literalTypeCase_ == 35) {
return (io.substrait.proto.Expression.Literal.PrecisionTimestamp) literalType_;
}
return io.substrait.proto.Expression.Literal.PrecisionTimestamp.getDefaultInstance();
}
public static final int STRUCT_FIELD_NUMBER = 25;
/**
* .substrait.Expression.Literal.Struct struct = 25;
* @return Whether the struct field is set.
*/
@java.lang.Override
public boolean hasStruct() {
return literalTypeCase_ == 25;
}
/**
* .substrait.Expression.Literal.Struct struct = 25;
* @return The struct.
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.Struct getStruct() {
if (literalTypeCase_ == 25) {
return (io.substrait.proto.Expression.Literal.Struct) literalType_;
}
return io.substrait.proto.Expression.Literal.Struct.getDefaultInstance();
}
/**
* .substrait.Expression.Literal.Struct struct = 25;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.StructOrBuilder getStructOrBuilder() {
if (literalTypeCase_ == 25) {
return (io.substrait.proto.Expression.Literal.Struct) literalType_;
}
return io.substrait.proto.Expression.Literal.Struct.getDefaultInstance();
}
public static final int MAP_FIELD_NUMBER = 26;
/**
* .substrait.Expression.Literal.Map map = 26;
* @return Whether the map field is set.
*/
@java.lang.Override
public boolean hasMap() {
return literalTypeCase_ == 26;
}
/**
* .substrait.Expression.Literal.Map map = 26;
* @return The map.
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.Map getMap() {
if (literalTypeCase_ == 26) {
return (io.substrait.proto.Expression.Literal.Map) literalType_;
}
return io.substrait.proto.Expression.Literal.Map.getDefaultInstance();
}
/**
* .substrait.Expression.Literal.Map map = 26;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.MapOrBuilder getMapOrBuilder() {
if (literalTypeCase_ == 26) {
return (io.substrait.proto.Expression.Literal.Map) literalType_;
}
return io.substrait.proto.Expression.Literal.Map.getDefaultInstance();
}
public static final int TIMESTAMP_TZ_FIELD_NUMBER = 27;
/**
*
* Timestamp in units of microseconds since the UNIX epoch.
* Deprecated in favor of `precision_timestamp_tz`
*
*
* int64 timestamp_tz = 27 [deprecated = true];
* @deprecated substrait.Expression.Literal.timestamp_tz is deprecated.
* See substrait/algebra.proto;l=882
* @return Whether the timestampTz field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasTimestampTz() {
return literalTypeCase_ == 27;
}
/**
*
* Timestamp in units of microseconds since the UNIX epoch.
* Deprecated in favor of `precision_timestamp_tz`
*
*
* int64 timestamp_tz = 27 [deprecated = true];
* @deprecated substrait.Expression.Literal.timestamp_tz is deprecated.
* See substrait/algebra.proto;l=882
* @return The timestampTz.
*/
@java.lang.Override
@java.lang.Deprecated public long getTimestampTz() {
if (literalTypeCase_ == 27) {
return (java.lang.Long) literalType_;
}
return 0L;
}
public static final int UUID_FIELD_NUMBER = 28;
/**
* bytes uuid = 28;
* @return Whether the uuid field is set.
*/
@java.lang.Override
public boolean hasUuid() {
return literalTypeCase_ == 28;
}
/**
* bytes uuid = 28;
* @return The uuid.
*/
@java.lang.Override
public com.google.protobuf.ByteString getUuid() {
if (literalTypeCase_ == 28) {
return (com.google.protobuf.ByteString) literalType_;
}
return com.google.protobuf.ByteString.EMPTY;
}
public static final int NULL_FIELD_NUMBER = 29;
/**
*
* a typed null literal
*
*
* .substrait.Type null = 29;
* @return Whether the null field is set.
*/
@java.lang.Override
public boolean hasNull() {
return literalTypeCase_ == 29;
}
/**
*
* a typed null literal
*
*
* .substrait.Type null = 29;
* @return The null.
*/
@java.lang.Override
public io.substrait.proto.Type getNull() {
if (literalTypeCase_ == 29) {
return (io.substrait.proto.Type) literalType_;
}
return io.substrait.proto.Type.getDefaultInstance();
}
/**
*
* a typed null literal
*
*
* .substrait.Type null = 29;
*/
@java.lang.Override
public io.substrait.proto.TypeOrBuilder getNullOrBuilder() {
if (literalTypeCase_ == 29) {
return (io.substrait.proto.Type) literalType_;
}
return io.substrait.proto.Type.getDefaultInstance();
}
public static final int LIST_FIELD_NUMBER = 30;
/**
* .substrait.Expression.Literal.List list = 30;
* @return Whether the list field is set.
*/
@java.lang.Override
public boolean hasList() {
return literalTypeCase_ == 30;
}
/**
* .substrait.Expression.Literal.List list = 30;
* @return The list.
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.List getList() {
if (literalTypeCase_ == 30) {
return (io.substrait.proto.Expression.Literal.List) literalType_;
}
return io.substrait.proto.Expression.Literal.List.getDefaultInstance();
}
/**
* .substrait.Expression.Literal.List list = 30;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.ListOrBuilder getListOrBuilder() {
if (literalTypeCase_ == 30) {
return (io.substrait.proto.Expression.Literal.List) literalType_;
}
return io.substrait.proto.Expression.Literal.List.getDefaultInstance();
}
public static final int EMPTY_LIST_FIELD_NUMBER = 31;
/**
* .substrait.Type.List empty_list = 31;
* @return Whether the emptyList field is set.
*/
@java.lang.Override
public boolean hasEmptyList() {
return literalTypeCase_ == 31;
}
/**
* .substrait.Type.List empty_list = 31;
* @return The emptyList.
*/
@java.lang.Override
public io.substrait.proto.Type.List getEmptyList() {
if (literalTypeCase_ == 31) {
return (io.substrait.proto.Type.List) literalType_;
}
return io.substrait.proto.Type.List.getDefaultInstance();
}
/**
* .substrait.Type.List empty_list = 31;
*/
@java.lang.Override
public io.substrait.proto.Type.ListOrBuilder getEmptyListOrBuilder() {
if (literalTypeCase_ == 31) {
return (io.substrait.proto.Type.List) literalType_;
}
return io.substrait.proto.Type.List.getDefaultInstance();
}
public static final int EMPTY_MAP_FIELD_NUMBER = 32;
/**
* .substrait.Type.Map empty_map = 32;
* @return Whether the emptyMap field is set.
*/
@java.lang.Override
public boolean hasEmptyMap() {
return literalTypeCase_ == 32;
}
/**
* .substrait.Type.Map empty_map = 32;
* @return The emptyMap.
*/
@java.lang.Override
public io.substrait.proto.Type.Map getEmptyMap() {
if (literalTypeCase_ == 32) {
return (io.substrait.proto.Type.Map) literalType_;
}
return io.substrait.proto.Type.Map.getDefaultInstance();
}
/**
* .substrait.Type.Map empty_map = 32;
*/
@java.lang.Override
public io.substrait.proto.Type.MapOrBuilder getEmptyMapOrBuilder() {
if (literalTypeCase_ == 32) {
return (io.substrait.proto.Type.Map) literalType_;
}
return io.substrait.proto.Type.Map.getDefaultInstance();
}
public static final int USER_DEFINED_FIELD_NUMBER = 33;
/**
* .substrait.Expression.Literal.UserDefined user_defined = 33;
* @return Whether the userDefined field is set.
*/
@java.lang.Override
public boolean hasUserDefined() {
return literalTypeCase_ == 33;
}
/**
* .substrait.Expression.Literal.UserDefined user_defined = 33;
* @return The userDefined.
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.UserDefined getUserDefined() {
if (literalTypeCase_ == 33) {
return (io.substrait.proto.Expression.Literal.UserDefined) literalType_;
}
return io.substrait.proto.Expression.Literal.UserDefined.getDefaultInstance();
}
/**
* .substrait.Expression.Literal.UserDefined user_defined = 33;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.UserDefinedOrBuilder getUserDefinedOrBuilder() {
if (literalTypeCase_ == 33) {
return (io.substrait.proto.Expression.Literal.UserDefined) literalType_;
}
return io.substrait.proto.Expression.Literal.UserDefined.getDefaultInstance();
}
public static final int NULLABLE_FIELD_NUMBER = 50;
private boolean nullable_ = false;
/**
*
* Whether the literal_type above should be treated as a nullable type.
* Applies to all members of the literal_type oneof EXCEPT:
* * Type null (must be nullable by definition)
* * Type.List empty_list (use Type.List::nullability)
* * Type.Map empty_map (use Type.Map::nullability)
*
*
* bool nullable = 50;
* @return The nullable.
*/
@java.lang.Override
public boolean getNullable() {
return nullable_;
}
public static final int TYPE_VARIATION_REFERENCE_FIELD_NUMBER = 51;
private int typeVariationReference_ = 0;
/**
*
* optionally points to a type_variation_anchor defined in this plan.
* Applies to all members of union other than the Typed null (which should
* directly declare the type variation).
*
*
* uint32 type_variation_reference = 51;
* @return The typeVariationReference.
*/
@java.lang.Override
public int getTypeVariationReference() {
return typeVariationReference_;
}
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 (literalTypeCase_ == 1) {
output.writeBool(
1, (boolean)((java.lang.Boolean) literalType_));
}
if (literalTypeCase_ == 2) {
output.writeInt32(
2, (int)((java.lang.Integer) literalType_));
}
if (literalTypeCase_ == 3) {
output.writeInt32(
3, (int)((java.lang.Integer) literalType_));
}
if (literalTypeCase_ == 5) {
output.writeInt32(
5, (int)((java.lang.Integer) literalType_));
}
if (literalTypeCase_ == 7) {
output.writeInt64(
7, (long)((java.lang.Long) literalType_));
}
if (literalTypeCase_ == 10) {
output.writeFloat(
10, (float)((java.lang.Float) literalType_));
}
if (literalTypeCase_ == 11) {
output.writeDouble(
11, (double)((java.lang.Double) literalType_));
}
if (literalTypeCase_ == 12) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, literalType_);
}
if (literalTypeCase_ == 13) {
output.writeBytes(
13, (com.google.protobuf.ByteString) literalType_);
}
if (literalTypeCase_ == 14) {
output.writeInt64(
14, (long)((java.lang.Long) literalType_));
}
if (literalTypeCase_ == 16) {
output.writeInt32(
16, (int)((java.lang.Integer) literalType_));
}
if (literalTypeCase_ == 17) {
output.writeInt64(
17, (long)((java.lang.Long) literalType_));
}
if (literalTypeCase_ == 19) {
output.writeMessage(19, (io.substrait.proto.Expression.Literal.IntervalYearToMonth) literalType_);
}
if (literalTypeCase_ == 20) {
output.writeMessage(20, (io.substrait.proto.Expression.Literal.IntervalDayToSecond) literalType_);
}
if (literalTypeCase_ == 21) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 21, literalType_);
}
if (literalTypeCase_ == 22) {
output.writeMessage(22, (io.substrait.proto.Expression.Literal.VarChar) literalType_);
}
if (literalTypeCase_ == 23) {
output.writeBytes(
23, (com.google.protobuf.ByteString) literalType_);
}
if (literalTypeCase_ == 24) {
output.writeMessage(24, (io.substrait.proto.Expression.Literal.Decimal) literalType_);
}
if (literalTypeCase_ == 25) {
output.writeMessage(25, (io.substrait.proto.Expression.Literal.Struct) literalType_);
}
if (literalTypeCase_ == 26) {
output.writeMessage(26, (io.substrait.proto.Expression.Literal.Map) literalType_);
}
if (literalTypeCase_ == 27) {
output.writeInt64(
27, (long)((java.lang.Long) literalType_));
}
if (literalTypeCase_ == 28) {
output.writeBytes(
28, (com.google.protobuf.ByteString) literalType_);
}
if (literalTypeCase_ == 29) {
output.writeMessage(29, (io.substrait.proto.Type) literalType_);
}
if (literalTypeCase_ == 30) {
output.writeMessage(30, (io.substrait.proto.Expression.Literal.List) literalType_);
}
if (literalTypeCase_ == 31) {
output.writeMessage(31, (io.substrait.proto.Type.List) literalType_);
}
if (literalTypeCase_ == 32) {
output.writeMessage(32, (io.substrait.proto.Type.Map) literalType_);
}
if (literalTypeCase_ == 33) {
output.writeMessage(33, (io.substrait.proto.Expression.Literal.UserDefined) literalType_);
}
if (literalTypeCase_ == 34) {
output.writeMessage(34, (io.substrait.proto.Expression.Literal.PrecisionTimestamp) literalType_);
}
if (literalTypeCase_ == 35) {
output.writeMessage(35, (io.substrait.proto.Expression.Literal.PrecisionTimestamp) literalType_);
}
if (literalTypeCase_ == 36) {
output.writeMessage(36, (io.substrait.proto.Expression.Literal.IntervalCompound) literalType_);
}
if (nullable_ != false) {
output.writeBool(50, nullable_);
}
if (typeVariationReference_ != 0) {
output.writeUInt32(51, typeVariationReference_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (literalTypeCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
1, (boolean)((java.lang.Boolean) literalType_));
}
if (literalTypeCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
2, (int)((java.lang.Integer) literalType_));
}
if (literalTypeCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
3, (int)((java.lang.Integer) literalType_));
}
if (literalTypeCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
5, (int)((java.lang.Integer) literalType_));
}
if (literalTypeCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(
7, (long)((java.lang.Long) literalType_));
}
if (literalTypeCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(
10, (float)((java.lang.Float) literalType_));
}
if (literalTypeCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(
11, (double)((java.lang.Double) literalType_));
}
if (literalTypeCase_ == 12) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, literalType_);
}
if (literalTypeCase_ == 13) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(
13, (com.google.protobuf.ByteString) literalType_);
}
if (literalTypeCase_ == 14) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(
14, (long)((java.lang.Long) literalType_));
}
if (literalTypeCase_ == 16) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
16, (int)((java.lang.Integer) literalType_));
}
if (literalTypeCase_ == 17) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(
17, (long)((java.lang.Long) literalType_));
}
if (literalTypeCase_ == 19) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, (io.substrait.proto.Expression.Literal.IntervalYearToMonth) literalType_);
}
if (literalTypeCase_ == 20) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(20, (io.substrait.proto.Expression.Literal.IntervalDayToSecond) literalType_);
}
if (literalTypeCase_ == 21) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, literalType_);
}
if (literalTypeCase_ == 22) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(22, (io.substrait.proto.Expression.Literal.VarChar) literalType_);
}
if (literalTypeCase_ == 23) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(
23, (com.google.protobuf.ByteString) literalType_);
}
if (literalTypeCase_ == 24) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(24, (io.substrait.proto.Expression.Literal.Decimal) literalType_);
}
if (literalTypeCase_ == 25) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(25, (io.substrait.proto.Expression.Literal.Struct) literalType_);
}
if (literalTypeCase_ == 26) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(26, (io.substrait.proto.Expression.Literal.Map) literalType_);
}
if (literalTypeCase_ == 27) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(
27, (long)((java.lang.Long) literalType_));
}
if (literalTypeCase_ == 28) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(
28, (com.google.protobuf.ByteString) literalType_);
}
if (literalTypeCase_ == 29) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(29, (io.substrait.proto.Type) literalType_);
}
if (literalTypeCase_ == 30) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(30, (io.substrait.proto.Expression.Literal.List) literalType_);
}
if (literalTypeCase_ == 31) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(31, (io.substrait.proto.Type.List) literalType_);
}
if (literalTypeCase_ == 32) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(32, (io.substrait.proto.Type.Map) literalType_);
}
if (literalTypeCase_ == 33) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(33, (io.substrait.proto.Expression.Literal.UserDefined) literalType_);
}
if (literalTypeCase_ == 34) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(34, (io.substrait.proto.Expression.Literal.PrecisionTimestamp) literalType_);
}
if (literalTypeCase_ == 35) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(35, (io.substrait.proto.Expression.Literal.PrecisionTimestamp) literalType_);
}
if (literalTypeCase_ == 36) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(36, (io.substrait.proto.Expression.Literal.IntervalCompound) literalType_);
}
if (nullable_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(50, nullable_);
}
if (typeVariationReference_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(51, typeVariationReference_);
}
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 io.substrait.proto.Expression.Literal)) {
return super.equals(obj);
}
io.substrait.proto.Expression.Literal other = (io.substrait.proto.Expression.Literal) obj;
if (getNullable()
!= other.getNullable()) return false;
if (getTypeVariationReference()
!= other.getTypeVariationReference()) return false;
if (!getLiteralTypeCase().equals(other.getLiteralTypeCase())) return false;
switch (literalTypeCase_) {
case 1:
if (getBoolean()
!= other.getBoolean()) return false;
break;
case 2:
if (getI8()
!= other.getI8()) return false;
break;
case 3:
if (getI16()
!= other.getI16()) return false;
break;
case 5:
if (getI32()
!= other.getI32()) return false;
break;
case 7:
if (getI64()
!= other.getI64()) return false;
break;
case 10:
if (java.lang.Float.floatToIntBits(getFp32())
!= java.lang.Float.floatToIntBits(
other.getFp32())) return false;
break;
case 11:
if (java.lang.Double.doubleToLongBits(getFp64())
!= java.lang.Double.doubleToLongBits(
other.getFp64())) return false;
break;
case 12:
if (!getString()
.equals(other.getString())) return false;
break;
case 13:
if (!getBinary()
.equals(other.getBinary())) return false;
break;
case 14:
if (getTimestamp()
!= other.getTimestamp()) return false;
break;
case 16:
if (getDate()
!= other.getDate()) return false;
break;
case 17:
if (getTime()
!= other.getTime()) return false;
break;
case 19:
if (!getIntervalYearToMonth()
.equals(other.getIntervalYearToMonth())) return false;
break;
case 20:
if (!getIntervalDayToSecond()
.equals(other.getIntervalDayToSecond())) return false;
break;
case 36:
if (!getIntervalCompound()
.equals(other.getIntervalCompound())) return false;
break;
case 21:
if (!getFixedChar()
.equals(other.getFixedChar())) return false;
break;
case 22:
if (!getVarChar()
.equals(other.getVarChar())) return false;
break;
case 23:
if (!getFixedBinary()
.equals(other.getFixedBinary())) return false;
break;
case 24:
if (!getDecimal()
.equals(other.getDecimal())) return false;
break;
case 34:
if (!getPrecisionTimestamp()
.equals(other.getPrecisionTimestamp())) return false;
break;
case 35:
if (!getPrecisionTimestampTz()
.equals(other.getPrecisionTimestampTz())) return false;
break;
case 25:
if (!getStruct()
.equals(other.getStruct())) return false;
break;
case 26:
if (!getMap()
.equals(other.getMap())) return false;
break;
case 27:
if (getTimestampTz()
!= other.getTimestampTz()) return false;
break;
case 28:
if (!getUuid()
.equals(other.getUuid())) return false;
break;
case 29:
if (!getNull()
.equals(other.getNull())) return false;
break;
case 30:
if (!getList()
.equals(other.getList())) return false;
break;
case 31:
if (!getEmptyList()
.equals(other.getEmptyList())) return false;
break;
case 32:
if (!getEmptyMap()
.equals(other.getEmptyMap())) return false;
break;
case 33:
if (!getUserDefined()
.equals(other.getUserDefined())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NULLABLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getNullable());
hash = (37 * hash) + TYPE_VARIATION_REFERENCE_FIELD_NUMBER;
hash = (53 * hash) + getTypeVariationReference();
switch (literalTypeCase_) {
case 1:
hash = (37 * hash) + BOOLEAN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getBoolean());
break;
case 2:
hash = (37 * hash) + I8_FIELD_NUMBER;
hash = (53 * hash) + getI8();
break;
case 3:
hash = (37 * hash) + I16_FIELD_NUMBER;
hash = (53 * hash) + getI16();
break;
case 5:
hash = (37 * hash) + I32_FIELD_NUMBER;
hash = (53 * hash) + getI32();
break;
case 7:
hash = (37 * hash) + I64_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getI64());
break;
case 10:
hash = (37 * hash) + FP32_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getFp32());
break;
case 11:
hash = (37 * hash) + FP64_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getFp64()));
break;
case 12:
hash = (37 * hash) + STRING_FIELD_NUMBER;
hash = (53 * hash) + getString().hashCode();
break;
case 13:
hash = (37 * hash) + BINARY_FIELD_NUMBER;
hash = (53 * hash) + getBinary().hashCode();
break;
case 14:
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimestamp());
break;
case 16:
hash = (37 * hash) + DATE_FIELD_NUMBER;
hash = (53 * hash) + getDate();
break;
case 17:
hash = (37 * hash) + TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTime());
break;
case 19:
hash = (37 * hash) + INTERVAL_YEAR_TO_MONTH_FIELD_NUMBER;
hash = (53 * hash) + getIntervalYearToMonth().hashCode();
break;
case 20:
hash = (37 * hash) + INTERVAL_DAY_TO_SECOND_FIELD_NUMBER;
hash = (53 * hash) + getIntervalDayToSecond().hashCode();
break;
case 36:
hash = (37 * hash) + INTERVAL_COMPOUND_FIELD_NUMBER;
hash = (53 * hash) + getIntervalCompound().hashCode();
break;
case 21:
hash = (37 * hash) + FIXED_CHAR_FIELD_NUMBER;
hash = (53 * hash) + getFixedChar().hashCode();
break;
case 22:
hash = (37 * hash) + VAR_CHAR_FIELD_NUMBER;
hash = (53 * hash) + getVarChar().hashCode();
break;
case 23:
hash = (37 * hash) + FIXED_BINARY_FIELD_NUMBER;
hash = (53 * hash) + getFixedBinary().hashCode();
break;
case 24:
hash = (37 * hash) + DECIMAL_FIELD_NUMBER;
hash = (53 * hash) + getDecimal().hashCode();
break;
case 34:
hash = (37 * hash) + PRECISION_TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getPrecisionTimestamp().hashCode();
break;
case 35:
hash = (37 * hash) + PRECISION_TIMESTAMP_TZ_FIELD_NUMBER;
hash = (53 * hash) + getPrecisionTimestampTz().hashCode();
break;
case 25:
hash = (37 * hash) + STRUCT_FIELD_NUMBER;
hash = (53 * hash) + getStruct().hashCode();
break;
case 26:
hash = (37 * hash) + MAP_FIELD_NUMBER;
hash = (53 * hash) + getMap().hashCode();
break;
case 27:
hash = (37 * hash) + TIMESTAMP_TZ_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimestampTz());
break;
case 28:
hash = (37 * hash) + UUID_FIELD_NUMBER;
hash = (53 * hash) + getUuid().hashCode();
break;
case 29:
hash = (37 * hash) + NULL_FIELD_NUMBER;
hash = (53 * hash) + getNull().hashCode();
break;
case 30:
hash = (37 * hash) + LIST_FIELD_NUMBER;
hash = (53 * hash) + getList().hashCode();
break;
case 31:
hash = (37 * hash) + EMPTY_LIST_FIELD_NUMBER;
hash = (53 * hash) + getEmptyList().hashCode();
break;
case 32:
hash = (37 * hash) + EMPTY_MAP_FIELD_NUMBER;
hash = (53 * hash) + getEmptyMap().hashCode();
break;
case 33:
hash = (37 * hash) + USER_DEFINED_FIELD_NUMBER;
hash = (53 * hash) + getUserDefined().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.Expression.Literal parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Literal parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Literal parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal 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 io.substrait.proto.Expression.Literal parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal 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 io.substrait.proto.Expression.Literal parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Literal 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(io.substrait.proto.Expression.Literal 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 substrait.Expression.Literal}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Expression.Literal)
io.substrait.proto.Expression.LiteralOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Literal.class, io.substrait.proto.Expression.Literal.Builder.class);
}
// Construct using io.substrait.proto.Expression.Literal.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (intervalYearToMonthBuilder_ != null) {
intervalYearToMonthBuilder_.clear();
}
if (intervalDayToSecondBuilder_ != null) {
intervalDayToSecondBuilder_.clear();
}
if (intervalCompoundBuilder_ != null) {
intervalCompoundBuilder_.clear();
}
if (varCharBuilder_ != null) {
varCharBuilder_.clear();
}
if (decimalBuilder_ != null) {
decimalBuilder_.clear();
}
if (precisionTimestampBuilder_ != null) {
precisionTimestampBuilder_.clear();
}
if (precisionTimestampTzBuilder_ != null) {
precisionTimestampTzBuilder_.clear();
}
if (structBuilder_ != null) {
structBuilder_.clear();
}
if (mapBuilder_ != null) {
mapBuilder_.clear();
}
if (nullBuilder_ != null) {
nullBuilder_.clear();
}
if (listBuilder_ != null) {
listBuilder_.clear();
}
if (emptyListBuilder_ != null) {
emptyListBuilder_.clear();
}
if (emptyMapBuilder_ != null) {
emptyMapBuilder_.clear();
}
if (userDefinedBuilder_ != null) {
userDefinedBuilder_.clear();
}
nullable_ = false;
typeVariationReference_ = 0;
literalTypeCase_ = 0;
literalType_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Literal_descriptor;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal getDefaultInstanceForType() {
return io.substrait.proto.Expression.Literal.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Expression.Literal build() {
io.substrait.proto.Expression.Literal result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal buildPartial() {
io.substrait.proto.Expression.Literal result = new io.substrait.proto.Expression.Literal(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.Expression.Literal result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x40000000) != 0)) {
result.nullable_ = nullable_;
}
if (((from_bitField0_ & 0x80000000) != 0)) {
result.typeVariationReference_ = typeVariationReference_;
}
}
private void buildPartialOneofs(io.substrait.proto.Expression.Literal result) {
result.literalTypeCase_ = literalTypeCase_;
result.literalType_ = this.literalType_;
if (literalTypeCase_ == 19 &&
intervalYearToMonthBuilder_ != null) {
result.literalType_ = intervalYearToMonthBuilder_.build();
}
if (literalTypeCase_ == 20 &&
intervalDayToSecondBuilder_ != null) {
result.literalType_ = intervalDayToSecondBuilder_.build();
}
if (literalTypeCase_ == 36 &&
intervalCompoundBuilder_ != null) {
result.literalType_ = intervalCompoundBuilder_.build();
}
if (literalTypeCase_ == 22 &&
varCharBuilder_ != null) {
result.literalType_ = varCharBuilder_.build();
}
if (literalTypeCase_ == 24 &&
decimalBuilder_ != null) {
result.literalType_ = decimalBuilder_.build();
}
if (literalTypeCase_ == 34 &&
precisionTimestampBuilder_ != null) {
result.literalType_ = precisionTimestampBuilder_.build();
}
if (literalTypeCase_ == 35 &&
precisionTimestampTzBuilder_ != null) {
result.literalType_ = precisionTimestampTzBuilder_.build();
}
if (literalTypeCase_ == 25 &&
structBuilder_ != null) {
result.literalType_ = structBuilder_.build();
}
if (literalTypeCase_ == 26 &&
mapBuilder_ != null) {
result.literalType_ = mapBuilder_.build();
}
if (literalTypeCase_ == 29 &&
nullBuilder_ != null) {
result.literalType_ = nullBuilder_.build();
}
if (literalTypeCase_ == 30 &&
listBuilder_ != null) {
result.literalType_ = listBuilder_.build();
}
if (literalTypeCase_ == 31 &&
emptyListBuilder_ != null) {
result.literalType_ = emptyListBuilder_.build();
}
if (literalTypeCase_ == 32 &&
emptyMapBuilder_ != null) {
result.literalType_ = emptyMapBuilder_.build();
}
if (literalTypeCase_ == 33 &&
userDefinedBuilder_ != null) {
result.literalType_ = userDefinedBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.substrait.proto.Expression.Literal) {
return mergeFrom((io.substrait.proto.Expression.Literal)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Expression.Literal other) {
if (other == io.substrait.proto.Expression.Literal.getDefaultInstance()) return this;
if (other.getNullable() != false) {
setNullable(other.getNullable());
}
if (other.getTypeVariationReference() != 0) {
setTypeVariationReference(other.getTypeVariationReference());
}
switch (other.getLiteralTypeCase()) {
case BOOLEAN: {
setBoolean(other.getBoolean());
break;
}
case I8: {
setI8(other.getI8());
break;
}
case I16: {
setI16(other.getI16());
break;
}
case I32: {
setI32(other.getI32());
break;
}
case I64: {
setI64(other.getI64());
break;
}
case FP32: {
setFp32(other.getFp32());
break;
}
case FP64: {
setFp64(other.getFp64());
break;
}
case STRING: {
literalTypeCase_ = 12;
literalType_ = other.literalType_;
onChanged();
break;
}
case BINARY: {
setBinary(other.getBinary());
break;
}
case TIMESTAMP: {
setTimestamp(other.getTimestamp());
break;
}
case DATE: {
setDate(other.getDate());
break;
}
case TIME: {
setTime(other.getTime());
break;
}
case INTERVAL_YEAR_TO_MONTH: {
mergeIntervalYearToMonth(other.getIntervalYearToMonth());
break;
}
case INTERVAL_DAY_TO_SECOND: {
mergeIntervalDayToSecond(other.getIntervalDayToSecond());
break;
}
case INTERVAL_COMPOUND: {
mergeIntervalCompound(other.getIntervalCompound());
break;
}
case FIXED_CHAR: {
literalTypeCase_ = 21;
literalType_ = other.literalType_;
onChanged();
break;
}
case VAR_CHAR: {
mergeVarChar(other.getVarChar());
break;
}
case FIXED_BINARY: {
setFixedBinary(other.getFixedBinary());
break;
}
case DECIMAL: {
mergeDecimal(other.getDecimal());
break;
}
case PRECISION_TIMESTAMP: {
mergePrecisionTimestamp(other.getPrecisionTimestamp());
break;
}
case PRECISION_TIMESTAMP_TZ: {
mergePrecisionTimestampTz(other.getPrecisionTimestampTz());
break;
}
case STRUCT: {
mergeStruct(other.getStruct());
break;
}
case MAP: {
mergeMap(other.getMap());
break;
}
case TIMESTAMP_TZ: {
setTimestampTz(other.getTimestampTz());
break;
}
case UUID: {
setUuid(other.getUuid());
break;
}
case NULL: {
mergeNull(other.getNull());
break;
}
case LIST: {
mergeList(other.getList());
break;
}
case EMPTY_LIST: {
mergeEmptyList(other.getEmptyList());
break;
}
case EMPTY_MAP: {
mergeEmptyMap(other.getEmptyMap());
break;
}
case USER_DEFINED: {
mergeUserDefined(other.getUserDefined());
break;
}
case LITERALTYPE_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
literalType_ = input.readBool();
literalTypeCase_ = 1;
break;
} // case 8
case 16: {
literalType_ = input.readInt32();
literalTypeCase_ = 2;
break;
} // case 16
case 24: {
literalType_ = input.readInt32();
literalTypeCase_ = 3;
break;
} // case 24
case 40: {
literalType_ = input.readInt32();
literalTypeCase_ = 5;
break;
} // case 40
case 56: {
literalType_ = input.readInt64();
literalTypeCase_ = 7;
break;
} // case 56
case 85: {
literalType_ = input.readFloat();
literalTypeCase_ = 10;
break;
} // case 85
case 89: {
literalType_ = input.readDouble();
literalTypeCase_ = 11;
break;
} // case 89
case 98: {
java.lang.String s = input.readStringRequireUtf8();
literalTypeCase_ = 12;
literalType_ = s;
break;
} // case 98
case 106: {
literalType_ = input.readBytes();
literalTypeCase_ = 13;
break;
} // case 106
case 112: {
literalType_ = input.readInt64();
literalTypeCase_ = 14;
break;
} // case 112
case 128: {
literalType_ = input.readInt32();
literalTypeCase_ = 16;
break;
} // case 128
case 136: {
literalType_ = input.readInt64();
literalTypeCase_ = 17;
break;
} // case 136
case 154: {
input.readMessage(
getIntervalYearToMonthFieldBuilder().getBuilder(),
extensionRegistry);
literalTypeCase_ = 19;
break;
} // case 154
case 162: {
input.readMessage(
getIntervalDayToSecondFieldBuilder().getBuilder(),
extensionRegistry);
literalTypeCase_ = 20;
break;
} // case 162
case 170: {
java.lang.String s = input.readStringRequireUtf8();
literalTypeCase_ = 21;
literalType_ = s;
break;
} // case 170
case 178: {
input.readMessage(
getVarCharFieldBuilder().getBuilder(),
extensionRegistry);
literalTypeCase_ = 22;
break;
} // case 178
case 186: {
literalType_ = input.readBytes();
literalTypeCase_ = 23;
break;
} // case 186
case 194: {
input.readMessage(
getDecimalFieldBuilder().getBuilder(),
extensionRegistry);
literalTypeCase_ = 24;
break;
} // case 194
case 202: {
input.readMessage(
getStructFieldBuilder().getBuilder(),
extensionRegistry);
literalTypeCase_ = 25;
break;
} // case 202
case 210: {
input.readMessage(
getMapFieldBuilder().getBuilder(),
extensionRegistry);
literalTypeCase_ = 26;
break;
} // case 210
case 216: {
literalType_ = input.readInt64();
literalTypeCase_ = 27;
break;
} // case 216
case 226: {
literalType_ = input.readBytes();
literalTypeCase_ = 28;
break;
} // case 226
case 234: {
input.readMessage(
getNullFieldBuilder().getBuilder(),
extensionRegistry);
literalTypeCase_ = 29;
break;
} // case 234
case 242: {
input.readMessage(
getListFieldBuilder().getBuilder(),
extensionRegistry);
literalTypeCase_ = 30;
break;
} // case 242
case 250: {
input.readMessage(
getEmptyListFieldBuilder().getBuilder(),
extensionRegistry);
literalTypeCase_ = 31;
break;
} // case 250
case 258: {
input.readMessage(
getEmptyMapFieldBuilder().getBuilder(),
extensionRegistry);
literalTypeCase_ = 32;
break;
} // case 258
case 266: {
input.readMessage(
getUserDefinedFieldBuilder().getBuilder(),
extensionRegistry);
literalTypeCase_ = 33;
break;
} // case 266
case 274: {
input.readMessage(
getPrecisionTimestampFieldBuilder().getBuilder(),
extensionRegistry);
literalTypeCase_ = 34;
break;
} // case 274
case 282: {
input.readMessage(
getPrecisionTimestampTzFieldBuilder().getBuilder(),
extensionRegistry);
literalTypeCase_ = 35;
break;
} // case 282
case 290: {
input.readMessage(
getIntervalCompoundFieldBuilder().getBuilder(),
extensionRegistry);
literalTypeCase_ = 36;
break;
} // case 290
case 400: {
nullable_ = input.readBool();
bitField0_ |= 0x40000000;
break;
} // case 400
case 408: {
typeVariationReference_ = input.readUInt32();
bitField0_ |= 0x80000000;
break;
} // case 408
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int literalTypeCase_ = 0;
private java.lang.Object literalType_;
public LiteralTypeCase
getLiteralTypeCase() {
return LiteralTypeCase.forNumber(
literalTypeCase_);
}
public Builder clearLiteralType() {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
return this;
}
private int bitField0_;
/**
* bool boolean = 1;
* @return Whether the boolean field is set.
*/
public boolean hasBoolean() {
return literalTypeCase_ == 1;
}
/**
* bool boolean = 1;
* @return The boolean.
*/
public boolean getBoolean() {
if (literalTypeCase_ == 1) {
return (java.lang.Boolean) literalType_;
}
return false;
}
/**
* bool boolean = 1;
* @param value The boolean to set.
* @return This builder for chaining.
*/
public Builder setBoolean(boolean value) {
literalTypeCase_ = 1;
literalType_ = value;
onChanged();
return this;
}
/**
* bool boolean = 1;
* @return This builder for chaining.
*/
public Builder clearBoolean() {
if (literalTypeCase_ == 1) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
return this;
}
/**
* int32 i8 = 2;
* @return Whether the i8 field is set.
*/
public boolean hasI8() {
return literalTypeCase_ == 2;
}
/**
* int32 i8 = 2;
* @return The i8.
*/
public int getI8() {
if (literalTypeCase_ == 2) {
return (java.lang.Integer) literalType_;
}
return 0;
}
/**
* int32 i8 = 2;
* @param value The i8 to set.
* @return This builder for chaining.
*/
public Builder setI8(int value) {
literalTypeCase_ = 2;
literalType_ = value;
onChanged();
return this;
}
/**
* int32 i8 = 2;
* @return This builder for chaining.
*/
public Builder clearI8() {
if (literalTypeCase_ == 2) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
return this;
}
/**
* int32 i16 = 3;
* @return Whether the i16 field is set.
*/
public boolean hasI16() {
return literalTypeCase_ == 3;
}
/**
* int32 i16 = 3;
* @return The i16.
*/
public int getI16() {
if (literalTypeCase_ == 3) {
return (java.lang.Integer) literalType_;
}
return 0;
}
/**
* int32 i16 = 3;
* @param value The i16 to set.
* @return This builder for chaining.
*/
public Builder setI16(int value) {
literalTypeCase_ = 3;
literalType_ = value;
onChanged();
return this;
}
/**
* int32 i16 = 3;
* @return This builder for chaining.
*/
public Builder clearI16() {
if (literalTypeCase_ == 3) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
return this;
}
/**
* int32 i32 = 5;
* @return Whether the i32 field is set.
*/
public boolean hasI32() {
return literalTypeCase_ == 5;
}
/**
* int32 i32 = 5;
* @return The i32.
*/
public int getI32() {
if (literalTypeCase_ == 5) {
return (java.lang.Integer) literalType_;
}
return 0;
}
/**
* int32 i32 = 5;
* @param value The i32 to set.
* @return This builder for chaining.
*/
public Builder setI32(int value) {
literalTypeCase_ = 5;
literalType_ = value;
onChanged();
return this;
}
/**
* int32 i32 = 5;
* @return This builder for chaining.
*/
public Builder clearI32() {
if (literalTypeCase_ == 5) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
return this;
}
/**
* int64 i64 = 7;
* @return Whether the i64 field is set.
*/
public boolean hasI64() {
return literalTypeCase_ == 7;
}
/**
* int64 i64 = 7;
* @return The i64.
*/
public long getI64() {
if (literalTypeCase_ == 7) {
return (java.lang.Long) literalType_;
}
return 0L;
}
/**
* int64 i64 = 7;
* @param value The i64 to set.
* @return This builder for chaining.
*/
public Builder setI64(long value) {
literalTypeCase_ = 7;
literalType_ = value;
onChanged();
return this;
}
/**
* int64 i64 = 7;
* @return This builder for chaining.
*/
public Builder clearI64() {
if (literalTypeCase_ == 7) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
return this;
}
/**
* float fp32 = 10;
* @return Whether the fp32 field is set.
*/
public boolean hasFp32() {
return literalTypeCase_ == 10;
}
/**
* float fp32 = 10;
* @return The fp32.
*/
public float getFp32() {
if (literalTypeCase_ == 10) {
return (java.lang.Float) literalType_;
}
return 0F;
}
/**
* float fp32 = 10;
* @param value The fp32 to set.
* @return This builder for chaining.
*/
public Builder setFp32(float value) {
literalTypeCase_ = 10;
literalType_ = value;
onChanged();
return this;
}
/**
* float fp32 = 10;
* @return This builder for chaining.
*/
public Builder clearFp32() {
if (literalTypeCase_ == 10) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
return this;
}
/**
* double fp64 = 11;
* @return Whether the fp64 field is set.
*/
public boolean hasFp64() {
return literalTypeCase_ == 11;
}
/**
* double fp64 = 11;
* @return The fp64.
*/
public double getFp64() {
if (literalTypeCase_ == 11) {
return (java.lang.Double) literalType_;
}
return 0D;
}
/**
* double fp64 = 11;
* @param value The fp64 to set.
* @return This builder for chaining.
*/
public Builder setFp64(double value) {
literalTypeCase_ = 11;
literalType_ = value;
onChanged();
return this;
}
/**
* double fp64 = 11;
* @return This builder for chaining.
*/
public Builder clearFp64() {
if (literalTypeCase_ == 11) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
return this;
}
/**
* string string = 12;
* @return Whether the string field is set.
*/
@java.lang.Override
public boolean hasString() {
return literalTypeCase_ == 12;
}
/**
* string string = 12;
* @return The string.
*/
@java.lang.Override
public java.lang.String getString() {
java.lang.Object ref = "";
if (literalTypeCase_ == 12) {
ref = literalType_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (literalTypeCase_ == 12) {
literalType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string string = 12;
* @return The bytes for string.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStringBytes() {
java.lang.Object ref = "";
if (literalTypeCase_ == 12) {
ref = literalType_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (literalTypeCase_ == 12) {
literalType_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string string = 12;
* @param value The string to set.
* @return This builder for chaining.
*/
public Builder setString(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
literalTypeCase_ = 12;
literalType_ = value;
onChanged();
return this;
}
/**
* string string = 12;
* @return This builder for chaining.
*/
public Builder clearString() {
if (literalTypeCase_ == 12) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
return this;
}
/**
* string string = 12;
* @param value The bytes for string to set.
* @return This builder for chaining.
*/
public Builder setStringBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
literalTypeCase_ = 12;
literalType_ = value;
onChanged();
return this;
}
/**
* bytes binary = 13;
* @return Whether the binary field is set.
*/
public boolean hasBinary() {
return literalTypeCase_ == 13;
}
/**
* bytes binary = 13;
* @return The binary.
*/
public com.google.protobuf.ByteString getBinary() {
if (literalTypeCase_ == 13) {
return (com.google.protobuf.ByteString) literalType_;
}
return com.google.protobuf.ByteString.EMPTY;
}
/**
* bytes binary = 13;
* @param value The binary to set.
* @return This builder for chaining.
*/
public Builder setBinary(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
literalTypeCase_ = 13;
literalType_ = value;
onChanged();
return this;
}
/**
* bytes binary = 13;
* @return This builder for chaining.
*/
public Builder clearBinary() {
if (literalTypeCase_ == 13) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
return this;
}
/**
*
* Timestamp in units of microseconds since the UNIX epoch.
* Deprecated in favor of `precision_timestamp`
*
*
* int64 timestamp = 14 [deprecated = true];
* @deprecated substrait.Expression.Literal.timestamp is deprecated.
* See substrait/algebra.proto;l=864
* @return Whether the timestamp field is set.
*/
@java.lang.Deprecated public boolean hasTimestamp() {
return literalTypeCase_ == 14;
}
/**
*
* Timestamp in units of microseconds since the UNIX epoch.
* Deprecated in favor of `precision_timestamp`
*
*
* int64 timestamp = 14 [deprecated = true];
* @deprecated substrait.Expression.Literal.timestamp is deprecated.
* See substrait/algebra.proto;l=864
* @return The timestamp.
*/
@java.lang.Deprecated public long getTimestamp() {
if (literalTypeCase_ == 14) {
return (java.lang.Long) literalType_;
}
return 0L;
}
/**
*
* Timestamp in units of microseconds since the UNIX epoch.
* Deprecated in favor of `precision_timestamp`
*
*
* int64 timestamp = 14 [deprecated = true];
* @deprecated substrait.Expression.Literal.timestamp is deprecated.
* See substrait/algebra.proto;l=864
* @param value The timestamp to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setTimestamp(long value) {
literalTypeCase_ = 14;
literalType_ = value;
onChanged();
return this;
}
/**
*
* Timestamp in units of microseconds since the UNIX epoch.
* Deprecated in favor of `precision_timestamp`
*
*
* int64 timestamp = 14 [deprecated = true];
* @deprecated substrait.Expression.Literal.timestamp is deprecated.
* See substrait/algebra.proto;l=864
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearTimestamp() {
if (literalTypeCase_ == 14) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
return this;
}
/**
*
* Date in units of days since the UNIX epoch.
*
*
* int32 date = 16;
* @return Whether the date field is set.
*/
public boolean hasDate() {
return literalTypeCase_ == 16;
}
/**
*
* Date in units of days since the UNIX epoch.
*
*
* int32 date = 16;
* @return The date.
*/
public int getDate() {
if (literalTypeCase_ == 16) {
return (java.lang.Integer) literalType_;
}
return 0;
}
/**
*
* Date in units of days since the UNIX epoch.
*
*
* int32 date = 16;
* @param value The date to set.
* @return This builder for chaining.
*/
public Builder setDate(int value) {
literalTypeCase_ = 16;
literalType_ = value;
onChanged();
return this;
}
/**
*
* Date in units of days since the UNIX epoch.
*
*
* int32 date = 16;
* @return This builder for chaining.
*/
public Builder clearDate() {
if (literalTypeCase_ == 16) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
return this;
}
/**
*
* Time in units of microseconds past midnight
*
*
* int64 time = 17;
* @return Whether the time field is set.
*/
public boolean hasTime() {
return literalTypeCase_ == 17;
}
/**
*
* Time in units of microseconds past midnight
*
*
* int64 time = 17;
* @return The time.
*/
public long getTime() {
if (literalTypeCase_ == 17) {
return (java.lang.Long) literalType_;
}
return 0L;
}
/**
*
* Time in units of microseconds past midnight
*
*
* int64 time = 17;
* @param value The time to set.
* @return This builder for chaining.
*/
public Builder setTime(long value) {
literalTypeCase_ = 17;
literalType_ = value;
onChanged();
return this;
}
/**
*
* Time in units of microseconds past midnight
*
*
* int64 time = 17;
* @return This builder for chaining.
*/
public Builder clearTime() {
if (literalTypeCase_ == 17) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.IntervalYearToMonth, io.substrait.proto.Expression.Literal.IntervalYearToMonth.Builder, io.substrait.proto.Expression.Literal.IntervalYearToMonthOrBuilder> intervalYearToMonthBuilder_;
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 19;
* @return Whether the intervalYearToMonth field is set.
*/
@java.lang.Override
public boolean hasIntervalYearToMonth() {
return literalTypeCase_ == 19;
}
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 19;
* @return The intervalYearToMonth.
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.IntervalYearToMonth getIntervalYearToMonth() {
if (intervalYearToMonthBuilder_ == null) {
if (literalTypeCase_ == 19) {
return (io.substrait.proto.Expression.Literal.IntervalYearToMonth) literalType_;
}
return io.substrait.proto.Expression.Literal.IntervalYearToMonth.getDefaultInstance();
} else {
if (literalTypeCase_ == 19) {
return intervalYearToMonthBuilder_.getMessage();
}
return io.substrait.proto.Expression.Literal.IntervalYearToMonth.getDefaultInstance();
}
}
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 19;
*/
public Builder setIntervalYearToMonth(io.substrait.proto.Expression.Literal.IntervalYearToMonth value) {
if (intervalYearToMonthBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
literalType_ = value;
onChanged();
} else {
intervalYearToMonthBuilder_.setMessage(value);
}
literalTypeCase_ = 19;
return this;
}
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 19;
*/
public Builder setIntervalYearToMonth(
io.substrait.proto.Expression.Literal.IntervalYearToMonth.Builder builderForValue) {
if (intervalYearToMonthBuilder_ == null) {
literalType_ = builderForValue.build();
onChanged();
} else {
intervalYearToMonthBuilder_.setMessage(builderForValue.build());
}
literalTypeCase_ = 19;
return this;
}
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 19;
*/
public Builder mergeIntervalYearToMonth(io.substrait.proto.Expression.Literal.IntervalYearToMonth value) {
if (intervalYearToMonthBuilder_ == null) {
if (literalTypeCase_ == 19 &&
literalType_ != io.substrait.proto.Expression.Literal.IntervalYearToMonth.getDefaultInstance()) {
literalType_ = io.substrait.proto.Expression.Literal.IntervalYearToMonth.newBuilder((io.substrait.proto.Expression.Literal.IntervalYearToMonth) literalType_)
.mergeFrom(value).buildPartial();
} else {
literalType_ = value;
}
onChanged();
} else {
if (literalTypeCase_ == 19) {
intervalYearToMonthBuilder_.mergeFrom(value);
} else {
intervalYearToMonthBuilder_.setMessage(value);
}
}
literalTypeCase_ = 19;
return this;
}
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 19;
*/
public Builder clearIntervalYearToMonth() {
if (intervalYearToMonthBuilder_ == null) {
if (literalTypeCase_ == 19) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
} else {
if (literalTypeCase_ == 19) {
literalTypeCase_ = 0;
literalType_ = null;
}
intervalYearToMonthBuilder_.clear();
}
return this;
}
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 19;
*/
public io.substrait.proto.Expression.Literal.IntervalYearToMonth.Builder getIntervalYearToMonthBuilder() {
return getIntervalYearToMonthFieldBuilder().getBuilder();
}
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 19;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.IntervalYearToMonthOrBuilder getIntervalYearToMonthOrBuilder() {
if ((literalTypeCase_ == 19) && (intervalYearToMonthBuilder_ != null)) {
return intervalYearToMonthBuilder_.getMessageOrBuilder();
} else {
if (literalTypeCase_ == 19) {
return (io.substrait.proto.Expression.Literal.IntervalYearToMonth) literalType_;
}
return io.substrait.proto.Expression.Literal.IntervalYearToMonth.getDefaultInstance();
}
}
/**
* .substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 19;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.IntervalYearToMonth, io.substrait.proto.Expression.Literal.IntervalYearToMonth.Builder, io.substrait.proto.Expression.Literal.IntervalYearToMonthOrBuilder>
getIntervalYearToMonthFieldBuilder() {
if (intervalYearToMonthBuilder_ == null) {
if (!(literalTypeCase_ == 19)) {
literalType_ = io.substrait.proto.Expression.Literal.IntervalYearToMonth.getDefaultInstance();
}
intervalYearToMonthBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.IntervalYearToMonth, io.substrait.proto.Expression.Literal.IntervalYearToMonth.Builder, io.substrait.proto.Expression.Literal.IntervalYearToMonthOrBuilder>(
(io.substrait.proto.Expression.Literal.IntervalYearToMonth) literalType_,
getParentForChildren(),
isClean());
literalType_ = null;
}
literalTypeCase_ = 19;
onChanged();
return intervalYearToMonthBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.IntervalDayToSecond, io.substrait.proto.Expression.Literal.IntervalDayToSecond.Builder, io.substrait.proto.Expression.Literal.IntervalDayToSecondOrBuilder> intervalDayToSecondBuilder_;
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 20;
* @return Whether the intervalDayToSecond field is set.
*/
@java.lang.Override
public boolean hasIntervalDayToSecond() {
return literalTypeCase_ == 20;
}
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 20;
* @return The intervalDayToSecond.
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.IntervalDayToSecond getIntervalDayToSecond() {
if (intervalDayToSecondBuilder_ == null) {
if (literalTypeCase_ == 20) {
return (io.substrait.proto.Expression.Literal.IntervalDayToSecond) literalType_;
}
return io.substrait.proto.Expression.Literal.IntervalDayToSecond.getDefaultInstance();
} else {
if (literalTypeCase_ == 20) {
return intervalDayToSecondBuilder_.getMessage();
}
return io.substrait.proto.Expression.Literal.IntervalDayToSecond.getDefaultInstance();
}
}
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 20;
*/
public Builder setIntervalDayToSecond(io.substrait.proto.Expression.Literal.IntervalDayToSecond value) {
if (intervalDayToSecondBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
literalType_ = value;
onChanged();
} else {
intervalDayToSecondBuilder_.setMessage(value);
}
literalTypeCase_ = 20;
return this;
}
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 20;
*/
public Builder setIntervalDayToSecond(
io.substrait.proto.Expression.Literal.IntervalDayToSecond.Builder builderForValue) {
if (intervalDayToSecondBuilder_ == null) {
literalType_ = builderForValue.build();
onChanged();
} else {
intervalDayToSecondBuilder_.setMessage(builderForValue.build());
}
literalTypeCase_ = 20;
return this;
}
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 20;
*/
public Builder mergeIntervalDayToSecond(io.substrait.proto.Expression.Literal.IntervalDayToSecond value) {
if (intervalDayToSecondBuilder_ == null) {
if (literalTypeCase_ == 20 &&
literalType_ != io.substrait.proto.Expression.Literal.IntervalDayToSecond.getDefaultInstance()) {
literalType_ = io.substrait.proto.Expression.Literal.IntervalDayToSecond.newBuilder((io.substrait.proto.Expression.Literal.IntervalDayToSecond) literalType_)
.mergeFrom(value).buildPartial();
} else {
literalType_ = value;
}
onChanged();
} else {
if (literalTypeCase_ == 20) {
intervalDayToSecondBuilder_.mergeFrom(value);
} else {
intervalDayToSecondBuilder_.setMessage(value);
}
}
literalTypeCase_ = 20;
return this;
}
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 20;
*/
public Builder clearIntervalDayToSecond() {
if (intervalDayToSecondBuilder_ == null) {
if (literalTypeCase_ == 20) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
} else {
if (literalTypeCase_ == 20) {
literalTypeCase_ = 0;
literalType_ = null;
}
intervalDayToSecondBuilder_.clear();
}
return this;
}
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 20;
*/
public io.substrait.proto.Expression.Literal.IntervalDayToSecond.Builder getIntervalDayToSecondBuilder() {
return getIntervalDayToSecondFieldBuilder().getBuilder();
}
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 20;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.IntervalDayToSecondOrBuilder getIntervalDayToSecondOrBuilder() {
if ((literalTypeCase_ == 20) && (intervalDayToSecondBuilder_ != null)) {
return intervalDayToSecondBuilder_.getMessageOrBuilder();
} else {
if (literalTypeCase_ == 20) {
return (io.substrait.proto.Expression.Literal.IntervalDayToSecond) literalType_;
}
return io.substrait.proto.Expression.Literal.IntervalDayToSecond.getDefaultInstance();
}
}
/**
* .substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 20;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.IntervalDayToSecond, io.substrait.proto.Expression.Literal.IntervalDayToSecond.Builder, io.substrait.proto.Expression.Literal.IntervalDayToSecondOrBuilder>
getIntervalDayToSecondFieldBuilder() {
if (intervalDayToSecondBuilder_ == null) {
if (!(literalTypeCase_ == 20)) {
literalType_ = io.substrait.proto.Expression.Literal.IntervalDayToSecond.getDefaultInstance();
}
intervalDayToSecondBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.IntervalDayToSecond, io.substrait.proto.Expression.Literal.IntervalDayToSecond.Builder, io.substrait.proto.Expression.Literal.IntervalDayToSecondOrBuilder>(
(io.substrait.proto.Expression.Literal.IntervalDayToSecond) literalType_,
getParentForChildren(),
isClean());
literalType_ = null;
}
literalTypeCase_ = 20;
onChanged();
return intervalDayToSecondBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.IntervalCompound, io.substrait.proto.Expression.Literal.IntervalCompound.Builder, io.substrait.proto.Expression.Literal.IntervalCompoundOrBuilder> intervalCompoundBuilder_;
/**
* .substrait.Expression.Literal.IntervalCompound interval_compound = 36;
* @return Whether the intervalCompound field is set.
*/
@java.lang.Override
public boolean hasIntervalCompound() {
return literalTypeCase_ == 36;
}
/**
* .substrait.Expression.Literal.IntervalCompound interval_compound = 36;
* @return The intervalCompound.
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.IntervalCompound getIntervalCompound() {
if (intervalCompoundBuilder_ == null) {
if (literalTypeCase_ == 36) {
return (io.substrait.proto.Expression.Literal.IntervalCompound) literalType_;
}
return io.substrait.proto.Expression.Literal.IntervalCompound.getDefaultInstance();
} else {
if (literalTypeCase_ == 36) {
return intervalCompoundBuilder_.getMessage();
}
return io.substrait.proto.Expression.Literal.IntervalCompound.getDefaultInstance();
}
}
/**
* .substrait.Expression.Literal.IntervalCompound interval_compound = 36;
*/
public Builder setIntervalCompound(io.substrait.proto.Expression.Literal.IntervalCompound value) {
if (intervalCompoundBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
literalType_ = value;
onChanged();
} else {
intervalCompoundBuilder_.setMessage(value);
}
literalTypeCase_ = 36;
return this;
}
/**
* .substrait.Expression.Literal.IntervalCompound interval_compound = 36;
*/
public Builder setIntervalCompound(
io.substrait.proto.Expression.Literal.IntervalCompound.Builder builderForValue) {
if (intervalCompoundBuilder_ == null) {
literalType_ = builderForValue.build();
onChanged();
} else {
intervalCompoundBuilder_.setMessage(builderForValue.build());
}
literalTypeCase_ = 36;
return this;
}
/**
* .substrait.Expression.Literal.IntervalCompound interval_compound = 36;
*/
public Builder mergeIntervalCompound(io.substrait.proto.Expression.Literal.IntervalCompound value) {
if (intervalCompoundBuilder_ == null) {
if (literalTypeCase_ == 36 &&
literalType_ != io.substrait.proto.Expression.Literal.IntervalCompound.getDefaultInstance()) {
literalType_ = io.substrait.proto.Expression.Literal.IntervalCompound.newBuilder((io.substrait.proto.Expression.Literal.IntervalCompound) literalType_)
.mergeFrom(value).buildPartial();
} else {
literalType_ = value;
}
onChanged();
} else {
if (literalTypeCase_ == 36) {
intervalCompoundBuilder_.mergeFrom(value);
} else {
intervalCompoundBuilder_.setMessage(value);
}
}
literalTypeCase_ = 36;
return this;
}
/**
* .substrait.Expression.Literal.IntervalCompound interval_compound = 36;
*/
public Builder clearIntervalCompound() {
if (intervalCompoundBuilder_ == null) {
if (literalTypeCase_ == 36) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
} else {
if (literalTypeCase_ == 36) {
literalTypeCase_ = 0;
literalType_ = null;
}
intervalCompoundBuilder_.clear();
}
return this;
}
/**
* .substrait.Expression.Literal.IntervalCompound interval_compound = 36;
*/
public io.substrait.proto.Expression.Literal.IntervalCompound.Builder getIntervalCompoundBuilder() {
return getIntervalCompoundFieldBuilder().getBuilder();
}
/**
* .substrait.Expression.Literal.IntervalCompound interval_compound = 36;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.IntervalCompoundOrBuilder getIntervalCompoundOrBuilder() {
if ((literalTypeCase_ == 36) && (intervalCompoundBuilder_ != null)) {
return intervalCompoundBuilder_.getMessageOrBuilder();
} else {
if (literalTypeCase_ == 36) {
return (io.substrait.proto.Expression.Literal.IntervalCompound) literalType_;
}
return io.substrait.proto.Expression.Literal.IntervalCompound.getDefaultInstance();
}
}
/**
* .substrait.Expression.Literal.IntervalCompound interval_compound = 36;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.IntervalCompound, io.substrait.proto.Expression.Literal.IntervalCompound.Builder, io.substrait.proto.Expression.Literal.IntervalCompoundOrBuilder>
getIntervalCompoundFieldBuilder() {
if (intervalCompoundBuilder_ == null) {
if (!(literalTypeCase_ == 36)) {
literalType_ = io.substrait.proto.Expression.Literal.IntervalCompound.getDefaultInstance();
}
intervalCompoundBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.IntervalCompound, io.substrait.proto.Expression.Literal.IntervalCompound.Builder, io.substrait.proto.Expression.Literal.IntervalCompoundOrBuilder>(
(io.substrait.proto.Expression.Literal.IntervalCompound) literalType_,
getParentForChildren(),
isClean());
literalType_ = null;
}
literalTypeCase_ = 36;
onChanged();
return intervalCompoundBuilder_;
}
/**
* string fixed_char = 21;
* @return Whether the fixedChar field is set.
*/
@java.lang.Override
public boolean hasFixedChar() {
return literalTypeCase_ == 21;
}
/**
* string fixed_char = 21;
* @return The fixedChar.
*/
@java.lang.Override
public java.lang.String getFixedChar() {
java.lang.Object ref = "";
if (literalTypeCase_ == 21) {
ref = literalType_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (literalTypeCase_ == 21) {
literalType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string fixed_char = 21;
* @return The bytes for fixedChar.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFixedCharBytes() {
java.lang.Object ref = "";
if (literalTypeCase_ == 21) {
ref = literalType_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (literalTypeCase_ == 21) {
literalType_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string fixed_char = 21;
* @param value The fixedChar to set.
* @return This builder for chaining.
*/
public Builder setFixedChar(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
literalTypeCase_ = 21;
literalType_ = value;
onChanged();
return this;
}
/**
* string fixed_char = 21;
* @return This builder for chaining.
*/
public Builder clearFixedChar() {
if (literalTypeCase_ == 21) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
return this;
}
/**
* string fixed_char = 21;
* @param value The bytes for fixedChar to set.
* @return This builder for chaining.
*/
public Builder setFixedCharBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
literalTypeCase_ = 21;
literalType_ = value;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.VarChar, io.substrait.proto.Expression.Literal.VarChar.Builder, io.substrait.proto.Expression.Literal.VarCharOrBuilder> varCharBuilder_;
/**
* .substrait.Expression.Literal.VarChar var_char = 22;
* @return Whether the varChar field is set.
*/
@java.lang.Override
public boolean hasVarChar() {
return literalTypeCase_ == 22;
}
/**
* .substrait.Expression.Literal.VarChar var_char = 22;
* @return The varChar.
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.VarChar getVarChar() {
if (varCharBuilder_ == null) {
if (literalTypeCase_ == 22) {
return (io.substrait.proto.Expression.Literal.VarChar) literalType_;
}
return io.substrait.proto.Expression.Literal.VarChar.getDefaultInstance();
} else {
if (literalTypeCase_ == 22) {
return varCharBuilder_.getMessage();
}
return io.substrait.proto.Expression.Literal.VarChar.getDefaultInstance();
}
}
/**
* .substrait.Expression.Literal.VarChar var_char = 22;
*/
public Builder setVarChar(io.substrait.proto.Expression.Literal.VarChar value) {
if (varCharBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
literalType_ = value;
onChanged();
} else {
varCharBuilder_.setMessage(value);
}
literalTypeCase_ = 22;
return this;
}
/**
* .substrait.Expression.Literal.VarChar var_char = 22;
*/
public Builder setVarChar(
io.substrait.proto.Expression.Literal.VarChar.Builder builderForValue) {
if (varCharBuilder_ == null) {
literalType_ = builderForValue.build();
onChanged();
} else {
varCharBuilder_.setMessage(builderForValue.build());
}
literalTypeCase_ = 22;
return this;
}
/**
* .substrait.Expression.Literal.VarChar var_char = 22;
*/
public Builder mergeVarChar(io.substrait.proto.Expression.Literal.VarChar value) {
if (varCharBuilder_ == null) {
if (literalTypeCase_ == 22 &&
literalType_ != io.substrait.proto.Expression.Literal.VarChar.getDefaultInstance()) {
literalType_ = io.substrait.proto.Expression.Literal.VarChar.newBuilder((io.substrait.proto.Expression.Literal.VarChar) literalType_)
.mergeFrom(value).buildPartial();
} else {
literalType_ = value;
}
onChanged();
} else {
if (literalTypeCase_ == 22) {
varCharBuilder_.mergeFrom(value);
} else {
varCharBuilder_.setMessage(value);
}
}
literalTypeCase_ = 22;
return this;
}
/**
* .substrait.Expression.Literal.VarChar var_char = 22;
*/
public Builder clearVarChar() {
if (varCharBuilder_ == null) {
if (literalTypeCase_ == 22) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
} else {
if (literalTypeCase_ == 22) {
literalTypeCase_ = 0;
literalType_ = null;
}
varCharBuilder_.clear();
}
return this;
}
/**
* .substrait.Expression.Literal.VarChar var_char = 22;
*/
public io.substrait.proto.Expression.Literal.VarChar.Builder getVarCharBuilder() {
return getVarCharFieldBuilder().getBuilder();
}
/**
* .substrait.Expression.Literal.VarChar var_char = 22;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.VarCharOrBuilder getVarCharOrBuilder() {
if ((literalTypeCase_ == 22) && (varCharBuilder_ != null)) {
return varCharBuilder_.getMessageOrBuilder();
} else {
if (literalTypeCase_ == 22) {
return (io.substrait.proto.Expression.Literal.VarChar) literalType_;
}
return io.substrait.proto.Expression.Literal.VarChar.getDefaultInstance();
}
}
/**
* .substrait.Expression.Literal.VarChar var_char = 22;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.VarChar, io.substrait.proto.Expression.Literal.VarChar.Builder, io.substrait.proto.Expression.Literal.VarCharOrBuilder>
getVarCharFieldBuilder() {
if (varCharBuilder_ == null) {
if (!(literalTypeCase_ == 22)) {
literalType_ = io.substrait.proto.Expression.Literal.VarChar.getDefaultInstance();
}
varCharBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.VarChar, io.substrait.proto.Expression.Literal.VarChar.Builder, io.substrait.proto.Expression.Literal.VarCharOrBuilder>(
(io.substrait.proto.Expression.Literal.VarChar) literalType_,
getParentForChildren(),
isClean());
literalType_ = null;
}
literalTypeCase_ = 22;
onChanged();
return varCharBuilder_;
}
/**
* bytes fixed_binary = 23;
* @return Whether the fixedBinary field is set.
*/
public boolean hasFixedBinary() {
return literalTypeCase_ == 23;
}
/**
* bytes fixed_binary = 23;
* @return The fixedBinary.
*/
public com.google.protobuf.ByteString getFixedBinary() {
if (literalTypeCase_ == 23) {
return (com.google.protobuf.ByteString) literalType_;
}
return com.google.protobuf.ByteString.EMPTY;
}
/**
* bytes fixed_binary = 23;
* @param value The fixedBinary to set.
* @return This builder for chaining.
*/
public Builder setFixedBinary(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
literalTypeCase_ = 23;
literalType_ = value;
onChanged();
return this;
}
/**
* bytes fixed_binary = 23;
* @return This builder for chaining.
*/
public Builder clearFixedBinary() {
if (literalTypeCase_ == 23) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.Decimal, io.substrait.proto.Expression.Literal.Decimal.Builder, io.substrait.proto.Expression.Literal.DecimalOrBuilder> decimalBuilder_;
/**
* .substrait.Expression.Literal.Decimal decimal = 24;
* @return Whether the decimal field is set.
*/
@java.lang.Override
public boolean hasDecimal() {
return literalTypeCase_ == 24;
}
/**
* .substrait.Expression.Literal.Decimal decimal = 24;
* @return The decimal.
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.Decimal getDecimal() {
if (decimalBuilder_ == null) {
if (literalTypeCase_ == 24) {
return (io.substrait.proto.Expression.Literal.Decimal) literalType_;
}
return io.substrait.proto.Expression.Literal.Decimal.getDefaultInstance();
} else {
if (literalTypeCase_ == 24) {
return decimalBuilder_.getMessage();
}
return io.substrait.proto.Expression.Literal.Decimal.getDefaultInstance();
}
}
/**
* .substrait.Expression.Literal.Decimal decimal = 24;
*/
public Builder setDecimal(io.substrait.proto.Expression.Literal.Decimal value) {
if (decimalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
literalType_ = value;
onChanged();
} else {
decimalBuilder_.setMessage(value);
}
literalTypeCase_ = 24;
return this;
}
/**
* .substrait.Expression.Literal.Decimal decimal = 24;
*/
public Builder setDecimal(
io.substrait.proto.Expression.Literal.Decimal.Builder builderForValue) {
if (decimalBuilder_ == null) {
literalType_ = builderForValue.build();
onChanged();
} else {
decimalBuilder_.setMessage(builderForValue.build());
}
literalTypeCase_ = 24;
return this;
}
/**
* .substrait.Expression.Literal.Decimal decimal = 24;
*/
public Builder mergeDecimal(io.substrait.proto.Expression.Literal.Decimal value) {
if (decimalBuilder_ == null) {
if (literalTypeCase_ == 24 &&
literalType_ != io.substrait.proto.Expression.Literal.Decimal.getDefaultInstance()) {
literalType_ = io.substrait.proto.Expression.Literal.Decimal.newBuilder((io.substrait.proto.Expression.Literal.Decimal) literalType_)
.mergeFrom(value).buildPartial();
} else {
literalType_ = value;
}
onChanged();
} else {
if (literalTypeCase_ == 24) {
decimalBuilder_.mergeFrom(value);
} else {
decimalBuilder_.setMessage(value);
}
}
literalTypeCase_ = 24;
return this;
}
/**
* .substrait.Expression.Literal.Decimal decimal = 24;
*/
public Builder clearDecimal() {
if (decimalBuilder_ == null) {
if (literalTypeCase_ == 24) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
} else {
if (literalTypeCase_ == 24) {
literalTypeCase_ = 0;
literalType_ = null;
}
decimalBuilder_.clear();
}
return this;
}
/**
* .substrait.Expression.Literal.Decimal decimal = 24;
*/
public io.substrait.proto.Expression.Literal.Decimal.Builder getDecimalBuilder() {
return getDecimalFieldBuilder().getBuilder();
}
/**
* .substrait.Expression.Literal.Decimal decimal = 24;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.DecimalOrBuilder getDecimalOrBuilder() {
if ((literalTypeCase_ == 24) && (decimalBuilder_ != null)) {
return decimalBuilder_.getMessageOrBuilder();
} else {
if (literalTypeCase_ == 24) {
return (io.substrait.proto.Expression.Literal.Decimal) literalType_;
}
return io.substrait.proto.Expression.Literal.Decimal.getDefaultInstance();
}
}
/**
* .substrait.Expression.Literal.Decimal decimal = 24;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.Decimal, io.substrait.proto.Expression.Literal.Decimal.Builder, io.substrait.proto.Expression.Literal.DecimalOrBuilder>
getDecimalFieldBuilder() {
if (decimalBuilder_ == null) {
if (!(literalTypeCase_ == 24)) {
literalType_ = io.substrait.proto.Expression.Literal.Decimal.getDefaultInstance();
}
decimalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.Decimal, io.substrait.proto.Expression.Literal.Decimal.Builder, io.substrait.proto.Expression.Literal.DecimalOrBuilder>(
(io.substrait.proto.Expression.Literal.Decimal) literalType_,
getParentForChildren(),
isClean());
literalType_ = null;
}
literalTypeCase_ = 24;
onChanged();
return decimalBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.PrecisionTimestamp, io.substrait.proto.Expression.Literal.PrecisionTimestamp.Builder, io.substrait.proto.Expression.Literal.PrecisionTimestampOrBuilder> precisionTimestampBuilder_;
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp = 34;
* @return Whether the precisionTimestamp field is set.
*/
@java.lang.Override
public boolean hasPrecisionTimestamp() {
return literalTypeCase_ == 34;
}
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp = 34;
* @return The precisionTimestamp.
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.PrecisionTimestamp getPrecisionTimestamp() {
if (precisionTimestampBuilder_ == null) {
if (literalTypeCase_ == 34) {
return (io.substrait.proto.Expression.Literal.PrecisionTimestamp) literalType_;
}
return io.substrait.proto.Expression.Literal.PrecisionTimestamp.getDefaultInstance();
} else {
if (literalTypeCase_ == 34) {
return precisionTimestampBuilder_.getMessage();
}
return io.substrait.proto.Expression.Literal.PrecisionTimestamp.getDefaultInstance();
}
}
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp = 34;
*/
public Builder setPrecisionTimestamp(io.substrait.proto.Expression.Literal.PrecisionTimestamp value) {
if (precisionTimestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
literalType_ = value;
onChanged();
} else {
precisionTimestampBuilder_.setMessage(value);
}
literalTypeCase_ = 34;
return this;
}
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp = 34;
*/
public Builder setPrecisionTimestamp(
io.substrait.proto.Expression.Literal.PrecisionTimestamp.Builder builderForValue) {
if (precisionTimestampBuilder_ == null) {
literalType_ = builderForValue.build();
onChanged();
} else {
precisionTimestampBuilder_.setMessage(builderForValue.build());
}
literalTypeCase_ = 34;
return this;
}
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp = 34;
*/
public Builder mergePrecisionTimestamp(io.substrait.proto.Expression.Literal.PrecisionTimestamp value) {
if (precisionTimestampBuilder_ == null) {
if (literalTypeCase_ == 34 &&
literalType_ != io.substrait.proto.Expression.Literal.PrecisionTimestamp.getDefaultInstance()) {
literalType_ = io.substrait.proto.Expression.Literal.PrecisionTimestamp.newBuilder((io.substrait.proto.Expression.Literal.PrecisionTimestamp) literalType_)
.mergeFrom(value).buildPartial();
} else {
literalType_ = value;
}
onChanged();
} else {
if (literalTypeCase_ == 34) {
precisionTimestampBuilder_.mergeFrom(value);
} else {
precisionTimestampBuilder_.setMessage(value);
}
}
literalTypeCase_ = 34;
return this;
}
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp = 34;
*/
public Builder clearPrecisionTimestamp() {
if (precisionTimestampBuilder_ == null) {
if (literalTypeCase_ == 34) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
} else {
if (literalTypeCase_ == 34) {
literalTypeCase_ = 0;
literalType_ = null;
}
precisionTimestampBuilder_.clear();
}
return this;
}
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp = 34;
*/
public io.substrait.proto.Expression.Literal.PrecisionTimestamp.Builder getPrecisionTimestampBuilder() {
return getPrecisionTimestampFieldBuilder().getBuilder();
}
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp = 34;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.PrecisionTimestampOrBuilder getPrecisionTimestampOrBuilder() {
if ((literalTypeCase_ == 34) && (precisionTimestampBuilder_ != null)) {
return precisionTimestampBuilder_.getMessageOrBuilder();
} else {
if (literalTypeCase_ == 34) {
return (io.substrait.proto.Expression.Literal.PrecisionTimestamp) literalType_;
}
return io.substrait.proto.Expression.Literal.PrecisionTimestamp.getDefaultInstance();
}
}
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp = 34;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.PrecisionTimestamp, io.substrait.proto.Expression.Literal.PrecisionTimestamp.Builder, io.substrait.proto.Expression.Literal.PrecisionTimestampOrBuilder>
getPrecisionTimestampFieldBuilder() {
if (precisionTimestampBuilder_ == null) {
if (!(literalTypeCase_ == 34)) {
literalType_ = io.substrait.proto.Expression.Literal.PrecisionTimestamp.getDefaultInstance();
}
precisionTimestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.PrecisionTimestamp, io.substrait.proto.Expression.Literal.PrecisionTimestamp.Builder, io.substrait.proto.Expression.Literal.PrecisionTimestampOrBuilder>(
(io.substrait.proto.Expression.Literal.PrecisionTimestamp) literalType_,
getParentForChildren(),
isClean());
literalType_ = null;
}
literalTypeCase_ = 34;
onChanged();
return precisionTimestampBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.PrecisionTimestamp, io.substrait.proto.Expression.Literal.PrecisionTimestamp.Builder, io.substrait.proto.Expression.Literal.PrecisionTimestampOrBuilder> precisionTimestampTzBuilder_;
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp_tz = 35;
* @return Whether the precisionTimestampTz field is set.
*/
@java.lang.Override
public boolean hasPrecisionTimestampTz() {
return literalTypeCase_ == 35;
}
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp_tz = 35;
* @return The precisionTimestampTz.
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.PrecisionTimestamp getPrecisionTimestampTz() {
if (precisionTimestampTzBuilder_ == null) {
if (literalTypeCase_ == 35) {
return (io.substrait.proto.Expression.Literal.PrecisionTimestamp) literalType_;
}
return io.substrait.proto.Expression.Literal.PrecisionTimestamp.getDefaultInstance();
} else {
if (literalTypeCase_ == 35) {
return precisionTimestampTzBuilder_.getMessage();
}
return io.substrait.proto.Expression.Literal.PrecisionTimestamp.getDefaultInstance();
}
}
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp_tz = 35;
*/
public Builder setPrecisionTimestampTz(io.substrait.proto.Expression.Literal.PrecisionTimestamp value) {
if (precisionTimestampTzBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
literalType_ = value;
onChanged();
} else {
precisionTimestampTzBuilder_.setMessage(value);
}
literalTypeCase_ = 35;
return this;
}
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp_tz = 35;
*/
public Builder setPrecisionTimestampTz(
io.substrait.proto.Expression.Literal.PrecisionTimestamp.Builder builderForValue) {
if (precisionTimestampTzBuilder_ == null) {
literalType_ = builderForValue.build();
onChanged();
} else {
precisionTimestampTzBuilder_.setMessage(builderForValue.build());
}
literalTypeCase_ = 35;
return this;
}
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp_tz = 35;
*/
public Builder mergePrecisionTimestampTz(io.substrait.proto.Expression.Literal.PrecisionTimestamp value) {
if (precisionTimestampTzBuilder_ == null) {
if (literalTypeCase_ == 35 &&
literalType_ != io.substrait.proto.Expression.Literal.PrecisionTimestamp.getDefaultInstance()) {
literalType_ = io.substrait.proto.Expression.Literal.PrecisionTimestamp.newBuilder((io.substrait.proto.Expression.Literal.PrecisionTimestamp) literalType_)
.mergeFrom(value).buildPartial();
} else {
literalType_ = value;
}
onChanged();
} else {
if (literalTypeCase_ == 35) {
precisionTimestampTzBuilder_.mergeFrom(value);
} else {
precisionTimestampTzBuilder_.setMessage(value);
}
}
literalTypeCase_ = 35;
return this;
}
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp_tz = 35;
*/
public Builder clearPrecisionTimestampTz() {
if (precisionTimestampTzBuilder_ == null) {
if (literalTypeCase_ == 35) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
} else {
if (literalTypeCase_ == 35) {
literalTypeCase_ = 0;
literalType_ = null;
}
precisionTimestampTzBuilder_.clear();
}
return this;
}
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp_tz = 35;
*/
public io.substrait.proto.Expression.Literal.PrecisionTimestamp.Builder getPrecisionTimestampTzBuilder() {
return getPrecisionTimestampTzFieldBuilder().getBuilder();
}
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp_tz = 35;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.PrecisionTimestampOrBuilder getPrecisionTimestampTzOrBuilder() {
if ((literalTypeCase_ == 35) && (precisionTimestampTzBuilder_ != null)) {
return precisionTimestampTzBuilder_.getMessageOrBuilder();
} else {
if (literalTypeCase_ == 35) {
return (io.substrait.proto.Expression.Literal.PrecisionTimestamp) literalType_;
}
return io.substrait.proto.Expression.Literal.PrecisionTimestamp.getDefaultInstance();
}
}
/**
* .substrait.Expression.Literal.PrecisionTimestamp precision_timestamp_tz = 35;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.PrecisionTimestamp, io.substrait.proto.Expression.Literal.PrecisionTimestamp.Builder, io.substrait.proto.Expression.Literal.PrecisionTimestampOrBuilder>
getPrecisionTimestampTzFieldBuilder() {
if (precisionTimestampTzBuilder_ == null) {
if (!(literalTypeCase_ == 35)) {
literalType_ = io.substrait.proto.Expression.Literal.PrecisionTimestamp.getDefaultInstance();
}
precisionTimestampTzBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.PrecisionTimestamp, io.substrait.proto.Expression.Literal.PrecisionTimestamp.Builder, io.substrait.proto.Expression.Literal.PrecisionTimestampOrBuilder>(
(io.substrait.proto.Expression.Literal.PrecisionTimestamp) literalType_,
getParentForChildren(),
isClean());
literalType_ = null;
}
literalTypeCase_ = 35;
onChanged();
return precisionTimestampTzBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.Struct, io.substrait.proto.Expression.Literal.Struct.Builder, io.substrait.proto.Expression.Literal.StructOrBuilder> structBuilder_;
/**
* .substrait.Expression.Literal.Struct struct = 25;
* @return Whether the struct field is set.
*/
@java.lang.Override
public boolean hasStruct() {
return literalTypeCase_ == 25;
}
/**
* .substrait.Expression.Literal.Struct struct = 25;
* @return The struct.
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.Struct getStruct() {
if (structBuilder_ == null) {
if (literalTypeCase_ == 25) {
return (io.substrait.proto.Expression.Literal.Struct) literalType_;
}
return io.substrait.proto.Expression.Literal.Struct.getDefaultInstance();
} else {
if (literalTypeCase_ == 25) {
return structBuilder_.getMessage();
}
return io.substrait.proto.Expression.Literal.Struct.getDefaultInstance();
}
}
/**
* .substrait.Expression.Literal.Struct struct = 25;
*/
public Builder setStruct(io.substrait.proto.Expression.Literal.Struct value) {
if (structBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
literalType_ = value;
onChanged();
} else {
structBuilder_.setMessage(value);
}
literalTypeCase_ = 25;
return this;
}
/**
* .substrait.Expression.Literal.Struct struct = 25;
*/
public Builder setStruct(
io.substrait.proto.Expression.Literal.Struct.Builder builderForValue) {
if (structBuilder_ == null) {
literalType_ = builderForValue.build();
onChanged();
} else {
structBuilder_.setMessage(builderForValue.build());
}
literalTypeCase_ = 25;
return this;
}
/**
* .substrait.Expression.Literal.Struct struct = 25;
*/
public Builder mergeStruct(io.substrait.proto.Expression.Literal.Struct value) {
if (structBuilder_ == null) {
if (literalTypeCase_ == 25 &&
literalType_ != io.substrait.proto.Expression.Literal.Struct.getDefaultInstance()) {
literalType_ = io.substrait.proto.Expression.Literal.Struct.newBuilder((io.substrait.proto.Expression.Literal.Struct) literalType_)
.mergeFrom(value).buildPartial();
} else {
literalType_ = value;
}
onChanged();
} else {
if (literalTypeCase_ == 25) {
structBuilder_.mergeFrom(value);
} else {
structBuilder_.setMessage(value);
}
}
literalTypeCase_ = 25;
return this;
}
/**
* .substrait.Expression.Literal.Struct struct = 25;
*/
public Builder clearStruct() {
if (structBuilder_ == null) {
if (literalTypeCase_ == 25) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
} else {
if (literalTypeCase_ == 25) {
literalTypeCase_ = 0;
literalType_ = null;
}
structBuilder_.clear();
}
return this;
}
/**
* .substrait.Expression.Literal.Struct struct = 25;
*/
public io.substrait.proto.Expression.Literal.Struct.Builder getStructBuilder() {
return getStructFieldBuilder().getBuilder();
}
/**
* .substrait.Expression.Literal.Struct struct = 25;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.StructOrBuilder getStructOrBuilder() {
if ((literalTypeCase_ == 25) && (structBuilder_ != null)) {
return structBuilder_.getMessageOrBuilder();
} else {
if (literalTypeCase_ == 25) {
return (io.substrait.proto.Expression.Literal.Struct) literalType_;
}
return io.substrait.proto.Expression.Literal.Struct.getDefaultInstance();
}
}
/**
* .substrait.Expression.Literal.Struct struct = 25;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.Struct, io.substrait.proto.Expression.Literal.Struct.Builder, io.substrait.proto.Expression.Literal.StructOrBuilder>
getStructFieldBuilder() {
if (structBuilder_ == null) {
if (!(literalTypeCase_ == 25)) {
literalType_ = io.substrait.proto.Expression.Literal.Struct.getDefaultInstance();
}
structBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.Struct, io.substrait.proto.Expression.Literal.Struct.Builder, io.substrait.proto.Expression.Literal.StructOrBuilder>(
(io.substrait.proto.Expression.Literal.Struct) literalType_,
getParentForChildren(),
isClean());
literalType_ = null;
}
literalTypeCase_ = 25;
onChanged();
return structBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.Map, io.substrait.proto.Expression.Literal.Map.Builder, io.substrait.proto.Expression.Literal.MapOrBuilder> mapBuilder_;
/**
* .substrait.Expression.Literal.Map map = 26;
* @return Whether the map field is set.
*/
@java.lang.Override
public boolean hasMap() {
return literalTypeCase_ == 26;
}
/**
* .substrait.Expression.Literal.Map map = 26;
* @return The map.
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.Map getMap() {
if (mapBuilder_ == null) {
if (literalTypeCase_ == 26) {
return (io.substrait.proto.Expression.Literal.Map) literalType_;
}
return io.substrait.proto.Expression.Literal.Map.getDefaultInstance();
} else {
if (literalTypeCase_ == 26) {
return mapBuilder_.getMessage();
}
return io.substrait.proto.Expression.Literal.Map.getDefaultInstance();
}
}
/**
* .substrait.Expression.Literal.Map map = 26;
*/
public Builder setMap(io.substrait.proto.Expression.Literal.Map value) {
if (mapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
literalType_ = value;
onChanged();
} else {
mapBuilder_.setMessage(value);
}
literalTypeCase_ = 26;
return this;
}
/**
* .substrait.Expression.Literal.Map map = 26;
*/
public Builder setMap(
io.substrait.proto.Expression.Literal.Map.Builder builderForValue) {
if (mapBuilder_ == null) {
literalType_ = builderForValue.build();
onChanged();
} else {
mapBuilder_.setMessage(builderForValue.build());
}
literalTypeCase_ = 26;
return this;
}
/**
* .substrait.Expression.Literal.Map map = 26;
*/
public Builder mergeMap(io.substrait.proto.Expression.Literal.Map value) {
if (mapBuilder_ == null) {
if (literalTypeCase_ == 26 &&
literalType_ != io.substrait.proto.Expression.Literal.Map.getDefaultInstance()) {
literalType_ = io.substrait.proto.Expression.Literal.Map.newBuilder((io.substrait.proto.Expression.Literal.Map) literalType_)
.mergeFrom(value).buildPartial();
} else {
literalType_ = value;
}
onChanged();
} else {
if (literalTypeCase_ == 26) {
mapBuilder_.mergeFrom(value);
} else {
mapBuilder_.setMessage(value);
}
}
literalTypeCase_ = 26;
return this;
}
/**
* .substrait.Expression.Literal.Map map = 26;
*/
public Builder clearMap() {
if (mapBuilder_ == null) {
if (literalTypeCase_ == 26) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
} else {
if (literalTypeCase_ == 26) {
literalTypeCase_ = 0;
literalType_ = null;
}
mapBuilder_.clear();
}
return this;
}
/**
* .substrait.Expression.Literal.Map map = 26;
*/
public io.substrait.proto.Expression.Literal.Map.Builder getMapBuilder() {
return getMapFieldBuilder().getBuilder();
}
/**
* .substrait.Expression.Literal.Map map = 26;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.MapOrBuilder getMapOrBuilder() {
if ((literalTypeCase_ == 26) && (mapBuilder_ != null)) {
return mapBuilder_.getMessageOrBuilder();
} else {
if (literalTypeCase_ == 26) {
return (io.substrait.proto.Expression.Literal.Map) literalType_;
}
return io.substrait.proto.Expression.Literal.Map.getDefaultInstance();
}
}
/**
* .substrait.Expression.Literal.Map map = 26;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.Map, io.substrait.proto.Expression.Literal.Map.Builder, io.substrait.proto.Expression.Literal.MapOrBuilder>
getMapFieldBuilder() {
if (mapBuilder_ == null) {
if (!(literalTypeCase_ == 26)) {
literalType_ = io.substrait.proto.Expression.Literal.Map.getDefaultInstance();
}
mapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.Map, io.substrait.proto.Expression.Literal.Map.Builder, io.substrait.proto.Expression.Literal.MapOrBuilder>(
(io.substrait.proto.Expression.Literal.Map) literalType_,
getParentForChildren(),
isClean());
literalType_ = null;
}
literalTypeCase_ = 26;
onChanged();
return mapBuilder_;
}
/**
*
* Timestamp in units of microseconds since the UNIX epoch.
* Deprecated in favor of `precision_timestamp_tz`
*
*
* int64 timestamp_tz = 27 [deprecated = true];
* @deprecated substrait.Expression.Literal.timestamp_tz is deprecated.
* See substrait/algebra.proto;l=882
* @return Whether the timestampTz field is set.
*/
@java.lang.Deprecated public boolean hasTimestampTz() {
return literalTypeCase_ == 27;
}
/**
*
* Timestamp in units of microseconds since the UNIX epoch.
* Deprecated in favor of `precision_timestamp_tz`
*
*
* int64 timestamp_tz = 27 [deprecated = true];
* @deprecated substrait.Expression.Literal.timestamp_tz is deprecated.
* See substrait/algebra.proto;l=882
* @return The timestampTz.
*/
@java.lang.Deprecated public long getTimestampTz() {
if (literalTypeCase_ == 27) {
return (java.lang.Long) literalType_;
}
return 0L;
}
/**
*
* Timestamp in units of microseconds since the UNIX epoch.
* Deprecated in favor of `precision_timestamp_tz`
*
*
* int64 timestamp_tz = 27 [deprecated = true];
* @deprecated substrait.Expression.Literal.timestamp_tz is deprecated.
* See substrait/algebra.proto;l=882
* @param value The timestampTz to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setTimestampTz(long value) {
literalTypeCase_ = 27;
literalType_ = value;
onChanged();
return this;
}
/**
*
* Timestamp in units of microseconds since the UNIX epoch.
* Deprecated in favor of `precision_timestamp_tz`
*
*
* int64 timestamp_tz = 27 [deprecated = true];
* @deprecated substrait.Expression.Literal.timestamp_tz is deprecated.
* See substrait/algebra.proto;l=882
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearTimestampTz() {
if (literalTypeCase_ == 27) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
return this;
}
/**
* bytes uuid = 28;
* @return Whether the uuid field is set.
*/
public boolean hasUuid() {
return literalTypeCase_ == 28;
}
/**
* bytes uuid = 28;
* @return The uuid.
*/
public com.google.protobuf.ByteString getUuid() {
if (literalTypeCase_ == 28) {
return (com.google.protobuf.ByteString) literalType_;
}
return com.google.protobuf.ByteString.EMPTY;
}
/**
* bytes uuid = 28;
* @param value The uuid to set.
* @return This builder for chaining.
*/
public Builder setUuid(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
literalTypeCase_ = 28;
literalType_ = value;
onChanged();
return this;
}
/**
* bytes uuid = 28;
* @return This builder for chaining.
*/
public Builder clearUuid() {
if (literalTypeCase_ == 28) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Type, io.substrait.proto.Type.Builder, io.substrait.proto.TypeOrBuilder> nullBuilder_;
/**
*
* a typed null literal
*
*
* .substrait.Type null = 29;
* @return Whether the null field is set.
*/
@java.lang.Override
public boolean hasNull() {
return literalTypeCase_ == 29;
}
/**
*
* a typed null literal
*
*
* .substrait.Type null = 29;
* @return The null.
*/
@java.lang.Override
public io.substrait.proto.Type getNull() {
if (nullBuilder_ == null) {
if (literalTypeCase_ == 29) {
return (io.substrait.proto.Type) literalType_;
}
return io.substrait.proto.Type.getDefaultInstance();
} else {
if (literalTypeCase_ == 29) {
return nullBuilder_.getMessage();
}
return io.substrait.proto.Type.getDefaultInstance();
}
}
/**
*
* a typed null literal
*
*
* .substrait.Type null = 29;
*/
public Builder setNull(io.substrait.proto.Type value) {
if (nullBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
literalType_ = value;
onChanged();
} else {
nullBuilder_.setMessage(value);
}
literalTypeCase_ = 29;
return this;
}
/**
*
* a typed null literal
*
*
* .substrait.Type null = 29;
*/
public Builder setNull(
io.substrait.proto.Type.Builder builderForValue) {
if (nullBuilder_ == null) {
literalType_ = builderForValue.build();
onChanged();
} else {
nullBuilder_.setMessage(builderForValue.build());
}
literalTypeCase_ = 29;
return this;
}
/**
*
* a typed null literal
*
*
* .substrait.Type null = 29;
*/
public Builder mergeNull(io.substrait.proto.Type value) {
if (nullBuilder_ == null) {
if (literalTypeCase_ == 29 &&
literalType_ != io.substrait.proto.Type.getDefaultInstance()) {
literalType_ = io.substrait.proto.Type.newBuilder((io.substrait.proto.Type) literalType_)
.mergeFrom(value).buildPartial();
} else {
literalType_ = value;
}
onChanged();
} else {
if (literalTypeCase_ == 29) {
nullBuilder_.mergeFrom(value);
} else {
nullBuilder_.setMessage(value);
}
}
literalTypeCase_ = 29;
return this;
}
/**
*
* a typed null literal
*
*
* .substrait.Type null = 29;
*/
public Builder clearNull() {
if (nullBuilder_ == null) {
if (literalTypeCase_ == 29) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
} else {
if (literalTypeCase_ == 29) {
literalTypeCase_ = 0;
literalType_ = null;
}
nullBuilder_.clear();
}
return this;
}
/**
*
* a typed null literal
*
*
* .substrait.Type null = 29;
*/
public io.substrait.proto.Type.Builder getNullBuilder() {
return getNullFieldBuilder().getBuilder();
}
/**
*
* a typed null literal
*
*
* .substrait.Type null = 29;
*/
@java.lang.Override
public io.substrait.proto.TypeOrBuilder getNullOrBuilder() {
if ((literalTypeCase_ == 29) && (nullBuilder_ != null)) {
return nullBuilder_.getMessageOrBuilder();
} else {
if (literalTypeCase_ == 29) {
return (io.substrait.proto.Type) literalType_;
}
return io.substrait.proto.Type.getDefaultInstance();
}
}
/**
*
* a typed null literal
*
*
* .substrait.Type null = 29;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Type, io.substrait.proto.Type.Builder, io.substrait.proto.TypeOrBuilder>
getNullFieldBuilder() {
if (nullBuilder_ == null) {
if (!(literalTypeCase_ == 29)) {
literalType_ = io.substrait.proto.Type.getDefaultInstance();
}
nullBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Type, io.substrait.proto.Type.Builder, io.substrait.proto.TypeOrBuilder>(
(io.substrait.proto.Type) literalType_,
getParentForChildren(),
isClean());
literalType_ = null;
}
literalTypeCase_ = 29;
onChanged();
return nullBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.List, io.substrait.proto.Expression.Literal.List.Builder, io.substrait.proto.Expression.Literal.ListOrBuilder> listBuilder_;
/**
* .substrait.Expression.Literal.List list = 30;
* @return Whether the list field is set.
*/
@java.lang.Override
public boolean hasList() {
return literalTypeCase_ == 30;
}
/**
* .substrait.Expression.Literal.List list = 30;
* @return The list.
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.List getList() {
if (listBuilder_ == null) {
if (literalTypeCase_ == 30) {
return (io.substrait.proto.Expression.Literal.List) literalType_;
}
return io.substrait.proto.Expression.Literal.List.getDefaultInstance();
} else {
if (literalTypeCase_ == 30) {
return listBuilder_.getMessage();
}
return io.substrait.proto.Expression.Literal.List.getDefaultInstance();
}
}
/**
* .substrait.Expression.Literal.List list = 30;
*/
public Builder setList(io.substrait.proto.Expression.Literal.List value) {
if (listBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
literalType_ = value;
onChanged();
} else {
listBuilder_.setMessage(value);
}
literalTypeCase_ = 30;
return this;
}
/**
* .substrait.Expression.Literal.List list = 30;
*/
public Builder setList(
io.substrait.proto.Expression.Literal.List.Builder builderForValue) {
if (listBuilder_ == null) {
literalType_ = builderForValue.build();
onChanged();
} else {
listBuilder_.setMessage(builderForValue.build());
}
literalTypeCase_ = 30;
return this;
}
/**
* .substrait.Expression.Literal.List list = 30;
*/
public Builder mergeList(io.substrait.proto.Expression.Literal.List value) {
if (listBuilder_ == null) {
if (literalTypeCase_ == 30 &&
literalType_ != io.substrait.proto.Expression.Literal.List.getDefaultInstance()) {
literalType_ = io.substrait.proto.Expression.Literal.List.newBuilder((io.substrait.proto.Expression.Literal.List) literalType_)
.mergeFrom(value).buildPartial();
} else {
literalType_ = value;
}
onChanged();
} else {
if (literalTypeCase_ == 30) {
listBuilder_.mergeFrom(value);
} else {
listBuilder_.setMessage(value);
}
}
literalTypeCase_ = 30;
return this;
}
/**
* .substrait.Expression.Literal.List list = 30;
*/
public Builder clearList() {
if (listBuilder_ == null) {
if (literalTypeCase_ == 30) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
} else {
if (literalTypeCase_ == 30) {
literalTypeCase_ = 0;
literalType_ = null;
}
listBuilder_.clear();
}
return this;
}
/**
* .substrait.Expression.Literal.List list = 30;
*/
public io.substrait.proto.Expression.Literal.List.Builder getListBuilder() {
return getListFieldBuilder().getBuilder();
}
/**
* .substrait.Expression.Literal.List list = 30;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.ListOrBuilder getListOrBuilder() {
if ((literalTypeCase_ == 30) && (listBuilder_ != null)) {
return listBuilder_.getMessageOrBuilder();
} else {
if (literalTypeCase_ == 30) {
return (io.substrait.proto.Expression.Literal.List) literalType_;
}
return io.substrait.proto.Expression.Literal.List.getDefaultInstance();
}
}
/**
* .substrait.Expression.Literal.List list = 30;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.List, io.substrait.proto.Expression.Literal.List.Builder, io.substrait.proto.Expression.Literal.ListOrBuilder>
getListFieldBuilder() {
if (listBuilder_ == null) {
if (!(literalTypeCase_ == 30)) {
literalType_ = io.substrait.proto.Expression.Literal.List.getDefaultInstance();
}
listBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.List, io.substrait.proto.Expression.Literal.List.Builder, io.substrait.proto.Expression.Literal.ListOrBuilder>(
(io.substrait.proto.Expression.Literal.List) literalType_,
getParentForChildren(),
isClean());
literalType_ = null;
}
literalTypeCase_ = 30;
onChanged();
return listBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Type.List, io.substrait.proto.Type.List.Builder, io.substrait.proto.Type.ListOrBuilder> emptyListBuilder_;
/**
* .substrait.Type.List empty_list = 31;
* @return Whether the emptyList field is set.
*/
@java.lang.Override
public boolean hasEmptyList() {
return literalTypeCase_ == 31;
}
/**
* .substrait.Type.List empty_list = 31;
* @return The emptyList.
*/
@java.lang.Override
public io.substrait.proto.Type.List getEmptyList() {
if (emptyListBuilder_ == null) {
if (literalTypeCase_ == 31) {
return (io.substrait.proto.Type.List) literalType_;
}
return io.substrait.proto.Type.List.getDefaultInstance();
} else {
if (literalTypeCase_ == 31) {
return emptyListBuilder_.getMessage();
}
return io.substrait.proto.Type.List.getDefaultInstance();
}
}
/**
* .substrait.Type.List empty_list = 31;
*/
public Builder setEmptyList(io.substrait.proto.Type.List value) {
if (emptyListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
literalType_ = value;
onChanged();
} else {
emptyListBuilder_.setMessage(value);
}
literalTypeCase_ = 31;
return this;
}
/**
* .substrait.Type.List empty_list = 31;
*/
public Builder setEmptyList(
io.substrait.proto.Type.List.Builder builderForValue) {
if (emptyListBuilder_ == null) {
literalType_ = builderForValue.build();
onChanged();
} else {
emptyListBuilder_.setMessage(builderForValue.build());
}
literalTypeCase_ = 31;
return this;
}
/**
* .substrait.Type.List empty_list = 31;
*/
public Builder mergeEmptyList(io.substrait.proto.Type.List value) {
if (emptyListBuilder_ == null) {
if (literalTypeCase_ == 31 &&
literalType_ != io.substrait.proto.Type.List.getDefaultInstance()) {
literalType_ = io.substrait.proto.Type.List.newBuilder((io.substrait.proto.Type.List) literalType_)
.mergeFrom(value).buildPartial();
} else {
literalType_ = value;
}
onChanged();
} else {
if (literalTypeCase_ == 31) {
emptyListBuilder_.mergeFrom(value);
} else {
emptyListBuilder_.setMessage(value);
}
}
literalTypeCase_ = 31;
return this;
}
/**
* .substrait.Type.List empty_list = 31;
*/
public Builder clearEmptyList() {
if (emptyListBuilder_ == null) {
if (literalTypeCase_ == 31) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
} else {
if (literalTypeCase_ == 31) {
literalTypeCase_ = 0;
literalType_ = null;
}
emptyListBuilder_.clear();
}
return this;
}
/**
* .substrait.Type.List empty_list = 31;
*/
public io.substrait.proto.Type.List.Builder getEmptyListBuilder() {
return getEmptyListFieldBuilder().getBuilder();
}
/**
* .substrait.Type.List empty_list = 31;
*/
@java.lang.Override
public io.substrait.proto.Type.ListOrBuilder getEmptyListOrBuilder() {
if ((literalTypeCase_ == 31) && (emptyListBuilder_ != null)) {
return emptyListBuilder_.getMessageOrBuilder();
} else {
if (literalTypeCase_ == 31) {
return (io.substrait.proto.Type.List) literalType_;
}
return io.substrait.proto.Type.List.getDefaultInstance();
}
}
/**
* .substrait.Type.List empty_list = 31;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Type.List, io.substrait.proto.Type.List.Builder, io.substrait.proto.Type.ListOrBuilder>
getEmptyListFieldBuilder() {
if (emptyListBuilder_ == null) {
if (!(literalTypeCase_ == 31)) {
literalType_ = io.substrait.proto.Type.List.getDefaultInstance();
}
emptyListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Type.List, io.substrait.proto.Type.List.Builder, io.substrait.proto.Type.ListOrBuilder>(
(io.substrait.proto.Type.List) literalType_,
getParentForChildren(),
isClean());
literalType_ = null;
}
literalTypeCase_ = 31;
onChanged();
return emptyListBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Type.Map, io.substrait.proto.Type.Map.Builder, io.substrait.proto.Type.MapOrBuilder> emptyMapBuilder_;
/**
* .substrait.Type.Map empty_map = 32;
* @return Whether the emptyMap field is set.
*/
@java.lang.Override
public boolean hasEmptyMap() {
return literalTypeCase_ == 32;
}
/**
* .substrait.Type.Map empty_map = 32;
* @return The emptyMap.
*/
@java.lang.Override
public io.substrait.proto.Type.Map getEmptyMap() {
if (emptyMapBuilder_ == null) {
if (literalTypeCase_ == 32) {
return (io.substrait.proto.Type.Map) literalType_;
}
return io.substrait.proto.Type.Map.getDefaultInstance();
} else {
if (literalTypeCase_ == 32) {
return emptyMapBuilder_.getMessage();
}
return io.substrait.proto.Type.Map.getDefaultInstance();
}
}
/**
* .substrait.Type.Map empty_map = 32;
*/
public Builder setEmptyMap(io.substrait.proto.Type.Map value) {
if (emptyMapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
literalType_ = value;
onChanged();
} else {
emptyMapBuilder_.setMessage(value);
}
literalTypeCase_ = 32;
return this;
}
/**
* .substrait.Type.Map empty_map = 32;
*/
public Builder setEmptyMap(
io.substrait.proto.Type.Map.Builder builderForValue) {
if (emptyMapBuilder_ == null) {
literalType_ = builderForValue.build();
onChanged();
} else {
emptyMapBuilder_.setMessage(builderForValue.build());
}
literalTypeCase_ = 32;
return this;
}
/**
* .substrait.Type.Map empty_map = 32;
*/
public Builder mergeEmptyMap(io.substrait.proto.Type.Map value) {
if (emptyMapBuilder_ == null) {
if (literalTypeCase_ == 32 &&
literalType_ != io.substrait.proto.Type.Map.getDefaultInstance()) {
literalType_ = io.substrait.proto.Type.Map.newBuilder((io.substrait.proto.Type.Map) literalType_)
.mergeFrom(value).buildPartial();
} else {
literalType_ = value;
}
onChanged();
} else {
if (literalTypeCase_ == 32) {
emptyMapBuilder_.mergeFrom(value);
} else {
emptyMapBuilder_.setMessage(value);
}
}
literalTypeCase_ = 32;
return this;
}
/**
* .substrait.Type.Map empty_map = 32;
*/
public Builder clearEmptyMap() {
if (emptyMapBuilder_ == null) {
if (literalTypeCase_ == 32) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
} else {
if (literalTypeCase_ == 32) {
literalTypeCase_ = 0;
literalType_ = null;
}
emptyMapBuilder_.clear();
}
return this;
}
/**
* .substrait.Type.Map empty_map = 32;
*/
public io.substrait.proto.Type.Map.Builder getEmptyMapBuilder() {
return getEmptyMapFieldBuilder().getBuilder();
}
/**
* .substrait.Type.Map empty_map = 32;
*/
@java.lang.Override
public io.substrait.proto.Type.MapOrBuilder getEmptyMapOrBuilder() {
if ((literalTypeCase_ == 32) && (emptyMapBuilder_ != null)) {
return emptyMapBuilder_.getMessageOrBuilder();
} else {
if (literalTypeCase_ == 32) {
return (io.substrait.proto.Type.Map) literalType_;
}
return io.substrait.proto.Type.Map.getDefaultInstance();
}
}
/**
* .substrait.Type.Map empty_map = 32;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Type.Map, io.substrait.proto.Type.Map.Builder, io.substrait.proto.Type.MapOrBuilder>
getEmptyMapFieldBuilder() {
if (emptyMapBuilder_ == null) {
if (!(literalTypeCase_ == 32)) {
literalType_ = io.substrait.proto.Type.Map.getDefaultInstance();
}
emptyMapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Type.Map, io.substrait.proto.Type.Map.Builder, io.substrait.proto.Type.MapOrBuilder>(
(io.substrait.proto.Type.Map) literalType_,
getParentForChildren(),
isClean());
literalType_ = null;
}
literalTypeCase_ = 32;
onChanged();
return emptyMapBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.UserDefined, io.substrait.proto.Expression.Literal.UserDefined.Builder, io.substrait.proto.Expression.Literal.UserDefinedOrBuilder> userDefinedBuilder_;
/**
* .substrait.Expression.Literal.UserDefined user_defined = 33;
* @return Whether the userDefined field is set.
*/
@java.lang.Override
public boolean hasUserDefined() {
return literalTypeCase_ == 33;
}
/**
* .substrait.Expression.Literal.UserDefined user_defined = 33;
* @return The userDefined.
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.UserDefined getUserDefined() {
if (userDefinedBuilder_ == null) {
if (literalTypeCase_ == 33) {
return (io.substrait.proto.Expression.Literal.UserDefined) literalType_;
}
return io.substrait.proto.Expression.Literal.UserDefined.getDefaultInstance();
} else {
if (literalTypeCase_ == 33) {
return userDefinedBuilder_.getMessage();
}
return io.substrait.proto.Expression.Literal.UserDefined.getDefaultInstance();
}
}
/**
* .substrait.Expression.Literal.UserDefined user_defined = 33;
*/
public Builder setUserDefined(io.substrait.proto.Expression.Literal.UserDefined value) {
if (userDefinedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
literalType_ = value;
onChanged();
} else {
userDefinedBuilder_.setMessage(value);
}
literalTypeCase_ = 33;
return this;
}
/**
* .substrait.Expression.Literal.UserDefined user_defined = 33;
*/
public Builder setUserDefined(
io.substrait.proto.Expression.Literal.UserDefined.Builder builderForValue) {
if (userDefinedBuilder_ == null) {
literalType_ = builderForValue.build();
onChanged();
} else {
userDefinedBuilder_.setMessage(builderForValue.build());
}
literalTypeCase_ = 33;
return this;
}
/**
* .substrait.Expression.Literal.UserDefined user_defined = 33;
*/
public Builder mergeUserDefined(io.substrait.proto.Expression.Literal.UserDefined value) {
if (userDefinedBuilder_ == null) {
if (literalTypeCase_ == 33 &&
literalType_ != io.substrait.proto.Expression.Literal.UserDefined.getDefaultInstance()) {
literalType_ = io.substrait.proto.Expression.Literal.UserDefined.newBuilder((io.substrait.proto.Expression.Literal.UserDefined) literalType_)
.mergeFrom(value).buildPartial();
} else {
literalType_ = value;
}
onChanged();
} else {
if (literalTypeCase_ == 33) {
userDefinedBuilder_.mergeFrom(value);
} else {
userDefinedBuilder_.setMessage(value);
}
}
literalTypeCase_ = 33;
return this;
}
/**
* .substrait.Expression.Literal.UserDefined user_defined = 33;
*/
public Builder clearUserDefined() {
if (userDefinedBuilder_ == null) {
if (literalTypeCase_ == 33) {
literalTypeCase_ = 0;
literalType_ = null;
onChanged();
}
} else {
if (literalTypeCase_ == 33) {
literalTypeCase_ = 0;
literalType_ = null;
}
userDefinedBuilder_.clear();
}
return this;
}
/**
* .substrait.Expression.Literal.UserDefined user_defined = 33;
*/
public io.substrait.proto.Expression.Literal.UserDefined.Builder getUserDefinedBuilder() {
return getUserDefinedFieldBuilder().getBuilder();
}
/**
* .substrait.Expression.Literal.UserDefined user_defined = 33;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.UserDefinedOrBuilder getUserDefinedOrBuilder() {
if ((literalTypeCase_ == 33) && (userDefinedBuilder_ != null)) {
return userDefinedBuilder_.getMessageOrBuilder();
} else {
if (literalTypeCase_ == 33) {
return (io.substrait.proto.Expression.Literal.UserDefined) literalType_;
}
return io.substrait.proto.Expression.Literal.UserDefined.getDefaultInstance();
}
}
/**
* .substrait.Expression.Literal.UserDefined user_defined = 33;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.UserDefined, io.substrait.proto.Expression.Literal.UserDefined.Builder, io.substrait.proto.Expression.Literal.UserDefinedOrBuilder>
getUserDefinedFieldBuilder() {
if (userDefinedBuilder_ == null) {
if (!(literalTypeCase_ == 33)) {
literalType_ = io.substrait.proto.Expression.Literal.UserDefined.getDefaultInstance();
}
userDefinedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.UserDefined, io.substrait.proto.Expression.Literal.UserDefined.Builder, io.substrait.proto.Expression.Literal.UserDefinedOrBuilder>(
(io.substrait.proto.Expression.Literal.UserDefined) literalType_,
getParentForChildren(),
isClean());
literalType_ = null;
}
literalTypeCase_ = 33;
onChanged();
return userDefinedBuilder_;
}
private boolean nullable_ ;
/**
*
* Whether the literal_type above should be treated as a nullable type.
* Applies to all members of the literal_type oneof EXCEPT:
* * Type null (must be nullable by definition)
* * Type.List empty_list (use Type.List::nullability)
* * Type.Map empty_map (use Type.Map::nullability)
*
*
* bool nullable = 50;
* @return The nullable.
*/
@java.lang.Override
public boolean getNullable() {
return nullable_;
}
/**
*
* Whether the literal_type above should be treated as a nullable type.
* Applies to all members of the literal_type oneof EXCEPT:
* * Type null (must be nullable by definition)
* * Type.List empty_list (use Type.List::nullability)
* * Type.Map empty_map (use Type.Map::nullability)
*
*
* bool nullable = 50;
* @param value The nullable to set.
* @return This builder for chaining.
*/
public Builder setNullable(boolean value) {
nullable_ = value;
bitField0_ |= 0x40000000;
onChanged();
return this;
}
/**
*
* Whether the literal_type above should be treated as a nullable type.
* Applies to all members of the literal_type oneof EXCEPT:
* * Type null (must be nullable by definition)
* * Type.List empty_list (use Type.List::nullability)
* * Type.Map empty_map (use Type.Map::nullability)
*
*
* bool nullable = 50;
* @return This builder for chaining.
*/
public Builder clearNullable() {
bitField0_ = (bitField0_ & ~0x40000000);
nullable_ = false;
onChanged();
return this;
}
private int typeVariationReference_ ;
/**
*
* optionally points to a type_variation_anchor defined in this plan.
* Applies to all members of union other than the Typed null (which should
* directly declare the type variation).
*
*
* uint32 type_variation_reference = 51;
* @return The typeVariationReference.
*/
@java.lang.Override
public int getTypeVariationReference() {
return typeVariationReference_;
}
/**
*
* optionally points to a type_variation_anchor defined in this plan.
* Applies to all members of union other than the Typed null (which should
* directly declare the type variation).
*
*
* uint32 type_variation_reference = 51;
* @param value The typeVariationReference to set.
* @return This builder for chaining.
*/
public Builder setTypeVariationReference(int value) {
typeVariationReference_ = value;
bitField0_ |= 0x80000000;
onChanged();
return this;
}
/**
*
* optionally points to a type_variation_anchor defined in this plan.
* Applies to all members of union other than the Typed null (which should
* directly declare the type variation).
*
*
* uint32 type_variation_reference = 51;
* @return This builder for chaining.
*/
public Builder clearTypeVariationReference() {
bitField0_ = (bitField0_ & ~0x80000000);
typeVariationReference_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:substrait.Expression.Literal)
}
// @@protoc_insertion_point(class_scope:substrait.Expression.Literal)
private static final io.substrait.proto.Expression.Literal DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.Expression.Literal();
}
public static io.substrait.proto.Expression.Literal getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Literal parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.Expression.Literal getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NestedOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.Expression.Nested)
com.google.protobuf.MessageOrBuilder {
/**
*
* Whether the returned nested type is nullable.
*
*
* bool nullable = 1;
* @return The nullable.
*/
boolean getNullable();
/**
*
* Optionally points to a type_variation_anchor defined in this plan for
* the returned nested type.
*
*
* uint32 type_variation_reference = 2;
* @return The typeVariationReference.
*/
int getTypeVariationReference();
/**
* .substrait.Expression.Nested.Struct struct = 3;
* @return Whether the struct field is set.
*/
boolean hasStruct();
/**
* .substrait.Expression.Nested.Struct struct = 3;
* @return The struct.
*/
io.substrait.proto.Expression.Nested.Struct getStruct();
/**
* .substrait.Expression.Nested.Struct struct = 3;
*/
io.substrait.proto.Expression.Nested.StructOrBuilder getStructOrBuilder();
/**
* .substrait.Expression.Nested.List list = 4;
* @return Whether the list field is set.
*/
boolean hasList();
/**
* .substrait.Expression.Nested.List list = 4;
* @return The list.
*/
io.substrait.proto.Expression.Nested.List getList();
/**
* .substrait.Expression.Nested.List list = 4;
*/
io.substrait.proto.Expression.Nested.ListOrBuilder getListOrBuilder();
/**
* .substrait.Expression.Nested.Map map = 5;
* @return Whether the map field is set.
*/
boolean hasMap();
/**
* .substrait.Expression.Nested.Map map = 5;
* @return The map.
*/
io.substrait.proto.Expression.Nested.Map getMap();
/**
* .substrait.Expression.Nested.Map map = 5;
*/
io.substrait.proto.Expression.Nested.MapOrBuilder getMapOrBuilder();
io.substrait.proto.Expression.Nested.NestedTypeCase getNestedTypeCase();
}
/**
*
* Expression to dynamically construct nested types.
*
*
* Protobuf type {@code substrait.Expression.Nested}
*/
public static final class Nested extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Expression.Nested)
NestedOrBuilder {
private static final long serialVersionUID = 0L;
// Use Nested.newBuilder() to construct.
private Nested(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Nested() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Nested();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Nested_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Nested_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Nested.class, io.substrait.proto.Expression.Nested.Builder.class);
}
public interface MapOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.Expression.Nested.Map)
com.google.protobuf.MessageOrBuilder {
/**
*
* One or more key-value pairs. To specify an empty map, use
* Literal.empty_map (otherwise type information would be missing).
*
*
* repeated .substrait.Expression.Nested.Map.KeyValue key_values = 1;
*/
java.util.List
getKeyValuesList();
/**
*
* One or more key-value pairs. To specify an empty map, use
* Literal.empty_map (otherwise type information would be missing).
*
*
* repeated .substrait.Expression.Nested.Map.KeyValue key_values = 1;
*/
io.substrait.proto.Expression.Nested.Map.KeyValue getKeyValues(int index);
/**
*
* One or more key-value pairs. To specify an empty map, use
* Literal.empty_map (otherwise type information would be missing).
*
*
* repeated .substrait.Expression.Nested.Map.KeyValue key_values = 1;
*/
int getKeyValuesCount();
/**
*
* One or more key-value pairs. To specify an empty map, use
* Literal.empty_map (otherwise type information would be missing).
*
*
* repeated .substrait.Expression.Nested.Map.KeyValue key_values = 1;
*/
java.util.List extends io.substrait.proto.Expression.Nested.Map.KeyValueOrBuilder>
getKeyValuesOrBuilderList();
/**
*
* One or more key-value pairs. To specify an empty map, use
* Literal.empty_map (otherwise type information would be missing).
*
*
* repeated .substrait.Expression.Nested.Map.KeyValue key_values = 1;
*/
io.substrait.proto.Expression.Nested.Map.KeyValueOrBuilder getKeyValuesOrBuilder(
int index);
}
/**
* Protobuf type {@code substrait.Expression.Nested.Map}
*/
public static final class Map extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Expression.Nested.Map)
MapOrBuilder {
private static final long serialVersionUID = 0L;
// Use Map.newBuilder() to construct.
private Map(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Map() {
keyValues_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Map();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Nested_Map_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Nested_Map_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Nested.Map.class, io.substrait.proto.Expression.Nested.Map.Builder.class);
}
public interface KeyValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.Expression.Nested.Map.KeyValue)
com.google.protobuf.MessageOrBuilder {
/**
*
* Mandatory key/value expressions.
*
*
* .substrait.Expression key = 1;
* @return Whether the key field is set.
*/
boolean hasKey();
/**
*
* Mandatory key/value expressions.
*
*
* .substrait.Expression key = 1;
* @return The key.
*/
io.substrait.proto.Expression getKey();
/**
*
* Mandatory key/value expressions.
*
*
* .substrait.Expression key = 1;
*/
io.substrait.proto.ExpressionOrBuilder getKeyOrBuilder();
/**
* .substrait.Expression value = 2;
* @return Whether the value field is set.
*/
boolean hasValue();
/**
* .substrait.Expression value = 2;
* @return The value.
*/
io.substrait.proto.Expression getValue();
/**
* .substrait.Expression value = 2;
*/
io.substrait.proto.ExpressionOrBuilder getValueOrBuilder();
}
/**
* Protobuf type {@code substrait.Expression.Nested.Map.KeyValue}
*/
public static final class KeyValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Expression.Nested.Map.KeyValue)
KeyValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use KeyValue.newBuilder() to construct.
private KeyValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private KeyValue() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new KeyValue();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Nested_Map_KeyValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Nested_Map_KeyValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Nested.Map.KeyValue.class, io.substrait.proto.Expression.Nested.Map.KeyValue.Builder.class);
}
private int bitField0_;
public static final int KEY_FIELD_NUMBER = 1;
private io.substrait.proto.Expression key_;
/**
*
* Mandatory key/value expressions.
*
*
* .substrait.Expression key = 1;
* @return Whether the key field is set.
*/
@java.lang.Override
public boolean hasKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Mandatory key/value expressions.
*
*
* .substrait.Expression key = 1;
* @return The key.
*/
@java.lang.Override
public io.substrait.proto.Expression getKey() {
return key_ == null ? io.substrait.proto.Expression.getDefaultInstance() : key_;
}
/**
*
* Mandatory key/value expressions.
*
*
* .substrait.Expression key = 1;
*/
@java.lang.Override
public io.substrait.proto.ExpressionOrBuilder getKeyOrBuilder() {
return key_ == null ? io.substrait.proto.Expression.getDefaultInstance() : key_;
}
public static final int VALUE_FIELD_NUMBER = 2;
private io.substrait.proto.Expression value_;
/**
* .substrait.Expression value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .substrait.Expression value = 2;
* @return The value.
*/
@java.lang.Override
public io.substrait.proto.Expression getValue() {
return value_ == null ? io.substrait.proto.Expression.getDefaultInstance() : value_;
}
/**
* .substrait.Expression value = 2;
*/
@java.lang.Override
public io.substrait.proto.ExpressionOrBuilder getValueOrBuilder() {
return value_ == null ? io.substrait.proto.Expression.getDefaultInstance() : value_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getKey());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getValue());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getKey());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getValue());
}
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 io.substrait.proto.Expression.Nested.Map.KeyValue)) {
return super.equals(obj);
}
io.substrait.proto.Expression.Nested.Map.KeyValue other = (io.substrait.proto.Expression.Nested.Map.KeyValue) obj;
if (hasKey() != other.hasKey()) return false;
if (hasKey()) {
if (!getKey()
.equals(other.getKey())) return false;
}
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.Expression.Nested.Map.KeyValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Nested.Map.KeyValue parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Nested.Map.KeyValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Nested.Map.KeyValue parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Nested.Map.KeyValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Nested.Map.KeyValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Nested.Map.KeyValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Nested.Map.KeyValue 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 io.substrait.proto.Expression.Nested.Map.KeyValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Nested.Map.KeyValue 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 io.substrait.proto.Expression.Nested.Map.KeyValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Nested.Map.KeyValue 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(io.substrait.proto.Expression.Nested.Map.KeyValue 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 substrait.Expression.Nested.Map.KeyValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Expression.Nested.Map.KeyValue)
io.substrait.proto.Expression.Nested.Map.KeyValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Nested_Map_KeyValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Nested_Map_KeyValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Nested.Map.KeyValue.class, io.substrait.proto.Expression.Nested.Map.KeyValue.Builder.class);
}
// Construct using io.substrait.proto.Expression.Nested.Map.KeyValue.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getKeyFieldBuilder();
getValueFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
key_ = null;
if (keyBuilder_ != null) {
keyBuilder_.dispose();
keyBuilder_ = null;
}
value_ = null;
if (valueBuilder_ != null) {
valueBuilder_.dispose();
valueBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Nested_Map_KeyValue_descriptor;
}
@java.lang.Override
public io.substrait.proto.Expression.Nested.Map.KeyValue getDefaultInstanceForType() {
return io.substrait.proto.Expression.Nested.Map.KeyValue.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Expression.Nested.Map.KeyValue build() {
io.substrait.proto.Expression.Nested.Map.KeyValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Expression.Nested.Map.KeyValue buildPartial() {
io.substrait.proto.Expression.Nested.Map.KeyValue result = new io.substrait.proto.Expression.Nested.Map.KeyValue(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.Expression.Nested.Map.KeyValue result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.key_ = keyBuilder_ == null
? key_
: keyBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.value_ = valueBuilder_ == null
? value_
: valueBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@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 io.substrait.proto.Expression.Nested.Map.KeyValue) {
return mergeFrom((io.substrait.proto.Expression.Nested.Map.KeyValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Expression.Nested.Map.KeyValue other) {
if (other == io.substrait.proto.Expression.Nested.Map.KeyValue.getDefaultInstance()) return this;
if (other.hasKey()) {
mergeKey(other.getKey());
}
if (other.hasValue()) {
mergeValue(other.getValue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getKeyFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getValueFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private io.substrait.proto.Expression key_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> keyBuilder_;
/**
*
* Mandatory key/value expressions.
*
*
* .substrait.Expression key = 1;
* @return Whether the key field is set.
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Mandatory key/value expressions.
*
*
* .substrait.Expression key = 1;
* @return The key.
*/
public io.substrait.proto.Expression getKey() {
if (keyBuilder_ == null) {
return key_ == null ? io.substrait.proto.Expression.getDefaultInstance() : key_;
} else {
return keyBuilder_.getMessage();
}
}
/**
*
* Mandatory key/value expressions.
*
*
* .substrait.Expression key = 1;
*/
public Builder setKey(io.substrait.proto.Expression value) {
if (keyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
} else {
keyBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Mandatory key/value expressions.
*
*
* .substrait.Expression key = 1;
*/
public Builder setKey(
io.substrait.proto.Expression.Builder builderForValue) {
if (keyBuilder_ == null) {
key_ = builderForValue.build();
} else {
keyBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Mandatory key/value expressions.
*
*
* .substrait.Expression key = 1;
*/
public Builder mergeKey(io.substrait.proto.Expression value) {
if (keyBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
key_ != null &&
key_ != io.substrait.proto.Expression.getDefaultInstance()) {
getKeyBuilder().mergeFrom(value);
} else {
key_ = value;
}
} else {
keyBuilder_.mergeFrom(value);
}
if (key_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Mandatory key/value expressions.
*
*
* .substrait.Expression key = 1;
*/
public Builder clearKey() {
bitField0_ = (bitField0_ & ~0x00000001);
key_ = null;
if (keyBuilder_ != null) {
keyBuilder_.dispose();
keyBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Mandatory key/value expressions.
*
*
* .substrait.Expression key = 1;
*/
public io.substrait.proto.Expression.Builder getKeyBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getKeyFieldBuilder().getBuilder();
}
/**
*
* Mandatory key/value expressions.
*
*
* .substrait.Expression key = 1;
*/
public io.substrait.proto.ExpressionOrBuilder getKeyOrBuilder() {
if (keyBuilder_ != null) {
return keyBuilder_.getMessageOrBuilder();
} else {
return key_ == null ?
io.substrait.proto.Expression.getDefaultInstance() : key_;
}
}
/**
*
* Mandatory key/value expressions.
*
*
* .substrait.Expression key = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>
getKeyFieldBuilder() {
if (keyBuilder_ == null) {
keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>(
getKey(),
getParentForChildren(),
isClean());
key_ = null;
}
return keyBuilder_;
}
private io.substrait.proto.Expression value_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> valueBuilder_;
/**
* .substrait.Expression value = 2;
* @return Whether the value field is set.
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .substrait.Expression value = 2;
* @return The value.
*/
public io.substrait.proto.Expression getValue() {
if (valueBuilder_ == null) {
return value_ == null ? io.substrait.proto.Expression.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
* .substrait.Expression value = 2;
*/
public Builder setValue(io.substrait.proto.Expression value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
} else {
valueBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .substrait.Expression value = 2;
*/
public Builder setValue(
io.substrait.proto.Expression.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .substrait.Expression value = 2;
*/
public Builder mergeValue(io.substrait.proto.Expression value) {
if (valueBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
value_ != null &&
value_ != io.substrait.proto.Expression.getDefaultInstance()) {
getValueBuilder().mergeFrom(value);
} else {
value_ = value;
}
} else {
valueBuilder_.mergeFrom(value);
}
if (value_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .substrait.Expression value = 2;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = null;
if (valueBuilder_ != null) {
valueBuilder_.dispose();
valueBuilder_ = null;
}
onChanged();
return this;
}
/**
* .substrait.Expression value = 2;
*/
public io.substrait.proto.Expression.Builder getValueBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
* .substrait.Expression value = 2;
*/
public io.substrait.proto.ExpressionOrBuilder getValueOrBuilder() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilder();
} else {
return value_ == null ?
io.substrait.proto.Expression.getDefaultInstance() : value_;
}
}
/**
* .substrait.Expression value = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>(
getValue(),
getParentForChildren(),
isClean());
value_ = null;
}
return valueBuilder_;
}
@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:substrait.Expression.Nested.Map.KeyValue)
}
// @@protoc_insertion_point(class_scope:substrait.Expression.Nested.Map.KeyValue)
private static final io.substrait.proto.Expression.Nested.Map.KeyValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.Expression.Nested.Map.KeyValue();
}
public static io.substrait.proto.Expression.Nested.Map.KeyValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public KeyValue parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.Expression.Nested.Map.KeyValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int KEY_VALUES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List keyValues_;
/**
*
* One or more key-value pairs. To specify an empty map, use
* Literal.empty_map (otherwise type information would be missing).
*
*
* repeated .substrait.Expression.Nested.Map.KeyValue key_values = 1;
*/
@java.lang.Override
public java.util.List getKeyValuesList() {
return keyValues_;
}
/**
*
* One or more key-value pairs. To specify an empty map, use
* Literal.empty_map (otherwise type information would be missing).
*
*
* repeated .substrait.Expression.Nested.Map.KeyValue key_values = 1;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.Expression.Nested.Map.KeyValueOrBuilder>
getKeyValuesOrBuilderList() {
return keyValues_;
}
/**
*
* One or more key-value pairs. To specify an empty map, use
* Literal.empty_map (otherwise type information would be missing).
*
*
* repeated .substrait.Expression.Nested.Map.KeyValue key_values = 1;
*/
@java.lang.Override
public int getKeyValuesCount() {
return keyValues_.size();
}
/**
*
* One or more key-value pairs. To specify an empty map, use
* Literal.empty_map (otherwise type information would be missing).
*
*
* repeated .substrait.Expression.Nested.Map.KeyValue key_values = 1;
*/
@java.lang.Override
public io.substrait.proto.Expression.Nested.Map.KeyValue getKeyValues(int index) {
return keyValues_.get(index);
}
/**
*
* One or more key-value pairs. To specify an empty map, use
* Literal.empty_map (otherwise type information would be missing).
*
*
* repeated .substrait.Expression.Nested.Map.KeyValue key_values = 1;
*/
@java.lang.Override
public io.substrait.proto.Expression.Nested.Map.KeyValueOrBuilder getKeyValuesOrBuilder(
int index) {
return keyValues_.get(index);
}
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 {
for (int i = 0; i < keyValues_.size(); i++) {
output.writeMessage(1, keyValues_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < keyValues_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, keyValues_.get(i));
}
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 io.substrait.proto.Expression.Nested.Map)) {
return super.equals(obj);
}
io.substrait.proto.Expression.Nested.Map other = (io.substrait.proto.Expression.Nested.Map) obj;
if (!getKeyValuesList()
.equals(other.getKeyValuesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getKeyValuesCount() > 0) {
hash = (37 * hash) + KEY_VALUES_FIELD_NUMBER;
hash = (53 * hash) + getKeyValuesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.Expression.Nested.Map parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Nested.Map parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Nested.Map parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Nested.Map parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Nested.Map parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Nested.Map parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Nested.Map parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Nested.Map 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 io.substrait.proto.Expression.Nested.Map parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Nested.Map 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 io.substrait.proto.Expression.Nested.Map parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Nested.Map 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(io.substrait.proto.Expression.Nested.Map 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 substrait.Expression.Nested.Map}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Expression.Nested.Map)
io.substrait.proto.Expression.Nested.MapOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Nested_Map_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Nested_Map_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Nested.Map.class, io.substrait.proto.Expression.Nested.Map.Builder.class);
}
// Construct using io.substrait.proto.Expression.Nested.Map.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (keyValuesBuilder_ == null) {
keyValues_ = java.util.Collections.emptyList();
} else {
keyValues_ = null;
keyValuesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Nested_Map_descriptor;
}
@java.lang.Override
public io.substrait.proto.Expression.Nested.Map getDefaultInstanceForType() {
return io.substrait.proto.Expression.Nested.Map.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Expression.Nested.Map build() {
io.substrait.proto.Expression.Nested.Map result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Expression.Nested.Map buildPartial() {
io.substrait.proto.Expression.Nested.Map result = new io.substrait.proto.Expression.Nested.Map(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.substrait.proto.Expression.Nested.Map result) {
if (keyValuesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
keyValues_ = java.util.Collections.unmodifiableList(keyValues_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.keyValues_ = keyValues_;
} else {
result.keyValues_ = keyValuesBuilder_.build();
}
}
private void buildPartial0(io.substrait.proto.Expression.Nested.Map result) {
int from_bitField0_ = bitField0_;
}
@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 io.substrait.proto.Expression.Nested.Map) {
return mergeFrom((io.substrait.proto.Expression.Nested.Map)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Expression.Nested.Map other) {
if (other == io.substrait.proto.Expression.Nested.Map.getDefaultInstance()) return this;
if (keyValuesBuilder_ == null) {
if (!other.keyValues_.isEmpty()) {
if (keyValues_.isEmpty()) {
keyValues_ = other.keyValues_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureKeyValuesIsMutable();
keyValues_.addAll(other.keyValues_);
}
onChanged();
}
} else {
if (!other.keyValues_.isEmpty()) {
if (keyValuesBuilder_.isEmpty()) {
keyValuesBuilder_.dispose();
keyValuesBuilder_ = null;
keyValues_ = other.keyValues_;
bitField0_ = (bitField0_ & ~0x00000001);
keyValuesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getKeyValuesFieldBuilder() : null;
} else {
keyValuesBuilder_.addAllMessages(other.keyValues_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.substrait.proto.Expression.Nested.Map.KeyValue m =
input.readMessage(
io.substrait.proto.Expression.Nested.Map.KeyValue.parser(),
extensionRegistry);
if (keyValuesBuilder_ == null) {
ensureKeyValuesIsMutable();
keyValues_.add(m);
} else {
keyValuesBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List keyValues_ =
java.util.Collections.emptyList();
private void ensureKeyValuesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
keyValues_ = new java.util.ArrayList(keyValues_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression.Nested.Map.KeyValue, io.substrait.proto.Expression.Nested.Map.KeyValue.Builder, io.substrait.proto.Expression.Nested.Map.KeyValueOrBuilder> keyValuesBuilder_;
/**
*
* One or more key-value pairs. To specify an empty map, use
* Literal.empty_map (otherwise type information would be missing).
*
*
* repeated .substrait.Expression.Nested.Map.KeyValue key_values = 1;
*/
public java.util.List getKeyValuesList() {
if (keyValuesBuilder_ == null) {
return java.util.Collections.unmodifiableList(keyValues_);
} else {
return keyValuesBuilder_.getMessageList();
}
}
/**
*
* One or more key-value pairs. To specify an empty map, use
* Literal.empty_map (otherwise type information would be missing).
*
*
* repeated .substrait.Expression.Nested.Map.KeyValue key_values = 1;
*/
public int getKeyValuesCount() {
if (keyValuesBuilder_ == null) {
return keyValues_.size();
} else {
return keyValuesBuilder_.getCount();
}
}
/**
*
* One or more key-value pairs. To specify an empty map, use
* Literal.empty_map (otherwise type information would be missing).
*
*
* repeated .substrait.Expression.Nested.Map.KeyValue key_values = 1;
*/
public io.substrait.proto.Expression.Nested.Map.KeyValue getKeyValues(int index) {
if (keyValuesBuilder_ == null) {
return keyValues_.get(index);
} else {
return keyValuesBuilder_.getMessage(index);
}
}
/**
*
* One or more key-value pairs. To specify an empty map, use
* Literal.empty_map (otherwise type information would be missing).
*
*
* repeated .substrait.Expression.Nested.Map.KeyValue key_values = 1;
*/
public Builder setKeyValues(
int index, io.substrait.proto.Expression.Nested.Map.KeyValue value) {
if (keyValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeyValuesIsMutable();
keyValues_.set(index, value);
onChanged();
} else {
keyValuesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* One or more key-value pairs. To specify an empty map, use
* Literal.empty_map (otherwise type information would be missing).
*
*
* repeated .substrait.Expression.Nested.Map.KeyValue key_values = 1;
*/
public Builder setKeyValues(
int index, io.substrait.proto.Expression.Nested.Map.KeyValue.Builder builderForValue) {
if (keyValuesBuilder_ == null) {
ensureKeyValuesIsMutable();
keyValues_.set(index, builderForValue.build());
onChanged();
} else {
keyValuesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* One or more key-value pairs. To specify an empty map, use
* Literal.empty_map (otherwise type information would be missing).
*
*
* repeated .substrait.Expression.Nested.Map.KeyValue key_values = 1;
*/
public Builder addKeyValues(io.substrait.proto.Expression.Nested.Map.KeyValue value) {
if (keyValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeyValuesIsMutable();
keyValues_.add(value);
onChanged();
} else {
keyValuesBuilder_.addMessage(value);
}
return this;
}
/**
*
* One or more key-value pairs. To specify an empty map, use
* Literal.empty_map (otherwise type information would be missing).
*
*
* repeated .substrait.Expression.Nested.Map.KeyValue key_values = 1;
*/
public Builder addKeyValues(
int index, io.substrait.proto.Expression.Nested.Map.KeyValue value) {
if (keyValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeyValuesIsMutable();
keyValues_.add(index, value);
onChanged();
} else {
keyValuesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* One or more key-value pairs. To specify an empty map, use
* Literal.empty_map (otherwise type information would be missing).
*
*
* repeated .substrait.Expression.Nested.Map.KeyValue key_values = 1;
*/
public Builder addKeyValues(
io.substrait.proto.Expression.Nested.Map.KeyValue.Builder builderForValue) {
if (keyValuesBuilder_ == null) {
ensureKeyValuesIsMutable();
keyValues_.add(builderForValue.build());
onChanged();
} else {
keyValuesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* One or more key-value pairs. To specify an empty map, use
* Literal.empty_map (otherwise type information would be missing).
*
*
* repeated .substrait.Expression.Nested.Map.KeyValue key_values = 1;
*/
public Builder addKeyValues(
int index, io.substrait.proto.Expression.Nested.Map.KeyValue.Builder builderForValue) {
if (keyValuesBuilder_ == null) {
ensureKeyValuesIsMutable();
keyValues_.add(index, builderForValue.build());
onChanged();
} else {
keyValuesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* One or more key-value pairs. To specify an empty map, use
* Literal.empty_map (otherwise type information would be missing).
*
*
* repeated .substrait.Expression.Nested.Map.KeyValue key_values = 1;
*/
public Builder addAllKeyValues(
java.lang.Iterable extends io.substrait.proto.Expression.Nested.Map.KeyValue> values) {
if (keyValuesBuilder_ == null) {
ensureKeyValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, keyValues_);
onChanged();
} else {
keyValuesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* One or more key-value pairs. To specify an empty map, use
* Literal.empty_map (otherwise type information would be missing).
*
*
* repeated .substrait.Expression.Nested.Map.KeyValue key_values = 1;
*/
public Builder clearKeyValues() {
if (keyValuesBuilder_ == null) {
keyValues_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
keyValuesBuilder_.clear();
}
return this;
}
/**
*
* One or more key-value pairs. To specify an empty map, use
* Literal.empty_map (otherwise type information would be missing).
*
*
* repeated .substrait.Expression.Nested.Map.KeyValue key_values = 1;
*/
public Builder removeKeyValues(int index) {
if (keyValuesBuilder_ == null) {
ensureKeyValuesIsMutable();
keyValues_.remove(index);
onChanged();
} else {
keyValuesBuilder_.remove(index);
}
return this;
}
/**
*
* One or more key-value pairs. To specify an empty map, use
* Literal.empty_map (otherwise type information would be missing).
*
*
* repeated .substrait.Expression.Nested.Map.KeyValue key_values = 1;
*/
public io.substrait.proto.Expression.Nested.Map.KeyValue.Builder getKeyValuesBuilder(
int index) {
return getKeyValuesFieldBuilder().getBuilder(index);
}
/**
*
* One or more key-value pairs. To specify an empty map, use
* Literal.empty_map (otherwise type information would be missing).
*
*
* repeated .substrait.Expression.Nested.Map.KeyValue key_values = 1;
*/
public io.substrait.proto.Expression.Nested.Map.KeyValueOrBuilder getKeyValuesOrBuilder(
int index) {
if (keyValuesBuilder_ == null) {
return keyValues_.get(index); } else {
return keyValuesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* One or more key-value pairs. To specify an empty map, use
* Literal.empty_map (otherwise type information would be missing).
*
*
* repeated .substrait.Expression.Nested.Map.KeyValue key_values = 1;
*/
public java.util.List extends io.substrait.proto.Expression.Nested.Map.KeyValueOrBuilder>
getKeyValuesOrBuilderList() {
if (keyValuesBuilder_ != null) {
return keyValuesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(keyValues_);
}
}
/**
*
* One or more key-value pairs. To specify an empty map, use
* Literal.empty_map (otherwise type information would be missing).
*
*
* repeated .substrait.Expression.Nested.Map.KeyValue key_values = 1;
*/
public io.substrait.proto.Expression.Nested.Map.KeyValue.Builder addKeyValuesBuilder() {
return getKeyValuesFieldBuilder().addBuilder(
io.substrait.proto.Expression.Nested.Map.KeyValue.getDefaultInstance());
}
/**
*
* One or more key-value pairs. To specify an empty map, use
* Literal.empty_map (otherwise type information would be missing).
*
*
* repeated .substrait.Expression.Nested.Map.KeyValue key_values = 1;
*/
public io.substrait.proto.Expression.Nested.Map.KeyValue.Builder addKeyValuesBuilder(
int index) {
return getKeyValuesFieldBuilder().addBuilder(
index, io.substrait.proto.Expression.Nested.Map.KeyValue.getDefaultInstance());
}
/**
*
* One or more key-value pairs. To specify an empty map, use
* Literal.empty_map (otherwise type information would be missing).
*
*
* repeated .substrait.Expression.Nested.Map.KeyValue key_values = 1;
*/
public java.util.List
getKeyValuesBuilderList() {
return getKeyValuesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression.Nested.Map.KeyValue, io.substrait.proto.Expression.Nested.Map.KeyValue.Builder, io.substrait.proto.Expression.Nested.Map.KeyValueOrBuilder>
getKeyValuesFieldBuilder() {
if (keyValuesBuilder_ == null) {
keyValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression.Nested.Map.KeyValue, io.substrait.proto.Expression.Nested.Map.KeyValue.Builder, io.substrait.proto.Expression.Nested.Map.KeyValueOrBuilder>(
keyValues_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
keyValues_ = null;
}
return keyValuesBuilder_;
}
@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:substrait.Expression.Nested.Map)
}
// @@protoc_insertion_point(class_scope:substrait.Expression.Nested.Map)
private static final io.substrait.proto.Expression.Nested.Map DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.Expression.Nested.Map();
}
public static io.substrait.proto.Expression.Nested.Map getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Map parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.Expression.Nested.Map getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StructOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.Expression.Nested.Struct)
com.google.protobuf.MessageOrBuilder {
/**
*
* Zero or more possibly heterogeneously-typed list of expressions that
* form the struct fields.
*
*
* repeated .substrait.Expression fields = 1;
*/
java.util.List
getFieldsList();
/**
*
* Zero or more possibly heterogeneously-typed list of expressions that
* form the struct fields.
*
*
* repeated .substrait.Expression fields = 1;
*/
io.substrait.proto.Expression getFields(int index);
/**
*
* Zero or more possibly heterogeneously-typed list of expressions that
* form the struct fields.
*
*
* repeated .substrait.Expression fields = 1;
*/
int getFieldsCount();
/**
*
* Zero or more possibly heterogeneously-typed list of expressions that
* form the struct fields.
*
*
* repeated .substrait.Expression fields = 1;
*/
java.util.List extends io.substrait.proto.ExpressionOrBuilder>
getFieldsOrBuilderList();
/**
*
* Zero or more possibly heterogeneously-typed list of expressions that
* form the struct fields.
*
*
* repeated .substrait.Expression fields = 1;
*/
io.substrait.proto.ExpressionOrBuilder getFieldsOrBuilder(
int index);
}
/**
* Protobuf type {@code substrait.Expression.Nested.Struct}
*/
public static final class Struct extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Expression.Nested.Struct)
StructOrBuilder {
private static final long serialVersionUID = 0L;
// Use Struct.newBuilder() to construct.
private Struct(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Struct() {
fields_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Struct();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Nested_Struct_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Nested_Struct_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Nested.Struct.class, io.substrait.proto.Expression.Nested.Struct.Builder.class);
}
public static final int FIELDS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List fields_;
/**
*
* Zero or more possibly heterogeneously-typed list of expressions that
* form the struct fields.
*
*
* repeated .substrait.Expression fields = 1;
*/
@java.lang.Override
public java.util.List getFieldsList() {
return fields_;
}
/**
*
* Zero or more possibly heterogeneously-typed list of expressions that
* form the struct fields.
*
*
* repeated .substrait.Expression fields = 1;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.ExpressionOrBuilder>
getFieldsOrBuilderList() {
return fields_;
}
/**
*
* Zero or more possibly heterogeneously-typed list of expressions that
* form the struct fields.
*
*
* repeated .substrait.Expression fields = 1;
*/
@java.lang.Override
public int getFieldsCount() {
return fields_.size();
}
/**
*
* Zero or more possibly heterogeneously-typed list of expressions that
* form the struct fields.
*
*
* repeated .substrait.Expression fields = 1;
*/
@java.lang.Override
public io.substrait.proto.Expression getFields(int index) {
return fields_.get(index);
}
/**
*
* Zero or more possibly heterogeneously-typed list of expressions that
* form the struct fields.
*
*
* repeated .substrait.Expression fields = 1;
*/
@java.lang.Override
public io.substrait.proto.ExpressionOrBuilder getFieldsOrBuilder(
int index) {
return fields_.get(index);
}
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 {
for (int i = 0; i < fields_.size(); i++) {
output.writeMessage(1, fields_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < fields_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, fields_.get(i));
}
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 io.substrait.proto.Expression.Nested.Struct)) {
return super.equals(obj);
}
io.substrait.proto.Expression.Nested.Struct other = (io.substrait.proto.Expression.Nested.Struct) obj;
if (!getFieldsList()
.equals(other.getFieldsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getFieldsCount() > 0) {
hash = (37 * hash) + FIELDS_FIELD_NUMBER;
hash = (53 * hash) + getFieldsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.Expression.Nested.Struct parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Nested.Struct parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Nested.Struct parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Nested.Struct parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Nested.Struct parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Nested.Struct parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Nested.Struct parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Nested.Struct 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 io.substrait.proto.Expression.Nested.Struct parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Nested.Struct 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 io.substrait.proto.Expression.Nested.Struct parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Nested.Struct 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(io.substrait.proto.Expression.Nested.Struct 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 substrait.Expression.Nested.Struct}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Expression.Nested.Struct)
io.substrait.proto.Expression.Nested.StructOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Nested_Struct_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Nested_Struct_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Nested.Struct.class, io.substrait.proto.Expression.Nested.Struct.Builder.class);
}
// Construct using io.substrait.proto.Expression.Nested.Struct.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (fieldsBuilder_ == null) {
fields_ = java.util.Collections.emptyList();
} else {
fields_ = null;
fieldsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Nested_Struct_descriptor;
}
@java.lang.Override
public io.substrait.proto.Expression.Nested.Struct getDefaultInstanceForType() {
return io.substrait.proto.Expression.Nested.Struct.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Expression.Nested.Struct build() {
io.substrait.proto.Expression.Nested.Struct result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Expression.Nested.Struct buildPartial() {
io.substrait.proto.Expression.Nested.Struct result = new io.substrait.proto.Expression.Nested.Struct(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.substrait.proto.Expression.Nested.Struct result) {
if (fieldsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
fields_ = java.util.Collections.unmodifiableList(fields_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.fields_ = fields_;
} else {
result.fields_ = fieldsBuilder_.build();
}
}
private void buildPartial0(io.substrait.proto.Expression.Nested.Struct result) {
int from_bitField0_ = bitField0_;
}
@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 io.substrait.proto.Expression.Nested.Struct) {
return mergeFrom((io.substrait.proto.Expression.Nested.Struct)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Expression.Nested.Struct other) {
if (other == io.substrait.proto.Expression.Nested.Struct.getDefaultInstance()) return this;
if (fieldsBuilder_ == null) {
if (!other.fields_.isEmpty()) {
if (fields_.isEmpty()) {
fields_ = other.fields_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureFieldsIsMutable();
fields_.addAll(other.fields_);
}
onChanged();
}
} else {
if (!other.fields_.isEmpty()) {
if (fieldsBuilder_.isEmpty()) {
fieldsBuilder_.dispose();
fieldsBuilder_ = null;
fields_ = other.fields_;
bitField0_ = (bitField0_ & ~0x00000001);
fieldsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFieldsFieldBuilder() : null;
} else {
fieldsBuilder_.addAllMessages(other.fields_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.substrait.proto.Expression m =
input.readMessage(
io.substrait.proto.Expression.parser(),
extensionRegistry);
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(m);
} else {
fieldsBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List fields_ =
java.util.Collections.emptyList();
private void ensureFieldsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
fields_ = new java.util.ArrayList(fields_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> fieldsBuilder_;
/**
*
* Zero or more possibly heterogeneously-typed list of expressions that
* form the struct fields.
*
*
* repeated .substrait.Expression fields = 1;
*/
public java.util.List getFieldsList() {
if (fieldsBuilder_ == null) {
return java.util.Collections.unmodifiableList(fields_);
} else {
return fieldsBuilder_.getMessageList();
}
}
/**
*
* Zero or more possibly heterogeneously-typed list of expressions that
* form the struct fields.
*
*
* repeated .substrait.Expression fields = 1;
*/
public int getFieldsCount() {
if (fieldsBuilder_ == null) {
return fields_.size();
} else {
return fieldsBuilder_.getCount();
}
}
/**
*
* Zero or more possibly heterogeneously-typed list of expressions that
* form the struct fields.
*
*
* repeated .substrait.Expression fields = 1;
*/
public io.substrait.proto.Expression getFields(int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index);
} else {
return fieldsBuilder_.getMessage(index);
}
}
/**
*
* Zero or more possibly heterogeneously-typed list of expressions that
* form the struct fields.
*
*
* repeated .substrait.Expression fields = 1;
*/
public Builder setFields(
int index, io.substrait.proto.Expression value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.set(index, value);
onChanged();
} else {
fieldsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Zero or more possibly heterogeneously-typed list of expressions that
* form the struct fields.
*
*
* repeated .substrait.Expression fields = 1;
*/
public Builder setFields(
int index, io.substrait.proto.Expression.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.set(index, builderForValue.build());
onChanged();
} else {
fieldsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Zero or more possibly heterogeneously-typed list of expressions that
* form the struct fields.
*
*
* repeated .substrait.Expression fields = 1;
*/
public Builder addFields(io.substrait.proto.Expression value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.add(value);
onChanged();
} else {
fieldsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Zero or more possibly heterogeneously-typed list of expressions that
* form the struct fields.
*
*
* repeated .substrait.Expression fields = 1;
*/
public Builder addFields(
int index, io.substrait.proto.Expression value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.add(index, value);
onChanged();
} else {
fieldsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Zero or more possibly heterogeneously-typed list of expressions that
* form the struct fields.
*
*
* repeated .substrait.Expression fields = 1;
*/
public Builder addFields(
io.substrait.proto.Expression.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(builderForValue.build());
onChanged();
} else {
fieldsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Zero or more possibly heterogeneously-typed list of expressions that
* form the struct fields.
*
*
* repeated .substrait.Expression fields = 1;
*/
public Builder addFields(
int index, io.substrait.proto.Expression.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(index, builderForValue.build());
onChanged();
} else {
fieldsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Zero or more possibly heterogeneously-typed list of expressions that
* form the struct fields.
*
*
* repeated .substrait.Expression fields = 1;
*/
public Builder addAllFields(
java.lang.Iterable extends io.substrait.proto.Expression> values) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fields_);
onChanged();
} else {
fieldsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Zero or more possibly heterogeneously-typed list of expressions that
* form the struct fields.
*
*
* repeated .substrait.Expression fields = 1;
*/
public Builder clearFields() {
if (fieldsBuilder_ == null) {
fields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
fieldsBuilder_.clear();
}
return this;
}
/**
*
* Zero or more possibly heterogeneously-typed list of expressions that
* form the struct fields.
*
*
* repeated .substrait.Expression fields = 1;
*/
public Builder removeFields(int index) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.remove(index);
onChanged();
} else {
fieldsBuilder_.remove(index);
}
return this;
}
/**
*
* Zero or more possibly heterogeneously-typed list of expressions that
* form the struct fields.
*
*
* repeated .substrait.Expression fields = 1;
*/
public io.substrait.proto.Expression.Builder getFieldsBuilder(
int index) {
return getFieldsFieldBuilder().getBuilder(index);
}
/**
*
* Zero or more possibly heterogeneously-typed list of expressions that
* form the struct fields.
*
*
* repeated .substrait.Expression fields = 1;
*/
public io.substrait.proto.ExpressionOrBuilder getFieldsOrBuilder(
int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index); } else {
return fieldsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Zero or more possibly heterogeneously-typed list of expressions that
* form the struct fields.
*
*
* repeated .substrait.Expression fields = 1;
*/
public java.util.List extends io.substrait.proto.ExpressionOrBuilder>
getFieldsOrBuilderList() {
if (fieldsBuilder_ != null) {
return fieldsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(fields_);
}
}
/**
*
* Zero or more possibly heterogeneously-typed list of expressions that
* form the struct fields.
*
*
* repeated .substrait.Expression fields = 1;
*/
public io.substrait.proto.Expression.Builder addFieldsBuilder() {
return getFieldsFieldBuilder().addBuilder(
io.substrait.proto.Expression.getDefaultInstance());
}
/**
*
* Zero or more possibly heterogeneously-typed list of expressions that
* form the struct fields.
*
*
* repeated .substrait.Expression fields = 1;
*/
public io.substrait.proto.Expression.Builder addFieldsBuilder(
int index) {
return getFieldsFieldBuilder().addBuilder(
index, io.substrait.proto.Expression.getDefaultInstance());
}
/**
*
* Zero or more possibly heterogeneously-typed list of expressions that
* form the struct fields.
*
*
* repeated .substrait.Expression fields = 1;
*/
public java.util.List
getFieldsBuilderList() {
return getFieldsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>
getFieldsFieldBuilder() {
if (fieldsBuilder_ == null) {
fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>(
fields_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
fields_ = null;
}
return fieldsBuilder_;
}
@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:substrait.Expression.Nested.Struct)
}
// @@protoc_insertion_point(class_scope:substrait.Expression.Nested.Struct)
private static final io.substrait.proto.Expression.Nested.Struct DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.Expression.Nested.Struct();
}
public static io.substrait.proto.Expression.Nested.Struct getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Struct parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.Expression.Nested.Struct getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.Expression.Nested.List)
com.google.protobuf.MessageOrBuilder {
/**
*
* A homogeneously-typed list of one or more expressions that form the
* list entries. To specify an empty list, use Literal.empty_list
* (otherwise type information would be missing).
*
*
* repeated .substrait.Expression values = 1;
*/
java.util.List
getValuesList();
/**
*
* A homogeneously-typed list of one or more expressions that form the
* list entries. To specify an empty list, use Literal.empty_list
* (otherwise type information would be missing).
*
*
* repeated .substrait.Expression values = 1;
*/
io.substrait.proto.Expression getValues(int index);
/**
*
* A homogeneously-typed list of one or more expressions that form the
* list entries. To specify an empty list, use Literal.empty_list
* (otherwise type information would be missing).
*
*
* repeated .substrait.Expression values = 1;
*/
int getValuesCount();
/**
*
* A homogeneously-typed list of one or more expressions that form the
* list entries. To specify an empty list, use Literal.empty_list
* (otherwise type information would be missing).
*
*
* repeated .substrait.Expression values = 1;
*/
java.util.List extends io.substrait.proto.ExpressionOrBuilder>
getValuesOrBuilderList();
/**
*
* A homogeneously-typed list of one or more expressions that form the
* list entries. To specify an empty list, use Literal.empty_list
* (otherwise type information would be missing).
*
*
* repeated .substrait.Expression values = 1;
*/
io.substrait.proto.ExpressionOrBuilder getValuesOrBuilder(
int index);
}
/**
* Protobuf type {@code substrait.Expression.Nested.List}
*/
public static final class List extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Expression.Nested.List)
ListOrBuilder {
private static final long serialVersionUID = 0L;
// Use List.newBuilder() to construct.
private List(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private List() {
values_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new List();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Nested_List_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Nested_List_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Nested.List.class, io.substrait.proto.Expression.Nested.List.Builder.class);
}
public static final int VALUES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List values_;
/**
*
* A homogeneously-typed list of one or more expressions that form the
* list entries. To specify an empty list, use Literal.empty_list
* (otherwise type information would be missing).
*
*
* repeated .substrait.Expression values = 1;
*/
@java.lang.Override
public java.util.List getValuesList() {
return values_;
}
/**
*
* A homogeneously-typed list of one or more expressions that form the
* list entries. To specify an empty list, use Literal.empty_list
* (otherwise type information would be missing).
*
*
* repeated .substrait.Expression values = 1;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.ExpressionOrBuilder>
getValuesOrBuilderList() {
return values_;
}
/**
*
* A homogeneously-typed list of one or more expressions that form the
* list entries. To specify an empty list, use Literal.empty_list
* (otherwise type information would be missing).
*
*
* repeated .substrait.Expression values = 1;
*/
@java.lang.Override
public int getValuesCount() {
return values_.size();
}
/**
*
* A homogeneously-typed list of one or more expressions that form the
* list entries. To specify an empty list, use Literal.empty_list
* (otherwise type information would be missing).
*
*
* repeated .substrait.Expression values = 1;
*/
@java.lang.Override
public io.substrait.proto.Expression getValues(int index) {
return values_.get(index);
}
/**
*
* A homogeneously-typed list of one or more expressions that form the
* list entries. To specify an empty list, use Literal.empty_list
* (otherwise type information would be missing).
*
*
* repeated .substrait.Expression values = 1;
*/
@java.lang.Override
public io.substrait.proto.ExpressionOrBuilder getValuesOrBuilder(
int index) {
return values_.get(index);
}
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 {
for (int i = 0; i < values_.size(); i++) {
output.writeMessage(1, values_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < values_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, values_.get(i));
}
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 io.substrait.proto.Expression.Nested.List)) {
return super.equals(obj);
}
io.substrait.proto.Expression.Nested.List other = (io.substrait.proto.Expression.Nested.List) obj;
if (!getValuesList()
.equals(other.getValuesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getValuesCount() > 0) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + getValuesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.Expression.Nested.List parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Nested.List parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Nested.List parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Nested.List parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Nested.List parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Nested.List parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Nested.List parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Nested.List 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 io.substrait.proto.Expression.Nested.List parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Nested.List 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 io.substrait.proto.Expression.Nested.List parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Nested.List 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(io.substrait.proto.Expression.Nested.List 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 substrait.Expression.Nested.List}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Expression.Nested.List)
io.substrait.proto.Expression.Nested.ListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Nested_List_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Nested_List_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Nested.List.class, io.substrait.proto.Expression.Nested.List.Builder.class);
}
// Construct using io.substrait.proto.Expression.Nested.List.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (valuesBuilder_ == null) {
values_ = java.util.Collections.emptyList();
} else {
values_ = null;
valuesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Nested_List_descriptor;
}
@java.lang.Override
public io.substrait.proto.Expression.Nested.List getDefaultInstanceForType() {
return io.substrait.proto.Expression.Nested.List.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Expression.Nested.List build() {
io.substrait.proto.Expression.Nested.List result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Expression.Nested.List buildPartial() {
io.substrait.proto.Expression.Nested.List result = new io.substrait.proto.Expression.Nested.List(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.substrait.proto.Expression.Nested.List result) {
if (valuesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
values_ = java.util.Collections.unmodifiableList(values_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.values_ = values_;
} else {
result.values_ = valuesBuilder_.build();
}
}
private void buildPartial0(io.substrait.proto.Expression.Nested.List result) {
int from_bitField0_ = bitField0_;
}
@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 io.substrait.proto.Expression.Nested.List) {
return mergeFrom((io.substrait.proto.Expression.Nested.List)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Expression.Nested.List other) {
if (other == io.substrait.proto.Expression.Nested.List.getDefaultInstance()) return this;
if (valuesBuilder_ == null) {
if (!other.values_.isEmpty()) {
if (values_.isEmpty()) {
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureValuesIsMutable();
values_.addAll(other.values_);
}
onChanged();
}
} else {
if (!other.values_.isEmpty()) {
if (valuesBuilder_.isEmpty()) {
valuesBuilder_.dispose();
valuesBuilder_ = null;
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000001);
valuesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getValuesFieldBuilder() : null;
} else {
valuesBuilder_.addAllMessages(other.values_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.substrait.proto.Expression m =
input.readMessage(
io.substrait.proto.Expression.parser(),
extensionRegistry);
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.add(m);
} else {
valuesBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List values_ =
java.util.Collections.emptyList();
private void ensureValuesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
values_ = new java.util.ArrayList(values_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> valuesBuilder_;
/**
*
* A homogeneously-typed list of one or more expressions that form the
* list entries. To specify an empty list, use Literal.empty_list
* (otherwise type information would be missing).
*
*
* repeated .substrait.Expression values = 1;
*/
public java.util.List getValuesList() {
if (valuesBuilder_ == null) {
return java.util.Collections.unmodifiableList(values_);
} else {
return valuesBuilder_.getMessageList();
}
}
/**
*
* A homogeneously-typed list of one or more expressions that form the
* list entries. To specify an empty list, use Literal.empty_list
* (otherwise type information would be missing).
*
*
* repeated .substrait.Expression values = 1;
*/
public int getValuesCount() {
if (valuesBuilder_ == null) {
return values_.size();
} else {
return valuesBuilder_.getCount();
}
}
/**
*
* A homogeneously-typed list of one or more expressions that form the
* list entries. To specify an empty list, use Literal.empty_list
* (otherwise type information would be missing).
*
*
* repeated .substrait.Expression values = 1;
*/
public io.substrait.proto.Expression getValues(int index) {
if (valuesBuilder_ == null) {
return values_.get(index);
} else {
return valuesBuilder_.getMessage(index);
}
}
/**
*
* A homogeneously-typed list of one or more expressions that form the
* list entries. To specify an empty list, use Literal.empty_list
* (otherwise type information would be missing).
*
*
* repeated .substrait.Expression values = 1;
*/
public Builder setValues(
int index, io.substrait.proto.Expression value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.set(index, value);
onChanged();
} else {
valuesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* A homogeneously-typed list of one or more expressions that form the
* list entries. To specify an empty list, use Literal.empty_list
* (otherwise type information would be missing).
*
*
* repeated .substrait.Expression values = 1;
*/
public Builder setValues(
int index, io.substrait.proto.Expression.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.set(index, builderForValue.build());
onChanged();
} else {
valuesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A homogeneously-typed list of one or more expressions that form the
* list entries. To specify an empty list, use Literal.empty_list
* (otherwise type information would be missing).
*
*
* repeated .substrait.Expression values = 1;
*/
public Builder addValues(io.substrait.proto.Expression value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.add(value);
onChanged();
} else {
valuesBuilder_.addMessage(value);
}
return this;
}
/**
*
* A homogeneously-typed list of one or more expressions that form the
* list entries. To specify an empty list, use Literal.empty_list
* (otherwise type information would be missing).
*
*
* repeated .substrait.Expression values = 1;
*/
public Builder addValues(
int index, io.substrait.proto.Expression value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.add(index, value);
onChanged();
} else {
valuesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* A homogeneously-typed list of one or more expressions that form the
* list entries. To specify an empty list, use Literal.empty_list
* (otherwise type information would be missing).
*
*
* repeated .substrait.Expression values = 1;
*/
public Builder addValues(
io.substrait.proto.Expression.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.add(builderForValue.build());
onChanged();
} else {
valuesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* A homogeneously-typed list of one or more expressions that form the
* list entries. To specify an empty list, use Literal.empty_list
* (otherwise type information would be missing).
*
*
* repeated .substrait.Expression values = 1;
*/
public Builder addValues(
int index, io.substrait.proto.Expression.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.add(index, builderForValue.build());
onChanged();
} else {
valuesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A homogeneously-typed list of one or more expressions that form the
* list entries. To specify an empty list, use Literal.empty_list
* (otherwise type information would be missing).
*
*
* repeated .substrait.Expression values = 1;
*/
public Builder addAllValues(
java.lang.Iterable extends io.substrait.proto.Expression> values) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, values_);
onChanged();
} else {
valuesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* A homogeneously-typed list of one or more expressions that form the
* list entries. To specify an empty list, use Literal.empty_list
* (otherwise type information would be missing).
*
*
* repeated .substrait.Expression values = 1;
*/
public Builder clearValues() {
if (valuesBuilder_ == null) {
values_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
valuesBuilder_.clear();
}
return this;
}
/**
*
* A homogeneously-typed list of one or more expressions that form the
* list entries. To specify an empty list, use Literal.empty_list
* (otherwise type information would be missing).
*
*
* repeated .substrait.Expression values = 1;
*/
public Builder removeValues(int index) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.remove(index);
onChanged();
} else {
valuesBuilder_.remove(index);
}
return this;
}
/**
*
* A homogeneously-typed list of one or more expressions that form the
* list entries. To specify an empty list, use Literal.empty_list
* (otherwise type information would be missing).
*
*
* repeated .substrait.Expression values = 1;
*/
public io.substrait.proto.Expression.Builder getValuesBuilder(
int index) {
return getValuesFieldBuilder().getBuilder(index);
}
/**
*
* A homogeneously-typed list of one or more expressions that form the
* list entries. To specify an empty list, use Literal.empty_list
* (otherwise type information would be missing).
*
*
* repeated .substrait.Expression values = 1;
*/
public io.substrait.proto.ExpressionOrBuilder getValuesOrBuilder(
int index) {
if (valuesBuilder_ == null) {
return values_.get(index); } else {
return valuesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* A homogeneously-typed list of one or more expressions that form the
* list entries. To specify an empty list, use Literal.empty_list
* (otherwise type information would be missing).
*
*
* repeated .substrait.Expression values = 1;
*/
public java.util.List extends io.substrait.proto.ExpressionOrBuilder>
getValuesOrBuilderList() {
if (valuesBuilder_ != null) {
return valuesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(values_);
}
}
/**
*
* A homogeneously-typed list of one or more expressions that form the
* list entries. To specify an empty list, use Literal.empty_list
* (otherwise type information would be missing).
*
*
* repeated .substrait.Expression values = 1;
*/
public io.substrait.proto.Expression.Builder addValuesBuilder() {
return getValuesFieldBuilder().addBuilder(
io.substrait.proto.Expression.getDefaultInstance());
}
/**
*
* A homogeneously-typed list of one or more expressions that form the
* list entries. To specify an empty list, use Literal.empty_list
* (otherwise type information would be missing).
*
*
* repeated .substrait.Expression values = 1;
*/
public io.substrait.proto.Expression.Builder addValuesBuilder(
int index) {
return getValuesFieldBuilder().addBuilder(
index, io.substrait.proto.Expression.getDefaultInstance());
}
/**
*
* A homogeneously-typed list of one or more expressions that form the
* list entries. To specify an empty list, use Literal.empty_list
* (otherwise type information would be missing).
*
*
* repeated .substrait.Expression values = 1;
*/
public java.util.List
getValuesBuilderList() {
return getValuesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>
getValuesFieldBuilder() {
if (valuesBuilder_ == null) {
valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>(
values_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
values_ = null;
}
return valuesBuilder_;
}
@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:substrait.Expression.Nested.List)
}
// @@protoc_insertion_point(class_scope:substrait.Expression.Nested.List)
private static final io.substrait.proto.Expression.Nested.List DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.Expression.Nested.List();
}
public static io.substrait.proto.Expression.Nested.List getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public List parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.Expression.Nested.List getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int nestedTypeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object nestedType_;
public enum NestedTypeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
STRUCT(3),
LIST(4),
MAP(5),
NESTEDTYPE_NOT_SET(0);
private final int value;
private NestedTypeCase(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 NestedTypeCase valueOf(int value) {
return forNumber(value);
}
public static NestedTypeCase forNumber(int value) {
switch (value) {
case 3: return STRUCT;
case 4: return LIST;
case 5: return MAP;
case 0: return NESTEDTYPE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public NestedTypeCase
getNestedTypeCase() {
return NestedTypeCase.forNumber(
nestedTypeCase_);
}
public static final int NULLABLE_FIELD_NUMBER = 1;
private boolean nullable_ = false;
/**
*
* Whether the returned nested type is nullable.
*
*
* bool nullable = 1;
* @return The nullable.
*/
@java.lang.Override
public boolean getNullable() {
return nullable_;
}
public static final int TYPE_VARIATION_REFERENCE_FIELD_NUMBER = 2;
private int typeVariationReference_ = 0;
/**
*
* Optionally points to a type_variation_anchor defined in this plan for
* the returned nested type.
*
*
* uint32 type_variation_reference = 2;
* @return The typeVariationReference.
*/
@java.lang.Override
public int getTypeVariationReference() {
return typeVariationReference_;
}
public static final int STRUCT_FIELD_NUMBER = 3;
/**
* .substrait.Expression.Nested.Struct struct = 3;
* @return Whether the struct field is set.
*/
@java.lang.Override
public boolean hasStruct() {
return nestedTypeCase_ == 3;
}
/**
* .substrait.Expression.Nested.Struct struct = 3;
* @return The struct.
*/
@java.lang.Override
public io.substrait.proto.Expression.Nested.Struct getStruct() {
if (nestedTypeCase_ == 3) {
return (io.substrait.proto.Expression.Nested.Struct) nestedType_;
}
return io.substrait.proto.Expression.Nested.Struct.getDefaultInstance();
}
/**
* .substrait.Expression.Nested.Struct struct = 3;
*/
@java.lang.Override
public io.substrait.proto.Expression.Nested.StructOrBuilder getStructOrBuilder() {
if (nestedTypeCase_ == 3) {
return (io.substrait.proto.Expression.Nested.Struct) nestedType_;
}
return io.substrait.proto.Expression.Nested.Struct.getDefaultInstance();
}
public static final int LIST_FIELD_NUMBER = 4;
/**
* .substrait.Expression.Nested.List list = 4;
* @return Whether the list field is set.
*/
@java.lang.Override
public boolean hasList() {
return nestedTypeCase_ == 4;
}
/**
* .substrait.Expression.Nested.List list = 4;
* @return The list.
*/
@java.lang.Override
public io.substrait.proto.Expression.Nested.List getList() {
if (nestedTypeCase_ == 4) {
return (io.substrait.proto.Expression.Nested.List) nestedType_;
}
return io.substrait.proto.Expression.Nested.List.getDefaultInstance();
}
/**
* .substrait.Expression.Nested.List list = 4;
*/
@java.lang.Override
public io.substrait.proto.Expression.Nested.ListOrBuilder getListOrBuilder() {
if (nestedTypeCase_ == 4) {
return (io.substrait.proto.Expression.Nested.List) nestedType_;
}
return io.substrait.proto.Expression.Nested.List.getDefaultInstance();
}
public static final int MAP_FIELD_NUMBER = 5;
/**
* .substrait.Expression.Nested.Map map = 5;
* @return Whether the map field is set.
*/
@java.lang.Override
public boolean hasMap() {
return nestedTypeCase_ == 5;
}
/**
* .substrait.Expression.Nested.Map map = 5;
* @return The map.
*/
@java.lang.Override
public io.substrait.proto.Expression.Nested.Map getMap() {
if (nestedTypeCase_ == 5) {
return (io.substrait.proto.Expression.Nested.Map) nestedType_;
}
return io.substrait.proto.Expression.Nested.Map.getDefaultInstance();
}
/**
* .substrait.Expression.Nested.Map map = 5;
*/
@java.lang.Override
public io.substrait.proto.Expression.Nested.MapOrBuilder getMapOrBuilder() {
if (nestedTypeCase_ == 5) {
return (io.substrait.proto.Expression.Nested.Map) nestedType_;
}
return io.substrait.proto.Expression.Nested.Map.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 (nullable_ != false) {
output.writeBool(1, nullable_);
}
if (typeVariationReference_ != 0) {
output.writeUInt32(2, typeVariationReference_);
}
if (nestedTypeCase_ == 3) {
output.writeMessage(3, (io.substrait.proto.Expression.Nested.Struct) nestedType_);
}
if (nestedTypeCase_ == 4) {
output.writeMessage(4, (io.substrait.proto.Expression.Nested.List) nestedType_);
}
if (nestedTypeCase_ == 5) {
output.writeMessage(5, (io.substrait.proto.Expression.Nested.Map) nestedType_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (nullable_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, nullable_);
}
if (typeVariationReference_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, typeVariationReference_);
}
if (nestedTypeCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.substrait.proto.Expression.Nested.Struct) nestedType_);
}
if (nestedTypeCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (io.substrait.proto.Expression.Nested.List) nestedType_);
}
if (nestedTypeCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (io.substrait.proto.Expression.Nested.Map) nestedType_);
}
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 io.substrait.proto.Expression.Nested)) {
return super.equals(obj);
}
io.substrait.proto.Expression.Nested other = (io.substrait.proto.Expression.Nested) obj;
if (getNullable()
!= other.getNullable()) return false;
if (getTypeVariationReference()
!= other.getTypeVariationReference()) return false;
if (!getNestedTypeCase().equals(other.getNestedTypeCase())) return false;
switch (nestedTypeCase_) {
case 3:
if (!getStruct()
.equals(other.getStruct())) return false;
break;
case 4:
if (!getList()
.equals(other.getList())) return false;
break;
case 5:
if (!getMap()
.equals(other.getMap())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NULLABLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getNullable());
hash = (37 * hash) + TYPE_VARIATION_REFERENCE_FIELD_NUMBER;
hash = (53 * hash) + getTypeVariationReference();
switch (nestedTypeCase_) {
case 3:
hash = (37 * hash) + STRUCT_FIELD_NUMBER;
hash = (53 * hash) + getStruct().hashCode();
break;
case 4:
hash = (37 * hash) + LIST_FIELD_NUMBER;
hash = (53 * hash) + getList().hashCode();
break;
case 5:
hash = (37 * hash) + MAP_FIELD_NUMBER;
hash = (53 * hash) + getMap().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.Expression.Nested parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Nested parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Nested parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Nested parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Nested parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.Nested parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.Nested parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Nested 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 io.substrait.proto.Expression.Nested parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Nested 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 io.substrait.proto.Expression.Nested parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.Nested 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(io.substrait.proto.Expression.Nested 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;
}
/**
*
* Expression to dynamically construct nested types.
*
*
* Protobuf type {@code substrait.Expression.Nested}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Expression.Nested)
io.substrait.proto.Expression.NestedOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Nested_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Nested_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.Nested.class, io.substrait.proto.Expression.Nested.Builder.class);
}
// Construct using io.substrait.proto.Expression.Nested.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
nullable_ = false;
typeVariationReference_ = 0;
if (structBuilder_ != null) {
structBuilder_.clear();
}
if (listBuilder_ != null) {
listBuilder_.clear();
}
if (mapBuilder_ != null) {
mapBuilder_.clear();
}
nestedTypeCase_ = 0;
nestedType_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_Nested_descriptor;
}
@java.lang.Override
public io.substrait.proto.Expression.Nested getDefaultInstanceForType() {
return io.substrait.proto.Expression.Nested.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Expression.Nested build() {
io.substrait.proto.Expression.Nested result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Expression.Nested buildPartial() {
io.substrait.proto.Expression.Nested result = new io.substrait.proto.Expression.Nested(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.Expression.Nested result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.nullable_ = nullable_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.typeVariationReference_ = typeVariationReference_;
}
}
private void buildPartialOneofs(io.substrait.proto.Expression.Nested result) {
result.nestedTypeCase_ = nestedTypeCase_;
result.nestedType_ = this.nestedType_;
if (nestedTypeCase_ == 3 &&
structBuilder_ != null) {
result.nestedType_ = structBuilder_.build();
}
if (nestedTypeCase_ == 4 &&
listBuilder_ != null) {
result.nestedType_ = listBuilder_.build();
}
if (nestedTypeCase_ == 5 &&
mapBuilder_ != null) {
result.nestedType_ = mapBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.substrait.proto.Expression.Nested) {
return mergeFrom((io.substrait.proto.Expression.Nested)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Expression.Nested other) {
if (other == io.substrait.proto.Expression.Nested.getDefaultInstance()) return this;
if (other.getNullable() != false) {
setNullable(other.getNullable());
}
if (other.getTypeVariationReference() != 0) {
setTypeVariationReference(other.getTypeVariationReference());
}
switch (other.getNestedTypeCase()) {
case STRUCT: {
mergeStruct(other.getStruct());
break;
}
case LIST: {
mergeList(other.getList());
break;
}
case MAP: {
mergeMap(other.getMap());
break;
}
case NESTEDTYPE_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
nullable_ = input.readBool();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
typeVariationReference_ = input.readUInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
input.readMessage(
getStructFieldBuilder().getBuilder(),
extensionRegistry);
nestedTypeCase_ = 3;
break;
} // case 26
case 34: {
input.readMessage(
getListFieldBuilder().getBuilder(),
extensionRegistry);
nestedTypeCase_ = 4;
break;
} // case 34
case 42: {
input.readMessage(
getMapFieldBuilder().getBuilder(),
extensionRegistry);
nestedTypeCase_ = 5;
break;
} // case 42
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int nestedTypeCase_ = 0;
private java.lang.Object nestedType_;
public NestedTypeCase
getNestedTypeCase() {
return NestedTypeCase.forNumber(
nestedTypeCase_);
}
public Builder clearNestedType() {
nestedTypeCase_ = 0;
nestedType_ = null;
onChanged();
return this;
}
private int bitField0_;
private boolean nullable_ ;
/**
*
* Whether the returned nested type is nullable.
*
*
* bool nullable = 1;
* @return The nullable.
*/
@java.lang.Override
public boolean getNullable() {
return nullable_;
}
/**
*
* Whether the returned nested type is nullable.
*
*
* bool nullable = 1;
* @param value The nullable to set.
* @return This builder for chaining.
*/
public Builder setNullable(boolean value) {
nullable_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Whether the returned nested type is nullable.
*
*
* bool nullable = 1;
* @return This builder for chaining.
*/
public Builder clearNullable() {
bitField0_ = (bitField0_ & ~0x00000001);
nullable_ = false;
onChanged();
return this;
}
private int typeVariationReference_ ;
/**
*
* Optionally points to a type_variation_anchor defined in this plan for
* the returned nested type.
*
*
* uint32 type_variation_reference = 2;
* @return The typeVariationReference.
*/
@java.lang.Override
public int getTypeVariationReference() {
return typeVariationReference_;
}
/**
*
* Optionally points to a type_variation_anchor defined in this plan for
* the returned nested type.
*
*
* uint32 type_variation_reference = 2;
* @param value The typeVariationReference to set.
* @return This builder for chaining.
*/
public Builder setTypeVariationReference(int value) {
typeVariationReference_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Optionally points to a type_variation_anchor defined in this plan for
* the returned nested type.
*
*
* uint32 type_variation_reference = 2;
* @return This builder for chaining.
*/
public Builder clearTypeVariationReference() {
bitField0_ = (bitField0_ & ~0x00000002);
typeVariationReference_ = 0;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Nested.Struct, io.substrait.proto.Expression.Nested.Struct.Builder, io.substrait.proto.Expression.Nested.StructOrBuilder> structBuilder_;
/**
* .substrait.Expression.Nested.Struct struct = 3;
* @return Whether the struct field is set.
*/
@java.lang.Override
public boolean hasStruct() {
return nestedTypeCase_ == 3;
}
/**
* .substrait.Expression.Nested.Struct struct = 3;
* @return The struct.
*/
@java.lang.Override
public io.substrait.proto.Expression.Nested.Struct getStruct() {
if (structBuilder_ == null) {
if (nestedTypeCase_ == 3) {
return (io.substrait.proto.Expression.Nested.Struct) nestedType_;
}
return io.substrait.proto.Expression.Nested.Struct.getDefaultInstance();
} else {
if (nestedTypeCase_ == 3) {
return structBuilder_.getMessage();
}
return io.substrait.proto.Expression.Nested.Struct.getDefaultInstance();
}
}
/**
* .substrait.Expression.Nested.Struct struct = 3;
*/
public Builder setStruct(io.substrait.proto.Expression.Nested.Struct value) {
if (structBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nestedType_ = value;
onChanged();
} else {
structBuilder_.setMessage(value);
}
nestedTypeCase_ = 3;
return this;
}
/**
* .substrait.Expression.Nested.Struct struct = 3;
*/
public Builder setStruct(
io.substrait.proto.Expression.Nested.Struct.Builder builderForValue) {
if (structBuilder_ == null) {
nestedType_ = builderForValue.build();
onChanged();
} else {
structBuilder_.setMessage(builderForValue.build());
}
nestedTypeCase_ = 3;
return this;
}
/**
* .substrait.Expression.Nested.Struct struct = 3;
*/
public Builder mergeStruct(io.substrait.proto.Expression.Nested.Struct value) {
if (structBuilder_ == null) {
if (nestedTypeCase_ == 3 &&
nestedType_ != io.substrait.proto.Expression.Nested.Struct.getDefaultInstance()) {
nestedType_ = io.substrait.proto.Expression.Nested.Struct.newBuilder((io.substrait.proto.Expression.Nested.Struct) nestedType_)
.mergeFrom(value).buildPartial();
} else {
nestedType_ = value;
}
onChanged();
} else {
if (nestedTypeCase_ == 3) {
structBuilder_.mergeFrom(value);
} else {
structBuilder_.setMessage(value);
}
}
nestedTypeCase_ = 3;
return this;
}
/**
* .substrait.Expression.Nested.Struct struct = 3;
*/
public Builder clearStruct() {
if (structBuilder_ == null) {
if (nestedTypeCase_ == 3) {
nestedTypeCase_ = 0;
nestedType_ = null;
onChanged();
}
} else {
if (nestedTypeCase_ == 3) {
nestedTypeCase_ = 0;
nestedType_ = null;
}
structBuilder_.clear();
}
return this;
}
/**
* .substrait.Expression.Nested.Struct struct = 3;
*/
public io.substrait.proto.Expression.Nested.Struct.Builder getStructBuilder() {
return getStructFieldBuilder().getBuilder();
}
/**
* .substrait.Expression.Nested.Struct struct = 3;
*/
@java.lang.Override
public io.substrait.proto.Expression.Nested.StructOrBuilder getStructOrBuilder() {
if ((nestedTypeCase_ == 3) && (structBuilder_ != null)) {
return structBuilder_.getMessageOrBuilder();
} else {
if (nestedTypeCase_ == 3) {
return (io.substrait.proto.Expression.Nested.Struct) nestedType_;
}
return io.substrait.proto.Expression.Nested.Struct.getDefaultInstance();
}
}
/**
* .substrait.Expression.Nested.Struct struct = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Nested.Struct, io.substrait.proto.Expression.Nested.Struct.Builder, io.substrait.proto.Expression.Nested.StructOrBuilder>
getStructFieldBuilder() {
if (structBuilder_ == null) {
if (!(nestedTypeCase_ == 3)) {
nestedType_ = io.substrait.proto.Expression.Nested.Struct.getDefaultInstance();
}
structBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Nested.Struct, io.substrait.proto.Expression.Nested.Struct.Builder, io.substrait.proto.Expression.Nested.StructOrBuilder>(
(io.substrait.proto.Expression.Nested.Struct) nestedType_,
getParentForChildren(),
isClean());
nestedType_ = null;
}
nestedTypeCase_ = 3;
onChanged();
return structBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Nested.List, io.substrait.proto.Expression.Nested.List.Builder, io.substrait.proto.Expression.Nested.ListOrBuilder> listBuilder_;
/**
* .substrait.Expression.Nested.List list = 4;
* @return Whether the list field is set.
*/
@java.lang.Override
public boolean hasList() {
return nestedTypeCase_ == 4;
}
/**
* .substrait.Expression.Nested.List list = 4;
* @return The list.
*/
@java.lang.Override
public io.substrait.proto.Expression.Nested.List getList() {
if (listBuilder_ == null) {
if (nestedTypeCase_ == 4) {
return (io.substrait.proto.Expression.Nested.List) nestedType_;
}
return io.substrait.proto.Expression.Nested.List.getDefaultInstance();
} else {
if (nestedTypeCase_ == 4) {
return listBuilder_.getMessage();
}
return io.substrait.proto.Expression.Nested.List.getDefaultInstance();
}
}
/**
* .substrait.Expression.Nested.List list = 4;
*/
public Builder setList(io.substrait.proto.Expression.Nested.List value) {
if (listBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nestedType_ = value;
onChanged();
} else {
listBuilder_.setMessage(value);
}
nestedTypeCase_ = 4;
return this;
}
/**
* .substrait.Expression.Nested.List list = 4;
*/
public Builder setList(
io.substrait.proto.Expression.Nested.List.Builder builderForValue) {
if (listBuilder_ == null) {
nestedType_ = builderForValue.build();
onChanged();
} else {
listBuilder_.setMessage(builderForValue.build());
}
nestedTypeCase_ = 4;
return this;
}
/**
* .substrait.Expression.Nested.List list = 4;
*/
public Builder mergeList(io.substrait.proto.Expression.Nested.List value) {
if (listBuilder_ == null) {
if (nestedTypeCase_ == 4 &&
nestedType_ != io.substrait.proto.Expression.Nested.List.getDefaultInstance()) {
nestedType_ = io.substrait.proto.Expression.Nested.List.newBuilder((io.substrait.proto.Expression.Nested.List) nestedType_)
.mergeFrom(value).buildPartial();
} else {
nestedType_ = value;
}
onChanged();
} else {
if (nestedTypeCase_ == 4) {
listBuilder_.mergeFrom(value);
} else {
listBuilder_.setMessage(value);
}
}
nestedTypeCase_ = 4;
return this;
}
/**
* .substrait.Expression.Nested.List list = 4;
*/
public Builder clearList() {
if (listBuilder_ == null) {
if (nestedTypeCase_ == 4) {
nestedTypeCase_ = 0;
nestedType_ = null;
onChanged();
}
} else {
if (nestedTypeCase_ == 4) {
nestedTypeCase_ = 0;
nestedType_ = null;
}
listBuilder_.clear();
}
return this;
}
/**
* .substrait.Expression.Nested.List list = 4;
*/
public io.substrait.proto.Expression.Nested.List.Builder getListBuilder() {
return getListFieldBuilder().getBuilder();
}
/**
* .substrait.Expression.Nested.List list = 4;
*/
@java.lang.Override
public io.substrait.proto.Expression.Nested.ListOrBuilder getListOrBuilder() {
if ((nestedTypeCase_ == 4) && (listBuilder_ != null)) {
return listBuilder_.getMessageOrBuilder();
} else {
if (nestedTypeCase_ == 4) {
return (io.substrait.proto.Expression.Nested.List) nestedType_;
}
return io.substrait.proto.Expression.Nested.List.getDefaultInstance();
}
}
/**
* .substrait.Expression.Nested.List list = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Nested.List, io.substrait.proto.Expression.Nested.List.Builder, io.substrait.proto.Expression.Nested.ListOrBuilder>
getListFieldBuilder() {
if (listBuilder_ == null) {
if (!(nestedTypeCase_ == 4)) {
nestedType_ = io.substrait.proto.Expression.Nested.List.getDefaultInstance();
}
listBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Nested.List, io.substrait.proto.Expression.Nested.List.Builder, io.substrait.proto.Expression.Nested.ListOrBuilder>(
(io.substrait.proto.Expression.Nested.List) nestedType_,
getParentForChildren(),
isClean());
nestedType_ = null;
}
nestedTypeCase_ = 4;
onChanged();
return listBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Nested.Map, io.substrait.proto.Expression.Nested.Map.Builder, io.substrait.proto.Expression.Nested.MapOrBuilder> mapBuilder_;
/**
* .substrait.Expression.Nested.Map map = 5;
* @return Whether the map field is set.
*/
@java.lang.Override
public boolean hasMap() {
return nestedTypeCase_ == 5;
}
/**
* .substrait.Expression.Nested.Map map = 5;
* @return The map.
*/
@java.lang.Override
public io.substrait.proto.Expression.Nested.Map getMap() {
if (mapBuilder_ == null) {
if (nestedTypeCase_ == 5) {
return (io.substrait.proto.Expression.Nested.Map) nestedType_;
}
return io.substrait.proto.Expression.Nested.Map.getDefaultInstance();
} else {
if (nestedTypeCase_ == 5) {
return mapBuilder_.getMessage();
}
return io.substrait.proto.Expression.Nested.Map.getDefaultInstance();
}
}
/**
* .substrait.Expression.Nested.Map map = 5;
*/
public Builder setMap(io.substrait.proto.Expression.Nested.Map value) {
if (mapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nestedType_ = value;
onChanged();
} else {
mapBuilder_.setMessage(value);
}
nestedTypeCase_ = 5;
return this;
}
/**
* .substrait.Expression.Nested.Map map = 5;
*/
public Builder setMap(
io.substrait.proto.Expression.Nested.Map.Builder builderForValue) {
if (mapBuilder_ == null) {
nestedType_ = builderForValue.build();
onChanged();
} else {
mapBuilder_.setMessage(builderForValue.build());
}
nestedTypeCase_ = 5;
return this;
}
/**
* .substrait.Expression.Nested.Map map = 5;
*/
public Builder mergeMap(io.substrait.proto.Expression.Nested.Map value) {
if (mapBuilder_ == null) {
if (nestedTypeCase_ == 5 &&
nestedType_ != io.substrait.proto.Expression.Nested.Map.getDefaultInstance()) {
nestedType_ = io.substrait.proto.Expression.Nested.Map.newBuilder((io.substrait.proto.Expression.Nested.Map) nestedType_)
.mergeFrom(value).buildPartial();
} else {
nestedType_ = value;
}
onChanged();
} else {
if (nestedTypeCase_ == 5) {
mapBuilder_.mergeFrom(value);
} else {
mapBuilder_.setMessage(value);
}
}
nestedTypeCase_ = 5;
return this;
}
/**
* .substrait.Expression.Nested.Map map = 5;
*/
public Builder clearMap() {
if (mapBuilder_ == null) {
if (nestedTypeCase_ == 5) {
nestedTypeCase_ = 0;
nestedType_ = null;
onChanged();
}
} else {
if (nestedTypeCase_ == 5) {
nestedTypeCase_ = 0;
nestedType_ = null;
}
mapBuilder_.clear();
}
return this;
}
/**
* .substrait.Expression.Nested.Map map = 5;
*/
public io.substrait.proto.Expression.Nested.Map.Builder getMapBuilder() {
return getMapFieldBuilder().getBuilder();
}
/**
* .substrait.Expression.Nested.Map map = 5;
*/
@java.lang.Override
public io.substrait.proto.Expression.Nested.MapOrBuilder getMapOrBuilder() {
if ((nestedTypeCase_ == 5) && (mapBuilder_ != null)) {
return mapBuilder_.getMessageOrBuilder();
} else {
if (nestedTypeCase_ == 5) {
return (io.substrait.proto.Expression.Nested.Map) nestedType_;
}
return io.substrait.proto.Expression.Nested.Map.getDefaultInstance();
}
}
/**
* .substrait.Expression.Nested.Map map = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Nested.Map, io.substrait.proto.Expression.Nested.Map.Builder, io.substrait.proto.Expression.Nested.MapOrBuilder>
getMapFieldBuilder() {
if (mapBuilder_ == null) {
if (!(nestedTypeCase_ == 5)) {
nestedType_ = io.substrait.proto.Expression.Nested.Map.getDefaultInstance();
}
mapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Nested.Map, io.substrait.proto.Expression.Nested.Map.Builder, io.substrait.proto.Expression.Nested.MapOrBuilder>(
(io.substrait.proto.Expression.Nested.Map) nestedType_,
getParentForChildren(),
isClean());
nestedType_ = null;
}
nestedTypeCase_ = 5;
onChanged();
return mapBuilder_;
}
@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:substrait.Expression.Nested)
}
// @@protoc_insertion_point(class_scope:substrait.Expression.Nested)
private static final io.substrait.proto.Expression.Nested DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.Expression.Nested();
}
public static io.substrait.proto.Expression.Nested getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Nested parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.Expression.Nested getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ScalarFunctionOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.Expression.ScalarFunction)
com.google.protobuf.MessageOrBuilder {
/**
*
* Points to a function_anchor defined in this plan, which must refer
* to a scalar function in the associated YAML file. Required; avoid
* using anchor/reference zero.
*
*
* uint32 function_reference = 1;
* @return The functionReference.
*/
int getFunctionReference();
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 4;
*/
java.util.List
getArgumentsList();
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 4;
*/
io.substrait.proto.FunctionArgument getArguments(int index);
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 4;
*/
int getArgumentsCount();
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 4;
*/
java.util.List extends io.substrait.proto.FunctionArgumentOrBuilder>
getArgumentsOrBuilderList();
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 4;
*/
io.substrait.proto.FunctionArgumentOrBuilder getArgumentsOrBuilder(
int index);
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 5;
*/
java.util.List
getOptionsList();
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 5;
*/
io.substrait.proto.FunctionOption getOptions(int index);
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 5;
*/
int getOptionsCount();
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 5;
*/
java.util.List extends io.substrait.proto.FunctionOptionOrBuilder>
getOptionsOrBuilderList();
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 5;
*/
io.substrait.proto.FunctionOptionOrBuilder getOptionsOrBuilder(
int index);
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 3;
* @return Whether the outputType field is set.
*/
boolean hasOutputType();
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 3;
* @return The outputType.
*/
io.substrait.proto.Type getOutputType();
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 3;
*/
io.substrait.proto.TypeOrBuilder getOutputTypeOrBuilder();
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 2 [deprecated = true];
*/
@java.lang.Deprecated java.util.List
getArgsList();
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 2 [deprecated = true];
*/
@java.lang.Deprecated io.substrait.proto.Expression getArgs(int index);
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 2 [deprecated = true];
*/
@java.lang.Deprecated int getArgsCount();
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 2 [deprecated = true];
*/
@java.lang.Deprecated java.util.List extends io.substrait.proto.ExpressionOrBuilder>
getArgsOrBuilderList();
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 2 [deprecated = true];
*/
@java.lang.Deprecated io.substrait.proto.ExpressionOrBuilder getArgsOrBuilder(
int index);
}
/**
*
* A scalar function call.
*
*
* Protobuf type {@code substrait.Expression.ScalarFunction}
*/
public static final class ScalarFunction extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Expression.ScalarFunction)
ScalarFunctionOrBuilder {
private static final long serialVersionUID = 0L;
// Use ScalarFunction.newBuilder() to construct.
private ScalarFunction(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ScalarFunction() {
arguments_ = java.util.Collections.emptyList();
options_ = java.util.Collections.emptyList();
args_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ScalarFunction();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_ScalarFunction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_ScalarFunction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.ScalarFunction.class, io.substrait.proto.Expression.ScalarFunction.Builder.class);
}
private int bitField0_;
public static final int FUNCTION_REFERENCE_FIELD_NUMBER = 1;
private int functionReference_ = 0;
/**
*
* Points to a function_anchor defined in this plan, which must refer
* to a scalar function in the associated YAML file. Required; avoid
* using anchor/reference zero.
*
*
* uint32 function_reference = 1;
* @return The functionReference.
*/
@java.lang.Override
public int getFunctionReference() {
return functionReference_;
}
public static final int ARGUMENTS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List arguments_;
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 4;
*/
@java.lang.Override
public java.util.List getArgumentsList() {
return arguments_;
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 4;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.FunctionArgumentOrBuilder>
getArgumentsOrBuilderList() {
return arguments_;
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 4;
*/
@java.lang.Override
public int getArgumentsCount() {
return arguments_.size();
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 4;
*/
@java.lang.Override
public io.substrait.proto.FunctionArgument getArguments(int index) {
return arguments_.get(index);
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 4;
*/
@java.lang.Override
public io.substrait.proto.FunctionArgumentOrBuilder getArgumentsOrBuilder(
int index) {
return arguments_.get(index);
}
public static final int OPTIONS_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private java.util.List options_;
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 5;
*/
@java.lang.Override
public java.util.List getOptionsList() {
return options_;
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 5;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.FunctionOptionOrBuilder>
getOptionsOrBuilderList() {
return options_;
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 5;
*/
@java.lang.Override
public int getOptionsCount() {
return options_.size();
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 5;
*/
@java.lang.Override
public io.substrait.proto.FunctionOption getOptions(int index) {
return options_.get(index);
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 5;
*/
@java.lang.Override
public io.substrait.proto.FunctionOptionOrBuilder getOptionsOrBuilder(
int index) {
return options_.get(index);
}
public static final int OUTPUT_TYPE_FIELD_NUMBER = 3;
private io.substrait.proto.Type outputType_;
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 3;
* @return Whether the outputType field is set.
*/
@java.lang.Override
public boolean hasOutputType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 3;
* @return The outputType.
*/
@java.lang.Override
public io.substrait.proto.Type getOutputType() {
return outputType_ == null ? io.substrait.proto.Type.getDefaultInstance() : outputType_;
}
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 3;
*/
@java.lang.Override
public io.substrait.proto.TypeOrBuilder getOutputTypeOrBuilder() {
return outputType_ == null ? io.substrait.proto.Type.getDefaultInstance() : outputType_;
}
public static final int ARGS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List args_;
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 2 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public java.util.List getArgsList() {
return args_;
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 2 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public java.util.List extends io.substrait.proto.ExpressionOrBuilder>
getArgsOrBuilderList() {
return args_;
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 2 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public int getArgsCount() {
return args_.size();
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 2 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public io.substrait.proto.Expression getArgs(int index) {
return args_.get(index);
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 2 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public io.substrait.proto.ExpressionOrBuilder getArgsOrBuilder(
int index) {
return args_.get(index);
}
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 (functionReference_ != 0) {
output.writeUInt32(1, functionReference_);
}
for (int i = 0; i < args_.size(); i++) {
output.writeMessage(2, args_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getOutputType());
}
for (int i = 0; i < arguments_.size(); i++) {
output.writeMessage(4, arguments_.get(i));
}
for (int i = 0; i < options_.size(); i++) {
output.writeMessage(5, options_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (functionReference_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, functionReference_);
}
for (int i = 0; i < args_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, args_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getOutputType());
}
for (int i = 0; i < arguments_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, arguments_.get(i));
}
for (int i = 0; i < options_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, options_.get(i));
}
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 io.substrait.proto.Expression.ScalarFunction)) {
return super.equals(obj);
}
io.substrait.proto.Expression.ScalarFunction other = (io.substrait.proto.Expression.ScalarFunction) obj;
if (getFunctionReference()
!= other.getFunctionReference()) return false;
if (!getArgumentsList()
.equals(other.getArgumentsList())) return false;
if (!getOptionsList()
.equals(other.getOptionsList())) return false;
if (hasOutputType() != other.hasOutputType()) return false;
if (hasOutputType()) {
if (!getOutputType()
.equals(other.getOutputType())) return false;
}
if (!getArgsList()
.equals(other.getArgsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + FUNCTION_REFERENCE_FIELD_NUMBER;
hash = (53 * hash) + getFunctionReference();
if (getArgumentsCount() > 0) {
hash = (37 * hash) + ARGUMENTS_FIELD_NUMBER;
hash = (53 * hash) + getArgumentsList().hashCode();
}
if (getOptionsCount() > 0) {
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getOptionsList().hashCode();
}
if (hasOutputType()) {
hash = (37 * hash) + OUTPUT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getOutputType().hashCode();
}
if (getArgsCount() > 0) {
hash = (37 * hash) + ARGS_FIELD_NUMBER;
hash = (53 * hash) + getArgsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.Expression.ScalarFunction parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.ScalarFunction parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.ScalarFunction parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.ScalarFunction parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.ScalarFunction parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.ScalarFunction parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.ScalarFunction parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.ScalarFunction 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 io.substrait.proto.Expression.ScalarFunction parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.ScalarFunction 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 io.substrait.proto.Expression.ScalarFunction parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.ScalarFunction 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(io.substrait.proto.Expression.ScalarFunction 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;
}
/**
*
* A scalar function call.
*
*
* Protobuf type {@code substrait.Expression.ScalarFunction}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Expression.ScalarFunction)
io.substrait.proto.Expression.ScalarFunctionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_ScalarFunction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_ScalarFunction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.ScalarFunction.class, io.substrait.proto.Expression.ScalarFunction.Builder.class);
}
// Construct using io.substrait.proto.Expression.ScalarFunction.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getArgumentsFieldBuilder();
getOptionsFieldBuilder();
getOutputTypeFieldBuilder();
getArgsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
functionReference_ = 0;
if (argumentsBuilder_ == null) {
arguments_ = java.util.Collections.emptyList();
} else {
arguments_ = null;
argumentsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (optionsBuilder_ == null) {
options_ = java.util.Collections.emptyList();
} else {
options_ = null;
optionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
outputType_ = null;
if (outputTypeBuilder_ != null) {
outputTypeBuilder_.dispose();
outputTypeBuilder_ = null;
}
if (argsBuilder_ == null) {
args_ = java.util.Collections.emptyList();
} else {
args_ = null;
argsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_ScalarFunction_descriptor;
}
@java.lang.Override
public io.substrait.proto.Expression.ScalarFunction getDefaultInstanceForType() {
return io.substrait.proto.Expression.ScalarFunction.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Expression.ScalarFunction build() {
io.substrait.proto.Expression.ScalarFunction result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Expression.ScalarFunction buildPartial() {
io.substrait.proto.Expression.ScalarFunction result = new io.substrait.proto.Expression.ScalarFunction(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.substrait.proto.Expression.ScalarFunction result) {
if (argumentsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
arguments_ = java.util.Collections.unmodifiableList(arguments_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.arguments_ = arguments_;
} else {
result.arguments_ = argumentsBuilder_.build();
}
if (optionsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
options_ = java.util.Collections.unmodifiableList(options_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.options_ = options_;
} else {
result.options_ = optionsBuilder_.build();
}
if (argsBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
args_ = java.util.Collections.unmodifiableList(args_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.args_ = args_;
} else {
result.args_ = argsBuilder_.build();
}
}
private void buildPartial0(io.substrait.proto.Expression.ScalarFunction result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.functionReference_ = functionReference_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.outputType_ = outputTypeBuilder_ == null
? outputType_
: outputTypeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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 io.substrait.proto.Expression.ScalarFunction) {
return mergeFrom((io.substrait.proto.Expression.ScalarFunction)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Expression.ScalarFunction other) {
if (other == io.substrait.proto.Expression.ScalarFunction.getDefaultInstance()) return this;
if (other.getFunctionReference() != 0) {
setFunctionReference(other.getFunctionReference());
}
if (argumentsBuilder_ == null) {
if (!other.arguments_.isEmpty()) {
if (arguments_.isEmpty()) {
arguments_ = other.arguments_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureArgumentsIsMutable();
arguments_.addAll(other.arguments_);
}
onChanged();
}
} else {
if (!other.arguments_.isEmpty()) {
if (argumentsBuilder_.isEmpty()) {
argumentsBuilder_.dispose();
argumentsBuilder_ = null;
arguments_ = other.arguments_;
bitField0_ = (bitField0_ & ~0x00000002);
argumentsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getArgumentsFieldBuilder() : null;
} else {
argumentsBuilder_.addAllMessages(other.arguments_);
}
}
}
if (optionsBuilder_ == null) {
if (!other.options_.isEmpty()) {
if (options_.isEmpty()) {
options_ = other.options_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureOptionsIsMutable();
options_.addAll(other.options_);
}
onChanged();
}
} else {
if (!other.options_.isEmpty()) {
if (optionsBuilder_.isEmpty()) {
optionsBuilder_.dispose();
optionsBuilder_ = null;
options_ = other.options_;
bitField0_ = (bitField0_ & ~0x00000004);
optionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOptionsFieldBuilder() : null;
} else {
optionsBuilder_.addAllMessages(other.options_);
}
}
}
if (other.hasOutputType()) {
mergeOutputType(other.getOutputType());
}
if (argsBuilder_ == null) {
if (!other.args_.isEmpty()) {
if (args_.isEmpty()) {
args_ = other.args_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureArgsIsMutable();
args_.addAll(other.args_);
}
onChanged();
}
} else {
if (!other.args_.isEmpty()) {
if (argsBuilder_.isEmpty()) {
argsBuilder_.dispose();
argsBuilder_ = null;
args_ = other.args_;
bitField0_ = (bitField0_ & ~0x00000010);
argsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getArgsFieldBuilder() : null;
} else {
argsBuilder_.addAllMessages(other.args_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
functionReference_ = input.readUInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
io.substrait.proto.Expression m =
input.readMessage(
io.substrait.proto.Expression.parser(),
extensionRegistry);
if (argsBuilder_ == null) {
ensureArgsIsMutable();
args_.add(m);
} else {
argsBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
input.readMessage(
getOutputTypeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 26
case 34: {
io.substrait.proto.FunctionArgument m =
input.readMessage(
io.substrait.proto.FunctionArgument.parser(),
extensionRegistry);
if (argumentsBuilder_ == null) {
ensureArgumentsIsMutable();
arguments_.add(m);
} else {
argumentsBuilder_.addMessage(m);
}
break;
} // case 34
case 42: {
io.substrait.proto.FunctionOption m =
input.readMessage(
io.substrait.proto.FunctionOption.parser(),
extensionRegistry);
if (optionsBuilder_ == null) {
ensureOptionsIsMutable();
options_.add(m);
} else {
optionsBuilder_.addMessage(m);
}
break;
} // case 42
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int functionReference_ ;
/**
*
* Points to a function_anchor defined in this plan, which must refer
* to a scalar function in the associated YAML file. Required; avoid
* using anchor/reference zero.
*
*
* uint32 function_reference = 1;
* @return The functionReference.
*/
@java.lang.Override
public int getFunctionReference() {
return functionReference_;
}
/**
*
* Points to a function_anchor defined in this plan, which must refer
* to a scalar function in the associated YAML file. Required; avoid
* using anchor/reference zero.
*
*
* uint32 function_reference = 1;
* @param value The functionReference to set.
* @return This builder for chaining.
*/
public Builder setFunctionReference(int value) {
functionReference_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Points to a function_anchor defined in this plan, which must refer
* to a scalar function in the associated YAML file. Required; avoid
* using anchor/reference zero.
*
*
* uint32 function_reference = 1;
* @return This builder for chaining.
*/
public Builder clearFunctionReference() {
bitField0_ = (bitField0_ & ~0x00000001);
functionReference_ = 0;
onChanged();
return this;
}
private java.util.List arguments_ =
java.util.Collections.emptyList();
private void ensureArgumentsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
arguments_ = new java.util.ArrayList(arguments_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.FunctionArgument, io.substrait.proto.FunctionArgument.Builder, io.substrait.proto.FunctionArgumentOrBuilder> argumentsBuilder_;
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 4;
*/
public java.util.List getArgumentsList() {
if (argumentsBuilder_ == null) {
return java.util.Collections.unmodifiableList(arguments_);
} else {
return argumentsBuilder_.getMessageList();
}
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 4;
*/
public int getArgumentsCount() {
if (argumentsBuilder_ == null) {
return arguments_.size();
} else {
return argumentsBuilder_.getCount();
}
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 4;
*/
public io.substrait.proto.FunctionArgument getArguments(int index) {
if (argumentsBuilder_ == null) {
return arguments_.get(index);
} else {
return argumentsBuilder_.getMessage(index);
}
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 4;
*/
public Builder setArguments(
int index, io.substrait.proto.FunctionArgument value) {
if (argumentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentsIsMutable();
arguments_.set(index, value);
onChanged();
} else {
argumentsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 4;
*/
public Builder setArguments(
int index, io.substrait.proto.FunctionArgument.Builder builderForValue) {
if (argumentsBuilder_ == null) {
ensureArgumentsIsMutable();
arguments_.set(index, builderForValue.build());
onChanged();
} else {
argumentsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 4;
*/
public Builder addArguments(io.substrait.proto.FunctionArgument value) {
if (argumentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentsIsMutable();
arguments_.add(value);
onChanged();
} else {
argumentsBuilder_.addMessage(value);
}
return this;
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 4;
*/
public Builder addArguments(
int index, io.substrait.proto.FunctionArgument value) {
if (argumentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentsIsMutable();
arguments_.add(index, value);
onChanged();
} else {
argumentsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 4;
*/
public Builder addArguments(
io.substrait.proto.FunctionArgument.Builder builderForValue) {
if (argumentsBuilder_ == null) {
ensureArgumentsIsMutable();
arguments_.add(builderForValue.build());
onChanged();
} else {
argumentsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 4;
*/
public Builder addArguments(
int index, io.substrait.proto.FunctionArgument.Builder builderForValue) {
if (argumentsBuilder_ == null) {
ensureArgumentsIsMutable();
arguments_.add(index, builderForValue.build());
onChanged();
} else {
argumentsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 4;
*/
public Builder addAllArguments(
java.lang.Iterable extends io.substrait.proto.FunctionArgument> values) {
if (argumentsBuilder_ == null) {
ensureArgumentsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, arguments_);
onChanged();
} else {
argumentsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 4;
*/
public Builder clearArguments() {
if (argumentsBuilder_ == null) {
arguments_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
argumentsBuilder_.clear();
}
return this;
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 4;
*/
public Builder removeArguments(int index) {
if (argumentsBuilder_ == null) {
ensureArgumentsIsMutable();
arguments_.remove(index);
onChanged();
} else {
argumentsBuilder_.remove(index);
}
return this;
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 4;
*/
public io.substrait.proto.FunctionArgument.Builder getArgumentsBuilder(
int index) {
return getArgumentsFieldBuilder().getBuilder(index);
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 4;
*/
public io.substrait.proto.FunctionArgumentOrBuilder getArgumentsOrBuilder(
int index) {
if (argumentsBuilder_ == null) {
return arguments_.get(index); } else {
return argumentsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 4;
*/
public java.util.List extends io.substrait.proto.FunctionArgumentOrBuilder>
getArgumentsOrBuilderList() {
if (argumentsBuilder_ != null) {
return argumentsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(arguments_);
}
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 4;
*/
public io.substrait.proto.FunctionArgument.Builder addArgumentsBuilder() {
return getArgumentsFieldBuilder().addBuilder(
io.substrait.proto.FunctionArgument.getDefaultInstance());
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 4;
*/
public io.substrait.proto.FunctionArgument.Builder addArgumentsBuilder(
int index) {
return getArgumentsFieldBuilder().addBuilder(
index, io.substrait.proto.FunctionArgument.getDefaultInstance());
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 4;
*/
public java.util.List
getArgumentsBuilderList() {
return getArgumentsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.FunctionArgument, io.substrait.proto.FunctionArgument.Builder, io.substrait.proto.FunctionArgumentOrBuilder>
getArgumentsFieldBuilder() {
if (argumentsBuilder_ == null) {
argumentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.FunctionArgument, io.substrait.proto.FunctionArgument.Builder, io.substrait.proto.FunctionArgumentOrBuilder>(
arguments_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
arguments_ = null;
}
return argumentsBuilder_;
}
private java.util.List options_ =
java.util.Collections.emptyList();
private void ensureOptionsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
options_ = new java.util.ArrayList(options_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.FunctionOption, io.substrait.proto.FunctionOption.Builder, io.substrait.proto.FunctionOptionOrBuilder> optionsBuilder_;
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 5;
*/
public java.util.List getOptionsList() {
if (optionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(options_);
} else {
return optionsBuilder_.getMessageList();
}
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 5;
*/
public int getOptionsCount() {
if (optionsBuilder_ == null) {
return options_.size();
} else {
return optionsBuilder_.getCount();
}
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 5;
*/
public io.substrait.proto.FunctionOption getOptions(int index) {
if (optionsBuilder_ == null) {
return options_.get(index);
} else {
return optionsBuilder_.getMessage(index);
}
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 5;
*/
public Builder setOptions(
int index, io.substrait.proto.FunctionOption value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOptionsIsMutable();
options_.set(index, value);
onChanged();
} else {
optionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 5;
*/
public Builder setOptions(
int index, io.substrait.proto.FunctionOption.Builder builderForValue) {
if (optionsBuilder_ == null) {
ensureOptionsIsMutable();
options_.set(index, builderForValue.build());
onChanged();
} else {
optionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 5;
*/
public Builder addOptions(io.substrait.proto.FunctionOption value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOptionsIsMutable();
options_.add(value);
onChanged();
} else {
optionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 5;
*/
public Builder addOptions(
int index, io.substrait.proto.FunctionOption value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOptionsIsMutable();
options_.add(index, value);
onChanged();
} else {
optionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 5;
*/
public Builder addOptions(
io.substrait.proto.FunctionOption.Builder builderForValue) {
if (optionsBuilder_ == null) {
ensureOptionsIsMutable();
options_.add(builderForValue.build());
onChanged();
} else {
optionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 5;
*/
public Builder addOptions(
int index, io.substrait.proto.FunctionOption.Builder builderForValue) {
if (optionsBuilder_ == null) {
ensureOptionsIsMutable();
options_.add(index, builderForValue.build());
onChanged();
} else {
optionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 5;
*/
public Builder addAllOptions(
java.lang.Iterable extends io.substrait.proto.FunctionOption> values) {
if (optionsBuilder_ == null) {
ensureOptionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, options_);
onChanged();
} else {
optionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 5;
*/
public Builder clearOptions() {
if (optionsBuilder_ == null) {
options_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
optionsBuilder_.clear();
}
return this;
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 5;
*/
public Builder removeOptions(int index) {
if (optionsBuilder_ == null) {
ensureOptionsIsMutable();
options_.remove(index);
onChanged();
} else {
optionsBuilder_.remove(index);
}
return this;
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 5;
*/
public io.substrait.proto.FunctionOption.Builder getOptionsBuilder(
int index) {
return getOptionsFieldBuilder().getBuilder(index);
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 5;
*/
public io.substrait.proto.FunctionOptionOrBuilder getOptionsOrBuilder(
int index) {
if (optionsBuilder_ == null) {
return options_.get(index); } else {
return optionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 5;
*/
public java.util.List extends io.substrait.proto.FunctionOptionOrBuilder>
getOptionsOrBuilderList() {
if (optionsBuilder_ != null) {
return optionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(options_);
}
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 5;
*/
public io.substrait.proto.FunctionOption.Builder addOptionsBuilder() {
return getOptionsFieldBuilder().addBuilder(
io.substrait.proto.FunctionOption.getDefaultInstance());
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 5;
*/
public io.substrait.proto.FunctionOption.Builder addOptionsBuilder(
int index) {
return getOptionsFieldBuilder().addBuilder(
index, io.substrait.proto.FunctionOption.getDefaultInstance());
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 5;
*/
public java.util.List
getOptionsBuilderList() {
return getOptionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.FunctionOption, io.substrait.proto.FunctionOption.Builder, io.substrait.proto.FunctionOptionOrBuilder>
getOptionsFieldBuilder() {
if (optionsBuilder_ == null) {
optionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.FunctionOption, io.substrait.proto.FunctionOption.Builder, io.substrait.proto.FunctionOptionOrBuilder>(
options_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
options_ = null;
}
return optionsBuilder_;
}
private io.substrait.proto.Type outputType_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Type, io.substrait.proto.Type.Builder, io.substrait.proto.TypeOrBuilder> outputTypeBuilder_;
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 3;
* @return Whether the outputType field is set.
*/
public boolean hasOutputType() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 3;
* @return The outputType.
*/
public io.substrait.proto.Type getOutputType() {
if (outputTypeBuilder_ == null) {
return outputType_ == null ? io.substrait.proto.Type.getDefaultInstance() : outputType_;
} else {
return outputTypeBuilder_.getMessage();
}
}
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 3;
*/
public Builder setOutputType(io.substrait.proto.Type value) {
if (outputTypeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
outputType_ = value;
} else {
outputTypeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 3;
*/
public Builder setOutputType(
io.substrait.proto.Type.Builder builderForValue) {
if (outputTypeBuilder_ == null) {
outputType_ = builderForValue.build();
} else {
outputTypeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 3;
*/
public Builder mergeOutputType(io.substrait.proto.Type value) {
if (outputTypeBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
outputType_ != null &&
outputType_ != io.substrait.proto.Type.getDefaultInstance()) {
getOutputTypeBuilder().mergeFrom(value);
} else {
outputType_ = value;
}
} else {
outputTypeBuilder_.mergeFrom(value);
}
if (outputType_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 3;
*/
public Builder clearOutputType() {
bitField0_ = (bitField0_ & ~0x00000008);
outputType_ = null;
if (outputTypeBuilder_ != null) {
outputTypeBuilder_.dispose();
outputTypeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 3;
*/
public io.substrait.proto.Type.Builder getOutputTypeBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getOutputTypeFieldBuilder().getBuilder();
}
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 3;
*/
public io.substrait.proto.TypeOrBuilder getOutputTypeOrBuilder() {
if (outputTypeBuilder_ != null) {
return outputTypeBuilder_.getMessageOrBuilder();
} else {
return outputType_ == null ?
io.substrait.proto.Type.getDefaultInstance() : outputType_;
}
}
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Type, io.substrait.proto.Type.Builder, io.substrait.proto.TypeOrBuilder>
getOutputTypeFieldBuilder() {
if (outputTypeBuilder_ == null) {
outputTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Type, io.substrait.proto.Type.Builder, io.substrait.proto.TypeOrBuilder>(
getOutputType(),
getParentForChildren(),
isClean());
outputType_ = null;
}
return outputTypeBuilder_;
}
private java.util.List args_ =
java.util.Collections.emptyList();
private void ensureArgsIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
args_ = new java.util.ArrayList(args_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> argsBuilder_;
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 2 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List getArgsList() {
if (argsBuilder_ == null) {
return java.util.Collections.unmodifiableList(args_);
} else {
return argsBuilder_.getMessageList();
}
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 2 [deprecated = true];
*/
@java.lang.Deprecated public int getArgsCount() {
if (argsBuilder_ == null) {
return args_.size();
} else {
return argsBuilder_.getCount();
}
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 2 [deprecated = true];
*/
@java.lang.Deprecated public io.substrait.proto.Expression getArgs(int index) {
if (argsBuilder_ == null) {
return args_.get(index);
} else {
return argsBuilder_.getMessage(index);
}
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 2 [deprecated = true];
*/
@java.lang.Deprecated public Builder setArgs(
int index, io.substrait.proto.Expression value) {
if (argsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgsIsMutable();
args_.set(index, value);
onChanged();
} else {
argsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 2 [deprecated = true];
*/
@java.lang.Deprecated public Builder setArgs(
int index, io.substrait.proto.Expression.Builder builderForValue) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
args_.set(index, builderForValue.build());
onChanged();
} else {
argsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 2 [deprecated = true];
*/
@java.lang.Deprecated public Builder addArgs(io.substrait.proto.Expression value) {
if (argsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgsIsMutable();
args_.add(value);
onChanged();
} else {
argsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 2 [deprecated = true];
*/
@java.lang.Deprecated public Builder addArgs(
int index, io.substrait.proto.Expression value) {
if (argsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgsIsMutable();
args_.add(index, value);
onChanged();
} else {
argsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 2 [deprecated = true];
*/
@java.lang.Deprecated public Builder addArgs(
io.substrait.proto.Expression.Builder builderForValue) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
args_.add(builderForValue.build());
onChanged();
} else {
argsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 2 [deprecated = true];
*/
@java.lang.Deprecated public Builder addArgs(
int index, io.substrait.proto.Expression.Builder builderForValue) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
args_.add(index, builderForValue.build());
onChanged();
} else {
argsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 2 [deprecated = true];
*/
@java.lang.Deprecated public Builder addAllArgs(
java.lang.Iterable extends io.substrait.proto.Expression> values) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, args_);
onChanged();
} else {
argsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 2 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearArgs() {
if (argsBuilder_ == null) {
args_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
argsBuilder_.clear();
}
return this;
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 2 [deprecated = true];
*/
@java.lang.Deprecated public Builder removeArgs(int index) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
args_.remove(index);
onChanged();
} else {
argsBuilder_.remove(index);
}
return this;
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 2 [deprecated = true];
*/
@java.lang.Deprecated public io.substrait.proto.Expression.Builder getArgsBuilder(
int index) {
return getArgsFieldBuilder().getBuilder(index);
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 2 [deprecated = true];
*/
@java.lang.Deprecated public io.substrait.proto.ExpressionOrBuilder getArgsOrBuilder(
int index) {
if (argsBuilder_ == null) {
return args_.get(index); } else {
return argsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 2 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List extends io.substrait.proto.ExpressionOrBuilder>
getArgsOrBuilderList() {
if (argsBuilder_ != null) {
return argsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(args_);
}
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 2 [deprecated = true];
*/
@java.lang.Deprecated public io.substrait.proto.Expression.Builder addArgsBuilder() {
return getArgsFieldBuilder().addBuilder(
io.substrait.proto.Expression.getDefaultInstance());
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 2 [deprecated = true];
*/
@java.lang.Deprecated public io.substrait.proto.Expression.Builder addArgsBuilder(
int index) {
return getArgsFieldBuilder().addBuilder(
index, io.substrait.proto.Expression.getDefaultInstance());
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 2 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List
getArgsBuilderList() {
return getArgsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>
getArgsFieldBuilder() {
if (argsBuilder_ == null) {
argsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>(
args_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
args_ = null;
}
return argsBuilder_;
}
@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:substrait.Expression.ScalarFunction)
}
// @@protoc_insertion_point(class_scope:substrait.Expression.ScalarFunction)
private static final io.substrait.proto.Expression.ScalarFunction DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.Expression.ScalarFunction();
}
public static io.substrait.proto.Expression.ScalarFunction getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ScalarFunction parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.Expression.ScalarFunction getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WindowFunctionOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.Expression.WindowFunction)
com.google.protobuf.MessageOrBuilder {
/**
*
* Points to a function_anchor defined in this plan. The function must be:
* - a window function
* - an aggregate function
*
* An aggregate function referenced here should be treated as a window
* function with Window Type STREAMING
*
* Required; 0 is considered to be a valid anchor/reference.
*
*
* uint32 function_reference = 1;
* @return The functionReference.
*/
int getFunctionReference();
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type, and a
* function overload must be defined for that type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 9;
*/
java.util.List
getArgumentsList();
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type, and a
* function overload must be defined for that type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 9;
*/
io.substrait.proto.FunctionArgument getArguments(int index);
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type, and a
* function overload must be defined for that type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 9;
*/
int getArgumentsCount();
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type, and a
* function overload must be defined for that type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 9;
*/
java.util.List extends io.substrait.proto.FunctionArgumentOrBuilder>
getArgumentsOrBuilderList();
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type, and a
* function overload must be defined for that type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 9;
*/
io.substrait.proto.FunctionArgumentOrBuilder getArgumentsOrBuilder(
int index);
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 11;
*/
java.util.List
getOptionsList();
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 11;
*/
io.substrait.proto.FunctionOption getOptions(int index);
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 11;
*/
int getOptionsCount();
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 11;
*/
java.util.List extends io.substrait.proto.FunctionOptionOrBuilder>
getOptionsOrBuilderList();
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 11;
*/
io.substrait.proto.FunctionOptionOrBuilder getOptionsOrBuilder(
int index);
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 7;
* @return Whether the outputType field is set.
*/
boolean hasOutputType();
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 7;
* @return The outputType.
*/
io.substrait.proto.Type getOutputType();
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 7;
*/
io.substrait.proto.TypeOrBuilder getOutputTypeOrBuilder();
/**
*
* Describes which part of the window function to perform within the
* context of distributed algorithms. Required. Must be set to
* INITIAL_TO_RESULT for window functions that are not decomposable.
*
*
* .substrait.AggregationPhase phase = 6;
* @return The enum numeric value on the wire for phase.
*/
int getPhaseValue();
/**
*
* Describes which part of the window function to perform within the
* context of distributed algorithms. Required. Must be set to
* INITIAL_TO_RESULT for window functions that are not decomposable.
*
*
* .substrait.AggregationPhase phase = 6;
* @return The phase.
*/
io.substrait.proto.AggregationPhase getPhase();
/**
*
* If specified, the records that are part of the window defined by
* upper_bound and lower_bound are ordered according to this list
* before they are aggregated. The first sort field has the highest
* priority; only if a sort field determines two records to be equivalent
* is the next field queried. This field is optional, and is only allowed
* if the window function is defined to support sorting.
*
*
* repeated .substrait.SortField sorts = 3;
*/
java.util.List
getSortsList();
/**
*
* If specified, the records that are part of the window defined by
* upper_bound and lower_bound are ordered according to this list
* before they are aggregated. The first sort field has the highest
* priority; only if a sort field determines two records to be equivalent
* is the next field queried. This field is optional, and is only allowed
* if the window function is defined to support sorting.
*
*
* repeated .substrait.SortField sorts = 3;
*/
io.substrait.proto.SortField getSorts(int index);
/**
*
* If specified, the records that are part of the window defined by
* upper_bound and lower_bound are ordered according to this list
* before they are aggregated. The first sort field has the highest
* priority; only if a sort field determines two records to be equivalent
* is the next field queried. This field is optional, and is only allowed
* if the window function is defined to support sorting.
*
*
* repeated .substrait.SortField sorts = 3;
*/
int getSortsCount();
/**
*
* If specified, the records that are part of the window defined by
* upper_bound and lower_bound are ordered according to this list
* before they are aggregated. The first sort field has the highest
* priority; only if a sort field determines two records to be equivalent
* is the next field queried. This field is optional, and is only allowed
* if the window function is defined to support sorting.
*
*
* repeated .substrait.SortField sorts = 3;
*/
java.util.List extends io.substrait.proto.SortFieldOrBuilder>
getSortsOrBuilderList();
/**
*
* If specified, the records that are part of the window defined by
* upper_bound and lower_bound are ordered according to this list
* before they are aggregated. The first sort field has the highest
* priority; only if a sort field determines two records to be equivalent
* is the next field queried. This field is optional, and is only allowed
* if the window function is defined to support sorting.
*
*
* repeated .substrait.SortField sorts = 3;
*/
io.substrait.proto.SortFieldOrBuilder getSortsOrBuilder(
int index);
/**
*
* Specifies whether equivalent records are merged before being aggregated.
* Optional, defaults to AGGREGATION_INVOCATION_ALL.
*
*
* .substrait.AggregateFunction.AggregationInvocation invocation = 10;
* @return The enum numeric value on the wire for invocation.
*/
int getInvocationValue();
/**
*
* Specifies whether equivalent records are merged before being aggregated.
* Optional, defaults to AGGREGATION_INVOCATION_ALL.
*
*
* .substrait.AggregateFunction.AggregationInvocation invocation = 10;
* @return The invocation.
*/
io.substrait.proto.AggregateFunction.AggregationInvocation getInvocation();
/**
*
* When one or more partition expressions are specified, two records are
* considered to be in the same partition if and only if these expressions
* yield an equal record of values for both. When computing the window
* function, only the subset of records within the bounds that are also in
* the same partition as the current record are aggregated.
*
*
* repeated .substrait.Expression partitions = 2;
*/
java.util.List
getPartitionsList();
/**
*
* When one or more partition expressions are specified, two records are
* considered to be in the same partition if and only if these expressions
* yield an equal record of values for both. When computing the window
* function, only the subset of records within the bounds that are also in
* the same partition as the current record are aggregated.
*
*
* repeated .substrait.Expression partitions = 2;
*/
io.substrait.proto.Expression getPartitions(int index);
/**
*
* When one or more partition expressions are specified, two records are
* considered to be in the same partition if and only if these expressions
* yield an equal record of values for both. When computing the window
* function, only the subset of records within the bounds that are also in
* the same partition as the current record are aggregated.
*
*
* repeated .substrait.Expression partitions = 2;
*/
int getPartitionsCount();
/**
*
* When one or more partition expressions are specified, two records are
* considered to be in the same partition if and only if these expressions
* yield an equal record of values for both. When computing the window
* function, only the subset of records within the bounds that are also in
* the same partition as the current record are aggregated.
*
*
* repeated .substrait.Expression partitions = 2;
*/
java.util.List extends io.substrait.proto.ExpressionOrBuilder>
getPartitionsOrBuilderList();
/**
*
* When one or more partition expressions are specified, two records are
* considered to be in the same partition if and only if these expressions
* yield an equal record of values for both. When computing the window
* function, only the subset of records within the bounds that are also in
* the same partition as the current record are aggregated.
*
*
* repeated .substrait.Expression partitions = 2;
*/
io.substrait.proto.ExpressionOrBuilder getPartitionsOrBuilder(
int index);
/**
*
* Defines the bounds type: ROWS, RANGE
*
*
* .substrait.Expression.WindowFunction.BoundsType bounds_type = 12;
* @return The enum numeric value on the wire for boundsType.
*/
int getBoundsTypeValue();
/**
*
* Defines the bounds type: ROWS, RANGE
*
*
* .substrait.Expression.WindowFunction.BoundsType bounds_type = 12;
* @return The boundsType.
*/
io.substrait.proto.Expression.WindowFunction.BoundsType getBoundsType();
/**
*
* Defines the record relative to the current record from which the window
* extends. The bound is inclusive. If the lower bound indexes a record
* greater than the upper bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the start of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
* @return Whether the lowerBound field is set.
*/
boolean hasLowerBound();
/**
*
* Defines the record relative to the current record from which the window
* extends. The bound is inclusive. If the lower bound indexes a record
* greater than the upper bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the start of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
* @return The lowerBound.
*/
io.substrait.proto.Expression.WindowFunction.Bound getLowerBound();
/**
*
* Defines the record relative to the current record from which the window
* extends. The bound is inclusive. If the lower bound indexes a record
* greater than the upper bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the start of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
*/
io.substrait.proto.Expression.WindowFunction.BoundOrBuilder getLowerBoundOrBuilder();
/**
*
* Defines the record relative to the current record up to which the window
* extends. The bound is inclusive. If the upper bound indexes a record
* less than the lower bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the end of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
* @return Whether the upperBound field is set.
*/
boolean hasUpperBound();
/**
*
* Defines the record relative to the current record up to which the window
* extends. The bound is inclusive. If the upper bound indexes a record
* less than the lower bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the end of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
* @return The upperBound.
*/
io.substrait.proto.Expression.WindowFunction.Bound getUpperBound();
/**
*
* Defines the record relative to the current record up to which the window
* extends. The bound is inclusive. If the upper bound indexes a record
* less than the lower bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the end of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
*/
io.substrait.proto.Expression.WindowFunction.BoundOrBuilder getUpperBoundOrBuilder();
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 8 [deprecated = true];
*/
@java.lang.Deprecated java.util.List
getArgsList();
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 8 [deprecated = true];
*/
@java.lang.Deprecated io.substrait.proto.Expression getArgs(int index);
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 8 [deprecated = true];
*/
@java.lang.Deprecated int getArgsCount();
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 8 [deprecated = true];
*/
@java.lang.Deprecated java.util.List extends io.substrait.proto.ExpressionOrBuilder>
getArgsOrBuilderList();
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 8 [deprecated = true];
*/
@java.lang.Deprecated io.substrait.proto.ExpressionOrBuilder getArgsOrBuilder(
int index);
}
/**
*
* A window function call.
*
*
* Protobuf type {@code substrait.Expression.WindowFunction}
*/
public static final class WindowFunction extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Expression.WindowFunction)
WindowFunctionOrBuilder {
private static final long serialVersionUID = 0L;
// Use WindowFunction.newBuilder() to construct.
private WindowFunction(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WindowFunction() {
arguments_ = java.util.Collections.emptyList();
options_ = java.util.Collections.emptyList();
phase_ = 0;
sorts_ = java.util.Collections.emptyList();
invocation_ = 0;
partitions_ = java.util.Collections.emptyList();
boundsType_ = 0;
args_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new WindowFunction();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.WindowFunction.class, io.substrait.proto.Expression.WindowFunction.Builder.class);
}
/**
* Protobuf enum {@code substrait.Expression.WindowFunction.BoundsType}
*/
public enum BoundsType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* BOUNDS_TYPE_UNSPECIFIED = 0;
*/
BOUNDS_TYPE_UNSPECIFIED(0),
/**
*
* The lower and upper bound specify how many rows before and after the current row
* the window should extend.
*
*
* BOUNDS_TYPE_ROWS = 1;
*/
BOUNDS_TYPE_ROWS(1),
/**
*
* The lower and upper bound describe a range of values. The window should include all rows
* where the value of the ordering column is greater than or equal to (current_value - lower bound)
* and less than or equal to (current_value + upper bound). This bounds type is only valid if there
* is a single ordering column.
*
*
* BOUNDS_TYPE_RANGE = 2;
*/
BOUNDS_TYPE_RANGE(2),
UNRECOGNIZED(-1),
;
/**
* BOUNDS_TYPE_UNSPECIFIED = 0;
*/
public static final int BOUNDS_TYPE_UNSPECIFIED_VALUE = 0;
/**
*
* The lower and upper bound specify how many rows before and after the current row
* the window should extend.
*
*
* BOUNDS_TYPE_ROWS = 1;
*/
public static final int BOUNDS_TYPE_ROWS_VALUE = 1;
/**
*
* The lower and upper bound describe a range of values. The window should include all rows
* where the value of the ordering column is greater than or equal to (current_value - lower bound)
* and less than or equal to (current_value + upper bound). This bounds type is only valid if there
* is a single ordering column.
*
*
* BOUNDS_TYPE_RANGE = 2;
*/
public static final int BOUNDS_TYPE_RANGE_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static BoundsType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static BoundsType forNumber(int value) {
switch (value) {
case 0: return BOUNDS_TYPE_UNSPECIFIED;
case 1: return BOUNDS_TYPE_ROWS;
case 2: return BOUNDS_TYPE_RANGE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
BoundsType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public BoundsType findValueByNumber(int number) {
return BoundsType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.substrait.proto.Expression.WindowFunction.getDescriptor().getEnumTypes().get(0);
}
private static final BoundsType[] VALUES = values();
public static BoundsType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private BoundsType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:substrait.Expression.WindowFunction.BoundsType)
}
public interface BoundOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.Expression.WindowFunction.Bound)
com.google.protobuf.MessageOrBuilder {
/**
*
* The bound extends some number of records behind the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.Preceding preceding = 1;
* @return Whether the preceding field is set.
*/
boolean hasPreceding();
/**
*
* The bound extends some number of records behind the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.Preceding preceding = 1;
* @return The preceding.
*/
io.substrait.proto.Expression.WindowFunction.Bound.Preceding getPreceding();
/**
*
* The bound extends some number of records behind the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.Preceding preceding = 1;
*/
io.substrait.proto.Expression.WindowFunction.Bound.PrecedingOrBuilder getPrecedingOrBuilder();
/**
*
* The bound extends some number of records ahead of the current
* record.
*
*
* .substrait.Expression.WindowFunction.Bound.Following following = 2;
* @return Whether the following field is set.
*/
boolean hasFollowing();
/**
*
* The bound extends some number of records ahead of the current
* record.
*
*
* .substrait.Expression.WindowFunction.Bound.Following following = 2;
* @return The following.
*/
io.substrait.proto.Expression.WindowFunction.Bound.Following getFollowing();
/**
*
* The bound extends some number of records ahead of the current
* record.
*
*
* .substrait.Expression.WindowFunction.Bound.Following following = 2;
*/
io.substrait.proto.Expression.WindowFunction.Bound.FollowingOrBuilder getFollowingOrBuilder();
/**
*
* The bound extends to the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.CurrentRow current_row = 3;
* @return Whether the currentRow field is set.
*/
boolean hasCurrentRow();
/**
*
* The bound extends to the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.CurrentRow current_row = 3;
* @return The currentRow.
*/
io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow getCurrentRow();
/**
*
* The bound extends to the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.CurrentRow current_row = 3;
*/
io.substrait.proto.Expression.WindowFunction.Bound.CurrentRowOrBuilder getCurrentRowOrBuilder();
/**
*
* The bound extends to the start of the partition or the end of the
* partition, depending on whether this represents the upper or lower
* bound.
*
*
* .substrait.Expression.WindowFunction.Bound.Unbounded unbounded = 4;
* @return Whether the unbounded field is set.
*/
boolean hasUnbounded();
/**
*
* The bound extends to the start of the partition or the end of the
* partition, depending on whether this represents the upper or lower
* bound.
*
*
* .substrait.Expression.WindowFunction.Bound.Unbounded unbounded = 4;
* @return The unbounded.
*/
io.substrait.proto.Expression.WindowFunction.Bound.Unbounded getUnbounded();
/**
*
* The bound extends to the start of the partition or the end of the
* partition, depending on whether this represents the upper or lower
* bound.
*
*
* .substrait.Expression.WindowFunction.Bound.Unbounded unbounded = 4;
*/
io.substrait.proto.Expression.WindowFunction.Bound.UnboundedOrBuilder getUnboundedOrBuilder();
io.substrait.proto.Expression.WindowFunction.Bound.KindCase getKindCase();
}
/**
*
* Defines one of the two boundaries for the window of a window function.
*
*
* Protobuf type {@code substrait.Expression.WindowFunction.Bound}
*/
public static final class Bound extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Expression.WindowFunction.Bound)
BoundOrBuilder {
private static final long serialVersionUID = 0L;
// Use Bound.newBuilder() to construct.
private Bound(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Bound() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Bound();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_Bound_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_Bound_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.WindowFunction.Bound.class, io.substrait.proto.Expression.WindowFunction.Bound.Builder.class);
}
public interface PrecedingOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.Expression.WindowFunction.Bound.Preceding)
com.google.protobuf.MessageOrBuilder {
/**
*
* A strictly positive integer specifying the number of records that
* the window extends back from the current record. Required. Use
* CurrentRow for offset zero and Following for negative offsets.
*
*
* int64 offset = 1;
* @return The offset.
*/
long getOffset();
}
/**
*
* Defines that the bound extends this far back from the current record.
*
*
* Protobuf type {@code substrait.Expression.WindowFunction.Bound.Preceding}
*/
public static final class Preceding extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Expression.WindowFunction.Bound.Preceding)
PrecedingOrBuilder {
private static final long serialVersionUID = 0L;
// Use Preceding.newBuilder() to construct.
private Preceding(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Preceding() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Preceding();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_Bound_Preceding_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_Bound_Preceding_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.WindowFunction.Bound.Preceding.class, io.substrait.proto.Expression.WindowFunction.Bound.Preceding.Builder.class);
}
public static final int OFFSET_FIELD_NUMBER = 1;
private long offset_ = 0L;
/**
*
* A strictly positive integer specifying the number of records that
* the window extends back from the current record. Required. Use
* CurrentRow for offset zero and Following for negative offsets.
*
*
* int64 offset = 1;
* @return The offset.
*/
@java.lang.Override
public long getOffset() {
return offset_;
}
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 (offset_ != 0L) {
output.writeInt64(1, offset_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (offset_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, offset_);
}
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 io.substrait.proto.Expression.WindowFunction.Bound.Preceding)) {
return super.equals(obj);
}
io.substrait.proto.Expression.WindowFunction.Bound.Preceding other = (io.substrait.proto.Expression.WindowFunction.Bound.Preceding) obj;
if (getOffset()
!= other.getOffset()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + OFFSET_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOffset());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Preceding parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Preceding parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Preceding parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Preceding parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Preceding parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Preceding parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Preceding parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Preceding 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 io.substrait.proto.Expression.WindowFunction.Bound.Preceding parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Preceding 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 io.substrait.proto.Expression.WindowFunction.Bound.Preceding parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Preceding 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(io.substrait.proto.Expression.WindowFunction.Bound.Preceding 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;
}
/**
*
* Defines that the bound extends this far back from the current record.
*
*
* Protobuf type {@code substrait.Expression.WindowFunction.Bound.Preceding}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Expression.WindowFunction.Bound.Preceding)
io.substrait.proto.Expression.WindowFunction.Bound.PrecedingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_Bound_Preceding_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_Bound_Preceding_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.WindowFunction.Bound.Preceding.class, io.substrait.proto.Expression.WindowFunction.Bound.Preceding.Builder.class);
}
// Construct using io.substrait.proto.Expression.WindowFunction.Bound.Preceding.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
offset_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_Bound_Preceding_descriptor;
}
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.Preceding getDefaultInstanceForType() {
return io.substrait.proto.Expression.WindowFunction.Bound.Preceding.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.Preceding build() {
io.substrait.proto.Expression.WindowFunction.Bound.Preceding result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.Preceding buildPartial() {
io.substrait.proto.Expression.WindowFunction.Bound.Preceding result = new io.substrait.proto.Expression.WindowFunction.Bound.Preceding(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.Expression.WindowFunction.Bound.Preceding result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.offset_ = offset_;
}
}
@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 io.substrait.proto.Expression.WindowFunction.Bound.Preceding) {
return mergeFrom((io.substrait.proto.Expression.WindowFunction.Bound.Preceding)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Expression.WindowFunction.Bound.Preceding other) {
if (other == io.substrait.proto.Expression.WindowFunction.Bound.Preceding.getDefaultInstance()) return this;
if (other.getOffset() != 0L) {
setOffset(other.getOffset());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
offset_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long offset_ ;
/**
*
* A strictly positive integer specifying the number of records that
* the window extends back from the current record. Required. Use
* CurrentRow for offset zero and Following for negative offsets.
*
*
* int64 offset = 1;
* @return The offset.
*/
@java.lang.Override
public long getOffset() {
return offset_;
}
/**
*
* A strictly positive integer specifying the number of records that
* the window extends back from the current record. Required. Use
* CurrentRow for offset zero and Following for negative offsets.
*
*
* int64 offset = 1;
* @param value The offset to set.
* @return This builder for chaining.
*/
public Builder setOffset(long value) {
offset_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* A strictly positive integer specifying the number of records that
* the window extends back from the current record. Required. Use
* CurrentRow for offset zero and Following for negative offsets.
*
*
* int64 offset = 1;
* @return This builder for chaining.
*/
public Builder clearOffset() {
bitField0_ = (bitField0_ & ~0x00000001);
offset_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:substrait.Expression.WindowFunction.Bound.Preceding)
}
// @@protoc_insertion_point(class_scope:substrait.Expression.WindowFunction.Bound.Preceding)
private static final io.substrait.proto.Expression.WindowFunction.Bound.Preceding DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.Expression.WindowFunction.Bound.Preceding();
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Preceding getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Preceding parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.Preceding getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FollowingOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.Expression.WindowFunction.Bound.Following)
com.google.protobuf.MessageOrBuilder {
/**
*
* A strictly positive integer specifying the number of records that
* the window extends ahead of the current record. Required. Use
* CurrentRow for offset zero and Preceding for negative offsets.
*
*
* int64 offset = 1;
* @return The offset.
*/
long getOffset();
}
/**
*
* Defines that the bound extends this far ahead of the current record.
*
*
* Protobuf type {@code substrait.Expression.WindowFunction.Bound.Following}
*/
public static final class Following extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Expression.WindowFunction.Bound.Following)
FollowingOrBuilder {
private static final long serialVersionUID = 0L;
// Use Following.newBuilder() to construct.
private Following(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Following() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Following();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_Bound_Following_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_Bound_Following_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.WindowFunction.Bound.Following.class, io.substrait.proto.Expression.WindowFunction.Bound.Following.Builder.class);
}
public static final int OFFSET_FIELD_NUMBER = 1;
private long offset_ = 0L;
/**
*
* A strictly positive integer specifying the number of records that
* the window extends ahead of the current record. Required. Use
* CurrentRow for offset zero and Preceding for negative offsets.
*
*
* int64 offset = 1;
* @return The offset.
*/
@java.lang.Override
public long getOffset() {
return offset_;
}
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 (offset_ != 0L) {
output.writeInt64(1, offset_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (offset_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, offset_);
}
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 io.substrait.proto.Expression.WindowFunction.Bound.Following)) {
return super.equals(obj);
}
io.substrait.proto.Expression.WindowFunction.Bound.Following other = (io.substrait.proto.Expression.WindowFunction.Bound.Following) obj;
if (getOffset()
!= other.getOffset()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + OFFSET_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOffset());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Following parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Following parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Following parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Following parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Following parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Following parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Following parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Following 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 io.substrait.proto.Expression.WindowFunction.Bound.Following parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Following 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 io.substrait.proto.Expression.WindowFunction.Bound.Following parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Following 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(io.substrait.proto.Expression.WindowFunction.Bound.Following 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;
}
/**
*
* Defines that the bound extends this far ahead of the current record.
*
*
* Protobuf type {@code substrait.Expression.WindowFunction.Bound.Following}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Expression.WindowFunction.Bound.Following)
io.substrait.proto.Expression.WindowFunction.Bound.FollowingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_Bound_Following_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_Bound_Following_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.WindowFunction.Bound.Following.class, io.substrait.proto.Expression.WindowFunction.Bound.Following.Builder.class);
}
// Construct using io.substrait.proto.Expression.WindowFunction.Bound.Following.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
offset_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_Bound_Following_descriptor;
}
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.Following getDefaultInstanceForType() {
return io.substrait.proto.Expression.WindowFunction.Bound.Following.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.Following build() {
io.substrait.proto.Expression.WindowFunction.Bound.Following result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.Following buildPartial() {
io.substrait.proto.Expression.WindowFunction.Bound.Following result = new io.substrait.proto.Expression.WindowFunction.Bound.Following(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.Expression.WindowFunction.Bound.Following result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.offset_ = offset_;
}
}
@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 io.substrait.proto.Expression.WindowFunction.Bound.Following) {
return mergeFrom((io.substrait.proto.Expression.WindowFunction.Bound.Following)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Expression.WindowFunction.Bound.Following other) {
if (other == io.substrait.proto.Expression.WindowFunction.Bound.Following.getDefaultInstance()) return this;
if (other.getOffset() != 0L) {
setOffset(other.getOffset());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
offset_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long offset_ ;
/**
*
* A strictly positive integer specifying the number of records that
* the window extends ahead of the current record. Required. Use
* CurrentRow for offset zero and Preceding for negative offsets.
*
*
* int64 offset = 1;
* @return The offset.
*/
@java.lang.Override
public long getOffset() {
return offset_;
}
/**
*
* A strictly positive integer specifying the number of records that
* the window extends ahead of the current record. Required. Use
* CurrentRow for offset zero and Preceding for negative offsets.
*
*
* int64 offset = 1;
* @param value The offset to set.
* @return This builder for chaining.
*/
public Builder setOffset(long value) {
offset_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* A strictly positive integer specifying the number of records that
* the window extends ahead of the current record. Required. Use
* CurrentRow for offset zero and Preceding for negative offsets.
*
*
* int64 offset = 1;
* @return This builder for chaining.
*/
public Builder clearOffset() {
bitField0_ = (bitField0_ & ~0x00000001);
offset_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:substrait.Expression.WindowFunction.Bound.Following)
}
// @@protoc_insertion_point(class_scope:substrait.Expression.WindowFunction.Bound.Following)
private static final io.substrait.proto.Expression.WindowFunction.Bound.Following DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.Expression.WindowFunction.Bound.Following();
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Following getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Following parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.Following getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CurrentRowOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.Expression.WindowFunction.Bound.CurrentRow)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* Defines that the bound extends to or from the current record.
*
*
* Protobuf type {@code substrait.Expression.WindowFunction.Bound.CurrentRow}
*/
public static final class CurrentRow extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Expression.WindowFunction.Bound.CurrentRow)
CurrentRowOrBuilder {
private static final long serialVersionUID = 0L;
// Use CurrentRow.newBuilder() to construct.
private CurrentRow(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CurrentRow() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CurrentRow();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_Bound_CurrentRow_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_Bound_CurrentRow_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow.class, io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow)) {
return super.equals(obj);
}
io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow other = (io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow 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 io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow 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 io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow 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(io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow 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;
}
/**
*
* Defines that the bound extends to or from the current record.
*
*
* Protobuf type {@code substrait.Expression.WindowFunction.Bound.CurrentRow}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Expression.WindowFunction.Bound.CurrentRow)
io.substrait.proto.Expression.WindowFunction.Bound.CurrentRowOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_Bound_CurrentRow_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_Bound_CurrentRow_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow.class, io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow.Builder.class);
}
// Construct using io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_Bound_CurrentRow_descriptor;
}
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow getDefaultInstanceForType() {
return io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow build() {
io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow buildPartial() {
io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow result = new io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow(this);
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 io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow) {
return mergeFrom((io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow other) {
if (other == io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@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:substrait.Expression.WindowFunction.Bound.CurrentRow)
}
// @@protoc_insertion_point(class_scope:substrait.Expression.WindowFunction.Bound.CurrentRow)
private static final io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow();
}
public static io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CurrentRow parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UnboundedOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.Expression.WindowFunction.Bound.Unbounded)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* Defines an "unbounded bound": for lower bounds this means the start
* of the partition, and for upper bounds this means the end of the
* partition.
*
*
* Protobuf type {@code substrait.Expression.WindowFunction.Bound.Unbounded}
*/
public static final class Unbounded extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Expression.WindowFunction.Bound.Unbounded)
UnboundedOrBuilder {
private static final long serialVersionUID = 0L;
// Use Unbounded.newBuilder() to construct.
private Unbounded(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Unbounded() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Unbounded();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_Bound_Unbounded_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_Bound_Unbounded_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.WindowFunction.Bound.Unbounded.class, io.substrait.proto.Expression.WindowFunction.Bound.Unbounded.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 io.substrait.proto.Expression.WindowFunction.Bound.Unbounded)) {
return super.equals(obj);
}
io.substrait.proto.Expression.WindowFunction.Bound.Unbounded other = (io.substrait.proto.Expression.WindowFunction.Bound.Unbounded) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Unbounded parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Unbounded parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Unbounded parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Unbounded parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Unbounded parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Unbounded parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Unbounded parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Unbounded 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 io.substrait.proto.Expression.WindowFunction.Bound.Unbounded parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Unbounded 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 io.substrait.proto.Expression.WindowFunction.Bound.Unbounded parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Unbounded 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(io.substrait.proto.Expression.WindowFunction.Bound.Unbounded 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;
}
/**
*
* Defines an "unbounded bound": for lower bounds this means the start
* of the partition, and for upper bounds this means the end of the
* partition.
*
*
* Protobuf type {@code substrait.Expression.WindowFunction.Bound.Unbounded}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Expression.WindowFunction.Bound.Unbounded)
io.substrait.proto.Expression.WindowFunction.Bound.UnboundedOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_Bound_Unbounded_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_Bound_Unbounded_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.WindowFunction.Bound.Unbounded.class, io.substrait.proto.Expression.WindowFunction.Bound.Unbounded.Builder.class);
}
// Construct using io.substrait.proto.Expression.WindowFunction.Bound.Unbounded.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_Bound_Unbounded_descriptor;
}
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.Unbounded getDefaultInstanceForType() {
return io.substrait.proto.Expression.WindowFunction.Bound.Unbounded.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.Unbounded build() {
io.substrait.proto.Expression.WindowFunction.Bound.Unbounded result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.Unbounded buildPartial() {
io.substrait.proto.Expression.WindowFunction.Bound.Unbounded result = new io.substrait.proto.Expression.WindowFunction.Bound.Unbounded(this);
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 io.substrait.proto.Expression.WindowFunction.Bound.Unbounded) {
return mergeFrom((io.substrait.proto.Expression.WindowFunction.Bound.Unbounded)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Expression.WindowFunction.Bound.Unbounded other) {
if (other == io.substrait.proto.Expression.WindowFunction.Bound.Unbounded.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@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:substrait.Expression.WindowFunction.Bound.Unbounded)
}
// @@protoc_insertion_point(class_scope:substrait.Expression.WindowFunction.Bound.Unbounded)
private static final io.substrait.proto.Expression.WindowFunction.Bound.Unbounded DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.Expression.WindowFunction.Bound.Unbounded();
}
public static io.substrait.proto.Expression.WindowFunction.Bound.Unbounded getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Unbounded parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.Unbounded getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int kindCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object kind_;
public enum KindCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
PRECEDING(1),
FOLLOWING(2),
CURRENT_ROW(3),
UNBOUNDED(4),
KIND_NOT_SET(0);
private final int value;
private KindCase(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 KindCase valueOf(int value) {
return forNumber(value);
}
public static KindCase forNumber(int value) {
switch (value) {
case 1: return PRECEDING;
case 2: return FOLLOWING;
case 3: return CURRENT_ROW;
case 4: return UNBOUNDED;
case 0: return KIND_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public KindCase
getKindCase() {
return KindCase.forNumber(
kindCase_);
}
public static final int PRECEDING_FIELD_NUMBER = 1;
/**
*
* The bound extends some number of records behind the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.Preceding preceding = 1;
* @return Whether the preceding field is set.
*/
@java.lang.Override
public boolean hasPreceding() {
return kindCase_ == 1;
}
/**
*
* The bound extends some number of records behind the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.Preceding preceding = 1;
* @return The preceding.
*/
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.Preceding getPreceding() {
if (kindCase_ == 1) {
return (io.substrait.proto.Expression.WindowFunction.Bound.Preceding) kind_;
}
return io.substrait.proto.Expression.WindowFunction.Bound.Preceding.getDefaultInstance();
}
/**
*
* The bound extends some number of records behind the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.Preceding preceding = 1;
*/
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.PrecedingOrBuilder getPrecedingOrBuilder() {
if (kindCase_ == 1) {
return (io.substrait.proto.Expression.WindowFunction.Bound.Preceding) kind_;
}
return io.substrait.proto.Expression.WindowFunction.Bound.Preceding.getDefaultInstance();
}
public static final int FOLLOWING_FIELD_NUMBER = 2;
/**
*
* The bound extends some number of records ahead of the current
* record.
*
*
* .substrait.Expression.WindowFunction.Bound.Following following = 2;
* @return Whether the following field is set.
*/
@java.lang.Override
public boolean hasFollowing() {
return kindCase_ == 2;
}
/**
*
* The bound extends some number of records ahead of the current
* record.
*
*
* .substrait.Expression.WindowFunction.Bound.Following following = 2;
* @return The following.
*/
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.Following getFollowing() {
if (kindCase_ == 2) {
return (io.substrait.proto.Expression.WindowFunction.Bound.Following) kind_;
}
return io.substrait.proto.Expression.WindowFunction.Bound.Following.getDefaultInstance();
}
/**
*
* The bound extends some number of records ahead of the current
* record.
*
*
* .substrait.Expression.WindowFunction.Bound.Following following = 2;
*/
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.FollowingOrBuilder getFollowingOrBuilder() {
if (kindCase_ == 2) {
return (io.substrait.proto.Expression.WindowFunction.Bound.Following) kind_;
}
return io.substrait.proto.Expression.WindowFunction.Bound.Following.getDefaultInstance();
}
public static final int CURRENT_ROW_FIELD_NUMBER = 3;
/**
*
* The bound extends to the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.CurrentRow current_row = 3;
* @return Whether the currentRow field is set.
*/
@java.lang.Override
public boolean hasCurrentRow() {
return kindCase_ == 3;
}
/**
*
* The bound extends to the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.CurrentRow current_row = 3;
* @return The currentRow.
*/
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow getCurrentRow() {
if (kindCase_ == 3) {
return (io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow) kind_;
}
return io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow.getDefaultInstance();
}
/**
*
* The bound extends to the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.CurrentRow current_row = 3;
*/
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.CurrentRowOrBuilder getCurrentRowOrBuilder() {
if (kindCase_ == 3) {
return (io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow) kind_;
}
return io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow.getDefaultInstance();
}
public static final int UNBOUNDED_FIELD_NUMBER = 4;
/**
*
* The bound extends to the start of the partition or the end of the
* partition, depending on whether this represents the upper or lower
* bound.
*
*
* .substrait.Expression.WindowFunction.Bound.Unbounded unbounded = 4;
* @return Whether the unbounded field is set.
*/
@java.lang.Override
public boolean hasUnbounded() {
return kindCase_ == 4;
}
/**
*
* The bound extends to the start of the partition or the end of the
* partition, depending on whether this represents the upper or lower
* bound.
*
*
* .substrait.Expression.WindowFunction.Bound.Unbounded unbounded = 4;
* @return The unbounded.
*/
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.Unbounded getUnbounded() {
if (kindCase_ == 4) {
return (io.substrait.proto.Expression.WindowFunction.Bound.Unbounded) kind_;
}
return io.substrait.proto.Expression.WindowFunction.Bound.Unbounded.getDefaultInstance();
}
/**
*
* The bound extends to the start of the partition or the end of the
* partition, depending on whether this represents the upper or lower
* bound.
*
*
* .substrait.Expression.WindowFunction.Bound.Unbounded unbounded = 4;
*/
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.UnboundedOrBuilder getUnboundedOrBuilder() {
if (kindCase_ == 4) {
return (io.substrait.proto.Expression.WindowFunction.Bound.Unbounded) kind_;
}
return io.substrait.proto.Expression.WindowFunction.Bound.Unbounded.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 (kindCase_ == 1) {
output.writeMessage(1, (io.substrait.proto.Expression.WindowFunction.Bound.Preceding) kind_);
}
if (kindCase_ == 2) {
output.writeMessage(2, (io.substrait.proto.Expression.WindowFunction.Bound.Following) kind_);
}
if (kindCase_ == 3) {
output.writeMessage(3, (io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow) kind_);
}
if (kindCase_ == 4) {
output.writeMessage(4, (io.substrait.proto.Expression.WindowFunction.Bound.Unbounded) kind_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (kindCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (io.substrait.proto.Expression.WindowFunction.Bound.Preceding) kind_);
}
if (kindCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.substrait.proto.Expression.WindowFunction.Bound.Following) kind_);
}
if (kindCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow) kind_);
}
if (kindCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (io.substrait.proto.Expression.WindowFunction.Bound.Unbounded) kind_);
}
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 io.substrait.proto.Expression.WindowFunction.Bound)) {
return super.equals(obj);
}
io.substrait.proto.Expression.WindowFunction.Bound other = (io.substrait.proto.Expression.WindowFunction.Bound) obj;
if (!getKindCase().equals(other.getKindCase())) return false;
switch (kindCase_) {
case 1:
if (!getPreceding()
.equals(other.getPreceding())) return false;
break;
case 2:
if (!getFollowing()
.equals(other.getFollowing())) return false;
break;
case 3:
if (!getCurrentRow()
.equals(other.getCurrentRow())) return false;
break;
case 4:
if (!getUnbounded()
.equals(other.getUnbounded())) 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 (kindCase_) {
case 1:
hash = (37 * hash) + PRECEDING_FIELD_NUMBER;
hash = (53 * hash) + getPreceding().hashCode();
break;
case 2:
hash = (37 * hash) + FOLLOWING_FIELD_NUMBER;
hash = (53 * hash) + getFollowing().hashCode();
break;
case 3:
hash = (37 * hash) + CURRENT_ROW_FIELD_NUMBER;
hash = (53 * hash) + getCurrentRow().hashCode();
break;
case 4:
hash = (37 * hash) + UNBOUNDED_FIELD_NUMBER;
hash = (53 * hash) + getUnbounded().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.Expression.WindowFunction.Bound parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.WindowFunction.Bound parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.WindowFunction.Bound parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.WindowFunction.Bound parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.WindowFunction.Bound parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.WindowFunction.Bound parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.WindowFunction.Bound parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.WindowFunction.Bound 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 io.substrait.proto.Expression.WindowFunction.Bound parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.WindowFunction.Bound 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 io.substrait.proto.Expression.WindowFunction.Bound parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.WindowFunction.Bound 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(io.substrait.proto.Expression.WindowFunction.Bound 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;
}
/**
*
* Defines one of the two boundaries for the window of a window function.
*
*
* Protobuf type {@code substrait.Expression.WindowFunction.Bound}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Expression.WindowFunction.Bound)
io.substrait.proto.Expression.WindowFunction.BoundOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_Bound_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_Bound_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.WindowFunction.Bound.class, io.substrait.proto.Expression.WindowFunction.Bound.Builder.class);
}
// Construct using io.substrait.proto.Expression.WindowFunction.Bound.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (precedingBuilder_ != null) {
precedingBuilder_.clear();
}
if (followingBuilder_ != null) {
followingBuilder_.clear();
}
if (currentRowBuilder_ != null) {
currentRowBuilder_.clear();
}
if (unboundedBuilder_ != null) {
unboundedBuilder_.clear();
}
kindCase_ = 0;
kind_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_Bound_descriptor;
}
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound getDefaultInstanceForType() {
return io.substrait.proto.Expression.WindowFunction.Bound.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound build() {
io.substrait.proto.Expression.WindowFunction.Bound result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound buildPartial() {
io.substrait.proto.Expression.WindowFunction.Bound result = new io.substrait.proto.Expression.WindowFunction.Bound(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.Expression.WindowFunction.Bound result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(io.substrait.proto.Expression.WindowFunction.Bound result) {
result.kindCase_ = kindCase_;
result.kind_ = this.kind_;
if (kindCase_ == 1 &&
precedingBuilder_ != null) {
result.kind_ = precedingBuilder_.build();
}
if (kindCase_ == 2 &&
followingBuilder_ != null) {
result.kind_ = followingBuilder_.build();
}
if (kindCase_ == 3 &&
currentRowBuilder_ != null) {
result.kind_ = currentRowBuilder_.build();
}
if (kindCase_ == 4 &&
unboundedBuilder_ != null) {
result.kind_ = unboundedBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.substrait.proto.Expression.WindowFunction.Bound) {
return mergeFrom((io.substrait.proto.Expression.WindowFunction.Bound)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Expression.WindowFunction.Bound other) {
if (other == io.substrait.proto.Expression.WindowFunction.Bound.getDefaultInstance()) return this;
switch (other.getKindCase()) {
case PRECEDING: {
mergePreceding(other.getPreceding());
break;
}
case FOLLOWING: {
mergeFollowing(other.getFollowing());
break;
}
case CURRENT_ROW: {
mergeCurrentRow(other.getCurrentRow());
break;
}
case UNBOUNDED: {
mergeUnbounded(other.getUnbounded());
break;
}
case KIND_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getPrecedingFieldBuilder().getBuilder(),
extensionRegistry);
kindCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getFollowingFieldBuilder().getBuilder(),
extensionRegistry);
kindCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getCurrentRowFieldBuilder().getBuilder(),
extensionRegistry);
kindCase_ = 3;
break;
} // case 26
case 34: {
input.readMessage(
getUnboundedFieldBuilder().getBuilder(),
extensionRegistry);
kindCase_ = 4;
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int kindCase_ = 0;
private java.lang.Object kind_;
public KindCase
getKindCase() {
return KindCase.forNumber(
kindCase_);
}
public Builder clearKind() {
kindCase_ = 0;
kind_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.WindowFunction.Bound.Preceding, io.substrait.proto.Expression.WindowFunction.Bound.Preceding.Builder, io.substrait.proto.Expression.WindowFunction.Bound.PrecedingOrBuilder> precedingBuilder_;
/**
*
* The bound extends some number of records behind the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.Preceding preceding = 1;
* @return Whether the preceding field is set.
*/
@java.lang.Override
public boolean hasPreceding() {
return kindCase_ == 1;
}
/**
*
* The bound extends some number of records behind the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.Preceding preceding = 1;
* @return The preceding.
*/
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.Preceding getPreceding() {
if (precedingBuilder_ == null) {
if (kindCase_ == 1) {
return (io.substrait.proto.Expression.WindowFunction.Bound.Preceding) kind_;
}
return io.substrait.proto.Expression.WindowFunction.Bound.Preceding.getDefaultInstance();
} else {
if (kindCase_ == 1) {
return precedingBuilder_.getMessage();
}
return io.substrait.proto.Expression.WindowFunction.Bound.Preceding.getDefaultInstance();
}
}
/**
*
* The bound extends some number of records behind the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.Preceding preceding = 1;
*/
public Builder setPreceding(io.substrait.proto.Expression.WindowFunction.Bound.Preceding value) {
if (precedingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
kind_ = value;
onChanged();
} else {
precedingBuilder_.setMessage(value);
}
kindCase_ = 1;
return this;
}
/**
*
* The bound extends some number of records behind the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.Preceding preceding = 1;
*/
public Builder setPreceding(
io.substrait.proto.Expression.WindowFunction.Bound.Preceding.Builder builderForValue) {
if (precedingBuilder_ == null) {
kind_ = builderForValue.build();
onChanged();
} else {
precedingBuilder_.setMessage(builderForValue.build());
}
kindCase_ = 1;
return this;
}
/**
*
* The bound extends some number of records behind the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.Preceding preceding = 1;
*/
public Builder mergePreceding(io.substrait.proto.Expression.WindowFunction.Bound.Preceding value) {
if (precedingBuilder_ == null) {
if (kindCase_ == 1 &&
kind_ != io.substrait.proto.Expression.WindowFunction.Bound.Preceding.getDefaultInstance()) {
kind_ = io.substrait.proto.Expression.WindowFunction.Bound.Preceding.newBuilder((io.substrait.proto.Expression.WindowFunction.Bound.Preceding) kind_)
.mergeFrom(value).buildPartial();
} else {
kind_ = value;
}
onChanged();
} else {
if (kindCase_ == 1) {
precedingBuilder_.mergeFrom(value);
} else {
precedingBuilder_.setMessage(value);
}
}
kindCase_ = 1;
return this;
}
/**
*
* The bound extends some number of records behind the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.Preceding preceding = 1;
*/
public Builder clearPreceding() {
if (precedingBuilder_ == null) {
if (kindCase_ == 1) {
kindCase_ = 0;
kind_ = null;
onChanged();
}
} else {
if (kindCase_ == 1) {
kindCase_ = 0;
kind_ = null;
}
precedingBuilder_.clear();
}
return this;
}
/**
*
* The bound extends some number of records behind the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.Preceding preceding = 1;
*/
public io.substrait.proto.Expression.WindowFunction.Bound.Preceding.Builder getPrecedingBuilder() {
return getPrecedingFieldBuilder().getBuilder();
}
/**
*
* The bound extends some number of records behind the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.Preceding preceding = 1;
*/
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.PrecedingOrBuilder getPrecedingOrBuilder() {
if ((kindCase_ == 1) && (precedingBuilder_ != null)) {
return precedingBuilder_.getMessageOrBuilder();
} else {
if (kindCase_ == 1) {
return (io.substrait.proto.Expression.WindowFunction.Bound.Preceding) kind_;
}
return io.substrait.proto.Expression.WindowFunction.Bound.Preceding.getDefaultInstance();
}
}
/**
*
* The bound extends some number of records behind the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.Preceding preceding = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.WindowFunction.Bound.Preceding, io.substrait.proto.Expression.WindowFunction.Bound.Preceding.Builder, io.substrait.proto.Expression.WindowFunction.Bound.PrecedingOrBuilder>
getPrecedingFieldBuilder() {
if (precedingBuilder_ == null) {
if (!(kindCase_ == 1)) {
kind_ = io.substrait.proto.Expression.WindowFunction.Bound.Preceding.getDefaultInstance();
}
precedingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.WindowFunction.Bound.Preceding, io.substrait.proto.Expression.WindowFunction.Bound.Preceding.Builder, io.substrait.proto.Expression.WindowFunction.Bound.PrecedingOrBuilder>(
(io.substrait.proto.Expression.WindowFunction.Bound.Preceding) kind_,
getParentForChildren(),
isClean());
kind_ = null;
}
kindCase_ = 1;
onChanged();
return precedingBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.WindowFunction.Bound.Following, io.substrait.proto.Expression.WindowFunction.Bound.Following.Builder, io.substrait.proto.Expression.WindowFunction.Bound.FollowingOrBuilder> followingBuilder_;
/**
*
* The bound extends some number of records ahead of the current
* record.
*
*
* .substrait.Expression.WindowFunction.Bound.Following following = 2;
* @return Whether the following field is set.
*/
@java.lang.Override
public boolean hasFollowing() {
return kindCase_ == 2;
}
/**
*
* The bound extends some number of records ahead of the current
* record.
*
*
* .substrait.Expression.WindowFunction.Bound.Following following = 2;
* @return The following.
*/
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.Following getFollowing() {
if (followingBuilder_ == null) {
if (kindCase_ == 2) {
return (io.substrait.proto.Expression.WindowFunction.Bound.Following) kind_;
}
return io.substrait.proto.Expression.WindowFunction.Bound.Following.getDefaultInstance();
} else {
if (kindCase_ == 2) {
return followingBuilder_.getMessage();
}
return io.substrait.proto.Expression.WindowFunction.Bound.Following.getDefaultInstance();
}
}
/**
*
* The bound extends some number of records ahead of the current
* record.
*
*
* .substrait.Expression.WindowFunction.Bound.Following following = 2;
*/
public Builder setFollowing(io.substrait.proto.Expression.WindowFunction.Bound.Following value) {
if (followingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
kind_ = value;
onChanged();
} else {
followingBuilder_.setMessage(value);
}
kindCase_ = 2;
return this;
}
/**
*
* The bound extends some number of records ahead of the current
* record.
*
*
* .substrait.Expression.WindowFunction.Bound.Following following = 2;
*/
public Builder setFollowing(
io.substrait.proto.Expression.WindowFunction.Bound.Following.Builder builderForValue) {
if (followingBuilder_ == null) {
kind_ = builderForValue.build();
onChanged();
} else {
followingBuilder_.setMessage(builderForValue.build());
}
kindCase_ = 2;
return this;
}
/**
*
* The bound extends some number of records ahead of the current
* record.
*
*
* .substrait.Expression.WindowFunction.Bound.Following following = 2;
*/
public Builder mergeFollowing(io.substrait.proto.Expression.WindowFunction.Bound.Following value) {
if (followingBuilder_ == null) {
if (kindCase_ == 2 &&
kind_ != io.substrait.proto.Expression.WindowFunction.Bound.Following.getDefaultInstance()) {
kind_ = io.substrait.proto.Expression.WindowFunction.Bound.Following.newBuilder((io.substrait.proto.Expression.WindowFunction.Bound.Following) kind_)
.mergeFrom(value).buildPartial();
} else {
kind_ = value;
}
onChanged();
} else {
if (kindCase_ == 2) {
followingBuilder_.mergeFrom(value);
} else {
followingBuilder_.setMessage(value);
}
}
kindCase_ = 2;
return this;
}
/**
*
* The bound extends some number of records ahead of the current
* record.
*
*
* .substrait.Expression.WindowFunction.Bound.Following following = 2;
*/
public Builder clearFollowing() {
if (followingBuilder_ == null) {
if (kindCase_ == 2) {
kindCase_ = 0;
kind_ = null;
onChanged();
}
} else {
if (kindCase_ == 2) {
kindCase_ = 0;
kind_ = null;
}
followingBuilder_.clear();
}
return this;
}
/**
*
* The bound extends some number of records ahead of the current
* record.
*
*
* .substrait.Expression.WindowFunction.Bound.Following following = 2;
*/
public io.substrait.proto.Expression.WindowFunction.Bound.Following.Builder getFollowingBuilder() {
return getFollowingFieldBuilder().getBuilder();
}
/**
*
* The bound extends some number of records ahead of the current
* record.
*
*
* .substrait.Expression.WindowFunction.Bound.Following following = 2;
*/
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.FollowingOrBuilder getFollowingOrBuilder() {
if ((kindCase_ == 2) && (followingBuilder_ != null)) {
return followingBuilder_.getMessageOrBuilder();
} else {
if (kindCase_ == 2) {
return (io.substrait.proto.Expression.WindowFunction.Bound.Following) kind_;
}
return io.substrait.proto.Expression.WindowFunction.Bound.Following.getDefaultInstance();
}
}
/**
*
* The bound extends some number of records ahead of the current
* record.
*
*
* .substrait.Expression.WindowFunction.Bound.Following following = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.WindowFunction.Bound.Following, io.substrait.proto.Expression.WindowFunction.Bound.Following.Builder, io.substrait.proto.Expression.WindowFunction.Bound.FollowingOrBuilder>
getFollowingFieldBuilder() {
if (followingBuilder_ == null) {
if (!(kindCase_ == 2)) {
kind_ = io.substrait.proto.Expression.WindowFunction.Bound.Following.getDefaultInstance();
}
followingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.WindowFunction.Bound.Following, io.substrait.proto.Expression.WindowFunction.Bound.Following.Builder, io.substrait.proto.Expression.WindowFunction.Bound.FollowingOrBuilder>(
(io.substrait.proto.Expression.WindowFunction.Bound.Following) kind_,
getParentForChildren(),
isClean());
kind_ = null;
}
kindCase_ = 2;
onChanged();
return followingBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow, io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow.Builder, io.substrait.proto.Expression.WindowFunction.Bound.CurrentRowOrBuilder> currentRowBuilder_;
/**
*
* The bound extends to the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.CurrentRow current_row = 3;
* @return Whether the currentRow field is set.
*/
@java.lang.Override
public boolean hasCurrentRow() {
return kindCase_ == 3;
}
/**
*
* The bound extends to the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.CurrentRow current_row = 3;
* @return The currentRow.
*/
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow getCurrentRow() {
if (currentRowBuilder_ == null) {
if (kindCase_ == 3) {
return (io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow) kind_;
}
return io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow.getDefaultInstance();
} else {
if (kindCase_ == 3) {
return currentRowBuilder_.getMessage();
}
return io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow.getDefaultInstance();
}
}
/**
*
* The bound extends to the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.CurrentRow current_row = 3;
*/
public Builder setCurrentRow(io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow value) {
if (currentRowBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
kind_ = value;
onChanged();
} else {
currentRowBuilder_.setMessage(value);
}
kindCase_ = 3;
return this;
}
/**
*
* The bound extends to the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.CurrentRow current_row = 3;
*/
public Builder setCurrentRow(
io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow.Builder builderForValue) {
if (currentRowBuilder_ == null) {
kind_ = builderForValue.build();
onChanged();
} else {
currentRowBuilder_.setMessage(builderForValue.build());
}
kindCase_ = 3;
return this;
}
/**
*
* The bound extends to the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.CurrentRow current_row = 3;
*/
public Builder mergeCurrentRow(io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow value) {
if (currentRowBuilder_ == null) {
if (kindCase_ == 3 &&
kind_ != io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow.getDefaultInstance()) {
kind_ = io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow.newBuilder((io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow) kind_)
.mergeFrom(value).buildPartial();
} else {
kind_ = value;
}
onChanged();
} else {
if (kindCase_ == 3) {
currentRowBuilder_.mergeFrom(value);
} else {
currentRowBuilder_.setMessage(value);
}
}
kindCase_ = 3;
return this;
}
/**
*
* The bound extends to the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.CurrentRow current_row = 3;
*/
public Builder clearCurrentRow() {
if (currentRowBuilder_ == null) {
if (kindCase_ == 3) {
kindCase_ = 0;
kind_ = null;
onChanged();
}
} else {
if (kindCase_ == 3) {
kindCase_ = 0;
kind_ = null;
}
currentRowBuilder_.clear();
}
return this;
}
/**
*
* The bound extends to the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.CurrentRow current_row = 3;
*/
public io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow.Builder getCurrentRowBuilder() {
return getCurrentRowFieldBuilder().getBuilder();
}
/**
*
* The bound extends to the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.CurrentRow current_row = 3;
*/
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.CurrentRowOrBuilder getCurrentRowOrBuilder() {
if ((kindCase_ == 3) && (currentRowBuilder_ != null)) {
return currentRowBuilder_.getMessageOrBuilder();
} else {
if (kindCase_ == 3) {
return (io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow) kind_;
}
return io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow.getDefaultInstance();
}
}
/**
*
* The bound extends to the current record.
*
*
* .substrait.Expression.WindowFunction.Bound.CurrentRow current_row = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow, io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow.Builder, io.substrait.proto.Expression.WindowFunction.Bound.CurrentRowOrBuilder>
getCurrentRowFieldBuilder() {
if (currentRowBuilder_ == null) {
if (!(kindCase_ == 3)) {
kind_ = io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow.getDefaultInstance();
}
currentRowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow, io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow.Builder, io.substrait.proto.Expression.WindowFunction.Bound.CurrentRowOrBuilder>(
(io.substrait.proto.Expression.WindowFunction.Bound.CurrentRow) kind_,
getParentForChildren(),
isClean());
kind_ = null;
}
kindCase_ = 3;
onChanged();
return currentRowBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.WindowFunction.Bound.Unbounded, io.substrait.proto.Expression.WindowFunction.Bound.Unbounded.Builder, io.substrait.proto.Expression.WindowFunction.Bound.UnboundedOrBuilder> unboundedBuilder_;
/**
*
* The bound extends to the start of the partition or the end of the
* partition, depending on whether this represents the upper or lower
* bound.
*
*
* .substrait.Expression.WindowFunction.Bound.Unbounded unbounded = 4;
* @return Whether the unbounded field is set.
*/
@java.lang.Override
public boolean hasUnbounded() {
return kindCase_ == 4;
}
/**
*
* The bound extends to the start of the partition or the end of the
* partition, depending on whether this represents the upper or lower
* bound.
*
*
* .substrait.Expression.WindowFunction.Bound.Unbounded unbounded = 4;
* @return The unbounded.
*/
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.Unbounded getUnbounded() {
if (unboundedBuilder_ == null) {
if (kindCase_ == 4) {
return (io.substrait.proto.Expression.WindowFunction.Bound.Unbounded) kind_;
}
return io.substrait.proto.Expression.WindowFunction.Bound.Unbounded.getDefaultInstance();
} else {
if (kindCase_ == 4) {
return unboundedBuilder_.getMessage();
}
return io.substrait.proto.Expression.WindowFunction.Bound.Unbounded.getDefaultInstance();
}
}
/**
*
* The bound extends to the start of the partition or the end of the
* partition, depending on whether this represents the upper or lower
* bound.
*
*
* .substrait.Expression.WindowFunction.Bound.Unbounded unbounded = 4;
*/
public Builder setUnbounded(io.substrait.proto.Expression.WindowFunction.Bound.Unbounded value) {
if (unboundedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
kind_ = value;
onChanged();
} else {
unboundedBuilder_.setMessage(value);
}
kindCase_ = 4;
return this;
}
/**
*
* The bound extends to the start of the partition or the end of the
* partition, depending on whether this represents the upper or lower
* bound.
*
*
* .substrait.Expression.WindowFunction.Bound.Unbounded unbounded = 4;
*/
public Builder setUnbounded(
io.substrait.proto.Expression.WindowFunction.Bound.Unbounded.Builder builderForValue) {
if (unboundedBuilder_ == null) {
kind_ = builderForValue.build();
onChanged();
} else {
unboundedBuilder_.setMessage(builderForValue.build());
}
kindCase_ = 4;
return this;
}
/**
*
* The bound extends to the start of the partition or the end of the
* partition, depending on whether this represents the upper or lower
* bound.
*
*
* .substrait.Expression.WindowFunction.Bound.Unbounded unbounded = 4;
*/
public Builder mergeUnbounded(io.substrait.proto.Expression.WindowFunction.Bound.Unbounded value) {
if (unboundedBuilder_ == null) {
if (kindCase_ == 4 &&
kind_ != io.substrait.proto.Expression.WindowFunction.Bound.Unbounded.getDefaultInstance()) {
kind_ = io.substrait.proto.Expression.WindowFunction.Bound.Unbounded.newBuilder((io.substrait.proto.Expression.WindowFunction.Bound.Unbounded) kind_)
.mergeFrom(value).buildPartial();
} else {
kind_ = value;
}
onChanged();
} else {
if (kindCase_ == 4) {
unboundedBuilder_.mergeFrom(value);
} else {
unboundedBuilder_.setMessage(value);
}
}
kindCase_ = 4;
return this;
}
/**
*
* The bound extends to the start of the partition or the end of the
* partition, depending on whether this represents the upper or lower
* bound.
*
*
* .substrait.Expression.WindowFunction.Bound.Unbounded unbounded = 4;
*/
public Builder clearUnbounded() {
if (unboundedBuilder_ == null) {
if (kindCase_ == 4) {
kindCase_ = 0;
kind_ = null;
onChanged();
}
} else {
if (kindCase_ == 4) {
kindCase_ = 0;
kind_ = null;
}
unboundedBuilder_.clear();
}
return this;
}
/**
*
* The bound extends to the start of the partition or the end of the
* partition, depending on whether this represents the upper or lower
* bound.
*
*
* .substrait.Expression.WindowFunction.Bound.Unbounded unbounded = 4;
*/
public io.substrait.proto.Expression.WindowFunction.Bound.Unbounded.Builder getUnboundedBuilder() {
return getUnboundedFieldBuilder().getBuilder();
}
/**
*
* The bound extends to the start of the partition or the end of the
* partition, depending on whether this represents the upper or lower
* bound.
*
*
* .substrait.Expression.WindowFunction.Bound.Unbounded unbounded = 4;
*/
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound.UnboundedOrBuilder getUnboundedOrBuilder() {
if ((kindCase_ == 4) && (unboundedBuilder_ != null)) {
return unboundedBuilder_.getMessageOrBuilder();
} else {
if (kindCase_ == 4) {
return (io.substrait.proto.Expression.WindowFunction.Bound.Unbounded) kind_;
}
return io.substrait.proto.Expression.WindowFunction.Bound.Unbounded.getDefaultInstance();
}
}
/**
*
* The bound extends to the start of the partition or the end of the
* partition, depending on whether this represents the upper or lower
* bound.
*
*
* .substrait.Expression.WindowFunction.Bound.Unbounded unbounded = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.WindowFunction.Bound.Unbounded, io.substrait.proto.Expression.WindowFunction.Bound.Unbounded.Builder, io.substrait.proto.Expression.WindowFunction.Bound.UnboundedOrBuilder>
getUnboundedFieldBuilder() {
if (unboundedBuilder_ == null) {
if (!(kindCase_ == 4)) {
kind_ = io.substrait.proto.Expression.WindowFunction.Bound.Unbounded.getDefaultInstance();
}
unboundedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.WindowFunction.Bound.Unbounded, io.substrait.proto.Expression.WindowFunction.Bound.Unbounded.Builder, io.substrait.proto.Expression.WindowFunction.Bound.UnboundedOrBuilder>(
(io.substrait.proto.Expression.WindowFunction.Bound.Unbounded) kind_,
getParentForChildren(),
isClean());
kind_ = null;
}
kindCase_ = 4;
onChanged();
return unboundedBuilder_;
}
@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:substrait.Expression.WindowFunction.Bound)
}
// @@protoc_insertion_point(class_scope:substrait.Expression.WindowFunction.Bound)
private static final io.substrait.proto.Expression.WindowFunction.Bound DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.Expression.WindowFunction.Bound();
}
public static io.substrait.proto.Expression.WindowFunction.Bound getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Bound parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int FUNCTION_REFERENCE_FIELD_NUMBER = 1;
private int functionReference_ = 0;
/**
*
* Points to a function_anchor defined in this plan. The function must be:
* - a window function
* - an aggregate function
*
* An aggregate function referenced here should be treated as a window
* function with Window Type STREAMING
*
* Required; 0 is considered to be a valid anchor/reference.
*
*
* uint32 function_reference = 1;
* @return The functionReference.
*/
@java.lang.Override
public int getFunctionReference() {
return functionReference_;
}
public static final int ARGUMENTS_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private java.util.List arguments_;
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type, and a
* function overload must be defined for that type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 9;
*/
@java.lang.Override
public java.util.List getArgumentsList() {
return arguments_;
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type, and a
* function overload must be defined for that type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 9;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.FunctionArgumentOrBuilder>
getArgumentsOrBuilderList() {
return arguments_;
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type, and a
* function overload must be defined for that type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 9;
*/
@java.lang.Override
public int getArgumentsCount() {
return arguments_.size();
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type, and a
* function overload must be defined for that type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 9;
*/
@java.lang.Override
public io.substrait.proto.FunctionArgument getArguments(int index) {
return arguments_.get(index);
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type, and a
* function overload must be defined for that type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 9;
*/
@java.lang.Override
public io.substrait.proto.FunctionArgumentOrBuilder getArgumentsOrBuilder(
int index) {
return arguments_.get(index);
}
public static final int OPTIONS_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private java.util.List options_;
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 11;
*/
@java.lang.Override
public java.util.List getOptionsList() {
return options_;
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 11;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.FunctionOptionOrBuilder>
getOptionsOrBuilderList() {
return options_;
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 11;
*/
@java.lang.Override
public int getOptionsCount() {
return options_.size();
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 11;
*/
@java.lang.Override
public io.substrait.proto.FunctionOption getOptions(int index) {
return options_.get(index);
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 11;
*/
@java.lang.Override
public io.substrait.proto.FunctionOptionOrBuilder getOptionsOrBuilder(
int index) {
return options_.get(index);
}
public static final int OUTPUT_TYPE_FIELD_NUMBER = 7;
private io.substrait.proto.Type outputType_;
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 7;
* @return Whether the outputType field is set.
*/
@java.lang.Override
public boolean hasOutputType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 7;
* @return The outputType.
*/
@java.lang.Override
public io.substrait.proto.Type getOutputType() {
return outputType_ == null ? io.substrait.proto.Type.getDefaultInstance() : outputType_;
}
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 7;
*/
@java.lang.Override
public io.substrait.proto.TypeOrBuilder getOutputTypeOrBuilder() {
return outputType_ == null ? io.substrait.proto.Type.getDefaultInstance() : outputType_;
}
public static final int PHASE_FIELD_NUMBER = 6;
private int phase_ = 0;
/**
*
* Describes which part of the window function to perform within the
* context of distributed algorithms. Required. Must be set to
* INITIAL_TO_RESULT for window functions that are not decomposable.
*
*
* .substrait.AggregationPhase phase = 6;
* @return The enum numeric value on the wire for phase.
*/
@java.lang.Override public int getPhaseValue() {
return phase_;
}
/**
*
* Describes which part of the window function to perform within the
* context of distributed algorithms. Required. Must be set to
* INITIAL_TO_RESULT for window functions that are not decomposable.
*
*
* .substrait.AggregationPhase phase = 6;
* @return The phase.
*/
@java.lang.Override public io.substrait.proto.AggregationPhase getPhase() {
io.substrait.proto.AggregationPhase result = io.substrait.proto.AggregationPhase.forNumber(phase_);
return result == null ? io.substrait.proto.AggregationPhase.UNRECOGNIZED : result;
}
public static final int SORTS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List sorts_;
/**
*
* If specified, the records that are part of the window defined by
* upper_bound and lower_bound are ordered according to this list
* before they are aggregated. The first sort field has the highest
* priority; only if a sort field determines two records to be equivalent
* is the next field queried. This field is optional, and is only allowed
* if the window function is defined to support sorting.
*
*
* repeated .substrait.SortField sorts = 3;
*/
@java.lang.Override
public java.util.List getSortsList() {
return sorts_;
}
/**
*
* If specified, the records that are part of the window defined by
* upper_bound and lower_bound are ordered according to this list
* before they are aggregated. The first sort field has the highest
* priority; only if a sort field determines two records to be equivalent
* is the next field queried. This field is optional, and is only allowed
* if the window function is defined to support sorting.
*
*
* repeated .substrait.SortField sorts = 3;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.SortFieldOrBuilder>
getSortsOrBuilderList() {
return sorts_;
}
/**
*
* If specified, the records that are part of the window defined by
* upper_bound and lower_bound are ordered according to this list
* before they are aggregated. The first sort field has the highest
* priority; only if a sort field determines two records to be equivalent
* is the next field queried. This field is optional, and is only allowed
* if the window function is defined to support sorting.
*
*
* repeated .substrait.SortField sorts = 3;
*/
@java.lang.Override
public int getSortsCount() {
return sorts_.size();
}
/**
*
* If specified, the records that are part of the window defined by
* upper_bound and lower_bound are ordered according to this list
* before they are aggregated. The first sort field has the highest
* priority; only if a sort field determines two records to be equivalent
* is the next field queried. This field is optional, and is only allowed
* if the window function is defined to support sorting.
*
*
* repeated .substrait.SortField sorts = 3;
*/
@java.lang.Override
public io.substrait.proto.SortField getSorts(int index) {
return sorts_.get(index);
}
/**
*
* If specified, the records that are part of the window defined by
* upper_bound and lower_bound are ordered according to this list
* before they are aggregated. The first sort field has the highest
* priority; only if a sort field determines two records to be equivalent
* is the next field queried. This field is optional, and is only allowed
* if the window function is defined to support sorting.
*
*
* repeated .substrait.SortField sorts = 3;
*/
@java.lang.Override
public io.substrait.proto.SortFieldOrBuilder getSortsOrBuilder(
int index) {
return sorts_.get(index);
}
public static final int INVOCATION_FIELD_NUMBER = 10;
private int invocation_ = 0;
/**
*
* Specifies whether equivalent records are merged before being aggregated.
* Optional, defaults to AGGREGATION_INVOCATION_ALL.
*
*
* .substrait.AggregateFunction.AggregationInvocation invocation = 10;
* @return The enum numeric value on the wire for invocation.
*/
@java.lang.Override public int getInvocationValue() {
return invocation_;
}
/**
*
* Specifies whether equivalent records are merged before being aggregated.
* Optional, defaults to AGGREGATION_INVOCATION_ALL.
*
*
* .substrait.AggregateFunction.AggregationInvocation invocation = 10;
* @return The invocation.
*/
@java.lang.Override public io.substrait.proto.AggregateFunction.AggregationInvocation getInvocation() {
io.substrait.proto.AggregateFunction.AggregationInvocation result = io.substrait.proto.AggregateFunction.AggregationInvocation.forNumber(invocation_);
return result == null ? io.substrait.proto.AggregateFunction.AggregationInvocation.UNRECOGNIZED : result;
}
public static final int PARTITIONS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List partitions_;
/**
*
* When one or more partition expressions are specified, two records are
* considered to be in the same partition if and only if these expressions
* yield an equal record of values for both. When computing the window
* function, only the subset of records within the bounds that are also in
* the same partition as the current record are aggregated.
*
*
* repeated .substrait.Expression partitions = 2;
*/
@java.lang.Override
public java.util.List getPartitionsList() {
return partitions_;
}
/**
*
* When one or more partition expressions are specified, two records are
* considered to be in the same partition if and only if these expressions
* yield an equal record of values for both. When computing the window
* function, only the subset of records within the bounds that are also in
* the same partition as the current record are aggregated.
*
*
* repeated .substrait.Expression partitions = 2;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.ExpressionOrBuilder>
getPartitionsOrBuilderList() {
return partitions_;
}
/**
*
* When one or more partition expressions are specified, two records are
* considered to be in the same partition if and only if these expressions
* yield an equal record of values for both. When computing the window
* function, only the subset of records within the bounds that are also in
* the same partition as the current record are aggregated.
*
*
* repeated .substrait.Expression partitions = 2;
*/
@java.lang.Override
public int getPartitionsCount() {
return partitions_.size();
}
/**
*
* When one or more partition expressions are specified, two records are
* considered to be in the same partition if and only if these expressions
* yield an equal record of values for both. When computing the window
* function, only the subset of records within the bounds that are also in
* the same partition as the current record are aggregated.
*
*
* repeated .substrait.Expression partitions = 2;
*/
@java.lang.Override
public io.substrait.proto.Expression getPartitions(int index) {
return partitions_.get(index);
}
/**
*
* When one or more partition expressions are specified, two records are
* considered to be in the same partition if and only if these expressions
* yield an equal record of values for both. When computing the window
* function, only the subset of records within the bounds that are also in
* the same partition as the current record are aggregated.
*
*
* repeated .substrait.Expression partitions = 2;
*/
@java.lang.Override
public io.substrait.proto.ExpressionOrBuilder getPartitionsOrBuilder(
int index) {
return partitions_.get(index);
}
public static final int BOUNDS_TYPE_FIELD_NUMBER = 12;
private int boundsType_ = 0;
/**
*
* Defines the bounds type: ROWS, RANGE
*
*
* .substrait.Expression.WindowFunction.BoundsType bounds_type = 12;
* @return The enum numeric value on the wire for boundsType.
*/
@java.lang.Override public int getBoundsTypeValue() {
return boundsType_;
}
/**
*
* Defines the bounds type: ROWS, RANGE
*
*
* .substrait.Expression.WindowFunction.BoundsType bounds_type = 12;
* @return The boundsType.
*/
@java.lang.Override public io.substrait.proto.Expression.WindowFunction.BoundsType getBoundsType() {
io.substrait.proto.Expression.WindowFunction.BoundsType result = io.substrait.proto.Expression.WindowFunction.BoundsType.forNumber(boundsType_);
return result == null ? io.substrait.proto.Expression.WindowFunction.BoundsType.UNRECOGNIZED : result;
}
public static final int LOWER_BOUND_FIELD_NUMBER = 5;
private io.substrait.proto.Expression.WindowFunction.Bound lowerBound_;
/**
*
* Defines the record relative to the current record from which the window
* extends. The bound is inclusive. If the lower bound indexes a record
* greater than the upper bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the start of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
* @return Whether the lowerBound field is set.
*/
@java.lang.Override
public boolean hasLowerBound() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Defines the record relative to the current record from which the window
* extends. The bound is inclusive. If the lower bound indexes a record
* greater than the upper bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the start of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
* @return The lowerBound.
*/
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound getLowerBound() {
return lowerBound_ == null ? io.substrait.proto.Expression.WindowFunction.Bound.getDefaultInstance() : lowerBound_;
}
/**
*
* Defines the record relative to the current record from which the window
* extends. The bound is inclusive. If the lower bound indexes a record
* greater than the upper bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the start of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
*/
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.BoundOrBuilder getLowerBoundOrBuilder() {
return lowerBound_ == null ? io.substrait.proto.Expression.WindowFunction.Bound.getDefaultInstance() : lowerBound_;
}
public static final int UPPER_BOUND_FIELD_NUMBER = 4;
private io.substrait.proto.Expression.WindowFunction.Bound upperBound_;
/**
*
* Defines the record relative to the current record up to which the window
* extends. The bound is inclusive. If the upper bound indexes a record
* less than the lower bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the end of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
* @return Whether the upperBound field is set.
*/
@java.lang.Override
public boolean hasUpperBound() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Defines the record relative to the current record up to which the window
* extends. The bound is inclusive. If the upper bound indexes a record
* less than the lower bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the end of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
* @return The upperBound.
*/
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.Bound getUpperBound() {
return upperBound_ == null ? io.substrait.proto.Expression.WindowFunction.Bound.getDefaultInstance() : upperBound_;
}
/**
*
* Defines the record relative to the current record up to which the window
* extends. The bound is inclusive. If the upper bound indexes a record
* less than the lower bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the end of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
*/
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.BoundOrBuilder getUpperBoundOrBuilder() {
return upperBound_ == null ? io.substrait.proto.Expression.WindowFunction.Bound.getDefaultInstance() : upperBound_;
}
public static final int ARGS_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private java.util.List args_;
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 8 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public java.util.List getArgsList() {
return args_;
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 8 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public java.util.List extends io.substrait.proto.ExpressionOrBuilder>
getArgsOrBuilderList() {
return args_;
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 8 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public int getArgsCount() {
return args_.size();
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 8 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public io.substrait.proto.Expression getArgs(int index) {
return args_.get(index);
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 8 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public io.substrait.proto.ExpressionOrBuilder getArgsOrBuilder(
int index) {
return args_.get(index);
}
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 (functionReference_ != 0) {
output.writeUInt32(1, functionReference_);
}
for (int i = 0; i < partitions_.size(); i++) {
output.writeMessage(2, partitions_.get(i));
}
for (int i = 0; i < sorts_.size(); i++) {
output.writeMessage(3, sorts_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(4, getUpperBound());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(5, getLowerBound());
}
if (phase_ != io.substrait.proto.AggregationPhase.AGGREGATION_PHASE_UNSPECIFIED.getNumber()) {
output.writeEnum(6, phase_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(7, getOutputType());
}
for (int i = 0; i < args_.size(); i++) {
output.writeMessage(8, args_.get(i));
}
for (int i = 0; i < arguments_.size(); i++) {
output.writeMessage(9, arguments_.get(i));
}
if (invocation_ != io.substrait.proto.AggregateFunction.AggregationInvocation.AGGREGATION_INVOCATION_UNSPECIFIED.getNumber()) {
output.writeEnum(10, invocation_);
}
for (int i = 0; i < options_.size(); i++) {
output.writeMessage(11, options_.get(i));
}
if (boundsType_ != io.substrait.proto.Expression.WindowFunction.BoundsType.BOUNDS_TYPE_UNSPECIFIED.getNumber()) {
output.writeEnum(12, boundsType_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (functionReference_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, functionReference_);
}
for (int i = 0; i < partitions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, partitions_.get(i));
}
for (int i = 0; i < sorts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, sorts_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getUpperBound());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getLowerBound());
}
if (phase_ != io.substrait.proto.AggregationPhase.AGGREGATION_PHASE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, phase_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getOutputType());
}
for (int i = 0; i < args_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, args_.get(i));
}
for (int i = 0; i < arguments_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, arguments_.get(i));
}
if (invocation_ != io.substrait.proto.AggregateFunction.AggregationInvocation.AGGREGATION_INVOCATION_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(10, invocation_);
}
for (int i = 0; i < options_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, options_.get(i));
}
if (boundsType_ != io.substrait.proto.Expression.WindowFunction.BoundsType.BOUNDS_TYPE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(12, boundsType_);
}
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 io.substrait.proto.Expression.WindowFunction)) {
return super.equals(obj);
}
io.substrait.proto.Expression.WindowFunction other = (io.substrait.proto.Expression.WindowFunction) obj;
if (getFunctionReference()
!= other.getFunctionReference()) return false;
if (!getArgumentsList()
.equals(other.getArgumentsList())) return false;
if (!getOptionsList()
.equals(other.getOptionsList())) return false;
if (hasOutputType() != other.hasOutputType()) return false;
if (hasOutputType()) {
if (!getOutputType()
.equals(other.getOutputType())) return false;
}
if (phase_ != other.phase_) return false;
if (!getSortsList()
.equals(other.getSortsList())) return false;
if (invocation_ != other.invocation_) return false;
if (!getPartitionsList()
.equals(other.getPartitionsList())) return false;
if (boundsType_ != other.boundsType_) return false;
if (hasLowerBound() != other.hasLowerBound()) return false;
if (hasLowerBound()) {
if (!getLowerBound()
.equals(other.getLowerBound())) return false;
}
if (hasUpperBound() != other.hasUpperBound()) return false;
if (hasUpperBound()) {
if (!getUpperBound()
.equals(other.getUpperBound())) return false;
}
if (!getArgsList()
.equals(other.getArgsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + FUNCTION_REFERENCE_FIELD_NUMBER;
hash = (53 * hash) + getFunctionReference();
if (getArgumentsCount() > 0) {
hash = (37 * hash) + ARGUMENTS_FIELD_NUMBER;
hash = (53 * hash) + getArgumentsList().hashCode();
}
if (getOptionsCount() > 0) {
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getOptionsList().hashCode();
}
if (hasOutputType()) {
hash = (37 * hash) + OUTPUT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getOutputType().hashCode();
}
hash = (37 * hash) + PHASE_FIELD_NUMBER;
hash = (53 * hash) + phase_;
if (getSortsCount() > 0) {
hash = (37 * hash) + SORTS_FIELD_NUMBER;
hash = (53 * hash) + getSortsList().hashCode();
}
hash = (37 * hash) + INVOCATION_FIELD_NUMBER;
hash = (53 * hash) + invocation_;
if (getPartitionsCount() > 0) {
hash = (37 * hash) + PARTITIONS_FIELD_NUMBER;
hash = (53 * hash) + getPartitionsList().hashCode();
}
hash = (37 * hash) + BOUNDS_TYPE_FIELD_NUMBER;
hash = (53 * hash) + boundsType_;
if (hasLowerBound()) {
hash = (37 * hash) + LOWER_BOUND_FIELD_NUMBER;
hash = (53 * hash) + getLowerBound().hashCode();
}
if (hasUpperBound()) {
hash = (37 * hash) + UPPER_BOUND_FIELD_NUMBER;
hash = (53 * hash) + getUpperBound().hashCode();
}
if (getArgsCount() > 0) {
hash = (37 * hash) + ARGS_FIELD_NUMBER;
hash = (53 * hash) + getArgsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.Expression.WindowFunction parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.WindowFunction parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.WindowFunction parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.WindowFunction parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.WindowFunction parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.WindowFunction parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.WindowFunction parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.WindowFunction 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 io.substrait.proto.Expression.WindowFunction parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.WindowFunction 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 io.substrait.proto.Expression.WindowFunction parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.WindowFunction 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(io.substrait.proto.Expression.WindowFunction 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;
}
/**
*
* A window function call.
*
*
* Protobuf type {@code substrait.Expression.WindowFunction}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Expression.WindowFunction)
io.substrait.proto.Expression.WindowFunctionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.WindowFunction.class, io.substrait.proto.Expression.WindowFunction.Builder.class);
}
// Construct using io.substrait.proto.Expression.WindowFunction.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getArgumentsFieldBuilder();
getOptionsFieldBuilder();
getOutputTypeFieldBuilder();
getSortsFieldBuilder();
getPartitionsFieldBuilder();
getLowerBoundFieldBuilder();
getUpperBoundFieldBuilder();
getArgsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
functionReference_ = 0;
if (argumentsBuilder_ == null) {
arguments_ = java.util.Collections.emptyList();
} else {
arguments_ = null;
argumentsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (optionsBuilder_ == null) {
options_ = java.util.Collections.emptyList();
} else {
options_ = null;
optionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
outputType_ = null;
if (outputTypeBuilder_ != null) {
outputTypeBuilder_.dispose();
outputTypeBuilder_ = null;
}
phase_ = 0;
if (sortsBuilder_ == null) {
sorts_ = java.util.Collections.emptyList();
} else {
sorts_ = null;
sortsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
invocation_ = 0;
if (partitionsBuilder_ == null) {
partitions_ = java.util.Collections.emptyList();
} else {
partitions_ = null;
partitionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
boundsType_ = 0;
lowerBound_ = null;
if (lowerBoundBuilder_ != null) {
lowerBoundBuilder_.dispose();
lowerBoundBuilder_ = null;
}
upperBound_ = null;
if (upperBoundBuilder_ != null) {
upperBoundBuilder_.dispose();
upperBoundBuilder_ = null;
}
if (argsBuilder_ == null) {
args_ = java.util.Collections.emptyList();
} else {
args_ = null;
argsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_WindowFunction_descriptor;
}
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction getDefaultInstanceForType() {
return io.substrait.proto.Expression.WindowFunction.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction build() {
io.substrait.proto.Expression.WindowFunction result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction buildPartial() {
io.substrait.proto.Expression.WindowFunction result = new io.substrait.proto.Expression.WindowFunction(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.substrait.proto.Expression.WindowFunction result) {
if (argumentsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
arguments_ = java.util.Collections.unmodifiableList(arguments_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.arguments_ = arguments_;
} else {
result.arguments_ = argumentsBuilder_.build();
}
if (optionsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
options_ = java.util.Collections.unmodifiableList(options_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.options_ = options_;
} else {
result.options_ = optionsBuilder_.build();
}
if (sortsBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
sorts_ = java.util.Collections.unmodifiableList(sorts_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.sorts_ = sorts_;
} else {
result.sorts_ = sortsBuilder_.build();
}
if (partitionsBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0)) {
partitions_ = java.util.Collections.unmodifiableList(partitions_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.partitions_ = partitions_;
} else {
result.partitions_ = partitionsBuilder_.build();
}
if (argsBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 0)) {
args_ = java.util.Collections.unmodifiableList(args_);
bitField0_ = (bitField0_ & ~0x00000800);
}
result.args_ = args_;
} else {
result.args_ = argsBuilder_.build();
}
}
private void buildPartial0(io.substrait.proto.Expression.WindowFunction result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.functionReference_ = functionReference_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.outputType_ = outputTypeBuilder_ == null
? outputType_
: outputTypeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.phase_ = phase_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.invocation_ = invocation_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.boundsType_ = boundsType_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.lowerBound_ = lowerBoundBuilder_ == null
? lowerBound_
: lowerBoundBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.upperBound_ = upperBoundBuilder_ == null
? upperBound_
: upperBoundBuilder_.build();
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
@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 io.substrait.proto.Expression.WindowFunction) {
return mergeFrom((io.substrait.proto.Expression.WindowFunction)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Expression.WindowFunction other) {
if (other == io.substrait.proto.Expression.WindowFunction.getDefaultInstance()) return this;
if (other.getFunctionReference() != 0) {
setFunctionReference(other.getFunctionReference());
}
if (argumentsBuilder_ == null) {
if (!other.arguments_.isEmpty()) {
if (arguments_.isEmpty()) {
arguments_ = other.arguments_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureArgumentsIsMutable();
arguments_.addAll(other.arguments_);
}
onChanged();
}
} else {
if (!other.arguments_.isEmpty()) {
if (argumentsBuilder_.isEmpty()) {
argumentsBuilder_.dispose();
argumentsBuilder_ = null;
arguments_ = other.arguments_;
bitField0_ = (bitField0_ & ~0x00000002);
argumentsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getArgumentsFieldBuilder() : null;
} else {
argumentsBuilder_.addAllMessages(other.arguments_);
}
}
}
if (optionsBuilder_ == null) {
if (!other.options_.isEmpty()) {
if (options_.isEmpty()) {
options_ = other.options_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureOptionsIsMutable();
options_.addAll(other.options_);
}
onChanged();
}
} else {
if (!other.options_.isEmpty()) {
if (optionsBuilder_.isEmpty()) {
optionsBuilder_.dispose();
optionsBuilder_ = null;
options_ = other.options_;
bitField0_ = (bitField0_ & ~0x00000004);
optionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOptionsFieldBuilder() : null;
} else {
optionsBuilder_.addAllMessages(other.options_);
}
}
}
if (other.hasOutputType()) {
mergeOutputType(other.getOutputType());
}
if (other.phase_ != 0) {
setPhaseValue(other.getPhaseValue());
}
if (sortsBuilder_ == null) {
if (!other.sorts_.isEmpty()) {
if (sorts_.isEmpty()) {
sorts_ = other.sorts_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureSortsIsMutable();
sorts_.addAll(other.sorts_);
}
onChanged();
}
} else {
if (!other.sorts_.isEmpty()) {
if (sortsBuilder_.isEmpty()) {
sortsBuilder_.dispose();
sortsBuilder_ = null;
sorts_ = other.sorts_;
bitField0_ = (bitField0_ & ~0x00000020);
sortsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSortsFieldBuilder() : null;
} else {
sortsBuilder_.addAllMessages(other.sorts_);
}
}
}
if (other.invocation_ != 0) {
setInvocationValue(other.getInvocationValue());
}
if (partitionsBuilder_ == null) {
if (!other.partitions_.isEmpty()) {
if (partitions_.isEmpty()) {
partitions_ = other.partitions_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensurePartitionsIsMutable();
partitions_.addAll(other.partitions_);
}
onChanged();
}
} else {
if (!other.partitions_.isEmpty()) {
if (partitionsBuilder_.isEmpty()) {
partitionsBuilder_.dispose();
partitionsBuilder_ = null;
partitions_ = other.partitions_;
bitField0_ = (bitField0_ & ~0x00000080);
partitionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPartitionsFieldBuilder() : null;
} else {
partitionsBuilder_.addAllMessages(other.partitions_);
}
}
}
if (other.boundsType_ != 0) {
setBoundsTypeValue(other.getBoundsTypeValue());
}
if (other.hasLowerBound()) {
mergeLowerBound(other.getLowerBound());
}
if (other.hasUpperBound()) {
mergeUpperBound(other.getUpperBound());
}
if (argsBuilder_ == null) {
if (!other.args_.isEmpty()) {
if (args_.isEmpty()) {
args_ = other.args_;
bitField0_ = (bitField0_ & ~0x00000800);
} else {
ensureArgsIsMutable();
args_.addAll(other.args_);
}
onChanged();
}
} else {
if (!other.args_.isEmpty()) {
if (argsBuilder_.isEmpty()) {
argsBuilder_.dispose();
argsBuilder_ = null;
args_ = other.args_;
bitField0_ = (bitField0_ & ~0x00000800);
argsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getArgsFieldBuilder() : null;
} else {
argsBuilder_.addAllMessages(other.args_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
functionReference_ = input.readUInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
io.substrait.proto.Expression m =
input.readMessage(
io.substrait.proto.Expression.parser(),
extensionRegistry);
if (partitionsBuilder_ == null) {
ensurePartitionsIsMutable();
partitions_.add(m);
} else {
partitionsBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
io.substrait.proto.SortField m =
input.readMessage(
io.substrait.proto.SortField.parser(),
extensionRegistry);
if (sortsBuilder_ == null) {
ensureSortsIsMutable();
sorts_.add(m);
} else {
sortsBuilder_.addMessage(m);
}
break;
} // case 26
case 34: {
input.readMessage(
getUpperBoundFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000400;
break;
} // case 34
case 42: {
input.readMessage(
getLowerBoundFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000200;
break;
} // case 42
case 48: {
phase_ = input.readEnum();
bitField0_ |= 0x00000010;
break;
} // case 48
case 58: {
input.readMessage(
getOutputTypeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 58
case 66: {
io.substrait.proto.Expression m =
input.readMessage(
io.substrait.proto.Expression.parser(),
extensionRegistry);
if (argsBuilder_ == null) {
ensureArgsIsMutable();
args_.add(m);
} else {
argsBuilder_.addMessage(m);
}
break;
} // case 66
case 74: {
io.substrait.proto.FunctionArgument m =
input.readMessage(
io.substrait.proto.FunctionArgument.parser(),
extensionRegistry);
if (argumentsBuilder_ == null) {
ensureArgumentsIsMutable();
arguments_.add(m);
} else {
argumentsBuilder_.addMessage(m);
}
break;
} // case 74
case 80: {
invocation_ = input.readEnum();
bitField0_ |= 0x00000040;
break;
} // case 80
case 90: {
io.substrait.proto.FunctionOption m =
input.readMessage(
io.substrait.proto.FunctionOption.parser(),
extensionRegistry);
if (optionsBuilder_ == null) {
ensureOptionsIsMutable();
options_.add(m);
} else {
optionsBuilder_.addMessage(m);
}
break;
} // case 90
case 96: {
boundsType_ = input.readEnum();
bitField0_ |= 0x00000100;
break;
} // case 96
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int functionReference_ ;
/**
*
* Points to a function_anchor defined in this plan. The function must be:
* - a window function
* - an aggregate function
*
* An aggregate function referenced here should be treated as a window
* function with Window Type STREAMING
*
* Required; 0 is considered to be a valid anchor/reference.
*
*
* uint32 function_reference = 1;
* @return The functionReference.
*/
@java.lang.Override
public int getFunctionReference() {
return functionReference_;
}
/**
*
* Points to a function_anchor defined in this plan. The function must be:
* - a window function
* - an aggregate function
*
* An aggregate function referenced here should be treated as a window
* function with Window Type STREAMING
*
* Required; 0 is considered to be a valid anchor/reference.
*
*
* uint32 function_reference = 1;
* @param value The functionReference to set.
* @return This builder for chaining.
*/
public Builder setFunctionReference(int value) {
functionReference_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Points to a function_anchor defined in this plan. The function must be:
* - a window function
* - an aggregate function
*
* An aggregate function referenced here should be treated as a window
* function with Window Type STREAMING
*
* Required; 0 is considered to be a valid anchor/reference.
*
*
* uint32 function_reference = 1;
* @return This builder for chaining.
*/
public Builder clearFunctionReference() {
bitField0_ = (bitField0_ & ~0x00000001);
functionReference_ = 0;
onChanged();
return this;
}
private java.util.List arguments_ =
java.util.Collections.emptyList();
private void ensureArgumentsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
arguments_ = new java.util.ArrayList(arguments_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.FunctionArgument, io.substrait.proto.FunctionArgument.Builder, io.substrait.proto.FunctionArgumentOrBuilder> argumentsBuilder_;
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type, and a
* function overload must be defined for that type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 9;
*/
public java.util.List getArgumentsList() {
if (argumentsBuilder_ == null) {
return java.util.Collections.unmodifiableList(arguments_);
} else {
return argumentsBuilder_.getMessageList();
}
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type, and a
* function overload must be defined for that type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 9;
*/
public int getArgumentsCount() {
if (argumentsBuilder_ == null) {
return arguments_.size();
} else {
return argumentsBuilder_.getCount();
}
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type, and a
* function overload must be defined for that type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 9;
*/
public io.substrait.proto.FunctionArgument getArguments(int index) {
if (argumentsBuilder_ == null) {
return arguments_.get(index);
} else {
return argumentsBuilder_.getMessage(index);
}
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type, and a
* function overload must be defined for that type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 9;
*/
public Builder setArguments(
int index, io.substrait.proto.FunctionArgument value) {
if (argumentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentsIsMutable();
arguments_.set(index, value);
onChanged();
} else {
argumentsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type, and a
* function overload must be defined for that type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 9;
*/
public Builder setArguments(
int index, io.substrait.proto.FunctionArgument.Builder builderForValue) {
if (argumentsBuilder_ == null) {
ensureArgumentsIsMutable();
arguments_.set(index, builderForValue.build());
onChanged();
} else {
argumentsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type, and a
* function overload must be defined for that type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 9;
*/
public Builder addArguments(io.substrait.proto.FunctionArgument value) {
if (argumentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentsIsMutable();
arguments_.add(value);
onChanged();
} else {
argumentsBuilder_.addMessage(value);
}
return this;
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type, and a
* function overload must be defined for that type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 9;
*/
public Builder addArguments(
int index, io.substrait.proto.FunctionArgument value) {
if (argumentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentsIsMutable();
arguments_.add(index, value);
onChanged();
} else {
argumentsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type, and a
* function overload must be defined for that type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 9;
*/
public Builder addArguments(
io.substrait.proto.FunctionArgument.Builder builderForValue) {
if (argumentsBuilder_ == null) {
ensureArgumentsIsMutable();
arguments_.add(builderForValue.build());
onChanged();
} else {
argumentsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type, and a
* function overload must be defined for that type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 9;
*/
public Builder addArguments(
int index, io.substrait.proto.FunctionArgument.Builder builderForValue) {
if (argumentsBuilder_ == null) {
ensureArgumentsIsMutable();
arguments_.add(index, builderForValue.build());
onChanged();
} else {
argumentsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type, and a
* function overload must be defined for that type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 9;
*/
public Builder addAllArguments(
java.lang.Iterable extends io.substrait.proto.FunctionArgument> values) {
if (argumentsBuilder_ == null) {
ensureArgumentsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, arguments_);
onChanged();
} else {
argumentsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type, and a
* function overload must be defined for that type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 9;
*/
public Builder clearArguments() {
if (argumentsBuilder_ == null) {
arguments_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
argumentsBuilder_.clear();
}
return this;
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type, and a
* function overload must be defined for that type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 9;
*/
public Builder removeArguments(int index) {
if (argumentsBuilder_ == null) {
ensureArgumentsIsMutable();
arguments_.remove(index);
onChanged();
} else {
argumentsBuilder_.remove(index);
}
return this;
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type, and a
* function overload must be defined for that type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 9;
*/
public io.substrait.proto.FunctionArgument.Builder getArgumentsBuilder(
int index) {
return getArgumentsFieldBuilder().getBuilder(index);
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type, and a
* function overload must be defined for that type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 9;
*/
public io.substrait.proto.FunctionArgumentOrBuilder getArgumentsOrBuilder(
int index) {
if (argumentsBuilder_ == null) {
return arguments_.get(index); } else {
return argumentsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type, and a
* function overload must be defined for that type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 9;
*/
public java.util.List extends io.substrait.proto.FunctionArgumentOrBuilder>
getArgumentsOrBuilderList() {
if (argumentsBuilder_ != null) {
return argumentsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(arguments_);
}
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type, and a
* function overload must be defined for that type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 9;
*/
public io.substrait.proto.FunctionArgument.Builder addArgumentsBuilder() {
return getArgumentsFieldBuilder().addBuilder(
io.substrait.proto.FunctionArgument.getDefaultInstance());
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type, and a
* function overload must be defined for that type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 9;
*/
public io.substrait.proto.FunctionArgument.Builder addArgumentsBuilder(
int index) {
return getArgumentsFieldBuilder().addBuilder(
index, io.substrait.proto.FunctionArgument.getDefaultInstance());
}
/**
*
* The arguments to be bound to the function. This must have exactly the
* number of arguments specified in the function definition, and the
* argument types must also match exactly:
*
* - Value arguments must be bound using FunctionArgument.value, and
* the expression in that must yield a value of a type that a function
* overload is defined for.
* - Type arguments must be bound using FunctionArgument.type, and a
* function overload must be defined for that type.
* - Enum arguments must be bound using FunctionArgument.enum
* followed by Enum.specified, with a string that case-insensitively
* matches one of the allowed options.
*
*
* repeated .substrait.FunctionArgument arguments = 9;
*/
public java.util.List
getArgumentsBuilderList() {
return getArgumentsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.FunctionArgument, io.substrait.proto.FunctionArgument.Builder, io.substrait.proto.FunctionArgumentOrBuilder>
getArgumentsFieldBuilder() {
if (argumentsBuilder_ == null) {
argumentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.FunctionArgument, io.substrait.proto.FunctionArgument.Builder, io.substrait.proto.FunctionArgumentOrBuilder>(
arguments_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
arguments_ = null;
}
return argumentsBuilder_;
}
private java.util.List options_ =
java.util.Collections.emptyList();
private void ensureOptionsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
options_ = new java.util.ArrayList(options_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.FunctionOption, io.substrait.proto.FunctionOption.Builder, io.substrait.proto.FunctionOptionOrBuilder> optionsBuilder_;
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 11;
*/
public java.util.List getOptionsList() {
if (optionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(options_);
} else {
return optionsBuilder_.getMessageList();
}
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 11;
*/
public int getOptionsCount() {
if (optionsBuilder_ == null) {
return options_.size();
} else {
return optionsBuilder_.getCount();
}
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 11;
*/
public io.substrait.proto.FunctionOption getOptions(int index) {
if (optionsBuilder_ == null) {
return options_.get(index);
} else {
return optionsBuilder_.getMessage(index);
}
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 11;
*/
public Builder setOptions(
int index, io.substrait.proto.FunctionOption value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOptionsIsMutable();
options_.set(index, value);
onChanged();
} else {
optionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 11;
*/
public Builder setOptions(
int index, io.substrait.proto.FunctionOption.Builder builderForValue) {
if (optionsBuilder_ == null) {
ensureOptionsIsMutable();
options_.set(index, builderForValue.build());
onChanged();
} else {
optionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 11;
*/
public Builder addOptions(io.substrait.proto.FunctionOption value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOptionsIsMutable();
options_.add(value);
onChanged();
} else {
optionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 11;
*/
public Builder addOptions(
int index, io.substrait.proto.FunctionOption value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOptionsIsMutable();
options_.add(index, value);
onChanged();
} else {
optionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 11;
*/
public Builder addOptions(
io.substrait.proto.FunctionOption.Builder builderForValue) {
if (optionsBuilder_ == null) {
ensureOptionsIsMutable();
options_.add(builderForValue.build());
onChanged();
} else {
optionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 11;
*/
public Builder addOptions(
int index, io.substrait.proto.FunctionOption.Builder builderForValue) {
if (optionsBuilder_ == null) {
ensureOptionsIsMutable();
options_.add(index, builderForValue.build());
onChanged();
} else {
optionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 11;
*/
public Builder addAllOptions(
java.lang.Iterable extends io.substrait.proto.FunctionOption> values) {
if (optionsBuilder_ == null) {
ensureOptionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, options_);
onChanged();
} else {
optionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 11;
*/
public Builder clearOptions() {
if (optionsBuilder_ == null) {
options_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
optionsBuilder_.clear();
}
return this;
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 11;
*/
public Builder removeOptions(int index) {
if (optionsBuilder_ == null) {
ensureOptionsIsMutable();
options_.remove(index);
onChanged();
} else {
optionsBuilder_.remove(index);
}
return this;
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 11;
*/
public io.substrait.proto.FunctionOption.Builder getOptionsBuilder(
int index) {
return getOptionsFieldBuilder().getBuilder(index);
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 11;
*/
public io.substrait.proto.FunctionOptionOrBuilder getOptionsOrBuilder(
int index) {
if (optionsBuilder_ == null) {
return options_.get(index); } else {
return optionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 11;
*/
public java.util.List extends io.substrait.proto.FunctionOptionOrBuilder>
getOptionsOrBuilderList() {
if (optionsBuilder_ != null) {
return optionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(options_);
}
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 11;
*/
public io.substrait.proto.FunctionOption.Builder addOptionsBuilder() {
return getOptionsFieldBuilder().addBuilder(
io.substrait.proto.FunctionOption.getDefaultInstance());
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 11;
*/
public io.substrait.proto.FunctionOption.Builder addOptionsBuilder(
int index) {
return getOptionsFieldBuilder().addBuilder(
index, io.substrait.proto.FunctionOption.getDefaultInstance());
}
/**
*
* Options to specify behavior for corner cases, or leave behavior
* unspecified if the consumer does not need specific behavior in these
* cases.
*
*
* repeated .substrait.FunctionOption options = 11;
*/
public java.util.List
getOptionsBuilderList() {
return getOptionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.FunctionOption, io.substrait.proto.FunctionOption.Builder, io.substrait.proto.FunctionOptionOrBuilder>
getOptionsFieldBuilder() {
if (optionsBuilder_ == null) {
optionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.FunctionOption, io.substrait.proto.FunctionOption.Builder, io.substrait.proto.FunctionOptionOrBuilder>(
options_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
options_ = null;
}
return optionsBuilder_;
}
private io.substrait.proto.Type outputType_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Type, io.substrait.proto.Type.Builder, io.substrait.proto.TypeOrBuilder> outputTypeBuilder_;
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 7;
* @return Whether the outputType field is set.
*/
public boolean hasOutputType() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 7;
* @return The outputType.
*/
public io.substrait.proto.Type getOutputType() {
if (outputTypeBuilder_ == null) {
return outputType_ == null ? io.substrait.proto.Type.getDefaultInstance() : outputType_;
} else {
return outputTypeBuilder_.getMessage();
}
}
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 7;
*/
public Builder setOutputType(io.substrait.proto.Type value) {
if (outputTypeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
outputType_ = value;
} else {
outputTypeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 7;
*/
public Builder setOutputType(
io.substrait.proto.Type.Builder builderForValue) {
if (outputTypeBuilder_ == null) {
outputType_ = builderForValue.build();
} else {
outputTypeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 7;
*/
public Builder mergeOutputType(io.substrait.proto.Type value) {
if (outputTypeBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
outputType_ != null &&
outputType_ != io.substrait.proto.Type.getDefaultInstance()) {
getOutputTypeBuilder().mergeFrom(value);
} else {
outputType_ = value;
}
} else {
outputTypeBuilder_.mergeFrom(value);
}
if (outputType_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 7;
*/
public Builder clearOutputType() {
bitField0_ = (bitField0_ & ~0x00000008);
outputType_ = null;
if (outputTypeBuilder_ != null) {
outputTypeBuilder_.dispose();
outputTypeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 7;
*/
public io.substrait.proto.Type.Builder getOutputTypeBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getOutputTypeFieldBuilder().getBuilder();
}
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 7;
*/
public io.substrait.proto.TypeOrBuilder getOutputTypeOrBuilder() {
if (outputTypeBuilder_ != null) {
return outputTypeBuilder_.getMessageOrBuilder();
} else {
return outputType_ == null ?
io.substrait.proto.Type.getDefaultInstance() : outputType_;
}
}
/**
*
* Must be set to the return type of the function, exactly as derived
* using the declaration in the extension.
*
*
* .substrait.Type output_type = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Type, io.substrait.proto.Type.Builder, io.substrait.proto.TypeOrBuilder>
getOutputTypeFieldBuilder() {
if (outputTypeBuilder_ == null) {
outputTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Type, io.substrait.proto.Type.Builder, io.substrait.proto.TypeOrBuilder>(
getOutputType(),
getParentForChildren(),
isClean());
outputType_ = null;
}
return outputTypeBuilder_;
}
private int phase_ = 0;
/**
*
* Describes which part of the window function to perform within the
* context of distributed algorithms. Required. Must be set to
* INITIAL_TO_RESULT for window functions that are not decomposable.
*
*
* .substrait.AggregationPhase phase = 6;
* @return The enum numeric value on the wire for phase.
*/
@java.lang.Override public int getPhaseValue() {
return phase_;
}
/**
*
* Describes which part of the window function to perform within the
* context of distributed algorithms. Required. Must be set to
* INITIAL_TO_RESULT for window functions that are not decomposable.
*
*
* .substrait.AggregationPhase phase = 6;
* @param value The enum numeric value on the wire for phase to set.
* @return This builder for chaining.
*/
public Builder setPhaseValue(int value) {
phase_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Describes which part of the window function to perform within the
* context of distributed algorithms. Required. Must be set to
* INITIAL_TO_RESULT for window functions that are not decomposable.
*
*
* .substrait.AggregationPhase phase = 6;
* @return The phase.
*/
@java.lang.Override
public io.substrait.proto.AggregationPhase getPhase() {
io.substrait.proto.AggregationPhase result = io.substrait.proto.AggregationPhase.forNumber(phase_);
return result == null ? io.substrait.proto.AggregationPhase.UNRECOGNIZED : result;
}
/**
*
* Describes which part of the window function to perform within the
* context of distributed algorithms. Required. Must be set to
* INITIAL_TO_RESULT for window functions that are not decomposable.
*
*
* .substrait.AggregationPhase phase = 6;
* @param value The phase to set.
* @return This builder for chaining.
*/
public Builder setPhase(io.substrait.proto.AggregationPhase value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
phase_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Describes which part of the window function to perform within the
* context of distributed algorithms. Required. Must be set to
* INITIAL_TO_RESULT for window functions that are not decomposable.
*
*
* .substrait.AggregationPhase phase = 6;
* @return This builder for chaining.
*/
public Builder clearPhase() {
bitField0_ = (bitField0_ & ~0x00000010);
phase_ = 0;
onChanged();
return this;
}
private java.util.List sorts_ =
java.util.Collections.emptyList();
private void ensureSortsIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
sorts_ = new java.util.ArrayList(sorts_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.SortField, io.substrait.proto.SortField.Builder, io.substrait.proto.SortFieldOrBuilder> sortsBuilder_;
/**
*
* If specified, the records that are part of the window defined by
* upper_bound and lower_bound are ordered according to this list
* before they are aggregated. The first sort field has the highest
* priority; only if a sort field determines two records to be equivalent
* is the next field queried. This field is optional, and is only allowed
* if the window function is defined to support sorting.
*
*
* repeated .substrait.SortField sorts = 3;
*/
public java.util.List getSortsList() {
if (sortsBuilder_ == null) {
return java.util.Collections.unmodifiableList(sorts_);
} else {
return sortsBuilder_.getMessageList();
}
}
/**
*
* If specified, the records that are part of the window defined by
* upper_bound and lower_bound are ordered according to this list
* before they are aggregated. The first sort field has the highest
* priority; only if a sort field determines two records to be equivalent
* is the next field queried. This field is optional, and is only allowed
* if the window function is defined to support sorting.
*
*
* repeated .substrait.SortField sorts = 3;
*/
public int getSortsCount() {
if (sortsBuilder_ == null) {
return sorts_.size();
} else {
return sortsBuilder_.getCount();
}
}
/**
*
* If specified, the records that are part of the window defined by
* upper_bound and lower_bound are ordered according to this list
* before they are aggregated. The first sort field has the highest
* priority; only if a sort field determines two records to be equivalent
* is the next field queried. This field is optional, and is only allowed
* if the window function is defined to support sorting.
*
*
* repeated .substrait.SortField sorts = 3;
*/
public io.substrait.proto.SortField getSorts(int index) {
if (sortsBuilder_ == null) {
return sorts_.get(index);
} else {
return sortsBuilder_.getMessage(index);
}
}
/**
*
* If specified, the records that are part of the window defined by
* upper_bound and lower_bound are ordered according to this list
* before they are aggregated. The first sort field has the highest
* priority; only if a sort field determines two records to be equivalent
* is the next field queried. This field is optional, and is only allowed
* if the window function is defined to support sorting.
*
*
* repeated .substrait.SortField sorts = 3;
*/
public Builder setSorts(
int index, io.substrait.proto.SortField value) {
if (sortsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSortsIsMutable();
sorts_.set(index, value);
onChanged();
} else {
sortsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* If specified, the records that are part of the window defined by
* upper_bound and lower_bound are ordered according to this list
* before they are aggregated. The first sort field has the highest
* priority; only if a sort field determines two records to be equivalent
* is the next field queried. This field is optional, and is only allowed
* if the window function is defined to support sorting.
*
*
* repeated .substrait.SortField sorts = 3;
*/
public Builder setSorts(
int index, io.substrait.proto.SortField.Builder builderForValue) {
if (sortsBuilder_ == null) {
ensureSortsIsMutable();
sorts_.set(index, builderForValue.build());
onChanged();
} else {
sortsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* If specified, the records that are part of the window defined by
* upper_bound and lower_bound are ordered according to this list
* before they are aggregated. The first sort field has the highest
* priority; only if a sort field determines two records to be equivalent
* is the next field queried. This field is optional, and is only allowed
* if the window function is defined to support sorting.
*
*
* repeated .substrait.SortField sorts = 3;
*/
public Builder addSorts(io.substrait.proto.SortField value) {
if (sortsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSortsIsMutable();
sorts_.add(value);
onChanged();
} else {
sortsBuilder_.addMessage(value);
}
return this;
}
/**
*
* If specified, the records that are part of the window defined by
* upper_bound and lower_bound are ordered according to this list
* before they are aggregated. The first sort field has the highest
* priority; only if a sort field determines two records to be equivalent
* is the next field queried. This field is optional, and is only allowed
* if the window function is defined to support sorting.
*
*
* repeated .substrait.SortField sorts = 3;
*/
public Builder addSorts(
int index, io.substrait.proto.SortField value) {
if (sortsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSortsIsMutable();
sorts_.add(index, value);
onChanged();
} else {
sortsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* If specified, the records that are part of the window defined by
* upper_bound and lower_bound are ordered according to this list
* before they are aggregated. The first sort field has the highest
* priority; only if a sort field determines two records to be equivalent
* is the next field queried. This field is optional, and is only allowed
* if the window function is defined to support sorting.
*
*
* repeated .substrait.SortField sorts = 3;
*/
public Builder addSorts(
io.substrait.proto.SortField.Builder builderForValue) {
if (sortsBuilder_ == null) {
ensureSortsIsMutable();
sorts_.add(builderForValue.build());
onChanged();
} else {
sortsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* If specified, the records that are part of the window defined by
* upper_bound and lower_bound are ordered according to this list
* before they are aggregated. The first sort field has the highest
* priority; only if a sort field determines two records to be equivalent
* is the next field queried. This field is optional, and is only allowed
* if the window function is defined to support sorting.
*
*
* repeated .substrait.SortField sorts = 3;
*/
public Builder addSorts(
int index, io.substrait.proto.SortField.Builder builderForValue) {
if (sortsBuilder_ == null) {
ensureSortsIsMutable();
sorts_.add(index, builderForValue.build());
onChanged();
} else {
sortsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* If specified, the records that are part of the window defined by
* upper_bound and lower_bound are ordered according to this list
* before they are aggregated. The first sort field has the highest
* priority; only if a sort field determines two records to be equivalent
* is the next field queried. This field is optional, and is only allowed
* if the window function is defined to support sorting.
*
*
* repeated .substrait.SortField sorts = 3;
*/
public Builder addAllSorts(
java.lang.Iterable extends io.substrait.proto.SortField> values) {
if (sortsBuilder_ == null) {
ensureSortsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sorts_);
onChanged();
} else {
sortsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* If specified, the records that are part of the window defined by
* upper_bound and lower_bound are ordered according to this list
* before they are aggregated. The first sort field has the highest
* priority; only if a sort field determines two records to be equivalent
* is the next field queried. This field is optional, and is only allowed
* if the window function is defined to support sorting.
*
*
* repeated .substrait.SortField sorts = 3;
*/
public Builder clearSorts() {
if (sortsBuilder_ == null) {
sorts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
sortsBuilder_.clear();
}
return this;
}
/**
*
* If specified, the records that are part of the window defined by
* upper_bound and lower_bound are ordered according to this list
* before they are aggregated. The first sort field has the highest
* priority; only if a sort field determines two records to be equivalent
* is the next field queried. This field is optional, and is only allowed
* if the window function is defined to support sorting.
*
*
* repeated .substrait.SortField sorts = 3;
*/
public Builder removeSorts(int index) {
if (sortsBuilder_ == null) {
ensureSortsIsMutable();
sorts_.remove(index);
onChanged();
} else {
sortsBuilder_.remove(index);
}
return this;
}
/**
*
* If specified, the records that are part of the window defined by
* upper_bound and lower_bound are ordered according to this list
* before they are aggregated. The first sort field has the highest
* priority; only if a sort field determines two records to be equivalent
* is the next field queried. This field is optional, and is only allowed
* if the window function is defined to support sorting.
*
*
* repeated .substrait.SortField sorts = 3;
*/
public io.substrait.proto.SortField.Builder getSortsBuilder(
int index) {
return getSortsFieldBuilder().getBuilder(index);
}
/**
*
* If specified, the records that are part of the window defined by
* upper_bound and lower_bound are ordered according to this list
* before they are aggregated. The first sort field has the highest
* priority; only if a sort field determines two records to be equivalent
* is the next field queried. This field is optional, and is only allowed
* if the window function is defined to support sorting.
*
*
* repeated .substrait.SortField sorts = 3;
*/
public io.substrait.proto.SortFieldOrBuilder getSortsOrBuilder(
int index) {
if (sortsBuilder_ == null) {
return sorts_.get(index); } else {
return sortsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* If specified, the records that are part of the window defined by
* upper_bound and lower_bound are ordered according to this list
* before they are aggregated. The first sort field has the highest
* priority; only if a sort field determines two records to be equivalent
* is the next field queried. This field is optional, and is only allowed
* if the window function is defined to support sorting.
*
*
* repeated .substrait.SortField sorts = 3;
*/
public java.util.List extends io.substrait.proto.SortFieldOrBuilder>
getSortsOrBuilderList() {
if (sortsBuilder_ != null) {
return sortsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(sorts_);
}
}
/**
*
* If specified, the records that are part of the window defined by
* upper_bound and lower_bound are ordered according to this list
* before they are aggregated. The first sort field has the highest
* priority; only if a sort field determines two records to be equivalent
* is the next field queried. This field is optional, and is only allowed
* if the window function is defined to support sorting.
*
*
* repeated .substrait.SortField sorts = 3;
*/
public io.substrait.proto.SortField.Builder addSortsBuilder() {
return getSortsFieldBuilder().addBuilder(
io.substrait.proto.SortField.getDefaultInstance());
}
/**
*
* If specified, the records that are part of the window defined by
* upper_bound and lower_bound are ordered according to this list
* before they are aggregated. The first sort field has the highest
* priority; only if a sort field determines two records to be equivalent
* is the next field queried. This field is optional, and is only allowed
* if the window function is defined to support sorting.
*
*
* repeated .substrait.SortField sorts = 3;
*/
public io.substrait.proto.SortField.Builder addSortsBuilder(
int index) {
return getSortsFieldBuilder().addBuilder(
index, io.substrait.proto.SortField.getDefaultInstance());
}
/**
*
* If specified, the records that are part of the window defined by
* upper_bound and lower_bound are ordered according to this list
* before they are aggregated. The first sort field has the highest
* priority; only if a sort field determines two records to be equivalent
* is the next field queried. This field is optional, and is only allowed
* if the window function is defined to support sorting.
*
*
* repeated .substrait.SortField sorts = 3;
*/
public java.util.List
getSortsBuilderList() {
return getSortsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.SortField, io.substrait.proto.SortField.Builder, io.substrait.proto.SortFieldOrBuilder>
getSortsFieldBuilder() {
if (sortsBuilder_ == null) {
sortsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.SortField, io.substrait.proto.SortField.Builder, io.substrait.proto.SortFieldOrBuilder>(
sorts_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
sorts_ = null;
}
return sortsBuilder_;
}
private int invocation_ = 0;
/**
*
* Specifies whether equivalent records are merged before being aggregated.
* Optional, defaults to AGGREGATION_INVOCATION_ALL.
*
*
* .substrait.AggregateFunction.AggregationInvocation invocation = 10;
* @return The enum numeric value on the wire for invocation.
*/
@java.lang.Override public int getInvocationValue() {
return invocation_;
}
/**
*
* Specifies whether equivalent records are merged before being aggregated.
* Optional, defaults to AGGREGATION_INVOCATION_ALL.
*
*
* .substrait.AggregateFunction.AggregationInvocation invocation = 10;
* @param value The enum numeric value on the wire for invocation to set.
* @return This builder for chaining.
*/
public Builder setInvocationValue(int value) {
invocation_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Specifies whether equivalent records are merged before being aggregated.
* Optional, defaults to AGGREGATION_INVOCATION_ALL.
*
*
* .substrait.AggregateFunction.AggregationInvocation invocation = 10;
* @return The invocation.
*/
@java.lang.Override
public io.substrait.proto.AggregateFunction.AggregationInvocation getInvocation() {
io.substrait.proto.AggregateFunction.AggregationInvocation result = io.substrait.proto.AggregateFunction.AggregationInvocation.forNumber(invocation_);
return result == null ? io.substrait.proto.AggregateFunction.AggregationInvocation.UNRECOGNIZED : result;
}
/**
*
* Specifies whether equivalent records are merged before being aggregated.
* Optional, defaults to AGGREGATION_INVOCATION_ALL.
*
*
* .substrait.AggregateFunction.AggregationInvocation invocation = 10;
* @param value The invocation to set.
* @return This builder for chaining.
*/
public Builder setInvocation(io.substrait.proto.AggregateFunction.AggregationInvocation value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
invocation_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Specifies whether equivalent records are merged before being aggregated.
* Optional, defaults to AGGREGATION_INVOCATION_ALL.
*
*
* .substrait.AggregateFunction.AggregationInvocation invocation = 10;
* @return This builder for chaining.
*/
public Builder clearInvocation() {
bitField0_ = (bitField0_ & ~0x00000040);
invocation_ = 0;
onChanged();
return this;
}
private java.util.List partitions_ =
java.util.Collections.emptyList();
private void ensurePartitionsIsMutable() {
if (!((bitField0_ & 0x00000080) != 0)) {
partitions_ = new java.util.ArrayList(partitions_);
bitField0_ |= 0x00000080;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> partitionsBuilder_;
/**
*
* When one or more partition expressions are specified, two records are
* considered to be in the same partition if and only if these expressions
* yield an equal record of values for both. When computing the window
* function, only the subset of records within the bounds that are also in
* the same partition as the current record are aggregated.
*
*
* repeated .substrait.Expression partitions = 2;
*/
public java.util.List getPartitionsList() {
if (partitionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(partitions_);
} else {
return partitionsBuilder_.getMessageList();
}
}
/**
*
* When one or more partition expressions are specified, two records are
* considered to be in the same partition if and only if these expressions
* yield an equal record of values for both. When computing the window
* function, only the subset of records within the bounds that are also in
* the same partition as the current record are aggregated.
*
*
* repeated .substrait.Expression partitions = 2;
*/
public int getPartitionsCount() {
if (partitionsBuilder_ == null) {
return partitions_.size();
} else {
return partitionsBuilder_.getCount();
}
}
/**
*
* When one or more partition expressions are specified, two records are
* considered to be in the same partition if and only if these expressions
* yield an equal record of values for both. When computing the window
* function, only the subset of records within the bounds that are also in
* the same partition as the current record are aggregated.
*
*
* repeated .substrait.Expression partitions = 2;
*/
public io.substrait.proto.Expression getPartitions(int index) {
if (partitionsBuilder_ == null) {
return partitions_.get(index);
} else {
return partitionsBuilder_.getMessage(index);
}
}
/**
*
* When one or more partition expressions are specified, two records are
* considered to be in the same partition if and only if these expressions
* yield an equal record of values for both. When computing the window
* function, only the subset of records within the bounds that are also in
* the same partition as the current record are aggregated.
*
*
* repeated .substrait.Expression partitions = 2;
*/
public Builder setPartitions(
int index, io.substrait.proto.Expression value) {
if (partitionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePartitionsIsMutable();
partitions_.set(index, value);
onChanged();
} else {
partitionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* When one or more partition expressions are specified, two records are
* considered to be in the same partition if and only if these expressions
* yield an equal record of values for both. When computing the window
* function, only the subset of records within the bounds that are also in
* the same partition as the current record are aggregated.
*
*
* repeated .substrait.Expression partitions = 2;
*/
public Builder setPartitions(
int index, io.substrait.proto.Expression.Builder builderForValue) {
if (partitionsBuilder_ == null) {
ensurePartitionsIsMutable();
partitions_.set(index, builderForValue.build());
onChanged();
} else {
partitionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* When one or more partition expressions are specified, two records are
* considered to be in the same partition if and only if these expressions
* yield an equal record of values for both. When computing the window
* function, only the subset of records within the bounds that are also in
* the same partition as the current record are aggregated.
*
*
* repeated .substrait.Expression partitions = 2;
*/
public Builder addPartitions(io.substrait.proto.Expression value) {
if (partitionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePartitionsIsMutable();
partitions_.add(value);
onChanged();
} else {
partitionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* When one or more partition expressions are specified, two records are
* considered to be in the same partition if and only if these expressions
* yield an equal record of values for both. When computing the window
* function, only the subset of records within the bounds that are also in
* the same partition as the current record are aggregated.
*
*
* repeated .substrait.Expression partitions = 2;
*/
public Builder addPartitions(
int index, io.substrait.proto.Expression value) {
if (partitionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePartitionsIsMutable();
partitions_.add(index, value);
onChanged();
} else {
partitionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* When one or more partition expressions are specified, two records are
* considered to be in the same partition if and only if these expressions
* yield an equal record of values for both. When computing the window
* function, only the subset of records within the bounds that are also in
* the same partition as the current record are aggregated.
*
*
* repeated .substrait.Expression partitions = 2;
*/
public Builder addPartitions(
io.substrait.proto.Expression.Builder builderForValue) {
if (partitionsBuilder_ == null) {
ensurePartitionsIsMutable();
partitions_.add(builderForValue.build());
onChanged();
} else {
partitionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* When one or more partition expressions are specified, two records are
* considered to be in the same partition if and only if these expressions
* yield an equal record of values for both. When computing the window
* function, only the subset of records within the bounds that are also in
* the same partition as the current record are aggregated.
*
*
* repeated .substrait.Expression partitions = 2;
*/
public Builder addPartitions(
int index, io.substrait.proto.Expression.Builder builderForValue) {
if (partitionsBuilder_ == null) {
ensurePartitionsIsMutable();
partitions_.add(index, builderForValue.build());
onChanged();
} else {
partitionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* When one or more partition expressions are specified, two records are
* considered to be in the same partition if and only if these expressions
* yield an equal record of values for both. When computing the window
* function, only the subset of records within the bounds that are also in
* the same partition as the current record are aggregated.
*
*
* repeated .substrait.Expression partitions = 2;
*/
public Builder addAllPartitions(
java.lang.Iterable extends io.substrait.proto.Expression> values) {
if (partitionsBuilder_ == null) {
ensurePartitionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, partitions_);
onChanged();
} else {
partitionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* When one or more partition expressions are specified, two records are
* considered to be in the same partition if and only if these expressions
* yield an equal record of values for both. When computing the window
* function, only the subset of records within the bounds that are also in
* the same partition as the current record are aggregated.
*
*
* repeated .substrait.Expression partitions = 2;
*/
public Builder clearPartitions() {
if (partitionsBuilder_ == null) {
partitions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
} else {
partitionsBuilder_.clear();
}
return this;
}
/**
*
* When one or more partition expressions are specified, two records are
* considered to be in the same partition if and only if these expressions
* yield an equal record of values for both. When computing the window
* function, only the subset of records within the bounds that are also in
* the same partition as the current record are aggregated.
*
*
* repeated .substrait.Expression partitions = 2;
*/
public Builder removePartitions(int index) {
if (partitionsBuilder_ == null) {
ensurePartitionsIsMutable();
partitions_.remove(index);
onChanged();
} else {
partitionsBuilder_.remove(index);
}
return this;
}
/**
*
* When one or more partition expressions are specified, two records are
* considered to be in the same partition if and only if these expressions
* yield an equal record of values for both. When computing the window
* function, only the subset of records within the bounds that are also in
* the same partition as the current record are aggregated.
*
*
* repeated .substrait.Expression partitions = 2;
*/
public io.substrait.proto.Expression.Builder getPartitionsBuilder(
int index) {
return getPartitionsFieldBuilder().getBuilder(index);
}
/**
*
* When one or more partition expressions are specified, two records are
* considered to be in the same partition if and only if these expressions
* yield an equal record of values for both. When computing the window
* function, only the subset of records within the bounds that are also in
* the same partition as the current record are aggregated.
*
*
* repeated .substrait.Expression partitions = 2;
*/
public io.substrait.proto.ExpressionOrBuilder getPartitionsOrBuilder(
int index) {
if (partitionsBuilder_ == null) {
return partitions_.get(index); } else {
return partitionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* When one or more partition expressions are specified, two records are
* considered to be in the same partition if and only if these expressions
* yield an equal record of values for both. When computing the window
* function, only the subset of records within the bounds that are also in
* the same partition as the current record are aggregated.
*
*
* repeated .substrait.Expression partitions = 2;
*/
public java.util.List extends io.substrait.proto.ExpressionOrBuilder>
getPartitionsOrBuilderList() {
if (partitionsBuilder_ != null) {
return partitionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(partitions_);
}
}
/**
*
* When one or more partition expressions are specified, two records are
* considered to be in the same partition if and only if these expressions
* yield an equal record of values for both. When computing the window
* function, only the subset of records within the bounds that are also in
* the same partition as the current record are aggregated.
*
*
* repeated .substrait.Expression partitions = 2;
*/
public io.substrait.proto.Expression.Builder addPartitionsBuilder() {
return getPartitionsFieldBuilder().addBuilder(
io.substrait.proto.Expression.getDefaultInstance());
}
/**
*
* When one or more partition expressions are specified, two records are
* considered to be in the same partition if and only if these expressions
* yield an equal record of values for both. When computing the window
* function, only the subset of records within the bounds that are also in
* the same partition as the current record are aggregated.
*
*
* repeated .substrait.Expression partitions = 2;
*/
public io.substrait.proto.Expression.Builder addPartitionsBuilder(
int index) {
return getPartitionsFieldBuilder().addBuilder(
index, io.substrait.proto.Expression.getDefaultInstance());
}
/**
*
* When one or more partition expressions are specified, two records are
* considered to be in the same partition if and only if these expressions
* yield an equal record of values for both. When computing the window
* function, only the subset of records within the bounds that are also in
* the same partition as the current record are aggregated.
*
*
* repeated .substrait.Expression partitions = 2;
*/
public java.util.List
getPartitionsBuilderList() {
return getPartitionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>
getPartitionsFieldBuilder() {
if (partitionsBuilder_ == null) {
partitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>(
partitions_,
((bitField0_ & 0x00000080) != 0),
getParentForChildren(),
isClean());
partitions_ = null;
}
return partitionsBuilder_;
}
private int boundsType_ = 0;
/**
*
* Defines the bounds type: ROWS, RANGE
*
*
* .substrait.Expression.WindowFunction.BoundsType bounds_type = 12;
* @return The enum numeric value on the wire for boundsType.
*/
@java.lang.Override public int getBoundsTypeValue() {
return boundsType_;
}
/**
*
* Defines the bounds type: ROWS, RANGE
*
*
* .substrait.Expression.WindowFunction.BoundsType bounds_type = 12;
* @param value The enum numeric value on the wire for boundsType to set.
* @return This builder for chaining.
*/
public Builder setBoundsTypeValue(int value) {
boundsType_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* Defines the bounds type: ROWS, RANGE
*
*
* .substrait.Expression.WindowFunction.BoundsType bounds_type = 12;
* @return The boundsType.
*/
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction.BoundsType getBoundsType() {
io.substrait.proto.Expression.WindowFunction.BoundsType result = io.substrait.proto.Expression.WindowFunction.BoundsType.forNumber(boundsType_);
return result == null ? io.substrait.proto.Expression.WindowFunction.BoundsType.UNRECOGNIZED : result;
}
/**
*
* Defines the bounds type: ROWS, RANGE
*
*
* .substrait.Expression.WindowFunction.BoundsType bounds_type = 12;
* @param value The boundsType to set.
* @return This builder for chaining.
*/
public Builder setBoundsType(io.substrait.proto.Expression.WindowFunction.BoundsType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
boundsType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Defines the bounds type: ROWS, RANGE
*
*
* .substrait.Expression.WindowFunction.BoundsType bounds_type = 12;
* @return This builder for chaining.
*/
public Builder clearBoundsType() {
bitField0_ = (bitField0_ & ~0x00000100);
boundsType_ = 0;
onChanged();
return this;
}
private io.substrait.proto.Expression.WindowFunction.Bound lowerBound_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.WindowFunction.Bound, io.substrait.proto.Expression.WindowFunction.Bound.Builder, io.substrait.proto.Expression.WindowFunction.BoundOrBuilder> lowerBoundBuilder_;
/**
*
* Defines the record relative to the current record from which the window
* extends. The bound is inclusive. If the lower bound indexes a record
* greater than the upper bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the start of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
* @return Whether the lowerBound field is set.
*/
public boolean hasLowerBound() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* Defines the record relative to the current record from which the window
* extends. The bound is inclusive. If the lower bound indexes a record
* greater than the upper bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the start of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
* @return The lowerBound.
*/
public io.substrait.proto.Expression.WindowFunction.Bound getLowerBound() {
if (lowerBoundBuilder_ == null) {
return lowerBound_ == null ? io.substrait.proto.Expression.WindowFunction.Bound.getDefaultInstance() : lowerBound_;
} else {
return lowerBoundBuilder_.getMessage();
}
}
/**
*
* Defines the record relative to the current record from which the window
* extends. The bound is inclusive. If the lower bound indexes a record
* greater than the upper bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the start of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
*/
public Builder setLowerBound(io.substrait.proto.Expression.WindowFunction.Bound value) {
if (lowerBoundBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lowerBound_ = value;
} else {
lowerBoundBuilder_.setMessage(value);
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* Defines the record relative to the current record from which the window
* extends. The bound is inclusive. If the lower bound indexes a record
* greater than the upper bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the start of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
*/
public Builder setLowerBound(
io.substrait.proto.Expression.WindowFunction.Bound.Builder builderForValue) {
if (lowerBoundBuilder_ == null) {
lowerBound_ = builderForValue.build();
} else {
lowerBoundBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* Defines the record relative to the current record from which the window
* extends. The bound is inclusive. If the lower bound indexes a record
* greater than the upper bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the start of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
*/
public Builder mergeLowerBound(io.substrait.proto.Expression.WindowFunction.Bound value) {
if (lowerBoundBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 0) &&
lowerBound_ != null &&
lowerBound_ != io.substrait.proto.Expression.WindowFunction.Bound.getDefaultInstance()) {
getLowerBoundBuilder().mergeFrom(value);
} else {
lowerBound_ = value;
}
} else {
lowerBoundBuilder_.mergeFrom(value);
}
if (lowerBound_ != null) {
bitField0_ |= 0x00000200;
onChanged();
}
return this;
}
/**
*
* Defines the record relative to the current record from which the window
* extends. The bound is inclusive. If the lower bound indexes a record
* greater than the upper bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the start of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
*/
public Builder clearLowerBound() {
bitField0_ = (bitField0_ & ~0x00000200);
lowerBound_ = null;
if (lowerBoundBuilder_ != null) {
lowerBoundBuilder_.dispose();
lowerBoundBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Defines the record relative to the current record from which the window
* extends. The bound is inclusive. If the lower bound indexes a record
* greater than the upper bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the start of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
*/
public io.substrait.proto.Expression.WindowFunction.Bound.Builder getLowerBoundBuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getLowerBoundFieldBuilder().getBuilder();
}
/**
*
* Defines the record relative to the current record from which the window
* extends. The bound is inclusive. If the lower bound indexes a record
* greater than the upper bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the start of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
*/
public io.substrait.proto.Expression.WindowFunction.BoundOrBuilder getLowerBoundOrBuilder() {
if (lowerBoundBuilder_ != null) {
return lowerBoundBuilder_.getMessageOrBuilder();
} else {
return lowerBound_ == null ?
io.substrait.proto.Expression.WindowFunction.Bound.getDefaultInstance() : lowerBound_;
}
}
/**
*
* Defines the record relative to the current record from which the window
* extends. The bound is inclusive. If the lower bound indexes a record
* greater than the upper bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the start of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound lower_bound = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.WindowFunction.Bound, io.substrait.proto.Expression.WindowFunction.Bound.Builder, io.substrait.proto.Expression.WindowFunction.BoundOrBuilder>
getLowerBoundFieldBuilder() {
if (lowerBoundBuilder_ == null) {
lowerBoundBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.WindowFunction.Bound, io.substrait.proto.Expression.WindowFunction.Bound.Builder, io.substrait.proto.Expression.WindowFunction.BoundOrBuilder>(
getLowerBound(),
getParentForChildren(),
isClean());
lowerBound_ = null;
}
return lowerBoundBuilder_;
}
private io.substrait.proto.Expression.WindowFunction.Bound upperBound_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.WindowFunction.Bound, io.substrait.proto.Expression.WindowFunction.Bound.Builder, io.substrait.proto.Expression.WindowFunction.BoundOrBuilder> upperBoundBuilder_;
/**
*
* Defines the record relative to the current record up to which the window
* extends. The bound is inclusive. If the upper bound indexes a record
* less than the lower bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the end of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
* @return Whether the upperBound field is set.
*/
public boolean hasUpperBound() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* Defines the record relative to the current record up to which the window
* extends. The bound is inclusive. If the upper bound indexes a record
* less than the lower bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the end of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
* @return The upperBound.
*/
public io.substrait.proto.Expression.WindowFunction.Bound getUpperBound() {
if (upperBoundBuilder_ == null) {
return upperBound_ == null ? io.substrait.proto.Expression.WindowFunction.Bound.getDefaultInstance() : upperBound_;
} else {
return upperBoundBuilder_.getMessage();
}
}
/**
*
* Defines the record relative to the current record up to which the window
* extends. The bound is inclusive. If the upper bound indexes a record
* less than the lower bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the end of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
*/
public Builder setUpperBound(io.substrait.proto.Expression.WindowFunction.Bound value) {
if (upperBoundBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
upperBound_ = value;
} else {
upperBoundBuilder_.setMessage(value);
}
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
* Defines the record relative to the current record up to which the window
* extends. The bound is inclusive. If the upper bound indexes a record
* less than the lower bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the end of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
*/
public Builder setUpperBound(
io.substrait.proto.Expression.WindowFunction.Bound.Builder builderForValue) {
if (upperBoundBuilder_ == null) {
upperBound_ = builderForValue.build();
} else {
upperBoundBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
* Defines the record relative to the current record up to which the window
* extends. The bound is inclusive. If the upper bound indexes a record
* less than the lower bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the end of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
*/
public Builder mergeUpperBound(io.substrait.proto.Expression.WindowFunction.Bound value) {
if (upperBoundBuilder_ == null) {
if (((bitField0_ & 0x00000400) != 0) &&
upperBound_ != null &&
upperBound_ != io.substrait.proto.Expression.WindowFunction.Bound.getDefaultInstance()) {
getUpperBoundBuilder().mergeFrom(value);
} else {
upperBound_ = value;
}
} else {
upperBoundBuilder_.mergeFrom(value);
}
if (upperBound_ != null) {
bitField0_ |= 0x00000400;
onChanged();
}
return this;
}
/**
*
* Defines the record relative to the current record up to which the window
* extends. The bound is inclusive. If the upper bound indexes a record
* less than the lower bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the end of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
*/
public Builder clearUpperBound() {
bitField0_ = (bitField0_ & ~0x00000400);
upperBound_ = null;
if (upperBoundBuilder_ != null) {
upperBoundBuilder_.dispose();
upperBoundBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Defines the record relative to the current record up to which the window
* extends. The bound is inclusive. If the upper bound indexes a record
* less than the lower bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the end of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
*/
public io.substrait.proto.Expression.WindowFunction.Bound.Builder getUpperBoundBuilder() {
bitField0_ |= 0x00000400;
onChanged();
return getUpperBoundFieldBuilder().getBuilder();
}
/**
*
* Defines the record relative to the current record up to which the window
* extends. The bound is inclusive. If the upper bound indexes a record
* less than the lower bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the end of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
*/
public io.substrait.proto.Expression.WindowFunction.BoundOrBuilder getUpperBoundOrBuilder() {
if (upperBoundBuilder_ != null) {
return upperBoundBuilder_.getMessageOrBuilder();
} else {
return upperBound_ == null ?
io.substrait.proto.Expression.WindowFunction.Bound.getDefaultInstance() : upperBound_;
}
}
/**
*
* Defines the record relative to the current record up to which the window
* extends. The bound is inclusive. If the upper bound indexes a record
* less than the lower bound, TODO (null range/no records passed?
* wrapping around as if lower/upper were swapped? error? null?).
* Optional; defaults to the end of the partition.
*
*
* .substrait.Expression.WindowFunction.Bound upper_bound = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.WindowFunction.Bound, io.substrait.proto.Expression.WindowFunction.Bound.Builder, io.substrait.proto.Expression.WindowFunction.BoundOrBuilder>
getUpperBoundFieldBuilder() {
if (upperBoundBuilder_ == null) {
upperBoundBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.WindowFunction.Bound, io.substrait.proto.Expression.WindowFunction.Bound.Builder, io.substrait.proto.Expression.WindowFunction.BoundOrBuilder>(
getUpperBound(),
getParentForChildren(),
isClean());
upperBound_ = null;
}
return upperBoundBuilder_;
}
private java.util.List args_ =
java.util.Collections.emptyList();
private void ensureArgsIsMutable() {
if (!((bitField0_ & 0x00000800) != 0)) {
args_ = new java.util.ArrayList(args_);
bitField0_ |= 0x00000800;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> argsBuilder_;
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 8 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List getArgsList() {
if (argsBuilder_ == null) {
return java.util.Collections.unmodifiableList(args_);
} else {
return argsBuilder_.getMessageList();
}
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 8 [deprecated = true];
*/
@java.lang.Deprecated public int getArgsCount() {
if (argsBuilder_ == null) {
return args_.size();
} else {
return argsBuilder_.getCount();
}
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 8 [deprecated = true];
*/
@java.lang.Deprecated public io.substrait.proto.Expression getArgs(int index) {
if (argsBuilder_ == null) {
return args_.get(index);
} else {
return argsBuilder_.getMessage(index);
}
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 8 [deprecated = true];
*/
@java.lang.Deprecated public Builder setArgs(
int index, io.substrait.proto.Expression value) {
if (argsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgsIsMutable();
args_.set(index, value);
onChanged();
} else {
argsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 8 [deprecated = true];
*/
@java.lang.Deprecated public Builder setArgs(
int index, io.substrait.proto.Expression.Builder builderForValue) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
args_.set(index, builderForValue.build());
onChanged();
} else {
argsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 8 [deprecated = true];
*/
@java.lang.Deprecated public Builder addArgs(io.substrait.proto.Expression value) {
if (argsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgsIsMutable();
args_.add(value);
onChanged();
} else {
argsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 8 [deprecated = true];
*/
@java.lang.Deprecated public Builder addArgs(
int index, io.substrait.proto.Expression value) {
if (argsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgsIsMutable();
args_.add(index, value);
onChanged();
} else {
argsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 8 [deprecated = true];
*/
@java.lang.Deprecated public Builder addArgs(
io.substrait.proto.Expression.Builder builderForValue) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
args_.add(builderForValue.build());
onChanged();
} else {
argsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 8 [deprecated = true];
*/
@java.lang.Deprecated public Builder addArgs(
int index, io.substrait.proto.Expression.Builder builderForValue) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
args_.add(index, builderForValue.build());
onChanged();
} else {
argsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 8 [deprecated = true];
*/
@java.lang.Deprecated public Builder addAllArgs(
java.lang.Iterable extends io.substrait.proto.Expression> values) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, args_);
onChanged();
} else {
argsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 8 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearArgs() {
if (argsBuilder_ == null) {
args_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
} else {
argsBuilder_.clear();
}
return this;
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 8 [deprecated = true];
*/
@java.lang.Deprecated public Builder removeArgs(int index) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
args_.remove(index);
onChanged();
} else {
argsBuilder_.remove(index);
}
return this;
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 8 [deprecated = true];
*/
@java.lang.Deprecated public io.substrait.proto.Expression.Builder getArgsBuilder(
int index) {
return getArgsFieldBuilder().getBuilder(index);
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 8 [deprecated = true];
*/
@java.lang.Deprecated public io.substrait.proto.ExpressionOrBuilder getArgsOrBuilder(
int index) {
if (argsBuilder_ == null) {
return args_.get(index); } else {
return argsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 8 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List extends io.substrait.proto.ExpressionOrBuilder>
getArgsOrBuilderList() {
if (argsBuilder_ != null) {
return argsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(args_);
}
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 8 [deprecated = true];
*/
@java.lang.Deprecated public io.substrait.proto.Expression.Builder addArgsBuilder() {
return getArgsFieldBuilder().addBuilder(
io.substrait.proto.Expression.getDefaultInstance());
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 8 [deprecated = true];
*/
@java.lang.Deprecated public io.substrait.proto.Expression.Builder addArgsBuilder(
int index) {
return getArgsFieldBuilder().addBuilder(
index, io.substrait.proto.Expression.getDefaultInstance());
}
/**
*
* Deprecated; use arguments instead.
*
*
* repeated .substrait.Expression args = 8 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List
getArgsBuilderList() {
return getArgsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>
getArgsFieldBuilder() {
if (argsBuilder_ == null) {
argsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>(
args_,
((bitField0_ & 0x00000800) != 0),
getParentForChildren(),
isClean());
args_ = null;
}
return argsBuilder_;
}
@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:substrait.Expression.WindowFunction)
}
// @@protoc_insertion_point(class_scope:substrait.Expression.WindowFunction)
private static final io.substrait.proto.Expression.WindowFunction DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.Expression.WindowFunction();
}
public static io.substrait.proto.Expression.WindowFunction getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public WindowFunction parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.Expression.WindowFunction getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IfThenOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.Expression.IfThen)
com.google.protobuf.MessageOrBuilder {
/**
*
* A list of one or more IfClauses
*
*
* repeated .substrait.Expression.IfThen.IfClause ifs = 1;
*/
java.util.List
getIfsList();
/**
*
* A list of one or more IfClauses
*
*
* repeated .substrait.Expression.IfThen.IfClause ifs = 1;
*/
io.substrait.proto.Expression.IfThen.IfClause getIfs(int index);
/**
*
* A list of one or more IfClauses
*
*
* repeated .substrait.Expression.IfThen.IfClause ifs = 1;
*/
int getIfsCount();
/**
*
* A list of one or more IfClauses
*
*
* repeated .substrait.Expression.IfThen.IfClause ifs = 1;
*/
java.util.List extends io.substrait.proto.Expression.IfThen.IfClauseOrBuilder>
getIfsOrBuilderList();
/**
*
* A list of one or more IfClauses
*
*
* repeated .substrait.Expression.IfThen.IfClause ifs = 1;
*/
io.substrait.proto.Expression.IfThen.IfClauseOrBuilder getIfsOrBuilder(
int index);
/**
*
* The returned Expression if no IfClauses are satisified
*
*
* .substrait.Expression else = 2;
* @return Whether the else field is set.
*/
boolean hasElse();
/**
*
* The returned Expression if no IfClauses are satisified
*
*
* .substrait.Expression else = 2;
* @return The else.
*/
io.substrait.proto.Expression getElse();
/**
*
* The returned Expression if no IfClauses are satisified
*
*
* .substrait.Expression else = 2;
*/
io.substrait.proto.ExpressionOrBuilder getElseOrBuilder();
}
/**
* Protobuf type {@code substrait.Expression.IfThen}
*/
public static final class IfThen extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Expression.IfThen)
IfThenOrBuilder {
private static final long serialVersionUID = 0L;
// Use IfThen.newBuilder() to construct.
private IfThen(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IfThen() {
ifs_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IfThen();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_IfThen_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_IfThen_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.IfThen.class, io.substrait.proto.Expression.IfThen.Builder.class);
}
public interface IfClauseOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.Expression.IfThen.IfClause)
com.google.protobuf.MessageOrBuilder {
/**
* .substrait.Expression if = 1;
* @return Whether the if field is set.
*/
boolean hasIf();
/**
* .substrait.Expression if = 1;
* @return The if.
*/
io.substrait.proto.Expression getIf();
/**
* .substrait.Expression if = 1;
*/
io.substrait.proto.ExpressionOrBuilder getIfOrBuilder();
/**
* .substrait.Expression then = 2;
* @return Whether the then field is set.
*/
boolean hasThen();
/**
* .substrait.Expression then = 2;
* @return The then.
*/
io.substrait.proto.Expression getThen();
/**
* .substrait.Expression then = 2;
*/
io.substrait.proto.ExpressionOrBuilder getThenOrBuilder();
}
/**
* Protobuf type {@code substrait.Expression.IfThen.IfClause}
*/
public static final class IfClause extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Expression.IfThen.IfClause)
IfClauseOrBuilder {
private static final long serialVersionUID = 0L;
// Use IfClause.newBuilder() to construct.
private IfClause(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IfClause() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IfClause();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_IfThen_IfClause_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_IfThen_IfClause_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.IfThen.IfClause.class, io.substrait.proto.Expression.IfThen.IfClause.Builder.class);
}
private int bitField0_;
public static final int IF_FIELD_NUMBER = 1;
private io.substrait.proto.Expression if_;
/**
* .substrait.Expression if = 1;
* @return Whether the if field is set.
*/
@java.lang.Override
public boolean hasIf() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .substrait.Expression if = 1;
* @return The if.
*/
@java.lang.Override
public io.substrait.proto.Expression getIf() {
return if_ == null ? io.substrait.proto.Expression.getDefaultInstance() : if_;
}
/**
* .substrait.Expression if = 1;
*/
@java.lang.Override
public io.substrait.proto.ExpressionOrBuilder getIfOrBuilder() {
return if_ == null ? io.substrait.proto.Expression.getDefaultInstance() : if_;
}
public static final int THEN_FIELD_NUMBER = 2;
private io.substrait.proto.Expression then_;
/**
* .substrait.Expression then = 2;
* @return Whether the then field is set.
*/
@java.lang.Override
public boolean hasThen() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .substrait.Expression then = 2;
* @return The then.
*/
@java.lang.Override
public io.substrait.proto.Expression getThen() {
return then_ == null ? io.substrait.proto.Expression.getDefaultInstance() : then_;
}
/**
* .substrait.Expression then = 2;
*/
@java.lang.Override
public io.substrait.proto.ExpressionOrBuilder getThenOrBuilder() {
return then_ == null ? io.substrait.proto.Expression.getDefaultInstance() : then_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getIf());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getThen());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getIf());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getThen());
}
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 io.substrait.proto.Expression.IfThen.IfClause)) {
return super.equals(obj);
}
io.substrait.proto.Expression.IfThen.IfClause other = (io.substrait.proto.Expression.IfThen.IfClause) obj;
if (hasIf() != other.hasIf()) return false;
if (hasIf()) {
if (!getIf()
.equals(other.getIf())) return false;
}
if (hasThen() != other.hasThen()) return false;
if (hasThen()) {
if (!getThen()
.equals(other.getThen())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasIf()) {
hash = (37 * hash) + IF_FIELD_NUMBER;
hash = (53 * hash) + getIf().hashCode();
}
if (hasThen()) {
hash = (37 * hash) + THEN_FIELD_NUMBER;
hash = (53 * hash) + getThen().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.Expression.IfThen.IfClause parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.IfThen.IfClause parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.IfThen.IfClause parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.IfThen.IfClause parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.IfThen.IfClause parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.IfThen.IfClause parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.IfThen.IfClause parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.IfThen.IfClause 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 io.substrait.proto.Expression.IfThen.IfClause parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.IfThen.IfClause 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 io.substrait.proto.Expression.IfThen.IfClause parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.IfThen.IfClause 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(io.substrait.proto.Expression.IfThen.IfClause 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 substrait.Expression.IfThen.IfClause}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Expression.IfThen.IfClause)
io.substrait.proto.Expression.IfThen.IfClauseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_IfThen_IfClause_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_IfThen_IfClause_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.IfThen.IfClause.class, io.substrait.proto.Expression.IfThen.IfClause.Builder.class);
}
// Construct using io.substrait.proto.Expression.IfThen.IfClause.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getIfFieldBuilder();
getThenFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if_ = null;
if (ifBuilder_ != null) {
ifBuilder_.dispose();
ifBuilder_ = null;
}
then_ = null;
if (thenBuilder_ != null) {
thenBuilder_.dispose();
thenBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_IfThen_IfClause_descriptor;
}
@java.lang.Override
public io.substrait.proto.Expression.IfThen.IfClause getDefaultInstanceForType() {
return io.substrait.proto.Expression.IfThen.IfClause.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Expression.IfThen.IfClause build() {
io.substrait.proto.Expression.IfThen.IfClause result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Expression.IfThen.IfClause buildPartial() {
io.substrait.proto.Expression.IfThen.IfClause result = new io.substrait.proto.Expression.IfThen.IfClause(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.Expression.IfThen.IfClause result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.if_ = ifBuilder_ == null
? if_
: ifBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.then_ = thenBuilder_ == null
? then_
: thenBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@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 io.substrait.proto.Expression.IfThen.IfClause) {
return mergeFrom((io.substrait.proto.Expression.IfThen.IfClause)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Expression.IfThen.IfClause other) {
if (other == io.substrait.proto.Expression.IfThen.IfClause.getDefaultInstance()) return this;
if (other.hasIf()) {
mergeIf(other.getIf());
}
if (other.hasThen()) {
mergeThen(other.getThen());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getIfFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getThenFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private io.substrait.proto.Expression if_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> ifBuilder_;
/**
* .substrait.Expression if = 1;
* @return Whether the if field is set.
*/
public boolean hasIf() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .substrait.Expression if = 1;
* @return The if.
*/
public io.substrait.proto.Expression getIf() {
if (ifBuilder_ == null) {
return if_ == null ? io.substrait.proto.Expression.getDefaultInstance() : if_;
} else {
return ifBuilder_.getMessage();
}
}
/**
* .substrait.Expression if = 1;
*/
public Builder setIf(io.substrait.proto.Expression value) {
if (ifBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
if_ = value;
} else {
ifBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .substrait.Expression if = 1;
*/
public Builder setIf(
io.substrait.proto.Expression.Builder builderForValue) {
if (ifBuilder_ == null) {
if_ = builderForValue.build();
} else {
ifBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .substrait.Expression if = 1;
*/
public Builder mergeIf(io.substrait.proto.Expression value) {
if (ifBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
if_ != null &&
if_ != io.substrait.proto.Expression.getDefaultInstance()) {
getIfBuilder().mergeFrom(value);
} else {
if_ = value;
}
} else {
ifBuilder_.mergeFrom(value);
}
if (if_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .substrait.Expression if = 1;
*/
public Builder clearIf() {
bitField0_ = (bitField0_ & ~0x00000001);
if_ = null;
if (ifBuilder_ != null) {
ifBuilder_.dispose();
ifBuilder_ = null;
}
onChanged();
return this;
}
/**
* .substrait.Expression if = 1;
*/
public io.substrait.proto.Expression.Builder getIfBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getIfFieldBuilder().getBuilder();
}
/**
* .substrait.Expression if = 1;
*/
public io.substrait.proto.ExpressionOrBuilder getIfOrBuilder() {
if (ifBuilder_ != null) {
return ifBuilder_.getMessageOrBuilder();
} else {
return if_ == null ?
io.substrait.proto.Expression.getDefaultInstance() : if_;
}
}
/**
* .substrait.Expression if = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>
getIfFieldBuilder() {
if (ifBuilder_ == null) {
ifBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>(
getIf(),
getParentForChildren(),
isClean());
if_ = null;
}
return ifBuilder_;
}
private io.substrait.proto.Expression then_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> thenBuilder_;
/**
* .substrait.Expression then = 2;
* @return Whether the then field is set.
*/
public boolean hasThen() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .substrait.Expression then = 2;
* @return The then.
*/
public io.substrait.proto.Expression getThen() {
if (thenBuilder_ == null) {
return then_ == null ? io.substrait.proto.Expression.getDefaultInstance() : then_;
} else {
return thenBuilder_.getMessage();
}
}
/**
* .substrait.Expression then = 2;
*/
public Builder setThen(io.substrait.proto.Expression value) {
if (thenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
then_ = value;
} else {
thenBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .substrait.Expression then = 2;
*/
public Builder setThen(
io.substrait.proto.Expression.Builder builderForValue) {
if (thenBuilder_ == null) {
then_ = builderForValue.build();
} else {
thenBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .substrait.Expression then = 2;
*/
public Builder mergeThen(io.substrait.proto.Expression value) {
if (thenBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
then_ != null &&
then_ != io.substrait.proto.Expression.getDefaultInstance()) {
getThenBuilder().mergeFrom(value);
} else {
then_ = value;
}
} else {
thenBuilder_.mergeFrom(value);
}
if (then_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .substrait.Expression then = 2;
*/
public Builder clearThen() {
bitField0_ = (bitField0_ & ~0x00000002);
then_ = null;
if (thenBuilder_ != null) {
thenBuilder_.dispose();
thenBuilder_ = null;
}
onChanged();
return this;
}
/**
* .substrait.Expression then = 2;
*/
public io.substrait.proto.Expression.Builder getThenBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getThenFieldBuilder().getBuilder();
}
/**
* .substrait.Expression then = 2;
*/
public io.substrait.proto.ExpressionOrBuilder getThenOrBuilder() {
if (thenBuilder_ != null) {
return thenBuilder_.getMessageOrBuilder();
} else {
return then_ == null ?
io.substrait.proto.Expression.getDefaultInstance() : then_;
}
}
/**
* .substrait.Expression then = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>
getThenFieldBuilder() {
if (thenBuilder_ == null) {
thenBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>(
getThen(),
getParentForChildren(),
isClean());
then_ = null;
}
return thenBuilder_;
}
@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:substrait.Expression.IfThen.IfClause)
}
// @@protoc_insertion_point(class_scope:substrait.Expression.IfThen.IfClause)
private static final io.substrait.proto.Expression.IfThen.IfClause DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.Expression.IfThen.IfClause();
}
public static io.substrait.proto.Expression.IfThen.IfClause getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IfClause parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.Expression.IfThen.IfClause getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int IFS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List ifs_;
/**
*
* A list of one or more IfClauses
*
*
* repeated .substrait.Expression.IfThen.IfClause ifs = 1;
*/
@java.lang.Override
public java.util.List getIfsList() {
return ifs_;
}
/**
*
* A list of one or more IfClauses
*
*
* repeated .substrait.Expression.IfThen.IfClause ifs = 1;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.Expression.IfThen.IfClauseOrBuilder>
getIfsOrBuilderList() {
return ifs_;
}
/**
*
* A list of one or more IfClauses
*
*
* repeated .substrait.Expression.IfThen.IfClause ifs = 1;
*/
@java.lang.Override
public int getIfsCount() {
return ifs_.size();
}
/**
*
* A list of one or more IfClauses
*
*
* repeated .substrait.Expression.IfThen.IfClause ifs = 1;
*/
@java.lang.Override
public io.substrait.proto.Expression.IfThen.IfClause getIfs(int index) {
return ifs_.get(index);
}
/**
*
* A list of one or more IfClauses
*
*
* repeated .substrait.Expression.IfThen.IfClause ifs = 1;
*/
@java.lang.Override
public io.substrait.proto.Expression.IfThen.IfClauseOrBuilder getIfsOrBuilder(
int index) {
return ifs_.get(index);
}
public static final int ELSE_FIELD_NUMBER = 2;
private io.substrait.proto.Expression else_;
/**
*
* The returned Expression if no IfClauses are satisified
*
*
* .substrait.Expression else = 2;
* @return Whether the else field is set.
*/
@java.lang.Override
public boolean hasElse() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The returned Expression if no IfClauses are satisified
*
*
* .substrait.Expression else = 2;
* @return The else.
*/
@java.lang.Override
public io.substrait.proto.Expression getElse() {
return else_ == null ? io.substrait.proto.Expression.getDefaultInstance() : else_;
}
/**
*
* The returned Expression if no IfClauses are satisified
*
*
* .substrait.Expression else = 2;
*/
@java.lang.Override
public io.substrait.proto.ExpressionOrBuilder getElseOrBuilder() {
return else_ == null ? io.substrait.proto.Expression.getDefaultInstance() : else_;
}
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 {
for (int i = 0; i < ifs_.size(); i++) {
output.writeMessage(1, ifs_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getElse());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < ifs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, ifs_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getElse());
}
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 io.substrait.proto.Expression.IfThen)) {
return super.equals(obj);
}
io.substrait.proto.Expression.IfThen other = (io.substrait.proto.Expression.IfThen) obj;
if (!getIfsList()
.equals(other.getIfsList())) return false;
if (hasElse() != other.hasElse()) return false;
if (hasElse()) {
if (!getElse()
.equals(other.getElse())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getIfsCount() > 0) {
hash = (37 * hash) + IFS_FIELD_NUMBER;
hash = (53 * hash) + getIfsList().hashCode();
}
if (hasElse()) {
hash = (37 * hash) + ELSE_FIELD_NUMBER;
hash = (53 * hash) + getElse().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.Expression.IfThen parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.IfThen parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.IfThen parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.IfThen parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.IfThen parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Expression.IfThen parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Expression.IfThen parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.IfThen 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 io.substrait.proto.Expression.IfThen parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.IfThen 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 io.substrait.proto.Expression.IfThen parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Expression.IfThen 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(io.substrait.proto.Expression.IfThen 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 substrait.Expression.IfThen}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Expression.IfThen)
io.substrait.proto.Expression.IfThenOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_IfThen_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_IfThen_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Expression.IfThen.class, io.substrait.proto.Expression.IfThen.Builder.class);
}
// Construct using io.substrait.proto.Expression.IfThen.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getIfsFieldBuilder();
getElseFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (ifsBuilder_ == null) {
ifs_ = java.util.Collections.emptyList();
} else {
ifs_ = null;
ifsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
else_ = null;
if (elseBuilder_ != null) {
elseBuilder_.dispose();
elseBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_Expression_IfThen_descriptor;
}
@java.lang.Override
public io.substrait.proto.Expression.IfThen getDefaultInstanceForType() {
return io.substrait.proto.Expression.IfThen.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Expression.IfThen build() {
io.substrait.proto.Expression.IfThen result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Expression.IfThen buildPartial() {
io.substrait.proto.Expression.IfThen result = new io.substrait.proto.Expression.IfThen(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.substrait.proto.Expression.IfThen result) {
if (ifsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
ifs_ = java.util.Collections.unmodifiableList(ifs_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.ifs_ = ifs_;
} else {
result.ifs_ = ifsBuilder_.build();
}
}
private void buildPartial0(io.substrait.proto.Expression.IfThen result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.else_ = elseBuilder_ == null
? else_
: elseBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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 io.substrait.proto.Expression.IfThen) {
return mergeFrom((io.substrait.proto.Expression.IfThen)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Expression.IfThen other) {
if (other == io.substrait.proto.Expression.IfThen.getDefaultInstance()) return this;
if (ifsBuilder_ == null) {
if (!other.ifs_.isEmpty()) {
if (ifs_.isEmpty()) {
ifs_ = other.ifs_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureIfsIsMutable();
ifs_.addAll(other.ifs_);
}
onChanged();
}
} else {
if (!other.ifs_.isEmpty()) {
if (ifsBuilder_.isEmpty()) {
ifsBuilder_.dispose();
ifsBuilder_ = null;
ifs_ = other.ifs_;
bitField0_ = (bitField0_ & ~0x00000001);
ifsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getIfsFieldBuilder() : null;
} else {
ifsBuilder_.addAllMessages(other.ifs_);
}
}
}
if (other.hasElse()) {
mergeElse(other.getElse());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.substrait.proto.Expression.IfThen.IfClause m =
input.readMessage(
io.substrait.proto.Expression.IfThen.IfClause.parser(),
extensionRegistry);
if (ifsBuilder_ == null) {
ensureIfsIsMutable();
ifs_.add(m);
} else {
ifsBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
input.readMessage(
getElseFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List ifs_ =
java.util.Collections.emptyList();
private void ensureIfsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
ifs_ = new java.util.ArrayList(ifs_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression.IfThen.IfClause, io.substrait.proto.Expression.IfThen.IfClause.Builder, io.substrait.proto.Expression.IfThen.IfClauseOrBuilder> ifsBuilder_;
/**
*
* A list of one or more IfClauses
*
*
* repeated .substrait.Expression.IfThen.IfClause ifs = 1;
*/
public java.util.List getIfsList() {
if (ifsBuilder_ == null) {
return java.util.Collections.unmodifiableList(ifs_);
} else {
return ifsBuilder_.getMessageList();
}
}
/**
*
* A list of one or more IfClauses
*
*
* repeated .substrait.Expression.IfThen.IfClause ifs = 1;
*/
public int getIfsCount() {
if (ifsBuilder_ == null) {
return ifs_.size();
} else {
return ifsBuilder_.getCount();
}
}
/**
*
* A list of one or more IfClauses
*
*
* repeated .substrait.Expression.IfThen.IfClause ifs = 1;
*/
public io.substrait.proto.Expression.IfThen.IfClause getIfs(int index) {
if (ifsBuilder_ == null) {
return ifs_.get(index);
} else {
return ifsBuilder_.getMessage(index);
}
}
/**
*
* A list of one or more IfClauses
*
*
* repeated .substrait.Expression.IfThen.IfClause ifs = 1;
*/
public Builder setIfs(
int index, io.substrait.proto.Expression.IfThen.IfClause value) {
if (ifsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIfsIsMutable();
ifs_.set(index, value);
onChanged();
} else {
ifsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* A list of one or more IfClauses
*
*
* repeated .substrait.Expression.IfThen.IfClause ifs = 1;
*/
public Builder setIfs(
int index, io.substrait.proto.Expression.IfThen.IfClause.Builder builderForValue) {
if (ifsBuilder_ == null) {
ensureIfsIsMutable();
ifs_.set(index, builderForValue.build());
onChanged();
} else {
ifsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of one or more IfClauses
*
*
* repeated .substrait.Expression.IfThen.IfClause ifs = 1;
*/
public Builder addIfs(io.substrait.proto.Expression.IfThen.IfClause value) {
if (ifsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIfsIsMutable();
ifs_.add(value);
onChanged();
} else {
ifsBuilder_.addMessage(value);
}
return this;
}
/**
*
* A list of one or more IfClauses
*
*
* repeated .substrait.Expression.IfThen.IfClause ifs = 1;
*/
public Builder addIfs(
int index, io.substrait.proto.Expression.IfThen.IfClause value) {
if (ifsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIfsIsMutable();
ifs_.add(index, value);
onChanged();
} else {
ifsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* A list of one or more IfClauses
*
*
* repeated .substrait.Expression.IfThen.IfClause ifs = 1;
*/
public Builder addIfs(
io.substrait.proto.Expression.IfThen.IfClause.Builder builderForValue) {
if (ifsBuilder_ == null) {
ensureIfsIsMutable();
ifs_.add(builderForValue.build());
onChanged();
} else {
ifsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* A list of one or more IfClauses
*
*
* repeated .substrait.Expression.IfThen.IfClause ifs = 1;
*/
public Builder addIfs(
int index, io.substrait.proto.Expression.IfThen.IfClause.Builder builderForValue) {
if (ifsBuilder_ == null) {
ensureIfsIsMutable();
ifs_.add(index, builderForValue.build());
onChanged();
} else {
ifsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of one or more IfClauses
*
*
* repeated .substrait.Expression.IfThen.IfClause ifs = 1;
*/
public Builder addAllIfs(
java.lang.Iterable extends io.substrait.proto.Expression.IfThen.IfClause> values) {
if (ifsBuilder_ == null) {
ensureIfsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, ifs_);
onChanged();
} else {
ifsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* A list of one or more IfClauses
*
*
* repeated .substrait.Expression.IfThen.IfClause ifs = 1;
*/
public Builder clearIfs() {
if (ifsBuilder_ == null) {
ifs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
ifsBuilder_.clear();
}
return this;
}
/**
*
* A list of one or more IfClauses
*
*
* repeated .substrait.Expression.IfThen.IfClause ifs = 1;
*/
public Builder removeIfs(int index) {
if (ifsBuilder_ == null) {
ensureIfsIsMutable();
ifs_.remove(index);
onChanged();
} else {
ifsBuilder_.remove(index);
}
return this;
}
/**
*
* A list of one or more IfClauses
*
*
* repeated .substrait.Expression.IfThen.IfClause ifs = 1;
*/
public io.substrait.proto.Expression.IfThen.IfClause.Builder getIfsBuilder(
int index) {
return getIfsFieldBuilder().getBuilder(index);
}
/**
*
* A list of one or more IfClauses
*
*
* repeated .substrait.Expression.IfThen.IfClause ifs = 1;
*/
public io.substrait.proto.Expression.IfThen.IfClauseOrBuilder getIfsOrBuilder(
int index) {
if (ifsBuilder_ == null) {
return ifs_.get(index); } else {
return ifsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* A list of one or more IfClauses
*
*
* repeated .substrait.Expression.IfThen.IfClause ifs = 1;
*/
public java.util.List extends io.substrait.proto.Expression.IfThen.IfClauseOrBuilder>
getIfsOrBuilderList() {
if (ifsBuilder_ != null) {
return ifsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(ifs_);
}
}
/**
*
* A list of one or more IfClauses
*
*
* repeated .substrait.Expression.IfThen.IfClause ifs = 1;
*/
public io.substrait.proto.Expression.IfThen.IfClause.Builder addIfsBuilder() {
return getIfsFieldBuilder().addBuilder(
io.substrait.proto.Expression.IfThen.IfClause.getDefaultInstance());
}
/**
*
* A list of one or more IfClauses
*
*
* repeated .substrait.Expression.IfThen.IfClause ifs = 1;
*/
public io.substrait.proto.Expression.IfThen.IfClause.Builder addIfsBuilder(
int index) {
return getIfsFieldBuilder().addBuilder(
index, io.substrait.proto.Expression.IfThen.IfClause.getDefaultInstance());
}
/**
*
* A list of one or more IfClauses
*
*
* repeated .substrait.Expression.IfThen.IfClause ifs = 1;
*/
public java.util.List
getIfsBuilderList() {
return getIfsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression.IfThen.IfClause, io.substrait.proto.Expression.IfThen.IfClause.Builder, io.substrait.proto.Expression.IfThen.IfClauseOrBuilder>
getIfsFieldBuilder() {
if (ifsBuilder_ == null) {
ifsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression.IfThen.IfClause, io.substrait.proto.Expression.IfThen.IfClause.Builder, io.substrait.proto.Expression.IfThen.IfClauseOrBuilder>(
ifs_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
ifs_ = null;
}
return ifsBuilder_;
}
private io.substrait.proto.Expression else_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> elseBuilder_;
/**
*