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

io.substrait.proto.ExpressionReference 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/extended_expression.proto

// Protobuf Java Version: 3.25.5
package io.substrait.proto;

/**
 * Protobuf type {@code substrait.ExpressionReference}
 */
public final class ExpressionReference extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:substrait.ExpressionReference)
    ExpressionReferenceOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ExpressionReference.newBuilder() to construct.
  private ExpressionReference(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ExpressionReference() {
    outputNames_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new ExpressionReference();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.substrait.proto.ExtendedExpressionOuterClass.internal_static_substrait_ExpressionReference_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.substrait.proto.ExtendedExpressionOuterClass.internal_static_substrait_ExpressionReference_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.substrait.proto.ExpressionReference.class, io.substrait.proto.ExpressionReference.Builder.class);
  }

  private int exprTypeCase_ = 0;
  @SuppressWarnings("serial")
  private java.lang.Object exprType_;
  public enum ExprTypeCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    EXPRESSION(1),
    MEASURE(2),
    EXPRTYPE_NOT_SET(0);
    private final int value;
    private ExprTypeCase(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 ExprTypeCase valueOf(int value) {
      return forNumber(value);
    }

    public static ExprTypeCase forNumber(int value) {
      switch (value) {
        case 1: return EXPRESSION;
        case 2: return MEASURE;
        case 0: return EXPRTYPE_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public ExprTypeCase
  getExprTypeCase() {
    return ExprTypeCase.forNumber(
        exprTypeCase_);
  }

  public static final int EXPRESSION_FIELD_NUMBER = 1;
  /**
   * .substrait.Expression expression = 1;
   * @return Whether the expression field is set.
   */
  @java.lang.Override
  public boolean hasExpression() {
    return exprTypeCase_ == 1;
  }
  /**
   * .substrait.Expression expression = 1;
   * @return The expression.
   */
  @java.lang.Override
  public io.substrait.proto.Expression getExpression() {
    if (exprTypeCase_ == 1) {
       return (io.substrait.proto.Expression) exprType_;
    }
    return io.substrait.proto.Expression.getDefaultInstance();
  }
  /**
   * .substrait.Expression expression = 1;
   */
  @java.lang.Override
  public io.substrait.proto.ExpressionOrBuilder getExpressionOrBuilder() {
    if (exprTypeCase_ == 1) {
       return (io.substrait.proto.Expression) exprType_;
    }
    return io.substrait.proto.Expression.getDefaultInstance();
  }

  public static final int MEASURE_FIELD_NUMBER = 2;
  /**
   * .substrait.AggregateFunction measure = 2;
   * @return Whether the measure field is set.
   */
  @java.lang.Override
  public boolean hasMeasure() {
    return exprTypeCase_ == 2;
  }
  /**
   * .substrait.AggregateFunction measure = 2;
   * @return The measure.
   */
  @java.lang.Override
  public io.substrait.proto.AggregateFunction getMeasure() {
    if (exprTypeCase_ == 2) {
       return (io.substrait.proto.AggregateFunction) exprType_;
    }
    return io.substrait.proto.AggregateFunction.getDefaultInstance();
  }
  /**
   * .substrait.AggregateFunction measure = 2;
   */
  @java.lang.Override
  public io.substrait.proto.AggregateFunctionOrBuilder getMeasureOrBuilder() {
    if (exprTypeCase_ == 2) {
       return (io.substrait.proto.AggregateFunction) exprType_;
    }
    return io.substrait.proto.AggregateFunction.getDefaultInstance();
  }

  public static final int OUTPUT_NAMES_FIELD_NUMBER = 3;
  @SuppressWarnings("serial")
  private com.google.protobuf.LazyStringArrayList outputNames_ =
      com.google.protobuf.LazyStringArrayList.emptyList();
  /**
   * 
   * Field names in depth-first order
   * 
* * repeated string output_names = 3; * @return A list containing the outputNames. */ public com.google.protobuf.ProtocolStringList getOutputNamesList() { return outputNames_; } /** *
   * Field names in depth-first order
   * 
* * repeated string output_names = 3; * @return The count of outputNames. */ public int getOutputNamesCount() { return outputNames_.size(); } /** *
   * Field names in depth-first order
   * 
* * repeated string output_names = 3; * @param index The index of the element to return. * @return The outputNames at the given index. */ public java.lang.String getOutputNames(int index) { return outputNames_.get(index); } /** *
   * Field names in depth-first order
   * 
* * repeated string output_names = 3; * @param index The index of the value to return. * @return The bytes of the outputNames at the given index. */ public com.google.protobuf.ByteString getOutputNamesBytes(int index) { return outputNames_.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 (exprTypeCase_ == 1) { output.writeMessage(1, (io.substrait.proto.Expression) exprType_); } if (exprTypeCase_ == 2) { output.writeMessage(2, (io.substrait.proto.AggregateFunction) exprType_); } for (int i = 0; i < outputNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, outputNames_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (exprTypeCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (io.substrait.proto.Expression) exprType_); } if (exprTypeCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.substrait.proto.AggregateFunction) exprType_); } { int dataSize = 0; for (int i = 0; i < outputNames_.size(); i++) { dataSize += computeStringSizeNoTag(outputNames_.getRaw(i)); } size += dataSize; size += 1 * getOutputNamesList().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.ExpressionReference)) { return super.equals(obj); } io.substrait.proto.ExpressionReference other = (io.substrait.proto.ExpressionReference) obj; if (!getOutputNamesList() .equals(other.getOutputNamesList())) return false; if (!getExprTypeCase().equals(other.getExprTypeCase())) return false; switch (exprTypeCase_) { case 1: if (!getExpression() .equals(other.getExpression())) return false; break; case 2: if (!getMeasure() .equals(other.getMeasure())) 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 (getOutputNamesCount() > 0) { hash = (37 * hash) + OUTPUT_NAMES_FIELD_NUMBER; hash = (53 * hash) + getOutputNamesList().hashCode(); } switch (exprTypeCase_) { case 1: hash = (37 * hash) + EXPRESSION_FIELD_NUMBER; hash = (53 * hash) + getExpression().hashCode(); break; case 2: hash = (37 * hash) + MEASURE_FIELD_NUMBER; hash = (53 * hash) + getMeasure().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.ExpressionReference parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.ExpressionReference 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.ExpressionReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.ExpressionReference 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.ExpressionReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.ExpressionReference parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.ExpressionReference parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.ExpressionReference 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.ExpressionReference parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.ExpressionReference 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.ExpressionReference parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.ExpressionReference 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.ExpressionReference 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.ExpressionReference} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.ExpressionReference) io.substrait.proto.ExpressionReferenceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.ExtendedExpressionOuterClass.internal_static_substrait_ExpressionReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.ExtendedExpressionOuterClass.internal_static_substrait_ExpressionReference_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.ExpressionReference.class, io.substrait.proto.ExpressionReference.Builder.class); } // Construct using io.substrait.proto.ExpressionReference.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (expressionBuilder_ != null) { expressionBuilder_.clear(); } if (measureBuilder_ != null) { measureBuilder_.clear(); } outputNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); exprTypeCase_ = 0; exprType_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.ExtendedExpressionOuterClass.internal_static_substrait_ExpressionReference_descriptor; } @java.lang.Override public io.substrait.proto.ExpressionReference getDefaultInstanceForType() { return io.substrait.proto.ExpressionReference.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.ExpressionReference build() { io.substrait.proto.ExpressionReference result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.ExpressionReference buildPartial() { io.substrait.proto.ExpressionReference result = new io.substrait.proto.ExpressionReference(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(io.substrait.proto.ExpressionReference result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000004) != 0)) { outputNames_.makeImmutable(); result.outputNames_ = outputNames_; } } private void buildPartialOneofs(io.substrait.proto.ExpressionReference result) { result.exprTypeCase_ = exprTypeCase_; result.exprType_ = this.exprType_; if (exprTypeCase_ == 1 && expressionBuilder_ != null) { result.exprType_ = expressionBuilder_.build(); } if (exprTypeCase_ == 2 && measureBuilder_ != null) { result.exprType_ = measureBuilder_.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.ExpressionReference) { return mergeFrom((io.substrait.proto.ExpressionReference)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.ExpressionReference other) { if (other == io.substrait.proto.ExpressionReference.getDefaultInstance()) return this; if (!other.outputNames_.isEmpty()) { if (outputNames_.isEmpty()) { outputNames_ = other.outputNames_; bitField0_ |= 0x00000004; } else { ensureOutputNamesIsMutable(); outputNames_.addAll(other.outputNames_); } onChanged(); } switch (other.getExprTypeCase()) { case EXPRESSION: { mergeExpression(other.getExpression()); break; } case MEASURE: { mergeMeasure(other.getMeasure()); break; } case EXPRTYPE_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( getExpressionFieldBuilder().getBuilder(), extensionRegistry); exprTypeCase_ = 1; break; } // case 10 case 18: { input.readMessage( getMeasureFieldBuilder().getBuilder(), extensionRegistry); exprTypeCase_ = 2; break; } // case 18 case 26: { java.lang.String s = input.readStringRequireUtf8(); ensureOutputNamesIsMutable(); outputNames_.add(s); 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 exprTypeCase_ = 0; private java.lang.Object exprType_; public ExprTypeCase getExprTypeCase() { return ExprTypeCase.forNumber( exprTypeCase_); } public Builder clearExprType() { exprTypeCase_ = 0; exprType_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> expressionBuilder_; /** * .substrait.Expression expression = 1; * @return Whether the expression field is set. */ @java.lang.Override public boolean hasExpression() { return exprTypeCase_ == 1; } /** * .substrait.Expression expression = 1; * @return The expression. */ @java.lang.Override public io.substrait.proto.Expression getExpression() { if (expressionBuilder_ == null) { if (exprTypeCase_ == 1) { return (io.substrait.proto.Expression) exprType_; } return io.substrait.proto.Expression.getDefaultInstance(); } else { if (exprTypeCase_ == 1) { return expressionBuilder_.getMessage(); } return io.substrait.proto.Expression.getDefaultInstance(); } } /** * .substrait.Expression expression = 1; */ public Builder setExpression(io.substrait.proto.Expression value) { if (expressionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } exprType_ = value; onChanged(); } else { expressionBuilder_.setMessage(value); } exprTypeCase_ = 1; return this; } /** * .substrait.Expression expression = 1; */ public Builder setExpression( io.substrait.proto.Expression.Builder builderForValue) { if (expressionBuilder_ == null) { exprType_ = builderForValue.build(); onChanged(); } else { expressionBuilder_.setMessage(builderForValue.build()); } exprTypeCase_ = 1; return this; } /** * .substrait.Expression expression = 1; */ public Builder mergeExpression(io.substrait.proto.Expression value) { if (expressionBuilder_ == null) { if (exprTypeCase_ == 1 && exprType_ != io.substrait.proto.Expression.getDefaultInstance()) { exprType_ = io.substrait.proto.Expression.newBuilder((io.substrait.proto.Expression) exprType_) .mergeFrom(value).buildPartial(); } else { exprType_ = value; } onChanged(); } else { if (exprTypeCase_ == 1) { expressionBuilder_.mergeFrom(value); } else { expressionBuilder_.setMessage(value); } } exprTypeCase_ = 1; return this; } /** * .substrait.Expression expression = 1; */ public Builder clearExpression() { if (expressionBuilder_ == null) { if (exprTypeCase_ == 1) { exprTypeCase_ = 0; exprType_ = null; onChanged(); } } else { if (exprTypeCase_ == 1) { exprTypeCase_ = 0; exprType_ = null; } expressionBuilder_.clear(); } return this; } /** * .substrait.Expression expression = 1; */ public io.substrait.proto.Expression.Builder getExpressionBuilder() { return getExpressionFieldBuilder().getBuilder(); } /** * .substrait.Expression expression = 1; */ @java.lang.Override public io.substrait.proto.ExpressionOrBuilder getExpressionOrBuilder() { if ((exprTypeCase_ == 1) && (expressionBuilder_ != null)) { return expressionBuilder_.getMessageOrBuilder(); } else { if (exprTypeCase_ == 1) { return (io.substrait.proto.Expression) exprType_; } return io.substrait.proto.Expression.getDefaultInstance(); } } /** * .substrait.Expression expression = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> getExpressionFieldBuilder() { if (expressionBuilder_ == null) { if (!(exprTypeCase_ == 1)) { exprType_ = 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) exprType_, getParentForChildren(), isClean()); exprType_ = null; } exprTypeCase_ = 1; onChanged(); return expressionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.AggregateFunction, io.substrait.proto.AggregateFunction.Builder, io.substrait.proto.AggregateFunctionOrBuilder> measureBuilder_; /** * .substrait.AggregateFunction measure = 2; * @return Whether the measure field is set. */ @java.lang.Override public boolean hasMeasure() { return exprTypeCase_ == 2; } /** * .substrait.AggregateFunction measure = 2; * @return The measure. */ @java.lang.Override public io.substrait.proto.AggregateFunction getMeasure() { if (measureBuilder_ == null) { if (exprTypeCase_ == 2) { return (io.substrait.proto.AggregateFunction) exprType_; } return io.substrait.proto.AggregateFunction.getDefaultInstance(); } else { if (exprTypeCase_ == 2) { return measureBuilder_.getMessage(); } return io.substrait.proto.AggregateFunction.getDefaultInstance(); } } /** * .substrait.AggregateFunction measure = 2; */ public Builder setMeasure(io.substrait.proto.AggregateFunction value) { if (measureBuilder_ == null) { if (value == null) { throw new NullPointerException(); } exprType_ = value; onChanged(); } else { measureBuilder_.setMessage(value); } exprTypeCase_ = 2; return this; } /** * .substrait.AggregateFunction measure = 2; */ public Builder setMeasure( io.substrait.proto.AggregateFunction.Builder builderForValue) { if (measureBuilder_ == null) { exprType_ = builderForValue.build(); onChanged(); } else { measureBuilder_.setMessage(builderForValue.build()); } exprTypeCase_ = 2; return this; } /** * .substrait.AggregateFunction measure = 2; */ public Builder mergeMeasure(io.substrait.proto.AggregateFunction value) { if (measureBuilder_ == null) { if (exprTypeCase_ == 2 && exprType_ != io.substrait.proto.AggregateFunction.getDefaultInstance()) { exprType_ = io.substrait.proto.AggregateFunction.newBuilder((io.substrait.proto.AggregateFunction) exprType_) .mergeFrom(value).buildPartial(); } else { exprType_ = value; } onChanged(); } else { if (exprTypeCase_ == 2) { measureBuilder_.mergeFrom(value); } else { measureBuilder_.setMessage(value); } } exprTypeCase_ = 2; return this; } /** * .substrait.AggregateFunction measure = 2; */ public Builder clearMeasure() { if (measureBuilder_ == null) { if (exprTypeCase_ == 2) { exprTypeCase_ = 0; exprType_ = null; onChanged(); } } else { if (exprTypeCase_ == 2) { exprTypeCase_ = 0; exprType_ = null; } measureBuilder_.clear(); } return this; } /** * .substrait.AggregateFunction measure = 2; */ public io.substrait.proto.AggregateFunction.Builder getMeasureBuilder() { return getMeasureFieldBuilder().getBuilder(); } /** * .substrait.AggregateFunction measure = 2; */ @java.lang.Override public io.substrait.proto.AggregateFunctionOrBuilder getMeasureOrBuilder() { if ((exprTypeCase_ == 2) && (measureBuilder_ != null)) { return measureBuilder_.getMessageOrBuilder(); } else { if (exprTypeCase_ == 2) { return (io.substrait.proto.AggregateFunction) exprType_; } return io.substrait.proto.AggregateFunction.getDefaultInstance(); } } /** * .substrait.AggregateFunction measure = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.AggregateFunction, io.substrait.proto.AggregateFunction.Builder, io.substrait.proto.AggregateFunctionOrBuilder> getMeasureFieldBuilder() { if (measureBuilder_ == null) { if (!(exprTypeCase_ == 2)) { exprType_ = io.substrait.proto.AggregateFunction.getDefaultInstance(); } measureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.AggregateFunction, io.substrait.proto.AggregateFunction.Builder, io.substrait.proto.AggregateFunctionOrBuilder>( (io.substrait.proto.AggregateFunction) exprType_, getParentForChildren(), isClean()); exprType_ = null; } exprTypeCase_ = 2; onChanged(); return measureBuilder_; } private com.google.protobuf.LazyStringArrayList outputNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureOutputNamesIsMutable() { if (!outputNames_.isModifiable()) { outputNames_ = new com.google.protobuf.LazyStringArrayList(outputNames_); } bitField0_ |= 0x00000004; } /** *
     * Field names in depth-first order
     * 
* * repeated string output_names = 3; * @return A list containing the outputNames. */ public com.google.protobuf.ProtocolStringList getOutputNamesList() { outputNames_.makeImmutable(); return outputNames_; } /** *
     * Field names in depth-first order
     * 
* * repeated string output_names = 3; * @return The count of outputNames. */ public int getOutputNamesCount() { return outputNames_.size(); } /** *
     * Field names in depth-first order
     * 
* * repeated string output_names = 3; * @param index The index of the element to return. * @return The outputNames at the given index. */ public java.lang.String getOutputNames(int index) { return outputNames_.get(index); } /** *
     * Field names in depth-first order
     * 
* * repeated string output_names = 3; * @param index The index of the value to return. * @return The bytes of the outputNames at the given index. */ public com.google.protobuf.ByteString getOutputNamesBytes(int index) { return outputNames_.getByteString(index); } /** *
     * Field names in depth-first order
     * 
* * repeated string output_names = 3; * @param index The index to set the value at. * @param value The outputNames to set. * @return This builder for chaining. */ public Builder setOutputNames( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureOutputNamesIsMutable(); outputNames_.set(index, value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Field names in depth-first order
     * 
* * repeated string output_names = 3; * @param value The outputNames to add. * @return This builder for chaining. */ public Builder addOutputNames( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureOutputNamesIsMutable(); outputNames_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Field names in depth-first order
     * 
* * repeated string output_names = 3; * @param values The outputNames to add. * @return This builder for chaining. */ public Builder addAllOutputNames( java.lang.Iterable values) { ensureOutputNamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, outputNames_); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Field names in depth-first order
     * 
* * repeated string output_names = 3; * @return This builder for chaining. */ public Builder clearOutputNames() { outputNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** *
     * Field names in depth-first order
     * 
* * repeated string output_names = 3; * @param value The bytes of the outputNames to add. * @return This builder for chaining. */ public Builder addOutputNamesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureOutputNamesIsMutable(); outputNames_.add(value); bitField0_ |= 0x00000004; 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.ExpressionReference) } // @@protoc_insertion_point(class_scope:substrait.ExpressionReference) private static final io.substrait.proto.ExpressionReference DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.ExpressionReference(); } public static io.substrait.proto.ExpressionReference getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExpressionReference 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.ExpressionReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy