All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.substrait.proto.Expression Maven / Gradle / Ivy

Go to download

Create a well-defined, cross-language specification for data compute operations

There is a newer version: 0.46.1
Show newest version
// 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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_; /** *
       * The returned Expression if no IfClauses are satisified
       * 
* * .substrait.Expression else = 2; * @return Whether the else field is set. */ public boolean hasElse() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * The returned Expression if no IfClauses are satisified
       * 
* * .substrait.Expression else = 2; * @return The else. */ public io.substrait.proto.Expression getElse() { if (elseBuilder_ == null) { return else_ == null ? io.substrait.proto.Expression.getDefaultInstance() : else_; } else { return elseBuilder_.getMessage(); } } /** *
       * The returned Expression if no IfClauses are satisified
       * 
* * .substrait.Expression else = 2; */ public Builder setElse(io.substrait.proto.Expression value) { if (elseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } else_ = value; } else { elseBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The returned Expression if no IfClauses are satisified
       * 
* * .substrait.Expression else = 2; */ public Builder setElse( io.substrait.proto.Expression.Builder builderForValue) { if (elseBuilder_ == null) { else_ = builderForValue.build(); } else { elseBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The returned Expression if no IfClauses are satisified
       * 
* * .substrait.Expression else = 2; */ public Builder mergeElse(io.substrait.proto.Expression value) { if (elseBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && else_ != null && else_ != io.substrait.proto.Expression.getDefaultInstance()) { getElseBuilder().mergeFrom(value); } else { else_ = value; } } else { elseBuilder_.mergeFrom(value); } if (else_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
       * The returned Expression if no IfClauses are satisified
       * 
* * .substrait.Expression else = 2; */ public Builder clearElse() { bitField0_ = (bitField0_ & ~0x00000002); else_ = null; if (elseBuilder_ != null) { elseBuilder_.dispose(); elseBuilder_ = null; } onChanged(); return this; } /** *
       * The returned Expression if no IfClauses are satisified
       * 
* * .substrait.Expression else = 2; */ public io.substrait.proto.Expression.Builder getElseBuilder() { bitField0_ |= 0x00000002; onChanged(); return getElseFieldBuilder().getBuilder(); } /** *
       * The returned Expression if no IfClauses are satisified
       * 
* * .substrait.Expression else = 2; */ public io.substrait.proto.ExpressionOrBuilder getElseOrBuilder() { if (elseBuilder_ != null) { return elseBuilder_.getMessageOrBuilder(); } else { return else_ == null ? io.substrait.proto.Expression.getDefaultInstance() : else_; } } /** *
       * The returned Expression if no IfClauses are satisified
       * 
* * .substrait.Expression else = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> getElseFieldBuilder() { if (elseBuilder_ == null) { elseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>( getElse(), getParentForChildren(), isClean()); else_ = null; } return elseBuilder_; } @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) } // @@protoc_insertion_point(class_scope:substrait.Expression.IfThen) private static final io.substrait.proto.Expression.IfThen DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.IfThen(); } public static io.substrait.proto.Expression.IfThen getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IfThen 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 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CastOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.Cast) com.google.protobuf.MessageOrBuilder { /** * .substrait.Type type = 1; * @return Whether the type field is set. */ boolean hasType(); /** * .substrait.Type type = 1; * @return The type. */ io.substrait.proto.Type getType(); /** * .substrait.Type type = 1; */ io.substrait.proto.TypeOrBuilder getTypeOrBuilder(); /** * .substrait.Expression input = 2; * @return Whether the input field is set. */ boolean hasInput(); /** * .substrait.Expression input = 2; * @return The input. */ io.substrait.proto.Expression getInput(); /** * .substrait.Expression input = 2; */ io.substrait.proto.ExpressionOrBuilder getInputOrBuilder(); /** * .substrait.Expression.Cast.FailureBehavior failure_behavior = 3; * @return The enum numeric value on the wire for failureBehavior. */ int getFailureBehaviorValue(); /** * .substrait.Expression.Cast.FailureBehavior failure_behavior = 3; * @return The failureBehavior. */ io.substrait.proto.Expression.Cast.FailureBehavior getFailureBehavior(); } /** * Protobuf type {@code substrait.Expression.Cast} */ public static final class Cast extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.Cast) CastOrBuilder { private static final long serialVersionUID = 0L; // Use Cast.newBuilder() to construct. private Cast(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Cast() { failureBehavior_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Cast(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Cast_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Cast_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.Cast.class, io.substrait.proto.Expression.Cast.Builder.class); } /** * Protobuf enum {@code substrait.Expression.Cast.FailureBehavior} */ public enum FailureBehavior implements com.google.protobuf.ProtocolMessageEnum { /** * FAILURE_BEHAVIOR_UNSPECIFIED = 0; */ FAILURE_BEHAVIOR_UNSPECIFIED(0), /** * FAILURE_BEHAVIOR_RETURN_NULL = 1; */ FAILURE_BEHAVIOR_RETURN_NULL(1), /** * FAILURE_BEHAVIOR_THROW_EXCEPTION = 2; */ FAILURE_BEHAVIOR_THROW_EXCEPTION(2), UNRECOGNIZED(-1), ; /** * FAILURE_BEHAVIOR_UNSPECIFIED = 0; */ public static final int FAILURE_BEHAVIOR_UNSPECIFIED_VALUE = 0; /** * FAILURE_BEHAVIOR_RETURN_NULL = 1; */ public static final int FAILURE_BEHAVIOR_RETURN_NULL_VALUE = 1; /** * FAILURE_BEHAVIOR_THROW_EXCEPTION = 2; */ public static final int FAILURE_BEHAVIOR_THROW_EXCEPTION_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 FailureBehavior 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 FailureBehavior forNumber(int value) { switch (value) { case 0: return FAILURE_BEHAVIOR_UNSPECIFIED; case 1: return FAILURE_BEHAVIOR_RETURN_NULL; case 2: return FAILURE_BEHAVIOR_THROW_EXCEPTION; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< FailureBehavior> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public FailureBehavior findValueByNumber(int number) { return FailureBehavior.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.Cast.getDescriptor().getEnumTypes().get(0); } private static final FailureBehavior[] VALUES = values(); public static FailureBehavior 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 FailureBehavior(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:substrait.Expression.Cast.FailureBehavior) } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private io.substrait.proto.Type type_; /** * .substrait.Type type = 1; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * .substrait.Type type = 1; * @return The type. */ @java.lang.Override public io.substrait.proto.Type getType() { return type_ == null ? io.substrait.proto.Type.getDefaultInstance() : type_; } /** * .substrait.Type type = 1; */ @java.lang.Override public io.substrait.proto.TypeOrBuilder getTypeOrBuilder() { return type_ == null ? io.substrait.proto.Type.getDefaultInstance() : type_; } public static final int INPUT_FIELD_NUMBER = 2; private io.substrait.proto.Expression input_; /** * .substrait.Expression input = 2; * @return Whether the input field is set. */ @java.lang.Override public boolean hasInput() { return ((bitField0_ & 0x00000002) != 0); } /** * .substrait.Expression input = 2; * @return The input. */ @java.lang.Override public io.substrait.proto.Expression getInput() { return input_ == null ? io.substrait.proto.Expression.getDefaultInstance() : input_; } /** * .substrait.Expression input = 2; */ @java.lang.Override public io.substrait.proto.ExpressionOrBuilder getInputOrBuilder() { return input_ == null ? io.substrait.proto.Expression.getDefaultInstance() : input_; } public static final int FAILURE_BEHAVIOR_FIELD_NUMBER = 3; private int failureBehavior_ = 0; /** * .substrait.Expression.Cast.FailureBehavior failure_behavior = 3; * @return The enum numeric value on the wire for failureBehavior. */ @java.lang.Override public int getFailureBehaviorValue() { return failureBehavior_; } /** * .substrait.Expression.Cast.FailureBehavior failure_behavior = 3; * @return The failureBehavior. */ @java.lang.Override public io.substrait.proto.Expression.Cast.FailureBehavior getFailureBehavior() { io.substrait.proto.Expression.Cast.FailureBehavior result = io.substrait.proto.Expression.Cast.FailureBehavior.forNumber(failureBehavior_); return result == null ? io.substrait.proto.Expression.Cast.FailureBehavior.UNRECOGNIZED : result; } 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, getType()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getInput()); } if (failureBehavior_ != io.substrait.proto.Expression.Cast.FailureBehavior.FAILURE_BEHAVIOR_UNSPECIFIED.getNumber()) { output.writeEnum(3, failureBehavior_); } 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, getType()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getInput()); } if (failureBehavior_ != io.substrait.proto.Expression.Cast.FailureBehavior.FAILURE_BEHAVIOR_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, failureBehavior_); } 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.Cast)) { return super.equals(obj); } io.substrait.proto.Expression.Cast other = (io.substrait.proto.Expression.Cast) obj; if (hasType() != other.hasType()) return false; if (hasType()) { if (!getType() .equals(other.getType())) return false; } if (hasInput() != other.hasInput()) return false; if (hasInput()) { if (!getInput() .equals(other.getInput())) return false; } if (failureBehavior_ != other.failureBehavior_) 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 (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (hasInput()) { hash = (37 * hash) + INPUT_FIELD_NUMBER; hash = (53 * hash) + getInput().hashCode(); } hash = (37 * hash) + FAILURE_BEHAVIOR_FIELD_NUMBER; hash = (53 * hash) + failureBehavior_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Expression.Cast parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.Cast 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.Cast parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.Cast 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.Cast parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.Cast parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.Cast parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.Cast 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.Cast parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.Cast 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.Cast parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.Cast 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.Cast 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.Cast} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.Cast) io.substrait.proto.Expression.CastOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Cast_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Cast_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.Cast.class, io.substrait.proto.Expression.Cast.Builder.class); } // Construct using io.substrait.proto.Expression.Cast.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTypeFieldBuilder(); getInputFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } input_ = null; if (inputBuilder_ != null) { inputBuilder_.dispose(); inputBuilder_ = null; } failureBehavior_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Cast_descriptor; } @java.lang.Override public io.substrait.proto.Expression.Cast getDefaultInstanceForType() { return io.substrait.proto.Expression.Cast.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.Cast build() { io.substrait.proto.Expression.Cast result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.Cast buildPartial() { io.substrait.proto.Expression.Cast result = new io.substrait.proto.Expression.Cast(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.substrait.proto.Expression.Cast result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.input_ = inputBuilder_ == null ? input_ : inputBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.failureBehavior_ = failureBehavior_; } 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.Cast) { return mergeFrom((io.substrait.proto.Expression.Cast)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.Cast other) { if (other == io.substrait.proto.Expression.Cast.getDefaultInstance()) return this; if (other.hasType()) { mergeType(other.getType()); } if (other.hasInput()) { mergeInput(other.getInput()); } if (other.failureBehavior_ != 0) { setFailureBehaviorValue(other.getFailureBehaviorValue()); } 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( getTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getInputFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 24: { failureBehavior_ = input.readEnum(); 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 io.substrait.proto.Type type_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Type, io.substrait.proto.Type.Builder, io.substrait.proto.TypeOrBuilder> typeBuilder_; /** * .substrait.Type type = 1; * @return Whether the type field is set. */ public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * .substrait.Type type = 1; * @return The type. */ public io.substrait.proto.Type getType() { if (typeBuilder_ == null) { return type_ == null ? io.substrait.proto.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** * .substrait.Type type = 1; */ public Builder setType(io.substrait.proto.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; } else { typeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .substrait.Type type = 1; */ public Builder setType( io.substrait.proto.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); } else { typeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .substrait.Type type = 1; */ public Builder mergeType(io.substrait.proto.Type value) { if (typeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && type_ != null && type_ != io.substrait.proto.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; } } else { typeBuilder_.mergeFrom(value); } if (type_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .substrait.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } onChanged(); return this; } /** * .substrait.Type type = 1; */ public io.substrait.proto.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTypeFieldBuilder().getBuilder(); } /** * .substrait.Type type = 1; */ public io.substrait.proto.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? io.substrait.proto.Type.getDefaultInstance() : type_; } } /** * .substrait.Type type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Type, io.substrait.proto.Type.Builder, io.substrait.proto.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Type, io.substrait.proto.Type.Builder, io.substrait.proto.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private io.substrait.proto.Expression input_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> inputBuilder_; /** * .substrait.Expression input = 2; * @return Whether the input field is set. */ public boolean hasInput() { return ((bitField0_ & 0x00000002) != 0); } /** * .substrait.Expression input = 2; * @return The input. */ public io.substrait.proto.Expression getInput() { if (inputBuilder_ == null) { return input_ == null ? io.substrait.proto.Expression.getDefaultInstance() : input_; } else { return inputBuilder_.getMessage(); } } /** * .substrait.Expression input = 2; */ public Builder setInput(io.substrait.proto.Expression value) { if (inputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } input_ = value; } else { inputBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .substrait.Expression input = 2; */ public Builder setInput( io.substrait.proto.Expression.Builder builderForValue) { if (inputBuilder_ == null) { input_ = builderForValue.build(); } else { inputBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .substrait.Expression input = 2; */ public Builder mergeInput(io.substrait.proto.Expression value) { if (inputBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && input_ != null && input_ != io.substrait.proto.Expression.getDefaultInstance()) { getInputBuilder().mergeFrom(value); } else { input_ = value; } } else { inputBuilder_.mergeFrom(value); } if (input_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .substrait.Expression input = 2; */ public Builder clearInput() { bitField0_ = (bitField0_ & ~0x00000002); input_ = null; if (inputBuilder_ != null) { inputBuilder_.dispose(); inputBuilder_ = null; } onChanged(); return this; } /** * .substrait.Expression input = 2; */ public io.substrait.proto.Expression.Builder getInputBuilder() { bitField0_ |= 0x00000002; onChanged(); return getInputFieldBuilder().getBuilder(); } /** * .substrait.Expression input = 2; */ public io.substrait.proto.ExpressionOrBuilder getInputOrBuilder() { if (inputBuilder_ != null) { return inputBuilder_.getMessageOrBuilder(); } else { return input_ == null ? io.substrait.proto.Expression.getDefaultInstance() : input_; } } /** * .substrait.Expression input = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> getInputFieldBuilder() { if (inputBuilder_ == null) { inputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>( getInput(), getParentForChildren(), isClean()); input_ = null; } return inputBuilder_; } private int failureBehavior_ = 0; /** * .substrait.Expression.Cast.FailureBehavior failure_behavior = 3; * @return The enum numeric value on the wire for failureBehavior. */ @java.lang.Override public int getFailureBehaviorValue() { return failureBehavior_; } /** * .substrait.Expression.Cast.FailureBehavior failure_behavior = 3; * @param value The enum numeric value on the wire for failureBehavior to set. * @return This builder for chaining. */ public Builder setFailureBehaviorValue(int value) { failureBehavior_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * .substrait.Expression.Cast.FailureBehavior failure_behavior = 3; * @return The failureBehavior. */ @java.lang.Override public io.substrait.proto.Expression.Cast.FailureBehavior getFailureBehavior() { io.substrait.proto.Expression.Cast.FailureBehavior result = io.substrait.proto.Expression.Cast.FailureBehavior.forNumber(failureBehavior_); return result == null ? io.substrait.proto.Expression.Cast.FailureBehavior.UNRECOGNIZED : result; } /** * .substrait.Expression.Cast.FailureBehavior failure_behavior = 3; * @param value The failureBehavior to set. * @return This builder for chaining. */ public Builder setFailureBehavior(io.substrait.proto.Expression.Cast.FailureBehavior value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; failureBehavior_ = value.getNumber(); onChanged(); return this; } /** * .substrait.Expression.Cast.FailureBehavior failure_behavior = 3; * @return This builder for chaining. */ public Builder clearFailureBehavior() { bitField0_ = (bitField0_ & ~0x00000004); failureBehavior_ = 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.Cast) } // @@protoc_insertion_point(class_scope:substrait.Expression.Cast) private static final io.substrait.proto.Expression.Cast DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.Cast(); } public static io.substrait.proto.Expression.Cast getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Cast 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.Cast getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SwitchExpressionOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.SwitchExpression) com.google.protobuf.MessageOrBuilder { /** * .substrait.Expression match = 3; * @return Whether the match field is set. */ boolean hasMatch(); /** * .substrait.Expression match = 3; * @return The match. */ io.substrait.proto.Expression getMatch(); /** * .substrait.Expression match = 3; */ io.substrait.proto.ExpressionOrBuilder getMatchOrBuilder(); /** * repeated .substrait.Expression.SwitchExpression.IfValue ifs = 1; */ java.util.List getIfsList(); /** * repeated .substrait.Expression.SwitchExpression.IfValue ifs = 1; */ io.substrait.proto.Expression.SwitchExpression.IfValue getIfs(int index); /** * repeated .substrait.Expression.SwitchExpression.IfValue ifs = 1; */ int getIfsCount(); /** * repeated .substrait.Expression.SwitchExpression.IfValue ifs = 1; */ java.util.List getIfsOrBuilderList(); /** * repeated .substrait.Expression.SwitchExpression.IfValue ifs = 1; */ io.substrait.proto.Expression.SwitchExpression.IfValueOrBuilder getIfsOrBuilder( int index); /** * .substrait.Expression else = 2; * @return Whether the else field is set. */ boolean hasElse(); /** * .substrait.Expression else = 2; * @return The else. */ io.substrait.proto.Expression getElse(); /** * .substrait.Expression else = 2; */ io.substrait.proto.ExpressionOrBuilder getElseOrBuilder(); } /** * Protobuf type {@code substrait.Expression.SwitchExpression} */ public static final class SwitchExpression extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.SwitchExpression) SwitchExpressionOrBuilder { private static final long serialVersionUID = 0L; // Use SwitchExpression.newBuilder() to construct. private SwitchExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SwitchExpression() { ifs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SwitchExpression(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_SwitchExpression_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_SwitchExpression_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.SwitchExpression.class, io.substrait.proto.Expression.SwitchExpression.Builder.class); } public interface IfValueOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.SwitchExpression.IfValue) com.google.protobuf.MessageOrBuilder { /** * .substrait.Expression.Literal if = 1; * @return Whether the if field is set. */ boolean hasIf(); /** * .substrait.Expression.Literal if = 1; * @return The if. */ io.substrait.proto.Expression.Literal getIf(); /** * .substrait.Expression.Literal if = 1; */ io.substrait.proto.Expression.LiteralOrBuilder 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.SwitchExpression.IfValue} */ public static final class IfValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.SwitchExpression.IfValue) IfValueOrBuilder { private static final long serialVersionUID = 0L; // Use IfValue.newBuilder() to construct. private IfValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IfValue() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new IfValue(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_SwitchExpression_IfValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_SwitchExpression_IfValue_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.SwitchExpression.IfValue.class, io.substrait.proto.Expression.SwitchExpression.IfValue.Builder.class); } private int bitField0_; public static final int IF_FIELD_NUMBER = 1; private io.substrait.proto.Expression.Literal if_; /** * .substrait.Expression.Literal if = 1; * @return Whether the if field is set. */ @java.lang.Override public boolean hasIf() { return ((bitField0_ & 0x00000001) != 0); } /** * .substrait.Expression.Literal if = 1; * @return The if. */ @java.lang.Override public io.substrait.proto.Expression.Literal getIf() { return if_ == null ? io.substrait.proto.Expression.Literal.getDefaultInstance() : if_; } /** * .substrait.Expression.Literal if = 1; */ @java.lang.Override public io.substrait.proto.Expression.LiteralOrBuilder getIfOrBuilder() { return if_ == null ? io.substrait.proto.Expression.Literal.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.SwitchExpression.IfValue)) { return super.equals(obj); } io.substrait.proto.Expression.SwitchExpression.IfValue other = (io.substrait.proto.Expression.SwitchExpression.IfValue) 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.SwitchExpression.IfValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.SwitchExpression.IfValue 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.SwitchExpression.IfValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.SwitchExpression.IfValue 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.SwitchExpression.IfValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.SwitchExpression.IfValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.SwitchExpression.IfValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.SwitchExpression.IfValue 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.SwitchExpression.IfValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.SwitchExpression.IfValue 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.SwitchExpression.IfValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.SwitchExpression.IfValue 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.SwitchExpression.IfValue 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.SwitchExpression.IfValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.SwitchExpression.IfValue) io.substrait.proto.Expression.SwitchExpression.IfValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_SwitchExpression_IfValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_SwitchExpression_IfValue_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.SwitchExpression.IfValue.class, io.substrait.proto.Expression.SwitchExpression.IfValue.Builder.class); } // Construct using io.substrait.proto.Expression.SwitchExpression.IfValue.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_SwitchExpression_IfValue_descriptor; } @java.lang.Override public io.substrait.proto.Expression.SwitchExpression.IfValue getDefaultInstanceForType() { return io.substrait.proto.Expression.SwitchExpression.IfValue.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.SwitchExpression.IfValue build() { io.substrait.proto.Expression.SwitchExpression.IfValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.SwitchExpression.IfValue buildPartial() { io.substrait.proto.Expression.SwitchExpression.IfValue result = new io.substrait.proto.Expression.SwitchExpression.IfValue(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.substrait.proto.Expression.SwitchExpression.IfValue 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.SwitchExpression.IfValue) { return mergeFrom((io.substrait.proto.Expression.SwitchExpression.IfValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.SwitchExpression.IfValue other) { if (other == io.substrait.proto.Expression.SwitchExpression.IfValue.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.Literal if_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Literal, io.substrait.proto.Expression.Literal.Builder, io.substrait.proto.Expression.LiteralOrBuilder> ifBuilder_; /** * .substrait.Expression.Literal if = 1; * @return Whether the if field is set. */ public boolean hasIf() { return ((bitField0_ & 0x00000001) != 0); } /** * .substrait.Expression.Literal if = 1; * @return The if. */ public io.substrait.proto.Expression.Literal getIf() { if (ifBuilder_ == null) { return if_ == null ? io.substrait.proto.Expression.Literal.getDefaultInstance() : if_; } else { return ifBuilder_.getMessage(); } } /** * .substrait.Expression.Literal if = 1; */ public Builder setIf(io.substrait.proto.Expression.Literal value) { if (ifBuilder_ == null) { if (value == null) { throw new NullPointerException(); } if_ = value; } else { ifBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .substrait.Expression.Literal if = 1; */ public Builder setIf( io.substrait.proto.Expression.Literal.Builder builderForValue) { if (ifBuilder_ == null) { if_ = builderForValue.build(); } else { ifBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .substrait.Expression.Literal if = 1; */ public Builder mergeIf(io.substrait.proto.Expression.Literal value) { if (ifBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && if_ != null && if_ != io.substrait.proto.Expression.Literal.getDefaultInstance()) { getIfBuilder().mergeFrom(value); } else { if_ = value; } } else { ifBuilder_.mergeFrom(value); } if (if_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .substrait.Expression.Literal if = 1; */ public Builder clearIf() { bitField0_ = (bitField0_ & ~0x00000001); if_ = null; if (ifBuilder_ != null) { ifBuilder_.dispose(); ifBuilder_ = null; } onChanged(); return this; } /** * .substrait.Expression.Literal if = 1; */ public io.substrait.proto.Expression.Literal.Builder getIfBuilder() { bitField0_ |= 0x00000001; onChanged(); return getIfFieldBuilder().getBuilder(); } /** * .substrait.Expression.Literal if = 1; */ public io.substrait.proto.Expression.LiteralOrBuilder getIfOrBuilder() { if (ifBuilder_ != null) { return ifBuilder_.getMessageOrBuilder(); } else { return if_ == null ? io.substrait.proto.Expression.Literal.getDefaultInstance() : if_; } } /** * .substrait.Expression.Literal if = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Literal, io.substrait.proto.Expression.Literal.Builder, io.substrait.proto.Expression.LiteralOrBuilder> getIfFieldBuilder() { if (ifBuilder_ == null) { ifBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Literal, io.substrait.proto.Expression.Literal.Builder, io.substrait.proto.Expression.LiteralOrBuilder>( 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.SwitchExpression.IfValue) } // @@protoc_insertion_point(class_scope:substrait.Expression.SwitchExpression.IfValue) private static final io.substrait.proto.Expression.SwitchExpression.IfValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.SwitchExpression.IfValue(); } public static io.substrait.proto.Expression.SwitchExpression.IfValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IfValue 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.SwitchExpression.IfValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int MATCH_FIELD_NUMBER = 3; private io.substrait.proto.Expression match_; /** * .substrait.Expression match = 3; * @return Whether the match field is set. */ @java.lang.Override public boolean hasMatch() { return ((bitField0_ & 0x00000001) != 0); } /** * .substrait.Expression match = 3; * @return The match. */ @java.lang.Override public io.substrait.proto.Expression getMatch() { return match_ == null ? io.substrait.proto.Expression.getDefaultInstance() : match_; } /** * .substrait.Expression match = 3; */ @java.lang.Override public io.substrait.proto.ExpressionOrBuilder getMatchOrBuilder() { return match_ == null ? io.substrait.proto.Expression.getDefaultInstance() : match_; } public static final int IFS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List ifs_; /** * repeated .substrait.Expression.SwitchExpression.IfValue ifs = 1; */ @java.lang.Override public java.util.List getIfsList() { return ifs_; } /** * repeated .substrait.Expression.SwitchExpression.IfValue ifs = 1; */ @java.lang.Override public java.util.List getIfsOrBuilderList() { return ifs_; } /** * repeated .substrait.Expression.SwitchExpression.IfValue ifs = 1; */ @java.lang.Override public int getIfsCount() { return ifs_.size(); } /** * repeated .substrait.Expression.SwitchExpression.IfValue ifs = 1; */ @java.lang.Override public io.substrait.proto.Expression.SwitchExpression.IfValue getIfs(int index) { return ifs_.get(index); } /** * repeated .substrait.Expression.SwitchExpression.IfValue ifs = 1; */ @java.lang.Override public io.substrait.proto.Expression.SwitchExpression.IfValueOrBuilder getIfsOrBuilder( int index) { return ifs_.get(index); } public static final int ELSE_FIELD_NUMBER = 2; private io.substrait.proto.Expression else_; /** * .substrait.Expression else = 2; * @return Whether the else field is set. */ @java.lang.Override public boolean hasElse() { return ((bitField0_ & 0x00000002) != 0); } /** * .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_; } /** * .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_ & 0x00000002) != 0)) { output.writeMessage(2, getElse()); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getMatch()); } 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_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getElse()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getMatch()); } 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.SwitchExpression)) { return super.equals(obj); } io.substrait.proto.Expression.SwitchExpression other = (io.substrait.proto.Expression.SwitchExpression) obj; if (hasMatch() != other.hasMatch()) return false; if (hasMatch()) { if (!getMatch() .equals(other.getMatch())) return false; } 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 (hasMatch()) { hash = (37 * hash) + MATCH_FIELD_NUMBER; hash = (53 * hash) + getMatch().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.SwitchExpression parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.SwitchExpression 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.SwitchExpression parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.SwitchExpression 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.SwitchExpression parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.SwitchExpression parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.SwitchExpression parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.SwitchExpression 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.SwitchExpression parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.SwitchExpression 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.SwitchExpression parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.SwitchExpression 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.SwitchExpression 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.SwitchExpression} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.SwitchExpression) io.substrait.proto.Expression.SwitchExpressionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_SwitchExpression_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_SwitchExpression_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.SwitchExpression.class, io.substrait.proto.Expression.SwitchExpression.Builder.class); } // Construct using io.substrait.proto.Expression.SwitchExpression.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMatchFieldBuilder(); getIfsFieldBuilder(); getElseFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; match_ = null; if (matchBuilder_ != null) { matchBuilder_.dispose(); matchBuilder_ = null; } if (ifsBuilder_ == null) { ifs_ = java.util.Collections.emptyList(); } else { ifs_ = null; ifsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); 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_SwitchExpression_descriptor; } @java.lang.Override public io.substrait.proto.Expression.SwitchExpression getDefaultInstanceForType() { return io.substrait.proto.Expression.SwitchExpression.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.SwitchExpression build() { io.substrait.proto.Expression.SwitchExpression result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.SwitchExpression buildPartial() { io.substrait.proto.Expression.SwitchExpression result = new io.substrait.proto.Expression.SwitchExpression(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.substrait.proto.Expression.SwitchExpression result) { if (ifsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { ifs_ = java.util.Collections.unmodifiableList(ifs_); bitField0_ = (bitField0_ & ~0x00000002); } result.ifs_ = ifs_; } else { result.ifs_ = ifsBuilder_.build(); } } private void buildPartial0(io.substrait.proto.Expression.SwitchExpression result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.match_ = matchBuilder_ == null ? match_ : matchBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.else_ = elseBuilder_ == null ? else_ : elseBuilder_.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.SwitchExpression) { return mergeFrom((io.substrait.proto.Expression.SwitchExpression)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.SwitchExpression other) { if (other == io.substrait.proto.Expression.SwitchExpression.getDefaultInstance()) return this; if (other.hasMatch()) { mergeMatch(other.getMatch()); } if (ifsBuilder_ == null) { if (!other.ifs_.isEmpty()) { if (ifs_.isEmpty()) { ifs_ = other.ifs_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureIfsIsMutable(); ifs_.addAll(other.ifs_); } onChanged(); } } else { if (!other.ifs_.isEmpty()) { if (ifsBuilder_.isEmpty()) { ifsBuilder_.dispose(); ifsBuilder_ = null; ifs_ = other.ifs_; bitField0_ = (bitField0_ & ~0x00000002); 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.SwitchExpression.IfValue m = input.readMessage( io.substrait.proto.Expression.SwitchExpression.IfValue.parser(), extensionRegistry); if (ifsBuilder_ == null) { ensureIfsIsMutable(); ifs_.add(m); } else { ifsBuilder_.addMessage(m); } break; } // case 10 case 18: { input.readMessage( getElseFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 18 case 26: { input.readMessage( getMatchFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; 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 bitField0_; private io.substrait.proto.Expression match_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> matchBuilder_; /** * .substrait.Expression match = 3; * @return Whether the match field is set. */ public boolean hasMatch() { return ((bitField0_ & 0x00000001) != 0); } /** * .substrait.Expression match = 3; * @return The match. */ public io.substrait.proto.Expression getMatch() { if (matchBuilder_ == null) { return match_ == null ? io.substrait.proto.Expression.getDefaultInstance() : match_; } else { return matchBuilder_.getMessage(); } } /** * .substrait.Expression match = 3; */ public Builder setMatch(io.substrait.proto.Expression value) { if (matchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } match_ = value; } else { matchBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .substrait.Expression match = 3; */ public Builder setMatch( io.substrait.proto.Expression.Builder builderForValue) { if (matchBuilder_ == null) { match_ = builderForValue.build(); } else { matchBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .substrait.Expression match = 3; */ public Builder mergeMatch(io.substrait.proto.Expression value) { if (matchBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && match_ != null && match_ != io.substrait.proto.Expression.getDefaultInstance()) { getMatchBuilder().mergeFrom(value); } else { match_ = value; } } else { matchBuilder_.mergeFrom(value); } if (match_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .substrait.Expression match = 3; */ public Builder clearMatch() { bitField0_ = (bitField0_ & ~0x00000001); match_ = null; if (matchBuilder_ != null) { matchBuilder_.dispose(); matchBuilder_ = null; } onChanged(); return this; } /** * .substrait.Expression match = 3; */ public io.substrait.proto.Expression.Builder getMatchBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMatchFieldBuilder().getBuilder(); } /** * .substrait.Expression match = 3; */ public io.substrait.proto.ExpressionOrBuilder getMatchOrBuilder() { if (matchBuilder_ != null) { return matchBuilder_.getMessageOrBuilder(); } else { return match_ == null ? io.substrait.proto.Expression.getDefaultInstance() : match_; } } /** * .substrait.Expression match = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> getMatchFieldBuilder() { if (matchBuilder_ == null) { matchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>( getMatch(), getParentForChildren(), isClean()); match_ = null; } return matchBuilder_; } private java.util.List ifs_ = java.util.Collections.emptyList(); private void ensureIfsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { ifs_ = new java.util.ArrayList(ifs_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression.SwitchExpression.IfValue, io.substrait.proto.Expression.SwitchExpression.IfValue.Builder, io.substrait.proto.Expression.SwitchExpression.IfValueOrBuilder> ifsBuilder_; /** * repeated .substrait.Expression.SwitchExpression.IfValue ifs = 1; */ public java.util.List getIfsList() { if (ifsBuilder_ == null) { return java.util.Collections.unmodifiableList(ifs_); } else { return ifsBuilder_.getMessageList(); } } /** * repeated .substrait.Expression.SwitchExpression.IfValue ifs = 1; */ public int getIfsCount() { if (ifsBuilder_ == null) { return ifs_.size(); } else { return ifsBuilder_.getCount(); } } /** * repeated .substrait.Expression.SwitchExpression.IfValue ifs = 1; */ public io.substrait.proto.Expression.SwitchExpression.IfValue getIfs(int index) { if (ifsBuilder_ == null) { return ifs_.get(index); } else { return ifsBuilder_.getMessage(index); } } /** * repeated .substrait.Expression.SwitchExpression.IfValue ifs = 1; */ public Builder setIfs( int index, io.substrait.proto.Expression.SwitchExpression.IfValue value) { if (ifsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIfsIsMutable(); ifs_.set(index, value); onChanged(); } else { ifsBuilder_.setMessage(index, value); } return this; } /** * repeated .substrait.Expression.SwitchExpression.IfValue ifs = 1; */ public Builder setIfs( int index, io.substrait.proto.Expression.SwitchExpression.IfValue.Builder builderForValue) { if (ifsBuilder_ == null) { ensureIfsIsMutable(); ifs_.set(index, builderForValue.build()); onChanged(); } else { ifsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .substrait.Expression.SwitchExpression.IfValue ifs = 1; */ public Builder addIfs(io.substrait.proto.Expression.SwitchExpression.IfValue value) { if (ifsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIfsIsMutable(); ifs_.add(value); onChanged(); } else { ifsBuilder_.addMessage(value); } return this; } /** * repeated .substrait.Expression.SwitchExpression.IfValue ifs = 1; */ public Builder addIfs( int index, io.substrait.proto.Expression.SwitchExpression.IfValue value) { if (ifsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIfsIsMutable(); ifs_.add(index, value); onChanged(); } else { ifsBuilder_.addMessage(index, value); } return this; } /** * repeated .substrait.Expression.SwitchExpression.IfValue ifs = 1; */ public Builder addIfs( io.substrait.proto.Expression.SwitchExpression.IfValue.Builder builderForValue) { if (ifsBuilder_ == null) { ensureIfsIsMutable(); ifs_.add(builderForValue.build()); onChanged(); } else { ifsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .substrait.Expression.SwitchExpression.IfValue ifs = 1; */ public Builder addIfs( int index, io.substrait.proto.Expression.SwitchExpression.IfValue.Builder builderForValue) { if (ifsBuilder_ == null) { ensureIfsIsMutable(); ifs_.add(index, builderForValue.build()); onChanged(); } else { ifsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .substrait.Expression.SwitchExpression.IfValue ifs = 1; */ public Builder addAllIfs( java.lang.Iterable values) { if (ifsBuilder_ == null) { ensureIfsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ifs_); onChanged(); } else { ifsBuilder_.addAllMessages(values); } return this; } /** * repeated .substrait.Expression.SwitchExpression.IfValue ifs = 1; */ public Builder clearIfs() { if (ifsBuilder_ == null) { ifs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { ifsBuilder_.clear(); } return this; } /** * repeated .substrait.Expression.SwitchExpression.IfValue ifs = 1; */ public Builder removeIfs(int index) { if (ifsBuilder_ == null) { ensureIfsIsMutable(); ifs_.remove(index); onChanged(); } else { ifsBuilder_.remove(index); } return this; } /** * repeated .substrait.Expression.SwitchExpression.IfValue ifs = 1; */ public io.substrait.proto.Expression.SwitchExpression.IfValue.Builder getIfsBuilder( int index) { return getIfsFieldBuilder().getBuilder(index); } /** * repeated .substrait.Expression.SwitchExpression.IfValue ifs = 1; */ public io.substrait.proto.Expression.SwitchExpression.IfValueOrBuilder getIfsOrBuilder( int index) { if (ifsBuilder_ == null) { return ifs_.get(index); } else { return ifsBuilder_.getMessageOrBuilder(index); } } /** * repeated .substrait.Expression.SwitchExpression.IfValue ifs = 1; */ public java.util.List getIfsOrBuilderList() { if (ifsBuilder_ != null) { return ifsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ifs_); } } /** * repeated .substrait.Expression.SwitchExpression.IfValue ifs = 1; */ public io.substrait.proto.Expression.SwitchExpression.IfValue.Builder addIfsBuilder() { return getIfsFieldBuilder().addBuilder( io.substrait.proto.Expression.SwitchExpression.IfValue.getDefaultInstance()); } /** * repeated .substrait.Expression.SwitchExpression.IfValue ifs = 1; */ public io.substrait.proto.Expression.SwitchExpression.IfValue.Builder addIfsBuilder( int index) { return getIfsFieldBuilder().addBuilder( index, io.substrait.proto.Expression.SwitchExpression.IfValue.getDefaultInstance()); } /** * repeated .substrait.Expression.SwitchExpression.IfValue ifs = 1; */ public java.util.List getIfsBuilderList() { return getIfsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression.SwitchExpression.IfValue, io.substrait.proto.Expression.SwitchExpression.IfValue.Builder, io.substrait.proto.Expression.SwitchExpression.IfValueOrBuilder> getIfsFieldBuilder() { if (ifsBuilder_ == null) { ifsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression.SwitchExpression.IfValue, io.substrait.proto.Expression.SwitchExpression.IfValue.Builder, io.substrait.proto.Expression.SwitchExpression.IfValueOrBuilder>( ifs_, ((bitField0_ & 0x00000002) != 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_; /** * .substrait.Expression else = 2; * @return Whether the else field is set. */ public boolean hasElse() { return ((bitField0_ & 0x00000004) != 0); } /** * .substrait.Expression else = 2; * @return The else. */ public io.substrait.proto.Expression getElse() { if (elseBuilder_ == null) { return else_ == null ? io.substrait.proto.Expression.getDefaultInstance() : else_; } else { return elseBuilder_.getMessage(); } } /** * .substrait.Expression else = 2; */ public Builder setElse(io.substrait.proto.Expression value) { if (elseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } else_ = value; } else { elseBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .substrait.Expression else = 2; */ public Builder setElse( io.substrait.proto.Expression.Builder builderForValue) { if (elseBuilder_ == null) { else_ = builderForValue.build(); } else { elseBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .substrait.Expression else = 2; */ public Builder mergeElse(io.substrait.proto.Expression value) { if (elseBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && else_ != null && else_ != io.substrait.proto.Expression.getDefaultInstance()) { getElseBuilder().mergeFrom(value); } else { else_ = value; } } else { elseBuilder_.mergeFrom(value); } if (else_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .substrait.Expression else = 2; */ public Builder clearElse() { bitField0_ = (bitField0_ & ~0x00000004); else_ = null; if (elseBuilder_ != null) { elseBuilder_.dispose(); elseBuilder_ = null; } onChanged(); return this; } /** * .substrait.Expression else = 2; */ public io.substrait.proto.Expression.Builder getElseBuilder() { bitField0_ |= 0x00000004; onChanged(); return getElseFieldBuilder().getBuilder(); } /** * .substrait.Expression else = 2; */ public io.substrait.proto.ExpressionOrBuilder getElseOrBuilder() { if (elseBuilder_ != null) { return elseBuilder_.getMessageOrBuilder(); } else { return else_ == null ? io.substrait.proto.Expression.getDefaultInstance() : else_; } } /** * .substrait.Expression else = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> getElseFieldBuilder() { if (elseBuilder_ == null) { elseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>( getElse(), getParentForChildren(), isClean()); else_ = null; } return elseBuilder_; } @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.SwitchExpression) } // @@protoc_insertion_point(class_scope:substrait.Expression.SwitchExpression) private static final io.substrait.proto.Expression.SwitchExpression DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.SwitchExpression(); } public static io.substrait.proto.Expression.SwitchExpression getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SwitchExpression 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.SwitchExpression getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SingularOrListOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.SingularOrList) com.google.protobuf.MessageOrBuilder { /** * .substrait.Expression value = 1; * @return Whether the value field is set. */ boolean hasValue(); /** * .substrait.Expression value = 1; * @return The value. */ io.substrait.proto.Expression getValue(); /** * .substrait.Expression value = 1; */ io.substrait.proto.ExpressionOrBuilder getValueOrBuilder(); /** * repeated .substrait.Expression options = 2; */ java.util.List getOptionsList(); /** * repeated .substrait.Expression options = 2; */ io.substrait.proto.Expression getOptions(int index); /** * repeated .substrait.Expression options = 2; */ int getOptionsCount(); /** * repeated .substrait.Expression options = 2; */ java.util.List getOptionsOrBuilderList(); /** * repeated .substrait.Expression options = 2; */ io.substrait.proto.ExpressionOrBuilder getOptionsOrBuilder( int index); } /** * Protobuf type {@code substrait.Expression.SingularOrList} */ public static final class SingularOrList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.SingularOrList) SingularOrListOrBuilder { private static final long serialVersionUID = 0L; // Use SingularOrList.newBuilder() to construct. private SingularOrList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SingularOrList() { options_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SingularOrList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_SingularOrList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_SingularOrList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.SingularOrList.class, io.substrait.proto.Expression.SingularOrList.Builder.class); } private int bitField0_; public static final int VALUE_FIELD_NUMBER = 1; private io.substrait.proto.Expression value_; /** * .substrait.Expression value = 1; * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return ((bitField0_ & 0x00000001) != 0); } /** * .substrait.Expression value = 1; * @return The value. */ @java.lang.Override public io.substrait.proto.Expression getValue() { return value_ == null ? io.substrait.proto.Expression.getDefaultInstance() : value_; } /** * .substrait.Expression value = 1; */ @java.lang.Override public io.substrait.proto.ExpressionOrBuilder getValueOrBuilder() { return value_ == null ? io.substrait.proto.Expression.getDefaultInstance() : value_; } public static final int OPTIONS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List options_; /** * repeated .substrait.Expression options = 2; */ @java.lang.Override public java.util.List getOptionsList() { return options_; } /** * repeated .substrait.Expression options = 2; */ @java.lang.Override public java.util.List getOptionsOrBuilderList() { return options_; } /** * repeated .substrait.Expression options = 2; */ @java.lang.Override public int getOptionsCount() { return options_.size(); } /** * repeated .substrait.Expression options = 2; */ @java.lang.Override public io.substrait.proto.Expression getOptions(int index) { return options_.get(index); } /** * repeated .substrait.Expression options = 2; */ @java.lang.Override public io.substrait.proto.ExpressionOrBuilder getOptionsOrBuilder( int index) { return options_.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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getValue()); } for (int i = 0; i < options_.size(); i++) { output.writeMessage(2, options_.get(i)); } 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, getValue()); } for (int i = 0; i < options_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, 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.SingularOrList)) { return super.equals(obj); } io.substrait.proto.Expression.SingularOrList other = (io.substrait.proto.Expression.SingularOrList) obj; if (hasValue() != other.hasValue()) return false; if (hasValue()) { if (!getValue() .equals(other.getValue())) return false; } if (!getOptionsList() .equals(other.getOptionsList())) 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 (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } if (getOptionsCount() > 0) { hash = (37 * hash) + OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getOptionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Expression.SingularOrList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.SingularOrList 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.SingularOrList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.SingularOrList 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.SingularOrList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.SingularOrList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.SingularOrList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.SingularOrList 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.SingularOrList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.SingularOrList 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.SingularOrList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.SingularOrList 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.SingularOrList 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.SingularOrList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.SingularOrList) io.substrait.proto.Expression.SingularOrListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_SingularOrList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_SingularOrList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.SingularOrList.class, io.substrait.proto.Expression.SingularOrList.Builder.class); } // Construct using io.substrait.proto.Expression.SingularOrList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getValueFieldBuilder(); getOptionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); valueBuilder_ = null; } if (optionsBuilder_ == null) { options_ = java.util.Collections.emptyList(); } else { options_ = null; optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_SingularOrList_descriptor; } @java.lang.Override public io.substrait.proto.Expression.SingularOrList getDefaultInstanceForType() { return io.substrait.proto.Expression.SingularOrList.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.SingularOrList build() { io.substrait.proto.Expression.SingularOrList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.SingularOrList buildPartial() { io.substrait.proto.Expression.SingularOrList result = new io.substrait.proto.Expression.SingularOrList(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.substrait.proto.Expression.SingularOrList result) { if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { options_ = java.util.Collections.unmodifiableList(options_); bitField0_ = (bitField0_ & ~0x00000002); } result.options_ = options_; } else { result.options_ = optionsBuilder_.build(); } } private void buildPartial0(io.substrait.proto.Expression.SingularOrList result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.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.SingularOrList) { return mergeFrom((io.substrait.proto.Expression.SingularOrList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.SingularOrList other) { if (other == io.substrait.proto.Expression.SingularOrList.getDefaultInstance()) return this; if (other.hasValue()) { mergeValue(other.getValue()); } if (optionsBuilder_ == null) { if (!other.options_.isEmpty()) { if (options_.isEmpty()) { options_ = other.options_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureOptionsIsMutable(); options_.addAll(other.options_); } onChanged(); } } else { if (!other.options_.isEmpty()) { if (optionsBuilder_.isEmpty()) { optionsBuilder_.dispose(); optionsBuilder_ = null; options_ = other.options_; bitField0_ = (bitField0_ & ~0x00000002); optionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOptionsFieldBuilder() : null; } else { optionsBuilder_.addAllMessages(other.options_); } } } 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( getValueFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { io.substrait.proto.Expression m = input.readMessage( io.substrait.proto.Expression.parser(), extensionRegistry); if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.add(m); } else { optionsBuilder_.addMessage(m); } 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 value_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> valueBuilder_; /** * .substrait.Expression value = 1; * @return Whether the value field is set. */ public boolean hasValue() { return ((bitField0_ & 0x00000001) != 0); } /** * .substrait.Expression value = 1; * @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 = 1; */ public Builder setValue(io.substrait.proto.Expression value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; } else { valueBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .substrait.Expression value = 1; */ public Builder setValue( io.substrait.proto.Expression.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); } else { valueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .substrait.Expression value = 1; */ public Builder mergeValue(io.substrait.proto.Expression value) { if (valueBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && value_ != null && value_ != io.substrait.proto.Expression.getDefaultInstance()) { getValueBuilder().mergeFrom(value); } else { value_ = value; } } else { valueBuilder_.mergeFrom(value); } if (value_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .substrait.Expression value = 1; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000001); value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); valueBuilder_ = null; } onChanged(); return this; } /** * .substrait.Expression value = 1; */ public io.substrait.proto.Expression.Builder getValueBuilder() { bitField0_ |= 0x00000001; onChanged(); return getValueFieldBuilder().getBuilder(); } /** * .substrait.Expression value = 1; */ 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 = 1; */ 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_; } private java.util.List options_ = java.util.Collections.emptyList(); private void ensureOptionsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { options_ = new java.util.ArrayList(options_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> optionsBuilder_; /** * repeated .substrait.Expression options = 2; */ public java.util.List getOptionsList() { if (optionsBuilder_ == null) { return java.util.Collections.unmodifiableList(options_); } else { return optionsBuilder_.getMessageList(); } } /** * repeated .substrait.Expression options = 2; */ public int getOptionsCount() { if (optionsBuilder_ == null) { return options_.size(); } else { return optionsBuilder_.getCount(); } } /** * repeated .substrait.Expression options = 2; */ public io.substrait.proto.Expression getOptions(int index) { if (optionsBuilder_ == null) { return options_.get(index); } else { return optionsBuilder_.getMessage(index); } } /** * repeated .substrait.Expression options = 2; */ public Builder setOptions( int index, io.substrait.proto.Expression value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOptionsIsMutable(); options_.set(index, value); onChanged(); } else { optionsBuilder_.setMessage(index, value); } return this; } /** * repeated .substrait.Expression options = 2; */ public Builder setOptions( int index, io.substrait.proto.Expression.Builder builderForValue) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.set(index, builderForValue.build()); onChanged(); } else { optionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .substrait.Expression options = 2; */ public Builder addOptions(io.substrait.proto.Expression value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOptionsIsMutable(); options_.add(value); onChanged(); } else { optionsBuilder_.addMessage(value); } return this; } /** * repeated .substrait.Expression options = 2; */ public Builder addOptions( int index, io.substrait.proto.Expression value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOptionsIsMutable(); options_.add(index, value); onChanged(); } else { optionsBuilder_.addMessage(index, value); } return this; } /** * repeated .substrait.Expression options = 2; */ public Builder addOptions( io.substrait.proto.Expression.Builder builderForValue) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.add(builderForValue.build()); onChanged(); } else { optionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .substrait.Expression options = 2; */ public Builder addOptions( int index, io.substrait.proto.Expression.Builder builderForValue) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.add(index, builderForValue.build()); onChanged(); } else { optionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .substrait.Expression options = 2; */ public Builder addAllOptions( java.lang.Iterable values) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, options_); onChanged(); } else { optionsBuilder_.addAllMessages(values); } return this; } /** * repeated .substrait.Expression options = 2; */ public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { optionsBuilder_.clear(); } return this; } /** * repeated .substrait.Expression options = 2; */ public Builder removeOptions(int index) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.remove(index); onChanged(); } else { optionsBuilder_.remove(index); } return this; } /** * repeated .substrait.Expression options = 2; */ public io.substrait.proto.Expression.Builder getOptionsBuilder( int index) { return getOptionsFieldBuilder().getBuilder(index); } /** * repeated .substrait.Expression options = 2; */ public io.substrait.proto.ExpressionOrBuilder getOptionsOrBuilder( int index) { if (optionsBuilder_ == null) { return options_.get(index); } else { return optionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .substrait.Expression options = 2; */ public java.util.List getOptionsOrBuilderList() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(options_); } } /** * repeated .substrait.Expression options = 2; */ public io.substrait.proto.Expression.Builder addOptionsBuilder() { return getOptionsFieldBuilder().addBuilder( io.substrait.proto.Expression.getDefaultInstance()); } /** * repeated .substrait.Expression options = 2; */ public io.substrait.proto.Expression.Builder addOptionsBuilder( int index) { return getOptionsFieldBuilder().addBuilder( index, io.substrait.proto.Expression.getDefaultInstance()); } /** * repeated .substrait.Expression options = 2; */ public java.util.List getOptionsBuilderList() { return getOptionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { optionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>( options_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); options_ = null; } return optionsBuilder_; } @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.SingularOrList) } // @@protoc_insertion_point(class_scope:substrait.Expression.SingularOrList) private static final io.substrait.proto.Expression.SingularOrList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.SingularOrList(); } public static io.substrait.proto.Expression.SingularOrList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SingularOrList 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.SingularOrList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MultiOrListOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.MultiOrList) com.google.protobuf.MessageOrBuilder { /** * repeated .substrait.Expression value = 1; */ java.util.List getValueList(); /** * repeated .substrait.Expression value = 1; */ io.substrait.proto.Expression getValue(int index); /** * repeated .substrait.Expression value = 1; */ int getValueCount(); /** * repeated .substrait.Expression value = 1; */ java.util.List getValueOrBuilderList(); /** * repeated .substrait.Expression value = 1; */ io.substrait.proto.ExpressionOrBuilder getValueOrBuilder( int index); /** * repeated .substrait.Expression.MultiOrList.Record options = 2; */ java.util.List getOptionsList(); /** * repeated .substrait.Expression.MultiOrList.Record options = 2; */ io.substrait.proto.Expression.MultiOrList.Record getOptions(int index); /** * repeated .substrait.Expression.MultiOrList.Record options = 2; */ int getOptionsCount(); /** * repeated .substrait.Expression.MultiOrList.Record options = 2; */ java.util.List getOptionsOrBuilderList(); /** * repeated .substrait.Expression.MultiOrList.Record options = 2; */ io.substrait.proto.Expression.MultiOrList.RecordOrBuilder getOptionsOrBuilder( int index); } /** * Protobuf type {@code substrait.Expression.MultiOrList} */ public static final class MultiOrList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.MultiOrList) MultiOrListOrBuilder { private static final long serialVersionUID = 0L; // Use MultiOrList.newBuilder() to construct. private MultiOrList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MultiOrList() { value_ = java.util.Collections.emptyList(); options_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MultiOrList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MultiOrList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MultiOrList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.MultiOrList.class, io.substrait.proto.Expression.MultiOrList.Builder.class); } public interface RecordOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.MultiOrList.Record) com.google.protobuf.MessageOrBuilder { /** * repeated .substrait.Expression fields = 1; */ java.util.List getFieldsList(); /** * repeated .substrait.Expression fields = 1; */ io.substrait.proto.Expression getFields(int index); /** * repeated .substrait.Expression fields = 1; */ int getFieldsCount(); /** * repeated .substrait.Expression fields = 1; */ java.util.List getFieldsOrBuilderList(); /** * repeated .substrait.Expression fields = 1; */ io.substrait.proto.ExpressionOrBuilder getFieldsOrBuilder( int index); } /** * Protobuf type {@code substrait.Expression.MultiOrList.Record} */ public static final class Record extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.MultiOrList.Record) RecordOrBuilder { private static final long serialVersionUID = 0L; // Use Record.newBuilder() to construct. private Record(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Record() { fields_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Record(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MultiOrList_Record_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MultiOrList_Record_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.MultiOrList.Record.class, io.substrait.proto.Expression.MultiOrList.Record.Builder.class); } public static final int FIELDS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List fields_; /** * repeated .substrait.Expression fields = 1; */ @java.lang.Override public java.util.List getFieldsList() { return fields_; } /** * repeated .substrait.Expression fields = 1; */ @java.lang.Override public java.util.List getFieldsOrBuilderList() { return fields_; } /** * repeated .substrait.Expression fields = 1; */ @java.lang.Override public int getFieldsCount() { return fields_.size(); } /** * repeated .substrait.Expression fields = 1; */ @java.lang.Override public io.substrait.proto.Expression getFields(int index) { return fields_.get(index); } /** * 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.MultiOrList.Record)) { return super.equals(obj); } io.substrait.proto.Expression.MultiOrList.Record other = (io.substrait.proto.Expression.MultiOrList.Record) 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.MultiOrList.Record parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MultiOrList.Record 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.MultiOrList.Record parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MultiOrList.Record 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.MultiOrList.Record parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MultiOrList.Record parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.MultiOrList.Record parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MultiOrList.Record 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.MultiOrList.Record parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MultiOrList.Record 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.MultiOrList.Record parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MultiOrList.Record 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.MultiOrList.Record 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.MultiOrList.Record} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.MultiOrList.Record) io.substrait.proto.Expression.MultiOrList.RecordOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MultiOrList_Record_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MultiOrList_Record_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.MultiOrList.Record.class, io.substrait.proto.Expression.MultiOrList.Record.Builder.class); } // Construct using io.substrait.proto.Expression.MultiOrList.Record.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_MultiOrList_Record_descriptor; } @java.lang.Override public io.substrait.proto.Expression.MultiOrList.Record getDefaultInstanceForType() { return io.substrait.proto.Expression.MultiOrList.Record.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.MultiOrList.Record build() { io.substrait.proto.Expression.MultiOrList.Record result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.MultiOrList.Record buildPartial() { io.substrait.proto.Expression.MultiOrList.Record result = new io.substrait.proto.Expression.MultiOrList.Record(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.substrait.proto.Expression.MultiOrList.Record 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.MultiOrList.Record 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.MultiOrList.Record) { return mergeFrom((io.substrait.proto.Expression.MultiOrList.Record)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.MultiOrList.Record other) { if (other == io.substrait.proto.Expression.MultiOrList.Record.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_; /** * repeated .substrait.Expression fields = 1; */ public java.util.List getFieldsList() { if (fieldsBuilder_ == null) { return java.util.Collections.unmodifiableList(fields_); } else { return fieldsBuilder_.getMessageList(); } } /** * repeated .substrait.Expression fields = 1; */ public int getFieldsCount() { if (fieldsBuilder_ == null) { return fields_.size(); } else { return fieldsBuilder_.getCount(); } } /** * 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); } } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * repeated .substrait.Expression fields = 1; */ public Builder addAllFields( java.lang.Iterable values) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, fields_); onChanged(); } else { fieldsBuilder_.addAllMessages(values); } return this; } /** * 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; } /** * repeated .substrait.Expression fields = 1; */ public Builder removeFields(int index) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.remove(index); onChanged(); } else { fieldsBuilder_.remove(index); } return this; } /** * repeated .substrait.Expression fields = 1; */ public io.substrait.proto.Expression.Builder getFieldsBuilder( int index) { return getFieldsFieldBuilder().getBuilder(index); } /** * 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); } } /** * repeated .substrait.Expression fields = 1; */ public java.util.List getFieldsOrBuilderList() { if (fieldsBuilder_ != null) { return fieldsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(fields_); } } /** * repeated .substrait.Expression fields = 1; */ public io.substrait.proto.Expression.Builder addFieldsBuilder() { return getFieldsFieldBuilder().addBuilder( io.substrait.proto.Expression.getDefaultInstance()); } /** * repeated .substrait.Expression fields = 1; */ public io.substrait.proto.Expression.Builder addFieldsBuilder( int index) { return getFieldsFieldBuilder().addBuilder( index, io.substrait.proto.Expression.getDefaultInstance()); } /** * 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.MultiOrList.Record) } // @@protoc_insertion_point(class_scope:substrait.Expression.MultiOrList.Record) private static final io.substrait.proto.Expression.MultiOrList.Record DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.MultiOrList.Record(); } public static io.substrait.proto.Expression.MultiOrList.Record getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Record 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.MultiOrList.Record getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int VALUE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List value_; /** * repeated .substrait.Expression value = 1; */ @java.lang.Override public java.util.List getValueList() { return value_; } /** * repeated .substrait.Expression value = 1; */ @java.lang.Override public java.util.List getValueOrBuilderList() { return value_; } /** * repeated .substrait.Expression value = 1; */ @java.lang.Override public int getValueCount() { return value_.size(); } /** * repeated .substrait.Expression value = 1; */ @java.lang.Override public io.substrait.proto.Expression getValue(int index) { return value_.get(index); } /** * repeated .substrait.Expression value = 1; */ @java.lang.Override public io.substrait.proto.ExpressionOrBuilder getValueOrBuilder( int index) { return value_.get(index); } public static final int OPTIONS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List options_; /** * repeated .substrait.Expression.MultiOrList.Record options = 2; */ @java.lang.Override public java.util.List getOptionsList() { return options_; } /** * repeated .substrait.Expression.MultiOrList.Record options = 2; */ @java.lang.Override public java.util.List getOptionsOrBuilderList() { return options_; } /** * repeated .substrait.Expression.MultiOrList.Record options = 2; */ @java.lang.Override public int getOptionsCount() { return options_.size(); } /** * repeated .substrait.Expression.MultiOrList.Record options = 2; */ @java.lang.Override public io.substrait.proto.Expression.MultiOrList.Record getOptions(int index) { return options_.get(index); } /** * repeated .substrait.Expression.MultiOrList.Record options = 2; */ @java.lang.Override public io.substrait.proto.Expression.MultiOrList.RecordOrBuilder getOptionsOrBuilder( int index) { return options_.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 < value_.size(); i++) { output.writeMessage(1, value_.get(i)); } for (int i = 0; i < options_.size(); i++) { output.writeMessage(2, options_.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 < value_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, value_.get(i)); } for (int i = 0; i < options_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, 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.MultiOrList)) { return super.equals(obj); } io.substrait.proto.Expression.MultiOrList other = (io.substrait.proto.Expression.MultiOrList) obj; if (!getValueList() .equals(other.getValueList())) return false; if (!getOptionsList() .equals(other.getOptionsList())) 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 (getValueCount() > 0) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValueList().hashCode(); } if (getOptionsCount() > 0) { hash = (37 * hash) + OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getOptionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Expression.MultiOrList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MultiOrList 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.MultiOrList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MultiOrList 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.MultiOrList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MultiOrList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.MultiOrList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MultiOrList 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.MultiOrList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MultiOrList 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.MultiOrList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MultiOrList 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.MultiOrList 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.MultiOrList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.MultiOrList) io.substrait.proto.Expression.MultiOrListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MultiOrList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MultiOrList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.MultiOrList.class, io.substrait.proto.Expression.MultiOrList.Builder.class); } // Construct using io.substrait.proto.Expression.MultiOrList.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (valueBuilder_ == null) { value_ = java.util.Collections.emptyList(); } else { value_ = null; valueBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (optionsBuilder_ == null) { options_ = java.util.Collections.emptyList(); } else { options_ = null; optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MultiOrList_descriptor; } @java.lang.Override public io.substrait.proto.Expression.MultiOrList getDefaultInstanceForType() { return io.substrait.proto.Expression.MultiOrList.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.MultiOrList build() { io.substrait.proto.Expression.MultiOrList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.MultiOrList buildPartial() { io.substrait.proto.Expression.MultiOrList result = new io.substrait.proto.Expression.MultiOrList(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.substrait.proto.Expression.MultiOrList result) { if (valueBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { value_ = java.util.Collections.unmodifiableList(value_); bitField0_ = (bitField0_ & ~0x00000001); } result.value_ = value_; } else { result.value_ = valueBuilder_.build(); } if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { options_ = java.util.Collections.unmodifiableList(options_); bitField0_ = (bitField0_ & ~0x00000002); } result.options_ = options_; } else { result.options_ = optionsBuilder_.build(); } } private void buildPartial0(io.substrait.proto.Expression.MultiOrList 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.MultiOrList) { return mergeFrom((io.substrait.proto.Expression.MultiOrList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.MultiOrList other) { if (other == io.substrait.proto.Expression.MultiOrList.getDefaultInstance()) return this; if (valueBuilder_ == null) { if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureValueIsMutable(); value_.addAll(other.value_); } onChanged(); } } else { if (!other.value_.isEmpty()) { if (valueBuilder_.isEmpty()) { valueBuilder_.dispose(); valueBuilder_ = null; value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000001); valueBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getValueFieldBuilder() : null; } else { valueBuilder_.addAllMessages(other.value_); } } } if (optionsBuilder_ == null) { if (!other.options_.isEmpty()) { if (options_.isEmpty()) { options_ = other.options_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureOptionsIsMutable(); options_.addAll(other.options_); } onChanged(); } } else { if (!other.options_.isEmpty()) { if (optionsBuilder_.isEmpty()) { optionsBuilder_.dispose(); optionsBuilder_ = null; options_ = other.options_; bitField0_ = (bitField0_ & ~0x00000002); optionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOptionsFieldBuilder() : null; } else { optionsBuilder_.addAllMessages(other.options_); } } } 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 (valueBuilder_ == null) { ensureValueIsMutable(); value_.add(m); } else { valueBuilder_.addMessage(m); } break; } // case 10 case 18: { io.substrait.proto.Expression.MultiOrList.Record m = input.readMessage( io.substrait.proto.Expression.MultiOrList.Record.parser(), extensionRegistry); if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.add(m); } else { optionsBuilder_.addMessage(m); } 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 value_ = java.util.Collections.emptyList(); private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { value_ = new java.util.ArrayList(value_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> valueBuilder_; /** * repeated .substrait.Expression value = 1; */ public java.util.List getValueList() { if (valueBuilder_ == null) { return java.util.Collections.unmodifiableList(value_); } else { return valueBuilder_.getMessageList(); } } /** * repeated .substrait.Expression value = 1; */ public int getValueCount() { if (valueBuilder_ == null) { return value_.size(); } else { return valueBuilder_.getCount(); } } /** * repeated .substrait.Expression value = 1; */ public io.substrait.proto.Expression getValue(int index) { if (valueBuilder_ == null) { return value_.get(index); } else { return valueBuilder_.getMessage(index); } } /** * repeated .substrait.Expression value = 1; */ public Builder setValue( int index, io.substrait.proto.Expression value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.set(index, value); onChanged(); } else { valueBuilder_.setMessage(index, value); } return this; } /** * repeated .substrait.Expression value = 1; */ public Builder setValue( int index, io.substrait.proto.Expression.Builder builderForValue) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.set(index, builderForValue.build()); onChanged(); } else { valueBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .substrait.Expression value = 1; */ public Builder addValue(io.substrait.proto.Expression value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(value); onChanged(); } else { valueBuilder_.addMessage(value); } return this; } /** * repeated .substrait.Expression value = 1; */ public Builder addValue( int index, io.substrait.proto.Expression value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(index, value); onChanged(); } else { valueBuilder_.addMessage(index, value); } return this; } /** * repeated .substrait.Expression value = 1; */ public Builder addValue( io.substrait.proto.Expression.Builder builderForValue) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.add(builderForValue.build()); onChanged(); } else { valueBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .substrait.Expression value = 1; */ public Builder addValue( int index, io.substrait.proto.Expression.Builder builderForValue) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.add(index, builderForValue.build()); onChanged(); } else { valueBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .substrait.Expression value = 1; */ public Builder addAllValue( java.lang.Iterable values) { if (valueBuilder_ == null) { ensureValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, value_); onChanged(); } else { valueBuilder_.addAllMessages(values); } return this; } /** * repeated .substrait.Expression value = 1; */ public Builder clearValue() { if (valueBuilder_ == null) { value_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { valueBuilder_.clear(); } return this; } /** * repeated .substrait.Expression value = 1; */ public Builder removeValue(int index) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.remove(index); onChanged(); } else { valueBuilder_.remove(index); } return this; } /** * repeated .substrait.Expression value = 1; */ public io.substrait.proto.Expression.Builder getValueBuilder( int index) { return getValueFieldBuilder().getBuilder(index); } /** * repeated .substrait.Expression value = 1; */ public io.substrait.proto.ExpressionOrBuilder getValueOrBuilder( int index) { if (valueBuilder_ == null) { return value_.get(index); } else { return valueBuilder_.getMessageOrBuilder(index); } } /** * repeated .substrait.Expression value = 1; */ public java.util.List getValueOrBuilderList() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(value_); } } /** * repeated .substrait.Expression value = 1; */ public io.substrait.proto.Expression.Builder addValueBuilder() { return getValueFieldBuilder().addBuilder( io.substrait.proto.Expression.getDefaultInstance()); } /** * repeated .substrait.Expression value = 1; */ public io.substrait.proto.Expression.Builder addValueBuilder( int index) { return getValueFieldBuilder().addBuilder( index, io.substrait.proto.Expression.getDefaultInstance()); } /** * repeated .substrait.Expression value = 1; */ public java.util.List getValueBuilderList() { return getValueFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>( value_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } private java.util.List options_ = java.util.Collections.emptyList(); private void ensureOptionsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { options_ = new java.util.ArrayList(options_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression.MultiOrList.Record, io.substrait.proto.Expression.MultiOrList.Record.Builder, io.substrait.proto.Expression.MultiOrList.RecordOrBuilder> optionsBuilder_; /** * repeated .substrait.Expression.MultiOrList.Record options = 2; */ public java.util.List getOptionsList() { if (optionsBuilder_ == null) { return java.util.Collections.unmodifiableList(options_); } else { return optionsBuilder_.getMessageList(); } } /** * repeated .substrait.Expression.MultiOrList.Record options = 2; */ public int getOptionsCount() { if (optionsBuilder_ == null) { return options_.size(); } else { return optionsBuilder_.getCount(); } } /** * repeated .substrait.Expression.MultiOrList.Record options = 2; */ public io.substrait.proto.Expression.MultiOrList.Record getOptions(int index) { if (optionsBuilder_ == null) { return options_.get(index); } else { return optionsBuilder_.getMessage(index); } } /** * repeated .substrait.Expression.MultiOrList.Record options = 2; */ public Builder setOptions( int index, io.substrait.proto.Expression.MultiOrList.Record value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOptionsIsMutable(); options_.set(index, value); onChanged(); } else { optionsBuilder_.setMessage(index, value); } return this; } /** * repeated .substrait.Expression.MultiOrList.Record options = 2; */ public Builder setOptions( int index, io.substrait.proto.Expression.MultiOrList.Record.Builder builderForValue) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.set(index, builderForValue.build()); onChanged(); } else { optionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .substrait.Expression.MultiOrList.Record options = 2; */ public Builder addOptions(io.substrait.proto.Expression.MultiOrList.Record value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOptionsIsMutable(); options_.add(value); onChanged(); } else { optionsBuilder_.addMessage(value); } return this; } /** * repeated .substrait.Expression.MultiOrList.Record options = 2; */ public Builder addOptions( int index, io.substrait.proto.Expression.MultiOrList.Record value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOptionsIsMutable(); options_.add(index, value); onChanged(); } else { optionsBuilder_.addMessage(index, value); } return this; } /** * repeated .substrait.Expression.MultiOrList.Record options = 2; */ public Builder addOptions( io.substrait.proto.Expression.MultiOrList.Record.Builder builderForValue) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.add(builderForValue.build()); onChanged(); } else { optionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .substrait.Expression.MultiOrList.Record options = 2; */ public Builder addOptions( int index, io.substrait.proto.Expression.MultiOrList.Record.Builder builderForValue) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.add(index, builderForValue.build()); onChanged(); } else { optionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .substrait.Expression.MultiOrList.Record options = 2; */ public Builder addAllOptions( java.lang.Iterable values) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, options_); onChanged(); } else { optionsBuilder_.addAllMessages(values); } return this; } /** * repeated .substrait.Expression.MultiOrList.Record options = 2; */ public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { optionsBuilder_.clear(); } return this; } /** * repeated .substrait.Expression.MultiOrList.Record options = 2; */ public Builder removeOptions(int index) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.remove(index); onChanged(); } else { optionsBuilder_.remove(index); } return this; } /** * repeated .substrait.Expression.MultiOrList.Record options = 2; */ public io.substrait.proto.Expression.MultiOrList.Record.Builder getOptionsBuilder( int index) { return getOptionsFieldBuilder().getBuilder(index); } /** * repeated .substrait.Expression.MultiOrList.Record options = 2; */ public io.substrait.proto.Expression.MultiOrList.RecordOrBuilder getOptionsOrBuilder( int index) { if (optionsBuilder_ == null) { return options_.get(index); } else { return optionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .substrait.Expression.MultiOrList.Record options = 2; */ public java.util.List getOptionsOrBuilderList() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(options_); } } /** * repeated .substrait.Expression.MultiOrList.Record options = 2; */ public io.substrait.proto.Expression.MultiOrList.Record.Builder addOptionsBuilder() { return getOptionsFieldBuilder().addBuilder( io.substrait.proto.Expression.MultiOrList.Record.getDefaultInstance()); } /** * repeated .substrait.Expression.MultiOrList.Record options = 2; */ public io.substrait.proto.Expression.MultiOrList.Record.Builder addOptionsBuilder( int index) { return getOptionsFieldBuilder().addBuilder( index, io.substrait.proto.Expression.MultiOrList.Record.getDefaultInstance()); } /** * repeated .substrait.Expression.MultiOrList.Record options = 2; */ public java.util.List getOptionsBuilderList() { return getOptionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression.MultiOrList.Record, io.substrait.proto.Expression.MultiOrList.Record.Builder, io.substrait.proto.Expression.MultiOrList.RecordOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { optionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression.MultiOrList.Record, io.substrait.proto.Expression.MultiOrList.Record.Builder, io.substrait.proto.Expression.MultiOrList.RecordOrBuilder>( options_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); options_ = null; } return optionsBuilder_; } @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.MultiOrList) } // @@protoc_insertion_point(class_scope:substrait.Expression.MultiOrList) private static final io.substrait.proto.Expression.MultiOrList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.MultiOrList(); } public static io.substrait.proto.Expression.MultiOrList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MultiOrList 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.MultiOrList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EmbeddedFunctionOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.EmbeddedFunction) com.google.protobuf.MessageOrBuilder { /** * repeated .substrait.Expression arguments = 1; */ java.util.List getArgumentsList(); /** * repeated .substrait.Expression arguments = 1; */ io.substrait.proto.Expression getArguments(int index); /** * repeated .substrait.Expression arguments = 1; */ int getArgumentsCount(); /** * repeated .substrait.Expression arguments = 1; */ java.util.List getArgumentsOrBuilderList(); /** * repeated .substrait.Expression arguments = 1; */ io.substrait.proto.ExpressionOrBuilder getArgumentsOrBuilder( int index); /** * .substrait.Type output_type = 2; * @return Whether the outputType field is set. */ boolean hasOutputType(); /** * .substrait.Type output_type = 2; * @return The outputType. */ io.substrait.proto.Type getOutputType(); /** * .substrait.Type output_type = 2; */ io.substrait.proto.TypeOrBuilder getOutputTypeOrBuilder(); /** * .substrait.Expression.EmbeddedFunction.PythonPickleFunction python_pickle_function = 3; * @return Whether the pythonPickleFunction field is set. */ boolean hasPythonPickleFunction(); /** * .substrait.Expression.EmbeddedFunction.PythonPickleFunction python_pickle_function = 3; * @return The pythonPickleFunction. */ io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction getPythonPickleFunction(); /** * .substrait.Expression.EmbeddedFunction.PythonPickleFunction python_pickle_function = 3; */ io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunctionOrBuilder getPythonPickleFunctionOrBuilder(); /** * .substrait.Expression.EmbeddedFunction.WebAssemblyFunction web_assembly_function = 4; * @return Whether the webAssemblyFunction field is set. */ boolean hasWebAssemblyFunction(); /** * .substrait.Expression.EmbeddedFunction.WebAssemblyFunction web_assembly_function = 4; * @return The webAssemblyFunction. */ io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction getWebAssemblyFunction(); /** * .substrait.Expression.EmbeddedFunction.WebAssemblyFunction web_assembly_function = 4; */ io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunctionOrBuilder getWebAssemblyFunctionOrBuilder(); io.substrait.proto.Expression.EmbeddedFunction.KindCase getKindCase(); } /** * Protobuf type {@code substrait.Expression.EmbeddedFunction} */ public static final class EmbeddedFunction extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.EmbeddedFunction) EmbeddedFunctionOrBuilder { private static final long serialVersionUID = 0L; // Use EmbeddedFunction.newBuilder() to construct. private EmbeddedFunction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EmbeddedFunction() { arguments_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EmbeddedFunction(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_EmbeddedFunction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_EmbeddedFunction_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.EmbeddedFunction.class, io.substrait.proto.Expression.EmbeddedFunction.Builder.class); } public interface PythonPickleFunctionOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.EmbeddedFunction.PythonPickleFunction) com.google.protobuf.MessageOrBuilder { /** * bytes function = 1; * @return The function. */ com.google.protobuf.ByteString getFunction(); /** * repeated string prerequisite = 2; * @return A list containing the prerequisite. */ java.util.List getPrerequisiteList(); /** * repeated string prerequisite = 2; * @return The count of prerequisite. */ int getPrerequisiteCount(); /** * repeated string prerequisite = 2; * @param index The index of the element to return. * @return The prerequisite at the given index. */ java.lang.String getPrerequisite(int index); /** * repeated string prerequisite = 2; * @param index The index of the value to return. * @return The bytes of the prerequisite at the given index. */ com.google.protobuf.ByteString getPrerequisiteBytes(int index); } /** * Protobuf type {@code substrait.Expression.EmbeddedFunction.PythonPickleFunction} */ public static final class PythonPickleFunction extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.EmbeddedFunction.PythonPickleFunction) PythonPickleFunctionOrBuilder { private static final long serialVersionUID = 0L; // Use PythonPickleFunction.newBuilder() to construct. private PythonPickleFunction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PythonPickleFunction() { function_ = com.google.protobuf.ByteString.EMPTY; prerequisite_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PythonPickleFunction(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_EmbeddedFunction_PythonPickleFunction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_EmbeddedFunction_PythonPickleFunction_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction.class, io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction.Builder.class); } public static final int FUNCTION_FIELD_NUMBER = 1; private com.google.protobuf.ByteString function_ = com.google.protobuf.ByteString.EMPTY; /** * bytes function = 1; * @return The function. */ @java.lang.Override public com.google.protobuf.ByteString getFunction() { return function_; } public static final int PREREQUISITE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList prerequisite_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string prerequisite = 2; * @return A list containing the prerequisite. */ public com.google.protobuf.ProtocolStringList getPrerequisiteList() { return prerequisite_; } /** * repeated string prerequisite = 2; * @return The count of prerequisite. */ public int getPrerequisiteCount() { return prerequisite_.size(); } /** * repeated string prerequisite = 2; * @param index The index of the element to return. * @return The prerequisite at the given index. */ public java.lang.String getPrerequisite(int index) { return prerequisite_.get(index); } /** * repeated string prerequisite = 2; * @param index The index of the value to return. * @return The bytes of the prerequisite at the given index. */ public com.google.protobuf.ByteString getPrerequisiteBytes(int index) { return prerequisite_.getByteString(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 (!function_.isEmpty()) { output.writeBytes(1, function_); } for (int i = 0; i < prerequisite_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, prerequisite_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!function_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, function_); } { int dataSize = 0; for (int i = 0; i < prerequisite_.size(); i++) { dataSize += computeStringSizeNoTag(prerequisite_.getRaw(i)); } size += dataSize; size += 1 * getPrerequisiteList().size(); } 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.EmbeddedFunction.PythonPickleFunction)) { return super.equals(obj); } io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction other = (io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction) obj; if (!getFunction() .equals(other.getFunction())) return false; if (!getPrerequisiteList() .equals(other.getPrerequisiteList())) 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_FIELD_NUMBER; hash = (53 * hash) + getFunction().hashCode(); if (getPrerequisiteCount() > 0) { hash = (37 * hash) + PREREQUISITE_FIELD_NUMBER; hash = (53 * hash) + getPrerequisiteList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction 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.EmbeddedFunction.PythonPickleFunction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction 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.EmbeddedFunction.PythonPickleFunction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction 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.EmbeddedFunction.PythonPickleFunction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction 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.EmbeddedFunction.PythonPickleFunction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction 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.EmbeddedFunction.PythonPickleFunction 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.EmbeddedFunction.PythonPickleFunction} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.EmbeddedFunction.PythonPickleFunction) io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunctionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_EmbeddedFunction_PythonPickleFunction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_EmbeddedFunction_PythonPickleFunction_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction.class, io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction.Builder.class); } // Construct using io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; function_ = com.google.protobuf.ByteString.EMPTY; prerequisite_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_EmbeddedFunction_PythonPickleFunction_descriptor; } @java.lang.Override public io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction getDefaultInstanceForType() { return io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction build() { io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction buildPartial() { io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction result = new io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.function_ = function_; } if (((from_bitField0_ & 0x00000002) != 0)) { prerequisite_.makeImmutable(); result.prerequisite_ = prerequisite_; } } @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.EmbeddedFunction.PythonPickleFunction) { return mergeFrom((io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction other) { if (other == io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction.getDefaultInstance()) return this; if (other.getFunction() != com.google.protobuf.ByteString.EMPTY) { setFunction(other.getFunction()); } if (!other.prerequisite_.isEmpty()) { if (prerequisite_.isEmpty()) { prerequisite_ = other.prerequisite_; bitField0_ |= 0x00000002; } else { ensurePrerequisiteIsMutable(); prerequisite_.addAll(other.prerequisite_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { function_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); ensurePrerequisiteIsMutable(); prerequisite_.add(s); 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 com.google.protobuf.ByteString function_ = com.google.protobuf.ByteString.EMPTY; /** * bytes function = 1; * @return The function. */ @java.lang.Override public com.google.protobuf.ByteString getFunction() { return function_; } /** * bytes function = 1; * @param value The function to set. * @return This builder for chaining. */ public Builder setFunction(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } function_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes function = 1; * @return This builder for chaining. */ public Builder clearFunction() { bitField0_ = (bitField0_ & ~0x00000001); function_ = getDefaultInstance().getFunction(); onChanged(); return this; } private com.google.protobuf.LazyStringArrayList prerequisite_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensurePrerequisiteIsMutable() { if (!prerequisite_.isModifiable()) { prerequisite_ = new com.google.protobuf.LazyStringArrayList(prerequisite_); } bitField0_ |= 0x00000002; } /** * repeated string prerequisite = 2; * @return A list containing the prerequisite. */ public com.google.protobuf.ProtocolStringList getPrerequisiteList() { prerequisite_.makeImmutable(); return prerequisite_; } /** * repeated string prerequisite = 2; * @return The count of prerequisite. */ public int getPrerequisiteCount() { return prerequisite_.size(); } /** * repeated string prerequisite = 2; * @param index The index of the element to return. * @return The prerequisite at the given index. */ public java.lang.String getPrerequisite(int index) { return prerequisite_.get(index); } /** * repeated string prerequisite = 2; * @param index The index of the value to return. * @return The bytes of the prerequisite at the given index. */ public com.google.protobuf.ByteString getPrerequisiteBytes(int index) { return prerequisite_.getByteString(index); } /** * repeated string prerequisite = 2; * @param index The index to set the value at. * @param value The prerequisite to set. * @return This builder for chaining. */ public Builder setPrerequisite( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePrerequisiteIsMutable(); prerequisite_.set(index, value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated string prerequisite = 2; * @param value The prerequisite to add. * @return This builder for chaining. */ public Builder addPrerequisite( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePrerequisiteIsMutable(); prerequisite_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated string prerequisite = 2; * @param values The prerequisite to add. * @return This builder for chaining. */ public Builder addAllPrerequisite( java.lang.Iterable values) { ensurePrerequisiteIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, prerequisite_); bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated string prerequisite = 2; * @return This builder for chaining. */ public Builder clearPrerequisite() { prerequisite_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** * repeated string prerequisite = 2; * @param value The bytes of the prerequisite to add. * @return This builder for chaining. */ public Builder addPrerequisiteBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePrerequisiteIsMutable(); prerequisite_.add(value); bitField0_ |= 0x00000002; 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.EmbeddedFunction.PythonPickleFunction) } // @@protoc_insertion_point(class_scope:substrait.Expression.EmbeddedFunction.PythonPickleFunction) private static final io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction(); } public static io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PythonPickleFunction 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.EmbeddedFunction.PythonPickleFunction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WebAssemblyFunctionOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.EmbeddedFunction.WebAssemblyFunction) com.google.protobuf.MessageOrBuilder { /** * bytes script = 1; * @return The script. */ com.google.protobuf.ByteString getScript(); /** * repeated string prerequisite = 2; * @return A list containing the prerequisite. */ java.util.List getPrerequisiteList(); /** * repeated string prerequisite = 2; * @return The count of prerequisite. */ int getPrerequisiteCount(); /** * repeated string prerequisite = 2; * @param index The index of the element to return. * @return The prerequisite at the given index. */ java.lang.String getPrerequisite(int index); /** * repeated string prerequisite = 2; * @param index The index of the value to return. * @return The bytes of the prerequisite at the given index. */ com.google.protobuf.ByteString getPrerequisiteBytes(int index); } /** * Protobuf type {@code substrait.Expression.EmbeddedFunction.WebAssemblyFunction} */ public static final class WebAssemblyFunction extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.EmbeddedFunction.WebAssemblyFunction) WebAssemblyFunctionOrBuilder { private static final long serialVersionUID = 0L; // Use WebAssemblyFunction.newBuilder() to construct. private WebAssemblyFunction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WebAssemblyFunction() { script_ = com.google.protobuf.ByteString.EMPTY; prerequisite_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WebAssemblyFunction(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_EmbeddedFunction_WebAssemblyFunction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_EmbeddedFunction_WebAssemblyFunction_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction.class, io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction.Builder.class); } public static final int SCRIPT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString script_ = com.google.protobuf.ByteString.EMPTY; /** * bytes script = 1; * @return The script. */ @java.lang.Override public com.google.protobuf.ByteString getScript() { return script_; } public static final int PREREQUISITE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList prerequisite_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string prerequisite = 2; * @return A list containing the prerequisite. */ public com.google.protobuf.ProtocolStringList getPrerequisiteList() { return prerequisite_; } /** * repeated string prerequisite = 2; * @return The count of prerequisite. */ public int getPrerequisiteCount() { return prerequisite_.size(); } /** * repeated string prerequisite = 2; * @param index The index of the element to return. * @return The prerequisite at the given index. */ public java.lang.String getPrerequisite(int index) { return prerequisite_.get(index); } /** * repeated string prerequisite = 2; * @param index The index of the value to return. * @return The bytes of the prerequisite at the given index. */ public com.google.protobuf.ByteString getPrerequisiteBytes(int index) { return prerequisite_.getByteString(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 (!script_.isEmpty()) { output.writeBytes(1, script_); } for (int i = 0; i < prerequisite_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, prerequisite_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!script_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, script_); } { int dataSize = 0; for (int i = 0; i < prerequisite_.size(); i++) { dataSize += computeStringSizeNoTag(prerequisite_.getRaw(i)); } size += dataSize; size += 1 * getPrerequisiteList().size(); } 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.EmbeddedFunction.WebAssemblyFunction)) { return super.equals(obj); } io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction other = (io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction) obj; if (!getScript() .equals(other.getScript())) return false; if (!getPrerequisiteList() .equals(other.getPrerequisiteList())) 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) + SCRIPT_FIELD_NUMBER; hash = (53 * hash) + getScript().hashCode(); if (getPrerequisiteCount() > 0) { hash = (37 * hash) + PREREQUISITE_FIELD_NUMBER; hash = (53 * hash) + getPrerequisiteList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction 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.EmbeddedFunction.WebAssemblyFunction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction 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.EmbeddedFunction.WebAssemblyFunction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction 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.EmbeddedFunction.WebAssemblyFunction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction 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.EmbeddedFunction.WebAssemblyFunction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction 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.EmbeddedFunction.WebAssemblyFunction 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.EmbeddedFunction.WebAssemblyFunction} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.EmbeddedFunction.WebAssemblyFunction) io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunctionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_EmbeddedFunction_WebAssemblyFunction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_EmbeddedFunction_WebAssemblyFunction_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction.class, io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction.Builder.class); } // Construct using io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; script_ = com.google.protobuf.ByteString.EMPTY; prerequisite_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_EmbeddedFunction_WebAssemblyFunction_descriptor; } @java.lang.Override public io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction getDefaultInstanceForType() { return io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction build() { io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction buildPartial() { io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction result = new io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.script_ = script_; } if (((from_bitField0_ & 0x00000002) != 0)) { prerequisite_.makeImmutable(); result.prerequisite_ = prerequisite_; } } @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.EmbeddedFunction.WebAssemblyFunction) { return mergeFrom((io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction other) { if (other == io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction.getDefaultInstance()) return this; if (other.getScript() != com.google.protobuf.ByteString.EMPTY) { setScript(other.getScript()); } if (!other.prerequisite_.isEmpty()) { if (prerequisite_.isEmpty()) { prerequisite_ = other.prerequisite_; bitField0_ |= 0x00000002; } else { ensurePrerequisiteIsMutable(); prerequisite_.addAll(other.prerequisite_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { script_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); ensurePrerequisiteIsMutable(); prerequisite_.add(s); 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 com.google.protobuf.ByteString script_ = com.google.protobuf.ByteString.EMPTY; /** * bytes script = 1; * @return The script. */ @java.lang.Override public com.google.protobuf.ByteString getScript() { return script_; } /** * bytes script = 1; * @param value The script to set. * @return This builder for chaining. */ public Builder setScript(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } script_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes script = 1; * @return This builder for chaining. */ public Builder clearScript() { bitField0_ = (bitField0_ & ~0x00000001); script_ = getDefaultInstance().getScript(); onChanged(); return this; } private com.google.protobuf.LazyStringArrayList prerequisite_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensurePrerequisiteIsMutable() { if (!prerequisite_.isModifiable()) { prerequisite_ = new com.google.protobuf.LazyStringArrayList(prerequisite_); } bitField0_ |= 0x00000002; } /** * repeated string prerequisite = 2; * @return A list containing the prerequisite. */ public com.google.protobuf.ProtocolStringList getPrerequisiteList() { prerequisite_.makeImmutable(); return prerequisite_; } /** * repeated string prerequisite = 2; * @return The count of prerequisite. */ public int getPrerequisiteCount() { return prerequisite_.size(); } /** * repeated string prerequisite = 2; * @param index The index of the element to return. * @return The prerequisite at the given index. */ public java.lang.String getPrerequisite(int index) { return prerequisite_.get(index); } /** * repeated string prerequisite = 2; * @param index The index of the value to return. * @return The bytes of the prerequisite at the given index. */ public com.google.protobuf.ByteString getPrerequisiteBytes(int index) { return prerequisite_.getByteString(index); } /** * repeated string prerequisite = 2; * @param index The index to set the value at. * @param value The prerequisite to set. * @return This builder for chaining. */ public Builder setPrerequisite( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePrerequisiteIsMutable(); prerequisite_.set(index, value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated string prerequisite = 2; * @param value The prerequisite to add. * @return This builder for chaining. */ public Builder addPrerequisite( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePrerequisiteIsMutable(); prerequisite_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated string prerequisite = 2; * @param values The prerequisite to add. * @return This builder for chaining. */ public Builder addAllPrerequisite( java.lang.Iterable values) { ensurePrerequisiteIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, prerequisite_); bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated string prerequisite = 2; * @return This builder for chaining. */ public Builder clearPrerequisite() { prerequisite_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** * repeated string prerequisite = 2; * @param value The bytes of the prerequisite to add. * @return This builder for chaining. */ public Builder addPrerequisiteBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePrerequisiteIsMutable(); prerequisite_.add(value); bitField0_ |= 0x00000002; 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.EmbeddedFunction.WebAssemblyFunction) } // @@protoc_insertion_point(class_scope:substrait.Expression.EmbeddedFunction.WebAssemblyFunction) private static final io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction(); } public static io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WebAssemblyFunction 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.EmbeddedFunction.WebAssemblyFunction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; 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 { PYTHON_PICKLE_FUNCTION(3), WEB_ASSEMBLY_FUNCTION(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 3: return PYTHON_PICKLE_FUNCTION; case 4: return WEB_ASSEMBLY_FUNCTION; 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 ARGUMENTS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List arguments_; /** * repeated .substrait.Expression arguments = 1; */ @java.lang.Override public java.util.List getArgumentsList() { return arguments_; } /** * repeated .substrait.Expression arguments = 1; */ @java.lang.Override public java.util.List getArgumentsOrBuilderList() { return arguments_; } /** * repeated .substrait.Expression arguments = 1; */ @java.lang.Override public int getArgumentsCount() { return arguments_.size(); } /** * repeated .substrait.Expression arguments = 1; */ @java.lang.Override public io.substrait.proto.Expression getArguments(int index) { return arguments_.get(index); } /** * repeated .substrait.Expression arguments = 1; */ @java.lang.Override public io.substrait.proto.ExpressionOrBuilder getArgumentsOrBuilder( int index) { return arguments_.get(index); } public static final int OUTPUT_TYPE_FIELD_NUMBER = 2; private io.substrait.proto.Type outputType_; /** * .substrait.Type output_type = 2; * @return Whether the outputType field is set. */ @java.lang.Override public boolean hasOutputType() { return ((bitField0_ & 0x00000001) != 0); } /** * .substrait.Type output_type = 2; * @return The outputType. */ @java.lang.Override public io.substrait.proto.Type getOutputType() { return outputType_ == null ? io.substrait.proto.Type.getDefaultInstance() : outputType_; } /** * .substrait.Type output_type = 2; */ @java.lang.Override public io.substrait.proto.TypeOrBuilder getOutputTypeOrBuilder() { return outputType_ == null ? io.substrait.proto.Type.getDefaultInstance() : outputType_; } public static final int PYTHON_PICKLE_FUNCTION_FIELD_NUMBER = 3; /** * .substrait.Expression.EmbeddedFunction.PythonPickleFunction python_pickle_function = 3; * @return Whether the pythonPickleFunction field is set. */ @java.lang.Override public boolean hasPythonPickleFunction() { return kindCase_ == 3; } /** * .substrait.Expression.EmbeddedFunction.PythonPickleFunction python_pickle_function = 3; * @return The pythonPickleFunction. */ @java.lang.Override public io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction getPythonPickleFunction() { if (kindCase_ == 3) { return (io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction) kind_; } return io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction.getDefaultInstance(); } /** * .substrait.Expression.EmbeddedFunction.PythonPickleFunction python_pickle_function = 3; */ @java.lang.Override public io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunctionOrBuilder getPythonPickleFunctionOrBuilder() { if (kindCase_ == 3) { return (io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction) kind_; } return io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction.getDefaultInstance(); } public static final int WEB_ASSEMBLY_FUNCTION_FIELD_NUMBER = 4; /** * .substrait.Expression.EmbeddedFunction.WebAssemblyFunction web_assembly_function = 4; * @return Whether the webAssemblyFunction field is set. */ @java.lang.Override public boolean hasWebAssemblyFunction() { return kindCase_ == 4; } /** * .substrait.Expression.EmbeddedFunction.WebAssemblyFunction web_assembly_function = 4; * @return The webAssemblyFunction. */ @java.lang.Override public io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction getWebAssemblyFunction() { if (kindCase_ == 4) { return (io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction) kind_; } return io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction.getDefaultInstance(); } /** * .substrait.Expression.EmbeddedFunction.WebAssemblyFunction web_assembly_function = 4; */ @java.lang.Override public io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunctionOrBuilder getWebAssemblyFunctionOrBuilder() { if (kindCase_ == 4) { return (io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction) kind_; } return io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction.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 { for (int i = 0; i < arguments_.size(); i++) { output.writeMessage(1, arguments_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getOutputType()); } if (kindCase_ == 3) { output.writeMessage(3, (io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction) kind_); } if (kindCase_ == 4) { output.writeMessage(4, (io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction) kind_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < arguments_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, arguments_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getOutputType()); } if (kindCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction) kind_); } if (kindCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction) 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.EmbeddedFunction)) { return super.equals(obj); } io.substrait.proto.Expression.EmbeddedFunction other = (io.substrait.proto.Expression.EmbeddedFunction) obj; if (!getArgumentsList() .equals(other.getArgumentsList())) return false; if (hasOutputType() != other.hasOutputType()) return false; if (hasOutputType()) { if (!getOutputType() .equals(other.getOutputType())) return false; } if (!getKindCase().equals(other.getKindCase())) return false; switch (kindCase_) { case 3: if (!getPythonPickleFunction() .equals(other.getPythonPickleFunction())) return false; break; case 4: if (!getWebAssemblyFunction() .equals(other.getWebAssemblyFunction())) 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(); if (getArgumentsCount() > 0) { hash = (37 * hash) + ARGUMENTS_FIELD_NUMBER; hash = (53 * hash) + getArgumentsList().hashCode(); } if (hasOutputType()) { hash = (37 * hash) + OUTPUT_TYPE_FIELD_NUMBER; hash = (53 * hash) + getOutputType().hashCode(); } switch (kindCase_) { case 3: hash = (37 * hash) + PYTHON_PICKLE_FUNCTION_FIELD_NUMBER; hash = (53 * hash) + getPythonPickleFunction().hashCode(); break; case 4: hash = (37 * hash) + WEB_ASSEMBLY_FUNCTION_FIELD_NUMBER; hash = (53 * hash) + getWebAssemblyFunction().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Expression.EmbeddedFunction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.EmbeddedFunction 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.EmbeddedFunction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.EmbeddedFunction 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.EmbeddedFunction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.EmbeddedFunction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.EmbeddedFunction parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.EmbeddedFunction 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.EmbeddedFunction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.EmbeddedFunction 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.EmbeddedFunction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.EmbeddedFunction 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.EmbeddedFunction 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.EmbeddedFunction} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.EmbeddedFunction) io.substrait.proto.Expression.EmbeddedFunctionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_EmbeddedFunction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_EmbeddedFunction_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.EmbeddedFunction.class, io.substrait.proto.Expression.EmbeddedFunction.Builder.class); } // Construct using io.substrait.proto.Expression.EmbeddedFunction.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(); getOutputTypeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (argumentsBuilder_ == null) { arguments_ = java.util.Collections.emptyList(); } else { arguments_ = null; argumentsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); outputType_ = null; if (outputTypeBuilder_ != null) { outputTypeBuilder_.dispose(); outputTypeBuilder_ = null; } if (pythonPickleFunctionBuilder_ != null) { pythonPickleFunctionBuilder_.clear(); } if (webAssemblyFunctionBuilder_ != null) { webAssemblyFunctionBuilder_.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_EmbeddedFunction_descriptor; } @java.lang.Override public io.substrait.proto.Expression.EmbeddedFunction getDefaultInstanceForType() { return io.substrait.proto.Expression.EmbeddedFunction.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.EmbeddedFunction build() { io.substrait.proto.Expression.EmbeddedFunction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.EmbeddedFunction buildPartial() { io.substrait.proto.Expression.EmbeddedFunction result = new io.substrait.proto.Expression.EmbeddedFunction(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartialRepeatedFields(io.substrait.proto.Expression.EmbeddedFunction result) { if (argumentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { arguments_ = java.util.Collections.unmodifiableList(arguments_); bitField0_ = (bitField0_ & ~0x00000001); } result.arguments_ = arguments_; } else { result.arguments_ = argumentsBuilder_.build(); } } private void buildPartial0(io.substrait.proto.Expression.EmbeddedFunction result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.outputType_ = outputTypeBuilder_ == null ? outputType_ : outputTypeBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(io.substrait.proto.Expression.EmbeddedFunction result) { result.kindCase_ = kindCase_; result.kind_ = this.kind_; if (kindCase_ == 3 && pythonPickleFunctionBuilder_ != null) { result.kind_ = pythonPickleFunctionBuilder_.build(); } if (kindCase_ == 4 && webAssemblyFunctionBuilder_ != null) { result.kind_ = webAssemblyFunctionBuilder_.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.EmbeddedFunction) { return mergeFrom((io.substrait.proto.Expression.EmbeddedFunction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.EmbeddedFunction other) { if (other == io.substrait.proto.Expression.EmbeddedFunction.getDefaultInstance()) return this; if (argumentsBuilder_ == null) { if (!other.arguments_.isEmpty()) { if (arguments_.isEmpty()) { arguments_ = other.arguments_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureArgumentsIsMutable(); arguments_.addAll(other.arguments_); } onChanged(); } } else { if (!other.arguments_.isEmpty()) { if (argumentsBuilder_.isEmpty()) { argumentsBuilder_.dispose(); argumentsBuilder_ = null; arguments_ = other.arguments_; bitField0_ = (bitField0_ & ~0x00000001); argumentsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getArgumentsFieldBuilder() : null; } else { argumentsBuilder_.addAllMessages(other.arguments_); } } } if (other.hasOutputType()) { mergeOutputType(other.getOutputType()); } switch (other.getKindCase()) { case PYTHON_PICKLE_FUNCTION: { mergePythonPickleFunction(other.getPythonPickleFunction()); break; } case WEB_ASSEMBLY_FUNCTION: { mergeWebAssemblyFunction(other.getWebAssemblyFunction()); 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: { io.substrait.proto.Expression m = input.readMessage( io.substrait.proto.Expression.parser(), extensionRegistry); if (argumentsBuilder_ == null) { ensureArgumentsIsMutable(); arguments_.add(m); } else { argumentsBuilder_.addMessage(m); } break; } // case 10 case 18: { input.readMessage( getOutputTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getPythonPickleFunctionFieldBuilder().getBuilder(), extensionRegistry); kindCase_ = 3; break; } // case 26 case 34: { input.readMessage( getWebAssemblyFunctionFieldBuilder().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 java.util.List arguments_ = java.util.Collections.emptyList(); private void ensureArgumentsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { arguments_ = new java.util.ArrayList(arguments_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> argumentsBuilder_; /** * repeated .substrait.Expression arguments = 1; */ public java.util.List getArgumentsList() { if (argumentsBuilder_ == null) { return java.util.Collections.unmodifiableList(arguments_); } else { return argumentsBuilder_.getMessageList(); } } /** * repeated .substrait.Expression arguments = 1; */ public int getArgumentsCount() { if (argumentsBuilder_ == null) { return arguments_.size(); } else { return argumentsBuilder_.getCount(); } } /** * repeated .substrait.Expression arguments = 1; */ public io.substrait.proto.Expression getArguments(int index) { if (argumentsBuilder_ == null) { return arguments_.get(index); } else { return argumentsBuilder_.getMessage(index); } } /** * repeated .substrait.Expression arguments = 1; */ public Builder setArguments( int index, io.substrait.proto.Expression value) { if (argumentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgumentsIsMutable(); arguments_.set(index, value); onChanged(); } else { argumentsBuilder_.setMessage(index, value); } return this; } /** * repeated .substrait.Expression arguments = 1; */ public Builder setArguments( int index, io.substrait.proto.Expression.Builder builderForValue) { if (argumentsBuilder_ == null) { ensureArgumentsIsMutable(); arguments_.set(index, builderForValue.build()); onChanged(); } else { argumentsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .substrait.Expression arguments = 1; */ public Builder addArguments(io.substrait.proto.Expression value) { if (argumentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgumentsIsMutable(); arguments_.add(value); onChanged(); } else { argumentsBuilder_.addMessage(value); } return this; } /** * repeated .substrait.Expression arguments = 1; */ public Builder addArguments( int index, io.substrait.proto.Expression value) { if (argumentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgumentsIsMutable(); arguments_.add(index, value); onChanged(); } else { argumentsBuilder_.addMessage(index, value); } return this; } /** * repeated .substrait.Expression arguments = 1; */ public Builder addArguments( io.substrait.proto.Expression.Builder builderForValue) { if (argumentsBuilder_ == null) { ensureArgumentsIsMutable(); arguments_.add(builderForValue.build()); onChanged(); } else { argumentsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .substrait.Expression arguments = 1; */ public Builder addArguments( int index, io.substrait.proto.Expression.Builder builderForValue) { if (argumentsBuilder_ == null) { ensureArgumentsIsMutable(); arguments_.add(index, builderForValue.build()); onChanged(); } else { argumentsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .substrait.Expression arguments = 1; */ public Builder addAllArguments( java.lang.Iterable values) { if (argumentsBuilder_ == null) { ensureArgumentsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, arguments_); onChanged(); } else { argumentsBuilder_.addAllMessages(values); } return this; } /** * repeated .substrait.Expression arguments = 1; */ public Builder clearArguments() { if (argumentsBuilder_ == null) { arguments_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { argumentsBuilder_.clear(); } return this; } /** * repeated .substrait.Expression arguments = 1; */ public Builder removeArguments(int index) { if (argumentsBuilder_ == null) { ensureArgumentsIsMutable(); arguments_.remove(index); onChanged(); } else { argumentsBuilder_.remove(index); } return this; } /** * repeated .substrait.Expression arguments = 1; */ public io.substrait.proto.Expression.Builder getArgumentsBuilder( int index) { return getArgumentsFieldBuilder().getBuilder(index); } /** * repeated .substrait.Expression arguments = 1; */ public io.substrait.proto.ExpressionOrBuilder getArgumentsOrBuilder( int index) { if (argumentsBuilder_ == null) { return arguments_.get(index); } else { return argumentsBuilder_.getMessageOrBuilder(index); } } /** * repeated .substrait.Expression arguments = 1; */ public java.util.List getArgumentsOrBuilderList() { if (argumentsBuilder_ != null) { return argumentsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(arguments_); } } /** * repeated .substrait.Expression arguments = 1; */ public io.substrait.proto.Expression.Builder addArgumentsBuilder() { return getArgumentsFieldBuilder().addBuilder( io.substrait.proto.Expression.getDefaultInstance()); } /** * repeated .substrait.Expression arguments = 1; */ public io.substrait.proto.Expression.Builder addArgumentsBuilder( int index) { return getArgumentsFieldBuilder().addBuilder( index, io.substrait.proto.Expression.getDefaultInstance()); } /** * repeated .substrait.Expression arguments = 1; */ public java.util.List getArgumentsBuilderList() { return getArgumentsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> getArgumentsFieldBuilder() { if (argumentsBuilder_ == null) { argumentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>( arguments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); arguments_ = null; } return argumentsBuilder_; } 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_; /** * .substrait.Type output_type = 2; * @return Whether the outputType field is set. */ public boolean hasOutputType() { return ((bitField0_ & 0x00000002) != 0); } /** * .substrait.Type output_type = 2; * @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(); } } /** * .substrait.Type output_type = 2; */ public Builder setOutputType(io.substrait.proto.Type value) { if (outputTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } outputType_ = value; } else { outputTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .substrait.Type output_type = 2; */ public Builder setOutputType( io.substrait.proto.Type.Builder builderForValue) { if (outputTypeBuilder_ == null) { outputType_ = builderForValue.build(); } else { outputTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .substrait.Type output_type = 2; */ public Builder mergeOutputType(io.substrait.proto.Type value) { if (outputTypeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && outputType_ != null && outputType_ != io.substrait.proto.Type.getDefaultInstance()) { getOutputTypeBuilder().mergeFrom(value); } else { outputType_ = value; } } else { outputTypeBuilder_.mergeFrom(value); } if (outputType_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .substrait.Type output_type = 2; */ public Builder clearOutputType() { bitField0_ = (bitField0_ & ~0x00000002); outputType_ = null; if (outputTypeBuilder_ != null) { outputTypeBuilder_.dispose(); outputTypeBuilder_ = null; } onChanged(); return this; } /** * .substrait.Type output_type = 2; */ public io.substrait.proto.Type.Builder getOutputTypeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getOutputTypeFieldBuilder().getBuilder(); } /** * .substrait.Type output_type = 2; */ public io.substrait.proto.TypeOrBuilder getOutputTypeOrBuilder() { if (outputTypeBuilder_ != null) { return outputTypeBuilder_.getMessageOrBuilder(); } else { return outputType_ == null ? io.substrait.proto.Type.getDefaultInstance() : outputType_; } } /** * .substrait.Type output_type = 2; */ 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 com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction, io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction.Builder, io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunctionOrBuilder> pythonPickleFunctionBuilder_; /** * .substrait.Expression.EmbeddedFunction.PythonPickleFunction python_pickle_function = 3; * @return Whether the pythonPickleFunction field is set. */ @java.lang.Override public boolean hasPythonPickleFunction() { return kindCase_ == 3; } /** * .substrait.Expression.EmbeddedFunction.PythonPickleFunction python_pickle_function = 3; * @return The pythonPickleFunction. */ @java.lang.Override public io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction getPythonPickleFunction() { if (pythonPickleFunctionBuilder_ == null) { if (kindCase_ == 3) { return (io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction) kind_; } return io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction.getDefaultInstance(); } else { if (kindCase_ == 3) { return pythonPickleFunctionBuilder_.getMessage(); } return io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction.getDefaultInstance(); } } /** * .substrait.Expression.EmbeddedFunction.PythonPickleFunction python_pickle_function = 3; */ public Builder setPythonPickleFunction(io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction value) { if (pythonPickleFunctionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } kind_ = value; onChanged(); } else { pythonPickleFunctionBuilder_.setMessage(value); } kindCase_ = 3; return this; } /** * .substrait.Expression.EmbeddedFunction.PythonPickleFunction python_pickle_function = 3; */ public Builder setPythonPickleFunction( io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction.Builder builderForValue) { if (pythonPickleFunctionBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); } else { pythonPickleFunctionBuilder_.setMessage(builderForValue.build()); } kindCase_ = 3; return this; } /** * .substrait.Expression.EmbeddedFunction.PythonPickleFunction python_pickle_function = 3; */ public Builder mergePythonPickleFunction(io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction value) { if (pythonPickleFunctionBuilder_ == null) { if (kindCase_ == 3 && kind_ != io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction.getDefaultInstance()) { kind_ = io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction.newBuilder((io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction) kind_) .mergeFrom(value).buildPartial(); } else { kind_ = value; } onChanged(); } else { if (kindCase_ == 3) { pythonPickleFunctionBuilder_.mergeFrom(value); } else { pythonPickleFunctionBuilder_.setMessage(value); } } kindCase_ = 3; return this; } /** * .substrait.Expression.EmbeddedFunction.PythonPickleFunction python_pickle_function = 3; */ public Builder clearPythonPickleFunction() { if (pythonPickleFunctionBuilder_ == null) { if (kindCase_ == 3) { kindCase_ = 0; kind_ = null; onChanged(); } } else { if (kindCase_ == 3) { kindCase_ = 0; kind_ = null; } pythonPickleFunctionBuilder_.clear(); } return this; } /** * .substrait.Expression.EmbeddedFunction.PythonPickleFunction python_pickle_function = 3; */ public io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction.Builder getPythonPickleFunctionBuilder() { return getPythonPickleFunctionFieldBuilder().getBuilder(); } /** * .substrait.Expression.EmbeddedFunction.PythonPickleFunction python_pickle_function = 3; */ @java.lang.Override public io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunctionOrBuilder getPythonPickleFunctionOrBuilder() { if ((kindCase_ == 3) && (pythonPickleFunctionBuilder_ != null)) { return pythonPickleFunctionBuilder_.getMessageOrBuilder(); } else { if (kindCase_ == 3) { return (io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction) kind_; } return io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction.getDefaultInstance(); } } /** * .substrait.Expression.EmbeddedFunction.PythonPickleFunction python_pickle_function = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction, io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction.Builder, io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunctionOrBuilder> getPythonPickleFunctionFieldBuilder() { if (pythonPickleFunctionBuilder_ == null) { if (!(kindCase_ == 3)) { kind_ = io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction.getDefaultInstance(); } pythonPickleFunctionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction, io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction.Builder, io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunctionOrBuilder>( (io.substrait.proto.Expression.EmbeddedFunction.PythonPickleFunction) kind_, getParentForChildren(), isClean()); kind_ = null; } kindCase_ = 3; onChanged(); return pythonPickleFunctionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction, io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction.Builder, io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunctionOrBuilder> webAssemblyFunctionBuilder_; /** * .substrait.Expression.EmbeddedFunction.WebAssemblyFunction web_assembly_function = 4; * @return Whether the webAssemblyFunction field is set. */ @java.lang.Override public boolean hasWebAssemblyFunction() { return kindCase_ == 4; } /** * .substrait.Expression.EmbeddedFunction.WebAssemblyFunction web_assembly_function = 4; * @return The webAssemblyFunction. */ @java.lang.Override public io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction getWebAssemblyFunction() { if (webAssemblyFunctionBuilder_ == null) { if (kindCase_ == 4) { return (io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction) kind_; } return io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction.getDefaultInstance(); } else { if (kindCase_ == 4) { return webAssemblyFunctionBuilder_.getMessage(); } return io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction.getDefaultInstance(); } } /** * .substrait.Expression.EmbeddedFunction.WebAssemblyFunction web_assembly_function = 4; */ public Builder setWebAssemblyFunction(io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction value) { if (webAssemblyFunctionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } kind_ = value; onChanged(); } else { webAssemblyFunctionBuilder_.setMessage(value); } kindCase_ = 4; return this; } /** * .substrait.Expression.EmbeddedFunction.WebAssemblyFunction web_assembly_function = 4; */ public Builder setWebAssemblyFunction( io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction.Builder builderForValue) { if (webAssemblyFunctionBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); } else { webAssemblyFunctionBuilder_.setMessage(builderForValue.build()); } kindCase_ = 4; return this; } /** * .substrait.Expression.EmbeddedFunction.WebAssemblyFunction web_assembly_function = 4; */ public Builder mergeWebAssemblyFunction(io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction value) { if (webAssemblyFunctionBuilder_ == null) { if (kindCase_ == 4 && kind_ != io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction.getDefaultInstance()) { kind_ = io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction.newBuilder((io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction) kind_) .mergeFrom(value).buildPartial(); } else { kind_ = value; } onChanged(); } else { if (kindCase_ == 4) { webAssemblyFunctionBuilder_.mergeFrom(value); } else { webAssemblyFunctionBuilder_.setMessage(value); } } kindCase_ = 4; return this; } /** * .substrait.Expression.EmbeddedFunction.WebAssemblyFunction web_assembly_function = 4; */ public Builder clearWebAssemblyFunction() { if (webAssemblyFunctionBuilder_ == null) { if (kindCase_ == 4) { kindCase_ = 0; kind_ = null; onChanged(); } } else { if (kindCase_ == 4) { kindCase_ = 0; kind_ = null; } webAssemblyFunctionBuilder_.clear(); } return this; } /** * .substrait.Expression.EmbeddedFunction.WebAssemblyFunction web_assembly_function = 4; */ public io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction.Builder getWebAssemblyFunctionBuilder() { return getWebAssemblyFunctionFieldBuilder().getBuilder(); } /** * .substrait.Expression.EmbeddedFunction.WebAssemblyFunction web_assembly_function = 4; */ @java.lang.Override public io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunctionOrBuilder getWebAssemblyFunctionOrBuilder() { if ((kindCase_ == 4) && (webAssemblyFunctionBuilder_ != null)) { return webAssemblyFunctionBuilder_.getMessageOrBuilder(); } else { if (kindCase_ == 4) { return (io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction) kind_; } return io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction.getDefaultInstance(); } } /** * .substrait.Expression.EmbeddedFunction.WebAssemblyFunction web_assembly_function = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction, io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction.Builder, io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunctionOrBuilder> getWebAssemblyFunctionFieldBuilder() { if (webAssemblyFunctionBuilder_ == null) { if (!(kindCase_ == 4)) { kind_ = io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction.getDefaultInstance(); } webAssemblyFunctionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction, io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction.Builder, io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunctionOrBuilder>( (io.substrait.proto.Expression.EmbeddedFunction.WebAssemblyFunction) kind_, getParentForChildren(), isClean()); kind_ = null; } kindCase_ = 4; onChanged(); return webAssemblyFunctionBuilder_; } @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.EmbeddedFunction) } // @@protoc_insertion_point(class_scope:substrait.Expression.EmbeddedFunction) private static final io.substrait.proto.Expression.EmbeddedFunction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.EmbeddedFunction(); } public static io.substrait.proto.Expression.EmbeddedFunction getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EmbeddedFunction 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.EmbeddedFunction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReferenceSegmentOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.ReferenceSegment) com.google.protobuf.MessageOrBuilder { /** * .substrait.Expression.ReferenceSegment.MapKey map_key = 1; * @return Whether the mapKey field is set. */ boolean hasMapKey(); /** * .substrait.Expression.ReferenceSegment.MapKey map_key = 1; * @return The mapKey. */ io.substrait.proto.Expression.ReferenceSegment.MapKey getMapKey(); /** * .substrait.Expression.ReferenceSegment.MapKey map_key = 1; */ io.substrait.proto.Expression.ReferenceSegment.MapKeyOrBuilder getMapKeyOrBuilder(); /** * .substrait.Expression.ReferenceSegment.StructField struct_field = 2; * @return Whether the structField field is set. */ boolean hasStructField(); /** * .substrait.Expression.ReferenceSegment.StructField struct_field = 2; * @return The structField. */ io.substrait.proto.Expression.ReferenceSegment.StructField getStructField(); /** * .substrait.Expression.ReferenceSegment.StructField struct_field = 2; */ io.substrait.proto.Expression.ReferenceSegment.StructFieldOrBuilder getStructFieldOrBuilder(); /** * .substrait.Expression.ReferenceSegment.ListElement list_element = 3; * @return Whether the listElement field is set. */ boolean hasListElement(); /** * .substrait.Expression.ReferenceSegment.ListElement list_element = 3; * @return The listElement. */ io.substrait.proto.Expression.ReferenceSegment.ListElement getListElement(); /** * .substrait.Expression.ReferenceSegment.ListElement list_element = 3; */ io.substrait.proto.Expression.ReferenceSegment.ListElementOrBuilder getListElementOrBuilder(); io.substrait.proto.Expression.ReferenceSegment.ReferenceTypeCase getReferenceTypeCase(); } /** *
   * A way to reference the inner property of a complex record. Can reference
   * either a map key by literal, a struct field by the ordinal position of
   * the desired field or a particular element in an array. Supports
   * expressions that would roughly translate to something similar to:
   * a.b[2].c['my_map_key'].x where a,b,c and x are struct field references
   * (ordinalized in the internal representation here), [2] is a list offset
   * and ['my_map_key'] is a reference into a map field.
   * 
* * Protobuf type {@code substrait.Expression.ReferenceSegment} */ public static final class ReferenceSegment extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.ReferenceSegment) ReferenceSegmentOrBuilder { private static final long serialVersionUID = 0L; // Use ReferenceSegment.newBuilder() to construct. private ReferenceSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReferenceSegment() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ReferenceSegment(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_ReferenceSegment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_ReferenceSegment_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.ReferenceSegment.class, io.substrait.proto.Expression.ReferenceSegment.Builder.class); } public interface MapKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.ReferenceSegment.MapKey) com.google.protobuf.MessageOrBuilder { /** *
       * literal based reference to specific possible value in map.
       * 
* * .substrait.Expression.Literal map_key = 1; * @return Whether the mapKey field is set. */ boolean hasMapKey(); /** *
       * literal based reference to specific possible value in map.
       * 
* * .substrait.Expression.Literal map_key = 1; * @return The mapKey. */ io.substrait.proto.Expression.Literal getMapKey(); /** *
       * literal based reference to specific possible value in map.
       * 
* * .substrait.Expression.Literal map_key = 1; */ io.substrait.proto.Expression.LiteralOrBuilder getMapKeyOrBuilder(); /** *
       * Optional child segment
       * 
* * .substrait.Expression.ReferenceSegment child = 2; * @return Whether the child field is set. */ boolean hasChild(); /** *
       * Optional child segment
       * 
* * .substrait.Expression.ReferenceSegment child = 2; * @return The child. */ io.substrait.proto.Expression.ReferenceSegment getChild(); /** *
       * Optional child segment
       * 
* * .substrait.Expression.ReferenceSegment child = 2; */ io.substrait.proto.Expression.ReferenceSegmentOrBuilder getChildOrBuilder(); } /** * Protobuf type {@code substrait.Expression.ReferenceSegment.MapKey} */ public static final class MapKey extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.ReferenceSegment.MapKey) MapKeyOrBuilder { private static final long serialVersionUID = 0L; // Use MapKey.newBuilder() to construct. private MapKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MapKey() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MapKey(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_ReferenceSegment_MapKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_ReferenceSegment_MapKey_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.ReferenceSegment.MapKey.class, io.substrait.proto.Expression.ReferenceSegment.MapKey.Builder.class); } private int bitField0_; public static final int MAP_KEY_FIELD_NUMBER = 1; private io.substrait.proto.Expression.Literal mapKey_; /** *
       * literal based reference to specific possible value in map.
       * 
* * .substrait.Expression.Literal map_key = 1; * @return Whether the mapKey field is set. */ @java.lang.Override public boolean hasMapKey() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * literal based reference to specific possible value in map.
       * 
* * .substrait.Expression.Literal map_key = 1; * @return The mapKey. */ @java.lang.Override public io.substrait.proto.Expression.Literal getMapKey() { return mapKey_ == null ? io.substrait.proto.Expression.Literal.getDefaultInstance() : mapKey_; } /** *
       * literal based reference to specific possible value in map.
       * 
* * .substrait.Expression.Literal map_key = 1; */ @java.lang.Override public io.substrait.proto.Expression.LiteralOrBuilder getMapKeyOrBuilder() { return mapKey_ == null ? io.substrait.proto.Expression.Literal.getDefaultInstance() : mapKey_; } public static final int CHILD_FIELD_NUMBER = 2; private io.substrait.proto.Expression.ReferenceSegment child_; /** *
       * Optional child segment
       * 
* * .substrait.Expression.ReferenceSegment child = 2; * @return Whether the child field is set. */ @java.lang.Override public boolean hasChild() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Optional child segment
       * 
* * .substrait.Expression.ReferenceSegment child = 2; * @return The child. */ @java.lang.Override public io.substrait.proto.Expression.ReferenceSegment getChild() { return child_ == null ? io.substrait.proto.Expression.ReferenceSegment.getDefaultInstance() : child_; } /** *
       * Optional child segment
       * 
* * .substrait.Expression.ReferenceSegment child = 2; */ @java.lang.Override public io.substrait.proto.Expression.ReferenceSegmentOrBuilder getChildOrBuilder() { return child_ == null ? io.substrait.proto.Expression.ReferenceSegment.getDefaultInstance() : child_; } 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, getMapKey()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getChild()); } 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, getMapKey()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getChild()); } 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.ReferenceSegment.MapKey)) { return super.equals(obj); } io.substrait.proto.Expression.ReferenceSegment.MapKey other = (io.substrait.proto.Expression.ReferenceSegment.MapKey) obj; if (hasMapKey() != other.hasMapKey()) return false; if (hasMapKey()) { if (!getMapKey() .equals(other.getMapKey())) return false; } if (hasChild() != other.hasChild()) return false; if (hasChild()) { if (!getChild() .equals(other.getChild())) 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 (hasMapKey()) { hash = (37 * hash) + MAP_KEY_FIELD_NUMBER; hash = (53 * hash) + getMapKey().hashCode(); } if (hasChild()) { hash = (37 * hash) + CHILD_FIELD_NUMBER; hash = (53 * hash) + getChild().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Expression.ReferenceSegment.MapKey parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.ReferenceSegment.MapKey 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.ReferenceSegment.MapKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.ReferenceSegment.MapKey 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.ReferenceSegment.MapKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.ReferenceSegment.MapKey parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.ReferenceSegment.MapKey parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.ReferenceSegment.MapKey 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.ReferenceSegment.MapKey parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.ReferenceSegment.MapKey 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.ReferenceSegment.MapKey parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.ReferenceSegment.MapKey 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.ReferenceSegment.MapKey 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.ReferenceSegment.MapKey} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.ReferenceSegment.MapKey) io.substrait.proto.Expression.ReferenceSegment.MapKeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_ReferenceSegment_MapKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_ReferenceSegment_MapKey_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.ReferenceSegment.MapKey.class, io.substrait.proto.Expression.ReferenceSegment.MapKey.Builder.class); } // Construct using io.substrait.proto.Expression.ReferenceSegment.MapKey.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMapKeyFieldBuilder(); getChildFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; mapKey_ = null; if (mapKeyBuilder_ != null) { mapKeyBuilder_.dispose(); mapKeyBuilder_ = null; } child_ = null; if (childBuilder_ != null) { childBuilder_.dispose(); childBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_ReferenceSegment_MapKey_descriptor; } @java.lang.Override public io.substrait.proto.Expression.ReferenceSegment.MapKey getDefaultInstanceForType() { return io.substrait.proto.Expression.ReferenceSegment.MapKey.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.ReferenceSegment.MapKey build() { io.substrait.proto.Expression.ReferenceSegment.MapKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.ReferenceSegment.MapKey buildPartial() { io.substrait.proto.Expression.ReferenceSegment.MapKey result = new io.substrait.proto.Expression.ReferenceSegment.MapKey(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.substrait.proto.Expression.ReferenceSegment.MapKey result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.mapKey_ = mapKeyBuilder_ == null ? mapKey_ : mapKeyBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.child_ = childBuilder_ == null ? child_ : childBuilder_.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.ReferenceSegment.MapKey) { return mergeFrom((io.substrait.proto.Expression.ReferenceSegment.MapKey)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.ReferenceSegment.MapKey other) { if (other == io.substrait.proto.Expression.ReferenceSegment.MapKey.getDefaultInstance()) return this; if (other.hasMapKey()) { mergeMapKey(other.getMapKey()); } if (other.hasChild()) { mergeChild(other.getChild()); } 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( getMapKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getChildFieldBuilder().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 mapKey_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Literal, io.substrait.proto.Expression.Literal.Builder, io.substrait.proto.Expression.LiteralOrBuilder> mapKeyBuilder_; /** *
         * literal based reference to specific possible value in map.
         * 
* * .substrait.Expression.Literal map_key = 1; * @return Whether the mapKey field is set. */ public boolean hasMapKey() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * literal based reference to specific possible value in map.
         * 
* * .substrait.Expression.Literal map_key = 1; * @return The mapKey. */ public io.substrait.proto.Expression.Literal getMapKey() { if (mapKeyBuilder_ == null) { return mapKey_ == null ? io.substrait.proto.Expression.Literal.getDefaultInstance() : mapKey_; } else { return mapKeyBuilder_.getMessage(); } } /** *
         * literal based reference to specific possible value in map.
         * 
* * .substrait.Expression.Literal map_key = 1; */ public Builder setMapKey(io.substrait.proto.Expression.Literal value) { if (mapKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } mapKey_ = value; } else { mapKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * literal based reference to specific possible value in map.
         * 
* * .substrait.Expression.Literal map_key = 1; */ public Builder setMapKey( io.substrait.proto.Expression.Literal.Builder builderForValue) { if (mapKeyBuilder_ == null) { mapKey_ = builderForValue.build(); } else { mapKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * literal based reference to specific possible value in map.
         * 
* * .substrait.Expression.Literal map_key = 1; */ public Builder mergeMapKey(io.substrait.proto.Expression.Literal value) { if (mapKeyBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && mapKey_ != null && mapKey_ != io.substrait.proto.Expression.Literal.getDefaultInstance()) { getMapKeyBuilder().mergeFrom(value); } else { mapKey_ = value; } } else { mapKeyBuilder_.mergeFrom(value); } if (mapKey_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * literal based reference to specific possible value in map.
         * 
* * .substrait.Expression.Literal map_key = 1; */ public Builder clearMapKey() { bitField0_ = (bitField0_ & ~0x00000001); mapKey_ = null; if (mapKeyBuilder_ != null) { mapKeyBuilder_.dispose(); mapKeyBuilder_ = null; } onChanged(); return this; } /** *
         * literal based reference to specific possible value in map.
         * 
* * .substrait.Expression.Literal map_key = 1; */ public io.substrait.proto.Expression.Literal.Builder getMapKeyBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMapKeyFieldBuilder().getBuilder(); } /** *
         * literal based reference to specific possible value in map.
         * 
* * .substrait.Expression.Literal map_key = 1; */ public io.substrait.proto.Expression.LiteralOrBuilder getMapKeyOrBuilder() { if (mapKeyBuilder_ != null) { return mapKeyBuilder_.getMessageOrBuilder(); } else { return mapKey_ == null ? io.substrait.proto.Expression.Literal.getDefaultInstance() : mapKey_; } } /** *
         * literal based reference to specific possible value in map.
         * 
* * .substrait.Expression.Literal map_key = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Literal, io.substrait.proto.Expression.Literal.Builder, io.substrait.proto.Expression.LiteralOrBuilder> getMapKeyFieldBuilder() { if (mapKeyBuilder_ == null) { mapKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Literal, io.substrait.proto.Expression.Literal.Builder, io.substrait.proto.Expression.LiteralOrBuilder>( getMapKey(), getParentForChildren(), isClean()); mapKey_ = null; } return mapKeyBuilder_; } private io.substrait.proto.Expression.ReferenceSegment child_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.ReferenceSegment, io.substrait.proto.Expression.ReferenceSegment.Builder, io.substrait.proto.Expression.ReferenceSegmentOrBuilder> childBuilder_; /** *
         * Optional child segment
         * 
* * .substrait.Expression.ReferenceSegment child = 2; * @return Whether the child field is set. */ public boolean hasChild() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * Optional child segment
         * 
* * .substrait.Expression.ReferenceSegment child = 2; * @return The child. */ public io.substrait.proto.Expression.ReferenceSegment getChild() { if (childBuilder_ == null) { return child_ == null ? io.substrait.proto.Expression.ReferenceSegment.getDefaultInstance() : child_; } else { return childBuilder_.getMessage(); } } /** *
         * Optional child segment
         * 
* * .substrait.Expression.ReferenceSegment child = 2; */ public Builder setChild(io.substrait.proto.Expression.ReferenceSegment value) { if (childBuilder_ == null) { if (value == null) { throw new NullPointerException(); } child_ = value; } else { childBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Optional child segment
         * 
* * .substrait.Expression.ReferenceSegment child = 2; */ public Builder setChild( io.substrait.proto.Expression.ReferenceSegment.Builder builderForValue) { if (childBuilder_ == null) { child_ = builderForValue.build(); } else { childBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Optional child segment
         * 
* * .substrait.Expression.ReferenceSegment child = 2; */ public Builder mergeChild(io.substrait.proto.Expression.ReferenceSegment value) { if (childBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && child_ != null && child_ != io.substrait.proto.Expression.ReferenceSegment.getDefaultInstance()) { getChildBuilder().mergeFrom(value); } else { child_ = value; } } else { childBuilder_.mergeFrom(value); } if (child_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Optional child segment
         * 
* * .substrait.Expression.ReferenceSegment child = 2; */ public Builder clearChild() { bitField0_ = (bitField0_ & ~0x00000002); child_ = null; if (childBuilder_ != null) { childBuilder_.dispose(); childBuilder_ = null; } onChanged(); return this; } /** *
         * Optional child segment
         * 
* * .substrait.Expression.ReferenceSegment child = 2; */ public io.substrait.proto.Expression.ReferenceSegment.Builder getChildBuilder() { bitField0_ |= 0x00000002; onChanged(); return getChildFieldBuilder().getBuilder(); } /** *
         * Optional child segment
         * 
* * .substrait.Expression.ReferenceSegment child = 2; */ public io.substrait.proto.Expression.ReferenceSegmentOrBuilder getChildOrBuilder() { if (childBuilder_ != null) { return childBuilder_.getMessageOrBuilder(); } else { return child_ == null ? io.substrait.proto.Expression.ReferenceSegment.getDefaultInstance() : child_; } } /** *
         * Optional child segment
         * 
* * .substrait.Expression.ReferenceSegment child = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.ReferenceSegment, io.substrait.proto.Expression.ReferenceSegment.Builder, io.substrait.proto.Expression.ReferenceSegmentOrBuilder> getChildFieldBuilder() { if (childBuilder_ == null) { childBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.ReferenceSegment, io.substrait.proto.Expression.ReferenceSegment.Builder, io.substrait.proto.Expression.ReferenceSegmentOrBuilder>( getChild(), getParentForChildren(), isClean()); child_ = null; } return childBuilder_; } @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.ReferenceSegment.MapKey) } // @@protoc_insertion_point(class_scope:substrait.Expression.ReferenceSegment.MapKey) private static final io.substrait.proto.Expression.ReferenceSegment.MapKey DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.ReferenceSegment.MapKey(); } public static io.substrait.proto.Expression.ReferenceSegment.MapKey getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MapKey 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.ReferenceSegment.MapKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StructFieldOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.ReferenceSegment.StructField) com.google.protobuf.MessageOrBuilder { /** *
       * zero-indexed ordinal position of field in struct
       * 
* * int32 field = 1; * @return The field. */ int getField(); /** *
       * Optional child segment
       * 
* * .substrait.Expression.ReferenceSegment child = 2; * @return Whether the child field is set. */ boolean hasChild(); /** *
       * Optional child segment
       * 
* * .substrait.Expression.ReferenceSegment child = 2; * @return The child. */ io.substrait.proto.Expression.ReferenceSegment getChild(); /** *
       * Optional child segment
       * 
* * .substrait.Expression.ReferenceSegment child = 2; */ io.substrait.proto.Expression.ReferenceSegmentOrBuilder getChildOrBuilder(); } /** * Protobuf type {@code substrait.Expression.ReferenceSegment.StructField} */ public static final class StructField extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.ReferenceSegment.StructField) StructFieldOrBuilder { private static final long serialVersionUID = 0L; // Use StructField.newBuilder() to construct. private StructField(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StructField() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StructField(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_ReferenceSegment_StructField_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_ReferenceSegment_StructField_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.ReferenceSegment.StructField.class, io.substrait.proto.Expression.ReferenceSegment.StructField.Builder.class); } private int bitField0_; public static final int FIELD_FIELD_NUMBER = 1; private int field_ = 0; /** *
       * zero-indexed ordinal position of field in struct
       * 
* * int32 field = 1; * @return The field. */ @java.lang.Override public int getField() { return field_; } public static final int CHILD_FIELD_NUMBER = 2; private io.substrait.proto.Expression.ReferenceSegment child_; /** *
       * Optional child segment
       * 
* * .substrait.Expression.ReferenceSegment child = 2; * @return Whether the child field is set. */ @java.lang.Override public boolean hasChild() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Optional child segment
       * 
* * .substrait.Expression.ReferenceSegment child = 2; * @return The child. */ @java.lang.Override public io.substrait.proto.Expression.ReferenceSegment getChild() { return child_ == null ? io.substrait.proto.Expression.ReferenceSegment.getDefaultInstance() : child_; } /** *
       * Optional child segment
       * 
* * .substrait.Expression.ReferenceSegment child = 2; */ @java.lang.Override public io.substrait.proto.Expression.ReferenceSegmentOrBuilder getChildOrBuilder() { return child_ == null ? io.substrait.proto.Expression.ReferenceSegment.getDefaultInstance() : child_; } 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 (field_ != 0) { output.writeInt32(1, field_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getChild()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (field_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, field_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getChild()); } 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.ReferenceSegment.StructField)) { return super.equals(obj); } io.substrait.proto.Expression.ReferenceSegment.StructField other = (io.substrait.proto.Expression.ReferenceSegment.StructField) obj; if (getField() != other.getField()) return false; if (hasChild() != other.hasChild()) return false; if (hasChild()) { if (!getChild() .equals(other.getChild())) 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) + FIELD_FIELD_NUMBER; hash = (53 * hash) + getField(); if (hasChild()) { hash = (37 * hash) + CHILD_FIELD_NUMBER; hash = (53 * hash) + getChild().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Expression.ReferenceSegment.StructField parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.ReferenceSegment.StructField 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.ReferenceSegment.StructField parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.ReferenceSegment.StructField 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.ReferenceSegment.StructField parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.ReferenceSegment.StructField parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.ReferenceSegment.StructField parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.ReferenceSegment.StructField 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.ReferenceSegment.StructField parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.ReferenceSegment.StructField 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.ReferenceSegment.StructField parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.ReferenceSegment.StructField 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.ReferenceSegment.StructField 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.ReferenceSegment.StructField} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.ReferenceSegment.StructField) io.substrait.proto.Expression.ReferenceSegment.StructFieldOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_ReferenceSegment_StructField_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_ReferenceSegment_StructField_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.ReferenceSegment.StructField.class, io.substrait.proto.Expression.ReferenceSegment.StructField.Builder.class); } // Construct using io.substrait.proto.Expression.ReferenceSegment.StructField.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getChildFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; field_ = 0; child_ = null; if (childBuilder_ != null) { childBuilder_.dispose(); childBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_ReferenceSegment_StructField_descriptor; } @java.lang.Override public io.substrait.proto.Expression.ReferenceSegment.StructField getDefaultInstanceForType() { return io.substrait.proto.Expression.ReferenceSegment.StructField.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.ReferenceSegment.StructField build() { io.substrait.proto.Expression.ReferenceSegment.StructField result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.ReferenceSegment.StructField buildPartial() { io.substrait.proto.Expression.ReferenceSegment.StructField result = new io.substrait.proto.Expression.ReferenceSegment.StructField(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.substrait.proto.Expression.ReferenceSegment.StructField result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.field_ = field_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.child_ = childBuilder_ == null ? child_ : childBuilder_.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.ReferenceSegment.StructField) { return mergeFrom((io.substrait.proto.Expression.ReferenceSegment.StructField)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.ReferenceSegment.StructField other) { if (other == io.substrait.proto.Expression.ReferenceSegment.StructField.getDefaultInstance()) return this; if (other.getField() != 0) { setField(other.getField()); } if (other.hasChild()) { mergeChild(other.getChild()); } 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: { field_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getChildFieldBuilder().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 int field_ ; /** *
         * zero-indexed ordinal position of field in struct
         * 
* * int32 field = 1; * @return The field. */ @java.lang.Override public int getField() { return field_; } /** *
         * zero-indexed ordinal position of field in struct
         * 
* * int32 field = 1; * @param value The field to set. * @return This builder for chaining. */ public Builder setField(int value) { field_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * zero-indexed ordinal position of field in struct
         * 
* * int32 field = 1; * @return This builder for chaining. */ public Builder clearField() { bitField0_ = (bitField0_ & ~0x00000001); field_ = 0; onChanged(); return this; } private io.substrait.proto.Expression.ReferenceSegment child_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.ReferenceSegment, io.substrait.proto.Expression.ReferenceSegment.Builder, io.substrait.proto.Expression.ReferenceSegmentOrBuilder> childBuilder_; /** *
         * Optional child segment
         * 
* * .substrait.Expression.ReferenceSegment child = 2; * @return Whether the child field is set. */ public boolean hasChild() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * Optional child segment
         * 
* * .substrait.Expression.ReferenceSegment child = 2; * @return The child. */ public io.substrait.proto.Expression.ReferenceSegment getChild() { if (childBuilder_ == null) { return child_ == null ? io.substrait.proto.Expression.ReferenceSegment.getDefaultInstance() : child_; } else { return childBuilder_.getMessage(); } } /** *
         * Optional child segment
         * 
* * .substrait.Expression.ReferenceSegment child = 2; */ public Builder setChild(io.substrait.proto.Expression.ReferenceSegment value) { if (childBuilder_ == null) { if (value == null) { throw new NullPointerException(); } child_ = value; } else { childBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Optional child segment
         * 
* * .substrait.Expression.ReferenceSegment child = 2; */ public Builder setChild( io.substrait.proto.Expression.ReferenceSegment.Builder builderForValue) { if (childBuilder_ == null) { child_ = builderForValue.build(); } else { childBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Optional child segment
         * 
* * .substrait.Expression.ReferenceSegment child = 2; */ public Builder mergeChild(io.substrait.proto.Expression.ReferenceSegment value) { if (childBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && child_ != null && child_ != io.substrait.proto.Expression.ReferenceSegment.getDefaultInstance()) { getChildBuilder().mergeFrom(value); } else { child_ = value; } } else { childBuilder_.mergeFrom(value); } if (child_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Optional child segment
         * 
* * .substrait.Expression.ReferenceSegment child = 2; */ public Builder clearChild() { bitField0_ = (bitField0_ & ~0x00000002); child_ = null; if (childBuilder_ != null) { childBuilder_.dispose(); childBuilder_ = null; } onChanged(); return this; } /** *
         * Optional child segment
         * 
* * .substrait.Expression.ReferenceSegment child = 2; */ public io.substrait.proto.Expression.ReferenceSegment.Builder getChildBuilder() { bitField0_ |= 0x00000002; onChanged(); return getChildFieldBuilder().getBuilder(); } /** *
         * Optional child segment
         * 
* * .substrait.Expression.ReferenceSegment child = 2; */ public io.substrait.proto.Expression.ReferenceSegmentOrBuilder getChildOrBuilder() { if (childBuilder_ != null) { return childBuilder_.getMessageOrBuilder(); } else { return child_ == null ? io.substrait.proto.Expression.ReferenceSegment.getDefaultInstance() : child_; } } /** *
         * Optional child segment
         * 
* * .substrait.Expression.ReferenceSegment child = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.ReferenceSegment, io.substrait.proto.Expression.ReferenceSegment.Builder, io.substrait.proto.Expression.ReferenceSegmentOrBuilder> getChildFieldBuilder() { if (childBuilder_ == null) { childBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.ReferenceSegment, io.substrait.proto.Expression.ReferenceSegment.Builder, io.substrait.proto.Expression.ReferenceSegmentOrBuilder>( getChild(), getParentForChildren(), isClean()); child_ = null; } return childBuilder_; } @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.ReferenceSegment.StructField) } // @@protoc_insertion_point(class_scope:substrait.Expression.ReferenceSegment.StructField) private static final io.substrait.proto.Expression.ReferenceSegment.StructField DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.ReferenceSegment.StructField(); } public static io.substrait.proto.Expression.ReferenceSegment.StructField getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StructField 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.ReferenceSegment.StructField getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListElementOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.ReferenceSegment.ListElement) com.google.protobuf.MessageOrBuilder { /** *
       * zero-indexed ordinal position of element in list
       * 
* * int32 offset = 1; * @return The offset. */ int getOffset(); /** *
       * Optional child segment
       * 
* * .substrait.Expression.ReferenceSegment child = 2; * @return Whether the child field is set. */ boolean hasChild(); /** *
       * Optional child segment
       * 
* * .substrait.Expression.ReferenceSegment child = 2; * @return The child. */ io.substrait.proto.Expression.ReferenceSegment getChild(); /** *
       * Optional child segment
       * 
* * .substrait.Expression.ReferenceSegment child = 2; */ io.substrait.proto.Expression.ReferenceSegmentOrBuilder getChildOrBuilder(); } /** * Protobuf type {@code substrait.Expression.ReferenceSegment.ListElement} */ public static final class ListElement extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.ReferenceSegment.ListElement) ListElementOrBuilder { private static final long serialVersionUID = 0L; // Use ListElement.newBuilder() to construct. private ListElement(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListElement() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListElement(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_ReferenceSegment_ListElement_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_ReferenceSegment_ListElement_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.ReferenceSegment.ListElement.class, io.substrait.proto.Expression.ReferenceSegment.ListElement.Builder.class); } private int bitField0_; public static final int OFFSET_FIELD_NUMBER = 1; private int offset_ = 0; /** *
       * zero-indexed ordinal position of element in list
       * 
* * int32 offset = 1; * @return The offset. */ @java.lang.Override public int getOffset() { return offset_; } public static final int CHILD_FIELD_NUMBER = 2; private io.substrait.proto.Expression.ReferenceSegment child_; /** *
       * Optional child segment
       * 
* * .substrait.Expression.ReferenceSegment child = 2; * @return Whether the child field is set. */ @java.lang.Override public boolean hasChild() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Optional child segment
       * 
* * .substrait.Expression.ReferenceSegment child = 2; * @return The child. */ @java.lang.Override public io.substrait.proto.Expression.ReferenceSegment getChild() { return child_ == null ? io.substrait.proto.Expression.ReferenceSegment.getDefaultInstance() : child_; } /** *
       * Optional child segment
       * 
* * .substrait.Expression.ReferenceSegment child = 2; */ @java.lang.Override public io.substrait.proto.Expression.ReferenceSegmentOrBuilder getChildOrBuilder() { return child_ == null ? io.substrait.proto.Expression.ReferenceSegment.getDefaultInstance() : child_; } 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_ != 0) { output.writeInt32(1, offset_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getChild()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (offset_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, offset_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getChild()); } 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.ReferenceSegment.ListElement)) { return super.equals(obj); } io.substrait.proto.Expression.ReferenceSegment.ListElement other = (io.substrait.proto.Expression.ReferenceSegment.ListElement) obj; if (getOffset() != other.getOffset()) return false; if (hasChild() != other.hasChild()) return false; if (hasChild()) { if (!getChild() .equals(other.getChild())) 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) + getOffset(); if (hasChild()) { hash = (37 * hash) + CHILD_FIELD_NUMBER; hash = (53 * hash) + getChild().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Expression.ReferenceSegment.ListElement parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.ReferenceSegment.ListElement 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.ReferenceSegment.ListElement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.ReferenceSegment.ListElement 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.ReferenceSegment.ListElement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.ReferenceSegment.ListElement parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.ReferenceSegment.ListElement parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.ReferenceSegment.ListElement 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.ReferenceSegment.ListElement parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.ReferenceSegment.ListElement 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.ReferenceSegment.ListElement parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.ReferenceSegment.ListElement 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.ReferenceSegment.ListElement 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.ReferenceSegment.ListElement} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.ReferenceSegment.ListElement) io.substrait.proto.Expression.ReferenceSegment.ListElementOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_ReferenceSegment_ListElement_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_ReferenceSegment_ListElement_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.ReferenceSegment.ListElement.class, io.substrait.proto.Expression.ReferenceSegment.ListElement.Builder.class); } // Construct using io.substrait.proto.Expression.ReferenceSegment.ListElement.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getChildFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; offset_ = 0; child_ = null; if (childBuilder_ != null) { childBuilder_.dispose(); childBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_ReferenceSegment_ListElement_descriptor; } @java.lang.Override public io.substrait.proto.Expression.ReferenceSegment.ListElement getDefaultInstanceForType() { return io.substrait.proto.Expression.ReferenceSegment.ListElement.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.ReferenceSegment.ListElement build() { io.substrait.proto.Expression.ReferenceSegment.ListElement result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.ReferenceSegment.ListElement buildPartial() { io.substrait.proto.Expression.ReferenceSegment.ListElement result = new io.substrait.proto.Expression.ReferenceSegment.ListElement(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.substrait.proto.Expression.ReferenceSegment.ListElement result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.offset_ = offset_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.child_ = childBuilder_ == null ? child_ : childBuilder_.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.ReferenceSegment.ListElement) { return mergeFrom((io.substrait.proto.Expression.ReferenceSegment.ListElement)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.ReferenceSegment.ListElement other) { if (other == io.substrait.proto.Expression.ReferenceSegment.ListElement.getDefaultInstance()) return this; if (other.getOffset() != 0) { setOffset(other.getOffset()); } if (other.hasChild()) { mergeChild(other.getChild()); } 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.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getChildFieldBuilder().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 int offset_ ; /** *
         * zero-indexed ordinal position of element in list
         * 
* * int32 offset = 1; * @return The offset. */ @java.lang.Override public int getOffset() { return offset_; } /** *
         * zero-indexed ordinal position of element in list
         * 
* * int32 offset = 1; * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(int value) { offset_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * zero-indexed ordinal position of element in list
         * 
* * int32 offset = 1; * @return This builder for chaining. */ public Builder clearOffset() { bitField0_ = (bitField0_ & ~0x00000001); offset_ = 0; onChanged(); return this; } private io.substrait.proto.Expression.ReferenceSegment child_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.ReferenceSegment, io.substrait.proto.Expression.ReferenceSegment.Builder, io.substrait.proto.Expression.ReferenceSegmentOrBuilder> childBuilder_; /** *
         * Optional child segment
         * 
* * .substrait.Expression.ReferenceSegment child = 2; * @return Whether the child field is set. */ public boolean hasChild() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * Optional child segment
         * 
* * .substrait.Expression.ReferenceSegment child = 2; * @return The child. */ public io.substrait.proto.Expression.ReferenceSegment getChild() { if (childBuilder_ == null) { return child_ == null ? io.substrait.proto.Expression.ReferenceSegment.getDefaultInstance() : child_; } else { return childBuilder_.getMessage(); } } /** *
         * Optional child segment
         * 
* * .substrait.Expression.ReferenceSegment child = 2; */ public Builder setChild(io.substrait.proto.Expression.ReferenceSegment value) { if (childBuilder_ == null) { if (value == null) { throw new NullPointerException(); } child_ = value; } else { childBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Optional child segment
         * 
* * .substrait.Expression.ReferenceSegment child = 2; */ public Builder setChild( io.substrait.proto.Expression.ReferenceSegment.Builder builderForValue) { if (childBuilder_ == null) { child_ = builderForValue.build(); } else { childBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Optional child segment
         * 
* * .substrait.Expression.ReferenceSegment child = 2; */ public Builder mergeChild(io.substrait.proto.Expression.ReferenceSegment value) { if (childBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && child_ != null && child_ != io.substrait.proto.Expression.ReferenceSegment.getDefaultInstance()) { getChildBuilder().mergeFrom(value); } else { child_ = value; } } else { childBuilder_.mergeFrom(value); } if (child_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Optional child segment
         * 
* * .substrait.Expression.ReferenceSegment child = 2; */ public Builder clearChild() { bitField0_ = (bitField0_ & ~0x00000002); child_ = null; if (childBuilder_ != null) { childBuilder_.dispose(); childBuilder_ = null; } onChanged(); return this; } /** *
         * Optional child segment
         * 
* * .substrait.Expression.ReferenceSegment child = 2; */ public io.substrait.proto.Expression.ReferenceSegment.Builder getChildBuilder() { bitField0_ |= 0x00000002; onChanged(); return getChildFieldBuilder().getBuilder(); } /** *
         * Optional child segment
         * 
* * .substrait.Expression.ReferenceSegment child = 2; */ public io.substrait.proto.Expression.ReferenceSegmentOrBuilder getChildOrBuilder() { if (childBuilder_ != null) { return childBuilder_.getMessageOrBuilder(); } else { return child_ == null ? io.substrait.proto.Expression.ReferenceSegment.getDefaultInstance() : child_; } } /** *
         * Optional child segment
         * 
* * .substrait.Expression.ReferenceSegment child = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.ReferenceSegment, io.substrait.proto.Expression.ReferenceSegment.Builder, io.substrait.proto.Expression.ReferenceSegmentOrBuilder> getChildFieldBuilder() { if (childBuilder_ == null) { childBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.ReferenceSegment, io.substrait.proto.Expression.ReferenceSegment.Builder, io.substrait.proto.Expression.ReferenceSegmentOrBuilder>( getChild(), getParentForChildren(), isClean()); child_ = null; } return childBuilder_; } @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.ReferenceSegment.ListElement) } // @@protoc_insertion_point(class_scope:substrait.Expression.ReferenceSegment.ListElement) private static final io.substrait.proto.Expression.ReferenceSegment.ListElement DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.ReferenceSegment.ListElement(); } public static io.substrait.proto.Expression.ReferenceSegment.ListElement getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListElement 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.ReferenceSegment.ListElement getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int referenceTypeCase_ = 0; @SuppressWarnings("serial") private java.lang.Object referenceType_; public enum ReferenceTypeCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MAP_KEY(1), STRUCT_FIELD(2), LIST_ELEMENT(3), REFERENCETYPE_NOT_SET(0); private final int value; private ReferenceTypeCase(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 ReferenceTypeCase valueOf(int value) { return forNumber(value); } public static ReferenceTypeCase forNumber(int value) { switch (value) { case 1: return MAP_KEY; case 2: return STRUCT_FIELD; case 3: return LIST_ELEMENT; case 0: return REFERENCETYPE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ReferenceTypeCase getReferenceTypeCase() { return ReferenceTypeCase.forNumber( referenceTypeCase_); } public static final int MAP_KEY_FIELD_NUMBER = 1; /** * .substrait.Expression.ReferenceSegment.MapKey map_key = 1; * @return Whether the mapKey field is set. */ @java.lang.Override public boolean hasMapKey() { return referenceTypeCase_ == 1; } /** * .substrait.Expression.ReferenceSegment.MapKey map_key = 1; * @return The mapKey. */ @java.lang.Override public io.substrait.proto.Expression.ReferenceSegment.MapKey getMapKey() { if (referenceTypeCase_ == 1) { return (io.substrait.proto.Expression.ReferenceSegment.MapKey) referenceType_; } return io.substrait.proto.Expression.ReferenceSegment.MapKey.getDefaultInstance(); } /** * .substrait.Expression.ReferenceSegment.MapKey map_key = 1; */ @java.lang.Override public io.substrait.proto.Expression.ReferenceSegment.MapKeyOrBuilder getMapKeyOrBuilder() { if (referenceTypeCase_ == 1) { return (io.substrait.proto.Expression.ReferenceSegment.MapKey) referenceType_; } return io.substrait.proto.Expression.ReferenceSegment.MapKey.getDefaultInstance(); } public static final int STRUCT_FIELD_FIELD_NUMBER = 2; /** * .substrait.Expression.ReferenceSegment.StructField struct_field = 2; * @return Whether the structField field is set. */ @java.lang.Override public boolean hasStructField() { return referenceTypeCase_ == 2; } /** * .substrait.Expression.ReferenceSegment.StructField struct_field = 2; * @return The structField. */ @java.lang.Override public io.substrait.proto.Expression.ReferenceSegment.StructField getStructField() { if (referenceTypeCase_ == 2) { return (io.substrait.proto.Expression.ReferenceSegment.StructField) referenceType_; } return io.substrait.proto.Expression.ReferenceSegment.StructField.getDefaultInstance(); } /** * .substrait.Expression.ReferenceSegment.StructField struct_field = 2; */ @java.lang.Override public io.substrait.proto.Expression.ReferenceSegment.StructFieldOrBuilder getStructFieldOrBuilder() { if (referenceTypeCase_ == 2) { return (io.substrait.proto.Expression.ReferenceSegment.StructField) referenceType_; } return io.substrait.proto.Expression.ReferenceSegment.StructField.getDefaultInstance(); } public static final int LIST_ELEMENT_FIELD_NUMBER = 3; /** * .substrait.Expression.ReferenceSegment.ListElement list_element = 3; * @return Whether the listElement field is set. */ @java.lang.Override public boolean hasListElement() { return referenceTypeCase_ == 3; } /** * .substrait.Expression.ReferenceSegment.ListElement list_element = 3; * @return The listElement. */ @java.lang.Override public io.substrait.proto.Expression.ReferenceSegment.ListElement getListElement() { if (referenceTypeCase_ == 3) { return (io.substrait.proto.Expression.ReferenceSegment.ListElement) referenceType_; } return io.substrait.proto.Expression.ReferenceSegment.ListElement.getDefaultInstance(); } /** * .substrait.Expression.ReferenceSegment.ListElement list_element = 3; */ @java.lang.Override public io.substrait.proto.Expression.ReferenceSegment.ListElementOrBuilder getListElementOrBuilder() { if (referenceTypeCase_ == 3) { return (io.substrait.proto.Expression.ReferenceSegment.ListElement) referenceType_; } return io.substrait.proto.Expression.ReferenceSegment.ListElement.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 (referenceTypeCase_ == 1) { output.writeMessage(1, (io.substrait.proto.Expression.ReferenceSegment.MapKey) referenceType_); } if (referenceTypeCase_ == 2) { output.writeMessage(2, (io.substrait.proto.Expression.ReferenceSegment.StructField) referenceType_); } if (referenceTypeCase_ == 3) { output.writeMessage(3, (io.substrait.proto.Expression.ReferenceSegment.ListElement) referenceType_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (referenceTypeCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (io.substrait.proto.Expression.ReferenceSegment.MapKey) referenceType_); } if (referenceTypeCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.substrait.proto.Expression.ReferenceSegment.StructField) referenceType_); } if (referenceTypeCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (io.substrait.proto.Expression.ReferenceSegment.ListElement) referenceType_); } 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.ReferenceSegment)) { return super.equals(obj); } io.substrait.proto.Expression.ReferenceSegment other = (io.substrait.proto.Expression.ReferenceSegment) obj; if (!getReferenceTypeCase().equals(other.getReferenceTypeCase())) return false; switch (referenceTypeCase_) { case 1: if (!getMapKey() .equals(other.getMapKey())) return false; break; case 2: if (!getStructField() .equals(other.getStructField())) return false; break; case 3: if (!getListElement() .equals(other.getListElement())) 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 (referenceTypeCase_) { case 1: hash = (37 * hash) + MAP_KEY_FIELD_NUMBER; hash = (53 * hash) + getMapKey().hashCode(); break; case 2: hash = (37 * hash) + STRUCT_FIELD_FIELD_NUMBER; hash = (53 * hash) + getStructField().hashCode(); break; case 3: hash = (37 * hash) + LIST_ELEMENT_FIELD_NUMBER; hash = (53 * hash) + getListElement().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Expression.ReferenceSegment parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.ReferenceSegment 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.ReferenceSegment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.ReferenceSegment 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.ReferenceSegment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.ReferenceSegment parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.ReferenceSegment parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.ReferenceSegment 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.ReferenceSegment parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.ReferenceSegment 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.ReferenceSegment parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.ReferenceSegment 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.ReferenceSegment 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 way to reference the inner property of a complex record. Can reference
     * either a map key by literal, a struct field by the ordinal position of
     * the desired field or a particular element in an array. Supports
     * expressions that would roughly translate to something similar to:
     * a.b[2].c['my_map_key'].x where a,b,c and x are struct field references
     * (ordinalized in the internal representation here), [2] is a list offset
     * and ['my_map_key'] is a reference into a map field.
     * 
* * Protobuf type {@code substrait.Expression.ReferenceSegment} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.ReferenceSegment) io.substrait.proto.Expression.ReferenceSegmentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_ReferenceSegment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_ReferenceSegment_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.ReferenceSegment.class, io.substrait.proto.Expression.ReferenceSegment.Builder.class); } // Construct using io.substrait.proto.Expression.ReferenceSegment.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (mapKeyBuilder_ != null) { mapKeyBuilder_.clear(); } if (structFieldBuilder_ != null) { structFieldBuilder_.clear(); } if (listElementBuilder_ != null) { listElementBuilder_.clear(); } referenceTypeCase_ = 0; referenceType_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_ReferenceSegment_descriptor; } @java.lang.Override public io.substrait.proto.Expression.ReferenceSegment getDefaultInstanceForType() { return io.substrait.proto.Expression.ReferenceSegment.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.ReferenceSegment build() { io.substrait.proto.Expression.ReferenceSegment result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.ReferenceSegment buildPartial() { io.substrait.proto.Expression.ReferenceSegment result = new io.substrait.proto.Expression.ReferenceSegment(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(io.substrait.proto.Expression.ReferenceSegment result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(io.substrait.proto.Expression.ReferenceSegment result) { result.referenceTypeCase_ = referenceTypeCase_; result.referenceType_ = this.referenceType_; if (referenceTypeCase_ == 1 && mapKeyBuilder_ != null) { result.referenceType_ = mapKeyBuilder_.build(); } if (referenceTypeCase_ == 2 && structFieldBuilder_ != null) { result.referenceType_ = structFieldBuilder_.build(); } if (referenceTypeCase_ == 3 && listElementBuilder_ != null) { result.referenceType_ = listElementBuilder_.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.ReferenceSegment) { return mergeFrom((io.substrait.proto.Expression.ReferenceSegment)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.ReferenceSegment other) { if (other == io.substrait.proto.Expression.ReferenceSegment.getDefaultInstance()) return this; switch (other.getReferenceTypeCase()) { case MAP_KEY: { mergeMapKey(other.getMapKey()); break; } case STRUCT_FIELD: { mergeStructField(other.getStructField()); break; } case LIST_ELEMENT: { mergeListElement(other.getListElement()); break; } case REFERENCETYPE_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( getMapKeyFieldBuilder().getBuilder(), extensionRegistry); referenceTypeCase_ = 1; break; } // case 10 case 18: { input.readMessage( getStructFieldFieldBuilder().getBuilder(), extensionRegistry); referenceTypeCase_ = 2; break; } // case 18 case 26: { input.readMessage( getListElementFieldBuilder().getBuilder(), extensionRegistry); referenceTypeCase_ = 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 referenceTypeCase_ = 0; private java.lang.Object referenceType_; public ReferenceTypeCase getReferenceTypeCase() { return ReferenceTypeCase.forNumber( referenceTypeCase_); } public Builder clearReferenceType() { referenceTypeCase_ = 0; referenceType_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.ReferenceSegment.MapKey, io.substrait.proto.Expression.ReferenceSegment.MapKey.Builder, io.substrait.proto.Expression.ReferenceSegment.MapKeyOrBuilder> mapKeyBuilder_; /** * .substrait.Expression.ReferenceSegment.MapKey map_key = 1; * @return Whether the mapKey field is set. */ @java.lang.Override public boolean hasMapKey() { return referenceTypeCase_ == 1; } /** * .substrait.Expression.ReferenceSegment.MapKey map_key = 1; * @return The mapKey. */ @java.lang.Override public io.substrait.proto.Expression.ReferenceSegment.MapKey getMapKey() { if (mapKeyBuilder_ == null) { if (referenceTypeCase_ == 1) { return (io.substrait.proto.Expression.ReferenceSegment.MapKey) referenceType_; } return io.substrait.proto.Expression.ReferenceSegment.MapKey.getDefaultInstance(); } else { if (referenceTypeCase_ == 1) { return mapKeyBuilder_.getMessage(); } return io.substrait.proto.Expression.ReferenceSegment.MapKey.getDefaultInstance(); } } /** * .substrait.Expression.ReferenceSegment.MapKey map_key = 1; */ public Builder setMapKey(io.substrait.proto.Expression.ReferenceSegment.MapKey value) { if (mapKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } referenceType_ = value; onChanged(); } else { mapKeyBuilder_.setMessage(value); } referenceTypeCase_ = 1; return this; } /** * .substrait.Expression.ReferenceSegment.MapKey map_key = 1; */ public Builder setMapKey( io.substrait.proto.Expression.ReferenceSegment.MapKey.Builder builderForValue) { if (mapKeyBuilder_ == null) { referenceType_ = builderForValue.build(); onChanged(); } else { mapKeyBuilder_.setMessage(builderForValue.build()); } referenceTypeCase_ = 1; return this; } /** * .substrait.Expression.ReferenceSegment.MapKey map_key = 1; */ public Builder mergeMapKey(io.substrait.proto.Expression.ReferenceSegment.MapKey value) { if (mapKeyBuilder_ == null) { if (referenceTypeCase_ == 1 && referenceType_ != io.substrait.proto.Expression.ReferenceSegment.MapKey.getDefaultInstance()) { referenceType_ = io.substrait.proto.Expression.ReferenceSegment.MapKey.newBuilder((io.substrait.proto.Expression.ReferenceSegment.MapKey) referenceType_) .mergeFrom(value).buildPartial(); } else { referenceType_ = value; } onChanged(); } else { if (referenceTypeCase_ == 1) { mapKeyBuilder_.mergeFrom(value); } else { mapKeyBuilder_.setMessage(value); } } referenceTypeCase_ = 1; return this; } /** * .substrait.Expression.ReferenceSegment.MapKey map_key = 1; */ public Builder clearMapKey() { if (mapKeyBuilder_ == null) { if (referenceTypeCase_ == 1) { referenceTypeCase_ = 0; referenceType_ = null; onChanged(); } } else { if (referenceTypeCase_ == 1) { referenceTypeCase_ = 0; referenceType_ = null; } mapKeyBuilder_.clear(); } return this; } /** * .substrait.Expression.ReferenceSegment.MapKey map_key = 1; */ public io.substrait.proto.Expression.ReferenceSegment.MapKey.Builder getMapKeyBuilder() { return getMapKeyFieldBuilder().getBuilder(); } /** * .substrait.Expression.ReferenceSegment.MapKey map_key = 1; */ @java.lang.Override public io.substrait.proto.Expression.ReferenceSegment.MapKeyOrBuilder getMapKeyOrBuilder() { if ((referenceTypeCase_ == 1) && (mapKeyBuilder_ != null)) { return mapKeyBuilder_.getMessageOrBuilder(); } else { if (referenceTypeCase_ == 1) { return (io.substrait.proto.Expression.ReferenceSegment.MapKey) referenceType_; } return io.substrait.proto.Expression.ReferenceSegment.MapKey.getDefaultInstance(); } } /** * .substrait.Expression.ReferenceSegment.MapKey map_key = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.ReferenceSegment.MapKey, io.substrait.proto.Expression.ReferenceSegment.MapKey.Builder, io.substrait.proto.Expression.ReferenceSegment.MapKeyOrBuilder> getMapKeyFieldBuilder() { if (mapKeyBuilder_ == null) { if (!(referenceTypeCase_ == 1)) { referenceType_ = io.substrait.proto.Expression.ReferenceSegment.MapKey.getDefaultInstance(); } mapKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.ReferenceSegment.MapKey, io.substrait.proto.Expression.ReferenceSegment.MapKey.Builder, io.substrait.proto.Expression.ReferenceSegment.MapKeyOrBuilder>( (io.substrait.proto.Expression.ReferenceSegment.MapKey) referenceType_, getParentForChildren(), isClean()); referenceType_ = null; } referenceTypeCase_ = 1; onChanged(); return mapKeyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.ReferenceSegment.StructField, io.substrait.proto.Expression.ReferenceSegment.StructField.Builder, io.substrait.proto.Expression.ReferenceSegment.StructFieldOrBuilder> structFieldBuilder_; /** * .substrait.Expression.ReferenceSegment.StructField struct_field = 2; * @return Whether the structField field is set. */ @java.lang.Override public boolean hasStructField() { return referenceTypeCase_ == 2; } /** * .substrait.Expression.ReferenceSegment.StructField struct_field = 2; * @return The structField. */ @java.lang.Override public io.substrait.proto.Expression.ReferenceSegment.StructField getStructField() { if (structFieldBuilder_ == null) { if (referenceTypeCase_ == 2) { return (io.substrait.proto.Expression.ReferenceSegment.StructField) referenceType_; } return io.substrait.proto.Expression.ReferenceSegment.StructField.getDefaultInstance(); } else { if (referenceTypeCase_ == 2) { return structFieldBuilder_.getMessage(); } return io.substrait.proto.Expression.ReferenceSegment.StructField.getDefaultInstance(); } } /** * .substrait.Expression.ReferenceSegment.StructField struct_field = 2; */ public Builder setStructField(io.substrait.proto.Expression.ReferenceSegment.StructField value) { if (structFieldBuilder_ == null) { if (value == null) { throw new NullPointerException(); } referenceType_ = value; onChanged(); } else { structFieldBuilder_.setMessage(value); } referenceTypeCase_ = 2; return this; } /** * .substrait.Expression.ReferenceSegment.StructField struct_field = 2; */ public Builder setStructField( io.substrait.proto.Expression.ReferenceSegment.StructField.Builder builderForValue) { if (structFieldBuilder_ == null) { referenceType_ = builderForValue.build(); onChanged(); } else { structFieldBuilder_.setMessage(builderForValue.build()); } referenceTypeCase_ = 2; return this; } /** * .substrait.Expression.ReferenceSegment.StructField struct_field = 2; */ public Builder mergeStructField(io.substrait.proto.Expression.ReferenceSegment.StructField value) { if (structFieldBuilder_ == null) { if (referenceTypeCase_ == 2 && referenceType_ != io.substrait.proto.Expression.ReferenceSegment.StructField.getDefaultInstance()) { referenceType_ = io.substrait.proto.Expression.ReferenceSegment.StructField.newBuilder((io.substrait.proto.Expression.ReferenceSegment.StructField) referenceType_) .mergeFrom(value).buildPartial(); } else { referenceType_ = value; } onChanged(); } else { if (referenceTypeCase_ == 2) { structFieldBuilder_.mergeFrom(value); } else { structFieldBuilder_.setMessage(value); } } referenceTypeCase_ = 2; return this; } /** * .substrait.Expression.ReferenceSegment.StructField struct_field = 2; */ public Builder clearStructField() { if (structFieldBuilder_ == null) { if (referenceTypeCase_ == 2) { referenceTypeCase_ = 0; referenceType_ = null; onChanged(); } } else { if (referenceTypeCase_ == 2) { referenceTypeCase_ = 0; referenceType_ = null; } structFieldBuilder_.clear(); } return this; } /** * .substrait.Expression.ReferenceSegment.StructField struct_field = 2; */ public io.substrait.proto.Expression.ReferenceSegment.StructField.Builder getStructFieldBuilder() { return getStructFieldFieldBuilder().getBuilder(); } /** * .substrait.Expression.ReferenceSegment.StructField struct_field = 2; */ @java.lang.Override public io.substrait.proto.Expression.ReferenceSegment.StructFieldOrBuilder getStructFieldOrBuilder() { if ((referenceTypeCase_ == 2) && (structFieldBuilder_ != null)) { return structFieldBuilder_.getMessageOrBuilder(); } else { if (referenceTypeCase_ == 2) { return (io.substrait.proto.Expression.ReferenceSegment.StructField) referenceType_; } return io.substrait.proto.Expression.ReferenceSegment.StructField.getDefaultInstance(); } } /** * .substrait.Expression.ReferenceSegment.StructField struct_field = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.ReferenceSegment.StructField, io.substrait.proto.Expression.ReferenceSegment.StructField.Builder, io.substrait.proto.Expression.ReferenceSegment.StructFieldOrBuilder> getStructFieldFieldBuilder() { if (structFieldBuilder_ == null) { if (!(referenceTypeCase_ == 2)) { referenceType_ = io.substrait.proto.Expression.ReferenceSegment.StructField.getDefaultInstance(); } structFieldBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.ReferenceSegment.StructField, io.substrait.proto.Expression.ReferenceSegment.StructField.Builder, io.substrait.proto.Expression.ReferenceSegment.StructFieldOrBuilder>( (io.substrait.proto.Expression.ReferenceSegment.StructField) referenceType_, getParentForChildren(), isClean()); referenceType_ = null; } referenceTypeCase_ = 2; onChanged(); return structFieldBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.ReferenceSegment.ListElement, io.substrait.proto.Expression.ReferenceSegment.ListElement.Builder, io.substrait.proto.Expression.ReferenceSegment.ListElementOrBuilder> listElementBuilder_; /** * .substrait.Expression.ReferenceSegment.ListElement list_element = 3; * @return Whether the listElement field is set. */ @java.lang.Override public boolean hasListElement() { return referenceTypeCase_ == 3; } /** * .substrait.Expression.ReferenceSegment.ListElement list_element = 3; * @return The listElement. */ @java.lang.Override public io.substrait.proto.Expression.ReferenceSegment.ListElement getListElement() { if (listElementBuilder_ == null) { if (referenceTypeCase_ == 3) { return (io.substrait.proto.Expression.ReferenceSegment.ListElement) referenceType_; } return io.substrait.proto.Expression.ReferenceSegment.ListElement.getDefaultInstance(); } else { if (referenceTypeCase_ == 3) { return listElementBuilder_.getMessage(); } return io.substrait.proto.Expression.ReferenceSegment.ListElement.getDefaultInstance(); } } /** * .substrait.Expression.ReferenceSegment.ListElement list_element = 3; */ public Builder setListElement(io.substrait.proto.Expression.ReferenceSegment.ListElement value) { if (listElementBuilder_ == null) { if (value == null) { throw new NullPointerException(); } referenceType_ = value; onChanged(); } else { listElementBuilder_.setMessage(value); } referenceTypeCase_ = 3; return this; } /** * .substrait.Expression.ReferenceSegment.ListElement list_element = 3; */ public Builder setListElement( io.substrait.proto.Expression.ReferenceSegment.ListElement.Builder builderForValue) { if (listElementBuilder_ == null) { referenceType_ = builderForValue.build(); onChanged(); } else { listElementBuilder_.setMessage(builderForValue.build()); } referenceTypeCase_ = 3; return this; } /** * .substrait.Expression.ReferenceSegment.ListElement list_element = 3; */ public Builder mergeListElement(io.substrait.proto.Expression.ReferenceSegment.ListElement value) { if (listElementBuilder_ == null) { if (referenceTypeCase_ == 3 && referenceType_ != io.substrait.proto.Expression.ReferenceSegment.ListElement.getDefaultInstance()) { referenceType_ = io.substrait.proto.Expression.ReferenceSegment.ListElement.newBuilder((io.substrait.proto.Expression.ReferenceSegment.ListElement) referenceType_) .mergeFrom(value).buildPartial(); } else { referenceType_ = value; } onChanged(); } else { if (referenceTypeCase_ == 3) { listElementBuilder_.mergeFrom(value); } else { listElementBuilder_.setMessage(value); } } referenceTypeCase_ = 3; return this; } /** * .substrait.Expression.ReferenceSegment.ListElement list_element = 3; */ public Builder clearListElement() { if (listElementBuilder_ == null) { if (referenceTypeCase_ == 3) { referenceTypeCase_ = 0; referenceType_ = null; onChanged(); } } else { if (referenceTypeCase_ == 3) { referenceTypeCase_ = 0; referenceType_ = null; } listElementBuilder_.clear(); } return this; } /** * .substrait.Expression.ReferenceSegment.ListElement list_element = 3; */ public io.substrait.proto.Expression.ReferenceSegment.ListElement.Builder getListElementBuilder() { return getListElementFieldBuilder().getBuilder(); } /** * .substrait.Expression.ReferenceSegment.ListElement list_element = 3; */ @java.lang.Override public io.substrait.proto.Expression.ReferenceSegment.ListElementOrBuilder getListElementOrBuilder() { if ((referenceTypeCase_ == 3) && (listElementBuilder_ != null)) { return listElementBuilder_.getMessageOrBuilder(); } else { if (referenceTypeCase_ == 3) { return (io.substrait.proto.Expression.ReferenceSegment.ListElement) referenceType_; } return io.substrait.proto.Expression.ReferenceSegment.ListElement.getDefaultInstance(); } } /** * .substrait.Expression.ReferenceSegment.ListElement list_element = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.ReferenceSegment.ListElement, io.substrait.proto.Expression.ReferenceSegment.ListElement.Builder, io.substrait.proto.Expression.ReferenceSegment.ListElementOrBuilder> getListElementFieldBuilder() { if (listElementBuilder_ == null) { if (!(referenceTypeCase_ == 3)) { referenceType_ = io.substrait.proto.Expression.ReferenceSegment.ListElement.getDefaultInstance(); } listElementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.ReferenceSegment.ListElement, io.substrait.proto.Expression.ReferenceSegment.ListElement.Builder, io.substrait.proto.Expression.ReferenceSegment.ListElementOrBuilder>( (io.substrait.proto.Expression.ReferenceSegment.ListElement) referenceType_, getParentForChildren(), isClean()); referenceType_ = null; } referenceTypeCase_ = 3; onChanged(); return listElementBuilder_; } @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.ReferenceSegment) } // @@protoc_insertion_point(class_scope:substrait.Expression.ReferenceSegment) private static final io.substrait.proto.Expression.ReferenceSegment DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.ReferenceSegment(); } public static io.substrait.proto.Expression.ReferenceSegment getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReferenceSegment 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.ReferenceSegment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MaskExpressionOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.MaskExpression) com.google.protobuf.MessageOrBuilder { /** * .substrait.Expression.MaskExpression.StructSelect select = 1; * @return Whether the select field is set. */ boolean hasSelect(); /** * .substrait.Expression.MaskExpression.StructSelect select = 1; * @return The select. */ io.substrait.proto.Expression.MaskExpression.StructSelect getSelect(); /** * .substrait.Expression.MaskExpression.StructSelect select = 1; */ io.substrait.proto.Expression.MaskExpression.StructSelectOrBuilder getSelectOrBuilder(); /** * bool maintain_singular_struct = 2; * @return The maintainSingularStruct. */ boolean getMaintainSingularStruct(); } /** *
   * A reference that takes an existing subtype and selectively removes fields
   * from it. For example, one might initially have an inner struct with 100
   * fields but a a particular operation only needs to interact with only 2 of
   * those 100 fields. In this situation, one would use a mask expression to
   * eliminate the 98 fields that are not relevant to the rest of the operation
   * pipeline.
   *
   * Note that this does not fundamentally alter the structure of data beyond
   * the elimination of unnecessary elements.
   * 
* * Protobuf type {@code substrait.Expression.MaskExpression} */ public static final class MaskExpression extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.MaskExpression) MaskExpressionOrBuilder { private static final long serialVersionUID = 0L; // Use MaskExpression.newBuilder() to construct. private MaskExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MaskExpression() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MaskExpression(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.MaskExpression.class, io.substrait.proto.Expression.MaskExpression.Builder.class); } public interface SelectOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.MaskExpression.Select) com.google.protobuf.MessageOrBuilder { /** * .substrait.Expression.MaskExpression.StructSelect struct = 1; * @return Whether the struct field is set. */ boolean hasStruct(); /** * .substrait.Expression.MaskExpression.StructSelect struct = 1; * @return The struct. */ io.substrait.proto.Expression.MaskExpression.StructSelect getStruct(); /** * .substrait.Expression.MaskExpression.StructSelect struct = 1; */ io.substrait.proto.Expression.MaskExpression.StructSelectOrBuilder getStructOrBuilder(); /** * .substrait.Expression.MaskExpression.ListSelect list = 2; * @return Whether the list field is set. */ boolean hasList(); /** * .substrait.Expression.MaskExpression.ListSelect list = 2; * @return The list. */ io.substrait.proto.Expression.MaskExpression.ListSelect getList(); /** * .substrait.Expression.MaskExpression.ListSelect list = 2; */ io.substrait.proto.Expression.MaskExpression.ListSelectOrBuilder getListOrBuilder(); /** * .substrait.Expression.MaskExpression.MapSelect map = 3; * @return Whether the map field is set. */ boolean hasMap(); /** * .substrait.Expression.MaskExpression.MapSelect map = 3; * @return The map. */ io.substrait.proto.Expression.MaskExpression.MapSelect getMap(); /** * .substrait.Expression.MaskExpression.MapSelect map = 3; */ io.substrait.proto.Expression.MaskExpression.MapSelectOrBuilder getMapOrBuilder(); io.substrait.proto.Expression.MaskExpression.Select.TypeCase getTypeCase(); } /** * Protobuf type {@code substrait.Expression.MaskExpression.Select} */ public static final class Select extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.MaskExpression.Select) SelectOrBuilder { private static final long serialVersionUID = 0L; // Use Select.newBuilder() to construct. private Select(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Select() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Select(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_Select_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_Select_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.MaskExpression.Select.class, io.substrait.proto.Expression.MaskExpression.Select.Builder.class); } private int typeCase_ = 0; @SuppressWarnings("serial") private java.lang.Object type_; public enum TypeCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STRUCT(1), LIST(2), MAP(3), TYPE_NOT_SET(0); private final int value; private TypeCase(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 TypeCase valueOf(int value) { return forNumber(value); } public static TypeCase forNumber(int value) { switch (value) { case 1: return STRUCT; case 2: return LIST; case 3: return MAP; case 0: return TYPE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public TypeCase getTypeCase() { return TypeCase.forNumber( typeCase_); } public static final int STRUCT_FIELD_NUMBER = 1; /** * .substrait.Expression.MaskExpression.StructSelect struct = 1; * @return Whether the struct field is set. */ @java.lang.Override public boolean hasStruct() { return typeCase_ == 1; } /** * .substrait.Expression.MaskExpression.StructSelect struct = 1; * @return The struct. */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.StructSelect getStruct() { if (typeCase_ == 1) { return (io.substrait.proto.Expression.MaskExpression.StructSelect) type_; } return io.substrait.proto.Expression.MaskExpression.StructSelect.getDefaultInstance(); } /** * .substrait.Expression.MaskExpression.StructSelect struct = 1; */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.StructSelectOrBuilder getStructOrBuilder() { if (typeCase_ == 1) { return (io.substrait.proto.Expression.MaskExpression.StructSelect) type_; } return io.substrait.proto.Expression.MaskExpression.StructSelect.getDefaultInstance(); } public static final int LIST_FIELD_NUMBER = 2; /** * .substrait.Expression.MaskExpression.ListSelect list = 2; * @return Whether the list field is set. */ @java.lang.Override public boolean hasList() { return typeCase_ == 2; } /** * .substrait.Expression.MaskExpression.ListSelect list = 2; * @return The list. */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.ListSelect getList() { if (typeCase_ == 2) { return (io.substrait.proto.Expression.MaskExpression.ListSelect) type_; } return io.substrait.proto.Expression.MaskExpression.ListSelect.getDefaultInstance(); } /** * .substrait.Expression.MaskExpression.ListSelect list = 2; */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.ListSelectOrBuilder getListOrBuilder() { if (typeCase_ == 2) { return (io.substrait.proto.Expression.MaskExpression.ListSelect) type_; } return io.substrait.proto.Expression.MaskExpression.ListSelect.getDefaultInstance(); } public static final int MAP_FIELD_NUMBER = 3; /** * .substrait.Expression.MaskExpression.MapSelect map = 3; * @return Whether the map field is set. */ @java.lang.Override public boolean hasMap() { return typeCase_ == 3; } /** * .substrait.Expression.MaskExpression.MapSelect map = 3; * @return The map. */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.MapSelect getMap() { if (typeCase_ == 3) { return (io.substrait.proto.Expression.MaskExpression.MapSelect) type_; } return io.substrait.proto.Expression.MaskExpression.MapSelect.getDefaultInstance(); } /** * .substrait.Expression.MaskExpression.MapSelect map = 3; */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.MapSelectOrBuilder getMapOrBuilder() { if (typeCase_ == 3) { return (io.substrait.proto.Expression.MaskExpression.MapSelect) type_; } return io.substrait.proto.Expression.MaskExpression.MapSelect.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 (typeCase_ == 1) { output.writeMessage(1, (io.substrait.proto.Expression.MaskExpression.StructSelect) type_); } if (typeCase_ == 2) { output.writeMessage(2, (io.substrait.proto.Expression.MaskExpression.ListSelect) type_); } if (typeCase_ == 3) { output.writeMessage(3, (io.substrait.proto.Expression.MaskExpression.MapSelect) type_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (typeCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (io.substrait.proto.Expression.MaskExpression.StructSelect) type_); } if (typeCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.substrait.proto.Expression.MaskExpression.ListSelect) type_); } if (typeCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (io.substrait.proto.Expression.MaskExpression.MapSelect) type_); } 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.MaskExpression.Select)) { return super.equals(obj); } io.substrait.proto.Expression.MaskExpression.Select other = (io.substrait.proto.Expression.MaskExpression.Select) obj; if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 1: if (!getStruct() .equals(other.getStruct())) return false; break; case 2: if (!getList() .equals(other.getList())) return false; break; case 3: 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(); switch (typeCase_) { case 1: hash = (37 * hash) + STRUCT_FIELD_NUMBER; hash = (53 * hash) + getStruct().hashCode(); break; case 2: hash = (37 * hash) + LIST_FIELD_NUMBER; hash = (53 * hash) + getList().hashCode(); break; case 3: 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.MaskExpression.Select parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.Select 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.MaskExpression.Select parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.Select 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.MaskExpression.Select parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.Select parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.MaskExpression.Select parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.Select 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.MaskExpression.Select parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.Select 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.MaskExpression.Select parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.Select 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.MaskExpression.Select 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.MaskExpression.Select} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.MaskExpression.Select) io.substrait.proto.Expression.MaskExpression.SelectOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_Select_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_Select_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.MaskExpression.Select.class, io.substrait.proto.Expression.MaskExpression.Select.Builder.class); } // Construct using io.substrait.proto.Expression.MaskExpression.Select.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (structBuilder_ != null) { structBuilder_.clear(); } if (listBuilder_ != null) { listBuilder_.clear(); } if (mapBuilder_ != null) { mapBuilder_.clear(); } typeCase_ = 0; type_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_Select_descriptor; } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.Select getDefaultInstanceForType() { return io.substrait.proto.Expression.MaskExpression.Select.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.Select build() { io.substrait.proto.Expression.MaskExpression.Select result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.Select buildPartial() { io.substrait.proto.Expression.MaskExpression.Select result = new io.substrait.proto.Expression.MaskExpression.Select(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(io.substrait.proto.Expression.MaskExpression.Select result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(io.substrait.proto.Expression.MaskExpression.Select result) { result.typeCase_ = typeCase_; result.type_ = this.type_; if (typeCase_ == 1 && structBuilder_ != null) { result.type_ = structBuilder_.build(); } if (typeCase_ == 2 && listBuilder_ != null) { result.type_ = listBuilder_.build(); } if (typeCase_ == 3 && mapBuilder_ != null) { result.type_ = 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.MaskExpression.Select) { return mergeFrom((io.substrait.proto.Expression.MaskExpression.Select)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.MaskExpression.Select other) { if (other == io.substrait.proto.Expression.MaskExpression.Select.getDefaultInstance()) return this; switch (other.getTypeCase()) { case STRUCT: { mergeStruct(other.getStruct()); break; } case LIST: { mergeList(other.getList()); break; } case MAP: { mergeMap(other.getMap()); break; } case TYPE_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( getStructFieldBuilder().getBuilder(), extensionRegistry); typeCase_ = 1; break; } // case 10 case 18: { input.readMessage( getListFieldBuilder().getBuilder(), extensionRegistry); typeCase_ = 2; break; } // case 18 case 26: { input.readMessage( getMapFieldBuilder().getBuilder(), extensionRegistry); typeCase_ = 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 typeCase_ = 0; private java.lang.Object type_; public TypeCase getTypeCase() { return TypeCase.forNumber( typeCase_); } public Builder clearType() { typeCase_ = 0; type_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.StructSelect, io.substrait.proto.Expression.MaskExpression.StructSelect.Builder, io.substrait.proto.Expression.MaskExpression.StructSelectOrBuilder> structBuilder_; /** * .substrait.Expression.MaskExpression.StructSelect struct = 1; * @return Whether the struct field is set. */ @java.lang.Override public boolean hasStruct() { return typeCase_ == 1; } /** * .substrait.Expression.MaskExpression.StructSelect struct = 1; * @return The struct. */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.StructSelect getStruct() { if (structBuilder_ == null) { if (typeCase_ == 1) { return (io.substrait.proto.Expression.MaskExpression.StructSelect) type_; } return io.substrait.proto.Expression.MaskExpression.StructSelect.getDefaultInstance(); } else { if (typeCase_ == 1) { return structBuilder_.getMessage(); } return io.substrait.proto.Expression.MaskExpression.StructSelect.getDefaultInstance(); } } /** * .substrait.Expression.MaskExpression.StructSelect struct = 1; */ public Builder setStruct(io.substrait.proto.Expression.MaskExpression.StructSelect value) { if (structBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { structBuilder_.setMessage(value); } typeCase_ = 1; return this; } /** * .substrait.Expression.MaskExpression.StructSelect struct = 1; */ public Builder setStruct( io.substrait.proto.Expression.MaskExpression.StructSelect.Builder builderForValue) { if (structBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { structBuilder_.setMessage(builderForValue.build()); } typeCase_ = 1; return this; } /** * .substrait.Expression.MaskExpression.StructSelect struct = 1; */ public Builder mergeStruct(io.substrait.proto.Expression.MaskExpression.StructSelect value) { if (structBuilder_ == null) { if (typeCase_ == 1 && type_ != io.substrait.proto.Expression.MaskExpression.StructSelect.getDefaultInstance()) { type_ = io.substrait.proto.Expression.MaskExpression.StructSelect.newBuilder((io.substrait.proto.Expression.MaskExpression.StructSelect) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 1) { structBuilder_.mergeFrom(value); } else { structBuilder_.setMessage(value); } } typeCase_ = 1; return this; } /** * .substrait.Expression.MaskExpression.StructSelect struct = 1; */ public Builder clearStruct() { if (structBuilder_ == null) { if (typeCase_ == 1) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 1) { typeCase_ = 0; type_ = null; } structBuilder_.clear(); } return this; } /** * .substrait.Expression.MaskExpression.StructSelect struct = 1; */ public io.substrait.proto.Expression.MaskExpression.StructSelect.Builder getStructBuilder() { return getStructFieldBuilder().getBuilder(); } /** * .substrait.Expression.MaskExpression.StructSelect struct = 1; */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.StructSelectOrBuilder getStructOrBuilder() { if ((typeCase_ == 1) && (structBuilder_ != null)) { return structBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 1) { return (io.substrait.proto.Expression.MaskExpression.StructSelect) type_; } return io.substrait.proto.Expression.MaskExpression.StructSelect.getDefaultInstance(); } } /** * .substrait.Expression.MaskExpression.StructSelect struct = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.StructSelect, io.substrait.proto.Expression.MaskExpression.StructSelect.Builder, io.substrait.proto.Expression.MaskExpression.StructSelectOrBuilder> getStructFieldBuilder() { if (structBuilder_ == null) { if (!(typeCase_ == 1)) { type_ = io.substrait.proto.Expression.MaskExpression.StructSelect.getDefaultInstance(); } structBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.StructSelect, io.substrait.proto.Expression.MaskExpression.StructSelect.Builder, io.substrait.proto.Expression.MaskExpression.StructSelectOrBuilder>( (io.substrait.proto.Expression.MaskExpression.StructSelect) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 1; onChanged(); return structBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.ListSelect, io.substrait.proto.Expression.MaskExpression.ListSelect.Builder, io.substrait.proto.Expression.MaskExpression.ListSelectOrBuilder> listBuilder_; /** * .substrait.Expression.MaskExpression.ListSelect list = 2; * @return Whether the list field is set. */ @java.lang.Override public boolean hasList() { return typeCase_ == 2; } /** * .substrait.Expression.MaskExpression.ListSelect list = 2; * @return The list. */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.ListSelect getList() { if (listBuilder_ == null) { if (typeCase_ == 2) { return (io.substrait.proto.Expression.MaskExpression.ListSelect) type_; } return io.substrait.proto.Expression.MaskExpression.ListSelect.getDefaultInstance(); } else { if (typeCase_ == 2) { return listBuilder_.getMessage(); } return io.substrait.proto.Expression.MaskExpression.ListSelect.getDefaultInstance(); } } /** * .substrait.Expression.MaskExpression.ListSelect list = 2; */ public Builder setList(io.substrait.proto.Expression.MaskExpression.ListSelect value) { if (listBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { listBuilder_.setMessage(value); } typeCase_ = 2; return this; } /** * .substrait.Expression.MaskExpression.ListSelect list = 2; */ public Builder setList( io.substrait.proto.Expression.MaskExpression.ListSelect.Builder builderForValue) { if (listBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { listBuilder_.setMessage(builderForValue.build()); } typeCase_ = 2; return this; } /** * .substrait.Expression.MaskExpression.ListSelect list = 2; */ public Builder mergeList(io.substrait.proto.Expression.MaskExpression.ListSelect value) { if (listBuilder_ == null) { if (typeCase_ == 2 && type_ != io.substrait.proto.Expression.MaskExpression.ListSelect.getDefaultInstance()) { type_ = io.substrait.proto.Expression.MaskExpression.ListSelect.newBuilder((io.substrait.proto.Expression.MaskExpression.ListSelect) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 2) { listBuilder_.mergeFrom(value); } else { listBuilder_.setMessage(value); } } typeCase_ = 2; return this; } /** * .substrait.Expression.MaskExpression.ListSelect list = 2; */ public Builder clearList() { if (listBuilder_ == null) { if (typeCase_ == 2) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 2) { typeCase_ = 0; type_ = null; } listBuilder_.clear(); } return this; } /** * .substrait.Expression.MaskExpression.ListSelect list = 2; */ public io.substrait.proto.Expression.MaskExpression.ListSelect.Builder getListBuilder() { return getListFieldBuilder().getBuilder(); } /** * .substrait.Expression.MaskExpression.ListSelect list = 2; */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.ListSelectOrBuilder getListOrBuilder() { if ((typeCase_ == 2) && (listBuilder_ != null)) { return listBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 2) { return (io.substrait.proto.Expression.MaskExpression.ListSelect) type_; } return io.substrait.proto.Expression.MaskExpression.ListSelect.getDefaultInstance(); } } /** * .substrait.Expression.MaskExpression.ListSelect list = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.ListSelect, io.substrait.proto.Expression.MaskExpression.ListSelect.Builder, io.substrait.proto.Expression.MaskExpression.ListSelectOrBuilder> getListFieldBuilder() { if (listBuilder_ == null) { if (!(typeCase_ == 2)) { type_ = io.substrait.proto.Expression.MaskExpression.ListSelect.getDefaultInstance(); } listBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.ListSelect, io.substrait.proto.Expression.MaskExpression.ListSelect.Builder, io.substrait.proto.Expression.MaskExpression.ListSelectOrBuilder>( (io.substrait.proto.Expression.MaskExpression.ListSelect) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 2; onChanged(); return listBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.MapSelect, io.substrait.proto.Expression.MaskExpression.MapSelect.Builder, io.substrait.proto.Expression.MaskExpression.MapSelectOrBuilder> mapBuilder_; /** * .substrait.Expression.MaskExpression.MapSelect map = 3; * @return Whether the map field is set. */ @java.lang.Override public boolean hasMap() { return typeCase_ == 3; } /** * .substrait.Expression.MaskExpression.MapSelect map = 3; * @return The map. */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.MapSelect getMap() { if (mapBuilder_ == null) { if (typeCase_ == 3) { return (io.substrait.proto.Expression.MaskExpression.MapSelect) type_; } return io.substrait.proto.Expression.MaskExpression.MapSelect.getDefaultInstance(); } else { if (typeCase_ == 3) { return mapBuilder_.getMessage(); } return io.substrait.proto.Expression.MaskExpression.MapSelect.getDefaultInstance(); } } /** * .substrait.Expression.MaskExpression.MapSelect map = 3; */ public Builder setMap(io.substrait.proto.Expression.MaskExpression.MapSelect value) { if (mapBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { mapBuilder_.setMessage(value); } typeCase_ = 3; return this; } /** * .substrait.Expression.MaskExpression.MapSelect map = 3; */ public Builder setMap( io.substrait.proto.Expression.MaskExpression.MapSelect.Builder builderForValue) { if (mapBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { mapBuilder_.setMessage(builderForValue.build()); } typeCase_ = 3; return this; } /** * .substrait.Expression.MaskExpression.MapSelect map = 3; */ public Builder mergeMap(io.substrait.proto.Expression.MaskExpression.MapSelect value) { if (mapBuilder_ == null) { if (typeCase_ == 3 && type_ != io.substrait.proto.Expression.MaskExpression.MapSelect.getDefaultInstance()) { type_ = io.substrait.proto.Expression.MaskExpression.MapSelect.newBuilder((io.substrait.proto.Expression.MaskExpression.MapSelect) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 3) { mapBuilder_.mergeFrom(value); } else { mapBuilder_.setMessage(value); } } typeCase_ = 3; return this; } /** * .substrait.Expression.MaskExpression.MapSelect map = 3; */ public Builder clearMap() { if (mapBuilder_ == null) { if (typeCase_ == 3) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 3) { typeCase_ = 0; type_ = null; } mapBuilder_.clear(); } return this; } /** * .substrait.Expression.MaskExpression.MapSelect map = 3; */ public io.substrait.proto.Expression.MaskExpression.MapSelect.Builder getMapBuilder() { return getMapFieldBuilder().getBuilder(); } /** * .substrait.Expression.MaskExpression.MapSelect map = 3; */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.MapSelectOrBuilder getMapOrBuilder() { if ((typeCase_ == 3) && (mapBuilder_ != null)) { return mapBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 3) { return (io.substrait.proto.Expression.MaskExpression.MapSelect) type_; } return io.substrait.proto.Expression.MaskExpression.MapSelect.getDefaultInstance(); } } /** * .substrait.Expression.MaskExpression.MapSelect map = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.MapSelect, io.substrait.proto.Expression.MaskExpression.MapSelect.Builder, io.substrait.proto.Expression.MaskExpression.MapSelectOrBuilder> getMapFieldBuilder() { if (mapBuilder_ == null) { if (!(typeCase_ == 3)) { type_ = io.substrait.proto.Expression.MaskExpression.MapSelect.getDefaultInstance(); } mapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.MapSelect, io.substrait.proto.Expression.MaskExpression.MapSelect.Builder, io.substrait.proto.Expression.MaskExpression.MapSelectOrBuilder>( (io.substrait.proto.Expression.MaskExpression.MapSelect) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 3; 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.MaskExpression.Select) } // @@protoc_insertion_point(class_scope:substrait.Expression.MaskExpression.Select) private static final io.substrait.proto.Expression.MaskExpression.Select DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.MaskExpression.Select(); } public static io.substrait.proto.Expression.MaskExpression.Select getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser() { @java.lang.Override public Select 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 getParserForType() { return PARSER; } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.Select getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StructSelectOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.MaskExpression.StructSelect) com.google.protobuf.MessageOrBuilder { /** * repeated .substrait.Expression.MaskExpression.StructItem struct_items = 1; */ java.util.List getStructItemsList(); /** * repeated .substrait.Expression.MaskExpression.StructItem struct_items = 1; */ io.substrait.proto.Expression.MaskExpression.StructItem getStructItems(int index); /** * repeated .substrait.Expression.MaskExpression.StructItem struct_items = 1; */ int getStructItemsCount(); /** * repeated .substrait.Expression.MaskExpression.StructItem struct_items = 1; */ java.util.List getStructItemsOrBuilderList(); /** * repeated .substrait.Expression.MaskExpression.StructItem struct_items = 1; */ io.substrait.proto.Expression.MaskExpression.StructItemOrBuilder getStructItemsOrBuilder( int index); } /** * Protobuf type {@code substrait.Expression.MaskExpression.StructSelect} */ public static final class StructSelect extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.MaskExpression.StructSelect) StructSelectOrBuilder { private static final long serialVersionUID = 0L; // Use StructSelect.newBuilder() to construct. private StructSelect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StructSelect() { structItems_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StructSelect(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_StructSelect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_StructSelect_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.MaskExpression.StructSelect.class, io.substrait.proto.Expression.MaskExpression.StructSelect.Builder.class); } public static final int STRUCT_ITEMS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List structItems_; /** * repeated .substrait.Expression.MaskExpression.StructItem struct_items = 1; */ @java.lang.Override public java.util.List getStructItemsList() { return structItems_; } /** * repeated .substrait.Expression.MaskExpression.StructItem struct_items = 1; */ @java.lang.Override public java.util.List getStructItemsOrBuilderList() { return structItems_; } /** * repeated .substrait.Expression.MaskExpression.StructItem struct_items = 1; */ @java.lang.Override public int getStructItemsCount() { return structItems_.size(); } /** * repeated .substrait.Expression.MaskExpression.StructItem struct_items = 1; */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.StructItem getStructItems(int index) { return structItems_.get(index); } /** * repeated .substrait.Expression.MaskExpression.StructItem struct_items = 1; */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.StructItemOrBuilder getStructItemsOrBuilder( int index) { return structItems_.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 < structItems_.size(); i++) { output.writeMessage(1, structItems_.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 < structItems_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, structItems_.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.MaskExpression.StructSelect)) { return super.equals(obj); } io.substrait.proto.Expression.MaskExpression.StructSelect other = (io.substrait.proto.Expression.MaskExpression.StructSelect) obj; if (!getStructItemsList() .equals(other.getStructItemsList())) 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 (getStructItemsCount() > 0) { hash = (37 * hash) + STRUCT_ITEMS_FIELD_NUMBER; hash = (53 * hash) + getStructItemsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Expression.MaskExpression.StructSelect parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.StructSelect 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.MaskExpression.StructSelect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.StructSelect 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.MaskExpression.StructSelect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.StructSelect parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.MaskExpression.StructSelect parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.StructSelect 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.MaskExpression.StructSelect parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.StructSelect 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.MaskExpression.StructSelect parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.StructSelect 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.MaskExpression.StructSelect 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.MaskExpression.StructSelect} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.MaskExpression.StructSelect) io.substrait.proto.Expression.MaskExpression.StructSelectOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_StructSelect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_StructSelect_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.MaskExpression.StructSelect.class, io.substrait.proto.Expression.MaskExpression.StructSelect.Builder.class); } // Construct using io.substrait.proto.Expression.MaskExpression.StructSelect.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (structItemsBuilder_ == null) { structItems_ = java.util.Collections.emptyList(); } else { structItems_ = null; structItemsBuilder_.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_MaskExpression_StructSelect_descriptor; } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.StructSelect getDefaultInstanceForType() { return io.substrait.proto.Expression.MaskExpression.StructSelect.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.StructSelect build() { io.substrait.proto.Expression.MaskExpression.StructSelect result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.StructSelect buildPartial() { io.substrait.proto.Expression.MaskExpression.StructSelect result = new io.substrait.proto.Expression.MaskExpression.StructSelect(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.substrait.proto.Expression.MaskExpression.StructSelect result) { if (structItemsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { structItems_ = java.util.Collections.unmodifiableList(structItems_); bitField0_ = (bitField0_ & ~0x00000001); } result.structItems_ = structItems_; } else { result.structItems_ = structItemsBuilder_.build(); } } private void buildPartial0(io.substrait.proto.Expression.MaskExpression.StructSelect 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.MaskExpression.StructSelect) { return mergeFrom((io.substrait.proto.Expression.MaskExpression.StructSelect)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.MaskExpression.StructSelect other) { if (other == io.substrait.proto.Expression.MaskExpression.StructSelect.getDefaultInstance()) return this; if (structItemsBuilder_ == null) { if (!other.structItems_.isEmpty()) { if (structItems_.isEmpty()) { structItems_ = other.structItems_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureStructItemsIsMutable(); structItems_.addAll(other.structItems_); } onChanged(); } } else { if (!other.structItems_.isEmpty()) { if (structItemsBuilder_.isEmpty()) { structItemsBuilder_.dispose(); structItemsBuilder_ = null; structItems_ = other.structItems_; bitField0_ = (bitField0_ & ~0x00000001); structItemsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getStructItemsFieldBuilder() : null; } else { structItemsBuilder_.addAllMessages(other.structItems_); } } } 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.MaskExpression.StructItem m = input.readMessage( io.substrait.proto.Expression.MaskExpression.StructItem.parser(), extensionRegistry); if (structItemsBuilder_ == null) { ensureStructItemsIsMutable(); structItems_.add(m); } else { structItemsBuilder_.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 structItems_ = java.util.Collections.emptyList(); private void ensureStructItemsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { structItems_ = new java.util.ArrayList(structItems_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.StructItem, io.substrait.proto.Expression.MaskExpression.StructItem.Builder, io.substrait.proto.Expression.MaskExpression.StructItemOrBuilder> structItemsBuilder_; /** * repeated .substrait.Expression.MaskExpression.StructItem struct_items = 1; */ public java.util.List getStructItemsList() { if (structItemsBuilder_ == null) { return java.util.Collections.unmodifiableList(structItems_); } else { return structItemsBuilder_.getMessageList(); } } /** * repeated .substrait.Expression.MaskExpression.StructItem struct_items = 1; */ public int getStructItemsCount() { if (structItemsBuilder_ == null) { return structItems_.size(); } else { return structItemsBuilder_.getCount(); } } /** * repeated .substrait.Expression.MaskExpression.StructItem struct_items = 1; */ public io.substrait.proto.Expression.MaskExpression.StructItem getStructItems(int index) { if (structItemsBuilder_ == null) { return structItems_.get(index); } else { return structItemsBuilder_.getMessage(index); } } /** * repeated .substrait.Expression.MaskExpression.StructItem struct_items = 1; */ public Builder setStructItems( int index, io.substrait.proto.Expression.MaskExpression.StructItem value) { if (structItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStructItemsIsMutable(); structItems_.set(index, value); onChanged(); } else { structItemsBuilder_.setMessage(index, value); } return this; } /** * repeated .substrait.Expression.MaskExpression.StructItem struct_items = 1; */ public Builder setStructItems( int index, io.substrait.proto.Expression.MaskExpression.StructItem.Builder builderForValue) { if (structItemsBuilder_ == null) { ensureStructItemsIsMutable(); structItems_.set(index, builderForValue.build()); onChanged(); } else { structItemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .substrait.Expression.MaskExpression.StructItem struct_items = 1; */ public Builder addStructItems(io.substrait.proto.Expression.MaskExpression.StructItem value) { if (structItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStructItemsIsMutable(); structItems_.add(value); onChanged(); } else { structItemsBuilder_.addMessage(value); } return this; } /** * repeated .substrait.Expression.MaskExpression.StructItem struct_items = 1; */ public Builder addStructItems( int index, io.substrait.proto.Expression.MaskExpression.StructItem value) { if (structItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStructItemsIsMutable(); structItems_.add(index, value); onChanged(); } else { structItemsBuilder_.addMessage(index, value); } return this; } /** * repeated .substrait.Expression.MaskExpression.StructItem struct_items = 1; */ public Builder addStructItems( io.substrait.proto.Expression.MaskExpression.StructItem.Builder builderForValue) { if (structItemsBuilder_ == null) { ensureStructItemsIsMutable(); structItems_.add(builderForValue.build()); onChanged(); } else { structItemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .substrait.Expression.MaskExpression.StructItem struct_items = 1; */ public Builder addStructItems( int index, io.substrait.proto.Expression.MaskExpression.StructItem.Builder builderForValue) { if (structItemsBuilder_ == null) { ensureStructItemsIsMutable(); structItems_.add(index, builderForValue.build()); onChanged(); } else { structItemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .substrait.Expression.MaskExpression.StructItem struct_items = 1; */ public Builder addAllStructItems( java.lang.Iterable values) { if (structItemsBuilder_ == null) { ensureStructItemsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, structItems_); onChanged(); } else { structItemsBuilder_.addAllMessages(values); } return this; } /** * repeated .substrait.Expression.MaskExpression.StructItem struct_items = 1; */ public Builder clearStructItems() { if (structItemsBuilder_ == null) { structItems_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { structItemsBuilder_.clear(); } return this; } /** * repeated .substrait.Expression.MaskExpression.StructItem struct_items = 1; */ public Builder removeStructItems(int index) { if (structItemsBuilder_ == null) { ensureStructItemsIsMutable(); structItems_.remove(index); onChanged(); } else { structItemsBuilder_.remove(index); } return this; } /** * repeated .substrait.Expression.MaskExpression.StructItem struct_items = 1; */ public io.substrait.proto.Expression.MaskExpression.StructItem.Builder getStructItemsBuilder( int index) { return getStructItemsFieldBuilder().getBuilder(index); } /** * repeated .substrait.Expression.MaskExpression.StructItem struct_items = 1; */ public io.substrait.proto.Expression.MaskExpression.StructItemOrBuilder getStructItemsOrBuilder( int index) { if (structItemsBuilder_ == null) { return structItems_.get(index); } else { return structItemsBuilder_.getMessageOrBuilder(index); } } /** * repeated .substrait.Expression.MaskExpression.StructItem struct_items = 1; */ public java.util.List getStructItemsOrBuilderList() { if (structItemsBuilder_ != null) { return structItemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(structItems_); } } /** * repeated .substrait.Expression.MaskExpression.StructItem struct_items = 1; */ public io.substrait.proto.Expression.MaskExpression.StructItem.Builder addStructItemsBuilder() { return getStructItemsFieldBuilder().addBuilder( io.substrait.proto.Expression.MaskExpression.StructItem.getDefaultInstance()); } /** * repeated .substrait.Expression.MaskExpression.StructItem struct_items = 1; */ public io.substrait.proto.Expression.MaskExpression.StructItem.Builder addStructItemsBuilder( int index) { return getStructItemsFieldBuilder().addBuilder( index, io.substrait.proto.Expression.MaskExpression.StructItem.getDefaultInstance()); } /** * repeated .substrait.Expression.MaskExpression.StructItem struct_items = 1; */ public java.util.List getStructItemsBuilderList() { return getStructItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.StructItem, io.substrait.proto.Expression.MaskExpression.StructItem.Builder, io.substrait.proto.Expression.MaskExpression.StructItemOrBuilder> getStructItemsFieldBuilder() { if (structItemsBuilder_ == null) { structItemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.StructItem, io.substrait.proto.Expression.MaskExpression.StructItem.Builder, io.substrait.proto.Expression.MaskExpression.StructItemOrBuilder>( structItems_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); structItems_ = null; } return structItemsBuilder_; } @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.MaskExpression.StructSelect) } // @@protoc_insertion_point(class_scope:substrait.Expression.MaskExpression.StructSelect) private static final io.substrait.proto.Expression.MaskExpression.StructSelect DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.MaskExpression.StructSelect(); } public static io.substrait.proto.Expression.MaskExpression.StructSelect getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StructSelect 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.MaskExpression.StructSelect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StructItemOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.MaskExpression.StructItem) com.google.protobuf.MessageOrBuilder { /** * int32 field = 1; * @return The field. */ int getField(); /** * .substrait.Expression.MaskExpression.Select child = 2; * @return Whether the child field is set. */ boolean hasChild(); /** * .substrait.Expression.MaskExpression.Select child = 2; * @return The child. */ io.substrait.proto.Expression.MaskExpression.Select getChild(); /** * .substrait.Expression.MaskExpression.Select child = 2; */ io.substrait.proto.Expression.MaskExpression.SelectOrBuilder getChildOrBuilder(); } /** * Protobuf type {@code substrait.Expression.MaskExpression.StructItem} */ public static final class StructItem extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.MaskExpression.StructItem) StructItemOrBuilder { private static final long serialVersionUID = 0L; // Use StructItem.newBuilder() to construct. private StructItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StructItem() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StructItem(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_StructItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_StructItem_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.MaskExpression.StructItem.class, io.substrait.proto.Expression.MaskExpression.StructItem.Builder.class); } private int bitField0_; public static final int FIELD_FIELD_NUMBER = 1; private int field_ = 0; /** * int32 field = 1; * @return The field. */ @java.lang.Override public int getField() { return field_; } public static final int CHILD_FIELD_NUMBER = 2; private io.substrait.proto.Expression.MaskExpression.Select child_; /** * .substrait.Expression.MaskExpression.Select child = 2; * @return Whether the child field is set. */ @java.lang.Override public boolean hasChild() { return ((bitField0_ & 0x00000001) != 0); } /** * .substrait.Expression.MaskExpression.Select child = 2; * @return The child. */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.Select getChild() { return child_ == null ? io.substrait.proto.Expression.MaskExpression.Select.getDefaultInstance() : child_; } /** * .substrait.Expression.MaskExpression.Select child = 2; */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.SelectOrBuilder getChildOrBuilder() { return child_ == null ? io.substrait.proto.Expression.MaskExpression.Select.getDefaultInstance() : child_; } 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 (field_ != 0) { output.writeInt32(1, field_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getChild()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (field_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, field_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getChild()); } 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.MaskExpression.StructItem)) { return super.equals(obj); } io.substrait.proto.Expression.MaskExpression.StructItem other = (io.substrait.proto.Expression.MaskExpression.StructItem) obj; if (getField() != other.getField()) return false; if (hasChild() != other.hasChild()) return false; if (hasChild()) { if (!getChild() .equals(other.getChild())) 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) + FIELD_FIELD_NUMBER; hash = (53 * hash) + getField(); if (hasChild()) { hash = (37 * hash) + CHILD_FIELD_NUMBER; hash = (53 * hash) + getChild().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Expression.MaskExpression.StructItem parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.StructItem 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.MaskExpression.StructItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.StructItem 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.MaskExpression.StructItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.StructItem parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.MaskExpression.StructItem parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.StructItem 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.MaskExpression.StructItem parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.StructItem 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.MaskExpression.StructItem parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.StructItem 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.MaskExpression.StructItem 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.MaskExpression.StructItem} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.MaskExpression.StructItem) io.substrait.proto.Expression.MaskExpression.StructItemOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_StructItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_StructItem_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.MaskExpression.StructItem.class, io.substrait.proto.Expression.MaskExpression.StructItem.Builder.class); } // Construct using io.substrait.proto.Expression.MaskExpression.StructItem.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getChildFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; field_ = 0; child_ = null; if (childBuilder_ != null) { childBuilder_.dispose(); childBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_StructItem_descriptor; } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.StructItem getDefaultInstanceForType() { return io.substrait.proto.Expression.MaskExpression.StructItem.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.StructItem build() { io.substrait.proto.Expression.MaskExpression.StructItem result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.StructItem buildPartial() { io.substrait.proto.Expression.MaskExpression.StructItem result = new io.substrait.proto.Expression.MaskExpression.StructItem(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.substrait.proto.Expression.MaskExpression.StructItem result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.field_ = field_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.child_ = childBuilder_ == null ? child_ : childBuilder_.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.MaskExpression.StructItem) { return mergeFrom((io.substrait.proto.Expression.MaskExpression.StructItem)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.MaskExpression.StructItem other) { if (other == io.substrait.proto.Expression.MaskExpression.StructItem.getDefaultInstance()) return this; if (other.getField() != 0) { setField(other.getField()); } if (other.hasChild()) { mergeChild(other.getChild()); } 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: { field_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getChildFieldBuilder().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 int field_ ; /** * int32 field = 1; * @return The field. */ @java.lang.Override public int getField() { return field_; } /** * int32 field = 1; * @param value The field to set. * @return This builder for chaining. */ public Builder setField(int value) { field_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int32 field = 1; * @return This builder for chaining. */ public Builder clearField() { bitField0_ = (bitField0_ & ~0x00000001); field_ = 0; onChanged(); return this; } private io.substrait.proto.Expression.MaskExpression.Select child_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.Select, io.substrait.proto.Expression.MaskExpression.Select.Builder, io.substrait.proto.Expression.MaskExpression.SelectOrBuilder> childBuilder_; /** * .substrait.Expression.MaskExpression.Select child = 2; * @return Whether the child field is set. */ public boolean hasChild() { return ((bitField0_ & 0x00000002) != 0); } /** * .substrait.Expression.MaskExpression.Select child = 2; * @return The child. */ public io.substrait.proto.Expression.MaskExpression.Select getChild() { if (childBuilder_ == null) { return child_ == null ? io.substrait.proto.Expression.MaskExpression.Select.getDefaultInstance() : child_; } else { return childBuilder_.getMessage(); } } /** * .substrait.Expression.MaskExpression.Select child = 2; */ public Builder setChild(io.substrait.proto.Expression.MaskExpression.Select value) { if (childBuilder_ == null) { if (value == null) { throw new NullPointerException(); } child_ = value; } else { childBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .substrait.Expression.MaskExpression.Select child = 2; */ public Builder setChild( io.substrait.proto.Expression.MaskExpression.Select.Builder builderForValue) { if (childBuilder_ == null) { child_ = builderForValue.build(); } else { childBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .substrait.Expression.MaskExpression.Select child = 2; */ public Builder mergeChild(io.substrait.proto.Expression.MaskExpression.Select value) { if (childBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && child_ != null && child_ != io.substrait.proto.Expression.MaskExpression.Select.getDefaultInstance()) { getChildBuilder().mergeFrom(value); } else { child_ = value; } } else { childBuilder_.mergeFrom(value); } if (child_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .substrait.Expression.MaskExpression.Select child = 2; */ public Builder clearChild() { bitField0_ = (bitField0_ & ~0x00000002); child_ = null; if (childBuilder_ != null) { childBuilder_.dispose(); childBuilder_ = null; } onChanged(); return this; } /** * .substrait.Expression.MaskExpression.Select child = 2; */ public io.substrait.proto.Expression.MaskExpression.Select.Builder getChildBuilder() { bitField0_ |= 0x00000002; onChanged(); return getChildFieldBuilder().getBuilder(); } /** * .substrait.Expression.MaskExpression.Select child = 2; */ public io.substrait.proto.Expression.MaskExpression.SelectOrBuilder getChildOrBuilder() { if (childBuilder_ != null) { return childBuilder_.getMessageOrBuilder(); } else { return child_ == null ? io.substrait.proto.Expression.MaskExpression.Select.getDefaultInstance() : child_; } } /** * .substrait.Expression.MaskExpression.Select child = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.Select, io.substrait.proto.Expression.MaskExpression.Select.Builder, io.substrait.proto.Expression.MaskExpression.SelectOrBuilder> getChildFieldBuilder() { if (childBuilder_ == null) { childBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.Select, io.substrait.proto.Expression.MaskExpression.Select.Builder, io.substrait.proto.Expression.MaskExpression.SelectOrBuilder>( getChild(), getParentForChildren(), isClean()); child_ = null; } return childBuilder_; } @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.MaskExpression.StructItem) } // @@protoc_insertion_point(class_scope:substrait.Expression.MaskExpression.StructItem) private static final io.substrait.proto.Expression.MaskExpression.StructItem DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.MaskExpression.StructItem(); } public static io.substrait.proto.Expression.MaskExpression.StructItem getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StructItem 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.MaskExpression.StructItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListSelectOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.MaskExpression.ListSelect) com.google.protobuf.MessageOrBuilder { /** * repeated .substrait.Expression.MaskExpression.ListSelect.ListSelectItem selection = 1; */ java.util.List getSelectionList(); /** * repeated .substrait.Expression.MaskExpression.ListSelect.ListSelectItem selection = 1; */ io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem getSelection(int index); /** * repeated .substrait.Expression.MaskExpression.ListSelect.ListSelectItem selection = 1; */ int getSelectionCount(); /** * repeated .substrait.Expression.MaskExpression.ListSelect.ListSelectItem selection = 1; */ java.util.List getSelectionOrBuilderList(); /** * repeated .substrait.Expression.MaskExpression.ListSelect.ListSelectItem selection = 1; */ io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItemOrBuilder getSelectionOrBuilder( int index); /** * .substrait.Expression.MaskExpression.Select child = 2; * @return Whether the child field is set. */ boolean hasChild(); /** * .substrait.Expression.MaskExpression.Select child = 2; * @return The child. */ io.substrait.proto.Expression.MaskExpression.Select getChild(); /** * .substrait.Expression.MaskExpression.Select child = 2; */ io.substrait.proto.Expression.MaskExpression.SelectOrBuilder getChildOrBuilder(); } /** * Protobuf type {@code substrait.Expression.MaskExpression.ListSelect} */ public static final class ListSelect extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.MaskExpression.ListSelect) ListSelectOrBuilder { private static final long serialVersionUID = 0L; // Use ListSelect.newBuilder() to construct. private ListSelect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListSelect() { selection_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListSelect(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_ListSelect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_ListSelect_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.MaskExpression.ListSelect.class, io.substrait.proto.Expression.MaskExpression.ListSelect.Builder.class); } public interface ListSelectItemOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.MaskExpression.ListSelect.ListSelectItem) com.google.protobuf.MessageOrBuilder { /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement item = 1; * @return Whether the item field is set. */ boolean hasItem(); /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement item = 1; * @return The item. */ io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement getItem(); /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement item = 1; */ io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElementOrBuilder getItemOrBuilder(); /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice slice = 2; * @return Whether the slice field is set. */ boolean hasSlice(); /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice slice = 2; * @return The slice. */ io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice getSlice(); /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice slice = 2; */ io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSliceOrBuilder getSliceOrBuilder(); io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.TypeCase getTypeCase(); } /** * Protobuf type {@code substrait.Expression.MaskExpression.ListSelect.ListSelectItem} */ public static final class ListSelectItem extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.MaskExpression.ListSelect.ListSelectItem) ListSelectItemOrBuilder { private static final long serialVersionUID = 0L; // Use ListSelectItem.newBuilder() to construct. private ListSelectItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListSelectItem() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListSelectItem(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_ListSelect_ListSelectItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_ListSelect_ListSelectItem_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.class, io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.Builder.class); } public interface ListElementOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement) com.google.protobuf.MessageOrBuilder { /** * int32 field = 1; * @return The field. */ int getField(); } /** * Protobuf type {@code substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement} */ public static final class ListElement extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement) ListElementOrBuilder { private static final long serialVersionUID = 0L; // Use ListElement.newBuilder() to construct. private ListElement(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListElement() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListElement(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_ListSelect_ListSelectItem_ListElement_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_ListSelect_ListSelectItem_ListElement_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement.class, io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement.Builder.class); } public static final int FIELD_FIELD_NUMBER = 1; private int field_ = 0; /** * int32 field = 1; * @return The field. */ @java.lang.Override public int getField() { return field_; } 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 (field_ != 0) { output.writeInt32(1, field_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (field_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, field_); } 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.MaskExpression.ListSelect.ListSelectItem.ListElement)) { return super.equals(obj); } io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement other = (io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement) obj; if (getField() != other.getField()) 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) + FIELD_FIELD_NUMBER; hash = (53 * hash) + getField(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement 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.MaskExpression.ListSelect.ListSelectItem.ListElement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement 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.MaskExpression.ListSelect.ListSelectItem.ListElement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement 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.MaskExpression.ListSelect.ListSelectItem.ListElement parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement 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.MaskExpression.ListSelect.ListSelectItem.ListElement parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement 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.MaskExpression.ListSelect.ListSelectItem.ListElement 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.MaskExpression.ListSelect.ListSelectItem.ListElement} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement) io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElementOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_ListSelect_ListSelectItem_ListElement_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_ListSelect_ListSelectItem_ListElement_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement.class, io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement.Builder.class); } // Construct using io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; field_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_ListSelect_ListSelectItem_ListElement_descriptor; } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement getDefaultInstanceForType() { return io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement build() { io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement buildPartial() { io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement result = new io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.field_ = field_; } } @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.MaskExpression.ListSelect.ListSelectItem.ListElement) { return mergeFrom((io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement other) { if (other == io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement.getDefaultInstance()) return this; if (other.getField() != 0) { setField(other.getField()); } 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: { field_ = input.readInt32(); 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 int field_ ; /** * int32 field = 1; * @return The field. */ @java.lang.Override public int getField() { return field_; } /** * int32 field = 1; * @param value The field to set. * @return This builder for chaining. */ public Builder setField(int value) { field_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int32 field = 1; * @return This builder for chaining. */ public Builder clearField() { bitField0_ = (bitField0_ & ~0x00000001); field_ = 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.MaskExpression.ListSelect.ListSelectItem.ListElement) } // @@protoc_insertion_point(class_scope:substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement) private static final io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement(); } public static io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListElement 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.MaskExpression.ListSelect.ListSelectItem.ListElement getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListSliceOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice) com.google.protobuf.MessageOrBuilder { /** * int32 start = 1; * @return The start. */ int getStart(); /** * int32 end = 2; * @return The end. */ int getEnd(); } /** * Protobuf type {@code substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice} */ public static final class ListSlice extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice) ListSliceOrBuilder { private static final long serialVersionUID = 0L; // Use ListSlice.newBuilder() to construct. private ListSlice(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListSlice() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListSlice(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_ListSelect_ListSelectItem_ListSlice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_ListSelect_ListSelectItem_ListSlice_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice.class, io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice.Builder.class); } public static final int START_FIELD_NUMBER = 1; private int start_ = 0; /** * int32 start = 1; * @return The start. */ @java.lang.Override public int getStart() { return start_; } public static final int END_FIELD_NUMBER = 2; private int end_ = 0; /** * int32 end = 2; * @return The end. */ @java.lang.Override public int getEnd() { return end_; } 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 (start_ != 0) { output.writeInt32(1, start_); } if (end_ != 0) { output.writeInt32(2, end_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (start_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, start_); } if (end_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, end_); } 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.MaskExpression.ListSelect.ListSelectItem.ListSlice)) { return super.equals(obj); } io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice other = (io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice) obj; if (getStart() != other.getStart()) return false; if (getEnd() != other.getEnd()) 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) + START_FIELD_NUMBER; hash = (53 * hash) + getStart(); hash = (37 * hash) + END_FIELD_NUMBER; hash = (53 * hash) + getEnd(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice 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.MaskExpression.ListSelect.ListSelectItem.ListSlice parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice 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.MaskExpression.ListSelect.ListSelectItem.ListSlice parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice 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.MaskExpression.ListSelect.ListSelectItem.ListSlice parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice 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.MaskExpression.ListSelect.ListSelectItem.ListSlice parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice 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.MaskExpression.ListSelect.ListSelectItem.ListSlice 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.MaskExpression.ListSelect.ListSelectItem.ListSlice} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice) io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSliceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_ListSelect_ListSelectItem_ListSlice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_ListSelect_ListSelectItem_ListSlice_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice.class, io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice.Builder.class); } // Construct using io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; start_ = 0; end_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_ListSelect_ListSelectItem_ListSlice_descriptor; } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice getDefaultInstanceForType() { return io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice build() { io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice buildPartial() { io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice result = new io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.start_ = start_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.end_ = end_; } } @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.MaskExpression.ListSelect.ListSelectItem.ListSlice) { return mergeFrom((io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice other) { if (other == io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice.getDefaultInstance()) return this; if (other.getStart() != 0) { setStart(other.getStart()); } if (other.getEnd() != 0) { setEnd(other.getEnd()); } 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: { start_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { end_ = 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 start_ ; /** * int32 start = 1; * @return The start. */ @java.lang.Override public int getStart() { return start_; } /** * int32 start = 1; * @param value The start to set. * @return This builder for chaining. */ public Builder setStart(int value) { start_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int32 start = 1; * @return This builder for chaining. */ public Builder clearStart() { bitField0_ = (bitField0_ & ~0x00000001); start_ = 0; onChanged(); return this; } private int end_ ; /** * int32 end = 2; * @return The end. */ @java.lang.Override public int getEnd() { return end_; } /** * int32 end = 2; * @param value The end to set. * @return This builder for chaining. */ public Builder setEnd(int value) { end_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int32 end = 2; * @return This builder for chaining. */ public Builder clearEnd() { bitField0_ = (bitField0_ & ~0x00000002); end_ = 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.MaskExpression.ListSelect.ListSelectItem.ListSlice) } // @@protoc_insertion_point(class_scope:substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice) private static final io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice(); } public static io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListSlice 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.MaskExpression.ListSelect.ListSelectItem.ListSlice getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int typeCase_ = 0; @SuppressWarnings("serial") private java.lang.Object type_; public enum TypeCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ITEM(1), SLICE(2), TYPE_NOT_SET(0); private final int value; private TypeCase(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 TypeCase valueOf(int value) { return forNumber(value); } public static TypeCase forNumber(int value) { switch (value) { case 1: return ITEM; case 2: return SLICE; case 0: return TYPE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public TypeCase getTypeCase() { return TypeCase.forNumber( typeCase_); } public static final int ITEM_FIELD_NUMBER = 1; /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement item = 1; * @return Whether the item field is set. */ @java.lang.Override public boolean hasItem() { return typeCase_ == 1; } /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement item = 1; * @return The item. */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement getItem() { if (typeCase_ == 1) { return (io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement) type_; } return io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement.getDefaultInstance(); } /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement item = 1; */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElementOrBuilder getItemOrBuilder() { if (typeCase_ == 1) { return (io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement) type_; } return io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement.getDefaultInstance(); } public static final int SLICE_FIELD_NUMBER = 2; /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice slice = 2; * @return Whether the slice field is set. */ @java.lang.Override public boolean hasSlice() { return typeCase_ == 2; } /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice slice = 2; * @return The slice. */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice getSlice() { if (typeCase_ == 2) { return (io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice) type_; } return io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice.getDefaultInstance(); } /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice slice = 2; */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSliceOrBuilder getSliceOrBuilder() { if (typeCase_ == 2) { return (io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice) type_; } return io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice.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 (typeCase_ == 1) { output.writeMessage(1, (io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement) type_); } if (typeCase_ == 2) { output.writeMessage(2, (io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice) type_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (typeCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement) type_); } if (typeCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice) type_); } 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.MaskExpression.ListSelect.ListSelectItem)) { return super.equals(obj); } io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem other = (io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem) obj; if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 1: if (!getItem() .equals(other.getItem())) return false; break; case 2: if (!getSlice() .equals(other.getSlice())) 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 (typeCase_) { case 1: hash = (37 * hash) + ITEM_FIELD_NUMBER; hash = (53 * hash) + getItem().hashCode(); break; case 2: hash = (37 * hash) + SLICE_FIELD_NUMBER; hash = (53 * hash) + getSlice().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem 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.MaskExpression.ListSelect.ListSelectItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem 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.MaskExpression.ListSelect.ListSelectItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem 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.MaskExpression.ListSelect.ListSelectItem parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem 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.MaskExpression.ListSelect.ListSelectItem parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem 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.MaskExpression.ListSelect.ListSelectItem 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.MaskExpression.ListSelect.ListSelectItem} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.MaskExpression.ListSelect.ListSelectItem) io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItemOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_ListSelect_ListSelectItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_ListSelect_ListSelectItem_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.class, io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.Builder.class); } // Construct using io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (itemBuilder_ != null) { itemBuilder_.clear(); } if (sliceBuilder_ != null) { sliceBuilder_.clear(); } typeCase_ = 0; type_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_ListSelect_ListSelectItem_descriptor; } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem getDefaultInstanceForType() { return io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem build() { io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem buildPartial() { io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem result = new io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem result) { result.typeCase_ = typeCase_; result.type_ = this.type_; if (typeCase_ == 1 && itemBuilder_ != null) { result.type_ = itemBuilder_.build(); } if (typeCase_ == 2 && sliceBuilder_ != null) { result.type_ = sliceBuilder_.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.MaskExpression.ListSelect.ListSelectItem) { return mergeFrom((io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem other) { if (other == io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.getDefaultInstance()) return this; switch (other.getTypeCase()) { case ITEM: { mergeItem(other.getItem()); break; } case SLICE: { mergeSlice(other.getSlice()); break; } case TYPE_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( getItemFieldBuilder().getBuilder(), extensionRegistry); typeCase_ = 1; break; } // case 10 case 18: { input.readMessage( getSliceFieldBuilder().getBuilder(), extensionRegistry); typeCase_ = 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 typeCase_ = 0; private java.lang.Object type_; public TypeCase getTypeCase() { return TypeCase.forNumber( typeCase_); } public Builder clearType() { typeCase_ = 0; type_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement, io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement.Builder, io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElementOrBuilder> itemBuilder_; /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement item = 1; * @return Whether the item field is set. */ @java.lang.Override public boolean hasItem() { return typeCase_ == 1; } /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement item = 1; * @return The item. */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement getItem() { if (itemBuilder_ == null) { if (typeCase_ == 1) { return (io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement) type_; } return io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement.getDefaultInstance(); } else { if (typeCase_ == 1) { return itemBuilder_.getMessage(); } return io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement.getDefaultInstance(); } } /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement item = 1; */ public Builder setItem(io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement value) { if (itemBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { itemBuilder_.setMessage(value); } typeCase_ = 1; return this; } /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement item = 1; */ public Builder setItem( io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement.Builder builderForValue) { if (itemBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { itemBuilder_.setMessage(builderForValue.build()); } typeCase_ = 1; return this; } /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement item = 1; */ public Builder mergeItem(io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement value) { if (itemBuilder_ == null) { if (typeCase_ == 1 && type_ != io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement.getDefaultInstance()) { type_ = io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement.newBuilder((io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 1) { itemBuilder_.mergeFrom(value); } else { itemBuilder_.setMessage(value); } } typeCase_ = 1; return this; } /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement item = 1; */ public Builder clearItem() { if (itemBuilder_ == null) { if (typeCase_ == 1) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 1) { typeCase_ = 0; type_ = null; } itemBuilder_.clear(); } return this; } /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement item = 1; */ public io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement.Builder getItemBuilder() { return getItemFieldBuilder().getBuilder(); } /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement item = 1; */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElementOrBuilder getItemOrBuilder() { if ((typeCase_ == 1) && (itemBuilder_ != null)) { return itemBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 1) { return (io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement) type_; } return io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement.getDefaultInstance(); } } /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement item = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement, io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement.Builder, io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElementOrBuilder> getItemFieldBuilder() { if (itemBuilder_ == null) { if (!(typeCase_ == 1)) { type_ = io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement.getDefaultInstance(); } itemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement, io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement.Builder, io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElementOrBuilder>( (io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElement) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 1; onChanged(); return itemBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice, io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice.Builder, io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSliceOrBuilder> sliceBuilder_; /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice slice = 2; * @return Whether the slice field is set. */ @java.lang.Override public boolean hasSlice() { return typeCase_ == 2; } /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice slice = 2; * @return The slice. */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice getSlice() { if (sliceBuilder_ == null) { if (typeCase_ == 2) { return (io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice) type_; } return io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice.getDefaultInstance(); } else { if (typeCase_ == 2) { return sliceBuilder_.getMessage(); } return io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice.getDefaultInstance(); } } /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice slice = 2; */ public Builder setSlice(io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice value) { if (sliceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { sliceBuilder_.setMessage(value); } typeCase_ = 2; return this; } /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice slice = 2; */ public Builder setSlice( io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice.Builder builderForValue) { if (sliceBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { sliceBuilder_.setMessage(builderForValue.build()); } typeCase_ = 2; return this; } /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice slice = 2; */ public Builder mergeSlice(io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice value) { if (sliceBuilder_ == null) { if (typeCase_ == 2 && type_ != io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice.getDefaultInstance()) { type_ = io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice.newBuilder((io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 2) { sliceBuilder_.mergeFrom(value); } else { sliceBuilder_.setMessage(value); } } typeCase_ = 2; return this; } /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice slice = 2; */ public Builder clearSlice() { if (sliceBuilder_ == null) { if (typeCase_ == 2) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 2) { typeCase_ = 0; type_ = null; } sliceBuilder_.clear(); } return this; } /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice slice = 2; */ public io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice.Builder getSliceBuilder() { return getSliceFieldBuilder().getBuilder(); } /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice slice = 2; */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSliceOrBuilder getSliceOrBuilder() { if ((typeCase_ == 2) && (sliceBuilder_ != null)) { return sliceBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 2) { return (io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice) type_; } return io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice.getDefaultInstance(); } } /** * .substrait.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice slice = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice, io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice.Builder, io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSliceOrBuilder> getSliceFieldBuilder() { if (sliceBuilder_ == null) { if (!(typeCase_ == 2)) { type_ = io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice.getDefaultInstance(); } sliceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice, io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice.Builder, io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSliceOrBuilder>( (io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 2; onChanged(); return sliceBuilder_; } @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.MaskExpression.ListSelect.ListSelectItem) } // @@protoc_insertion_point(class_scope:substrait.Expression.MaskExpression.ListSelect.ListSelectItem) private static final io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem(); } public static io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListSelectItem 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.MaskExpression.ListSelect.ListSelectItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int SELECTION_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List selection_; /** * repeated .substrait.Expression.MaskExpression.ListSelect.ListSelectItem selection = 1; */ @java.lang.Override public java.util.List getSelectionList() { return selection_; } /** * repeated .substrait.Expression.MaskExpression.ListSelect.ListSelectItem selection = 1; */ @java.lang.Override public java.util.List getSelectionOrBuilderList() { return selection_; } /** * repeated .substrait.Expression.MaskExpression.ListSelect.ListSelectItem selection = 1; */ @java.lang.Override public int getSelectionCount() { return selection_.size(); } /** * repeated .substrait.Expression.MaskExpression.ListSelect.ListSelectItem selection = 1; */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem getSelection(int index) { return selection_.get(index); } /** * repeated .substrait.Expression.MaskExpression.ListSelect.ListSelectItem selection = 1; */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItemOrBuilder getSelectionOrBuilder( int index) { return selection_.get(index); } public static final int CHILD_FIELD_NUMBER = 2; private io.substrait.proto.Expression.MaskExpression.Select child_; /** * .substrait.Expression.MaskExpression.Select child = 2; * @return Whether the child field is set. */ @java.lang.Override public boolean hasChild() { return ((bitField0_ & 0x00000001) != 0); } /** * .substrait.Expression.MaskExpression.Select child = 2; * @return The child. */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.Select getChild() { return child_ == null ? io.substrait.proto.Expression.MaskExpression.Select.getDefaultInstance() : child_; } /** * .substrait.Expression.MaskExpression.Select child = 2; */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.SelectOrBuilder getChildOrBuilder() { return child_ == null ? io.substrait.proto.Expression.MaskExpression.Select.getDefaultInstance() : child_; } 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 < selection_.size(); i++) { output.writeMessage(1, selection_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getChild()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < selection_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, selection_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getChild()); } 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.MaskExpression.ListSelect)) { return super.equals(obj); } io.substrait.proto.Expression.MaskExpression.ListSelect other = (io.substrait.proto.Expression.MaskExpression.ListSelect) obj; if (!getSelectionList() .equals(other.getSelectionList())) return false; if (hasChild() != other.hasChild()) return false; if (hasChild()) { if (!getChild() .equals(other.getChild())) 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 (getSelectionCount() > 0) { hash = (37 * hash) + SELECTION_FIELD_NUMBER; hash = (53 * hash) + getSelectionList().hashCode(); } if (hasChild()) { hash = (37 * hash) + CHILD_FIELD_NUMBER; hash = (53 * hash) + getChild().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Expression.MaskExpression.ListSelect parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.ListSelect 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.MaskExpression.ListSelect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.ListSelect 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.MaskExpression.ListSelect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.ListSelect parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.MaskExpression.ListSelect parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.ListSelect 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.MaskExpression.ListSelect parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.ListSelect 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.MaskExpression.ListSelect parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.ListSelect 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.MaskExpression.ListSelect 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.MaskExpression.ListSelect} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.MaskExpression.ListSelect) io.substrait.proto.Expression.MaskExpression.ListSelectOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_ListSelect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_ListSelect_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.MaskExpression.ListSelect.class, io.substrait.proto.Expression.MaskExpression.ListSelect.Builder.class); } // Construct using io.substrait.proto.Expression.MaskExpression.ListSelect.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSelectionFieldBuilder(); getChildFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (selectionBuilder_ == null) { selection_ = java.util.Collections.emptyList(); } else { selection_ = null; selectionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); child_ = null; if (childBuilder_ != null) { childBuilder_.dispose(); childBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_ListSelect_descriptor; } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.ListSelect getDefaultInstanceForType() { return io.substrait.proto.Expression.MaskExpression.ListSelect.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.ListSelect build() { io.substrait.proto.Expression.MaskExpression.ListSelect result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.ListSelect buildPartial() { io.substrait.proto.Expression.MaskExpression.ListSelect result = new io.substrait.proto.Expression.MaskExpression.ListSelect(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.substrait.proto.Expression.MaskExpression.ListSelect result) { if (selectionBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { selection_ = java.util.Collections.unmodifiableList(selection_); bitField0_ = (bitField0_ & ~0x00000001); } result.selection_ = selection_; } else { result.selection_ = selectionBuilder_.build(); } } private void buildPartial0(io.substrait.proto.Expression.MaskExpression.ListSelect result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.child_ = childBuilder_ == null ? child_ : childBuilder_.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.MaskExpression.ListSelect) { return mergeFrom((io.substrait.proto.Expression.MaskExpression.ListSelect)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.MaskExpression.ListSelect other) { if (other == io.substrait.proto.Expression.MaskExpression.ListSelect.getDefaultInstance()) return this; if (selectionBuilder_ == null) { if (!other.selection_.isEmpty()) { if (selection_.isEmpty()) { selection_ = other.selection_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSelectionIsMutable(); selection_.addAll(other.selection_); } onChanged(); } } else { if (!other.selection_.isEmpty()) { if (selectionBuilder_.isEmpty()) { selectionBuilder_.dispose(); selectionBuilder_ = null; selection_ = other.selection_; bitField0_ = (bitField0_ & ~0x00000001); selectionBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSelectionFieldBuilder() : null; } else { selectionBuilder_.addAllMessages(other.selection_); } } } if (other.hasChild()) { mergeChild(other.getChild()); } 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.MaskExpression.ListSelect.ListSelectItem m = input.readMessage( io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.parser(), extensionRegistry); if (selectionBuilder_ == null) { ensureSelectionIsMutable(); selection_.add(m); } else { selectionBuilder_.addMessage(m); } break; } // case 10 case 18: { input.readMessage( getChildFieldBuilder().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 selection_ = java.util.Collections.emptyList(); private void ensureSelectionIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { selection_ = new java.util.ArrayList(selection_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem, io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.Builder, io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItemOrBuilder> selectionBuilder_; /** * repeated .substrait.Expression.MaskExpression.ListSelect.ListSelectItem selection = 1; */ public java.util.List getSelectionList() { if (selectionBuilder_ == null) { return java.util.Collections.unmodifiableList(selection_); } else { return selectionBuilder_.getMessageList(); } } /** * repeated .substrait.Expression.MaskExpression.ListSelect.ListSelectItem selection = 1; */ public int getSelectionCount() { if (selectionBuilder_ == null) { return selection_.size(); } else { return selectionBuilder_.getCount(); } } /** * repeated .substrait.Expression.MaskExpression.ListSelect.ListSelectItem selection = 1; */ public io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem getSelection(int index) { if (selectionBuilder_ == null) { return selection_.get(index); } else { return selectionBuilder_.getMessage(index); } } /** * repeated .substrait.Expression.MaskExpression.ListSelect.ListSelectItem selection = 1; */ public Builder setSelection( int index, io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem value) { if (selectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSelectionIsMutable(); selection_.set(index, value); onChanged(); } else { selectionBuilder_.setMessage(index, value); } return this; } /** * repeated .substrait.Expression.MaskExpression.ListSelect.ListSelectItem selection = 1; */ public Builder setSelection( int index, io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.Builder builderForValue) { if (selectionBuilder_ == null) { ensureSelectionIsMutable(); selection_.set(index, builderForValue.build()); onChanged(); } else { selectionBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .substrait.Expression.MaskExpression.ListSelect.ListSelectItem selection = 1; */ public Builder addSelection(io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem value) { if (selectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSelectionIsMutable(); selection_.add(value); onChanged(); } else { selectionBuilder_.addMessage(value); } return this; } /** * repeated .substrait.Expression.MaskExpression.ListSelect.ListSelectItem selection = 1; */ public Builder addSelection( int index, io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem value) { if (selectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSelectionIsMutable(); selection_.add(index, value); onChanged(); } else { selectionBuilder_.addMessage(index, value); } return this; } /** * repeated .substrait.Expression.MaskExpression.ListSelect.ListSelectItem selection = 1; */ public Builder addSelection( io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.Builder builderForValue) { if (selectionBuilder_ == null) { ensureSelectionIsMutable(); selection_.add(builderForValue.build()); onChanged(); } else { selectionBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .substrait.Expression.MaskExpression.ListSelect.ListSelectItem selection = 1; */ public Builder addSelection( int index, io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.Builder builderForValue) { if (selectionBuilder_ == null) { ensureSelectionIsMutable(); selection_.add(index, builderForValue.build()); onChanged(); } else { selectionBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .substrait.Expression.MaskExpression.ListSelect.ListSelectItem selection = 1; */ public Builder addAllSelection( java.lang.Iterable values) { if (selectionBuilder_ == null) { ensureSelectionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, selection_); onChanged(); } else { selectionBuilder_.addAllMessages(values); } return this; } /** * repeated .substrait.Expression.MaskExpression.ListSelect.ListSelectItem selection = 1; */ public Builder clearSelection() { if (selectionBuilder_ == null) { selection_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { selectionBuilder_.clear(); } return this; } /** * repeated .substrait.Expression.MaskExpression.ListSelect.ListSelectItem selection = 1; */ public Builder removeSelection(int index) { if (selectionBuilder_ == null) { ensureSelectionIsMutable(); selection_.remove(index); onChanged(); } else { selectionBuilder_.remove(index); } return this; } /** * repeated .substrait.Expression.MaskExpression.ListSelect.ListSelectItem selection = 1; */ public io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.Builder getSelectionBuilder( int index) { return getSelectionFieldBuilder().getBuilder(index); } /** * repeated .substrait.Expression.MaskExpression.ListSelect.ListSelectItem selection = 1; */ public io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItemOrBuilder getSelectionOrBuilder( int index) { if (selectionBuilder_ == null) { return selection_.get(index); } else { return selectionBuilder_.getMessageOrBuilder(index); } } /** * repeated .substrait.Expression.MaskExpression.ListSelect.ListSelectItem selection = 1; */ public java.util.List getSelectionOrBuilderList() { if (selectionBuilder_ != null) { return selectionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(selection_); } } /** * repeated .substrait.Expression.MaskExpression.ListSelect.ListSelectItem selection = 1; */ public io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.Builder addSelectionBuilder() { return getSelectionFieldBuilder().addBuilder( io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.getDefaultInstance()); } /** * repeated .substrait.Expression.MaskExpression.ListSelect.ListSelectItem selection = 1; */ public io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.Builder addSelectionBuilder( int index) { return getSelectionFieldBuilder().addBuilder( index, io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.getDefaultInstance()); } /** * repeated .substrait.Expression.MaskExpression.ListSelect.ListSelectItem selection = 1; */ public java.util.List getSelectionBuilderList() { return getSelectionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem, io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.Builder, io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItemOrBuilder> getSelectionFieldBuilder() { if (selectionBuilder_ == null) { selectionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem, io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItem.Builder, io.substrait.proto.Expression.MaskExpression.ListSelect.ListSelectItemOrBuilder>( selection_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); selection_ = null; } return selectionBuilder_; } private io.substrait.proto.Expression.MaskExpression.Select child_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.Select, io.substrait.proto.Expression.MaskExpression.Select.Builder, io.substrait.proto.Expression.MaskExpression.SelectOrBuilder> childBuilder_; /** * .substrait.Expression.MaskExpression.Select child = 2; * @return Whether the child field is set. */ public boolean hasChild() { return ((bitField0_ & 0x00000002) != 0); } /** * .substrait.Expression.MaskExpression.Select child = 2; * @return The child. */ public io.substrait.proto.Expression.MaskExpression.Select getChild() { if (childBuilder_ == null) { return child_ == null ? io.substrait.proto.Expression.MaskExpression.Select.getDefaultInstance() : child_; } else { return childBuilder_.getMessage(); } } /** * .substrait.Expression.MaskExpression.Select child = 2; */ public Builder setChild(io.substrait.proto.Expression.MaskExpression.Select value) { if (childBuilder_ == null) { if (value == null) { throw new NullPointerException(); } child_ = value; } else { childBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .substrait.Expression.MaskExpression.Select child = 2; */ public Builder setChild( io.substrait.proto.Expression.MaskExpression.Select.Builder builderForValue) { if (childBuilder_ == null) { child_ = builderForValue.build(); } else { childBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .substrait.Expression.MaskExpression.Select child = 2; */ public Builder mergeChild(io.substrait.proto.Expression.MaskExpression.Select value) { if (childBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && child_ != null && child_ != io.substrait.proto.Expression.MaskExpression.Select.getDefaultInstance()) { getChildBuilder().mergeFrom(value); } else { child_ = value; } } else { childBuilder_.mergeFrom(value); } if (child_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .substrait.Expression.MaskExpression.Select child = 2; */ public Builder clearChild() { bitField0_ = (bitField0_ & ~0x00000002); child_ = null; if (childBuilder_ != null) { childBuilder_.dispose(); childBuilder_ = null; } onChanged(); return this; } /** * .substrait.Expression.MaskExpression.Select child = 2; */ public io.substrait.proto.Expression.MaskExpression.Select.Builder getChildBuilder() { bitField0_ |= 0x00000002; onChanged(); return getChildFieldBuilder().getBuilder(); } /** * .substrait.Expression.MaskExpression.Select child = 2; */ public io.substrait.proto.Expression.MaskExpression.SelectOrBuilder getChildOrBuilder() { if (childBuilder_ != null) { return childBuilder_.getMessageOrBuilder(); } else { return child_ == null ? io.substrait.proto.Expression.MaskExpression.Select.getDefaultInstance() : child_; } } /** * .substrait.Expression.MaskExpression.Select child = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.Select, io.substrait.proto.Expression.MaskExpression.Select.Builder, io.substrait.proto.Expression.MaskExpression.SelectOrBuilder> getChildFieldBuilder() { if (childBuilder_ == null) { childBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.Select, io.substrait.proto.Expression.MaskExpression.Select.Builder, io.substrait.proto.Expression.MaskExpression.SelectOrBuilder>( getChild(), getParentForChildren(), isClean()); child_ = null; } return childBuilder_; } @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.MaskExpression.ListSelect) } // @@protoc_insertion_point(class_scope:substrait.Expression.MaskExpression.ListSelect) private static final io.substrait.proto.Expression.MaskExpression.ListSelect DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.MaskExpression.ListSelect(); } public static io.substrait.proto.Expression.MaskExpression.ListSelect getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListSelect 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.MaskExpression.ListSelect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MapSelectOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.MaskExpression.MapSelect) com.google.protobuf.MessageOrBuilder { /** * .substrait.Expression.MaskExpression.MapSelect.MapKey key = 1; * @return Whether the key field is set. */ boolean hasKey(); /** * .substrait.Expression.MaskExpression.MapSelect.MapKey key = 1; * @return The key. */ io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey getKey(); /** * .substrait.Expression.MaskExpression.MapSelect.MapKey key = 1; */ io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyOrBuilder getKeyOrBuilder(); /** * .substrait.Expression.MaskExpression.MapSelect.MapKeyExpression expression = 2; * @return Whether the expression field is set. */ boolean hasExpression(); /** * .substrait.Expression.MaskExpression.MapSelect.MapKeyExpression expression = 2; * @return The expression. */ io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression getExpression(); /** * .substrait.Expression.MaskExpression.MapSelect.MapKeyExpression expression = 2; */ io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpressionOrBuilder getExpressionOrBuilder(); /** * .substrait.Expression.MaskExpression.Select child = 3; * @return Whether the child field is set. */ boolean hasChild(); /** * .substrait.Expression.MaskExpression.Select child = 3; * @return The child. */ io.substrait.proto.Expression.MaskExpression.Select getChild(); /** * .substrait.Expression.MaskExpression.Select child = 3; */ io.substrait.proto.Expression.MaskExpression.SelectOrBuilder getChildOrBuilder(); io.substrait.proto.Expression.MaskExpression.MapSelect.SelectCase getSelectCase(); } /** * Protobuf type {@code substrait.Expression.MaskExpression.MapSelect} */ public static final class MapSelect extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.MaskExpression.MapSelect) MapSelectOrBuilder { private static final long serialVersionUID = 0L; // Use MapSelect.newBuilder() to construct. private MapSelect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MapSelect() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MapSelect(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_MapSelect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_MapSelect_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.MaskExpression.MapSelect.class, io.substrait.proto.Expression.MaskExpression.MapSelect.Builder.class); } public interface MapKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.MaskExpression.MapSelect.MapKey) com.google.protobuf.MessageOrBuilder { /** * string map_key = 1; * @return The mapKey. */ java.lang.String getMapKey(); /** * string map_key = 1; * @return The bytes for mapKey. */ com.google.protobuf.ByteString getMapKeyBytes(); } /** * Protobuf type {@code substrait.Expression.MaskExpression.MapSelect.MapKey} */ public static final class MapKey extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.MaskExpression.MapSelect.MapKey) MapKeyOrBuilder { private static final long serialVersionUID = 0L; // Use MapKey.newBuilder() to construct. private MapKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MapKey() { mapKey_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MapKey(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_MapSelect_MapKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_MapSelect_MapKey_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey.class, io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey.Builder.class); } public static final int MAP_KEY_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object mapKey_ = ""; /** * string map_key = 1; * @return The mapKey. */ @java.lang.Override public java.lang.String getMapKey() { java.lang.Object ref = mapKey_; 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(); mapKey_ = s; return s; } } /** * string map_key = 1; * @return The bytes for mapKey. */ @java.lang.Override public com.google.protobuf.ByteString getMapKeyBytes() { java.lang.Object ref = mapKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mapKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mapKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mapKey_); } 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(mapKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mapKey_); } 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.MaskExpression.MapSelect.MapKey)) { return super.equals(obj); } io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey other = (io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey) obj; if (!getMapKey() .equals(other.getMapKey())) 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) + MAP_KEY_FIELD_NUMBER; hash = (53 * hash) + getMapKey().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey 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.MaskExpression.MapSelect.MapKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey 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.MaskExpression.MapSelect.MapKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey 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.MaskExpression.MapSelect.MapKey parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey 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.MaskExpression.MapSelect.MapKey parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey 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.MaskExpression.MapSelect.MapKey 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.MaskExpression.MapSelect.MapKey} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.MaskExpression.MapSelect.MapKey) io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_MapSelect_MapKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_MapSelect_MapKey_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey.class, io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey.Builder.class); } // Construct using io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; mapKey_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_MapSelect_MapKey_descriptor; } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey getDefaultInstanceForType() { return io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey build() { io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey buildPartial() { io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey result = new io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.mapKey_ = mapKey_; } } @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.MaskExpression.MapSelect.MapKey) { return mergeFrom((io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey other) { if (other == io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey.getDefaultInstance()) return this; if (!other.getMapKey().isEmpty()) { mapKey_ = other.mapKey_; bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { mapKey_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object mapKey_ = ""; /** * string map_key = 1; * @return The mapKey. */ public java.lang.String getMapKey() { java.lang.Object ref = mapKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mapKey_ = s; return s; } else { return (java.lang.String) ref; } } /** * string map_key = 1; * @return The bytes for mapKey. */ public com.google.protobuf.ByteString getMapKeyBytes() { java.lang.Object ref = mapKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mapKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string map_key = 1; * @param value The mapKey to set. * @return This builder for chaining. */ public Builder setMapKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } mapKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string map_key = 1; * @return This builder for chaining. */ public Builder clearMapKey() { mapKey_ = getDefaultInstance().getMapKey(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string map_key = 1; * @param value The bytes for mapKey to set. * @return This builder for chaining. */ public Builder setMapKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mapKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:substrait.Expression.MaskExpression.MapSelect.MapKey) } // @@protoc_insertion_point(class_scope:substrait.Expression.MaskExpression.MapSelect.MapKey) private static final io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey(); } public static io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MapKey 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.MaskExpression.MapSelect.MapKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MapKeyExpressionOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.MaskExpression.MapSelect.MapKeyExpression) com.google.protobuf.MessageOrBuilder { /** * string map_key_expression = 1; * @return The mapKeyExpression. */ java.lang.String getMapKeyExpression(); /** * string map_key_expression = 1; * @return The bytes for mapKeyExpression. */ com.google.protobuf.ByteString getMapKeyExpressionBytes(); } /** * Protobuf type {@code substrait.Expression.MaskExpression.MapSelect.MapKeyExpression} */ public static final class MapKeyExpression extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.MaskExpression.MapSelect.MapKeyExpression) MapKeyExpressionOrBuilder { private static final long serialVersionUID = 0L; // Use MapKeyExpression.newBuilder() to construct. private MapKeyExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MapKeyExpression() { mapKeyExpression_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MapKeyExpression(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_MapSelect_MapKeyExpression_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_MapSelect_MapKeyExpression_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression.class, io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression.Builder.class); } public static final int MAP_KEY_EXPRESSION_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object mapKeyExpression_ = ""; /** * string map_key_expression = 1; * @return The mapKeyExpression. */ @java.lang.Override public java.lang.String getMapKeyExpression() { java.lang.Object ref = mapKeyExpression_; 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(); mapKeyExpression_ = s; return s; } } /** * string map_key_expression = 1; * @return The bytes for mapKeyExpression. */ @java.lang.Override public com.google.protobuf.ByteString getMapKeyExpressionBytes() { java.lang.Object ref = mapKeyExpression_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mapKeyExpression_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mapKeyExpression_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mapKeyExpression_); } 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(mapKeyExpression_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mapKeyExpression_); } 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.MaskExpression.MapSelect.MapKeyExpression)) { return super.equals(obj); } io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression other = (io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression) obj; if (!getMapKeyExpression() .equals(other.getMapKeyExpression())) 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) + MAP_KEY_EXPRESSION_FIELD_NUMBER; hash = (53 * hash) + getMapKeyExpression().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression 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.MaskExpression.MapSelect.MapKeyExpression parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression 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.MaskExpression.MapSelect.MapKeyExpression parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression 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.MaskExpression.MapSelect.MapKeyExpression parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression 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.MaskExpression.MapSelect.MapKeyExpression parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression 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.MaskExpression.MapSelect.MapKeyExpression 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.MaskExpression.MapSelect.MapKeyExpression} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.MaskExpression.MapSelect.MapKeyExpression) io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpressionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_MapSelect_MapKeyExpression_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_MapSelect_MapKeyExpression_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression.class, io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression.Builder.class); } // Construct using io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; mapKeyExpression_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_MapSelect_MapKeyExpression_descriptor; } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression getDefaultInstanceForType() { return io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression build() { io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression buildPartial() { io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression result = new io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.mapKeyExpression_ = mapKeyExpression_; } } @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.MaskExpression.MapSelect.MapKeyExpression) { return mergeFrom((io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression other) { if (other == io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression.getDefaultInstance()) return this; if (!other.getMapKeyExpression().isEmpty()) { mapKeyExpression_ = other.mapKeyExpression_; bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { mapKeyExpression_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object mapKeyExpression_ = ""; /** * string map_key_expression = 1; * @return The mapKeyExpression. */ public java.lang.String getMapKeyExpression() { java.lang.Object ref = mapKeyExpression_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mapKeyExpression_ = s; return s; } else { return (java.lang.String) ref; } } /** * string map_key_expression = 1; * @return The bytes for mapKeyExpression. */ public com.google.protobuf.ByteString getMapKeyExpressionBytes() { java.lang.Object ref = mapKeyExpression_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mapKeyExpression_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string map_key_expression = 1; * @param value The mapKeyExpression to set. * @return This builder for chaining. */ public Builder setMapKeyExpression( java.lang.String value) { if (value == null) { throw new NullPointerException(); } mapKeyExpression_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string map_key_expression = 1; * @return This builder for chaining. */ public Builder clearMapKeyExpression() { mapKeyExpression_ = getDefaultInstance().getMapKeyExpression(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string map_key_expression = 1; * @param value The bytes for mapKeyExpression to set. * @return This builder for chaining. */ public Builder setMapKeyExpressionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mapKeyExpression_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:substrait.Expression.MaskExpression.MapSelect.MapKeyExpression) } // @@protoc_insertion_point(class_scope:substrait.Expression.MaskExpression.MapSelect.MapKeyExpression) private static final io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression(); } public static io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MapKeyExpression 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.MaskExpression.MapSelect.MapKeyExpression getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; private int selectCase_ = 0; @SuppressWarnings("serial") private java.lang.Object select_; public enum SelectCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { KEY(1), EXPRESSION(2), SELECT_NOT_SET(0); private final int value; private SelectCase(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 SelectCase valueOf(int value) { return forNumber(value); } public static SelectCase forNumber(int value) { switch (value) { case 1: return KEY; case 2: return EXPRESSION; case 0: return SELECT_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public SelectCase getSelectCase() { return SelectCase.forNumber( selectCase_); } public static final int KEY_FIELD_NUMBER = 1; /** * .substrait.Expression.MaskExpression.MapSelect.MapKey key = 1; * @return Whether the key field is set. */ @java.lang.Override public boolean hasKey() { return selectCase_ == 1; } /** * .substrait.Expression.MaskExpression.MapSelect.MapKey key = 1; * @return The key. */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey getKey() { if (selectCase_ == 1) { return (io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey) select_; } return io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey.getDefaultInstance(); } /** * .substrait.Expression.MaskExpression.MapSelect.MapKey key = 1; */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyOrBuilder getKeyOrBuilder() { if (selectCase_ == 1) { return (io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey) select_; } return io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey.getDefaultInstance(); } public static final int EXPRESSION_FIELD_NUMBER = 2; /** * .substrait.Expression.MaskExpression.MapSelect.MapKeyExpression expression = 2; * @return Whether the expression field is set. */ @java.lang.Override public boolean hasExpression() { return selectCase_ == 2; } /** * .substrait.Expression.MaskExpression.MapSelect.MapKeyExpression expression = 2; * @return The expression. */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression getExpression() { if (selectCase_ == 2) { return (io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression) select_; } return io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression.getDefaultInstance(); } /** * .substrait.Expression.MaskExpression.MapSelect.MapKeyExpression expression = 2; */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpressionOrBuilder getExpressionOrBuilder() { if (selectCase_ == 2) { return (io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression) select_; } return io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression.getDefaultInstance(); } public static final int CHILD_FIELD_NUMBER = 3; private io.substrait.proto.Expression.MaskExpression.Select child_; /** * .substrait.Expression.MaskExpression.Select child = 3; * @return Whether the child field is set. */ @java.lang.Override public boolean hasChild() { return ((bitField0_ & 0x00000001) != 0); } /** * .substrait.Expression.MaskExpression.Select child = 3; * @return The child. */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.Select getChild() { return child_ == null ? io.substrait.proto.Expression.MaskExpression.Select.getDefaultInstance() : child_; } /** * .substrait.Expression.MaskExpression.Select child = 3; */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.SelectOrBuilder getChildOrBuilder() { return child_ == null ? io.substrait.proto.Expression.MaskExpression.Select.getDefaultInstance() : child_; } 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 (selectCase_ == 1) { output.writeMessage(1, (io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey) select_); } if (selectCase_ == 2) { output.writeMessage(2, (io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression) select_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getChild()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (selectCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey) select_); } if (selectCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression) select_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getChild()); } 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.MaskExpression.MapSelect)) { return super.equals(obj); } io.substrait.proto.Expression.MaskExpression.MapSelect other = (io.substrait.proto.Expression.MaskExpression.MapSelect) obj; if (hasChild() != other.hasChild()) return false; if (hasChild()) { if (!getChild() .equals(other.getChild())) return false; } if (!getSelectCase().equals(other.getSelectCase())) return false; switch (selectCase_) { case 1: if (!getKey() .equals(other.getKey())) return false; break; case 2: if (!getExpression() .equals(other.getExpression())) 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(); if (hasChild()) { hash = (37 * hash) + CHILD_FIELD_NUMBER; hash = (53 * hash) + getChild().hashCode(); } switch (selectCase_) { case 1: hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); break; case 2: hash = (37 * hash) + EXPRESSION_FIELD_NUMBER; hash = (53 * hash) + getExpression().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Expression.MaskExpression.MapSelect parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.MapSelect 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.MaskExpression.MapSelect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.MapSelect 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.MaskExpression.MapSelect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression.MapSelect parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.MaskExpression.MapSelect parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.MapSelect 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.MaskExpression.MapSelect parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.MapSelect 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.MaskExpression.MapSelect parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression.MapSelect 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.MaskExpression.MapSelect 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.MaskExpression.MapSelect} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.MaskExpression.MapSelect) io.substrait.proto.Expression.MaskExpression.MapSelectOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_MapSelect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_MapSelect_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.MaskExpression.MapSelect.class, io.substrait.proto.Expression.MaskExpression.MapSelect.Builder.class); } // Construct using io.substrait.proto.Expression.MaskExpression.MapSelect.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getChildFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (keyBuilder_ != null) { keyBuilder_.clear(); } if (expressionBuilder_ != null) { expressionBuilder_.clear(); } child_ = null; if (childBuilder_ != null) { childBuilder_.dispose(); childBuilder_ = null; } selectCase_ = 0; select_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_MapSelect_descriptor; } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.MapSelect getDefaultInstanceForType() { return io.substrait.proto.Expression.MaskExpression.MapSelect.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.MapSelect build() { io.substrait.proto.Expression.MaskExpression.MapSelect result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.MaskExpression.MapSelect buildPartial() { io.substrait.proto.Expression.MaskExpression.MapSelect result = new io.substrait.proto.Expression.MaskExpression.MapSelect(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(io.substrait.proto.Expression.MaskExpression.MapSelect result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.child_ = childBuilder_ == null ? child_ : childBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(io.substrait.proto.Expression.MaskExpression.MapSelect result) { result.selectCase_ = selectCase_; result.select_ = this.select_; if (selectCase_ == 1 && keyBuilder_ != null) { result.select_ = keyBuilder_.build(); } if (selectCase_ == 2 && expressionBuilder_ != null) { result.select_ = expressionBuilder_.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.MaskExpression.MapSelect) { return mergeFrom((io.substrait.proto.Expression.MaskExpression.MapSelect)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.MaskExpression.MapSelect other) { if (other == io.substrait.proto.Expression.MaskExpression.MapSelect.getDefaultInstance()) return this; if (other.hasChild()) { mergeChild(other.getChild()); } switch (other.getSelectCase()) { case KEY: { mergeKey(other.getKey()); break; } case EXPRESSION: { mergeExpression(other.getExpression()); break; } case SELECT_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( getKeyFieldBuilder().getBuilder(), extensionRegistry); selectCase_ = 1; break; } // case 10 case 18: { input.readMessage( getExpressionFieldBuilder().getBuilder(), extensionRegistry); selectCase_ = 2; break; } // case 18 case 26: { input.readMessage( getChildFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; 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 selectCase_ = 0; private java.lang.Object select_; public SelectCase getSelectCase() { return SelectCase.forNumber( selectCase_); } public Builder clearSelect() { selectCase_ = 0; select_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey, io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey.Builder, io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyOrBuilder> keyBuilder_; /** * .substrait.Expression.MaskExpression.MapSelect.MapKey key = 1; * @return Whether the key field is set. */ @java.lang.Override public boolean hasKey() { return selectCase_ == 1; } /** * .substrait.Expression.MaskExpression.MapSelect.MapKey key = 1; * @return The key. */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey getKey() { if (keyBuilder_ == null) { if (selectCase_ == 1) { return (io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey) select_; } return io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey.getDefaultInstance(); } else { if (selectCase_ == 1) { return keyBuilder_.getMessage(); } return io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey.getDefaultInstance(); } } /** * .substrait.Expression.MaskExpression.MapSelect.MapKey key = 1; */ public Builder setKey(io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } select_ = value; onChanged(); } else { keyBuilder_.setMessage(value); } selectCase_ = 1; return this; } /** * .substrait.Expression.MaskExpression.MapSelect.MapKey key = 1; */ public Builder setKey( io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey.Builder builderForValue) { if (keyBuilder_ == null) { select_ = builderForValue.build(); onChanged(); } else { keyBuilder_.setMessage(builderForValue.build()); } selectCase_ = 1; return this; } /** * .substrait.Expression.MaskExpression.MapSelect.MapKey key = 1; */ public Builder mergeKey(io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey value) { if (keyBuilder_ == null) { if (selectCase_ == 1 && select_ != io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey.getDefaultInstance()) { select_ = io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey.newBuilder((io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey) select_) .mergeFrom(value).buildPartial(); } else { select_ = value; } onChanged(); } else { if (selectCase_ == 1) { keyBuilder_.mergeFrom(value); } else { keyBuilder_.setMessage(value); } } selectCase_ = 1; return this; } /** * .substrait.Expression.MaskExpression.MapSelect.MapKey key = 1; */ public Builder clearKey() { if (keyBuilder_ == null) { if (selectCase_ == 1) { selectCase_ = 0; select_ = null; onChanged(); } } else { if (selectCase_ == 1) { selectCase_ = 0; select_ = null; } keyBuilder_.clear(); } return this; } /** * .substrait.Expression.MaskExpression.MapSelect.MapKey key = 1; */ public io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey.Builder getKeyBuilder() { return getKeyFieldBuilder().getBuilder(); } /** * .substrait.Expression.MaskExpression.MapSelect.MapKey key = 1; */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyOrBuilder getKeyOrBuilder() { if ((selectCase_ == 1) && (keyBuilder_ != null)) { return keyBuilder_.getMessageOrBuilder(); } else { if (selectCase_ == 1) { return (io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey) select_; } return io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey.getDefaultInstance(); } } /** * .substrait.Expression.MaskExpression.MapSelect.MapKey key = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey, io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey.Builder, io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { if (!(selectCase_ == 1)) { select_ = io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey.getDefaultInstance(); } keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey, io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey.Builder, io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyOrBuilder>( (io.substrait.proto.Expression.MaskExpression.MapSelect.MapKey) select_, getParentForChildren(), isClean()); select_ = null; } selectCase_ = 1; onChanged(); return keyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression, io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression.Builder, io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpressionOrBuilder> expressionBuilder_; /** * .substrait.Expression.MaskExpression.MapSelect.MapKeyExpression expression = 2; * @return Whether the expression field is set. */ @java.lang.Override public boolean hasExpression() { return selectCase_ == 2; } /** * .substrait.Expression.MaskExpression.MapSelect.MapKeyExpression expression = 2; * @return The expression. */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression getExpression() { if (expressionBuilder_ == null) { if (selectCase_ == 2) { return (io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression) select_; } return io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression.getDefaultInstance(); } else { if (selectCase_ == 2) { return expressionBuilder_.getMessage(); } return io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression.getDefaultInstance(); } } /** * .substrait.Expression.MaskExpression.MapSelect.MapKeyExpression expression = 2; */ public Builder setExpression(io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression value) { if (expressionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } select_ = value; onChanged(); } else { expressionBuilder_.setMessage(value); } selectCase_ = 2; return this; } /** * .substrait.Expression.MaskExpression.MapSelect.MapKeyExpression expression = 2; */ public Builder setExpression( io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression.Builder builderForValue) { if (expressionBuilder_ == null) { select_ = builderForValue.build(); onChanged(); } else { expressionBuilder_.setMessage(builderForValue.build()); } selectCase_ = 2; return this; } /** * .substrait.Expression.MaskExpression.MapSelect.MapKeyExpression expression = 2; */ public Builder mergeExpression(io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression value) { if (expressionBuilder_ == null) { if (selectCase_ == 2 && select_ != io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression.getDefaultInstance()) { select_ = io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression.newBuilder((io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression) select_) .mergeFrom(value).buildPartial(); } else { select_ = value; } onChanged(); } else { if (selectCase_ == 2) { expressionBuilder_.mergeFrom(value); } else { expressionBuilder_.setMessage(value); } } selectCase_ = 2; return this; } /** * .substrait.Expression.MaskExpression.MapSelect.MapKeyExpression expression = 2; */ public Builder clearExpression() { if (expressionBuilder_ == null) { if (selectCase_ == 2) { selectCase_ = 0; select_ = null; onChanged(); } } else { if (selectCase_ == 2) { selectCase_ = 0; select_ = null; } expressionBuilder_.clear(); } return this; } /** * .substrait.Expression.MaskExpression.MapSelect.MapKeyExpression expression = 2; */ public io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression.Builder getExpressionBuilder() { return getExpressionFieldBuilder().getBuilder(); } /** * .substrait.Expression.MaskExpression.MapSelect.MapKeyExpression expression = 2; */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpressionOrBuilder getExpressionOrBuilder() { if ((selectCase_ == 2) && (expressionBuilder_ != null)) { return expressionBuilder_.getMessageOrBuilder(); } else { if (selectCase_ == 2) { return (io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression) select_; } return io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression.getDefaultInstance(); } } /** * .substrait.Expression.MaskExpression.MapSelect.MapKeyExpression expression = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression, io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression.Builder, io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpressionOrBuilder> getExpressionFieldBuilder() { if (expressionBuilder_ == null) { if (!(selectCase_ == 2)) { select_ = io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression.getDefaultInstance(); } expressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression, io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression.Builder, io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpressionOrBuilder>( (io.substrait.proto.Expression.MaskExpression.MapSelect.MapKeyExpression) select_, getParentForChildren(), isClean()); select_ = null; } selectCase_ = 2; onChanged(); return expressionBuilder_; } private io.substrait.proto.Expression.MaskExpression.Select child_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.Select, io.substrait.proto.Expression.MaskExpression.Select.Builder, io.substrait.proto.Expression.MaskExpression.SelectOrBuilder> childBuilder_; /** * .substrait.Expression.MaskExpression.Select child = 3; * @return Whether the child field is set. */ public boolean hasChild() { return ((bitField0_ & 0x00000004) != 0); } /** * .substrait.Expression.MaskExpression.Select child = 3; * @return The child. */ public io.substrait.proto.Expression.MaskExpression.Select getChild() { if (childBuilder_ == null) { return child_ == null ? io.substrait.proto.Expression.MaskExpression.Select.getDefaultInstance() : child_; } else { return childBuilder_.getMessage(); } } /** * .substrait.Expression.MaskExpression.Select child = 3; */ public Builder setChild(io.substrait.proto.Expression.MaskExpression.Select value) { if (childBuilder_ == null) { if (value == null) { throw new NullPointerException(); } child_ = value; } else { childBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .substrait.Expression.MaskExpression.Select child = 3; */ public Builder setChild( io.substrait.proto.Expression.MaskExpression.Select.Builder builderForValue) { if (childBuilder_ == null) { child_ = builderForValue.build(); } else { childBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .substrait.Expression.MaskExpression.Select child = 3; */ public Builder mergeChild(io.substrait.proto.Expression.MaskExpression.Select value) { if (childBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && child_ != null && child_ != io.substrait.proto.Expression.MaskExpression.Select.getDefaultInstance()) { getChildBuilder().mergeFrom(value); } else { child_ = value; } } else { childBuilder_.mergeFrom(value); } if (child_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .substrait.Expression.MaskExpression.Select child = 3; */ public Builder clearChild() { bitField0_ = (bitField0_ & ~0x00000004); child_ = null; if (childBuilder_ != null) { childBuilder_.dispose(); childBuilder_ = null; } onChanged(); return this; } /** * .substrait.Expression.MaskExpression.Select child = 3; */ public io.substrait.proto.Expression.MaskExpression.Select.Builder getChildBuilder() { bitField0_ |= 0x00000004; onChanged(); return getChildFieldBuilder().getBuilder(); } /** * .substrait.Expression.MaskExpression.Select child = 3; */ public io.substrait.proto.Expression.MaskExpression.SelectOrBuilder getChildOrBuilder() { if (childBuilder_ != null) { return childBuilder_.getMessageOrBuilder(); } else { return child_ == null ? io.substrait.proto.Expression.MaskExpression.Select.getDefaultInstance() : child_; } } /** * .substrait.Expression.MaskExpression.Select child = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.Select, io.substrait.proto.Expression.MaskExpression.Select.Builder, io.substrait.proto.Expression.MaskExpression.SelectOrBuilder> getChildFieldBuilder() { if (childBuilder_ == null) { childBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.Select, io.substrait.proto.Expression.MaskExpression.Select.Builder, io.substrait.proto.Expression.MaskExpression.SelectOrBuilder>( getChild(), getParentForChildren(), isClean()); child_ = null; } return childBuilder_; } @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.MaskExpression.MapSelect) } // @@protoc_insertion_point(class_scope:substrait.Expression.MaskExpression.MapSelect) private static final io.substrait.proto.Expression.MaskExpression.MapSelect DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.MaskExpression.MapSelect(); } public static io.substrait.proto.Expression.MaskExpression.MapSelect getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MapSelect 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.MaskExpression.MapSelect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int SELECT_FIELD_NUMBER = 1; private io.substrait.proto.Expression.MaskExpression.StructSelect select_; /** * .substrait.Expression.MaskExpression.StructSelect select = 1; * @return Whether the select field is set. */ @java.lang.Override public boolean hasSelect() { return ((bitField0_ & 0x00000001) != 0); } /** * .substrait.Expression.MaskExpression.StructSelect select = 1; * @return The select. */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.StructSelect getSelect() { return select_ == null ? io.substrait.proto.Expression.MaskExpression.StructSelect.getDefaultInstance() : select_; } /** * .substrait.Expression.MaskExpression.StructSelect select = 1; */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression.StructSelectOrBuilder getSelectOrBuilder() { return select_ == null ? io.substrait.proto.Expression.MaskExpression.StructSelect.getDefaultInstance() : select_; } public static final int MAINTAIN_SINGULAR_STRUCT_FIELD_NUMBER = 2; private boolean maintainSingularStruct_ = false; /** * bool maintain_singular_struct = 2; * @return The maintainSingularStruct. */ @java.lang.Override public boolean getMaintainSingularStruct() { return maintainSingularStruct_; } 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, getSelect()); } if (maintainSingularStruct_ != false) { output.writeBool(2, maintainSingularStruct_); } 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, getSelect()); } if (maintainSingularStruct_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, maintainSingularStruct_); } 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.MaskExpression)) { return super.equals(obj); } io.substrait.proto.Expression.MaskExpression other = (io.substrait.proto.Expression.MaskExpression) obj; if (hasSelect() != other.hasSelect()) return false; if (hasSelect()) { if (!getSelect() .equals(other.getSelect())) return false; } if (getMaintainSingularStruct() != other.getMaintainSingularStruct()) 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 (hasSelect()) { hash = (37 * hash) + SELECT_FIELD_NUMBER; hash = (53 * hash) + getSelect().hashCode(); } hash = (37 * hash) + MAINTAIN_SINGULAR_STRUCT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getMaintainSingularStruct()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Expression.MaskExpression parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression 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.MaskExpression parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression 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.MaskExpression parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.MaskExpression parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.MaskExpression parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression 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.MaskExpression parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression 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.MaskExpression parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.MaskExpression 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.MaskExpression 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 reference that takes an existing subtype and selectively removes fields
     * from it. For example, one might initially have an inner struct with 100
     * fields but a a particular operation only needs to interact with only 2 of
     * those 100 fields. In this situation, one would use a mask expression to
     * eliminate the 98 fields that are not relevant to the rest of the operation
     * pipeline.
     *
     * Note that this does not fundamentally alter the structure of data beyond
     * the elimination of unnecessary elements.
     * 
* * Protobuf type {@code substrait.Expression.MaskExpression} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.MaskExpression) io.substrait.proto.Expression.MaskExpressionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.MaskExpression.class, io.substrait.proto.Expression.MaskExpression.Builder.class); } // Construct using io.substrait.proto.Expression.MaskExpression.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSelectFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; select_ = null; if (selectBuilder_ != null) { selectBuilder_.dispose(); selectBuilder_ = null; } maintainSingularStruct_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_MaskExpression_descriptor; } @java.lang.Override public io.substrait.proto.Expression.MaskExpression getDefaultInstanceForType() { return io.substrait.proto.Expression.MaskExpression.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.MaskExpression build() { io.substrait.proto.Expression.MaskExpression result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.MaskExpression buildPartial() { io.substrait.proto.Expression.MaskExpression result = new io.substrait.proto.Expression.MaskExpression(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.substrait.proto.Expression.MaskExpression result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.select_ = selectBuilder_ == null ? select_ : selectBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.maintainSingularStruct_ = maintainSingularStruct_; } 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.MaskExpression) { return mergeFrom((io.substrait.proto.Expression.MaskExpression)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.MaskExpression other) { if (other == io.substrait.proto.Expression.MaskExpression.getDefaultInstance()) return this; if (other.hasSelect()) { mergeSelect(other.getSelect()); } if (other.getMaintainSingularStruct() != false) { setMaintainSingularStruct(other.getMaintainSingularStruct()); } 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( getSelectFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { maintainSingularStruct_ = input.readBool(); 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 io.substrait.proto.Expression.MaskExpression.StructSelect select_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.StructSelect, io.substrait.proto.Expression.MaskExpression.StructSelect.Builder, io.substrait.proto.Expression.MaskExpression.StructSelectOrBuilder> selectBuilder_; /** * .substrait.Expression.MaskExpression.StructSelect select = 1; * @return Whether the select field is set. */ public boolean hasSelect() { return ((bitField0_ & 0x00000001) != 0); } /** * .substrait.Expression.MaskExpression.StructSelect select = 1; * @return The select. */ public io.substrait.proto.Expression.MaskExpression.StructSelect getSelect() { if (selectBuilder_ == null) { return select_ == null ? io.substrait.proto.Expression.MaskExpression.StructSelect.getDefaultInstance() : select_; } else { return selectBuilder_.getMessage(); } } /** * .substrait.Expression.MaskExpression.StructSelect select = 1; */ public Builder setSelect(io.substrait.proto.Expression.MaskExpression.StructSelect value) { if (selectBuilder_ == null) { if (value == null) { throw new NullPointerException(); } select_ = value; } else { selectBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .substrait.Expression.MaskExpression.StructSelect select = 1; */ public Builder setSelect( io.substrait.proto.Expression.MaskExpression.StructSelect.Builder builderForValue) { if (selectBuilder_ == null) { select_ = builderForValue.build(); } else { selectBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .substrait.Expression.MaskExpression.StructSelect select = 1; */ public Builder mergeSelect(io.substrait.proto.Expression.MaskExpression.StructSelect value) { if (selectBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && select_ != null && select_ != io.substrait.proto.Expression.MaskExpression.StructSelect.getDefaultInstance()) { getSelectBuilder().mergeFrom(value); } else { select_ = value; } } else { selectBuilder_.mergeFrom(value); } if (select_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .substrait.Expression.MaskExpression.StructSelect select = 1; */ public Builder clearSelect() { bitField0_ = (bitField0_ & ~0x00000001); select_ = null; if (selectBuilder_ != null) { selectBuilder_.dispose(); selectBuilder_ = null; } onChanged(); return this; } /** * .substrait.Expression.MaskExpression.StructSelect select = 1; */ public io.substrait.proto.Expression.MaskExpression.StructSelect.Builder getSelectBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSelectFieldBuilder().getBuilder(); } /** * .substrait.Expression.MaskExpression.StructSelect select = 1; */ public io.substrait.proto.Expression.MaskExpression.StructSelectOrBuilder getSelectOrBuilder() { if (selectBuilder_ != null) { return selectBuilder_.getMessageOrBuilder(); } else { return select_ == null ? io.substrait.proto.Expression.MaskExpression.StructSelect.getDefaultInstance() : select_; } } /** * .substrait.Expression.MaskExpression.StructSelect select = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.StructSelect, io.substrait.proto.Expression.MaskExpression.StructSelect.Builder, io.substrait.proto.Expression.MaskExpression.StructSelectOrBuilder> getSelectFieldBuilder() { if (selectBuilder_ == null) { selectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression.StructSelect, io.substrait.proto.Expression.MaskExpression.StructSelect.Builder, io.substrait.proto.Expression.MaskExpression.StructSelectOrBuilder>( getSelect(), getParentForChildren(), isClean()); select_ = null; } return selectBuilder_; } private boolean maintainSingularStruct_ ; /** * bool maintain_singular_struct = 2; * @return The maintainSingularStruct. */ @java.lang.Override public boolean getMaintainSingularStruct() { return maintainSingularStruct_; } /** * bool maintain_singular_struct = 2; * @param value The maintainSingularStruct to set. * @return This builder for chaining. */ public Builder setMaintainSingularStruct(boolean value) { maintainSingularStruct_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bool maintain_singular_struct = 2; * @return This builder for chaining. */ public Builder clearMaintainSingularStruct() { bitField0_ = (bitField0_ & ~0x00000002); maintainSingularStruct_ = false; 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.MaskExpression) } // @@protoc_insertion_point(class_scope:substrait.Expression.MaskExpression) private static final io.substrait.proto.Expression.MaskExpression DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.MaskExpression(); } public static io.substrait.proto.Expression.MaskExpression getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MaskExpression 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.MaskExpression getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FieldReferenceOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.FieldReference) com.google.protobuf.MessageOrBuilder { /** * .substrait.Expression.ReferenceSegment direct_reference = 1; * @return Whether the directReference field is set. */ boolean hasDirectReference(); /** * .substrait.Expression.ReferenceSegment direct_reference = 1; * @return The directReference. */ io.substrait.proto.Expression.ReferenceSegment getDirectReference(); /** * .substrait.Expression.ReferenceSegment direct_reference = 1; */ io.substrait.proto.Expression.ReferenceSegmentOrBuilder getDirectReferenceOrBuilder(); /** * .substrait.Expression.MaskExpression masked_reference = 2; * @return Whether the maskedReference field is set. */ boolean hasMaskedReference(); /** * .substrait.Expression.MaskExpression masked_reference = 2; * @return The maskedReference. */ io.substrait.proto.Expression.MaskExpression getMaskedReference(); /** * .substrait.Expression.MaskExpression masked_reference = 2; */ io.substrait.proto.Expression.MaskExpressionOrBuilder getMaskedReferenceOrBuilder(); /** * .substrait.Expression expression = 3; * @return Whether the expression field is set. */ boolean hasExpression(); /** * .substrait.Expression expression = 3; * @return The expression. */ io.substrait.proto.Expression getExpression(); /** * .substrait.Expression expression = 3; */ io.substrait.proto.ExpressionOrBuilder getExpressionOrBuilder(); /** * .substrait.Expression.FieldReference.RootReference root_reference = 4; * @return Whether the rootReference field is set. */ boolean hasRootReference(); /** * .substrait.Expression.FieldReference.RootReference root_reference = 4; * @return The rootReference. */ io.substrait.proto.Expression.FieldReference.RootReference getRootReference(); /** * .substrait.Expression.FieldReference.RootReference root_reference = 4; */ io.substrait.proto.Expression.FieldReference.RootReferenceOrBuilder getRootReferenceOrBuilder(); /** * .substrait.Expression.FieldReference.OuterReference outer_reference = 5; * @return Whether the outerReference field is set. */ boolean hasOuterReference(); /** * .substrait.Expression.FieldReference.OuterReference outer_reference = 5; * @return The outerReference. */ io.substrait.proto.Expression.FieldReference.OuterReference getOuterReference(); /** * .substrait.Expression.FieldReference.OuterReference outer_reference = 5; */ io.substrait.proto.Expression.FieldReference.OuterReferenceOrBuilder getOuterReferenceOrBuilder(); io.substrait.proto.Expression.FieldReference.ReferenceTypeCase getReferenceTypeCase(); io.substrait.proto.Expression.FieldReference.RootTypeCase getRootTypeCase(); } /** *
   * A reference to an inner part of a complex object. Can reference reference a
   * single element or a masked version of elements
   * 
* * Protobuf type {@code substrait.Expression.FieldReference} */ public static final class FieldReference extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.FieldReference) FieldReferenceOrBuilder { private static final long serialVersionUID = 0L; // Use FieldReference.newBuilder() to construct. private FieldReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FieldReference() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FieldReference(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_FieldReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_FieldReference_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.FieldReference.class, io.substrait.proto.Expression.FieldReference.Builder.class); } public interface RootReferenceOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.FieldReference.RootReference) com.google.protobuf.MessageOrBuilder { } /** *
     * Singleton that expresses this FieldReference is rooted off the root
     * incoming record type
     * 
* * Protobuf type {@code substrait.Expression.FieldReference.RootReference} */ public static final class RootReference extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.FieldReference.RootReference) RootReferenceOrBuilder { private static final long serialVersionUID = 0L; // Use RootReference.newBuilder() to construct. private RootReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RootReference() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RootReference(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_FieldReference_RootReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_FieldReference_RootReference_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.FieldReference.RootReference.class, io.substrait.proto.Expression.FieldReference.RootReference.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.FieldReference.RootReference)) { return super.equals(obj); } io.substrait.proto.Expression.FieldReference.RootReference other = (io.substrait.proto.Expression.FieldReference.RootReference) 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.FieldReference.RootReference parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.FieldReference.RootReference 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.FieldReference.RootReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.FieldReference.RootReference 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.FieldReference.RootReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.FieldReference.RootReference parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.FieldReference.RootReference parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.FieldReference.RootReference 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.FieldReference.RootReference parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.FieldReference.RootReference 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.FieldReference.RootReference parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.FieldReference.RootReference 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.FieldReference.RootReference 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; } /** *
       * Singleton that expresses this FieldReference is rooted off the root
       * incoming record type
       * 
* * Protobuf type {@code substrait.Expression.FieldReference.RootReference} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.FieldReference.RootReference) io.substrait.proto.Expression.FieldReference.RootReferenceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_FieldReference_RootReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_FieldReference_RootReference_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.FieldReference.RootReference.class, io.substrait.proto.Expression.FieldReference.RootReference.Builder.class); } // Construct using io.substrait.proto.Expression.FieldReference.RootReference.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_FieldReference_RootReference_descriptor; } @java.lang.Override public io.substrait.proto.Expression.FieldReference.RootReference getDefaultInstanceForType() { return io.substrait.proto.Expression.FieldReference.RootReference.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.FieldReference.RootReference build() { io.substrait.proto.Expression.FieldReference.RootReference result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.FieldReference.RootReference buildPartial() { io.substrait.proto.Expression.FieldReference.RootReference result = new io.substrait.proto.Expression.FieldReference.RootReference(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.FieldReference.RootReference) { return mergeFrom((io.substrait.proto.Expression.FieldReference.RootReference)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.FieldReference.RootReference other) { if (other == io.substrait.proto.Expression.FieldReference.RootReference.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.FieldReference.RootReference) } // @@protoc_insertion_point(class_scope:substrait.Expression.FieldReference.RootReference) private static final io.substrait.proto.Expression.FieldReference.RootReference DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.FieldReference.RootReference(); } public static io.substrait.proto.Expression.FieldReference.RootReference getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RootReference 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.FieldReference.RootReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OuterReferenceOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.FieldReference.OuterReference) com.google.protobuf.MessageOrBuilder { /** *
       * number of subquery boundaries to traverse up for this field's reference
       *
       * This value must be >= 1
       * 
* * uint32 steps_out = 1; * @return The stepsOut. */ int getStepsOut(); } /** *
     * A root reference for the outer relation's subquery
     * 
* * Protobuf type {@code substrait.Expression.FieldReference.OuterReference} */ public static final class OuterReference extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.FieldReference.OuterReference) OuterReferenceOrBuilder { private static final long serialVersionUID = 0L; // Use OuterReference.newBuilder() to construct. private OuterReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OuterReference() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OuterReference(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_FieldReference_OuterReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_FieldReference_OuterReference_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.FieldReference.OuterReference.class, io.substrait.proto.Expression.FieldReference.OuterReference.Builder.class); } public static final int STEPS_OUT_FIELD_NUMBER = 1; private int stepsOut_ = 0; /** *
       * number of subquery boundaries to traverse up for this field's reference
       *
       * This value must be >= 1
       * 
* * uint32 steps_out = 1; * @return The stepsOut. */ @java.lang.Override public int getStepsOut() { return stepsOut_; } 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 (stepsOut_ != 0) { output.writeUInt32(1, stepsOut_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (stepsOut_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, stepsOut_); } 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.FieldReference.OuterReference)) { return super.equals(obj); } io.substrait.proto.Expression.FieldReference.OuterReference other = (io.substrait.proto.Expression.FieldReference.OuterReference) obj; if (getStepsOut() != other.getStepsOut()) 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) + STEPS_OUT_FIELD_NUMBER; hash = (53 * hash) + getStepsOut(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Expression.FieldReference.OuterReference parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.FieldReference.OuterReference 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.FieldReference.OuterReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.FieldReference.OuterReference 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.FieldReference.OuterReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.FieldReference.OuterReference parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.FieldReference.OuterReference parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.FieldReference.OuterReference 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.FieldReference.OuterReference parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.FieldReference.OuterReference 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.FieldReference.OuterReference parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.FieldReference.OuterReference 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.FieldReference.OuterReference 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 root reference for the outer relation's subquery
       * 
* * Protobuf type {@code substrait.Expression.FieldReference.OuterReference} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.FieldReference.OuterReference) io.substrait.proto.Expression.FieldReference.OuterReferenceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_FieldReference_OuterReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_FieldReference_OuterReference_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.FieldReference.OuterReference.class, io.substrait.proto.Expression.FieldReference.OuterReference.Builder.class); } // Construct using io.substrait.proto.Expression.FieldReference.OuterReference.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; stepsOut_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_FieldReference_OuterReference_descriptor; } @java.lang.Override public io.substrait.proto.Expression.FieldReference.OuterReference getDefaultInstanceForType() { return io.substrait.proto.Expression.FieldReference.OuterReference.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.FieldReference.OuterReference build() { io.substrait.proto.Expression.FieldReference.OuterReference result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.FieldReference.OuterReference buildPartial() { io.substrait.proto.Expression.FieldReference.OuterReference result = new io.substrait.proto.Expression.FieldReference.OuterReference(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.substrait.proto.Expression.FieldReference.OuterReference result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.stepsOut_ = stepsOut_; } } @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.FieldReference.OuterReference) { return mergeFrom((io.substrait.proto.Expression.FieldReference.OuterReference)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.FieldReference.OuterReference other) { if (other == io.substrait.proto.Expression.FieldReference.OuterReference.getDefaultInstance()) return this; if (other.getStepsOut() != 0) { setStepsOut(other.getStepsOut()); } 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: { stepsOut_ = input.readUInt32(); 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 int stepsOut_ ; /** *
         * number of subquery boundaries to traverse up for this field's reference
         *
         * This value must be >= 1
         * 
* * uint32 steps_out = 1; * @return The stepsOut. */ @java.lang.Override public int getStepsOut() { return stepsOut_; } /** *
         * number of subquery boundaries to traverse up for this field's reference
         *
         * This value must be >= 1
         * 
* * uint32 steps_out = 1; * @param value The stepsOut to set. * @return This builder for chaining. */ public Builder setStepsOut(int value) { stepsOut_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * number of subquery boundaries to traverse up for this field's reference
         *
         * This value must be >= 1
         * 
* * uint32 steps_out = 1; * @return This builder for chaining. */ public Builder clearStepsOut() { bitField0_ = (bitField0_ & ~0x00000001); stepsOut_ = 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.FieldReference.OuterReference) } // @@protoc_insertion_point(class_scope:substrait.Expression.FieldReference.OuterReference) private static final io.substrait.proto.Expression.FieldReference.OuterReference DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.FieldReference.OuterReference(); } public static io.substrait.proto.Expression.FieldReference.OuterReference getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OuterReference 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.FieldReference.OuterReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int referenceTypeCase_ = 0; @SuppressWarnings("serial") private java.lang.Object referenceType_; public enum ReferenceTypeCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { DIRECT_REFERENCE(1), MASKED_REFERENCE(2), REFERENCETYPE_NOT_SET(0); private final int value; private ReferenceTypeCase(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 ReferenceTypeCase valueOf(int value) { return forNumber(value); } public static ReferenceTypeCase forNumber(int value) { switch (value) { case 1: return DIRECT_REFERENCE; case 2: return MASKED_REFERENCE; case 0: return REFERENCETYPE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ReferenceTypeCase getReferenceTypeCase() { return ReferenceTypeCase.forNumber( referenceTypeCase_); } private int rootTypeCase_ = 0; @SuppressWarnings("serial") private java.lang.Object rootType_; public enum RootTypeCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { EXPRESSION(3), ROOT_REFERENCE(4), OUTER_REFERENCE(5), ROOTTYPE_NOT_SET(0); private final int value; private RootTypeCase(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 RootTypeCase valueOf(int value) { return forNumber(value); } public static RootTypeCase forNumber(int value) { switch (value) { case 3: return EXPRESSION; case 4: return ROOT_REFERENCE; case 5: return OUTER_REFERENCE; case 0: return ROOTTYPE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public RootTypeCase getRootTypeCase() { return RootTypeCase.forNumber( rootTypeCase_); } public static final int DIRECT_REFERENCE_FIELD_NUMBER = 1; /** * .substrait.Expression.ReferenceSegment direct_reference = 1; * @return Whether the directReference field is set. */ @java.lang.Override public boolean hasDirectReference() { return referenceTypeCase_ == 1; } /** * .substrait.Expression.ReferenceSegment direct_reference = 1; * @return The directReference. */ @java.lang.Override public io.substrait.proto.Expression.ReferenceSegment getDirectReference() { if (referenceTypeCase_ == 1) { return (io.substrait.proto.Expression.ReferenceSegment) referenceType_; } return io.substrait.proto.Expression.ReferenceSegment.getDefaultInstance(); } /** * .substrait.Expression.ReferenceSegment direct_reference = 1; */ @java.lang.Override public io.substrait.proto.Expression.ReferenceSegmentOrBuilder getDirectReferenceOrBuilder() { if (referenceTypeCase_ == 1) { return (io.substrait.proto.Expression.ReferenceSegment) referenceType_; } return io.substrait.proto.Expression.ReferenceSegment.getDefaultInstance(); } public static final int MASKED_REFERENCE_FIELD_NUMBER = 2; /** * .substrait.Expression.MaskExpression masked_reference = 2; * @return Whether the maskedReference field is set. */ @java.lang.Override public boolean hasMaskedReference() { return referenceTypeCase_ == 2; } /** * .substrait.Expression.MaskExpression masked_reference = 2; * @return The maskedReference. */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression getMaskedReference() { if (referenceTypeCase_ == 2) { return (io.substrait.proto.Expression.MaskExpression) referenceType_; } return io.substrait.proto.Expression.MaskExpression.getDefaultInstance(); } /** * .substrait.Expression.MaskExpression masked_reference = 2; */ @java.lang.Override public io.substrait.proto.Expression.MaskExpressionOrBuilder getMaskedReferenceOrBuilder() { if (referenceTypeCase_ == 2) { return (io.substrait.proto.Expression.MaskExpression) referenceType_; } return io.substrait.proto.Expression.MaskExpression.getDefaultInstance(); } public static final int EXPRESSION_FIELD_NUMBER = 3; /** * .substrait.Expression expression = 3; * @return Whether the expression field is set. */ @java.lang.Override public boolean hasExpression() { return rootTypeCase_ == 3; } /** * .substrait.Expression expression = 3; * @return The expression. */ @java.lang.Override public io.substrait.proto.Expression getExpression() { if (rootTypeCase_ == 3) { return (io.substrait.proto.Expression) rootType_; } return io.substrait.proto.Expression.getDefaultInstance(); } /** * .substrait.Expression expression = 3; */ @java.lang.Override public io.substrait.proto.ExpressionOrBuilder getExpressionOrBuilder() { if (rootTypeCase_ == 3) { return (io.substrait.proto.Expression) rootType_; } return io.substrait.proto.Expression.getDefaultInstance(); } public static final int ROOT_REFERENCE_FIELD_NUMBER = 4; /** * .substrait.Expression.FieldReference.RootReference root_reference = 4; * @return Whether the rootReference field is set. */ @java.lang.Override public boolean hasRootReference() { return rootTypeCase_ == 4; } /** * .substrait.Expression.FieldReference.RootReference root_reference = 4; * @return The rootReference. */ @java.lang.Override public io.substrait.proto.Expression.FieldReference.RootReference getRootReference() { if (rootTypeCase_ == 4) { return (io.substrait.proto.Expression.FieldReference.RootReference) rootType_; } return io.substrait.proto.Expression.FieldReference.RootReference.getDefaultInstance(); } /** * .substrait.Expression.FieldReference.RootReference root_reference = 4; */ @java.lang.Override public io.substrait.proto.Expression.FieldReference.RootReferenceOrBuilder getRootReferenceOrBuilder() { if (rootTypeCase_ == 4) { return (io.substrait.proto.Expression.FieldReference.RootReference) rootType_; } return io.substrait.proto.Expression.FieldReference.RootReference.getDefaultInstance(); } public static final int OUTER_REFERENCE_FIELD_NUMBER = 5; /** * .substrait.Expression.FieldReference.OuterReference outer_reference = 5; * @return Whether the outerReference field is set. */ @java.lang.Override public boolean hasOuterReference() { return rootTypeCase_ == 5; } /** * .substrait.Expression.FieldReference.OuterReference outer_reference = 5; * @return The outerReference. */ @java.lang.Override public io.substrait.proto.Expression.FieldReference.OuterReference getOuterReference() { if (rootTypeCase_ == 5) { return (io.substrait.proto.Expression.FieldReference.OuterReference) rootType_; } return io.substrait.proto.Expression.FieldReference.OuterReference.getDefaultInstance(); } /** * .substrait.Expression.FieldReference.OuterReference outer_reference = 5; */ @java.lang.Override public io.substrait.proto.Expression.FieldReference.OuterReferenceOrBuilder getOuterReferenceOrBuilder() { if (rootTypeCase_ == 5) { return (io.substrait.proto.Expression.FieldReference.OuterReference) rootType_; } return io.substrait.proto.Expression.FieldReference.OuterReference.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 (referenceTypeCase_ == 1) { output.writeMessage(1, (io.substrait.proto.Expression.ReferenceSegment) referenceType_); } if (referenceTypeCase_ == 2) { output.writeMessage(2, (io.substrait.proto.Expression.MaskExpression) referenceType_); } if (rootTypeCase_ == 3) { output.writeMessage(3, (io.substrait.proto.Expression) rootType_); } if (rootTypeCase_ == 4) { output.writeMessage(4, (io.substrait.proto.Expression.FieldReference.RootReference) rootType_); } if (rootTypeCase_ == 5) { output.writeMessage(5, (io.substrait.proto.Expression.FieldReference.OuterReference) rootType_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (referenceTypeCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (io.substrait.proto.Expression.ReferenceSegment) referenceType_); } if (referenceTypeCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.substrait.proto.Expression.MaskExpression) referenceType_); } if (rootTypeCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (io.substrait.proto.Expression) rootType_); } if (rootTypeCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (io.substrait.proto.Expression.FieldReference.RootReference) rootType_); } if (rootTypeCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (io.substrait.proto.Expression.FieldReference.OuterReference) rootType_); } 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.FieldReference)) { return super.equals(obj); } io.substrait.proto.Expression.FieldReference other = (io.substrait.proto.Expression.FieldReference) obj; if (!getReferenceTypeCase().equals(other.getReferenceTypeCase())) return false; switch (referenceTypeCase_) { case 1: if (!getDirectReference() .equals(other.getDirectReference())) return false; break; case 2: if (!getMaskedReference() .equals(other.getMaskedReference())) return false; break; case 0: default: } if (!getRootTypeCase().equals(other.getRootTypeCase())) return false; switch (rootTypeCase_) { case 3: if (!getExpression() .equals(other.getExpression())) return false; break; case 4: if (!getRootReference() .equals(other.getRootReference())) return false; break; case 5: if (!getOuterReference() .equals(other.getOuterReference())) 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 (referenceTypeCase_) { case 1: hash = (37 * hash) + DIRECT_REFERENCE_FIELD_NUMBER; hash = (53 * hash) + getDirectReference().hashCode(); break; case 2: hash = (37 * hash) + MASKED_REFERENCE_FIELD_NUMBER; hash = (53 * hash) + getMaskedReference().hashCode(); break; case 0: default: } switch (rootTypeCase_) { case 3: hash = (37 * hash) + EXPRESSION_FIELD_NUMBER; hash = (53 * hash) + getExpression().hashCode(); break; case 4: hash = (37 * hash) + ROOT_REFERENCE_FIELD_NUMBER; hash = (53 * hash) + getRootReference().hashCode(); break; case 5: hash = (37 * hash) + OUTER_REFERENCE_FIELD_NUMBER; hash = (53 * hash) + getOuterReference().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Expression.FieldReference parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.FieldReference 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.FieldReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.FieldReference 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.FieldReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.FieldReference parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.FieldReference parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.FieldReference 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.FieldReference parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.FieldReference 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.FieldReference parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.FieldReference 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.FieldReference 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 reference to an inner part of a complex object. Can reference reference a
     * single element or a masked version of elements
     * 
* * Protobuf type {@code substrait.Expression.FieldReference} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.FieldReference) io.substrait.proto.Expression.FieldReferenceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_FieldReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_FieldReference_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.FieldReference.class, io.substrait.proto.Expression.FieldReference.Builder.class); } // Construct using io.substrait.proto.Expression.FieldReference.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (directReferenceBuilder_ != null) { directReferenceBuilder_.clear(); } if (maskedReferenceBuilder_ != null) { maskedReferenceBuilder_.clear(); } if (expressionBuilder_ != null) { expressionBuilder_.clear(); } if (rootReferenceBuilder_ != null) { rootReferenceBuilder_.clear(); } if (outerReferenceBuilder_ != null) { outerReferenceBuilder_.clear(); } referenceTypeCase_ = 0; referenceType_ = null; rootTypeCase_ = 0; rootType_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_FieldReference_descriptor; } @java.lang.Override public io.substrait.proto.Expression.FieldReference getDefaultInstanceForType() { return io.substrait.proto.Expression.FieldReference.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.FieldReference build() { io.substrait.proto.Expression.FieldReference result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.FieldReference buildPartial() { io.substrait.proto.Expression.FieldReference result = new io.substrait.proto.Expression.FieldReference(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(io.substrait.proto.Expression.FieldReference result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(io.substrait.proto.Expression.FieldReference result) { result.referenceTypeCase_ = referenceTypeCase_; result.referenceType_ = this.referenceType_; if (referenceTypeCase_ == 1 && directReferenceBuilder_ != null) { result.referenceType_ = directReferenceBuilder_.build(); } if (referenceTypeCase_ == 2 && maskedReferenceBuilder_ != null) { result.referenceType_ = maskedReferenceBuilder_.build(); } result.rootTypeCase_ = rootTypeCase_; result.rootType_ = this.rootType_; if (rootTypeCase_ == 3 && expressionBuilder_ != null) { result.rootType_ = expressionBuilder_.build(); } if (rootTypeCase_ == 4 && rootReferenceBuilder_ != null) { result.rootType_ = rootReferenceBuilder_.build(); } if (rootTypeCase_ == 5 && outerReferenceBuilder_ != null) { result.rootType_ = outerReferenceBuilder_.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.FieldReference) { return mergeFrom((io.substrait.proto.Expression.FieldReference)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.FieldReference other) { if (other == io.substrait.proto.Expression.FieldReference.getDefaultInstance()) return this; switch (other.getReferenceTypeCase()) { case DIRECT_REFERENCE: { mergeDirectReference(other.getDirectReference()); break; } case MASKED_REFERENCE: { mergeMaskedReference(other.getMaskedReference()); break; } case REFERENCETYPE_NOT_SET: { break; } } switch (other.getRootTypeCase()) { case EXPRESSION: { mergeExpression(other.getExpression()); break; } case ROOT_REFERENCE: { mergeRootReference(other.getRootReference()); break; } case OUTER_REFERENCE: { mergeOuterReference(other.getOuterReference()); break; } case ROOTTYPE_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( getDirectReferenceFieldBuilder().getBuilder(), extensionRegistry); referenceTypeCase_ = 1; break; } // case 10 case 18: { input.readMessage( getMaskedReferenceFieldBuilder().getBuilder(), extensionRegistry); referenceTypeCase_ = 2; break; } // case 18 case 26: { input.readMessage( getExpressionFieldBuilder().getBuilder(), extensionRegistry); rootTypeCase_ = 3; break; } // case 26 case 34: { input.readMessage( getRootReferenceFieldBuilder().getBuilder(), extensionRegistry); rootTypeCase_ = 4; break; } // case 34 case 42: { input.readMessage( getOuterReferenceFieldBuilder().getBuilder(), extensionRegistry); rootTypeCase_ = 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 referenceTypeCase_ = 0; private java.lang.Object referenceType_; public ReferenceTypeCase getReferenceTypeCase() { return ReferenceTypeCase.forNumber( referenceTypeCase_); } public Builder clearReferenceType() { referenceTypeCase_ = 0; referenceType_ = null; onChanged(); return this; } private int rootTypeCase_ = 0; private java.lang.Object rootType_; public RootTypeCase getRootTypeCase() { return RootTypeCase.forNumber( rootTypeCase_); } public Builder clearRootType() { rootTypeCase_ = 0; rootType_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.ReferenceSegment, io.substrait.proto.Expression.ReferenceSegment.Builder, io.substrait.proto.Expression.ReferenceSegmentOrBuilder> directReferenceBuilder_; /** * .substrait.Expression.ReferenceSegment direct_reference = 1; * @return Whether the directReference field is set. */ @java.lang.Override public boolean hasDirectReference() { return referenceTypeCase_ == 1; } /** * .substrait.Expression.ReferenceSegment direct_reference = 1; * @return The directReference. */ @java.lang.Override public io.substrait.proto.Expression.ReferenceSegment getDirectReference() { if (directReferenceBuilder_ == null) { if (referenceTypeCase_ == 1) { return (io.substrait.proto.Expression.ReferenceSegment) referenceType_; } return io.substrait.proto.Expression.ReferenceSegment.getDefaultInstance(); } else { if (referenceTypeCase_ == 1) { return directReferenceBuilder_.getMessage(); } return io.substrait.proto.Expression.ReferenceSegment.getDefaultInstance(); } } /** * .substrait.Expression.ReferenceSegment direct_reference = 1; */ public Builder setDirectReference(io.substrait.proto.Expression.ReferenceSegment value) { if (directReferenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } referenceType_ = value; onChanged(); } else { directReferenceBuilder_.setMessage(value); } referenceTypeCase_ = 1; return this; } /** * .substrait.Expression.ReferenceSegment direct_reference = 1; */ public Builder setDirectReference( io.substrait.proto.Expression.ReferenceSegment.Builder builderForValue) { if (directReferenceBuilder_ == null) { referenceType_ = builderForValue.build(); onChanged(); } else { directReferenceBuilder_.setMessage(builderForValue.build()); } referenceTypeCase_ = 1; return this; } /** * .substrait.Expression.ReferenceSegment direct_reference = 1; */ public Builder mergeDirectReference(io.substrait.proto.Expression.ReferenceSegment value) { if (directReferenceBuilder_ == null) { if (referenceTypeCase_ == 1 && referenceType_ != io.substrait.proto.Expression.ReferenceSegment.getDefaultInstance()) { referenceType_ = io.substrait.proto.Expression.ReferenceSegment.newBuilder((io.substrait.proto.Expression.ReferenceSegment) referenceType_) .mergeFrom(value).buildPartial(); } else { referenceType_ = value; } onChanged(); } else { if (referenceTypeCase_ == 1) { directReferenceBuilder_.mergeFrom(value); } else { directReferenceBuilder_.setMessage(value); } } referenceTypeCase_ = 1; return this; } /** * .substrait.Expression.ReferenceSegment direct_reference = 1; */ public Builder clearDirectReference() { if (directReferenceBuilder_ == null) { if (referenceTypeCase_ == 1) { referenceTypeCase_ = 0; referenceType_ = null; onChanged(); } } else { if (referenceTypeCase_ == 1) { referenceTypeCase_ = 0; referenceType_ = null; } directReferenceBuilder_.clear(); } return this; } /** * .substrait.Expression.ReferenceSegment direct_reference = 1; */ public io.substrait.proto.Expression.ReferenceSegment.Builder getDirectReferenceBuilder() { return getDirectReferenceFieldBuilder().getBuilder(); } /** * .substrait.Expression.ReferenceSegment direct_reference = 1; */ @java.lang.Override public io.substrait.proto.Expression.ReferenceSegmentOrBuilder getDirectReferenceOrBuilder() { if ((referenceTypeCase_ == 1) && (directReferenceBuilder_ != null)) { return directReferenceBuilder_.getMessageOrBuilder(); } else { if (referenceTypeCase_ == 1) { return (io.substrait.proto.Expression.ReferenceSegment) referenceType_; } return io.substrait.proto.Expression.ReferenceSegment.getDefaultInstance(); } } /** * .substrait.Expression.ReferenceSegment direct_reference = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.ReferenceSegment, io.substrait.proto.Expression.ReferenceSegment.Builder, io.substrait.proto.Expression.ReferenceSegmentOrBuilder> getDirectReferenceFieldBuilder() { if (directReferenceBuilder_ == null) { if (!(referenceTypeCase_ == 1)) { referenceType_ = io.substrait.proto.Expression.ReferenceSegment.getDefaultInstance(); } directReferenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.ReferenceSegment, io.substrait.proto.Expression.ReferenceSegment.Builder, io.substrait.proto.Expression.ReferenceSegmentOrBuilder>( (io.substrait.proto.Expression.ReferenceSegment) referenceType_, getParentForChildren(), isClean()); referenceType_ = null; } referenceTypeCase_ = 1; onChanged(); return directReferenceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression, io.substrait.proto.Expression.MaskExpression.Builder, io.substrait.proto.Expression.MaskExpressionOrBuilder> maskedReferenceBuilder_; /** * .substrait.Expression.MaskExpression masked_reference = 2; * @return Whether the maskedReference field is set. */ @java.lang.Override public boolean hasMaskedReference() { return referenceTypeCase_ == 2; } /** * .substrait.Expression.MaskExpression masked_reference = 2; * @return The maskedReference. */ @java.lang.Override public io.substrait.proto.Expression.MaskExpression getMaskedReference() { if (maskedReferenceBuilder_ == null) { if (referenceTypeCase_ == 2) { return (io.substrait.proto.Expression.MaskExpression) referenceType_; } return io.substrait.proto.Expression.MaskExpression.getDefaultInstance(); } else { if (referenceTypeCase_ == 2) { return maskedReferenceBuilder_.getMessage(); } return io.substrait.proto.Expression.MaskExpression.getDefaultInstance(); } } /** * .substrait.Expression.MaskExpression masked_reference = 2; */ public Builder setMaskedReference(io.substrait.proto.Expression.MaskExpression value) { if (maskedReferenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } referenceType_ = value; onChanged(); } else { maskedReferenceBuilder_.setMessage(value); } referenceTypeCase_ = 2; return this; } /** * .substrait.Expression.MaskExpression masked_reference = 2; */ public Builder setMaskedReference( io.substrait.proto.Expression.MaskExpression.Builder builderForValue) { if (maskedReferenceBuilder_ == null) { referenceType_ = builderForValue.build(); onChanged(); } else { maskedReferenceBuilder_.setMessage(builderForValue.build()); } referenceTypeCase_ = 2; return this; } /** * .substrait.Expression.MaskExpression masked_reference = 2; */ public Builder mergeMaskedReference(io.substrait.proto.Expression.MaskExpression value) { if (maskedReferenceBuilder_ == null) { if (referenceTypeCase_ == 2 && referenceType_ != io.substrait.proto.Expression.MaskExpression.getDefaultInstance()) { referenceType_ = io.substrait.proto.Expression.MaskExpression.newBuilder((io.substrait.proto.Expression.MaskExpression) referenceType_) .mergeFrom(value).buildPartial(); } else { referenceType_ = value; } onChanged(); } else { if (referenceTypeCase_ == 2) { maskedReferenceBuilder_.mergeFrom(value); } else { maskedReferenceBuilder_.setMessage(value); } } referenceTypeCase_ = 2; return this; } /** * .substrait.Expression.MaskExpression masked_reference = 2; */ public Builder clearMaskedReference() { if (maskedReferenceBuilder_ == null) { if (referenceTypeCase_ == 2) { referenceTypeCase_ = 0; referenceType_ = null; onChanged(); } } else { if (referenceTypeCase_ == 2) { referenceTypeCase_ = 0; referenceType_ = null; } maskedReferenceBuilder_.clear(); } return this; } /** * .substrait.Expression.MaskExpression masked_reference = 2; */ public io.substrait.proto.Expression.MaskExpression.Builder getMaskedReferenceBuilder() { return getMaskedReferenceFieldBuilder().getBuilder(); } /** * .substrait.Expression.MaskExpression masked_reference = 2; */ @java.lang.Override public io.substrait.proto.Expression.MaskExpressionOrBuilder getMaskedReferenceOrBuilder() { if ((referenceTypeCase_ == 2) && (maskedReferenceBuilder_ != null)) { return maskedReferenceBuilder_.getMessageOrBuilder(); } else { if (referenceTypeCase_ == 2) { return (io.substrait.proto.Expression.MaskExpression) referenceType_; } return io.substrait.proto.Expression.MaskExpression.getDefaultInstance(); } } /** * .substrait.Expression.MaskExpression masked_reference = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression, io.substrait.proto.Expression.MaskExpression.Builder, io.substrait.proto.Expression.MaskExpressionOrBuilder> getMaskedReferenceFieldBuilder() { if (maskedReferenceBuilder_ == null) { if (!(referenceTypeCase_ == 2)) { referenceType_ = io.substrait.proto.Expression.MaskExpression.getDefaultInstance(); } maskedReferenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MaskExpression, io.substrait.proto.Expression.MaskExpression.Builder, io.substrait.proto.Expression.MaskExpressionOrBuilder>( (io.substrait.proto.Expression.MaskExpression) referenceType_, getParentForChildren(), isClean()); referenceType_ = null; } referenceTypeCase_ = 2; onChanged(); return maskedReferenceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> expressionBuilder_; /** * .substrait.Expression expression = 3; * @return Whether the expression field is set. */ @java.lang.Override public boolean hasExpression() { return rootTypeCase_ == 3; } /** * .substrait.Expression expression = 3; * @return The expression. */ @java.lang.Override public io.substrait.proto.Expression getExpression() { if (expressionBuilder_ == null) { if (rootTypeCase_ == 3) { return (io.substrait.proto.Expression) rootType_; } return io.substrait.proto.Expression.getDefaultInstance(); } else { if (rootTypeCase_ == 3) { return expressionBuilder_.getMessage(); } return io.substrait.proto.Expression.getDefaultInstance(); } } /** * .substrait.Expression expression = 3; */ public Builder setExpression(io.substrait.proto.Expression value) { if (expressionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rootType_ = value; onChanged(); } else { expressionBuilder_.setMessage(value); } rootTypeCase_ = 3; return this; } /** * .substrait.Expression expression = 3; */ public Builder setExpression( io.substrait.proto.Expression.Builder builderForValue) { if (expressionBuilder_ == null) { rootType_ = builderForValue.build(); onChanged(); } else { expressionBuilder_.setMessage(builderForValue.build()); } rootTypeCase_ = 3; return this; } /** * .substrait.Expression expression = 3; */ public Builder mergeExpression(io.substrait.proto.Expression value) { if (expressionBuilder_ == null) { if (rootTypeCase_ == 3 && rootType_ != io.substrait.proto.Expression.getDefaultInstance()) { rootType_ = io.substrait.proto.Expression.newBuilder((io.substrait.proto.Expression) rootType_) .mergeFrom(value).buildPartial(); } else { rootType_ = value; } onChanged(); } else { if (rootTypeCase_ == 3) { expressionBuilder_.mergeFrom(value); } else { expressionBuilder_.setMessage(value); } } rootTypeCase_ = 3; return this; } /** * .substrait.Expression expression = 3; */ public Builder clearExpression() { if (expressionBuilder_ == null) { if (rootTypeCase_ == 3) { rootTypeCase_ = 0; rootType_ = null; onChanged(); } } else { if (rootTypeCase_ == 3) { rootTypeCase_ = 0; rootType_ = null; } expressionBuilder_.clear(); } return this; } /** * .substrait.Expression expression = 3; */ public io.substrait.proto.Expression.Builder getExpressionBuilder() { return getExpressionFieldBuilder().getBuilder(); } /** * .substrait.Expression expression = 3; */ @java.lang.Override public io.substrait.proto.ExpressionOrBuilder getExpressionOrBuilder() { if ((rootTypeCase_ == 3) && (expressionBuilder_ != null)) { return expressionBuilder_.getMessageOrBuilder(); } else { if (rootTypeCase_ == 3) { return (io.substrait.proto.Expression) rootType_; } return io.substrait.proto.Expression.getDefaultInstance(); } } /** * .substrait.Expression expression = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> getExpressionFieldBuilder() { if (expressionBuilder_ == null) { if (!(rootTypeCase_ == 3)) { rootType_ = io.substrait.proto.Expression.getDefaultInstance(); } expressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>( (io.substrait.proto.Expression) rootType_, getParentForChildren(), isClean()); rootType_ = null; } rootTypeCase_ = 3; onChanged(); return expressionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.FieldReference.RootReference, io.substrait.proto.Expression.FieldReference.RootReference.Builder, io.substrait.proto.Expression.FieldReference.RootReferenceOrBuilder> rootReferenceBuilder_; /** * .substrait.Expression.FieldReference.RootReference root_reference = 4; * @return Whether the rootReference field is set. */ @java.lang.Override public boolean hasRootReference() { return rootTypeCase_ == 4; } /** * .substrait.Expression.FieldReference.RootReference root_reference = 4; * @return The rootReference. */ @java.lang.Override public io.substrait.proto.Expression.FieldReference.RootReference getRootReference() { if (rootReferenceBuilder_ == null) { if (rootTypeCase_ == 4) { return (io.substrait.proto.Expression.FieldReference.RootReference) rootType_; } return io.substrait.proto.Expression.FieldReference.RootReference.getDefaultInstance(); } else { if (rootTypeCase_ == 4) { return rootReferenceBuilder_.getMessage(); } return io.substrait.proto.Expression.FieldReference.RootReference.getDefaultInstance(); } } /** * .substrait.Expression.FieldReference.RootReference root_reference = 4; */ public Builder setRootReference(io.substrait.proto.Expression.FieldReference.RootReference value) { if (rootReferenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rootType_ = value; onChanged(); } else { rootReferenceBuilder_.setMessage(value); } rootTypeCase_ = 4; return this; } /** * .substrait.Expression.FieldReference.RootReference root_reference = 4; */ public Builder setRootReference( io.substrait.proto.Expression.FieldReference.RootReference.Builder builderForValue) { if (rootReferenceBuilder_ == null) { rootType_ = builderForValue.build(); onChanged(); } else { rootReferenceBuilder_.setMessage(builderForValue.build()); } rootTypeCase_ = 4; return this; } /** * .substrait.Expression.FieldReference.RootReference root_reference = 4; */ public Builder mergeRootReference(io.substrait.proto.Expression.FieldReference.RootReference value) { if (rootReferenceBuilder_ == null) { if (rootTypeCase_ == 4 && rootType_ != io.substrait.proto.Expression.FieldReference.RootReference.getDefaultInstance()) { rootType_ = io.substrait.proto.Expression.FieldReference.RootReference.newBuilder((io.substrait.proto.Expression.FieldReference.RootReference) rootType_) .mergeFrom(value).buildPartial(); } else { rootType_ = value; } onChanged(); } else { if (rootTypeCase_ == 4) { rootReferenceBuilder_.mergeFrom(value); } else { rootReferenceBuilder_.setMessage(value); } } rootTypeCase_ = 4; return this; } /** * .substrait.Expression.FieldReference.RootReference root_reference = 4; */ public Builder clearRootReference() { if (rootReferenceBuilder_ == null) { if (rootTypeCase_ == 4) { rootTypeCase_ = 0; rootType_ = null; onChanged(); } } else { if (rootTypeCase_ == 4) { rootTypeCase_ = 0; rootType_ = null; } rootReferenceBuilder_.clear(); } return this; } /** * .substrait.Expression.FieldReference.RootReference root_reference = 4; */ public io.substrait.proto.Expression.FieldReference.RootReference.Builder getRootReferenceBuilder() { return getRootReferenceFieldBuilder().getBuilder(); } /** * .substrait.Expression.FieldReference.RootReference root_reference = 4; */ @java.lang.Override public io.substrait.proto.Expression.FieldReference.RootReferenceOrBuilder getRootReferenceOrBuilder() { if ((rootTypeCase_ == 4) && (rootReferenceBuilder_ != null)) { return rootReferenceBuilder_.getMessageOrBuilder(); } else { if (rootTypeCase_ == 4) { return (io.substrait.proto.Expression.FieldReference.RootReference) rootType_; } return io.substrait.proto.Expression.FieldReference.RootReference.getDefaultInstance(); } } /** * .substrait.Expression.FieldReference.RootReference root_reference = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.FieldReference.RootReference, io.substrait.proto.Expression.FieldReference.RootReference.Builder, io.substrait.proto.Expression.FieldReference.RootReferenceOrBuilder> getRootReferenceFieldBuilder() { if (rootReferenceBuilder_ == null) { if (!(rootTypeCase_ == 4)) { rootType_ = io.substrait.proto.Expression.FieldReference.RootReference.getDefaultInstance(); } rootReferenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.FieldReference.RootReference, io.substrait.proto.Expression.FieldReference.RootReference.Builder, io.substrait.proto.Expression.FieldReference.RootReferenceOrBuilder>( (io.substrait.proto.Expression.FieldReference.RootReference) rootType_, getParentForChildren(), isClean()); rootType_ = null; } rootTypeCase_ = 4; onChanged(); return rootReferenceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.FieldReference.OuterReference, io.substrait.proto.Expression.FieldReference.OuterReference.Builder, io.substrait.proto.Expression.FieldReference.OuterReferenceOrBuilder> outerReferenceBuilder_; /** * .substrait.Expression.FieldReference.OuterReference outer_reference = 5; * @return Whether the outerReference field is set. */ @java.lang.Override public boolean hasOuterReference() { return rootTypeCase_ == 5; } /** * .substrait.Expression.FieldReference.OuterReference outer_reference = 5; * @return The outerReference. */ @java.lang.Override public io.substrait.proto.Expression.FieldReference.OuterReference getOuterReference() { if (outerReferenceBuilder_ == null) { if (rootTypeCase_ == 5) { return (io.substrait.proto.Expression.FieldReference.OuterReference) rootType_; } return io.substrait.proto.Expression.FieldReference.OuterReference.getDefaultInstance(); } else { if (rootTypeCase_ == 5) { return outerReferenceBuilder_.getMessage(); } return io.substrait.proto.Expression.FieldReference.OuterReference.getDefaultInstance(); } } /** * .substrait.Expression.FieldReference.OuterReference outer_reference = 5; */ public Builder setOuterReference(io.substrait.proto.Expression.FieldReference.OuterReference value) { if (outerReferenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rootType_ = value; onChanged(); } else { outerReferenceBuilder_.setMessage(value); } rootTypeCase_ = 5; return this; } /** * .substrait.Expression.FieldReference.OuterReference outer_reference = 5; */ public Builder setOuterReference( io.substrait.proto.Expression.FieldReference.OuterReference.Builder builderForValue) { if (outerReferenceBuilder_ == null) { rootType_ = builderForValue.build(); onChanged(); } else { outerReferenceBuilder_.setMessage(builderForValue.build()); } rootTypeCase_ = 5; return this; } /** * .substrait.Expression.FieldReference.OuterReference outer_reference = 5; */ public Builder mergeOuterReference(io.substrait.proto.Expression.FieldReference.OuterReference value) { if (outerReferenceBuilder_ == null) { if (rootTypeCase_ == 5 && rootType_ != io.substrait.proto.Expression.FieldReference.OuterReference.getDefaultInstance()) { rootType_ = io.substrait.proto.Expression.FieldReference.OuterReference.newBuilder((io.substrait.proto.Expression.FieldReference.OuterReference) rootType_) .mergeFrom(value).buildPartial(); } else { rootType_ = value; } onChanged(); } else { if (rootTypeCase_ == 5) { outerReferenceBuilder_.mergeFrom(value); } else { outerReferenceBuilder_.setMessage(value); } } rootTypeCase_ = 5; return this; } /** * .substrait.Expression.FieldReference.OuterReference outer_reference = 5; */ public Builder clearOuterReference() { if (outerReferenceBuilder_ == null) { if (rootTypeCase_ == 5) { rootTypeCase_ = 0; rootType_ = null; onChanged(); } } else { if (rootTypeCase_ == 5) { rootTypeCase_ = 0; rootType_ = null; } outerReferenceBuilder_.clear(); } return this; } /** * .substrait.Expression.FieldReference.OuterReference outer_reference = 5; */ public io.substrait.proto.Expression.FieldReference.OuterReference.Builder getOuterReferenceBuilder() { return getOuterReferenceFieldBuilder().getBuilder(); } /** * .substrait.Expression.FieldReference.OuterReference outer_reference = 5; */ @java.lang.Override public io.substrait.proto.Expression.FieldReference.OuterReferenceOrBuilder getOuterReferenceOrBuilder() { if ((rootTypeCase_ == 5) && (outerReferenceBuilder_ != null)) { return outerReferenceBuilder_.getMessageOrBuilder(); } else { if (rootTypeCase_ == 5) { return (io.substrait.proto.Expression.FieldReference.OuterReference) rootType_; } return io.substrait.proto.Expression.FieldReference.OuterReference.getDefaultInstance(); } } /** * .substrait.Expression.FieldReference.OuterReference outer_reference = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.FieldReference.OuterReference, io.substrait.proto.Expression.FieldReference.OuterReference.Builder, io.substrait.proto.Expression.FieldReference.OuterReferenceOrBuilder> getOuterReferenceFieldBuilder() { if (outerReferenceBuilder_ == null) { if (!(rootTypeCase_ == 5)) { rootType_ = io.substrait.proto.Expression.FieldReference.OuterReference.getDefaultInstance(); } outerReferenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.FieldReference.OuterReference, io.substrait.proto.Expression.FieldReference.OuterReference.Builder, io.substrait.proto.Expression.FieldReference.OuterReferenceOrBuilder>( (io.substrait.proto.Expression.FieldReference.OuterReference) rootType_, getParentForChildren(), isClean()); rootType_ = null; } rootTypeCase_ = 5; onChanged(); return outerReferenceBuilder_; } @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.FieldReference) } // @@protoc_insertion_point(class_scope:substrait.Expression.FieldReference) private static final io.substrait.proto.Expression.FieldReference DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.FieldReference(); } public static io.substrait.proto.Expression.FieldReference getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FieldReference 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.FieldReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SubqueryOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.Subquery) com.google.protobuf.MessageOrBuilder { /** *
     * Scalar subquery
     * 
* * .substrait.Expression.Subquery.Scalar scalar = 1; * @return Whether the scalar field is set. */ boolean hasScalar(); /** *
     * Scalar subquery
     * 
* * .substrait.Expression.Subquery.Scalar scalar = 1; * @return The scalar. */ io.substrait.proto.Expression.Subquery.Scalar getScalar(); /** *
     * Scalar subquery
     * 
* * .substrait.Expression.Subquery.Scalar scalar = 1; */ io.substrait.proto.Expression.Subquery.ScalarOrBuilder getScalarOrBuilder(); /** *
     * x IN y predicate
     * 
* * .substrait.Expression.Subquery.InPredicate in_predicate = 2; * @return Whether the inPredicate field is set. */ boolean hasInPredicate(); /** *
     * x IN y predicate
     * 
* * .substrait.Expression.Subquery.InPredicate in_predicate = 2; * @return The inPredicate. */ io.substrait.proto.Expression.Subquery.InPredicate getInPredicate(); /** *
     * x IN y predicate
     * 
* * .substrait.Expression.Subquery.InPredicate in_predicate = 2; */ io.substrait.proto.Expression.Subquery.InPredicateOrBuilder getInPredicateOrBuilder(); /** *
     * EXISTS/UNIQUE predicate
     * 
* * .substrait.Expression.Subquery.SetPredicate set_predicate = 3; * @return Whether the setPredicate field is set. */ boolean hasSetPredicate(); /** *
     * EXISTS/UNIQUE predicate
     * 
* * .substrait.Expression.Subquery.SetPredicate set_predicate = 3; * @return The setPredicate. */ io.substrait.proto.Expression.Subquery.SetPredicate getSetPredicate(); /** *
     * EXISTS/UNIQUE predicate
     * 
* * .substrait.Expression.Subquery.SetPredicate set_predicate = 3; */ io.substrait.proto.Expression.Subquery.SetPredicateOrBuilder getSetPredicateOrBuilder(); /** *
     * ANY/ALL predicate
     * 
* * .substrait.Expression.Subquery.SetComparison set_comparison = 4; * @return Whether the setComparison field is set. */ boolean hasSetComparison(); /** *
     * ANY/ALL predicate
     * 
* * .substrait.Expression.Subquery.SetComparison set_comparison = 4; * @return The setComparison. */ io.substrait.proto.Expression.Subquery.SetComparison getSetComparison(); /** *
     * ANY/ALL predicate
     * 
* * .substrait.Expression.Subquery.SetComparison set_comparison = 4; */ io.substrait.proto.Expression.Subquery.SetComparisonOrBuilder getSetComparisonOrBuilder(); io.substrait.proto.Expression.Subquery.SubqueryTypeCase getSubqueryTypeCase(); } /** *
   * Subquery relation expression
   * 
* * Protobuf type {@code substrait.Expression.Subquery} */ public static final class Subquery extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.Subquery) SubqueryOrBuilder { private static final long serialVersionUID = 0L; // Use Subquery.newBuilder() to construct. private Subquery(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Subquery() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Subquery(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Subquery_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Subquery_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.Subquery.class, io.substrait.proto.Expression.Subquery.Builder.class); } public interface ScalarOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.Subquery.Scalar) com.google.protobuf.MessageOrBuilder { /** * .substrait.Rel input = 1; * @return Whether the input field is set. */ boolean hasInput(); /** * .substrait.Rel input = 1; * @return The input. */ io.substrait.proto.Rel getInput(); /** * .substrait.Rel input = 1; */ io.substrait.proto.RelOrBuilder getInputOrBuilder(); } /** *
     * A subquery with one row and one column. This is often an aggregate
     * though not required to be.
     * 
* * Protobuf type {@code substrait.Expression.Subquery.Scalar} */ public static final class Scalar extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.Subquery.Scalar) ScalarOrBuilder { private static final long serialVersionUID = 0L; // Use Scalar.newBuilder() to construct. private Scalar(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Scalar() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Scalar(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Subquery_Scalar_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Subquery_Scalar_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.Subquery.Scalar.class, io.substrait.proto.Expression.Subquery.Scalar.Builder.class); } private int bitField0_; public static final int INPUT_FIELD_NUMBER = 1; private io.substrait.proto.Rel input_; /** * .substrait.Rel input = 1; * @return Whether the input field is set. */ @java.lang.Override public boolean hasInput() { return ((bitField0_ & 0x00000001) != 0); } /** * .substrait.Rel input = 1; * @return The input. */ @java.lang.Override public io.substrait.proto.Rel getInput() { return input_ == null ? io.substrait.proto.Rel.getDefaultInstance() : input_; } /** * .substrait.Rel input = 1; */ @java.lang.Override public io.substrait.proto.RelOrBuilder getInputOrBuilder() { return input_ == null ? io.substrait.proto.Rel.getDefaultInstance() : input_; } 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, getInput()); } 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, getInput()); } 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.Subquery.Scalar)) { return super.equals(obj); } io.substrait.proto.Expression.Subquery.Scalar other = (io.substrait.proto.Expression.Subquery.Scalar) obj; if (hasInput() != other.hasInput()) return false; if (hasInput()) { if (!getInput() .equals(other.getInput())) 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 (hasInput()) { hash = (37 * hash) + INPUT_FIELD_NUMBER; hash = (53 * hash) + getInput().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Expression.Subquery.Scalar parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.Subquery.Scalar 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.Subquery.Scalar parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.Subquery.Scalar 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.Subquery.Scalar parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.Subquery.Scalar parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.Subquery.Scalar parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.Subquery.Scalar 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.Subquery.Scalar parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.Subquery.Scalar 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.Subquery.Scalar parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.Subquery.Scalar 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.Subquery.Scalar 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 subquery with one row and one column. This is often an aggregate
       * though not required to be.
       * 
* * Protobuf type {@code substrait.Expression.Subquery.Scalar} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.Subquery.Scalar) io.substrait.proto.Expression.Subquery.ScalarOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Subquery_Scalar_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Subquery_Scalar_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.Subquery.Scalar.class, io.substrait.proto.Expression.Subquery.Scalar.Builder.class); } // Construct using io.substrait.proto.Expression.Subquery.Scalar.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getInputFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; input_ = null; if (inputBuilder_ != null) { inputBuilder_.dispose(); inputBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Subquery_Scalar_descriptor; } @java.lang.Override public io.substrait.proto.Expression.Subquery.Scalar getDefaultInstanceForType() { return io.substrait.proto.Expression.Subquery.Scalar.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.Subquery.Scalar build() { io.substrait.proto.Expression.Subquery.Scalar result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.Subquery.Scalar buildPartial() { io.substrait.proto.Expression.Subquery.Scalar result = new io.substrait.proto.Expression.Subquery.Scalar(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.substrait.proto.Expression.Subquery.Scalar result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.input_ = inputBuilder_ == null ? input_ : inputBuilder_.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.Subquery.Scalar) { return mergeFrom((io.substrait.proto.Expression.Subquery.Scalar)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.Subquery.Scalar other) { if (other == io.substrait.proto.Expression.Subquery.Scalar.getDefaultInstance()) return this; if (other.hasInput()) { mergeInput(other.getInput()); } 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( getInputFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private io.substrait.proto.Rel input_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder> inputBuilder_; /** * .substrait.Rel input = 1; * @return Whether the input field is set. */ public boolean hasInput() { return ((bitField0_ & 0x00000001) != 0); } /** * .substrait.Rel input = 1; * @return The input. */ public io.substrait.proto.Rel getInput() { if (inputBuilder_ == null) { return input_ == null ? io.substrait.proto.Rel.getDefaultInstance() : input_; } else { return inputBuilder_.getMessage(); } } /** * .substrait.Rel input = 1; */ public Builder setInput(io.substrait.proto.Rel value) { if (inputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } input_ = value; } else { inputBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .substrait.Rel input = 1; */ public Builder setInput( io.substrait.proto.Rel.Builder builderForValue) { if (inputBuilder_ == null) { input_ = builderForValue.build(); } else { inputBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .substrait.Rel input = 1; */ public Builder mergeInput(io.substrait.proto.Rel value) { if (inputBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && input_ != null && input_ != io.substrait.proto.Rel.getDefaultInstance()) { getInputBuilder().mergeFrom(value); } else { input_ = value; } } else { inputBuilder_.mergeFrom(value); } if (input_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .substrait.Rel input = 1; */ public Builder clearInput() { bitField0_ = (bitField0_ & ~0x00000001); input_ = null; if (inputBuilder_ != null) { inputBuilder_.dispose(); inputBuilder_ = null; } onChanged(); return this; } /** * .substrait.Rel input = 1; */ public io.substrait.proto.Rel.Builder getInputBuilder() { bitField0_ |= 0x00000001; onChanged(); return getInputFieldBuilder().getBuilder(); } /** * .substrait.Rel input = 1; */ public io.substrait.proto.RelOrBuilder getInputOrBuilder() { if (inputBuilder_ != null) { return inputBuilder_.getMessageOrBuilder(); } else { return input_ == null ? io.substrait.proto.Rel.getDefaultInstance() : input_; } } /** * .substrait.Rel input = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder> getInputFieldBuilder() { if (inputBuilder_ == null) { inputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder>( getInput(), getParentForChildren(), isClean()); input_ = null; } return inputBuilder_; } @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.Subquery.Scalar) } // @@protoc_insertion_point(class_scope:substrait.Expression.Subquery.Scalar) private static final io.substrait.proto.Expression.Subquery.Scalar DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.Subquery.Scalar(); } public static io.substrait.proto.Expression.Subquery.Scalar getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Scalar 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.Subquery.Scalar getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InPredicateOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.Subquery.InPredicate) com.google.protobuf.MessageOrBuilder { /** * repeated .substrait.Expression needles = 1; */ java.util.List getNeedlesList(); /** * repeated .substrait.Expression needles = 1; */ io.substrait.proto.Expression getNeedles(int index); /** * repeated .substrait.Expression needles = 1; */ int getNeedlesCount(); /** * repeated .substrait.Expression needles = 1; */ java.util.List getNeedlesOrBuilderList(); /** * repeated .substrait.Expression needles = 1; */ io.substrait.proto.ExpressionOrBuilder getNeedlesOrBuilder( int index); /** * .substrait.Rel haystack = 2; * @return Whether the haystack field is set. */ boolean hasHaystack(); /** * .substrait.Rel haystack = 2; * @return The haystack. */ io.substrait.proto.Rel getHaystack(); /** * .substrait.Rel haystack = 2; */ io.substrait.proto.RelOrBuilder getHaystackOrBuilder(); } /** *
     * Predicate checking that the left expression is contained in the right
     * subquery
     *
     * Examples:
     *
     * x IN (SELECT * FROM t)
     * (x, y) IN (SELECT a, b FROM t)
     * 
* * Protobuf type {@code substrait.Expression.Subquery.InPredicate} */ public static final class InPredicate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.Subquery.InPredicate) InPredicateOrBuilder { private static final long serialVersionUID = 0L; // Use InPredicate.newBuilder() to construct. private InPredicate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InPredicate() { needles_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new InPredicate(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Subquery_InPredicate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Subquery_InPredicate_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.Subquery.InPredicate.class, io.substrait.proto.Expression.Subquery.InPredicate.Builder.class); } private int bitField0_; public static final int NEEDLES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List needles_; /** * repeated .substrait.Expression needles = 1; */ @java.lang.Override public java.util.List getNeedlesList() { return needles_; } /** * repeated .substrait.Expression needles = 1; */ @java.lang.Override public java.util.List getNeedlesOrBuilderList() { return needles_; } /** * repeated .substrait.Expression needles = 1; */ @java.lang.Override public int getNeedlesCount() { return needles_.size(); } /** * repeated .substrait.Expression needles = 1; */ @java.lang.Override public io.substrait.proto.Expression getNeedles(int index) { return needles_.get(index); } /** * repeated .substrait.Expression needles = 1; */ @java.lang.Override public io.substrait.proto.ExpressionOrBuilder getNeedlesOrBuilder( int index) { return needles_.get(index); } public static final int HAYSTACK_FIELD_NUMBER = 2; private io.substrait.proto.Rel haystack_; /** * .substrait.Rel haystack = 2; * @return Whether the haystack field is set. */ @java.lang.Override public boolean hasHaystack() { return ((bitField0_ & 0x00000001) != 0); } /** * .substrait.Rel haystack = 2; * @return The haystack. */ @java.lang.Override public io.substrait.proto.Rel getHaystack() { return haystack_ == null ? io.substrait.proto.Rel.getDefaultInstance() : haystack_; } /** * .substrait.Rel haystack = 2; */ @java.lang.Override public io.substrait.proto.RelOrBuilder getHaystackOrBuilder() { return haystack_ == null ? io.substrait.proto.Rel.getDefaultInstance() : haystack_; } 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 < needles_.size(); i++) { output.writeMessage(1, needles_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getHaystack()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < needles_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, needles_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getHaystack()); } 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.Subquery.InPredicate)) { return super.equals(obj); } io.substrait.proto.Expression.Subquery.InPredicate other = (io.substrait.proto.Expression.Subquery.InPredicate) obj; if (!getNeedlesList() .equals(other.getNeedlesList())) return false; if (hasHaystack() != other.hasHaystack()) return false; if (hasHaystack()) { if (!getHaystack() .equals(other.getHaystack())) 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 (getNeedlesCount() > 0) { hash = (37 * hash) + NEEDLES_FIELD_NUMBER; hash = (53 * hash) + getNeedlesList().hashCode(); } if (hasHaystack()) { hash = (37 * hash) + HAYSTACK_FIELD_NUMBER; hash = (53 * hash) + getHaystack().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Expression.Subquery.InPredicate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.Subquery.InPredicate 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.Subquery.InPredicate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.Subquery.InPredicate 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.Subquery.InPredicate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.Subquery.InPredicate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.Subquery.InPredicate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.Subquery.InPredicate 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.Subquery.InPredicate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.Subquery.InPredicate 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.Subquery.InPredicate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.Subquery.InPredicate 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.Subquery.InPredicate 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; } /** *
       * Predicate checking that the left expression is contained in the right
       * subquery
       *
       * Examples:
       *
       * x IN (SELECT * FROM t)
       * (x, y) IN (SELECT a, b FROM t)
       * 
* * Protobuf type {@code substrait.Expression.Subquery.InPredicate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.Subquery.InPredicate) io.substrait.proto.Expression.Subquery.InPredicateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Subquery_InPredicate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Subquery_InPredicate_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.Subquery.InPredicate.class, io.substrait.proto.Expression.Subquery.InPredicate.Builder.class); } // Construct using io.substrait.proto.Expression.Subquery.InPredicate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getNeedlesFieldBuilder(); getHaystackFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (needlesBuilder_ == null) { needles_ = java.util.Collections.emptyList(); } else { needles_ = null; needlesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); haystack_ = null; if (haystackBuilder_ != null) { haystackBuilder_.dispose(); haystackBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Subquery_InPredicate_descriptor; } @java.lang.Override public io.substrait.proto.Expression.Subquery.InPredicate getDefaultInstanceForType() { return io.substrait.proto.Expression.Subquery.InPredicate.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.Subquery.InPredicate build() { io.substrait.proto.Expression.Subquery.InPredicate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.Subquery.InPredicate buildPartial() { io.substrait.proto.Expression.Subquery.InPredicate result = new io.substrait.proto.Expression.Subquery.InPredicate(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.substrait.proto.Expression.Subquery.InPredicate result) { if (needlesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { needles_ = java.util.Collections.unmodifiableList(needles_); bitField0_ = (bitField0_ & ~0x00000001); } result.needles_ = needles_; } else { result.needles_ = needlesBuilder_.build(); } } private void buildPartial0(io.substrait.proto.Expression.Subquery.InPredicate result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.haystack_ = haystackBuilder_ == null ? haystack_ : haystackBuilder_.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.Subquery.InPredicate) { return mergeFrom((io.substrait.proto.Expression.Subquery.InPredicate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.Subquery.InPredicate other) { if (other == io.substrait.proto.Expression.Subquery.InPredicate.getDefaultInstance()) return this; if (needlesBuilder_ == null) { if (!other.needles_.isEmpty()) { if (needles_.isEmpty()) { needles_ = other.needles_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureNeedlesIsMutable(); needles_.addAll(other.needles_); } onChanged(); } } else { if (!other.needles_.isEmpty()) { if (needlesBuilder_.isEmpty()) { needlesBuilder_.dispose(); needlesBuilder_ = null; needles_ = other.needles_; bitField0_ = (bitField0_ & ~0x00000001); needlesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNeedlesFieldBuilder() : null; } else { needlesBuilder_.addAllMessages(other.needles_); } } } if (other.hasHaystack()) { mergeHaystack(other.getHaystack()); } 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 (needlesBuilder_ == null) { ensureNeedlesIsMutable(); needles_.add(m); } else { needlesBuilder_.addMessage(m); } break; } // case 10 case 18: { input.readMessage( getHaystackFieldBuilder().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 needles_ = java.util.Collections.emptyList(); private void ensureNeedlesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { needles_ = new java.util.ArrayList(needles_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> needlesBuilder_; /** * repeated .substrait.Expression needles = 1; */ public java.util.List getNeedlesList() { if (needlesBuilder_ == null) { return java.util.Collections.unmodifiableList(needles_); } else { return needlesBuilder_.getMessageList(); } } /** * repeated .substrait.Expression needles = 1; */ public int getNeedlesCount() { if (needlesBuilder_ == null) { return needles_.size(); } else { return needlesBuilder_.getCount(); } } /** * repeated .substrait.Expression needles = 1; */ public io.substrait.proto.Expression getNeedles(int index) { if (needlesBuilder_ == null) { return needles_.get(index); } else { return needlesBuilder_.getMessage(index); } } /** * repeated .substrait.Expression needles = 1; */ public Builder setNeedles( int index, io.substrait.proto.Expression value) { if (needlesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNeedlesIsMutable(); needles_.set(index, value); onChanged(); } else { needlesBuilder_.setMessage(index, value); } return this; } /** * repeated .substrait.Expression needles = 1; */ public Builder setNeedles( int index, io.substrait.proto.Expression.Builder builderForValue) { if (needlesBuilder_ == null) { ensureNeedlesIsMutable(); needles_.set(index, builderForValue.build()); onChanged(); } else { needlesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .substrait.Expression needles = 1; */ public Builder addNeedles(io.substrait.proto.Expression value) { if (needlesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNeedlesIsMutable(); needles_.add(value); onChanged(); } else { needlesBuilder_.addMessage(value); } return this; } /** * repeated .substrait.Expression needles = 1; */ public Builder addNeedles( int index, io.substrait.proto.Expression value) { if (needlesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNeedlesIsMutable(); needles_.add(index, value); onChanged(); } else { needlesBuilder_.addMessage(index, value); } return this; } /** * repeated .substrait.Expression needles = 1; */ public Builder addNeedles( io.substrait.proto.Expression.Builder builderForValue) { if (needlesBuilder_ == null) { ensureNeedlesIsMutable(); needles_.add(builderForValue.build()); onChanged(); } else { needlesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .substrait.Expression needles = 1; */ public Builder addNeedles( int index, io.substrait.proto.Expression.Builder builderForValue) { if (needlesBuilder_ == null) { ensureNeedlesIsMutable(); needles_.add(index, builderForValue.build()); onChanged(); } else { needlesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .substrait.Expression needles = 1; */ public Builder addAllNeedles( java.lang.Iterable values) { if (needlesBuilder_ == null) { ensureNeedlesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, needles_); onChanged(); } else { needlesBuilder_.addAllMessages(values); } return this; } /** * repeated .substrait.Expression needles = 1; */ public Builder clearNeedles() { if (needlesBuilder_ == null) { needles_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { needlesBuilder_.clear(); } return this; } /** * repeated .substrait.Expression needles = 1; */ public Builder removeNeedles(int index) { if (needlesBuilder_ == null) { ensureNeedlesIsMutable(); needles_.remove(index); onChanged(); } else { needlesBuilder_.remove(index); } return this; } /** * repeated .substrait.Expression needles = 1; */ public io.substrait.proto.Expression.Builder getNeedlesBuilder( int index) { return getNeedlesFieldBuilder().getBuilder(index); } /** * repeated .substrait.Expression needles = 1; */ public io.substrait.proto.ExpressionOrBuilder getNeedlesOrBuilder( int index) { if (needlesBuilder_ == null) { return needles_.get(index); } else { return needlesBuilder_.getMessageOrBuilder(index); } } /** * repeated .substrait.Expression needles = 1; */ public java.util.List getNeedlesOrBuilderList() { if (needlesBuilder_ != null) { return needlesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(needles_); } } /** * repeated .substrait.Expression needles = 1; */ public io.substrait.proto.Expression.Builder addNeedlesBuilder() { return getNeedlesFieldBuilder().addBuilder( io.substrait.proto.Expression.getDefaultInstance()); } /** * repeated .substrait.Expression needles = 1; */ public io.substrait.proto.Expression.Builder addNeedlesBuilder( int index) { return getNeedlesFieldBuilder().addBuilder( index, io.substrait.proto.Expression.getDefaultInstance()); } /** * repeated .substrait.Expression needles = 1; */ public java.util.List getNeedlesBuilderList() { return getNeedlesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> getNeedlesFieldBuilder() { if (needlesBuilder_ == null) { needlesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>( needles_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); needles_ = null; } return needlesBuilder_; } private io.substrait.proto.Rel haystack_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder> haystackBuilder_; /** * .substrait.Rel haystack = 2; * @return Whether the haystack field is set. */ public boolean hasHaystack() { return ((bitField0_ & 0x00000002) != 0); } /** * .substrait.Rel haystack = 2; * @return The haystack. */ public io.substrait.proto.Rel getHaystack() { if (haystackBuilder_ == null) { return haystack_ == null ? io.substrait.proto.Rel.getDefaultInstance() : haystack_; } else { return haystackBuilder_.getMessage(); } } /** * .substrait.Rel haystack = 2; */ public Builder setHaystack(io.substrait.proto.Rel value) { if (haystackBuilder_ == null) { if (value == null) { throw new NullPointerException(); } haystack_ = value; } else { haystackBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .substrait.Rel haystack = 2; */ public Builder setHaystack( io.substrait.proto.Rel.Builder builderForValue) { if (haystackBuilder_ == null) { haystack_ = builderForValue.build(); } else { haystackBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .substrait.Rel haystack = 2; */ public Builder mergeHaystack(io.substrait.proto.Rel value) { if (haystackBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && haystack_ != null && haystack_ != io.substrait.proto.Rel.getDefaultInstance()) { getHaystackBuilder().mergeFrom(value); } else { haystack_ = value; } } else { haystackBuilder_.mergeFrom(value); } if (haystack_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .substrait.Rel haystack = 2; */ public Builder clearHaystack() { bitField0_ = (bitField0_ & ~0x00000002); haystack_ = null; if (haystackBuilder_ != null) { haystackBuilder_.dispose(); haystackBuilder_ = null; } onChanged(); return this; } /** * .substrait.Rel haystack = 2; */ public io.substrait.proto.Rel.Builder getHaystackBuilder() { bitField0_ |= 0x00000002; onChanged(); return getHaystackFieldBuilder().getBuilder(); } /** * .substrait.Rel haystack = 2; */ public io.substrait.proto.RelOrBuilder getHaystackOrBuilder() { if (haystackBuilder_ != null) { return haystackBuilder_.getMessageOrBuilder(); } else { return haystack_ == null ? io.substrait.proto.Rel.getDefaultInstance() : haystack_; } } /** * .substrait.Rel haystack = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder> getHaystackFieldBuilder() { if (haystackBuilder_ == null) { haystackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder>( getHaystack(), getParentForChildren(), isClean()); haystack_ = null; } return haystackBuilder_; } @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.Subquery.InPredicate) } // @@protoc_insertion_point(class_scope:substrait.Expression.Subquery.InPredicate) private static final io.substrait.proto.Expression.Subquery.InPredicate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.Subquery.InPredicate(); } public static io.substrait.proto.Expression.Subquery.InPredicate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InPredicate 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.Subquery.InPredicate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SetPredicateOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.Subquery.SetPredicate) com.google.protobuf.MessageOrBuilder { /** *
       * TODO: should allow expressions
       * 
* * .substrait.Expression.Subquery.SetPredicate.PredicateOp predicate_op = 1; * @return The enum numeric value on the wire for predicateOp. */ int getPredicateOpValue(); /** *
       * TODO: should allow expressions
       * 
* * .substrait.Expression.Subquery.SetPredicate.PredicateOp predicate_op = 1; * @return The predicateOp. */ io.substrait.proto.Expression.Subquery.SetPredicate.PredicateOp getPredicateOp(); /** * .substrait.Rel tuples = 2; * @return Whether the tuples field is set. */ boolean hasTuples(); /** * .substrait.Rel tuples = 2; * @return The tuples. */ io.substrait.proto.Rel getTuples(); /** * .substrait.Rel tuples = 2; */ io.substrait.proto.RelOrBuilder getTuplesOrBuilder(); } /** *
     * A predicate over a set of rows in the form of a subquery
     * EXISTS and UNIQUE are common SQL forms of this operation.
     * 
* * Protobuf type {@code substrait.Expression.Subquery.SetPredicate} */ public static final class SetPredicate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.Subquery.SetPredicate) SetPredicateOrBuilder { private static final long serialVersionUID = 0L; // Use SetPredicate.newBuilder() to construct. private SetPredicate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SetPredicate() { predicateOp_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SetPredicate(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Subquery_SetPredicate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Subquery_SetPredicate_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.Subquery.SetPredicate.class, io.substrait.proto.Expression.Subquery.SetPredicate.Builder.class); } /** * Protobuf enum {@code substrait.Expression.Subquery.SetPredicate.PredicateOp} */ public enum PredicateOp implements com.google.protobuf.ProtocolMessageEnum { /** * PREDICATE_OP_UNSPECIFIED = 0; */ PREDICATE_OP_UNSPECIFIED(0), /** * PREDICATE_OP_EXISTS = 1; */ PREDICATE_OP_EXISTS(1), /** * PREDICATE_OP_UNIQUE = 2; */ PREDICATE_OP_UNIQUE(2), UNRECOGNIZED(-1), ; /** * PREDICATE_OP_UNSPECIFIED = 0; */ public static final int PREDICATE_OP_UNSPECIFIED_VALUE = 0; /** * PREDICATE_OP_EXISTS = 1; */ public static final int PREDICATE_OP_EXISTS_VALUE = 1; /** * PREDICATE_OP_UNIQUE = 2; */ public static final int PREDICATE_OP_UNIQUE_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 PredicateOp 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 PredicateOp forNumber(int value) { switch (value) { case 0: return PREDICATE_OP_UNSPECIFIED; case 1: return PREDICATE_OP_EXISTS; case 2: return PREDICATE_OP_UNIQUE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< PredicateOp> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public PredicateOp findValueByNumber(int number) { return PredicateOp.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.Subquery.SetPredicate.getDescriptor().getEnumTypes().get(0); } private static final PredicateOp[] VALUES = values(); public static PredicateOp 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 PredicateOp(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:substrait.Expression.Subquery.SetPredicate.PredicateOp) } private int bitField0_; public static final int PREDICATE_OP_FIELD_NUMBER = 1; private int predicateOp_ = 0; /** *
       * TODO: should allow expressions
       * 
* * .substrait.Expression.Subquery.SetPredicate.PredicateOp predicate_op = 1; * @return The enum numeric value on the wire for predicateOp. */ @java.lang.Override public int getPredicateOpValue() { return predicateOp_; } /** *
       * TODO: should allow expressions
       * 
* * .substrait.Expression.Subquery.SetPredicate.PredicateOp predicate_op = 1; * @return The predicateOp. */ @java.lang.Override public io.substrait.proto.Expression.Subquery.SetPredicate.PredicateOp getPredicateOp() { io.substrait.proto.Expression.Subquery.SetPredicate.PredicateOp result = io.substrait.proto.Expression.Subquery.SetPredicate.PredicateOp.forNumber(predicateOp_); return result == null ? io.substrait.proto.Expression.Subquery.SetPredicate.PredicateOp.UNRECOGNIZED : result; } public static final int TUPLES_FIELD_NUMBER = 2; private io.substrait.proto.Rel tuples_; /** * .substrait.Rel tuples = 2; * @return Whether the tuples field is set. */ @java.lang.Override public boolean hasTuples() { return ((bitField0_ & 0x00000001) != 0); } /** * .substrait.Rel tuples = 2; * @return The tuples. */ @java.lang.Override public io.substrait.proto.Rel getTuples() { return tuples_ == null ? io.substrait.proto.Rel.getDefaultInstance() : tuples_; } /** * .substrait.Rel tuples = 2; */ @java.lang.Override public io.substrait.proto.RelOrBuilder getTuplesOrBuilder() { return tuples_ == null ? io.substrait.proto.Rel.getDefaultInstance() : tuples_; } 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 (predicateOp_ != io.substrait.proto.Expression.Subquery.SetPredicate.PredicateOp.PREDICATE_OP_UNSPECIFIED.getNumber()) { output.writeEnum(1, predicateOp_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getTuples()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (predicateOp_ != io.substrait.proto.Expression.Subquery.SetPredicate.PredicateOp.PREDICATE_OP_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, predicateOp_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTuples()); } 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.Subquery.SetPredicate)) { return super.equals(obj); } io.substrait.proto.Expression.Subquery.SetPredicate other = (io.substrait.proto.Expression.Subquery.SetPredicate) obj; if (predicateOp_ != other.predicateOp_) return false; if (hasTuples() != other.hasTuples()) return false; if (hasTuples()) { if (!getTuples() .equals(other.getTuples())) 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) + PREDICATE_OP_FIELD_NUMBER; hash = (53 * hash) + predicateOp_; if (hasTuples()) { hash = (37 * hash) + TUPLES_FIELD_NUMBER; hash = (53 * hash) + getTuples().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Expression.Subquery.SetPredicate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.Subquery.SetPredicate 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.Subquery.SetPredicate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.Subquery.SetPredicate 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.Subquery.SetPredicate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.Subquery.SetPredicate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.Subquery.SetPredicate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.Subquery.SetPredicate 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.Subquery.SetPredicate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.Subquery.SetPredicate 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.Subquery.SetPredicate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.Subquery.SetPredicate 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.Subquery.SetPredicate 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 predicate over a set of rows in the form of a subquery
       * EXISTS and UNIQUE are common SQL forms of this operation.
       * 
* * Protobuf type {@code substrait.Expression.Subquery.SetPredicate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.Subquery.SetPredicate) io.substrait.proto.Expression.Subquery.SetPredicateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Subquery_SetPredicate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Subquery_SetPredicate_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.Subquery.SetPredicate.class, io.substrait.proto.Expression.Subquery.SetPredicate.Builder.class); } // Construct using io.substrait.proto.Expression.Subquery.SetPredicate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTuplesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; predicateOp_ = 0; tuples_ = null; if (tuplesBuilder_ != null) { tuplesBuilder_.dispose(); tuplesBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Subquery_SetPredicate_descriptor; } @java.lang.Override public io.substrait.proto.Expression.Subquery.SetPredicate getDefaultInstanceForType() { return io.substrait.proto.Expression.Subquery.SetPredicate.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.Subquery.SetPredicate build() { io.substrait.proto.Expression.Subquery.SetPredicate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.Subquery.SetPredicate buildPartial() { io.substrait.proto.Expression.Subquery.SetPredicate result = new io.substrait.proto.Expression.Subquery.SetPredicate(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.substrait.proto.Expression.Subquery.SetPredicate result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.predicateOp_ = predicateOp_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.tuples_ = tuplesBuilder_ == null ? tuples_ : tuplesBuilder_.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.Subquery.SetPredicate) { return mergeFrom((io.substrait.proto.Expression.Subquery.SetPredicate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.Subquery.SetPredicate other) { if (other == io.substrait.proto.Expression.Subquery.SetPredicate.getDefaultInstance()) return this; if (other.predicateOp_ != 0) { setPredicateOpValue(other.getPredicateOpValue()); } if (other.hasTuples()) { mergeTuples(other.getTuples()); } 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: { predicateOp_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getTuplesFieldBuilder().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 int predicateOp_ = 0; /** *
         * TODO: should allow expressions
         * 
* * .substrait.Expression.Subquery.SetPredicate.PredicateOp predicate_op = 1; * @return The enum numeric value on the wire for predicateOp. */ @java.lang.Override public int getPredicateOpValue() { return predicateOp_; } /** *
         * TODO: should allow expressions
         * 
* * .substrait.Expression.Subquery.SetPredicate.PredicateOp predicate_op = 1; * @param value The enum numeric value on the wire for predicateOp to set. * @return This builder for chaining. */ public Builder setPredicateOpValue(int value) { predicateOp_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * TODO: should allow expressions
         * 
* * .substrait.Expression.Subquery.SetPredicate.PredicateOp predicate_op = 1; * @return The predicateOp. */ @java.lang.Override public io.substrait.proto.Expression.Subquery.SetPredicate.PredicateOp getPredicateOp() { io.substrait.proto.Expression.Subquery.SetPredicate.PredicateOp result = io.substrait.proto.Expression.Subquery.SetPredicate.PredicateOp.forNumber(predicateOp_); return result == null ? io.substrait.proto.Expression.Subquery.SetPredicate.PredicateOp.UNRECOGNIZED : result; } /** *
         * TODO: should allow expressions
         * 
* * .substrait.Expression.Subquery.SetPredicate.PredicateOp predicate_op = 1; * @param value The predicateOp to set. * @return This builder for chaining. */ public Builder setPredicateOp(io.substrait.proto.Expression.Subquery.SetPredicate.PredicateOp value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; predicateOp_ = value.getNumber(); onChanged(); return this; } /** *
         * TODO: should allow expressions
         * 
* * .substrait.Expression.Subquery.SetPredicate.PredicateOp predicate_op = 1; * @return This builder for chaining. */ public Builder clearPredicateOp() { bitField0_ = (bitField0_ & ~0x00000001); predicateOp_ = 0; onChanged(); return this; } private io.substrait.proto.Rel tuples_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder> tuplesBuilder_; /** * .substrait.Rel tuples = 2; * @return Whether the tuples field is set. */ public boolean hasTuples() { return ((bitField0_ & 0x00000002) != 0); } /** * .substrait.Rel tuples = 2; * @return The tuples. */ public io.substrait.proto.Rel getTuples() { if (tuplesBuilder_ == null) { return tuples_ == null ? io.substrait.proto.Rel.getDefaultInstance() : tuples_; } else { return tuplesBuilder_.getMessage(); } } /** * .substrait.Rel tuples = 2; */ public Builder setTuples(io.substrait.proto.Rel value) { if (tuplesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tuples_ = value; } else { tuplesBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .substrait.Rel tuples = 2; */ public Builder setTuples( io.substrait.proto.Rel.Builder builderForValue) { if (tuplesBuilder_ == null) { tuples_ = builderForValue.build(); } else { tuplesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .substrait.Rel tuples = 2; */ public Builder mergeTuples(io.substrait.proto.Rel value) { if (tuplesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && tuples_ != null && tuples_ != io.substrait.proto.Rel.getDefaultInstance()) { getTuplesBuilder().mergeFrom(value); } else { tuples_ = value; } } else { tuplesBuilder_.mergeFrom(value); } if (tuples_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .substrait.Rel tuples = 2; */ public Builder clearTuples() { bitField0_ = (bitField0_ & ~0x00000002); tuples_ = null; if (tuplesBuilder_ != null) { tuplesBuilder_.dispose(); tuplesBuilder_ = null; } onChanged(); return this; } /** * .substrait.Rel tuples = 2; */ public io.substrait.proto.Rel.Builder getTuplesBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTuplesFieldBuilder().getBuilder(); } /** * .substrait.Rel tuples = 2; */ public io.substrait.proto.RelOrBuilder getTuplesOrBuilder() { if (tuplesBuilder_ != null) { return tuplesBuilder_.getMessageOrBuilder(); } else { return tuples_ == null ? io.substrait.proto.Rel.getDefaultInstance() : tuples_; } } /** * .substrait.Rel tuples = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder> getTuplesFieldBuilder() { if (tuplesBuilder_ == null) { tuplesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder>( getTuples(), getParentForChildren(), isClean()); tuples_ = null; } return tuplesBuilder_; } @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.Subquery.SetPredicate) } // @@protoc_insertion_point(class_scope:substrait.Expression.Subquery.SetPredicate) private static final io.substrait.proto.Expression.Subquery.SetPredicate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.Subquery.SetPredicate(); } public static io.substrait.proto.Expression.Subquery.SetPredicate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SetPredicate 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.Subquery.SetPredicate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SetComparisonOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Expression.Subquery.SetComparison) com.google.protobuf.MessageOrBuilder { /** *
       * ANY or ALL
       * 
* * .substrait.Expression.Subquery.SetComparison.ReductionOp reduction_op = 1; * @return The enum numeric value on the wire for reductionOp. */ int getReductionOpValue(); /** *
       * ANY or ALL
       * 
* * .substrait.Expression.Subquery.SetComparison.ReductionOp reduction_op = 1; * @return The reductionOp. */ io.substrait.proto.Expression.Subquery.SetComparison.ReductionOp getReductionOp(); /** *
       * A comparison operator
       * 
* * .substrait.Expression.Subquery.SetComparison.ComparisonOp comparison_op = 2; * @return The enum numeric value on the wire for comparisonOp. */ int getComparisonOpValue(); /** *
       * A comparison operator
       * 
* * .substrait.Expression.Subquery.SetComparison.ComparisonOp comparison_op = 2; * @return The comparisonOp. */ io.substrait.proto.Expression.Subquery.SetComparison.ComparisonOp getComparisonOp(); /** *
       * left side of the expression
       * 
* * .substrait.Expression left = 3; * @return Whether the left field is set. */ boolean hasLeft(); /** *
       * left side of the expression
       * 
* * .substrait.Expression left = 3; * @return The left. */ io.substrait.proto.Expression getLeft(); /** *
       * left side of the expression
       * 
* * .substrait.Expression left = 3; */ io.substrait.proto.ExpressionOrBuilder getLeftOrBuilder(); /** *
       * right side of the expression
       * 
* * .substrait.Rel right = 4; * @return Whether the right field is set. */ boolean hasRight(); /** *
       * right side of the expression
       * 
* * .substrait.Rel right = 4; * @return The right. */ io.substrait.proto.Rel getRight(); /** *
       * right side of the expression
       * 
* * .substrait.Rel right = 4; */ io.substrait.proto.RelOrBuilder getRightOrBuilder(); } /** *
     * A subquery comparison using ANY or ALL.
     * Examples:
     *
     * SELECT *
     * FROM t1
     * WHERE x < ANY(SELECT y from t2)
     * 
* * Protobuf type {@code substrait.Expression.Subquery.SetComparison} */ public static final class SetComparison extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Expression.Subquery.SetComparison) SetComparisonOrBuilder { private static final long serialVersionUID = 0L; // Use SetComparison.newBuilder() to construct. private SetComparison(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SetComparison() { reductionOp_ = 0; comparisonOp_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SetComparison(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Subquery_SetComparison_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Subquery_SetComparison_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.Subquery.SetComparison.class, io.substrait.proto.Expression.Subquery.SetComparison.Builder.class); } /** * Protobuf enum {@code substrait.Expression.Subquery.SetComparison.ComparisonOp} */ public enum ComparisonOp implements com.google.protobuf.ProtocolMessageEnum { /** * COMPARISON_OP_UNSPECIFIED = 0; */ COMPARISON_OP_UNSPECIFIED(0), /** * COMPARISON_OP_EQ = 1; */ COMPARISON_OP_EQ(1), /** * COMPARISON_OP_NE = 2; */ COMPARISON_OP_NE(2), /** * COMPARISON_OP_LT = 3; */ COMPARISON_OP_LT(3), /** * COMPARISON_OP_GT = 4; */ COMPARISON_OP_GT(4), /** * COMPARISON_OP_LE = 5; */ COMPARISON_OP_LE(5), /** * COMPARISON_OP_GE = 6; */ COMPARISON_OP_GE(6), UNRECOGNIZED(-1), ; /** * COMPARISON_OP_UNSPECIFIED = 0; */ public static final int COMPARISON_OP_UNSPECIFIED_VALUE = 0; /** * COMPARISON_OP_EQ = 1; */ public static final int COMPARISON_OP_EQ_VALUE = 1; /** * COMPARISON_OP_NE = 2; */ public static final int COMPARISON_OP_NE_VALUE = 2; /** * COMPARISON_OP_LT = 3; */ public static final int COMPARISON_OP_LT_VALUE = 3; /** * COMPARISON_OP_GT = 4; */ public static final int COMPARISON_OP_GT_VALUE = 4; /** * COMPARISON_OP_LE = 5; */ public static final int COMPARISON_OP_LE_VALUE = 5; /** * COMPARISON_OP_GE = 6; */ public static final int COMPARISON_OP_GE_VALUE = 6; 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 ComparisonOp 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 ComparisonOp forNumber(int value) { switch (value) { case 0: return COMPARISON_OP_UNSPECIFIED; case 1: return COMPARISON_OP_EQ; case 2: return COMPARISON_OP_NE; case 3: return COMPARISON_OP_LT; case 4: return COMPARISON_OP_GT; case 5: return COMPARISON_OP_LE; case 6: return COMPARISON_OP_GE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ComparisonOp> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ComparisonOp findValueByNumber(int number) { return ComparisonOp.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.Subquery.SetComparison.getDescriptor().getEnumTypes().get(0); } private static final ComparisonOp[] VALUES = values(); public static ComparisonOp 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 ComparisonOp(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:substrait.Expression.Subquery.SetComparison.ComparisonOp) } /** * Protobuf enum {@code substrait.Expression.Subquery.SetComparison.ReductionOp} */ public enum ReductionOp implements com.google.protobuf.ProtocolMessageEnum { /** * REDUCTION_OP_UNSPECIFIED = 0; */ REDUCTION_OP_UNSPECIFIED(0), /** * REDUCTION_OP_ANY = 1; */ REDUCTION_OP_ANY(1), /** * REDUCTION_OP_ALL = 2; */ REDUCTION_OP_ALL(2), UNRECOGNIZED(-1), ; /** * REDUCTION_OP_UNSPECIFIED = 0; */ public static final int REDUCTION_OP_UNSPECIFIED_VALUE = 0; /** * REDUCTION_OP_ANY = 1; */ public static final int REDUCTION_OP_ANY_VALUE = 1; /** * REDUCTION_OP_ALL = 2; */ public static final int REDUCTION_OP_ALL_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 ReductionOp 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 ReductionOp forNumber(int value) { switch (value) { case 0: return REDUCTION_OP_UNSPECIFIED; case 1: return REDUCTION_OP_ANY; case 2: return REDUCTION_OP_ALL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ReductionOp> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ReductionOp findValueByNumber(int number) { return ReductionOp.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.Subquery.SetComparison.getDescriptor().getEnumTypes().get(1); } private static final ReductionOp[] VALUES = values(); public static ReductionOp 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 ReductionOp(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:substrait.Expression.Subquery.SetComparison.ReductionOp) } private int bitField0_; public static final int REDUCTION_OP_FIELD_NUMBER = 1; private int reductionOp_ = 0; /** *
       * ANY or ALL
       * 
* * .substrait.Expression.Subquery.SetComparison.ReductionOp reduction_op = 1; * @return The enum numeric value on the wire for reductionOp. */ @java.lang.Override public int getReductionOpValue() { return reductionOp_; } /** *
       * ANY or ALL
       * 
* * .substrait.Expression.Subquery.SetComparison.ReductionOp reduction_op = 1; * @return The reductionOp. */ @java.lang.Override public io.substrait.proto.Expression.Subquery.SetComparison.ReductionOp getReductionOp() { io.substrait.proto.Expression.Subquery.SetComparison.ReductionOp result = io.substrait.proto.Expression.Subquery.SetComparison.ReductionOp.forNumber(reductionOp_); return result == null ? io.substrait.proto.Expression.Subquery.SetComparison.ReductionOp.UNRECOGNIZED : result; } public static final int COMPARISON_OP_FIELD_NUMBER = 2; private int comparisonOp_ = 0; /** *
       * A comparison operator
       * 
* * .substrait.Expression.Subquery.SetComparison.ComparisonOp comparison_op = 2; * @return The enum numeric value on the wire for comparisonOp. */ @java.lang.Override public int getComparisonOpValue() { return comparisonOp_; } /** *
       * A comparison operator
       * 
* * .substrait.Expression.Subquery.SetComparison.ComparisonOp comparison_op = 2; * @return The comparisonOp. */ @java.lang.Override public io.substrait.proto.Expression.Subquery.SetComparison.ComparisonOp getComparisonOp() { io.substrait.proto.Expression.Subquery.SetComparison.ComparisonOp result = io.substrait.proto.Expression.Subquery.SetComparison.ComparisonOp.forNumber(comparisonOp_); return result == null ? io.substrait.proto.Expression.Subquery.SetComparison.ComparisonOp.UNRECOGNIZED : result; } public static final int LEFT_FIELD_NUMBER = 3; private io.substrait.proto.Expression left_; /** *
       * left side of the expression
       * 
* * .substrait.Expression left = 3; * @return Whether the left field is set. */ @java.lang.Override public boolean hasLeft() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * left side of the expression
       * 
* * .substrait.Expression left = 3; * @return The left. */ @java.lang.Override public io.substrait.proto.Expression getLeft() { return left_ == null ? io.substrait.proto.Expression.getDefaultInstance() : left_; } /** *
       * left side of the expression
       * 
* * .substrait.Expression left = 3; */ @java.lang.Override public io.substrait.proto.ExpressionOrBuilder getLeftOrBuilder() { return left_ == null ? io.substrait.proto.Expression.getDefaultInstance() : left_; } public static final int RIGHT_FIELD_NUMBER = 4; private io.substrait.proto.Rel right_; /** *
       * right side of the expression
       * 
* * .substrait.Rel right = 4; * @return Whether the right field is set. */ @java.lang.Override public boolean hasRight() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * right side of the expression
       * 
* * .substrait.Rel right = 4; * @return The right. */ @java.lang.Override public io.substrait.proto.Rel getRight() { return right_ == null ? io.substrait.proto.Rel.getDefaultInstance() : right_; } /** *
       * right side of the expression
       * 
* * .substrait.Rel right = 4; */ @java.lang.Override public io.substrait.proto.RelOrBuilder getRightOrBuilder() { return right_ == null ? io.substrait.proto.Rel.getDefaultInstance() : right_; } 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 (reductionOp_ != io.substrait.proto.Expression.Subquery.SetComparison.ReductionOp.REDUCTION_OP_UNSPECIFIED.getNumber()) { output.writeEnum(1, reductionOp_); } if (comparisonOp_ != io.substrait.proto.Expression.Subquery.SetComparison.ComparisonOp.COMPARISON_OP_UNSPECIFIED.getNumber()) { output.writeEnum(2, comparisonOp_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getLeft()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getRight()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (reductionOp_ != io.substrait.proto.Expression.Subquery.SetComparison.ReductionOp.REDUCTION_OP_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, reductionOp_); } if (comparisonOp_ != io.substrait.proto.Expression.Subquery.SetComparison.ComparisonOp.COMPARISON_OP_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, comparisonOp_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getLeft()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getRight()); } 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.Subquery.SetComparison)) { return super.equals(obj); } io.substrait.proto.Expression.Subquery.SetComparison other = (io.substrait.proto.Expression.Subquery.SetComparison) obj; if (reductionOp_ != other.reductionOp_) return false; if (comparisonOp_ != other.comparisonOp_) return false; if (hasLeft() != other.hasLeft()) return false; if (hasLeft()) { if (!getLeft() .equals(other.getLeft())) return false; } if (hasRight() != other.hasRight()) return false; if (hasRight()) { if (!getRight() .equals(other.getRight())) 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) + REDUCTION_OP_FIELD_NUMBER; hash = (53 * hash) + reductionOp_; hash = (37 * hash) + COMPARISON_OP_FIELD_NUMBER; hash = (53 * hash) + comparisonOp_; if (hasLeft()) { hash = (37 * hash) + LEFT_FIELD_NUMBER; hash = (53 * hash) + getLeft().hashCode(); } if (hasRight()) { hash = (37 * hash) + RIGHT_FIELD_NUMBER; hash = (53 * hash) + getRight().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Expression.Subquery.SetComparison parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.Subquery.SetComparison 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.Subquery.SetComparison parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.Subquery.SetComparison 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.Subquery.SetComparison parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.Subquery.SetComparison parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.Subquery.SetComparison parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.Subquery.SetComparison 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.Subquery.SetComparison parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.Subquery.SetComparison 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.Subquery.SetComparison parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.Subquery.SetComparison 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.Subquery.SetComparison 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 subquery comparison using ANY or ALL.
       * Examples:
       *
       * SELECT *
       * FROM t1
       * WHERE x < ANY(SELECT y from t2)
       * 
* * Protobuf type {@code substrait.Expression.Subquery.SetComparison} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.Subquery.SetComparison) io.substrait.proto.Expression.Subquery.SetComparisonOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Subquery_SetComparison_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Subquery_SetComparison_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.Subquery.SetComparison.class, io.substrait.proto.Expression.Subquery.SetComparison.Builder.class); } // Construct using io.substrait.proto.Expression.Subquery.SetComparison.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLeftFieldBuilder(); getRightFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; reductionOp_ = 0; comparisonOp_ = 0; left_ = null; if (leftBuilder_ != null) { leftBuilder_.dispose(); leftBuilder_ = null; } right_ = null; if (rightBuilder_ != null) { rightBuilder_.dispose(); rightBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Subquery_SetComparison_descriptor; } @java.lang.Override public io.substrait.proto.Expression.Subquery.SetComparison getDefaultInstanceForType() { return io.substrait.proto.Expression.Subquery.SetComparison.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.Subquery.SetComparison build() { io.substrait.proto.Expression.Subquery.SetComparison result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.Subquery.SetComparison buildPartial() { io.substrait.proto.Expression.Subquery.SetComparison result = new io.substrait.proto.Expression.Subquery.SetComparison(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.substrait.proto.Expression.Subquery.SetComparison result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.reductionOp_ = reductionOp_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.comparisonOp_ = comparisonOp_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.left_ = leftBuilder_ == null ? left_ : leftBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.right_ = rightBuilder_ == null ? right_ : rightBuilder_.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.Subquery.SetComparison) { return mergeFrom((io.substrait.proto.Expression.Subquery.SetComparison)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.Subquery.SetComparison other) { if (other == io.substrait.proto.Expression.Subquery.SetComparison.getDefaultInstance()) return this; if (other.reductionOp_ != 0) { setReductionOpValue(other.getReductionOpValue()); } if (other.comparisonOp_ != 0) { setComparisonOpValue(other.getComparisonOpValue()); } if (other.hasLeft()) { mergeLeft(other.getLeft()); } if (other.hasRight()) { mergeRight(other.getRight()); } 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: { reductionOp_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { comparisonOp_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getLeftFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getRightFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int reductionOp_ = 0; /** *
         * ANY or ALL
         * 
* * .substrait.Expression.Subquery.SetComparison.ReductionOp reduction_op = 1; * @return The enum numeric value on the wire for reductionOp. */ @java.lang.Override public int getReductionOpValue() { return reductionOp_; } /** *
         * ANY or ALL
         * 
* * .substrait.Expression.Subquery.SetComparison.ReductionOp reduction_op = 1; * @param value The enum numeric value on the wire for reductionOp to set. * @return This builder for chaining. */ public Builder setReductionOpValue(int value) { reductionOp_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * ANY or ALL
         * 
* * .substrait.Expression.Subquery.SetComparison.ReductionOp reduction_op = 1; * @return The reductionOp. */ @java.lang.Override public io.substrait.proto.Expression.Subquery.SetComparison.ReductionOp getReductionOp() { io.substrait.proto.Expression.Subquery.SetComparison.ReductionOp result = io.substrait.proto.Expression.Subquery.SetComparison.ReductionOp.forNumber(reductionOp_); return result == null ? io.substrait.proto.Expression.Subquery.SetComparison.ReductionOp.UNRECOGNIZED : result; } /** *
         * ANY or ALL
         * 
* * .substrait.Expression.Subquery.SetComparison.ReductionOp reduction_op = 1; * @param value The reductionOp to set. * @return This builder for chaining. */ public Builder setReductionOp(io.substrait.proto.Expression.Subquery.SetComparison.ReductionOp value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; reductionOp_ = value.getNumber(); onChanged(); return this; } /** *
         * ANY or ALL
         * 
* * .substrait.Expression.Subquery.SetComparison.ReductionOp reduction_op = 1; * @return This builder for chaining. */ public Builder clearReductionOp() { bitField0_ = (bitField0_ & ~0x00000001); reductionOp_ = 0; onChanged(); return this; } private int comparisonOp_ = 0; /** *
         * A comparison operator
         * 
* * .substrait.Expression.Subquery.SetComparison.ComparisonOp comparison_op = 2; * @return The enum numeric value on the wire for comparisonOp. */ @java.lang.Override public int getComparisonOpValue() { return comparisonOp_; } /** *
         * A comparison operator
         * 
* * .substrait.Expression.Subquery.SetComparison.ComparisonOp comparison_op = 2; * @param value The enum numeric value on the wire for comparisonOp to set. * @return This builder for chaining. */ public Builder setComparisonOpValue(int value) { comparisonOp_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * A comparison operator
         * 
* * .substrait.Expression.Subquery.SetComparison.ComparisonOp comparison_op = 2; * @return The comparisonOp. */ @java.lang.Override public io.substrait.proto.Expression.Subquery.SetComparison.ComparisonOp getComparisonOp() { io.substrait.proto.Expression.Subquery.SetComparison.ComparisonOp result = io.substrait.proto.Expression.Subquery.SetComparison.ComparisonOp.forNumber(comparisonOp_); return result == null ? io.substrait.proto.Expression.Subquery.SetComparison.ComparisonOp.UNRECOGNIZED : result; } /** *
         * A comparison operator
         * 
* * .substrait.Expression.Subquery.SetComparison.ComparisonOp comparison_op = 2; * @param value The comparisonOp to set. * @return This builder for chaining. */ public Builder setComparisonOp(io.substrait.proto.Expression.Subquery.SetComparison.ComparisonOp value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; comparisonOp_ = value.getNumber(); onChanged(); return this; } /** *
         * A comparison operator
         * 
* * .substrait.Expression.Subquery.SetComparison.ComparisonOp comparison_op = 2; * @return This builder for chaining. */ public Builder clearComparisonOp() { bitField0_ = (bitField0_ & ~0x00000002); comparisonOp_ = 0; onChanged(); return this; } private io.substrait.proto.Expression left_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> leftBuilder_; /** *
         * left side of the expression
         * 
* * .substrait.Expression left = 3; * @return Whether the left field is set. */ public boolean hasLeft() { return ((bitField0_ & 0x00000004) != 0); } /** *
         * left side of the expression
         * 
* * .substrait.Expression left = 3; * @return The left. */ public io.substrait.proto.Expression getLeft() { if (leftBuilder_ == null) { return left_ == null ? io.substrait.proto.Expression.getDefaultInstance() : left_; } else { return leftBuilder_.getMessage(); } } /** *
         * left side of the expression
         * 
* * .substrait.Expression left = 3; */ public Builder setLeft(io.substrait.proto.Expression value) { if (leftBuilder_ == null) { if (value == null) { throw new NullPointerException(); } left_ = value; } else { leftBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * left side of the expression
         * 
* * .substrait.Expression left = 3; */ public Builder setLeft( io.substrait.proto.Expression.Builder builderForValue) { if (leftBuilder_ == null) { left_ = builderForValue.build(); } else { leftBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * left side of the expression
         * 
* * .substrait.Expression left = 3; */ public Builder mergeLeft(io.substrait.proto.Expression value) { if (leftBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && left_ != null && left_ != io.substrait.proto.Expression.getDefaultInstance()) { getLeftBuilder().mergeFrom(value); } else { left_ = value; } } else { leftBuilder_.mergeFrom(value); } if (left_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
         * left side of the expression
         * 
* * .substrait.Expression left = 3; */ public Builder clearLeft() { bitField0_ = (bitField0_ & ~0x00000004); left_ = null; if (leftBuilder_ != null) { leftBuilder_.dispose(); leftBuilder_ = null; } onChanged(); return this; } /** *
         * left side of the expression
         * 
* * .substrait.Expression left = 3; */ public io.substrait.proto.Expression.Builder getLeftBuilder() { bitField0_ |= 0x00000004; onChanged(); return getLeftFieldBuilder().getBuilder(); } /** *
         * left side of the expression
         * 
* * .substrait.Expression left = 3; */ public io.substrait.proto.ExpressionOrBuilder getLeftOrBuilder() { if (leftBuilder_ != null) { return leftBuilder_.getMessageOrBuilder(); } else { return left_ == null ? io.substrait.proto.Expression.getDefaultInstance() : left_; } } /** *
         * left side of the expression
         * 
* * .substrait.Expression left = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> getLeftFieldBuilder() { if (leftBuilder_ == null) { leftBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>( getLeft(), getParentForChildren(), isClean()); left_ = null; } return leftBuilder_; } private io.substrait.proto.Rel right_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder> rightBuilder_; /** *
         * right side of the expression
         * 
* * .substrait.Rel right = 4; * @return Whether the right field is set. */ public boolean hasRight() { return ((bitField0_ & 0x00000008) != 0); } /** *
         * right side of the expression
         * 
* * .substrait.Rel right = 4; * @return The right. */ public io.substrait.proto.Rel getRight() { if (rightBuilder_ == null) { return right_ == null ? io.substrait.proto.Rel.getDefaultInstance() : right_; } else { return rightBuilder_.getMessage(); } } /** *
         * right side of the expression
         * 
* * .substrait.Rel right = 4; */ public Builder setRight(io.substrait.proto.Rel value) { if (rightBuilder_ == null) { if (value == null) { throw new NullPointerException(); } right_ = value; } else { rightBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * right side of the expression
         * 
* * .substrait.Rel right = 4; */ public Builder setRight( io.substrait.proto.Rel.Builder builderForValue) { if (rightBuilder_ == null) { right_ = builderForValue.build(); } else { rightBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * right side of the expression
         * 
* * .substrait.Rel right = 4; */ public Builder mergeRight(io.substrait.proto.Rel value) { if (rightBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && right_ != null && right_ != io.substrait.proto.Rel.getDefaultInstance()) { getRightBuilder().mergeFrom(value); } else { right_ = value; } } else { rightBuilder_.mergeFrom(value); } if (right_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
         * right side of the expression
         * 
* * .substrait.Rel right = 4; */ public Builder clearRight() { bitField0_ = (bitField0_ & ~0x00000008); right_ = null; if (rightBuilder_ != null) { rightBuilder_.dispose(); rightBuilder_ = null; } onChanged(); return this; } /** *
         * right side of the expression
         * 
* * .substrait.Rel right = 4; */ public io.substrait.proto.Rel.Builder getRightBuilder() { bitField0_ |= 0x00000008; onChanged(); return getRightFieldBuilder().getBuilder(); } /** *
         * right side of the expression
         * 
* * .substrait.Rel right = 4; */ public io.substrait.proto.RelOrBuilder getRightOrBuilder() { if (rightBuilder_ != null) { return rightBuilder_.getMessageOrBuilder(); } else { return right_ == null ? io.substrait.proto.Rel.getDefaultInstance() : right_; } } /** *
         * right side of the expression
         * 
* * .substrait.Rel right = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder> getRightFieldBuilder() { if (rightBuilder_ == null) { rightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder>( getRight(), getParentForChildren(), isClean()); right_ = null; } return rightBuilder_; } @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.Subquery.SetComparison) } // @@protoc_insertion_point(class_scope:substrait.Expression.Subquery.SetComparison) private static final io.substrait.proto.Expression.Subquery.SetComparison DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.Subquery.SetComparison(); } public static io.substrait.proto.Expression.Subquery.SetComparison getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SetComparison 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.Subquery.SetComparison getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int subqueryTypeCase_ = 0; @SuppressWarnings("serial") private java.lang.Object subqueryType_; public enum SubqueryTypeCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SCALAR(1), IN_PREDICATE(2), SET_PREDICATE(3), SET_COMPARISON(4), SUBQUERYTYPE_NOT_SET(0); private final int value; private SubqueryTypeCase(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 SubqueryTypeCase valueOf(int value) { return forNumber(value); } public static SubqueryTypeCase forNumber(int value) { switch (value) { case 1: return SCALAR; case 2: return IN_PREDICATE; case 3: return SET_PREDICATE; case 4: return SET_COMPARISON; case 0: return SUBQUERYTYPE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public SubqueryTypeCase getSubqueryTypeCase() { return SubqueryTypeCase.forNumber( subqueryTypeCase_); } public static final int SCALAR_FIELD_NUMBER = 1; /** *
     * Scalar subquery
     * 
* * .substrait.Expression.Subquery.Scalar scalar = 1; * @return Whether the scalar field is set. */ @java.lang.Override public boolean hasScalar() { return subqueryTypeCase_ == 1; } /** *
     * Scalar subquery
     * 
* * .substrait.Expression.Subquery.Scalar scalar = 1; * @return The scalar. */ @java.lang.Override public io.substrait.proto.Expression.Subquery.Scalar getScalar() { if (subqueryTypeCase_ == 1) { return (io.substrait.proto.Expression.Subquery.Scalar) subqueryType_; } return io.substrait.proto.Expression.Subquery.Scalar.getDefaultInstance(); } /** *
     * Scalar subquery
     * 
* * .substrait.Expression.Subquery.Scalar scalar = 1; */ @java.lang.Override public io.substrait.proto.Expression.Subquery.ScalarOrBuilder getScalarOrBuilder() { if (subqueryTypeCase_ == 1) { return (io.substrait.proto.Expression.Subquery.Scalar) subqueryType_; } return io.substrait.proto.Expression.Subquery.Scalar.getDefaultInstance(); } public static final int IN_PREDICATE_FIELD_NUMBER = 2; /** *
     * x IN y predicate
     * 
* * .substrait.Expression.Subquery.InPredicate in_predicate = 2; * @return Whether the inPredicate field is set. */ @java.lang.Override public boolean hasInPredicate() { return subqueryTypeCase_ == 2; } /** *
     * x IN y predicate
     * 
* * .substrait.Expression.Subquery.InPredicate in_predicate = 2; * @return The inPredicate. */ @java.lang.Override public io.substrait.proto.Expression.Subquery.InPredicate getInPredicate() { if (subqueryTypeCase_ == 2) { return (io.substrait.proto.Expression.Subquery.InPredicate) subqueryType_; } return io.substrait.proto.Expression.Subquery.InPredicate.getDefaultInstance(); } /** *
     * x IN y predicate
     * 
* * .substrait.Expression.Subquery.InPredicate in_predicate = 2; */ @java.lang.Override public io.substrait.proto.Expression.Subquery.InPredicateOrBuilder getInPredicateOrBuilder() { if (subqueryTypeCase_ == 2) { return (io.substrait.proto.Expression.Subquery.InPredicate) subqueryType_; } return io.substrait.proto.Expression.Subquery.InPredicate.getDefaultInstance(); } public static final int SET_PREDICATE_FIELD_NUMBER = 3; /** *
     * EXISTS/UNIQUE predicate
     * 
* * .substrait.Expression.Subquery.SetPredicate set_predicate = 3; * @return Whether the setPredicate field is set. */ @java.lang.Override public boolean hasSetPredicate() { return subqueryTypeCase_ == 3; } /** *
     * EXISTS/UNIQUE predicate
     * 
* * .substrait.Expression.Subquery.SetPredicate set_predicate = 3; * @return The setPredicate. */ @java.lang.Override public io.substrait.proto.Expression.Subquery.SetPredicate getSetPredicate() { if (subqueryTypeCase_ == 3) { return (io.substrait.proto.Expression.Subquery.SetPredicate) subqueryType_; } return io.substrait.proto.Expression.Subquery.SetPredicate.getDefaultInstance(); } /** *
     * EXISTS/UNIQUE predicate
     * 
* * .substrait.Expression.Subquery.SetPredicate set_predicate = 3; */ @java.lang.Override public io.substrait.proto.Expression.Subquery.SetPredicateOrBuilder getSetPredicateOrBuilder() { if (subqueryTypeCase_ == 3) { return (io.substrait.proto.Expression.Subquery.SetPredicate) subqueryType_; } return io.substrait.proto.Expression.Subquery.SetPredicate.getDefaultInstance(); } public static final int SET_COMPARISON_FIELD_NUMBER = 4; /** *
     * ANY/ALL predicate
     * 
* * .substrait.Expression.Subquery.SetComparison set_comparison = 4; * @return Whether the setComparison field is set. */ @java.lang.Override public boolean hasSetComparison() { return subqueryTypeCase_ == 4; } /** *
     * ANY/ALL predicate
     * 
* * .substrait.Expression.Subquery.SetComparison set_comparison = 4; * @return The setComparison. */ @java.lang.Override public io.substrait.proto.Expression.Subquery.SetComparison getSetComparison() { if (subqueryTypeCase_ == 4) { return (io.substrait.proto.Expression.Subquery.SetComparison) subqueryType_; } return io.substrait.proto.Expression.Subquery.SetComparison.getDefaultInstance(); } /** *
     * ANY/ALL predicate
     * 
* * .substrait.Expression.Subquery.SetComparison set_comparison = 4; */ @java.lang.Override public io.substrait.proto.Expression.Subquery.SetComparisonOrBuilder getSetComparisonOrBuilder() { if (subqueryTypeCase_ == 4) { return (io.substrait.proto.Expression.Subquery.SetComparison) subqueryType_; } return io.substrait.proto.Expression.Subquery.SetComparison.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 (subqueryTypeCase_ == 1) { output.writeMessage(1, (io.substrait.proto.Expression.Subquery.Scalar) subqueryType_); } if (subqueryTypeCase_ == 2) { output.writeMessage(2, (io.substrait.proto.Expression.Subquery.InPredicate) subqueryType_); } if (subqueryTypeCase_ == 3) { output.writeMessage(3, (io.substrait.proto.Expression.Subquery.SetPredicate) subqueryType_); } if (subqueryTypeCase_ == 4) { output.writeMessage(4, (io.substrait.proto.Expression.Subquery.SetComparison) subqueryType_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (subqueryTypeCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (io.substrait.proto.Expression.Subquery.Scalar) subqueryType_); } if (subqueryTypeCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.substrait.proto.Expression.Subquery.InPredicate) subqueryType_); } if (subqueryTypeCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (io.substrait.proto.Expression.Subquery.SetPredicate) subqueryType_); } if (subqueryTypeCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (io.substrait.proto.Expression.Subquery.SetComparison) subqueryType_); } 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.Subquery)) { return super.equals(obj); } io.substrait.proto.Expression.Subquery other = (io.substrait.proto.Expression.Subquery) obj; if (!getSubqueryTypeCase().equals(other.getSubqueryTypeCase())) return false; switch (subqueryTypeCase_) { case 1: if (!getScalar() .equals(other.getScalar())) return false; break; case 2: if (!getInPredicate() .equals(other.getInPredicate())) return false; break; case 3: if (!getSetPredicate() .equals(other.getSetPredicate())) return false; break; case 4: if (!getSetComparison() .equals(other.getSetComparison())) 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 (subqueryTypeCase_) { case 1: hash = (37 * hash) + SCALAR_FIELD_NUMBER; hash = (53 * hash) + getScalar().hashCode(); break; case 2: hash = (37 * hash) + IN_PREDICATE_FIELD_NUMBER; hash = (53 * hash) + getInPredicate().hashCode(); break; case 3: hash = (37 * hash) + SET_PREDICATE_FIELD_NUMBER; hash = (53 * hash) + getSetPredicate().hashCode(); break; case 4: hash = (37 * hash) + SET_COMPARISON_FIELD_NUMBER; hash = (53 * hash) + getSetComparison().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Expression.Subquery parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.Subquery 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.Subquery parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.Subquery 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.Subquery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression.Subquery parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression.Subquery parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.Subquery 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.Subquery parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression.Subquery 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.Subquery parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression.Subquery 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.Subquery 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; } /** *
     * Subquery relation expression
     * 
* * Protobuf type {@code substrait.Expression.Subquery} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression.Subquery) io.substrait.proto.Expression.SubqueryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Subquery_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Subquery_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Expression.Subquery.class, io.substrait.proto.Expression.Subquery.Builder.class); } // Construct using io.substrait.proto.Expression.Subquery.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (scalarBuilder_ != null) { scalarBuilder_.clear(); } if (inPredicateBuilder_ != null) { inPredicateBuilder_.clear(); } if (setPredicateBuilder_ != null) { setPredicateBuilder_.clear(); } if (setComparisonBuilder_ != null) { setComparisonBuilder_.clear(); } subqueryTypeCase_ = 0; subqueryType_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_Subquery_descriptor; } @java.lang.Override public io.substrait.proto.Expression.Subquery getDefaultInstanceForType() { return io.substrait.proto.Expression.Subquery.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression.Subquery build() { io.substrait.proto.Expression.Subquery result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression.Subquery buildPartial() { io.substrait.proto.Expression.Subquery result = new io.substrait.proto.Expression.Subquery(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(io.substrait.proto.Expression.Subquery result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(io.substrait.proto.Expression.Subquery result) { result.subqueryTypeCase_ = subqueryTypeCase_; result.subqueryType_ = this.subqueryType_; if (subqueryTypeCase_ == 1 && scalarBuilder_ != null) { result.subqueryType_ = scalarBuilder_.build(); } if (subqueryTypeCase_ == 2 && inPredicateBuilder_ != null) { result.subqueryType_ = inPredicateBuilder_.build(); } if (subqueryTypeCase_ == 3 && setPredicateBuilder_ != null) { result.subqueryType_ = setPredicateBuilder_.build(); } if (subqueryTypeCase_ == 4 && setComparisonBuilder_ != null) { result.subqueryType_ = setComparisonBuilder_.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.Subquery) { return mergeFrom((io.substrait.proto.Expression.Subquery)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression.Subquery other) { if (other == io.substrait.proto.Expression.Subquery.getDefaultInstance()) return this; switch (other.getSubqueryTypeCase()) { case SCALAR: { mergeScalar(other.getScalar()); break; } case IN_PREDICATE: { mergeInPredicate(other.getInPredicate()); break; } case SET_PREDICATE: { mergeSetPredicate(other.getSetPredicate()); break; } case SET_COMPARISON: { mergeSetComparison(other.getSetComparison()); break; } case SUBQUERYTYPE_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( getScalarFieldBuilder().getBuilder(), extensionRegistry); subqueryTypeCase_ = 1; break; } // case 10 case 18: { input.readMessage( getInPredicateFieldBuilder().getBuilder(), extensionRegistry); subqueryTypeCase_ = 2; break; } // case 18 case 26: { input.readMessage( getSetPredicateFieldBuilder().getBuilder(), extensionRegistry); subqueryTypeCase_ = 3; break; } // case 26 case 34: { input.readMessage( getSetComparisonFieldBuilder().getBuilder(), extensionRegistry); subqueryTypeCase_ = 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 subqueryTypeCase_ = 0; private java.lang.Object subqueryType_; public SubqueryTypeCase getSubqueryTypeCase() { return SubqueryTypeCase.forNumber( subqueryTypeCase_); } public Builder clearSubqueryType() { subqueryTypeCase_ = 0; subqueryType_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Subquery.Scalar, io.substrait.proto.Expression.Subquery.Scalar.Builder, io.substrait.proto.Expression.Subquery.ScalarOrBuilder> scalarBuilder_; /** *
       * Scalar subquery
       * 
* * .substrait.Expression.Subquery.Scalar scalar = 1; * @return Whether the scalar field is set. */ @java.lang.Override public boolean hasScalar() { return subqueryTypeCase_ == 1; } /** *
       * Scalar subquery
       * 
* * .substrait.Expression.Subquery.Scalar scalar = 1; * @return The scalar. */ @java.lang.Override public io.substrait.proto.Expression.Subquery.Scalar getScalar() { if (scalarBuilder_ == null) { if (subqueryTypeCase_ == 1) { return (io.substrait.proto.Expression.Subquery.Scalar) subqueryType_; } return io.substrait.proto.Expression.Subquery.Scalar.getDefaultInstance(); } else { if (subqueryTypeCase_ == 1) { return scalarBuilder_.getMessage(); } return io.substrait.proto.Expression.Subquery.Scalar.getDefaultInstance(); } } /** *
       * Scalar subquery
       * 
* * .substrait.Expression.Subquery.Scalar scalar = 1; */ public Builder setScalar(io.substrait.proto.Expression.Subquery.Scalar value) { if (scalarBuilder_ == null) { if (value == null) { throw new NullPointerException(); } subqueryType_ = value; onChanged(); } else { scalarBuilder_.setMessage(value); } subqueryTypeCase_ = 1; return this; } /** *
       * Scalar subquery
       * 
* * .substrait.Expression.Subquery.Scalar scalar = 1; */ public Builder setScalar( io.substrait.proto.Expression.Subquery.Scalar.Builder builderForValue) { if (scalarBuilder_ == null) { subqueryType_ = builderForValue.build(); onChanged(); } else { scalarBuilder_.setMessage(builderForValue.build()); } subqueryTypeCase_ = 1; return this; } /** *
       * Scalar subquery
       * 
* * .substrait.Expression.Subquery.Scalar scalar = 1; */ public Builder mergeScalar(io.substrait.proto.Expression.Subquery.Scalar value) { if (scalarBuilder_ == null) { if (subqueryTypeCase_ == 1 && subqueryType_ != io.substrait.proto.Expression.Subquery.Scalar.getDefaultInstance()) { subqueryType_ = io.substrait.proto.Expression.Subquery.Scalar.newBuilder((io.substrait.proto.Expression.Subquery.Scalar) subqueryType_) .mergeFrom(value).buildPartial(); } else { subqueryType_ = value; } onChanged(); } else { if (subqueryTypeCase_ == 1) { scalarBuilder_.mergeFrom(value); } else { scalarBuilder_.setMessage(value); } } subqueryTypeCase_ = 1; return this; } /** *
       * Scalar subquery
       * 
* * .substrait.Expression.Subquery.Scalar scalar = 1; */ public Builder clearScalar() { if (scalarBuilder_ == null) { if (subqueryTypeCase_ == 1) { subqueryTypeCase_ = 0; subqueryType_ = null; onChanged(); } } else { if (subqueryTypeCase_ == 1) { subqueryTypeCase_ = 0; subqueryType_ = null; } scalarBuilder_.clear(); } return this; } /** *
       * Scalar subquery
       * 
* * .substrait.Expression.Subquery.Scalar scalar = 1; */ public io.substrait.proto.Expression.Subquery.Scalar.Builder getScalarBuilder() { return getScalarFieldBuilder().getBuilder(); } /** *
       * Scalar subquery
       * 
* * .substrait.Expression.Subquery.Scalar scalar = 1; */ @java.lang.Override public io.substrait.proto.Expression.Subquery.ScalarOrBuilder getScalarOrBuilder() { if ((subqueryTypeCase_ == 1) && (scalarBuilder_ != null)) { return scalarBuilder_.getMessageOrBuilder(); } else { if (subqueryTypeCase_ == 1) { return (io.substrait.proto.Expression.Subquery.Scalar) subqueryType_; } return io.substrait.proto.Expression.Subquery.Scalar.getDefaultInstance(); } } /** *
       * Scalar subquery
       * 
* * .substrait.Expression.Subquery.Scalar scalar = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Subquery.Scalar, io.substrait.proto.Expression.Subquery.Scalar.Builder, io.substrait.proto.Expression.Subquery.ScalarOrBuilder> getScalarFieldBuilder() { if (scalarBuilder_ == null) { if (!(subqueryTypeCase_ == 1)) { subqueryType_ = io.substrait.proto.Expression.Subquery.Scalar.getDefaultInstance(); } scalarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Subquery.Scalar, io.substrait.proto.Expression.Subquery.Scalar.Builder, io.substrait.proto.Expression.Subquery.ScalarOrBuilder>( (io.substrait.proto.Expression.Subquery.Scalar) subqueryType_, getParentForChildren(), isClean()); subqueryType_ = null; } subqueryTypeCase_ = 1; onChanged(); return scalarBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Subquery.InPredicate, io.substrait.proto.Expression.Subquery.InPredicate.Builder, io.substrait.proto.Expression.Subquery.InPredicateOrBuilder> inPredicateBuilder_; /** *
       * x IN y predicate
       * 
* * .substrait.Expression.Subquery.InPredicate in_predicate = 2; * @return Whether the inPredicate field is set. */ @java.lang.Override public boolean hasInPredicate() { return subqueryTypeCase_ == 2; } /** *
       * x IN y predicate
       * 
* * .substrait.Expression.Subquery.InPredicate in_predicate = 2; * @return The inPredicate. */ @java.lang.Override public io.substrait.proto.Expression.Subquery.InPredicate getInPredicate() { if (inPredicateBuilder_ == null) { if (subqueryTypeCase_ == 2) { return (io.substrait.proto.Expression.Subquery.InPredicate) subqueryType_; } return io.substrait.proto.Expression.Subquery.InPredicate.getDefaultInstance(); } else { if (subqueryTypeCase_ == 2) { return inPredicateBuilder_.getMessage(); } return io.substrait.proto.Expression.Subquery.InPredicate.getDefaultInstance(); } } /** *
       * x IN y predicate
       * 
* * .substrait.Expression.Subquery.InPredicate in_predicate = 2; */ public Builder setInPredicate(io.substrait.proto.Expression.Subquery.InPredicate value) { if (inPredicateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } subqueryType_ = value; onChanged(); } else { inPredicateBuilder_.setMessage(value); } subqueryTypeCase_ = 2; return this; } /** *
       * x IN y predicate
       * 
* * .substrait.Expression.Subquery.InPredicate in_predicate = 2; */ public Builder setInPredicate( io.substrait.proto.Expression.Subquery.InPredicate.Builder builderForValue) { if (inPredicateBuilder_ == null) { subqueryType_ = builderForValue.build(); onChanged(); } else { inPredicateBuilder_.setMessage(builderForValue.build()); } subqueryTypeCase_ = 2; return this; } /** *
       * x IN y predicate
       * 
* * .substrait.Expression.Subquery.InPredicate in_predicate = 2; */ public Builder mergeInPredicate(io.substrait.proto.Expression.Subquery.InPredicate value) { if (inPredicateBuilder_ == null) { if (subqueryTypeCase_ == 2 && subqueryType_ != io.substrait.proto.Expression.Subquery.InPredicate.getDefaultInstance()) { subqueryType_ = io.substrait.proto.Expression.Subquery.InPredicate.newBuilder((io.substrait.proto.Expression.Subquery.InPredicate) subqueryType_) .mergeFrom(value).buildPartial(); } else { subqueryType_ = value; } onChanged(); } else { if (subqueryTypeCase_ == 2) { inPredicateBuilder_.mergeFrom(value); } else { inPredicateBuilder_.setMessage(value); } } subqueryTypeCase_ = 2; return this; } /** *
       * x IN y predicate
       * 
* * .substrait.Expression.Subquery.InPredicate in_predicate = 2; */ public Builder clearInPredicate() { if (inPredicateBuilder_ == null) { if (subqueryTypeCase_ == 2) { subqueryTypeCase_ = 0; subqueryType_ = null; onChanged(); } } else { if (subqueryTypeCase_ == 2) { subqueryTypeCase_ = 0; subqueryType_ = null; } inPredicateBuilder_.clear(); } return this; } /** *
       * x IN y predicate
       * 
* * .substrait.Expression.Subquery.InPredicate in_predicate = 2; */ public io.substrait.proto.Expression.Subquery.InPredicate.Builder getInPredicateBuilder() { return getInPredicateFieldBuilder().getBuilder(); } /** *
       * x IN y predicate
       * 
* * .substrait.Expression.Subquery.InPredicate in_predicate = 2; */ @java.lang.Override public io.substrait.proto.Expression.Subquery.InPredicateOrBuilder getInPredicateOrBuilder() { if ((subqueryTypeCase_ == 2) && (inPredicateBuilder_ != null)) { return inPredicateBuilder_.getMessageOrBuilder(); } else { if (subqueryTypeCase_ == 2) { return (io.substrait.proto.Expression.Subquery.InPredicate) subqueryType_; } return io.substrait.proto.Expression.Subquery.InPredicate.getDefaultInstance(); } } /** *
       * x IN y predicate
       * 
* * .substrait.Expression.Subquery.InPredicate in_predicate = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Subquery.InPredicate, io.substrait.proto.Expression.Subquery.InPredicate.Builder, io.substrait.proto.Expression.Subquery.InPredicateOrBuilder> getInPredicateFieldBuilder() { if (inPredicateBuilder_ == null) { if (!(subqueryTypeCase_ == 2)) { subqueryType_ = io.substrait.proto.Expression.Subquery.InPredicate.getDefaultInstance(); } inPredicateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Subquery.InPredicate, io.substrait.proto.Expression.Subquery.InPredicate.Builder, io.substrait.proto.Expression.Subquery.InPredicateOrBuilder>( (io.substrait.proto.Expression.Subquery.InPredicate) subqueryType_, getParentForChildren(), isClean()); subqueryType_ = null; } subqueryTypeCase_ = 2; onChanged(); return inPredicateBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Subquery.SetPredicate, io.substrait.proto.Expression.Subquery.SetPredicate.Builder, io.substrait.proto.Expression.Subquery.SetPredicateOrBuilder> setPredicateBuilder_; /** *
       * EXISTS/UNIQUE predicate
       * 
* * .substrait.Expression.Subquery.SetPredicate set_predicate = 3; * @return Whether the setPredicate field is set. */ @java.lang.Override public boolean hasSetPredicate() { return subqueryTypeCase_ == 3; } /** *
       * EXISTS/UNIQUE predicate
       * 
* * .substrait.Expression.Subquery.SetPredicate set_predicate = 3; * @return The setPredicate. */ @java.lang.Override public io.substrait.proto.Expression.Subquery.SetPredicate getSetPredicate() { if (setPredicateBuilder_ == null) { if (subqueryTypeCase_ == 3) { return (io.substrait.proto.Expression.Subquery.SetPredicate) subqueryType_; } return io.substrait.proto.Expression.Subquery.SetPredicate.getDefaultInstance(); } else { if (subqueryTypeCase_ == 3) { return setPredicateBuilder_.getMessage(); } return io.substrait.proto.Expression.Subquery.SetPredicate.getDefaultInstance(); } } /** *
       * EXISTS/UNIQUE predicate
       * 
* * .substrait.Expression.Subquery.SetPredicate set_predicate = 3; */ public Builder setSetPredicate(io.substrait.proto.Expression.Subquery.SetPredicate value) { if (setPredicateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } subqueryType_ = value; onChanged(); } else { setPredicateBuilder_.setMessage(value); } subqueryTypeCase_ = 3; return this; } /** *
       * EXISTS/UNIQUE predicate
       * 
* * .substrait.Expression.Subquery.SetPredicate set_predicate = 3; */ public Builder setSetPredicate( io.substrait.proto.Expression.Subquery.SetPredicate.Builder builderForValue) { if (setPredicateBuilder_ == null) { subqueryType_ = builderForValue.build(); onChanged(); } else { setPredicateBuilder_.setMessage(builderForValue.build()); } subqueryTypeCase_ = 3; return this; } /** *
       * EXISTS/UNIQUE predicate
       * 
* * .substrait.Expression.Subquery.SetPredicate set_predicate = 3; */ public Builder mergeSetPredicate(io.substrait.proto.Expression.Subquery.SetPredicate value) { if (setPredicateBuilder_ == null) { if (subqueryTypeCase_ == 3 && subqueryType_ != io.substrait.proto.Expression.Subquery.SetPredicate.getDefaultInstance()) { subqueryType_ = io.substrait.proto.Expression.Subquery.SetPredicate.newBuilder((io.substrait.proto.Expression.Subquery.SetPredicate) subqueryType_) .mergeFrom(value).buildPartial(); } else { subqueryType_ = value; } onChanged(); } else { if (subqueryTypeCase_ == 3) { setPredicateBuilder_.mergeFrom(value); } else { setPredicateBuilder_.setMessage(value); } } subqueryTypeCase_ = 3; return this; } /** *
       * EXISTS/UNIQUE predicate
       * 
* * .substrait.Expression.Subquery.SetPredicate set_predicate = 3; */ public Builder clearSetPredicate() { if (setPredicateBuilder_ == null) { if (subqueryTypeCase_ == 3) { subqueryTypeCase_ = 0; subqueryType_ = null; onChanged(); } } else { if (subqueryTypeCase_ == 3) { subqueryTypeCase_ = 0; subqueryType_ = null; } setPredicateBuilder_.clear(); } return this; } /** *
       * EXISTS/UNIQUE predicate
       * 
* * .substrait.Expression.Subquery.SetPredicate set_predicate = 3; */ public io.substrait.proto.Expression.Subquery.SetPredicate.Builder getSetPredicateBuilder() { return getSetPredicateFieldBuilder().getBuilder(); } /** *
       * EXISTS/UNIQUE predicate
       * 
* * .substrait.Expression.Subquery.SetPredicate set_predicate = 3; */ @java.lang.Override public io.substrait.proto.Expression.Subquery.SetPredicateOrBuilder getSetPredicateOrBuilder() { if ((subqueryTypeCase_ == 3) && (setPredicateBuilder_ != null)) { return setPredicateBuilder_.getMessageOrBuilder(); } else { if (subqueryTypeCase_ == 3) { return (io.substrait.proto.Expression.Subquery.SetPredicate) subqueryType_; } return io.substrait.proto.Expression.Subquery.SetPredicate.getDefaultInstance(); } } /** *
       * EXISTS/UNIQUE predicate
       * 
* * .substrait.Expression.Subquery.SetPredicate set_predicate = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Subquery.SetPredicate, io.substrait.proto.Expression.Subquery.SetPredicate.Builder, io.substrait.proto.Expression.Subquery.SetPredicateOrBuilder> getSetPredicateFieldBuilder() { if (setPredicateBuilder_ == null) { if (!(subqueryTypeCase_ == 3)) { subqueryType_ = io.substrait.proto.Expression.Subquery.SetPredicate.getDefaultInstance(); } setPredicateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Subquery.SetPredicate, io.substrait.proto.Expression.Subquery.SetPredicate.Builder, io.substrait.proto.Expression.Subquery.SetPredicateOrBuilder>( (io.substrait.proto.Expression.Subquery.SetPredicate) subqueryType_, getParentForChildren(), isClean()); subqueryType_ = null; } subqueryTypeCase_ = 3; onChanged(); return setPredicateBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Subquery.SetComparison, io.substrait.proto.Expression.Subquery.SetComparison.Builder, io.substrait.proto.Expression.Subquery.SetComparisonOrBuilder> setComparisonBuilder_; /** *
       * ANY/ALL predicate
       * 
* * .substrait.Expression.Subquery.SetComparison set_comparison = 4; * @return Whether the setComparison field is set. */ @java.lang.Override public boolean hasSetComparison() { return subqueryTypeCase_ == 4; } /** *
       * ANY/ALL predicate
       * 
* * .substrait.Expression.Subquery.SetComparison set_comparison = 4; * @return The setComparison. */ @java.lang.Override public io.substrait.proto.Expression.Subquery.SetComparison getSetComparison() { if (setComparisonBuilder_ == null) { if (subqueryTypeCase_ == 4) { return (io.substrait.proto.Expression.Subquery.SetComparison) subqueryType_; } return io.substrait.proto.Expression.Subquery.SetComparison.getDefaultInstance(); } else { if (subqueryTypeCase_ == 4) { return setComparisonBuilder_.getMessage(); } return io.substrait.proto.Expression.Subquery.SetComparison.getDefaultInstance(); } } /** *
       * ANY/ALL predicate
       * 
* * .substrait.Expression.Subquery.SetComparison set_comparison = 4; */ public Builder setSetComparison(io.substrait.proto.Expression.Subquery.SetComparison value) { if (setComparisonBuilder_ == null) { if (value == null) { throw new NullPointerException(); } subqueryType_ = value; onChanged(); } else { setComparisonBuilder_.setMessage(value); } subqueryTypeCase_ = 4; return this; } /** *
       * ANY/ALL predicate
       * 
* * .substrait.Expression.Subquery.SetComparison set_comparison = 4; */ public Builder setSetComparison( io.substrait.proto.Expression.Subquery.SetComparison.Builder builderForValue) { if (setComparisonBuilder_ == null) { subqueryType_ = builderForValue.build(); onChanged(); } else { setComparisonBuilder_.setMessage(builderForValue.build()); } subqueryTypeCase_ = 4; return this; } /** *
       * ANY/ALL predicate
       * 
* * .substrait.Expression.Subquery.SetComparison set_comparison = 4; */ public Builder mergeSetComparison(io.substrait.proto.Expression.Subquery.SetComparison value) { if (setComparisonBuilder_ == null) { if (subqueryTypeCase_ == 4 && subqueryType_ != io.substrait.proto.Expression.Subquery.SetComparison.getDefaultInstance()) { subqueryType_ = io.substrait.proto.Expression.Subquery.SetComparison.newBuilder((io.substrait.proto.Expression.Subquery.SetComparison) subqueryType_) .mergeFrom(value).buildPartial(); } else { subqueryType_ = value; } onChanged(); } else { if (subqueryTypeCase_ == 4) { setComparisonBuilder_.mergeFrom(value); } else { setComparisonBuilder_.setMessage(value); } } subqueryTypeCase_ = 4; return this; } /** *
       * ANY/ALL predicate
       * 
* * .substrait.Expression.Subquery.SetComparison set_comparison = 4; */ public Builder clearSetComparison() { if (setComparisonBuilder_ == null) { if (subqueryTypeCase_ == 4) { subqueryTypeCase_ = 0; subqueryType_ = null; onChanged(); } } else { if (subqueryTypeCase_ == 4) { subqueryTypeCase_ = 0; subqueryType_ = null; } setComparisonBuilder_.clear(); } return this; } /** *
       * ANY/ALL predicate
       * 
* * .substrait.Expression.Subquery.SetComparison set_comparison = 4; */ public io.substrait.proto.Expression.Subquery.SetComparison.Builder getSetComparisonBuilder() { return getSetComparisonFieldBuilder().getBuilder(); } /** *
       * ANY/ALL predicate
       * 
* * .substrait.Expression.Subquery.SetComparison set_comparison = 4; */ @java.lang.Override public io.substrait.proto.Expression.Subquery.SetComparisonOrBuilder getSetComparisonOrBuilder() { if ((subqueryTypeCase_ == 4) && (setComparisonBuilder_ != null)) { return setComparisonBuilder_.getMessageOrBuilder(); } else { if (subqueryTypeCase_ == 4) { return (io.substrait.proto.Expression.Subquery.SetComparison) subqueryType_; } return io.substrait.proto.Expression.Subquery.SetComparison.getDefaultInstance(); } } /** *
       * ANY/ALL predicate
       * 
* * .substrait.Expression.Subquery.SetComparison set_comparison = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Subquery.SetComparison, io.substrait.proto.Expression.Subquery.SetComparison.Builder, io.substrait.proto.Expression.Subquery.SetComparisonOrBuilder> getSetComparisonFieldBuilder() { if (setComparisonBuilder_ == null) { if (!(subqueryTypeCase_ == 4)) { subqueryType_ = io.substrait.proto.Expression.Subquery.SetComparison.getDefaultInstance(); } setComparisonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Subquery.SetComparison, io.substrait.proto.Expression.Subquery.SetComparison.Builder, io.substrait.proto.Expression.Subquery.SetComparisonOrBuilder>( (io.substrait.proto.Expression.Subquery.SetComparison) subqueryType_, getParentForChildren(), isClean()); subqueryType_ = null; } subqueryTypeCase_ = 4; onChanged(); return setComparisonBuilder_; } @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.Subquery) } // @@protoc_insertion_point(class_scope:substrait.Expression.Subquery) private static final io.substrait.proto.Expression.Subquery DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression.Subquery(); } public static io.substrait.proto.Expression.Subquery getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Subquery 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.Subquery getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int rexTypeCase_ = 0; @SuppressWarnings("serial") private java.lang.Object rexType_; public enum RexTypeCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { LITERAL(1), SELECTION(2), SCALAR_FUNCTION(3), WINDOW_FUNCTION(5), IF_THEN(6), SWITCH_EXPRESSION(7), SINGULAR_OR_LIST(8), MULTI_OR_LIST(9), CAST(11), SUBQUERY(12), NESTED(13), @java.lang.Deprecated ENUM(10), REXTYPE_NOT_SET(0); private final int value; private RexTypeCase(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 RexTypeCase valueOf(int value) { return forNumber(value); } public static RexTypeCase forNumber(int value) { switch (value) { case 1: return LITERAL; case 2: return SELECTION; case 3: return SCALAR_FUNCTION; case 5: return WINDOW_FUNCTION; case 6: return IF_THEN; case 7: return SWITCH_EXPRESSION; case 8: return SINGULAR_OR_LIST; case 9: return MULTI_OR_LIST; case 11: return CAST; case 12: return SUBQUERY; case 13: return NESTED; case 10: return ENUM; case 0: return REXTYPE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public RexTypeCase getRexTypeCase() { return RexTypeCase.forNumber( rexTypeCase_); } public static final int LITERAL_FIELD_NUMBER = 1; /** * .substrait.Expression.Literal literal = 1; * @return Whether the literal field is set. */ @java.lang.Override public boolean hasLiteral() { return rexTypeCase_ == 1; } /** * .substrait.Expression.Literal literal = 1; * @return The literal. */ @java.lang.Override public io.substrait.proto.Expression.Literal getLiteral() { if (rexTypeCase_ == 1) { return (io.substrait.proto.Expression.Literal) rexType_; } return io.substrait.proto.Expression.Literal.getDefaultInstance(); } /** * .substrait.Expression.Literal literal = 1; */ @java.lang.Override public io.substrait.proto.Expression.LiteralOrBuilder getLiteralOrBuilder() { if (rexTypeCase_ == 1) { return (io.substrait.proto.Expression.Literal) rexType_; } return io.substrait.proto.Expression.Literal.getDefaultInstance(); } public static final int SELECTION_FIELD_NUMBER = 2; /** * .substrait.Expression.FieldReference selection = 2; * @return Whether the selection field is set. */ @java.lang.Override public boolean hasSelection() { return rexTypeCase_ == 2; } /** * .substrait.Expression.FieldReference selection = 2; * @return The selection. */ @java.lang.Override public io.substrait.proto.Expression.FieldReference getSelection() { if (rexTypeCase_ == 2) { return (io.substrait.proto.Expression.FieldReference) rexType_; } return io.substrait.proto.Expression.FieldReference.getDefaultInstance(); } /** * .substrait.Expression.FieldReference selection = 2; */ @java.lang.Override public io.substrait.proto.Expression.FieldReferenceOrBuilder getSelectionOrBuilder() { if (rexTypeCase_ == 2) { return (io.substrait.proto.Expression.FieldReference) rexType_; } return io.substrait.proto.Expression.FieldReference.getDefaultInstance(); } public static final int SCALAR_FUNCTION_FIELD_NUMBER = 3; /** * .substrait.Expression.ScalarFunction scalar_function = 3; * @return Whether the scalarFunction field is set. */ @java.lang.Override public boolean hasScalarFunction() { return rexTypeCase_ == 3; } /** * .substrait.Expression.ScalarFunction scalar_function = 3; * @return The scalarFunction. */ @java.lang.Override public io.substrait.proto.Expression.ScalarFunction getScalarFunction() { if (rexTypeCase_ == 3) { return (io.substrait.proto.Expression.ScalarFunction) rexType_; } return io.substrait.proto.Expression.ScalarFunction.getDefaultInstance(); } /** * .substrait.Expression.ScalarFunction scalar_function = 3; */ @java.lang.Override public io.substrait.proto.Expression.ScalarFunctionOrBuilder getScalarFunctionOrBuilder() { if (rexTypeCase_ == 3) { return (io.substrait.proto.Expression.ScalarFunction) rexType_; } return io.substrait.proto.Expression.ScalarFunction.getDefaultInstance(); } public static final int WINDOW_FUNCTION_FIELD_NUMBER = 5; /** * .substrait.Expression.WindowFunction window_function = 5; * @return Whether the windowFunction field is set. */ @java.lang.Override public boolean hasWindowFunction() { return rexTypeCase_ == 5; } /** * .substrait.Expression.WindowFunction window_function = 5; * @return The windowFunction. */ @java.lang.Override public io.substrait.proto.Expression.WindowFunction getWindowFunction() { if (rexTypeCase_ == 5) { return (io.substrait.proto.Expression.WindowFunction) rexType_; } return io.substrait.proto.Expression.WindowFunction.getDefaultInstance(); } /** * .substrait.Expression.WindowFunction window_function = 5; */ @java.lang.Override public io.substrait.proto.Expression.WindowFunctionOrBuilder getWindowFunctionOrBuilder() { if (rexTypeCase_ == 5) { return (io.substrait.proto.Expression.WindowFunction) rexType_; } return io.substrait.proto.Expression.WindowFunction.getDefaultInstance(); } public static final int IF_THEN_FIELD_NUMBER = 6; /** * .substrait.Expression.IfThen if_then = 6; * @return Whether the ifThen field is set. */ @java.lang.Override public boolean hasIfThen() { return rexTypeCase_ == 6; } /** * .substrait.Expression.IfThen if_then = 6; * @return The ifThen. */ @java.lang.Override public io.substrait.proto.Expression.IfThen getIfThen() { if (rexTypeCase_ == 6) { return (io.substrait.proto.Expression.IfThen) rexType_; } return io.substrait.proto.Expression.IfThen.getDefaultInstance(); } /** * .substrait.Expression.IfThen if_then = 6; */ @java.lang.Override public io.substrait.proto.Expression.IfThenOrBuilder getIfThenOrBuilder() { if (rexTypeCase_ == 6) { return (io.substrait.proto.Expression.IfThen) rexType_; } return io.substrait.proto.Expression.IfThen.getDefaultInstance(); } public static final int SWITCH_EXPRESSION_FIELD_NUMBER = 7; /** * .substrait.Expression.SwitchExpression switch_expression = 7; * @return Whether the switchExpression field is set. */ @java.lang.Override public boolean hasSwitchExpression() { return rexTypeCase_ == 7; } /** * .substrait.Expression.SwitchExpression switch_expression = 7; * @return The switchExpression. */ @java.lang.Override public io.substrait.proto.Expression.SwitchExpression getSwitchExpression() { if (rexTypeCase_ == 7) { return (io.substrait.proto.Expression.SwitchExpression) rexType_; } return io.substrait.proto.Expression.SwitchExpression.getDefaultInstance(); } /** * .substrait.Expression.SwitchExpression switch_expression = 7; */ @java.lang.Override public io.substrait.proto.Expression.SwitchExpressionOrBuilder getSwitchExpressionOrBuilder() { if (rexTypeCase_ == 7) { return (io.substrait.proto.Expression.SwitchExpression) rexType_; } return io.substrait.proto.Expression.SwitchExpression.getDefaultInstance(); } public static final int SINGULAR_OR_LIST_FIELD_NUMBER = 8; /** * .substrait.Expression.SingularOrList singular_or_list = 8; * @return Whether the singularOrList field is set. */ @java.lang.Override public boolean hasSingularOrList() { return rexTypeCase_ == 8; } /** * .substrait.Expression.SingularOrList singular_or_list = 8; * @return The singularOrList. */ @java.lang.Override public io.substrait.proto.Expression.SingularOrList getSingularOrList() { if (rexTypeCase_ == 8) { return (io.substrait.proto.Expression.SingularOrList) rexType_; } return io.substrait.proto.Expression.SingularOrList.getDefaultInstance(); } /** * .substrait.Expression.SingularOrList singular_or_list = 8; */ @java.lang.Override public io.substrait.proto.Expression.SingularOrListOrBuilder getSingularOrListOrBuilder() { if (rexTypeCase_ == 8) { return (io.substrait.proto.Expression.SingularOrList) rexType_; } return io.substrait.proto.Expression.SingularOrList.getDefaultInstance(); } public static final int MULTI_OR_LIST_FIELD_NUMBER = 9; /** * .substrait.Expression.MultiOrList multi_or_list = 9; * @return Whether the multiOrList field is set. */ @java.lang.Override public boolean hasMultiOrList() { return rexTypeCase_ == 9; } /** * .substrait.Expression.MultiOrList multi_or_list = 9; * @return The multiOrList. */ @java.lang.Override public io.substrait.proto.Expression.MultiOrList getMultiOrList() { if (rexTypeCase_ == 9) { return (io.substrait.proto.Expression.MultiOrList) rexType_; } return io.substrait.proto.Expression.MultiOrList.getDefaultInstance(); } /** * .substrait.Expression.MultiOrList multi_or_list = 9; */ @java.lang.Override public io.substrait.proto.Expression.MultiOrListOrBuilder getMultiOrListOrBuilder() { if (rexTypeCase_ == 9) { return (io.substrait.proto.Expression.MultiOrList) rexType_; } return io.substrait.proto.Expression.MultiOrList.getDefaultInstance(); } public static final int CAST_FIELD_NUMBER = 11; /** * .substrait.Expression.Cast cast = 11; * @return Whether the cast field is set. */ @java.lang.Override public boolean hasCast() { return rexTypeCase_ == 11; } /** * .substrait.Expression.Cast cast = 11; * @return The cast. */ @java.lang.Override public io.substrait.proto.Expression.Cast getCast() { if (rexTypeCase_ == 11) { return (io.substrait.proto.Expression.Cast) rexType_; } return io.substrait.proto.Expression.Cast.getDefaultInstance(); } /** * .substrait.Expression.Cast cast = 11; */ @java.lang.Override public io.substrait.proto.Expression.CastOrBuilder getCastOrBuilder() { if (rexTypeCase_ == 11) { return (io.substrait.proto.Expression.Cast) rexType_; } return io.substrait.proto.Expression.Cast.getDefaultInstance(); } public static final int SUBQUERY_FIELD_NUMBER = 12; /** * .substrait.Expression.Subquery subquery = 12; * @return Whether the subquery field is set. */ @java.lang.Override public boolean hasSubquery() { return rexTypeCase_ == 12; } /** * .substrait.Expression.Subquery subquery = 12; * @return The subquery. */ @java.lang.Override public io.substrait.proto.Expression.Subquery getSubquery() { if (rexTypeCase_ == 12) { return (io.substrait.proto.Expression.Subquery) rexType_; } return io.substrait.proto.Expression.Subquery.getDefaultInstance(); } /** * .substrait.Expression.Subquery subquery = 12; */ @java.lang.Override public io.substrait.proto.Expression.SubqueryOrBuilder getSubqueryOrBuilder() { if (rexTypeCase_ == 12) { return (io.substrait.proto.Expression.Subquery) rexType_; } return io.substrait.proto.Expression.Subquery.getDefaultInstance(); } public static final int NESTED_FIELD_NUMBER = 13; /** * .substrait.Expression.Nested nested = 13; * @return Whether the nested field is set. */ @java.lang.Override public boolean hasNested() { return rexTypeCase_ == 13; } /** * .substrait.Expression.Nested nested = 13; * @return The nested. */ @java.lang.Override public io.substrait.proto.Expression.Nested getNested() { if (rexTypeCase_ == 13) { return (io.substrait.proto.Expression.Nested) rexType_; } return io.substrait.proto.Expression.Nested.getDefaultInstance(); } /** * .substrait.Expression.Nested nested = 13; */ @java.lang.Override public io.substrait.proto.Expression.NestedOrBuilder getNestedOrBuilder() { if (rexTypeCase_ == 13) { return (io.substrait.proto.Expression.Nested) rexType_; } return io.substrait.proto.Expression.Nested.getDefaultInstance(); } public static final int ENUM_FIELD_NUMBER = 10; /** *
   * deprecated: enum literals are only sensible in the context of
   * function arguments, for which FunctionArgument should now be
   * used
   * 
* * .substrait.Expression.Enum enum = 10 [deprecated = true]; * @deprecated substrait.Expression.enum is deprecated. * See substrait/algebra.proto;l=835 * @return Whether the enum field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasEnum() { return rexTypeCase_ == 10; } /** *
   * deprecated: enum literals are only sensible in the context of
   * function arguments, for which FunctionArgument should now be
   * used
   * 
* * .substrait.Expression.Enum enum = 10 [deprecated = true]; * @deprecated substrait.Expression.enum is deprecated. * See substrait/algebra.proto;l=835 * @return The enum. */ @java.lang.Override @java.lang.Deprecated public io.substrait.proto.Expression.Enum getEnum() { if (rexTypeCase_ == 10) { return (io.substrait.proto.Expression.Enum) rexType_; } return io.substrait.proto.Expression.Enum.getDefaultInstance(); } /** *
   * deprecated: enum literals are only sensible in the context of
   * function arguments, for which FunctionArgument should now be
   * used
   * 
* * .substrait.Expression.Enum enum = 10 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public io.substrait.proto.Expression.EnumOrBuilder getEnumOrBuilder() { if (rexTypeCase_ == 10) { return (io.substrait.proto.Expression.Enum) rexType_; } return io.substrait.proto.Expression.Enum.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 (rexTypeCase_ == 1) { output.writeMessage(1, (io.substrait.proto.Expression.Literal) rexType_); } if (rexTypeCase_ == 2) { output.writeMessage(2, (io.substrait.proto.Expression.FieldReference) rexType_); } if (rexTypeCase_ == 3) { output.writeMessage(3, (io.substrait.proto.Expression.ScalarFunction) rexType_); } if (rexTypeCase_ == 5) { output.writeMessage(5, (io.substrait.proto.Expression.WindowFunction) rexType_); } if (rexTypeCase_ == 6) { output.writeMessage(6, (io.substrait.proto.Expression.IfThen) rexType_); } if (rexTypeCase_ == 7) { output.writeMessage(7, (io.substrait.proto.Expression.SwitchExpression) rexType_); } if (rexTypeCase_ == 8) { output.writeMessage(8, (io.substrait.proto.Expression.SingularOrList) rexType_); } if (rexTypeCase_ == 9) { output.writeMessage(9, (io.substrait.proto.Expression.MultiOrList) rexType_); } if (rexTypeCase_ == 10) { output.writeMessage(10, (io.substrait.proto.Expression.Enum) rexType_); } if (rexTypeCase_ == 11) { output.writeMessage(11, (io.substrait.proto.Expression.Cast) rexType_); } if (rexTypeCase_ == 12) { output.writeMessage(12, (io.substrait.proto.Expression.Subquery) rexType_); } if (rexTypeCase_ == 13) { output.writeMessage(13, (io.substrait.proto.Expression.Nested) rexType_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (rexTypeCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (io.substrait.proto.Expression.Literal) rexType_); } if (rexTypeCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.substrait.proto.Expression.FieldReference) rexType_); } if (rexTypeCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (io.substrait.proto.Expression.ScalarFunction) rexType_); } if (rexTypeCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (io.substrait.proto.Expression.WindowFunction) rexType_); } if (rexTypeCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (io.substrait.proto.Expression.IfThen) rexType_); } if (rexTypeCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (io.substrait.proto.Expression.SwitchExpression) rexType_); } if (rexTypeCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (io.substrait.proto.Expression.SingularOrList) rexType_); } if (rexTypeCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (io.substrait.proto.Expression.MultiOrList) rexType_); } if (rexTypeCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (io.substrait.proto.Expression.Enum) rexType_); } if (rexTypeCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (io.substrait.proto.Expression.Cast) rexType_); } if (rexTypeCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (io.substrait.proto.Expression.Subquery) rexType_); } if (rexTypeCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, (io.substrait.proto.Expression.Nested) rexType_); } 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)) { return super.equals(obj); } io.substrait.proto.Expression other = (io.substrait.proto.Expression) obj; if (!getRexTypeCase().equals(other.getRexTypeCase())) return false; switch (rexTypeCase_) { case 1: if (!getLiteral() .equals(other.getLiteral())) return false; break; case 2: if (!getSelection() .equals(other.getSelection())) return false; break; case 3: if (!getScalarFunction() .equals(other.getScalarFunction())) return false; break; case 5: if (!getWindowFunction() .equals(other.getWindowFunction())) return false; break; case 6: if (!getIfThen() .equals(other.getIfThen())) return false; break; case 7: if (!getSwitchExpression() .equals(other.getSwitchExpression())) return false; break; case 8: if (!getSingularOrList() .equals(other.getSingularOrList())) return false; break; case 9: if (!getMultiOrList() .equals(other.getMultiOrList())) return false; break; case 11: if (!getCast() .equals(other.getCast())) return false; break; case 12: if (!getSubquery() .equals(other.getSubquery())) return false; break; case 13: if (!getNested() .equals(other.getNested())) return false; break; case 10: if (!getEnum() .equals(other.getEnum())) 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 (rexTypeCase_) { case 1: hash = (37 * hash) + LITERAL_FIELD_NUMBER; hash = (53 * hash) + getLiteral().hashCode(); break; case 2: hash = (37 * hash) + SELECTION_FIELD_NUMBER; hash = (53 * hash) + getSelection().hashCode(); break; case 3: hash = (37 * hash) + SCALAR_FUNCTION_FIELD_NUMBER; hash = (53 * hash) + getScalarFunction().hashCode(); break; case 5: hash = (37 * hash) + WINDOW_FUNCTION_FIELD_NUMBER; hash = (53 * hash) + getWindowFunction().hashCode(); break; case 6: hash = (37 * hash) + IF_THEN_FIELD_NUMBER; hash = (53 * hash) + getIfThen().hashCode(); break; case 7: hash = (37 * hash) + SWITCH_EXPRESSION_FIELD_NUMBER; hash = (53 * hash) + getSwitchExpression().hashCode(); break; case 8: hash = (37 * hash) + SINGULAR_OR_LIST_FIELD_NUMBER; hash = (53 * hash) + getSingularOrList().hashCode(); break; case 9: hash = (37 * hash) + MULTI_OR_LIST_FIELD_NUMBER; hash = (53 * hash) + getMultiOrList().hashCode(); break; case 11: hash = (37 * hash) + CAST_FIELD_NUMBER; hash = (53 * hash) + getCast().hashCode(); break; case 12: hash = (37 * hash) + SUBQUERY_FIELD_NUMBER; hash = (53 * hash) + getSubquery().hashCode(); break; case 13: hash = (37 * hash) + NESTED_FIELD_NUMBER; hash = (53 * hash) + getNested().hashCode(); break; case 10: hash = (37 * hash) + ENUM_FIELD_NUMBER; hash = (53 * hash) + getEnum().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Expression parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression 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 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression 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 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Expression parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Expression parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression 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 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Expression 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 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Expression 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 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} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Expression) io.substrait.proto.ExpressionOrBuilder { 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); } // Construct using io.substrait.proto.Expression.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (literalBuilder_ != null) { literalBuilder_.clear(); } if (selectionBuilder_ != null) { selectionBuilder_.clear(); } if (scalarFunctionBuilder_ != null) { scalarFunctionBuilder_.clear(); } if (windowFunctionBuilder_ != null) { windowFunctionBuilder_.clear(); } if (ifThenBuilder_ != null) { ifThenBuilder_.clear(); } if (switchExpressionBuilder_ != null) { switchExpressionBuilder_.clear(); } if (singularOrListBuilder_ != null) { singularOrListBuilder_.clear(); } if (multiOrListBuilder_ != null) { multiOrListBuilder_.clear(); } if (castBuilder_ != null) { castBuilder_.clear(); } if (subqueryBuilder_ != null) { subqueryBuilder_.clear(); } if (nestedBuilder_ != null) { nestedBuilder_.clear(); } if (enumBuilder_ != null) { enumBuilder_.clear(); } rexTypeCase_ = 0; rexType_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_Expression_descriptor; } @java.lang.Override public io.substrait.proto.Expression getDefaultInstanceForType() { return io.substrait.proto.Expression.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Expression build() { io.substrait.proto.Expression result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Expression buildPartial() { io.substrait.proto.Expression result = new io.substrait.proto.Expression(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(io.substrait.proto.Expression result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(io.substrait.proto.Expression result) { result.rexTypeCase_ = rexTypeCase_; result.rexType_ = this.rexType_; if (rexTypeCase_ == 1 && literalBuilder_ != null) { result.rexType_ = literalBuilder_.build(); } if (rexTypeCase_ == 2 && selectionBuilder_ != null) { result.rexType_ = selectionBuilder_.build(); } if (rexTypeCase_ == 3 && scalarFunctionBuilder_ != null) { result.rexType_ = scalarFunctionBuilder_.build(); } if (rexTypeCase_ == 5 && windowFunctionBuilder_ != null) { result.rexType_ = windowFunctionBuilder_.build(); } if (rexTypeCase_ == 6 && ifThenBuilder_ != null) { result.rexType_ = ifThenBuilder_.build(); } if (rexTypeCase_ == 7 && switchExpressionBuilder_ != null) { result.rexType_ = switchExpressionBuilder_.build(); } if (rexTypeCase_ == 8 && singularOrListBuilder_ != null) { result.rexType_ = singularOrListBuilder_.build(); } if (rexTypeCase_ == 9 && multiOrListBuilder_ != null) { result.rexType_ = multiOrListBuilder_.build(); } if (rexTypeCase_ == 11 && castBuilder_ != null) { result.rexType_ = castBuilder_.build(); } if (rexTypeCase_ == 12 && subqueryBuilder_ != null) { result.rexType_ = subqueryBuilder_.build(); } if (rexTypeCase_ == 13 && nestedBuilder_ != null) { result.rexType_ = nestedBuilder_.build(); } if (rexTypeCase_ == 10 && enumBuilder_ != null) { result.rexType_ = enumBuilder_.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) { return mergeFrom((io.substrait.proto.Expression)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Expression other) { if (other == io.substrait.proto.Expression.getDefaultInstance()) return this; switch (other.getRexTypeCase()) { case LITERAL: { mergeLiteral(other.getLiteral()); break; } case SELECTION: { mergeSelection(other.getSelection()); break; } case SCALAR_FUNCTION: { mergeScalarFunction(other.getScalarFunction()); break; } case WINDOW_FUNCTION: { mergeWindowFunction(other.getWindowFunction()); break; } case IF_THEN: { mergeIfThen(other.getIfThen()); break; } case SWITCH_EXPRESSION: { mergeSwitchExpression(other.getSwitchExpression()); break; } case SINGULAR_OR_LIST: { mergeSingularOrList(other.getSingularOrList()); break; } case MULTI_OR_LIST: { mergeMultiOrList(other.getMultiOrList()); break; } case CAST: { mergeCast(other.getCast()); break; } case SUBQUERY: { mergeSubquery(other.getSubquery()); break; } case NESTED: { mergeNested(other.getNested()); break; } case ENUM: { mergeEnum(other.getEnum()); break; } case REXTYPE_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( getLiteralFieldBuilder().getBuilder(), extensionRegistry); rexTypeCase_ = 1; break; } // case 10 case 18: { input.readMessage( getSelectionFieldBuilder().getBuilder(), extensionRegistry); rexTypeCase_ = 2; break; } // case 18 case 26: { input.readMessage( getScalarFunctionFieldBuilder().getBuilder(), extensionRegistry); rexTypeCase_ = 3; break; } // case 26 case 42: { input.readMessage( getWindowFunctionFieldBuilder().getBuilder(), extensionRegistry); rexTypeCase_ = 5; break; } // case 42 case 50: { input.readMessage( getIfThenFieldBuilder().getBuilder(), extensionRegistry); rexTypeCase_ = 6; break; } // case 50 case 58: { input.readMessage( getSwitchExpressionFieldBuilder().getBuilder(), extensionRegistry); rexTypeCase_ = 7; break; } // case 58 case 66: { input.readMessage( getSingularOrListFieldBuilder().getBuilder(), extensionRegistry); rexTypeCase_ = 8; break; } // case 66 case 74: { input.readMessage( getMultiOrListFieldBuilder().getBuilder(), extensionRegistry); rexTypeCase_ = 9; break; } // case 74 case 82: { input.readMessage( getEnumFieldBuilder().getBuilder(), extensionRegistry); rexTypeCase_ = 10; break; } // case 82 case 90: { input.readMessage( getCastFieldBuilder().getBuilder(), extensionRegistry); rexTypeCase_ = 11; break; } // case 90 case 98: { input.readMessage( getSubqueryFieldBuilder().getBuilder(), extensionRegistry); rexTypeCase_ = 12; break; } // case 98 case 106: { input.readMessage( getNestedFieldBuilder().getBuilder(), extensionRegistry); rexTypeCase_ = 13; break; } // case 106 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 rexTypeCase_ = 0; private java.lang.Object rexType_; public RexTypeCase getRexTypeCase() { return RexTypeCase.forNumber( rexTypeCase_); } public Builder clearRexType() { rexTypeCase_ = 0; rexType_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Literal, io.substrait.proto.Expression.Literal.Builder, io.substrait.proto.Expression.LiteralOrBuilder> literalBuilder_; /** * .substrait.Expression.Literal literal = 1; * @return Whether the literal field is set. */ @java.lang.Override public boolean hasLiteral() { return rexTypeCase_ == 1; } /** * .substrait.Expression.Literal literal = 1; * @return The literal. */ @java.lang.Override public io.substrait.proto.Expression.Literal getLiteral() { if (literalBuilder_ == null) { if (rexTypeCase_ == 1) { return (io.substrait.proto.Expression.Literal) rexType_; } return io.substrait.proto.Expression.Literal.getDefaultInstance(); } else { if (rexTypeCase_ == 1) { return literalBuilder_.getMessage(); } return io.substrait.proto.Expression.Literal.getDefaultInstance(); } } /** * .substrait.Expression.Literal literal = 1; */ public Builder setLiteral(io.substrait.proto.Expression.Literal value) { if (literalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rexType_ = value; onChanged(); } else { literalBuilder_.setMessage(value); } rexTypeCase_ = 1; return this; } /** * .substrait.Expression.Literal literal = 1; */ public Builder setLiteral( io.substrait.proto.Expression.Literal.Builder builderForValue) { if (literalBuilder_ == null) { rexType_ = builderForValue.build(); onChanged(); } else { literalBuilder_.setMessage(builderForValue.build()); } rexTypeCase_ = 1; return this; } /** * .substrait.Expression.Literal literal = 1; */ public Builder mergeLiteral(io.substrait.proto.Expression.Literal value) { if (literalBuilder_ == null) { if (rexTypeCase_ == 1 && rexType_ != io.substrait.proto.Expression.Literal.getDefaultInstance()) { rexType_ = io.substrait.proto.Expression.Literal.newBuilder((io.substrait.proto.Expression.Literal) rexType_) .mergeFrom(value).buildPartial(); } else { rexType_ = value; } onChanged(); } else { if (rexTypeCase_ == 1) { literalBuilder_.mergeFrom(value); } else { literalBuilder_.setMessage(value); } } rexTypeCase_ = 1; return this; } /** * .substrait.Expression.Literal literal = 1; */ public Builder clearLiteral() { if (literalBuilder_ == null) { if (rexTypeCase_ == 1) { rexTypeCase_ = 0; rexType_ = null; onChanged(); } } else { if (rexTypeCase_ == 1) { rexTypeCase_ = 0; rexType_ = null; } literalBuilder_.clear(); } return this; } /** * .substrait.Expression.Literal literal = 1; */ public io.substrait.proto.Expression.Literal.Builder getLiteralBuilder() { return getLiteralFieldBuilder().getBuilder(); } /** * .substrait.Expression.Literal literal = 1; */ @java.lang.Override public io.substrait.proto.Expression.LiteralOrBuilder getLiteralOrBuilder() { if ((rexTypeCase_ == 1) && (literalBuilder_ != null)) { return literalBuilder_.getMessageOrBuilder(); } else { if (rexTypeCase_ == 1) { return (io.substrait.proto.Expression.Literal) rexType_; } return io.substrait.proto.Expression.Literal.getDefaultInstance(); } } /** * .substrait.Expression.Literal literal = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Literal, io.substrait.proto.Expression.Literal.Builder, io.substrait.proto.Expression.LiteralOrBuilder> getLiteralFieldBuilder() { if (literalBuilder_ == null) { if (!(rexTypeCase_ == 1)) { rexType_ = io.substrait.proto.Expression.Literal.getDefaultInstance(); } literalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Literal, io.substrait.proto.Expression.Literal.Builder, io.substrait.proto.Expression.LiteralOrBuilder>( (io.substrait.proto.Expression.Literal) rexType_, getParentForChildren(), isClean()); rexType_ = null; } rexTypeCase_ = 1; onChanged(); return literalBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.FieldReference, io.substrait.proto.Expression.FieldReference.Builder, io.substrait.proto.Expression.FieldReferenceOrBuilder> selectionBuilder_; /** * .substrait.Expression.FieldReference selection = 2; * @return Whether the selection field is set. */ @java.lang.Override public boolean hasSelection() { return rexTypeCase_ == 2; } /** * .substrait.Expression.FieldReference selection = 2; * @return The selection. */ @java.lang.Override public io.substrait.proto.Expression.FieldReference getSelection() { if (selectionBuilder_ == null) { if (rexTypeCase_ == 2) { return (io.substrait.proto.Expression.FieldReference) rexType_; } return io.substrait.proto.Expression.FieldReference.getDefaultInstance(); } else { if (rexTypeCase_ == 2) { return selectionBuilder_.getMessage(); } return io.substrait.proto.Expression.FieldReference.getDefaultInstance(); } } /** * .substrait.Expression.FieldReference selection = 2; */ public Builder setSelection(io.substrait.proto.Expression.FieldReference value) { if (selectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rexType_ = value; onChanged(); } else { selectionBuilder_.setMessage(value); } rexTypeCase_ = 2; return this; } /** * .substrait.Expression.FieldReference selection = 2; */ public Builder setSelection( io.substrait.proto.Expression.FieldReference.Builder builderForValue) { if (selectionBuilder_ == null) { rexType_ = builderForValue.build(); onChanged(); } else { selectionBuilder_.setMessage(builderForValue.build()); } rexTypeCase_ = 2; return this; } /** * .substrait.Expression.FieldReference selection = 2; */ public Builder mergeSelection(io.substrait.proto.Expression.FieldReference value) { if (selectionBuilder_ == null) { if (rexTypeCase_ == 2 && rexType_ != io.substrait.proto.Expression.FieldReference.getDefaultInstance()) { rexType_ = io.substrait.proto.Expression.FieldReference.newBuilder((io.substrait.proto.Expression.FieldReference) rexType_) .mergeFrom(value).buildPartial(); } else { rexType_ = value; } onChanged(); } else { if (rexTypeCase_ == 2) { selectionBuilder_.mergeFrom(value); } else { selectionBuilder_.setMessage(value); } } rexTypeCase_ = 2; return this; } /** * .substrait.Expression.FieldReference selection = 2; */ public Builder clearSelection() { if (selectionBuilder_ == null) { if (rexTypeCase_ == 2) { rexTypeCase_ = 0; rexType_ = null; onChanged(); } } else { if (rexTypeCase_ == 2) { rexTypeCase_ = 0; rexType_ = null; } selectionBuilder_.clear(); } return this; } /** * .substrait.Expression.FieldReference selection = 2; */ public io.substrait.proto.Expression.FieldReference.Builder getSelectionBuilder() { return getSelectionFieldBuilder().getBuilder(); } /** * .substrait.Expression.FieldReference selection = 2; */ @java.lang.Override public io.substrait.proto.Expression.FieldReferenceOrBuilder getSelectionOrBuilder() { if ((rexTypeCase_ == 2) && (selectionBuilder_ != null)) { return selectionBuilder_.getMessageOrBuilder(); } else { if (rexTypeCase_ == 2) { return (io.substrait.proto.Expression.FieldReference) rexType_; } return io.substrait.proto.Expression.FieldReference.getDefaultInstance(); } } /** * .substrait.Expression.FieldReference selection = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.FieldReference, io.substrait.proto.Expression.FieldReference.Builder, io.substrait.proto.Expression.FieldReferenceOrBuilder> getSelectionFieldBuilder() { if (selectionBuilder_ == null) { if (!(rexTypeCase_ == 2)) { rexType_ = io.substrait.proto.Expression.FieldReference.getDefaultInstance(); } selectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.FieldReference, io.substrait.proto.Expression.FieldReference.Builder, io.substrait.proto.Expression.FieldReferenceOrBuilder>( (io.substrait.proto.Expression.FieldReference) rexType_, getParentForChildren(), isClean()); rexType_ = null; } rexTypeCase_ = 2; onChanged(); return selectionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.ScalarFunction, io.substrait.proto.Expression.ScalarFunction.Builder, io.substrait.proto.Expression.ScalarFunctionOrBuilder> scalarFunctionBuilder_; /** * .substrait.Expression.ScalarFunction scalar_function = 3; * @return Whether the scalarFunction field is set. */ @java.lang.Override public boolean hasScalarFunction() { return rexTypeCase_ == 3; } /** * .substrait.Expression.ScalarFunction scalar_function = 3; * @return The scalarFunction. */ @java.lang.Override public io.substrait.proto.Expression.ScalarFunction getScalarFunction() { if (scalarFunctionBuilder_ == null) { if (rexTypeCase_ == 3) { return (io.substrait.proto.Expression.ScalarFunction) rexType_; } return io.substrait.proto.Expression.ScalarFunction.getDefaultInstance(); } else { if (rexTypeCase_ == 3) { return scalarFunctionBuilder_.getMessage(); } return io.substrait.proto.Expression.ScalarFunction.getDefaultInstance(); } } /** * .substrait.Expression.ScalarFunction scalar_function = 3; */ public Builder setScalarFunction(io.substrait.proto.Expression.ScalarFunction value) { if (scalarFunctionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rexType_ = value; onChanged(); } else { scalarFunctionBuilder_.setMessage(value); } rexTypeCase_ = 3; return this; } /** * .substrait.Expression.ScalarFunction scalar_function = 3; */ public Builder setScalarFunction( io.substrait.proto.Expression.ScalarFunction.Builder builderForValue) { if (scalarFunctionBuilder_ == null) { rexType_ = builderForValue.build(); onChanged(); } else { scalarFunctionBuilder_.setMessage(builderForValue.build()); } rexTypeCase_ = 3; return this; } /** * .substrait.Expression.ScalarFunction scalar_function = 3; */ public Builder mergeScalarFunction(io.substrait.proto.Expression.ScalarFunction value) { if (scalarFunctionBuilder_ == null) { if (rexTypeCase_ == 3 && rexType_ != io.substrait.proto.Expression.ScalarFunction.getDefaultInstance()) { rexType_ = io.substrait.proto.Expression.ScalarFunction.newBuilder((io.substrait.proto.Expression.ScalarFunction) rexType_) .mergeFrom(value).buildPartial(); } else { rexType_ = value; } onChanged(); } else { if (rexTypeCase_ == 3) { scalarFunctionBuilder_.mergeFrom(value); } else { scalarFunctionBuilder_.setMessage(value); } } rexTypeCase_ = 3; return this; } /** * .substrait.Expression.ScalarFunction scalar_function = 3; */ public Builder clearScalarFunction() { if (scalarFunctionBuilder_ == null) { if (rexTypeCase_ == 3) { rexTypeCase_ = 0; rexType_ = null; onChanged(); } } else { if (rexTypeCase_ == 3) { rexTypeCase_ = 0; rexType_ = null; } scalarFunctionBuilder_.clear(); } return this; } /** * .substrait.Expression.ScalarFunction scalar_function = 3; */ public io.substrait.proto.Expression.ScalarFunction.Builder getScalarFunctionBuilder() { return getScalarFunctionFieldBuilder().getBuilder(); } /** * .substrait.Expression.ScalarFunction scalar_function = 3; */ @java.lang.Override public io.substrait.proto.Expression.ScalarFunctionOrBuilder getScalarFunctionOrBuilder() { if ((rexTypeCase_ == 3) && (scalarFunctionBuilder_ != null)) { return scalarFunctionBuilder_.getMessageOrBuilder(); } else { if (rexTypeCase_ == 3) { return (io.substrait.proto.Expression.ScalarFunction) rexType_; } return io.substrait.proto.Expression.ScalarFunction.getDefaultInstance(); } } /** * .substrait.Expression.ScalarFunction scalar_function = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.ScalarFunction, io.substrait.proto.Expression.ScalarFunction.Builder, io.substrait.proto.Expression.ScalarFunctionOrBuilder> getScalarFunctionFieldBuilder() { if (scalarFunctionBuilder_ == null) { if (!(rexTypeCase_ == 3)) { rexType_ = io.substrait.proto.Expression.ScalarFunction.getDefaultInstance(); } scalarFunctionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.ScalarFunction, io.substrait.proto.Expression.ScalarFunction.Builder, io.substrait.proto.Expression.ScalarFunctionOrBuilder>( (io.substrait.proto.Expression.ScalarFunction) rexType_, getParentForChildren(), isClean()); rexType_ = null; } rexTypeCase_ = 3; onChanged(); return scalarFunctionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.WindowFunction, io.substrait.proto.Expression.WindowFunction.Builder, io.substrait.proto.Expression.WindowFunctionOrBuilder> windowFunctionBuilder_; /** * .substrait.Expression.WindowFunction window_function = 5; * @return Whether the windowFunction field is set. */ @java.lang.Override public boolean hasWindowFunction() { return rexTypeCase_ == 5; } /** * .substrait.Expression.WindowFunction window_function = 5; * @return The windowFunction. */ @java.lang.Override public io.substrait.proto.Expression.WindowFunction getWindowFunction() { if (windowFunctionBuilder_ == null) { if (rexTypeCase_ == 5) { return (io.substrait.proto.Expression.WindowFunction) rexType_; } return io.substrait.proto.Expression.WindowFunction.getDefaultInstance(); } else { if (rexTypeCase_ == 5) { return windowFunctionBuilder_.getMessage(); } return io.substrait.proto.Expression.WindowFunction.getDefaultInstance(); } } /** * .substrait.Expression.WindowFunction window_function = 5; */ public Builder setWindowFunction(io.substrait.proto.Expression.WindowFunction value) { if (windowFunctionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rexType_ = value; onChanged(); } else { windowFunctionBuilder_.setMessage(value); } rexTypeCase_ = 5; return this; } /** * .substrait.Expression.WindowFunction window_function = 5; */ public Builder setWindowFunction( io.substrait.proto.Expression.WindowFunction.Builder builderForValue) { if (windowFunctionBuilder_ == null) { rexType_ = builderForValue.build(); onChanged(); } else { windowFunctionBuilder_.setMessage(builderForValue.build()); } rexTypeCase_ = 5; return this; } /** * .substrait.Expression.WindowFunction window_function = 5; */ public Builder mergeWindowFunction(io.substrait.proto.Expression.WindowFunction value) { if (windowFunctionBuilder_ == null) { if (rexTypeCase_ == 5 && rexType_ != io.substrait.proto.Expression.WindowFunction.getDefaultInstance()) { rexType_ = io.substrait.proto.Expression.WindowFunction.newBuilder((io.substrait.proto.Expression.WindowFunction) rexType_) .mergeFrom(value).buildPartial(); } else { rexType_ = value; } onChanged(); } else { if (rexTypeCase_ == 5) { windowFunctionBuilder_.mergeFrom(value); } else { windowFunctionBuilder_.setMessage(value); } } rexTypeCase_ = 5; return this; } /** * .substrait.Expression.WindowFunction window_function = 5; */ public Builder clearWindowFunction() { if (windowFunctionBuilder_ == null) { if (rexTypeCase_ == 5) { rexTypeCase_ = 0; rexType_ = null; onChanged(); } } else { if (rexTypeCase_ == 5) { rexTypeCase_ = 0; rexType_ = null; } windowFunctionBuilder_.clear(); } return this; } /** * .substrait.Expression.WindowFunction window_function = 5; */ public io.substrait.proto.Expression.WindowFunction.Builder getWindowFunctionBuilder() { return getWindowFunctionFieldBuilder().getBuilder(); } /** * .substrait.Expression.WindowFunction window_function = 5; */ @java.lang.Override public io.substrait.proto.Expression.WindowFunctionOrBuilder getWindowFunctionOrBuilder() { if ((rexTypeCase_ == 5) && (windowFunctionBuilder_ != null)) { return windowFunctionBuilder_.getMessageOrBuilder(); } else { if (rexTypeCase_ == 5) { return (io.substrait.proto.Expression.WindowFunction) rexType_; } return io.substrait.proto.Expression.WindowFunction.getDefaultInstance(); } } /** * .substrait.Expression.WindowFunction window_function = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.WindowFunction, io.substrait.proto.Expression.WindowFunction.Builder, io.substrait.proto.Expression.WindowFunctionOrBuilder> getWindowFunctionFieldBuilder() { if (windowFunctionBuilder_ == null) { if (!(rexTypeCase_ == 5)) { rexType_ = io.substrait.proto.Expression.WindowFunction.getDefaultInstance(); } windowFunctionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.WindowFunction, io.substrait.proto.Expression.WindowFunction.Builder, io.substrait.proto.Expression.WindowFunctionOrBuilder>( (io.substrait.proto.Expression.WindowFunction) rexType_, getParentForChildren(), isClean()); rexType_ = null; } rexTypeCase_ = 5; onChanged(); return windowFunctionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.IfThen, io.substrait.proto.Expression.IfThen.Builder, io.substrait.proto.Expression.IfThenOrBuilder> ifThenBuilder_; /** * .substrait.Expression.IfThen if_then = 6; * @return Whether the ifThen field is set. */ @java.lang.Override public boolean hasIfThen() { return rexTypeCase_ == 6; } /** * .substrait.Expression.IfThen if_then = 6; * @return The ifThen. */ @java.lang.Override public io.substrait.proto.Expression.IfThen getIfThen() { if (ifThenBuilder_ == null) { if (rexTypeCase_ == 6) { return (io.substrait.proto.Expression.IfThen) rexType_; } return io.substrait.proto.Expression.IfThen.getDefaultInstance(); } else { if (rexTypeCase_ == 6) { return ifThenBuilder_.getMessage(); } return io.substrait.proto.Expression.IfThen.getDefaultInstance(); } } /** * .substrait.Expression.IfThen if_then = 6; */ public Builder setIfThen(io.substrait.proto.Expression.IfThen value) { if (ifThenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rexType_ = value; onChanged(); } else { ifThenBuilder_.setMessage(value); } rexTypeCase_ = 6; return this; } /** * .substrait.Expression.IfThen if_then = 6; */ public Builder setIfThen( io.substrait.proto.Expression.IfThen.Builder builderForValue) { if (ifThenBuilder_ == null) { rexType_ = builderForValue.build(); onChanged(); } else { ifThenBuilder_.setMessage(builderForValue.build()); } rexTypeCase_ = 6; return this; } /** * .substrait.Expression.IfThen if_then = 6; */ public Builder mergeIfThen(io.substrait.proto.Expression.IfThen value) { if (ifThenBuilder_ == null) { if (rexTypeCase_ == 6 && rexType_ != io.substrait.proto.Expression.IfThen.getDefaultInstance()) { rexType_ = io.substrait.proto.Expression.IfThen.newBuilder((io.substrait.proto.Expression.IfThen) rexType_) .mergeFrom(value).buildPartial(); } else { rexType_ = value; } onChanged(); } else { if (rexTypeCase_ == 6) { ifThenBuilder_.mergeFrom(value); } else { ifThenBuilder_.setMessage(value); } } rexTypeCase_ = 6; return this; } /** * .substrait.Expression.IfThen if_then = 6; */ public Builder clearIfThen() { if (ifThenBuilder_ == null) { if (rexTypeCase_ == 6) { rexTypeCase_ = 0; rexType_ = null; onChanged(); } } else { if (rexTypeCase_ == 6) { rexTypeCase_ = 0; rexType_ = null; } ifThenBuilder_.clear(); } return this; } /** * .substrait.Expression.IfThen if_then = 6; */ public io.substrait.proto.Expression.IfThen.Builder getIfThenBuilder() { return getIfThenFieldBuilder().getBuilder(); } /** * .substrait.Expression.IfThen if_then = 6; */ @java.lang.Override public io.substrait.proto.Expression.IfThenOrBuilder getIfThenOrBuilder() { if ((rexTypeCase_ == 6) && (ifThenBuilder_ != null)) { return ifThenBuilder_.getMessageOrBuilder(); } else { if (rexTypeCase_ == 6) { return (io.substrait.proto.Expression.IfThen) rexType_; } return io.substrait.proto.Expression.IfThen.getDefaultInstance(); } } /** * .substrait.Expression.IfThen if_then = 6; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.IfThen, io.substrait.proto.Expression.IfThen.Builder, io.substrait.proto.Expression.IfThenOrBuilder> getIfThenFieldBuilder() { if (ifThenBuilder_ == null) { if (!(rexTypeCase_ == 6)) { rexType_ = io.substrait.proto.Expression.IfThen.getDefaultInstance(); } ifThenBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.IfThen, io.substrait.proto.Expression.IfThen.Builder, io.substrait.proto.Expression.IfThenOrBuilder>( (io.substrait.proto.Expression.IfThen) rexType_, getParentForChildren(), isClean()); rexType_ = null; } rexTypeCase_ = 6; onChanged(); return ifThenBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.SwitchExpression, io.substrait.proto.Expression.SwitchExpression.Builder, io.substrait.proto.Expression.SwitchExpressionOrBuilder> switchExpressionBuilder_; /** * .substrait.Expression.SwitchExpression switch_expression = 7; * @return Whether the switchExpression field is set. */ @java.lang.Override public boolean hasSwitchExpression() { return rexTypeCase_ == 7; } /** * .substrait.Expression.SwitchExpression switch_expression = 7; * @return The switchExpression. */ @java.lang.Override public io.substrait.proto.Expression.SwitchExpression getSwitchExpression() { if (switchExpressionBuilder_ == null) { if (rexTypeCase_ == 7) { return (io.substrait.proto.Expression.SwitchExpression) rexType_; } return io.substrait.proto.Expression.SwitchExpression.getDefaultInstance(); } else { if (rexTypeCase_ == 7) { return switchExpressionBuilder_.getMessage(); } return io.substrait.proto.Expression.SwitchExpression.getDefaultInstance(); } } /** * .substrait.Expression.SwitchExpression switch_expression = 7; */ public Builder setSwitchExpression(io.substrait.proto.Expression.SwitchExpression value) { if (switchExpressionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rexType_ = value; onChanged(); } else { switchExpressionBuilder_.setMessage(value); } rexTypeCase_ = 7; return this; } /** * .substrait.Expression.SwitchExpression switch_expression = 7; */ public Builder setSwitchExpression( io.substrait.proto.Expression.SwitchExpression.Builder builderForValue) { if (switchExpressionBuilder_ == null) { rexType_ = builderForValue.build(); onChanged(); } else { switchExpressionBuilder_.setMessage(builderForValue.build()); } rexTypeCase_ = 7; return this; } /** * .substrait.Expression.SwitchExpression switch_expression = 7; */ public Builder mergeSwitchExpression(io.substrait.proto.Expression.SwitchExpression value) { if (switchExpressionBuilder_ == null) { if (rexTypeCase_ == 7 && rexType_ != io.substrait.proto.Expression.SwitchExpression.getDefaultInstance()) { rexType_ = io.substrait.proto.Expression.SwitchExpression.newBuilder((io.substrait.proto.Expression.SwitchExpression) rexType_) .mergeFrom(value).buildPartial(); } else { rexType_ = value; } onChanged(); } else { if (rexTypeCase_ == 7) { switchExpressionBuilder_.mergeFrom(value); } else { switchExpressionBuilder_.setMessage(value); } } rexTypeCase_ = 7; return this; } /** * .substrait.Expression.SwitchExpression switch_expression = 7; */ public Builder clearSwitchExpression() { if (switchExpressionBuilder_ == null) { if (rexTypeCase_ == 7) { rexTypeCase_ = 0; rexType_ = null; onChanged(); } } else { if (rexTypeCase_ == 7) { rexTypeCase_ = 0; rexType_ = null; } switchExpressionBuilder_.clear(); } return this; } /** * .substrait.Expression.SwitchExpression switch_expression = 7; */ public io.substrait.proto.Expression.SwitchExpression.Builder getSwitchExpressionBuilder() { return getSwitchExpressionFieldBuilder().getBuilder(); } /** * .substrait.Expression.SwitchExpression switch_expression = 7; */ @java.lang.Override public io.substrait.proto.Expression.SwitchExpressionOrBuilder getSwitchExpressionOrBuilder() { if ((rexTypeCase_ == 7) && (switchExpressionBuilder_ != null)) { return switchExpressionBuilder_.getMessageOrBuilder(); } else { if (rexTypeCase_ == 7) { return (io.substrait.proto.Expression.SwitchExpression) rexType_; } return io.substrait.proto.Expression.SwitchExpression.getDefaultInstance(); } } /** * .substrait.Expression.SwitchExpression switch_expression = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.SwitchExpression, io.substrait.proto.Expression.SwitchExpression.Builder, io.substrait.proto.Expression.SwitchExpressionOrBuilder> getSwitchExpressionFieldBuilder() { if (switchExpressionBuilder_ == null) { if (!(rexTypeCase_ == 7)) { rexType_ = io.substrait.proto.Expression.SwitchExpression.getDefaultInstance(); } switchExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.SwitchExpression, io.substrait.proto.Expression.SwitchExpression.Builder, io.substrait.proto.Expression.SwitchExpressionOrBuilder>( (io.substrait.proto.Expression.SwitchExpression) rexType_, getParentForChildren(), isClean()); rexType_ = null; } rexTypeCase_ = 7; onChanged(); return switchExpressionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.SingularOrList, io.substrait.proto.Expression.SingularOrList.Builder, io.substrait.proto.Expression.SingularOrListOrBuilder> singularOrListBuilder_; /** * .substrait.Expression.SingularOrList singular_or_list = 8; * @return Whether the singularOrList field is set. */ @java.lang.Override public boolean hasSingularOrList() { return rexTypeCase_ == 8; } /** * .substrait.Expression.SingularOrList singular_or_list = 8; * @return The singularOrList. */ @java.lang.Override public io.substrait.proto.Expression.SingularOrList getSingularOrList() { if (singularOrListBuilder_ == null) { if (rexTypeCase_ == 8) { return (io.substrait.proto.Expression.SingularOrList) rexType_; } return io.substrait.proto.Expression.SingularOrList.getDefaultInstance(); } else { if (rexTypeCase_ == 8) { return singularOrListBuilder_.getMessage(); } return io.substrait.proto.Expression.SingularOrList.getDefaultInstance(); } } /** * .substrait.Expression.SingularOrList singular_or_list = 8; */ public Builder setSingularOrList(io.substrait.proto.Expression.SingularOrList value) { if (singularOrListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rexType_ = value; onChanged(); } else { singularOrListBuilder_.setMessage(value); } rexTypeCase_ = 8; return this; } /** * .substrait.Expression.SingularOrList singular_or_list = 8; */ public Builder setSingularOrList( io.substrait.proto.Expression.SingularOrList.Builder builderForValue) { if (singularOrListBuilder_ == null) { rexType_ = builderForValue.build(); onChanged(); } else { singularOrListBuilder_.setMessage(builderForValue.build()); } rexTypeCase_ = 8; return this; } /** * .substrait.Expression.SingularOrList singular_or_list = 8; */ public Builder mergeSingularOrList(io.substrait.proto.Expression.SingularOrList value) { if (singularOrListBuilder_ == null) { if (rexTypeCase_ == 8 && rexType_ != io.substrait.proto.Expression.SingularOrList.getDefaultInstance()) { rexType_ = io.substrait.proto.Expression.SingularOrList.newBuilder((io.substrait.proto.Expression.SingularOrList) rexType_) .mergeFrom(value).buildPartial(); } else { rexType_ = value; } onChanged(); } else { if (rexTypeCase_ == 8) { singularOrListBuilder_.mergeFrom(value); } else { singularOrListBuilder_.setMessage(value); } } rexTypeCase_ = 8; return this; } /** * .substrait.Expression.SingularOrList singular_or_list = 8; */ public Builder clearSingularOrList() { if (singularOrListBuilder_ == null) { if (rexTypeCase_ == 8) { rexTypeCase_ = 0; rexType_ = null; onChanged(); } } else { if (rexTypeCase_ == 8) { rexTypeCase_ = 0; rexType_ = null; } singularOrListBuilder_.clear(); } return this; } /** * .substrait.Expression.SingularOrList singular_or_list = 8; */ public io.substrait.proto.Expression.SingularOrList.Builder getSingularOrListBuilder() { return getSingularOrListFieldBuilder().getBuilder(); } /** * .substrait.Expression.SingularOrList singular_or_list = 8; */ @java.lang.Override public io.substrait.proto.Expression.SingularOrListOrBuilder getSingularOrListOrBuilder() { if ((rexTypeCase_ == 8) && (singularOrListBuilder_ != null)) { return singularOrListBuilder_.getMessageOrBuilder(); } else { if (rexTypeCase_ == 8) { return (io.substrait.proto.Expression.SingularOrList) rexType_; } return io.substrait.proto.Expression.SingularOrList.getDefaultInstance(); } } /** * .substrait.Expression.SingularOrList singular_or_list = 8; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.SingularOrList, io.substrait.proto.Expression.SingularOrList.Builder, io.substrait.proto.Expression.SingularOrListOrBuilder> getSingularOrListFieldBuilder() { if (singularOrListBuilder_ == null) { if (!(rexTypeCase_ == 8)) { rexType_ = io.substrait.proto.Expression.SingularOrList.getDefaultInstance(); } singularOrListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.SingularOrList, io.substrait.proto.Expression.SingularOrList.Builder, io.substrait.proto.Expression.SingularOrListOrBuilder>( (io.substrait.proto.Expression.SingularOrList) rexType_, getParentForChildren(), isClean()); rexType_ = null; } rexTypeCase_ = 8; onChanged(); return singularOrListBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MultiOrList, io.substrait.proto.Expression.MultiOrList.Builder, io.substrait.proto.Expression.MultiOrListOrBuilder> multiOrListBuilder_; /** * .substrait.Expression.MultiOrList multi_or_list = 9; * @return Whether the multiOrList field is set. */ @java.lang.Override public boolean hasMultiOrList() { return rexTypeCase_ == 9; } /** * .substrait.Expression.MultiOrList multi_or_list = 9; * @return The multiOrList. */ @java.lang.Override public io.substrait.proto.Expression.MultiOrList getMultiOrList() { if (multiOrListBuilder_ == null) { if (rexTypeCase_ == 9) { return (io.substrait.proto.Expression.MultiOrList) rexType_; } return io.substrait.proto.Expression.MultiOrList.getDefaultInstance(); } else { if (rexTypeCase_ == 9) { return multiOrListBuilder_.getMessage(); } return io.substrait.proto.Expression.MultiOrList.getDefaultInstance(); } } /** * .substrait.Expression.MultiOrList multi_or_list = 9; */ public Builder setMultiOrList(io.substrait.proto.Expression.MultiOrList value) { if (multiOrListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rexType_ = value; onChanged(); } else { multiOrListBuilder_.setMessage(value); } rexTypeCase_ = 9; return this; } /** * .substrait.Expression.MultiOrList multi_or_list = 9; */ public Builder setMultiOrList( io.substrait.proto.Expression.MultiOrList.Builder builderForValue) { if (multiOrListBuilder_ == null) { rexType_ = builderForValue.build(); onChanged(); } else { multiOrListBuilder_.setMessage(builderForValue.build()); } rexTypeCase_ = 9; return this; } /** * .substrait.Expression.MultiOrList multi_or_list = 9; */ public Builder mergeMultiOrList(io.substrait.proto.Expression.MultiOrList value) { if (multiOrListBuilder_ == null) { if (rexTypeCase_ == 9 && rexType_ != io.substrait.proto.Expression.MultiOrList.getDefaultInstance()) { rexType_ = io.substrait.proto.Expression.MultiOrList.newBuilder((io.substrait.proto.Expression.MultiOrList) rexType_) .mergeFrom(value).buildPartial(); } else { rexType_ = value; } onChanged(); } else { if (rexTypeCase_ == 9) { multiOrListBuilder_.mergeFrom(value); } else { multiOrListBuilder_.setMessage(value); } } rexTypeCase_ = 9; return this; } /** * .substrait.Expression.MultiOrList multi_or_list = 9; */ public Builder clearMultiOrList() { if (multiOrListBuilder_ == null) { if (rexTypeCase_ == 9) { rexTypeCase_ = 0; rexType_ = null; onChanged(); } } else { if (rexTypeCase_ == 9) { rexTypeCase_ = 0; rexType_ = null; } multiOrListBuilder_.clear(); } return this; } /** * .substrait.Expression.MultiOrList multi_or_list = 9; */ public io.substrait.proto.Expression.MultiOrList.Builder getMultiOrListBuilder() { return getMultiOrListFieldBuilder().getBuilder(); } /** * .substrait.Expression.MultiOrList multi_or_list = 9; */ @java.lang.Override public io.substrait.proto.Expression.MultiOrListOrBuilder getMultiOrListOrBuilder() { if ((rexTypeCase_ == 9) && (multiOrListBuilder_ != null)) { return multiOrListBuilder_.getMessageOrBuilder(); } else { if (rexTypeCase_ == 9) { return (io.substrait.proto.Expression.MultiOrList) rexType_; } return io.substrait.proto.Expression.MultiOrList.getDefaultInstance(); } } /** * .substrait.Expression.MultiOrList multi_or_list = 9; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MultiOrList, io.substrait.proto.Expression.MultiOrList.Builder, io.substrait.proto.Expression.MultiOrListOrBuilder> getMultiOrListFieldBuilder() { if (multiOrListBuilder_ == null) { if (!(rexTypeCase_ == 9)) { rexType_ = io.substrait.proto.Expression.MultiOrList.getDefaultInstance(); } multiOrListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.MultiOrList, io.substrait.proto.Expression.MultiOrList.Builder, io.substrait.proto.Expression.MultiOrListOrBuilder>( (io.substrait.proto.Expression.MultiOrList) rexType_, getParentForChildren(), isClean()); rexType_ = null; } rexTypeCase_ = 9; onChanged(); return multiOrListBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Cast, io.substrait.proto.Expression.Cast.Builder, io.substrait.proto.Expression.CastOrBuilder> castBuilder_; /** * .substrait.Expression.Cast cast = 11; * @return Whether the cast field is set. */ @java.lang.Override public boolean hasCast() { return rexTypeCase_ == 11; } /** * .substrait.Expression.Cast cast = 11; * @return The cast. */ @java.lang.Override public io.substrait.proto.Expression.Cast getCast() { if (castBuilder_ == null) { if (rexTypeCase_ == 11) { return (io.substrait.proto.Expression.Cast) rexType_; } return io.substrait.proto.Expression.Cast.getDefaultInstance(); } else { if (rexTypeCase_ == 11) { return castBuilder_.getMessage(); } return io.substrait.proto.Expression.Cast.getDefaultInstance(); } } /** * .substrait.Expression.Cast cast = 11; */ public Builder setCast(io.substrait.proto.Expression.Cast value) { if (castBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rexType_ = value; onChanged(); } else { castBuilder_.setMessage(value); } rexTypeCase_ = 11; return this; } /** * .substrait.Expression.Cast cast = 11; */ public Builder setCast( io.substrait.proto.Expression.Cast.Builder builderForValue) { if (castBuilder_ == null) { rexType_ = builderForValue.build(); onChanged(); } else { castBuilder_.setMessage(builderForValue.build()); } rexTypeCase_ = 11; return this; } /** * .substrait.Expression.Cast cast = 11; */ public Builder mergeCast(io.substrait.proto.Expression.Cast value) { if (castBuilder_ == null) { if (rexTypeCase_ == 11 && rexType_ != io.substrait.proto.Expression.Cast.getDefaultInstance()) { rexType_ = io.substrait.proto.Expression.Cast.newBuilder((io.substrait.proto.Expression.Cast) rexType_) .mergeFrom(value).buildPartial(); } else { rexType_ = value; } onChanged(); } else { if (rexTypeCase_ == 11) { castBuilder_.mergeFrom(value); } else { castBuilder_.setMessage(value); } } rexTypeCase_ = 11; return this; } /** * .substrait.Expression.Cast cast = 11; */ public Builder clearCast() { if (castBuilder_ == null) { if (rexTypeCase_ == 11) { rexTypeCase_ = 0; rexType_ = null; onChanged(); } } else { if (rexTypeCase_ == 11) { rexTypeCase_ = 0; rexType_ = null; } castBuilder_.clear(); } return this; } /** * .substrait.Expression.Cast cast = 11; */ public io.substrait.proto.Expression.Cast.Builder getCastBuilder() { return getCastFieldBuilder().getBuilder(); } /** * .substrait.Expression.Cast cast = 11; */ @java.lang.Override public io.substrait.proto.Expression.CastOrBuilder getCastOrBuilder() { if ((rexTypeCase_ == 11) && (castBuilder_ != null)) { return castBuilder_.getMessageOrBuilder(); } else { if (rexTypeCase_ == 11) { return (io.substrait.proto.Expression.Cast) rexType_; } return io.substrait.proto.Expression.Cast.getDefaultInstance(); } } /** * .substrait.Expression.Cast cast = 11; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Cast, io.substrait.proto.Expression.Cast.Builder, io.substrait.proto.Expression.CastOrBuilder> getCastFieldBuilder() { if (castBuilder_ == null) { if (!(rexTypeCase_ == 11)) { rexType_ = io.substrait.proto.Expression.Cast.getDefaultInstance(); } castBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Cast, io.substrait.proto.Expression.Cast.Builder, io.substrait.proto.Expression.CastOrBuilder>( (io.substrait.proto.Expression.Cast) rexType_, getParentForChildren(), isClean()); rexType_ = null; } rexTypeCase_ = 11; onChanged(); return castBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Subquery, io.substrait.proto.Expression.Subquery.Builder, io.substrait.proto.Expression.SubqueryOrBuilder> subqueryBuilder_; /** * .substrait.Expression.Subquery subquery = 12; * @return Whether the subquery field is set. */ @java.lang.Override public boolean hasSubquery() { return rexTypeCase_ == 12; } /** * .substrait.Expression.Subquery subquery = 12; * @return The subquery. */ @java.lang.Override public io.substrait.proto.Expression.Subquery getSubquery() { if (subqueryBuilder_ == null) { if (rexTypeCase_ == 12) { return (io.substrait.proto.Expression.Subquery) rexType_; } return io.substrait.proto.Expression.Subquery.getDefaultInstance(); } else { if (rexTypeCase_ == 12) { return subqueryBuilder_.getMessage(); } return io.substrait.proto.Expression.Subquery.getDefaultInstance(); } } /** * .substrait.Expression.Subquery subquery = 12; */ public Builder setSubquery(io.substrait.proto.Expression.Subquery value) { if (subqueryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rexType_ = value; onChanged(); } else { subqueryBuilder_.setMessage(value); } rexTypeCase_ = 12; return this; } /** * .substrait.Expression.Subquery subquery = 12; */ public Builder setSubquery( io.substrait.proto.Expression.Subquery.Builder builderForValue) { if (subqueryBuilder_ == null) { rexType_ = builderForValue.build(); onChanged(); } else { subqueryBuilder_.setMessage(builderForValue.build()); } rexTypeCase_ = 12; return this; } /** * .substrait.Expression.Subquery subquery = 12; */ public Builder mergeSubquery(io.substrait.proto.Expression.Subquery value) { if (subqueryBuilder_ == null) { if (rexTypeCase_ == 12 && rexType_ != io.substrait.proto.Expression.Subquery.getDefaultInstance()) { rexType_ = io.substrait.proto.Expression.Subquery.newBuilder((io.substrait.proto.Expression.Subquery) rexType_) .mergeFrom(value).buildPartial(); } else { rexType_ = value; } onChanged(); } else { if (rexTypeCase_ == 12) { subqueryBuilder_.mergeFrom(value); } else { subqueryBuilder_.setMessage(value); } } rexTypeCase_ = 12; return this; } /** * .substrait.Expression.Subquery subquery = 12; */ public Builder clearSubquery() { if (subqueryBuilder_ == null) { if (rexTypeCase_ == 12) { rexTypeCase_ = 0; rexType_ = null; onChanged(); } } else { if (rexTypeCase_ == 12) { rexTypeCase_ = 0; rexType_ = null; } subqueryBuilder_.clear(); } return this; } /** * .substrait.Expression.Subquery subquery = 12; */ public io.substrait.proto.Expression.Subquery.Builder getSubqueryBuilder() { return getSubqueryFieldBuilder().getBuilder(); } /** * .substrait.Expression.Subquery subquery = 12; */ @java.lang.Override public io.substrait.proto.Expression.SubqueryOrBuilder getSubqueryOrBuilder() { if ((rexTypeCase_ == 12) && (subqueryBuilder_ != null)) { return subqueryBuilder_.getMessageOrBuilder(); } else { if (rexTypeCase_ == 12) { return (io.substrait.proto.Expression.Subquery) rexType_; } return io.substrait.proto.Expression.Subquery.getDefaultInstance(); } } /** * .substrait.Expression.Subquery subquery = 12; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Subquery, io.substrait.proto.Expression.Subquery.Builder, io.substrait.proto.Expression.SubqueryOrBuilder> getSubqueryFieldBuilder() { if (subqueryBuilder_ == null) { if (!(rexTypeCase_ == 12)) { rexType_ = io.substrait.proto.Expression.Subquery.getDefaultInstance(); } subqueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Subquery, io.substrait.proto.Expression.Subquery.Builder, io.substrait.proto.Expression.SubqueryOrBuilder>( (io.substrait.proto.Expression.Subquery) rexType_, getParentForChildren(), isClean()); rexType_ = null; } rexTypeCase_ = 12; onChanged(); return subqueryBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Nested, io.substrait.proto.Expression.Nested.Builder, io.substrait.proto.Expression.NestedOrBuilder> nestedBuilder_; /** * .substrait.Expression.Nested nested = 13; * @return Whether the nested field is set. */ @java.lang.Override public boolean hasNested() { return rexTypeCase_ == 13; } /** * .substrait.Expression.Nested nested = 13; * @return The nested. */ @java.lang.Override public io.substrait.proto.Expression.Nested getNested() { if (nestedBuilder_ == null) { if (rexTypeCase_ == 13) { return (io.substrait.proto.Expression.Nested) rexType_; } return io.substrait.proto.Expression.Nested.getDefaultInstance(); } else { if (rexTypeCase_ == 13) { return nestedBuilder_.getMessage(); } return io.substrait.proto.Expression.Nested.getDefaultInstance(); } } /** * .substrait.Expression.Nested nested = 13; */ public Builder setNested(io.substrait.proto.Expression.Nested value) { if (nestedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rexType_ = value; onChanged(); } else { nestedBuilder_.setMessage(value); } rexTypeCase_ = 13; return this; } /** * .substrait.Expression.Nested nested = 13; */ public Builder setNested( io.substrait.proto.Expression.Nested.Builder builderForValue) { if (nestedBuilder_ == null) { rexType_ = builderForValue.build(); onChanged(); } else { nestedBuilder_.setMessage(builderForValue.build()); } rexTypeCase_ = 13; return this; } /** * .substrait.Expression.Nested nested = 13; */ public Builder mergeNested(io.substrait.proto.Expression.Nested value) { if (nestedBuilder_ == null) { if (rexTypeCase_ == 13 && rexType_ != io.substrait.proto.Expression.Nested.getDefaultInstance()) { rexType_ = io.substrait.proto.Expression.Nested.newBuilder((io.substrait.proto.Expression.Nested) rexType_) .mergeFrom(value).buildPartial(); } else { rexType_ = value; } onChanged(); } else { if (rexTypeCase_ == 13) { nestedBuilder_.mergeFrom(value); } else { nestedBuilder_.setMessage(value); } } rexTypeCase_ = 13; return this; } /** * .substrait.Expression.Nested nested = 13; */ public Builder clearNested() { if (nestedBuilder_ == null) { if (rexTypeCase_ == 13) { rexTypeCase_ = 0; rexType_ = null; onChanged(); } } else { if (rexTypeCase_ == 13) { rexTypeCase_ = 0; rexType_ = null; } nestedBuilder_.clear(); } return this; } /** * .substrait.Expression.Nested nested = 13; */ public io.substrait.proto.Expression.Nested.Builder getNestedBuilder() { return getNestedFieldBuilder().getBuilder(); } /** * .substrait.Expression.Nested nested = 13; */ @java.lang.Override public io.substrait.proto.Expression.NestedOrBuilder getNestedOrBuilder() { if ((rexTypeCase_ == 13) && (nestedBuilder_ != null)) { return nestedBuilder_.getMessageOrBuilder(); } else { if (rexTypeCase_ == 13) { return (io.substrait.proto.Expression.Nested) rexType_; } return io.substrait.proto.Expression.Nested.getDefaultInstance(); } } /** * .substrait.Expression.Nested nested = 13; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Nested, io.substrait.proto.Expression.Nested.Builder, io.substrait.proto.Expression.NestedOrBuilder> getNestedFieldBuilder() { if (nestedBuilder_ == null) { if (!(rexTypeCase_ == 13)) { rexType_ = io.substrait.proto.Expression.Nested.getDefaultInstance(); } nestedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Nested, io.substrait.proto.Expression.Nested.Builder, io.substrait.proto.Expression.NestedOrBuilder>( (io.substrait.proto.Expression.Nested) rexType_, getParentForChildren(), isClean()); rexType_ = null; } rexTypeCase_ = 13; onChanged(); return nestedBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Enum, io.substrait.proto.Expression.Enum.Builder, io.substrait.proto.Expression.EnumOrBuilder> enumBuilder_; /** *
     * deprecated: enum literals are only sensible in the context of
     * function arguments, for which FunctionArgument should now be
     * used
     * 
* * .substrait.Expression.Enum enum = 10 [deprecated = true]; * @deprecated substrait.Expression.enum is deprecated. * See substrait/algebra.proto;l=835 * @return Whether the enum field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasEnum() { return rexTypeCase_ == 10; } /** *
     * deprecated: enum literals are only sensible in the context of
     * function arguments, for which FunctionArgument should now be
     * used
     * 
* * .substrait.Expression.Enum enum = 10 [deprecated = true]; * @deprecated substrait.Expression.enum is deprecated. * See substrait/algebra.proto;l=835 * @return The enum. */ @java.lang.Override @java.lang.Deprecated public io.substrait.proto.Expression.Enum getEnum() { if (enumBuilder_ == null) { if (rexTypeCase_ == 10) { return (io.substrait.proto.Expression.Enum) rexType_; } return io.substrait.proto.Expression.Enum.getDefaultInstance(); } else { if (rexTypeCase_ == 10) { return enumBuilder_.getMessage(); } return io.substrait.proto.Expression.Enum.getDefaultInstance(); } } /** *
     * deprecated: enum literals are only sensible in the context of
     * function arguments, for which FunctionArgument should now be
     * used
     * 
* * .substrait.Expression.Enum enum = 10 [deprecated = true]; */ @java.lang.Deprecated public Builder setEnum(io.substrait.proto.Expression.Enum value) { if (enumBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rexType_ = value; onChanged(); } else { enumBuilder_.setMessage(value); } rexTypeCase_ = 10; return this; } /** *
     * deprecated: enum literals are only sensible in the context of
     * function arguments, for which FunctionArgument should now be
     * used
     * 
* * .substrait.Expression.Enum enum = 10 [deprecated = true]; */ @java.lang.Deprecated public Builder setEnum( io.substrait.proto.Expression.Enum.Builder builderForValue) { if (enumBuilder_ == null) { rexType_ = builderForValue.build(); onChanged(); } else { enumBuilder_.setMessage(builderForValue.build()); } rexTypeCase_ = 10; return this; } /** *
     * deprecated: enum literals are only sensible in the context of
     * function arguments, for which FunctionArgument should now be
     * used
     * 
* * .substrait.Expression.Enum enum = 10 [deprecated = true]; */ @java.lang.Deprecated public Builder mergeEnum(io.substrait.proto.Expression.Enum value) { if (enumBuilder_ == null) { if (rexTypeCase_ == 10 && rexType_ != io.substrait.proto.Expression.Enum.getDefaultInstance()) { rexType_ = io.substrait.proto.Expression.Enum.newBuilder((io.substrait.proto.Expression.Enum) rexType_) .mergeFrom(value).buildPartial(); } else { rexType_ = value; } onChanged(); } else { if (rexTypeCase_ == 10) { enumBuilder_.mergeFrom(value); } else { enumBuilder_.setMessage(value); } } rexTypeCase_ = 10; return this; } /** *
     * deprecated: enum literals are only sensible in the context of
     * function arguments, for which FunctionArgument should now be
     * used
     * 
* * .substrait.Expression.Enum enum = 10 [deprecated = true]; */ @java.lang.Deprecated public Builder clearEnum() { if (enumBuilder_ == null) { if (rexTypeCase_ == 10) { rexTypeCase_ = 0; rexType_ = null; onChanged(); } } else { if (rexTypeCase_ == 10) { rexTypeCase_ = 0; rexType_ = null; } enumBuilder_.clear(); } return this; } /** *
     * deprecated: enum literals are only sensible in the context of
     * function arguments, for which FunctionArgument should now be
     * used
     * 
* * .substrait.Expression.Enum enum = 10 [deprecated = true]; */ @java.lang.Deprecated public io.substrait.proto.Expression.Enum.Builder getEnumBuilder() { return getEnumFieldBuilder().getBuilder(); } /** *
     * deprecated: enum literals are only sensible in the context of
     * function arguments, for which FunctionArgument should now be
     * used
     * 
* * .substrait.Expression.Enum enum = 10 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public io.substrait.proto.Expression.EnumOrBuilder getEnumOrBuilder() { if ((rexTypeCase_ == 10) && (enumBuilder_ != null)) { return enumBuilder_.getMessageOrBuilder(); } else { if (rexTypeCase_ == 10) { return (io.substrait.proto.Expression.Enum) rexType_; } return io.substrait.proto.Expression.Enum.getDefaultInstance(); } } /** *
     * deprecated: enum literals are only sensible in the context of
     * function arguments, for which FunctionArgument should now be
     * used
     * 
* * .substrait.Expression.Enum enum = 10 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Enum, io.substrait.proto.Expression.Enum.Builder, io.substrait.proto.Expression.EnumOrBuilder> getEnumFieldBuilder() { if (enumBuilder_ == null) { if (!(rexTypeCase_ == 10)) { rexType_ = io.substrait.proto.Expression.Enum.getDefaultInstance(); } enumBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression.Enum, io.substrait.proto.Expression.Enum.Builder, io.substrait.proto.Expression.EnumOrBuilder>( (io.substrait.proto.Expression.Enum) rexType_, getParentForChildren(), isClean()); rexType_ = null; } rexTypeCase_ = 10; onChanged(); return enumBuilder_; } @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) } // @@protoc_insertion_point(class_scope:substrait.Expression) private static final io.substrait.proto.Expression DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Expression(); } public static io.substrait.proto.Expression getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Expression 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 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy