io.substrait.proto.FunctionArgument Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
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;
/**
*
* The argument of a function
*
*
* Protobuf type {@code substrait.FunctionArgument}
*/
public final class FunctionArgument extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.FunctionArgument)
FunctionArgumentOrBuilder {
private static final long serialVersionUID = 0L;
// Use FunctionArgument.newBuilder() to construct.
private FunctionArgument(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FunctionArgument() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FunctionArgument();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_FunctionArgument_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_FunctionArgument_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.FunctionArgument.class, io.substrait.proto.FunctionArgument.Builder.class);
}
private int argTypeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object argType_;
public enum ArgTypeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
ENUM(1),
TYPE(2),
VALUE(3),
ARGTYPE_NOT_SET(0);
private final int value;
private ArgTypeCase(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 ArgTypeCase valueOf(int value) {
return forNumber(value);
}
public static ArgTypeCase forNumber(int value) {
switch (value) {
case 1: return ENUM;
case 2: return TYPE;
case 3: return VALUE;
case 0: return ARGTYPE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ArgTypeCase
getArgTypeCase() {
return ArgTypeCase.forNumber(
argTypeCase_);
}
public static final int ENUM_FIELD_NUMBER = 1;
/**
* string enum = 1;
* @return Whether the enum field is set.
*/
public boolean hasEnum() {
return argTypeCase_ == 1;
}
/**
* string enum = 1;
* @return The enum.
*/
public java.lang.String getEnum() {
java.lang.Object ref = "";
if (argTypeCase_ == 1) {
ref = argType_;
}
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 (argTypeCase_ == 1) {
argType_ = s;
}
return s;
}
}
/**
* string enum = 1;
* @return The bytes for enum.
*/
public com.google.protobuf.ByteString
getEnumBytes() {
java.lang.Object ref = "";
if (argTypeCase_ == 1) {
ref = argType_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (argTypeCase_ == 1) {
argType_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 2;
/**
* .substrait.Type type = 2;
* @return Whether the type field is set.
*/
@java.lang.Override
public boolean hasType() {
return argTypeCase_ == 2;
}
/**
* .substrait.Type type = 2;
* @return The type.
*/
@java.lang.Override
public io.substrait.proto.Type getType() {
if (argTypeCase_ == 2) {
return (io.substrait.proto.Type) argType_;
}
return io.substrait.proto.Type.getDefaultInstance();
}
/**
* .substrait.Type type = 2;
*/
@java.lang.Override
public io.substrait.proto.TypeOrBuilder getTypeOrBuilder() {
if (argTypeCase_ == 2) {
return (io.substrait.proto.Type) argType_;
}
return io.substrait.proto.Type.getDefaultInstance();
}
public static final int VALUE_FIELD_NUMBER = 3;
/**
* .substrait.Expression value = 3;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return argTypeCase_ == 3;
}
/**
* .substrait.Expression value = 3;
* @return The value.
*/
@java.lang.Override
public io.substrait.proto.Expression getValue() {
if (argTypeCase_ == 3) {
return (io.substrait.proto.Expression) argType_;
}
return io.substrait.proto.Expression.getDefaultInstance();
}
/**
* .substrait.Expression value = 3;
*/
@java.lang.Override
public io.substrait.proto.ExpressionOrBuilder getValueOrBuilder() {
if (argTypeCase_ == 3) {
return (io.substrait.proto.Expression) argType_;
}
return io.substrait.proto.Expression.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 (argTypeCase_ == 1) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, argType_);
}
if (argTypeCase_ == 2) {
output.writeMessage(2, (io.substrait.proto.Type) argType_);
}
if (argTypeCase_ == 3) {
output.writeMessage(3, (io.substrait.proto.Expression) argType_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (argTypeCase_ == 1) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, argType_);
}
if (argTypeCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.substrait.proto.Type) argType_);
}
if (argTypeCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.substrait.proto.Expression) argType_);
}
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.FunctionArgument)) {
return super.equals(obj);
}
io.substrait.proto.FunctionArgument other = (io.substrait.proto.FunctionArgument) obj;
if (!getArgTypeCase().equals(other.getArgTypeCase())) return false;
switch (argTypeCase_) {
case 1:
if (!getEnum()
.equals(other.getEnum())) return false;
break;
case 2:
if (!getType()
.equals(other.getType())) return false;
break;
case 3:
if (!getValue()
.equals(other.getValue())) 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 (argTypeCase_) {
case 1:
hash = (37 * hash) + ENUM_FIELD_NUMBER;
hash = (53 * hash) + getEnum().hashCode();
break;
case 2:
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
break;
case 3:
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.FunctionArgument parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.FunctionArgument 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.FunctionArgument parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.FunctionArgument 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.FunctionArgument parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.FunctionArgument parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.FunctionArgument parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.FunctionArgument 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.FunctionArgument parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.FunctionArgument 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.FunctionArgument parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.FunctionArgument 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.FunctionArgument 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;
}
/**
*
* The argument of a function
*
*
* Protobuf type {@code substrait.FunctionArgument}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.FunctionArgument)
io.substrait.proto.FunctionArgumentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_FunctionArgument_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_FunctionArgument_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.FunctionArgument.class, io.substrait.proto.FunctionArgument.Builder.class);
}
// Construct using io.substrait.proto.FunctionArgument.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (typeBuilder_ != null) {
typeBuilder_.clear();
}
if (valueBuilder_ != null) {
valueBuilder_.clear();
}
argTypeCase_ = 0;
argType_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_FunctionArgument_descriptor;
}
@java.lang.Override
public io.substrait.proto.FunctionArgument getDefaultInstanceForType() {
return io.substrait.proto.FunctionArgument.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.FunctionArgument build() {
io.substrait.proto.FunctionArgument result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.FunctionArgument buildPartial() {
io.substrait.proto.FunctionArgument result = new io.substrait.proto.FunctionArgument(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.FunctionArgument result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(io.substrait.proto.FunctionArgument result) {
result.argTypeCase_ = argTypeCase_;
result.argType_ = this.argType_;
if (argTypeCase_ == 2 &&
typeBuilder_ != null) {
result.argType_ = typeBuilder_.build();
}
if (argTypeCase_ == 3 &&
valueBuilder_ != null) {
result.argType_ = valueBuilder_.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.FunctionArgument) {
return mergeFrom((io.substrait.proto.FunctionArgument)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.FunctionArgument other) {
if (other == io.substrait.proto.FunctionArgument.getDefaultInstance()) return this;
switch (other.getArgTypeCase()) {
case ENUM: {
argTypeCase_ = 1;
argType_ = other.argType_;
onChanged();
break;
}
case TYPE: {
mergeType(other.getType());
break;
}
case VALUE: {
mergeValue(other.getValue());
break;
}
case ARGTYPE_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();
argTypeCase_ = 1;
argType_ = s;
break;
} // case 10
case 18: {
input.readMessage(
getTypeFieldBuilder().getBuilder(),
extensionRegistry);
argTypeCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getValueFieldBuilder().getBuilder(),
extensionRegistry);
argTypeCase_ = 3;
break;
} // case 26
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 argTypeCase_ = 0;
private java.lang.Object argType_;
public ArgTypeCase
getArgTypeCase() {
return ArgTypeCase.forNumber(
argTypeCase_);
}
public Builder clearArgType() {
argTypeCase_ = 0;
argType_ = null;
onChanged();
return this;
}
private int bitField0_;
/**
* string enum = 1;
* @return Whether the enum field is set.
*/
@java.lang.Override
public boolean hasEnum() {
return argTypeCase_ == 1;
}
/**
* string enum = 1;
* @return The enum.
*/
@java.lang.Override
public java.lang.String getEnum() {
java.lang.Object ref = "";
if (argTypeCase_ == 1) {
ref = argType_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (argTypeCase_ == 1) {
argType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string enum = 1;
* @return The bytes for enum.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEnumBytes() {
java.lang.Object ref = "";
if (argTypeCase_ == 1) {
ref = argType_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (argTypeCase_ == 1) {
argType_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string enum = 1;
* @param value The enum to set.
* @return This builder for chaining.
*/
public Builder setEnum(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
argTypeCase_ = 1;
argType_ = value;
onChanged();
return this;
}
/**
* string enum = 1;
* @return This builder for chaining.
*/
public Builder clearEnum() {
if (argTypeCase_ == 1) {
argTypeCase_ = 0;
argType_ = null;
onChanged();
}
return this;
}
/**
* string enum = 1;
* @param value The bytes for enum to set.
* @return This builder for chaining.
*/
public Builder setEnumBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
argTypeCase_ = 1;
argType_ = value;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Type, io.substrait.proto.Type.Builder, io.substrait.proto.TypeOrBuilder> typeBuilder_;
/**
* .substrait.Type type = 2;
* @return Whether the type field is set.
*/
@java.lang.Override
public boolean hasType() {
return argTypeCase_ == 2;
}
/**
* .substrait.Type type = 2;
* @return The type.
*/
@java.lang.Override
public io.substrait.proto.Type getType() {
if (typeBuilder_ == null) {
if (argTypeCase_ == 2) {
return (io.substrait.proto.Type) argType_;
}
return io.substrait.proto.Type.getDefaultInstance();
} else {
if (argTypeCase_ == 2) {
return typeBuilder_.getMessage();
}
return io.substrait.proto.Type.getDefaultInstance();
}
}
/**
* .substrait.Type type = 2;
*/
public Builder setType(io.substrait.proto.Type value) {
if (typeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
argType_ = value;
onChanged();
} else {
typeBuilder_.setMessage(value);
}
argTypeCase_ = 2;
return this;
}
/**
* .substrait.Type type = 2;
*/
public Builder setType(
io.substrait.proto.Type.Builder builderForValue) {
if (typeBuilder_ == null) {
argType_ = builderForValue.build();
onChanged();
} else {
typeBuilder_.setMessage(builderForValue.build());
}
argTypeCase_ = 2;
return this;
}
/**
* .substrait.Type type = 2;
*/
public Builder mergeType(io.substrait.proto.Type value) {
if (typeBuilder_ == null) {
if (argTypeCase_ == 2 &&
argType_ != io.substrait.proto.Type.getDefaultInstance()) {
argType_ = io.substrait.proto.Type.newBuilder((io.substrait.proto.Type) argType_)
.mergeFrom(value).buildPartial();
} else {
argType_ = value;
}
onChanged();
} else {
if (argTypeCase_ == 2) {
typeBuilder_.mergeFrom(value);
} else {
typeBuilder_.setMessage(value);
}
}
argTypeCase_ = 2;
return this;
}
/**
* .substrait.Type type = 2;
*/
public Builder clearType() {
if (typeBuilder_ == null) {
if (argTypeCase_ == 2) {
argTypeCase_ = 0;
argType_ = null;
onChanged();
}
} else {
if (argTypeCase_ == 2) {
argTypeCase_ = 0;
argType_ = null;
}
typeBuilder_.clear();
}
return this;
}
/**
* .substrait.Type type = 2;
*/
public io.substrait.proto.Type.Builder getTypeBuilder() {
return getTypeFieldBuilder().getBuilder();
}
/**
* .substrait.Type type = 2;
*/
@java.lang.Override
public io.substrait.proto.TypeOrBuilder getTypeOrBuilder() {
if ((argTypeCase_ == 2) && (typeBuilder_ != null)) {
return typeBuilder_.getMessageOrBuilder();
} else {
if (argTypeCase_ == 2) {
return (io.substrait.proto.Type) argType_;
}
return io.substrait.proto.Type.getDefaultInstance();
}
}
/**
* .substrait.Type type = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Type, io.substrait.proto.Type.Builder, io.substrait.proto.TypeOrBuilder>
getTypeFieldBuilder() {
if (typeBuilder_ == null) {
if (!(argTypeCase_ == 2)) {
argType_ = io.substrait.proto.Type.getDefaultInstance();
}
typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Type, io.substrait.proto.Type.Builder, io.substrait.proto.TypeOrBuilder>(
(io.substrait.proto.Type) argType_,
getParentForChildren(),
isClean());
argType_ = null;
}
argTypeCase_ = 2;
onChanged();
return typeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> valueBuilder_;
/**
* .substrait.Expression value = 3;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return argTypeCase_ == 3;
}
/**
* .substrait.Expression value = 3;
* @return The value.
*/
@java.lang.Override
public io.substrait.proto.Expression getValue() {
if (valueBuilder_ == null) {
if (argTypeCase_ == 3) {
return (io.substrait.proto.Expression) argType_;
}
return io.substrait.proto.Expression.getDefaultInstance();
} else {
if (argTypeCase_ == 3) {
return valueBuilder_.getMessage();
}
return io.substrait.proto.Expression.getDefaultInstance();
}
}
/**
* .substrait.Expression value = 3;
*/
public Builder setValue(io.substrait.proto.Expression value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
argType_ = value;
onChanged();
} else {
valueBuilder_.setMessage(value);
}
argTypeCase_ = 3;
return this;
}
/**
* .substrait.Expression value = 3;
*/
public Builder setValue(
io.substrait.proto.Expression.Builder builderForValue) {
if (valueBuilder_ == null) {
argType_ = builderForValue.build();
onChanged();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
argTypeCase_ = 3;
return this;
}
/**
* .substrait.Expression value = 3;
*/
public Builder mergeValue(io.substrait.proto.Expression value) {
if (valueBuilder_ == null) {
if (argTypeCase_ == 3 &&
argType_ != io.substrait.proto.Expression.getDefaultInstance()) {
argType_ = io.substrait.proto.Expression.newBuilder((io.substrait.proto.Expression) argType_)
.mergeFrom(value).buildPartial();
} else {
argType_ = value;
}
onChanged();
} else {
if (argTypeCase_ == 3) {
valueBuilder_.mergeFrom(value);
} else {
valueBuilder_.setMessage(value);
}
}
argTypeCase_ = 3;
return this;
}
/**
* .substrait.Expression value = 3;
*/
public Builder clearValue() {
if (valueBuilder_ == null) {
if (argTypeCase_ == 3) {
argTypeCase_ = 0;
argType_ = null;
onChanged();
}
} else {
if (argTypeCase_ == 3) {
argTypeCase_ = 0;
argType_ = null;
}
valueBuilder_.clear();
}
return this;
}
/**
* .substrait.Expression value = 3;
*/
public io.substrait.proto.Expression.Builder getValueBuilder() {
return getValueFieldBuilder().getBuilder();
}
/**
* .substrait.Expression value = 3;
*/
@java.lang.Override
public io.substrait.proto.ExpressionOrBuilder getValueOrBuilder() {
if ((argTypeCase_ == 3) && (valueBuilder_ != null)) {
return valueBuilder_.getMessageOrBuilder();
} else {
if (argTypeCase_ == 3) {
return (io.substrait.proto.Expression) argType_;
}
return io.substrait.proto.Expression.getDefaultInstance();
}
}
/**
* .substrait.Expression value = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
if (!(argTypeCase_ == 3)) {
argType_ = io.substrait.proto.Expression.getDefaultInstance();
}
valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>(
(io.substrait.proto.Expression) argType_,
getParentForChildren(),
isClean());
argType_ = null;
}
argTypeCase_ = 3;
onChanged();
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.FunctionArgument)
}
// @@protoc_insertion_point(class_scope:substrait.FunctionArgument)
private static final io.substrait.proto.FunctionArgument DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.FunctionArgument();
}
public static io.substrait.proto.FunctionArgument getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FunctionArgument 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.FunctionArgument getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy