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

io.substrait.proto.AggregateRel 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;

/**
 * 
 * The relational operator representing a GROUP BY Aggregate
 * 
* * Protobuf type {@code substrait.AggregateRel} */ public final class AggregateRel extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.AggregateRel) AggregateRelOrBuilder { private static final long serialVersionUID = 0L; // Use AggregateRel.newBuilder() to construct. private AggregateRel(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AggregateRel() { groupings_ = java.util.Collections.emptyList(); measures_ = java.util.Collections.emptyList(); groupingExpressions_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AggregateRel(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_AggregateRel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_AggregateRel_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.AggregateRel.class, io.substrait.proto.AggregateRel.Builder.class); } public interface GroupingOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.AggregateRel.Grouping) com.google.protobuf.MessageOrBuilder { /** *
     * Deprecated in favor of `expression_references` below.
     * 
* * repeated .substrait.Expression grouping_expressions = 1 [deprecated = true]; */ @java.lang.Deprecated java.util.List getGroupingExpressionsList(); /** *
     * Deprecated in favor of `expression_references` below.
     * 
* * repeated .substrait.Expression grouping_expressions = 1 [deprecated = true]; */ @java.lang.Deprecated io.substrait.proto.Expression getGroupingExpressions(int index); /** *
     * Deprecated in favor of `expression_references` below.
     * 
* * repeated .substrait.Expression grouping_expressions = 1 [deprecated = true]; */ @java.lang.Deprecated int getGroupingExpressionsCount(); /** *
     * Deprecated in favor of `expression_references` below.
     * 
* * repeated .substrait.Expression grouping_expressions = 1 [deprecated = true]; */ @java.lang.Deprecated java.util.List getGroupingExpressionsOrBuilderList(); /** *
     * Deprecated in favor of `expression_references` below.
     * 
* * repeated .substrait.Expression grouping_expressions = 1 [deprecated = true]; */ @java.lang.Deprecated io.substrait.proto.ExpressionOrBuilder getGroupingExpressionsOrBuilder( int index); /** *
     * A list of zero or more references to grouping expressions, i.e., indices
     * into the `grouping_expression` list.
     * 
* * repeated uint32 expression_references = 2; * @return A list containing the expressionReferences. */ java.util.List getExpressionReferencesList(); /** *
     * A list of zero or more references to grouping expressions, i.e., indices
     * into the `grouping_expression` list.
     * 
* * repeated uint32 expression_references = 2; * @return The count of expressionReferences. */ int getExpressionReferencesCount(); /** *
     * A list of zero or more references to grouping expressions, i.e., indices
     * into the `grouping_expression` list.
     * 
* * repeated uint32 expression_references = 2; * @param index The index of the element to return. * @return The expressionReferences at the given index. */ int getExpressionReferences(int index); } /** * Protobuf type {@code substrait.AggregateRel.Grouping} */ public static final class Grouping extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.AggregateRel.Grouping) GroupingOrBuilder { private static final long serialVersionUID = 0L; // Use Grouping.newBuilder() to construct. private Grouping(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Grouping() { groupingExpressions_ = java.util.Collections.emptyList(); expressionReferences_ = emptyIntList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Grouping(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_AggregateRel_Grouping_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_AggregateRel_Grouping_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.AggregateRel.Grouping.class, io.substrait.proto.AggregateRel.Grouping.Builder.class); } public static final int GROUPING_EXPRESSIONS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List groupingExpressions_; /** *
     * Deprecated in favor of `expression_references` below.
     * 
* * repeated .substrait.Expression grouping_expressions = 1 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public java.util.List getGroupingExpressionsList() { return groupingExpressions_; } /** *
     * Deprecated in favor of `expression_references` below.
     * 
* * repeated .substrait.Expression grouping_expressions = 1 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public java.util.List getGroupingExpressionsOrBuilderList() { return groupingExpressions_; } /** *
     * Deprecated in favor of `expression_references` below.
     * 
* * repeated .substrait.Expression grouping_expressions = 1 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public int getGroupingExpressionsCount() { return groupingExpressions_.size(); } /** *
     * Deprecated in favor of `expression_references` below.
     * 
* * repeated .substrait.Expression grouping_expressions = 1 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public io.substrait.proto.Expression getGroupingExpressions(int index) { return groupingExpressions_.get(index); } /** *
     * Deprecated in favor of `expression_references` below.
     * 
* * repeated .substrait.Expression grouping_expressions = 1 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public io.substrait.proto.ExpressionOrBuilder getGroupingExpressionsOrBuilder( int index) { return groupingExpressions_.get(index); } public static final int EXPRESSION_REFERENCES_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList expressionReferences_ = emptyIntList(); /** *
     * A list of zero or more references to grouping expressions, i.e., indices
     * into the `grouping_expression` list.
     * 
* * repeated uint32 expression_references = 2; * @return A list containing the expressionReferences. */ @java.lang.Override public java.util.List getExpressionReferencesList() { return expressionReferences_; } /** *
     * A list of zero or more references to grouping expressions, i.e., indices
     * into the `grouping_expression` list.
     * 
* * repeated uint32 expression_references = 2; * @return The count of expressionReferences. */ public int getExpressionReferencesCount() { return expressionReferences_.size(); } /** *
     * A list of zero or more references to grouping expressions, i.e., indices
     * into the `grouping_expression` list.
     * 
* * repeated uint32 expression_references = 2; * @param index The index of the element to return. * @return The expressionReferences at the given index. */ public int getExpressionReferences(int index) { return expressionReferences_.getInt(index); } private int expressionReferencesMemoizedSerializedSize = -1; 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 { getSerializedSize(); for (int i = 0; i < groupingExpressions_.size(); i++) { output.writeMessage(1, groupingExpressions_.get(i)); } if (getExpressionReferencesList().size() > 0) { output.writeUInt32NoTag(18); output.writeUInt32NoTag(expressionReferencesMemoizedSerializedSize); } for (int i = 0; i < expressionReferences_.size(); i++) { output.writeUInt32NoTag(expressionReferences_.getInt(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 < groupingExpressions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, groupingExpressions_.get(i)); } { int dataSize = 0; for (int i = 0; i < expressionReferences_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(expressionReferences_.getInt(i)); } size += dataSize; if (!getExpressionReferencesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } expressionReferencesMemoizedSerializedSize = dataSize; } 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.AggregateRel.Grouping)) { return super.equals(obj); } io.substrait.proto.AggregateRel.Grouping other = (io.substrait.proto.AggregateRel.Grouping) obj; if (!getGroupingExpressionsList() .equals(other.getGroupingExpressionsList())) return false; if (!getExpressionReferencesList() .equals(other.getExpressionReferencesList())) 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 (getGroupingExpressionsCount() > 0) { hash = (37 * hash) + GROUPING_EXPRESSIONS_FIELD_NUMBER; hash = (53 * hash) + getGroupingExpressionsList().hashCode(); } if (getExpressionReferencesCount() > 0) { hash = (37 * hash) + EXPRESSION_REFERENCES_FIELD_NUMBER; hash = (53 * hash) + getExpressionReferencesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.AggregateRel.Grouping parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.AggregateRel.Grouping 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.AggregateRel.Grouping parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.AggregateRel.Grouping 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.AggregateRel.Grouping parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.AggregateRel.Grouping parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.AggregateRel.Grouping parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.AggregateRel.Grouping 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.AggregateRel.Grouping parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.AggregateRel.Grouping 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.AggregateRel.Grouping parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.AggregateRel.Grouping 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.AggregateRel.Grouping 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.AggregateRel.Grouping} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.AggregateRel.Grouping) io.substrait.proto.AggregateRel.GroupingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_AggregateRel_Grouping_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_AggregateRel_Grouping_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.AggregateRel.Grouping.class, io.substrait.proto.AggregateRel.Grouping.Builder.class); } // Construct using io.substrait.proto.AggregateRel.Grouping.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (groupingExpressionsBuilder_ == null) { groupingExpressions_ = java.util.Collections.emptyList(); } else { groupingExpressions_ = null; groupingExpressionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); expressionReferences_ = emptyIntList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_AggregateRel_Grouping_descriptor; } @java.lang.Override public io.substrait.proto.AggregateRel.Grouping getDefaultInstanceForType() { return io.substrait.proto.AggregateRel.Grouping.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.AggregateRel.Grouping build() { io.substrait.proto.AggregateRel.Grouping result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.AggregateRel.Grouping buildPartial() { io.substrait.proto.AggregateRel.Grouping result = new io.substrait.proto.AggregateRel.Grouping(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.substrait.proto.AggregateRel.Grouping result) { if (groupingExpressionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { groupingExpressions_ = java.util.Collections.unmodifiableList(groupingExpressions_); bitField0_ = (bitField0_ & ~0x00000001); } result.groupingExpressions_ = groupingExpressions_; } else { result.groupingExpressions_ = groupingExpressionsBuilder_.build(); } } private void buildPartial0(io.substrait.proto.AggregateRel.Grouping result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { expressionReferences_.makeImmutable(); result.expressionReferences_ = expressionReferences_; } } @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.AggregateRel.Grouping) { return mergeFrom((io.substrait.proto.AggregateRel.Grouping)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.AggregateRel.Grouping other) { if (other == io.substrait.proto.AggregateRel.Grouping.getDefaultInstance()) return this; if (groupingExpressionsBuilder_ == null) { if (!other.groupingExpressions_.isEmpty()) { if (groupingExpressions_.isEmpty()) { groupingExpressions_ = other.groupingExpressions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureGroupingExpressionsIsMutable(); groupingExpressions_.addAll(other.groupingExpressions_); } onChanged(); } } else { if (!other.groupingExpressions_.isEmpty()) { if (groupingExpressionsBuilder_.isEmpty()) { groupingExpressionsBuilder_.dispose(); groupingExpressionsBuilder_ = null; groupingExpressions_ = other.groupingExpressions_; bitField0_ = (bitField0_ & ~0x00000001); groupingExpressionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getGroupingExpressionsFieldBuilder() : null; } else { groupingExpressionsBuilder_.addAllMessages(other.groupingExpressions_); } } } if (!other.expressionReferences_.isEmpty()) { if (expressionReferences_.isEmpty()) { expressionReferences_ = other.expressionReferences_; expressionReferences_.makeImmutable(); bitField0_ |= 0x00000002; } else { ensureExpressionReferencesIsMutable(); expressionReferences_.addAll(other.expressionReferences_); } 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: { io.substrait.proto.Expression m = input.readMessage( io.substrait.proto.Expression.parser(), extensionRegistry); if (groupingExpressionsBuilder_ == null) { ensureGroupingExpressionsIsMutable(); groupingExpressions_.add(m); } else { groupingExpressionsBuilder_.addMessage(m); } break; } // case 10 case 16: { int v = input.readUInt32(); ensureExpressionReferencesIsMutable(); expressionReferences_.addInt(v); break; } // case 16 case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureExpressionReferencesIsMutable(); while (input.getBytesUntilLimit() > 0) { expressionReferences_.addInt(input.readUInt32()); } input.popLimit(limit); 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 groupingExpressions_ = java.util.Collections.emptyList(); private void ensureGroupingExpressionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { groupingExpressions_ = new java.util.ArrayList(groupingExpressions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> groupingExpressionsBuilder_; /** *
       * Deprecated in favor of `expression_references` below.
       * 
* * repeated .substrait.Expression grouping_expressions = 1 [deprecated = true]; */ @java.lang.Deprecated public java.util.List getGroupingExpressionsList() { if (groupingExpressionsBuilder_ == null) { return java.util.Collections.unmodifiableList(groupingExpressions_); } else { return groupingExpressionsBuilder_.getMessageList(); } } /** *
       * Deprecated in favor of `expression_references` below.
       * 
* * repeated .substrait.Expression grouping_expressions = 1 [deprecated = true]; */ @java.lang.Deprecated public int getGroupingExpressionsCount() { if (groupingExpressionsBuilder_ == null) { return groupingExpressions_.size(); } else { return groupingExpressionsBuilder_.getCount(); } } /** *
       * Deprecated in favor of `expression_references` below.
       * 
* * repeated .substrait.Expression grouping_expressions = 1 [deprecated = true]; */ @java.lang.Deprecated public io.substrait.proto.Expression getGroupingExpressions(int index) { if (groupingExpressionsBuilder_ == null) { return groupingExpressions_.get(index); } else { return groupingExpressionsBuilder_.getMessage(index); } } /** *
       * Deprecated in favor of `expression_references` below.
       * 
* * repeated .substrait.Expression grouping_expressions = 1 [deprecated = true]; */ @java.lang.Deprecated public Builder setGroupingExpressions( int index, io.substrait.proto.Expression value) { if (groupingExpressionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupingExpressionsIsMutable(); groupingExpressions_.set(index, value); onChanged(); } else { groupingExpressionsBuilder_.setMessage(index, value); } return this; } /** *
       * Deprecated in favor of `expression_references` below.
       * 
* * repeated .substrait.Expression grouping_expressions = 1 [deprecated = true]; */ @java.lang.Deprecated public Builder setGroupingExpressions( int index, io.substrait.proto.Expression.Builder builderForValue) { if (groupingExpressionsBuilder_ == null) { ensureGroupingExpressionsIsMutable(); groupingExpressions_.set(index, builderForValue.build()); onChanged(); } else { groupingExpressionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Deprecated in favor of `expression_references` below.
       * 
* * repeated .substrait.Expression grouping_expressions = 1 [deprecated = true]; */ @java.lang.Deprecated public Builder addGroupingExpressions(io.substrait.proto.Expression value) { if (groupingExpressionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupingExpressionsIsMutable(); groupingExpressions_.add(value); onChanged(); } else { groupingExpressionsBuilder_.addMessage(value); } return this; } /** *
       * Deprecated in favor of `expression_references` below.
       * 
* * repeated .substrait.Expression grouping_expressions = 1 [deprecated = true]; */ @java.lang.Deprecated public Builder addGroupingExpressions( int index, io.substrait.proto.Expression value) { if (groupingExpressionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupingExpressionsIsMutable(); groupingExpressions_.add(index, value); onChanged(); } else { groupingExpressionsBuilder_.addMessage(index, value); } return this; } /** *
       * Deprecated in favor of `expression_references` below.
       * 
* * repeated .substrait.Expression grouping_expressions = 1 [deprecated = true]; */ @java.lang.Deprecated public Builder addGroupingExpressions( io.substrait.proto.Expression.Builder builderForValue) { if (groupingExpressionsBuilder_ == null) { ensureGroupingExpressionsIsMutable(); groupingExpressions_.add(builderForValue.build()); onChanged(); } else { groupingExpressionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Deprecated in favor of `expression_references` below.
       * 
* * repeated .substrait.Expression grouping_expressions = 1 [deprecated = true]; */ @java.lang.Deprecated public Builder addGroupingExpressions( int index, io.substrait.proto.Expression.Builder builderForValue) { if (groupingExpressionsBuilder_ == null) { ensureGroupingExpressionsIsMutable(); groupingExpressions_.add(index, builderForValue.build()); onChanged(); } else { groupingExpressionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Deprecated in favor of `expression_references` below.
       * 
* * repeated .substrait.Expression grouping_expressions = 1 [deprecated = true]; */ @java.lang.Deprecated public Builder addAllGroupingExpressions( java.lang.Iterable values) { if (groupingExpressionsBuilder_ == null) { ensureGroupingExpressionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, groupingExpressions_); onChanged(); } else { groupingExpressionsBuilder_.addAllMessages(values); } return this; } /** *
       * Deprecated in favor of `expression_references` below.
       * 
* * repeated .substrait.Expression grouping_expressions = 1 [deprecated = true]; */ @java.lang.Deprecated public Builder clearGroupingExpressions() { if (groupingExpressionsBuilder_ == null) { groupingExpressions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { groupingExpressionsBuilder_.clear(); } return this; } /** *
       * Deprecated in favor of `expression_references` below.
       * 
* * repeated .substrait.Expression grouping_expressions = 1 [deprecated = true]; */ @java.lang.Deprecated public Builder removeGroupingExpressions(int index) { if (groupingExpressionsBuilder_ == null) { ensureGroupingExpressionsIsMutable(); groupingExpressions_.remove(index); onChanged(); } else { groupingExpressionsBuilder_.remove(index); } return this; } /** *
       * Deprecated in favor of `expression_references` below.
       * 
* * repeated .substrait.Expression grouping_expressions = 1 [deprecated = true]; */ @java.lang.Deprecated public io.substrait.proto.Expression.Builder getGroupingExpressionsBuilder( int index) { return getGroupingExpressionsFieldBuilder().getBuilder(index); } /** *
       * Deprecated in favor of `expression_references` below.
       * 
* * repeated .substrait.Expression grouping_expressions = 1 [deprecated = true]; */ @java.lang.Deprecated public io.substrait.proto.ExpressionOrBuilder getGroupingExpressionsOrBuilder( int index) { if (groupingExpressionsBuilder_ == null) { return groupingExpressions_.get(index); } else { return groupingExpressionsBuilder_.getMessageOrBuilder(index); } } /** *
       * Deprecated in favor of `expression_references` below.
       * 
* * repeated .substrait.Expression grouping_expressions = 1 [deprecated = true]; */ @java.lang.Deprecated public java.util.List getGroupingExpressionsOrBuilderList() { if (groupingExpressionsBuilder_ != null) { return groupingExpressionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(groupingExpressions_); } } /** *
       * Deprecated in favor of `expression_references` below.
       * 
* * repeated .substrait.Expression grouping_expressions = 1 [deprecated = true]; */ @java.lang.Deprecated public io.substrait.proto.Expression.Builder addGroupingExpressionsBuilder() { return getGroupingExpressionsFieldBuilder().addBuilder( io.substrait.proto.Expression.getDefaultInstance()); } /** *
       * Deprecated in favor of `expression_references` below.
       * 
* * repeated .substrait.Expression grouping_expressions = 1 [deprecated = true]; */ @java.lang.Deprecated public io.substrait.proto.Expression.Builder addGroupingExpressionsBuilder( int index) { return getGroupingExpressionsFieldBuilder().addBuilder( index, io.substrait.proto.Expression.getDefaultInstance()); } /** *
       * Deprecated in favor of `expression_references` below.
       * 
* * repeated .substrait.Expression grouping_expressions = 1 [deprecated = true]; */ @java.lang.Deprecated public java.util.List getGroupingExpressionsBuilderList() { return getGroupingExpressionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> getGroupingExpressionsFieldBuilder() { if (groupingExpressionsBuilder_ == null) { groupingExpressionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>( groupingExpressions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); groupingExpressions_ = null; } return groupingExpressionsBuilder_; } private com.google.protobuf.Internal.IntList expressionReferences_ = emptyIntList(); private void ensureExpressionReferencesIsMutable() { if (!expressionReferences_.isModifiable()) { expressionReferences_ = makeMutableCopy(expressionReferences_); } bitField0_ |= 0x00000002; } /** *
       * A list of zero or more references to grouping expressions, i.e., indices
       * into the `grouping_expression` list.
       * 
* * repeated uint32 expression_references = 2; * @return A list containing the expressionReferences. */ public java.util.List getExpressionReferencesList() { expressionReferences_.makeImmutable(); return expressionReferences_; } /** *
       * A list of zero or more references to grouping expressions, i.e., indices
       * into the `grouping_expression` list.
       * 
* * repeated uint32 expression_references = 2; * @return The count of expressionReferences. */ public int getExpressionReferencesCount() { return expressionReferences_.size(); } /** *
       * A list of zero or more references to grouping expressions, i.e., indices
       * into the `grouping_expression` list.
       * 
* * repeated uint32 expression_references = 2; * @param index The index of the element to return. * @return The expressionReferences at the given index. */ public int getExpressionReferences(int index) { return expressionReferences_.getInt(index); } /** *
       * A list of zero or more references to grouping expressions, i.e., indices
       * into the `grouping_expression` list.
       * 
* * repeated uint32 expression_references = 2; * @param index The index to set the value at. * @param value The expressionReferences to set. * @return This builder for chaining. */ public Builder setExpressionReferences( int index, int value) { ensureExpressionReferencesIsMutable(); expressionReferences_.setInt(index, value); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * A list of zero or more references to grouping expressions, i.e., indices
       * into the `grouping_expression` list.
       * 
* * repeated uint32 expression_references = 2; * @param value The expressionReferences to add. * @return This builder for chaining. */ public Builder addExpressionReferences(int value) { ensureExpressionReferencesIsMutable(); expressionReferences_.addInt(value); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * A list of zero or more references to grouping expressions, i.e., indices
       * into the `grouping_expression` list.
       * 
* * repeated uint32 expression_references = 2; * @param values The expressionReferences to add. * @return This builder for chaining. */ public Builder addAllExpressionReferences( java.lang.Iterable values) { ensureExpressionReferencesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, expressionReferences_); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * A list of zero or more references to grouping expressions, i.e., indices
       * into the `grouping_expression` list.
       * 
* * repeated uint32 expression_references = 2; * @return This builder for chaining. */ public Builder clearExpressionReferences() { expressionReferences_ = emptyIntList(); bitField0_ = (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.AggregateRel.Grouping) } // @@protoc_insertion_point(class_scope:substrait.AggregateRel.Grouping) private static final io.substrait.proto.AggregateRel.Grouping DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.AggregateRel.Grouping(); } public static io.substrait.proto.AggregateRel.Grouping getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Grouping 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.AggregateRel.Grouping getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MeasureOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.AggregateRel.Measure) com.google.protobuf.MessageOrBuilder { /** * .substrait.AggregateFunction measure = 1; * @return Whether the measure field is set. */ boolean hasMeasure(); /** * .substrait.AggregateFunction measure = 1; * @return The measure. */ io.substrait.proto.AggregateFunction getMeasure(); /** * .substrait.AggregateFunction measure = 1; */ io.substrait.proto.AggregateFunctionOrBuilder getMeasureOrBuilder(); /** *
     * An optional boolean expression that acts to filter which records are
     * included in the measure. True means include this record for calculation
     * within the measure.
     * Helps to support SUM(<c>) FILTER(WHERE...) syntax without masking opportunities for optimization
     * 
* * .substrait.Expression filter = 2; * @return Whether the filter field is set. */ boolean hasFilter(); /** *
     * An optional boolean expression that acts to filter which records are
     * included in the measure. True means include this record for calculation
     * within the measure.
     * Helps to support SUM(<c>) FILTER(WHERE...) syntax without masking opportunities for optimization
     * 
* * .substrait.Expression filter = 2; * @return The filter. */ io.substrait.proto.Expression getFilter(); /** *
     * An optional boolean expression that acts to filter which records are
     * included in the measure. True means include this record for calculation
     * within the measure.
     * Helps to support SUM(<c>) FILTER(WHERE...) syntax without masking opportunities for optimization
     * 
* * .substrait.Expression filter = 2; */ io.substrait.proto.ExpressionOrBuilder getFilterOrBuilder(); } /** * Protobuf type {@code substrait.AggregateRel.Measure} */ public static final class Measure extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.AggregateRel.Measure) MeasureOrBuilder { private static final long serialVersionUID = 0L; // Use Measure.newBuilder() to construct. private Measure(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Measure() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Measure(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_AggregateRel_Measure_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_AggregateRel_Measure_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.AggregateRel.Measure.class, io.substrait.proto.AggregateRel.Measure.Builder.class); } private int bitField0_; public static final int MEASURE_FIELD_NUMBER = 1; private io.substrait.proto.AggregateFunction measure_; /** * .substrait.AggregateFunction measure = 1; * @return Whether the measure field is set. */ @java.lang.Override public boolean hasMeasure() { return ((bitField0_ & 0x00000001) != 0); } /** * .substrait.AggregateFunction measure = 1; * @return The measure. */ @java.lang.Override public io.substrait.proto.AggregateFunction getMeasure() { return measure_ == null ? io.substrait.proto.AggregateFunction.getDefaultInstance() : measure_; } /** * .substrait.AggregateFunction measure = 1; */ @java.lang.Override public io.substrait.proto.AggregateFunctionOrBuilder getMeasureOrBuilder() { return measure_ == null ? io.substrait.proto.AggregateFunction.getDefaultInstance() : measure_; } public static final int FILTER_FIELD_NUMBER = 2; private io.substrait.proto.Expression filter_; /** *
     * An optional boolean expression that acts to filter which records are
     * included in the measure. True means include this record for calculation
     * within the measure.
     * Helps to support SUM(<c>) FILTER(WHERE...) syntax without masking opportunities for optimization
     * 
* * .substrait.Expression filter = 2; * @return Whether the filter field is set. */ @java.lang.Override public boolean hasFilter() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * An optional boolean expression that acts to filter which records are
     * included in the measure. True means include this record for calculation
     * within the measure.
     * Helps to support SUM(<c>) FILTER(WHERE...) syntax without masking opportunities for optimization
     * 
* * .substrait.Expression filter = 2; * @return The filter. */ @java.lang.Override public io.substrait.proto.Expression getFilter() { return filter_ == null ? io.substrait.proto.Expression.getDefaultInstance() : filter_; } /** *
     * An optional boolean expression that acts to filter which records are
     * included in the measure. True means include this record for calculation
     * within the measure.
     * Helps to support SUM(<c>) FILTER(WHERE...) syntax without masking opportunities for optimization
     * 
* * .substrait.Expression filter = 2; */ @java.lang.Override public io.substrait.proto.ExpressionOrBuilder getFilterOrBuilder() { return filter_ == null ? io.substrait.proto.Expression.getDefaultInstance() : filter_; } 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, getMeasure()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getFilter()); } 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, getMeasure()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getFilter()); } 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.AggregateRel.Measure)) { return super.equals(obj); } io.substrait.proto.AggregateRel.Measure other = (io.substrait.proto.AggregateRel.Measure) obj; if (hasMeasure() != other.hasMeasure()) return false; if (hasMeasure()) { if (!getMeasure() .equals(other.getMeasure())) return false; } if (hasFilter() != other.hasFilter()) return false; if (hasFilter()) { if (!getFilter() .equals(other.getFilter())) 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 (hasMeasure()) { hash = (37 * hash) + MEASURE_FIELD_NUMBER; hash = (53 * hash) + getMeasure().hashCode(); } if (hasFilter()) { hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.AggregateRel.Measure parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.AggregateRel.Measure 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.AggregateRel.Measure parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.AggregateRel.Measure 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.AggregateRel.Measure parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.AggregateRel.Measure parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.AggregateRel.Measure parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.AggregateRel.Measure 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.AggregateRel.Measure parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.AggregateRel.Measure 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.AggregateRel.Measure parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.AggregateRel.Measure 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.AggregateRel.Measure 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.AggregateRel.Measure} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.AggregateRel.Measure) io.substrait.proto.AggregateRel.MeasureOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_AggregateRel_Measure_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_AggregateRel_Measure_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.AggregateRel.Measure.class, io.substrait.proto.AggregateRel.Measure.Builder.class); } // Construct using io.substrait.proto.AggregateRel.Measure.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMeasureFieldBuilder(); getFilterFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; measure_ = null; if (measureBuilder_ != null) { measureBuilder_.dispose(); measureBuilder_ = null; } filter_ = null; if (filterBuilder_ != null) { filterBuilder_.dispose(); filterBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_AggregateRel_Measure_descriptor; } @java.lang.Override public io.substrait.proto.AggregateRel.Measure getDefaultInstanceForType() { return io.substrait.proto.AggregateRel.Measure.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.AggregateRel.Measure build() { io.substrait.proto.AggregateRel.Measure result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.AggregateRel.Measure buildPartial() { io.substrait.proto.AggregateRel.Measure result = new io.substrait.proto.AggregateRel.Measure(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.substrait.proto.AggregateRel.Measure result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.measure_ = measureBuilder_ == null ? measure_ : measureBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.filter_ = filterBuilder_ == null ? filter_ : filterBuilder_.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.AggregateRel.Measure) { return mergeFrom((io.substrait.proto.AggregateRel.Measure)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.AggregateRel.Measure other) { if (other == io.substrait.proto.AggregateRel.Measure.getDefaultInstance()) return this; if (other.hasMeasure()) { mergeMeasure(other.getMeasure()); } if (other.hasFilter()) { mergeFilter(other.getFilter()); } 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( getMeasureFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getFilterFieldBuilder().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.AggregateFunction measure_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.AggregateFunction, io.substrait.proto.AggregateFunction.Builder, io.substrait.proto.AggregateFunctionOrBuilder> measureBuilder_; /** * .substrait.AggregateFunction measure = 1; * @return Whether the measure field is set. */ public boolean hasMeasure() { return ((bitField0_ & 0x00000001) != 0); } /** * .substrait.AggregateFunction measure = 1; * @return The measure. */ public io.substrait.proto.AggregateFunction getMeasure() { if (measureBuilder_ == null) { return measure_ == null ? io.substrait.proto.AggregateFunction.getDefaultInstance() : measure_; } else { return measureBuilder_.getMessage(); } } /** * .substrait.AggregateFunction measure = 1; */ public Builder setMeasure(io.substrait.proto.AggregateFunction value) { if (measureBuilder_ == null) { if (value == null) { throw new NullPointerException(); } measure_ = value; } else { measureBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .substrait.AggregateFunction measure = 1; */ public Builder setMeasure( io.substrait.proto.AggregateFunction.Builder builderForValue) { if (measureBuilder_ == null) { measure_ = builderForValue.build(); } else { measureBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .substrait.AggregateFunction measure = 1; */ public Builder mergeMeasure(io.substrait.proto.AggregateFunction value) { if (measureBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && measure_ != null && measure_ != io.substrait.proto.AggregateFunction.getDefaultInstance()) { getMeasureBuilder().mergeFrom(value); } else { measure_ = value; } } else { measureBuilder_.mergeFrom(value); } if (measure_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .substrait.AggregateFunction measure = 1; */ public Builder clearMeasure() { bitField0_ = (bitField0_ & ~0x00000001); measure_ = null; if (measureBuilder_ != null) { measureBuilder_.dispose(); measureBuilder_ = null; } onChanged(); return this; } /** * .substrait.AggregateFunction measure = 1; */ public io.substrait.proto.AggregateFunction.Builder getMeasureBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMeasureFieldBuilder().getBuilder(); } /** * .substrait.AggregateFunction measure = 1; */ public io.substrait.proto.AggregateFunctionOrBuilder getMeasureOrBuilder() { if (measureBuilder_ != null) { return measureBuilder_.getMessageOrBuilder(); } else { return measure_ == null ? io.substrait.proto.AggregateFunction.getDefaultInstance() : measure_; } } /** * .substrait.AggregateFunction measure = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.AggregateFunction, io.substrait.proto.AggregateFunction.Builder, io.substrait.proto.AggregateFunctionOrBuilder> getMeasureFieldBuilder() { if (measureBuilder_ == null) { measureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.AggregateFunction, io.substrait.proto.AggregateFunction.Builder, io.substrait.proto.AggregateFunctionOrBuilder>( getMeasure(), getParentForChildren(), isClean()); measure_ = null; } return measureBuilder_; } private io.substrait.proto.Expression filter_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> filterBuilder_; /** *
       * An optional boolean expression that acts to filter which records are
       * included in the measure. True means include this record for calculation
       * within the measure.
       * Helps to support SUM(<c>) FILTER(WHERE...) syntax without masking opportunities for optimization
       * 
* * .substrait.Expression filter = 2; * @return Whether the filter field is set. */ public boolean hasFilter() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * An optional boolean expression that acts to filter which records are
       * included in the measure. True means include this record for calculation
       * within the measure.
       * Helps to support SUM(<c>) FILTER(WHERE...) syntax without masking opportunities for optimization
       * 
* * .substrait.Expression filter = 2; * @return The filter. */ public io.substrait.proto.Expression getFilter() { if (filterBuilder_ == null) { return filter_ == null ? io.substrait.proto.Expression.getDefaultInstance() : filter_; } else { return filterBuilder_.getMessage(); } } /** *
       * An optional boolean expression that acts to filter which records are
       * included in the measure. True means include this record for calculation
       * within the measure.
       * Helps to support SUM(<c>) FILTER(WHERE...) syntax without masking opportunities for optimization
       * 
* * .substrait.Expression filter = 2; */ public Builder setFilter(io.substrait.proto.Expression value) { if (filterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } filter_ = value; } else { filterBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * An optional boolean expression that acts to filter which records are
       * included in the measure. True means include this record for calculation
       * within the measure.
       * Helps to support SUM(<c>) FILTER(WHERE...) syntax without masking opportunities for optimization
       * 
* * .substrait.Expression filter = 2; */ public Builder setFilter( io.substrait.proto.Expression.Builder builderForValue) { if (filterBuilder_ == null) { filter_ = builderForValue.build(); } else { filterBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * An optional boolean expression that acts to filter which records are
       * included in the measure. True means include this record for calculation
       * within the measure.
       * Helps to support SUM(<c>) FILTER(WHERE...) syntax without masking opportunities for optimization
       * 
* * .substrait.Expression filter = 2; */ public Builder mergeFilter(io.substrait.proto.Expression value) { if (filterBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && filter_ != null && filter_ != io.substrait.proto.Expression.getDefaultInstance()) { getFilterBuilder().mergeFrom(value); } else { filter_ = value; } } else { filterBuilder_.mergeFrom(value); } if (filter_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
       * An optional boolean expression that acts to filter which records are
       * included in the measure. True means include this record for calculation
       * within the measure.
       * Helps to support SUM(<c>) FILTER(WHERE...) syntax without masking opportunities for optimization
       * 
* * .substrait.Expression filter = 2; */ public Builder clearFilter() { bitField0_ = (bitField0_ & ~0x00000002); filter_ = null; if (filterBuilder_ != null) { filterBuilder_.dispose(); filterBuilder_ = null; } onChanged(); return this; } /** *
       * An optional boolean expression that acts to filter which records are
       * included in the measure. True means include this record for calculation
       * within the measure.
       * Helps to support SUM(<c>) FILTER(WHERE...) syntax without masking opportunities for optimization
       * 
* * .substrait.Expression filter = 2; */ public io.substrait.proto.Expression.Builder getFilterBuilder() { bitField0_ |= 0x00000002; onChanged(); return getFilterFieldBuilder().getBuilder(); } /** *
       * An optional boolean expression that acts to filter which records are
       * included in the measure. True means include this record for calculation
       * within the measure.
       * Helps to support SUM(<c>) FILTER(WHERE...) syntax without masking opportunities for optimization
       * 
* * .substrait.Expression filter = 2; */ public io.substrait.proto.ExpressionOrBuilder getFilterOrBuilder() { if (filterBuilder_ != null) { return filterBuilder_.getMessageOrBuilder(); } else { return filter_ == null ? io.substrait.proto.Expression.getDefaultInstance() : filter_; } } /** *
       * An optional boolean expression that acts to filter which records are
       * included in the measure. True means include this record for calculation
       * within the measure.
       * Helps to support SUM(<c>) FILTER(WHERE...) syntax without masking opportunities for optimization
       * 
* * .substrait.Expression filter = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> getFilterFieldBuilder() { if (filterBuilder_ == null) { filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>( getFilter(), getParentForChildren(), isClean()); filter_ = null; } return filterBuilder_; } @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.AggregateRel.Measure) } // @@protoc_insertion_point(class_scope:substrait.AggregateRel.Measure) private static final io.substrait.proto.AggregateRel.Measure DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.AggregateRel.Measure(); } public static io.substrait.proto.AggregateRel.Measure getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Measure 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.AggregateRel.Measure getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int COMMON_FIELD_NUMBER = 1; private io.substrait.proto.RelCommon common_; /** * .substrait.RelCommon common = 1; * @return Whether the common field is set. */ @java.lang.Override public boolean hasCommon() { return ((bitField0_ & 0x00000001) != 0); } /** * .substrait.RelCommon common = 1; * @return The common. */ @java.lang.Override public io.substrait.proto.RelCommon getCommon() { return common_ == null ? io.substrait.proto.RelCommon.getDefaultInstance() : common_; } /** * .substrait.RelCommon common = 1; */ @java.lang.Override public io.substrait.proto.RelCommonOrBuilder getCommonOrBuilder() { return common_ == null ? io.substrait.proto.RelCommon.getDefaultInstance() : common_; } public static final int INPUT_FIELD_NUMBER = 2; private io.substrait.proto.Rel input_; /** *
   * Input of the aggregation
   * 
* * .substrait.Rel input = 2; * @return Whether the input field is set. */ @java.lang.Override public boolean hasInput() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Input of the aggregation
   * 
* * .substrait.Rel input = 2; * @return The input. */ @java.lang.Override public io.substrait.proto.Rel getInput() { return input_ == null ? io.substrait.proto.Rel.getDefaultInstance() : input_; } /** *
   * Input of the aggregation
   * 
* * .substrait.Rel input = 2; */ @java.lang.Override public io.substrait.proto.RelOrBuilder getInputOrBuilder() { return input_ == null ? io.substrait.proto.Rel.getDefaultInstance() : input_; } public static final int GROUPINGS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List groupings_; /** *
   * A list of zero or more grouping sets that the aggregation measures should
   * be calculated for. There must be at least one grouping set if there are no
   * measures (but it can be the empty grouping set).
   * 
* * repeated .substrait.AggregateRel.Grouping groupings = 3; */ @java.lang.Override public java.util.List getGroupingsList() { return groupings_; } /** *
   * A list of zero or more grouping sets that the aggregation measures should
   * be calculated for. There must be at least one grouping set if there are no
   * measures (but it can be the empty grouping set).
   * 
* * repeated .substrait.AggregateRel.Grouping groupings = 3; */ @java.lang.Override public java.util.List getGroupingsOrBuilderList() { return groupings_; } /** *
   * A list of zero or more grouping sets that the aggregation measures should
   * be calculated for. There must be at least one grouping set if there are no
   * measures (but it can be the empty grouping set).
   * 
* * repeated .substrait.AggregateRel.Grouping groupings = 3; */ @java.lang.Override public int getGroupingsCount() { return groupings_.size(); } /** *
   * A list of zero or more grouping sets that the aggregation measures should
   * be calculated for. There must be at least one grouping set if there are no
   * measures (but it can be the empty grouping set).
   * 
* * repeated .substrait.AggregateRel.Grouping groupings = 3; */ @java.lang.Override public io.substrait.proto.AggregateRel.Grouping getGroupings(int index) { return groupings_.get(index); } /** *
   * A list of zero or more grouping sets that the aggregation measures should
   * be calculated for. There must be at least one grouping set if there are no
   * measures (but it can be the empty grouping set).
   * 
* * repeated .substrait.AggregateRel.Grouping groupings = 3; */ @java.lang.Override public io.substrait.proto.AggregateRel.GroupingOrBuilder getGroupingsOrBuilder( int index) { return groupings_.get(index); } public static final int MEASURES_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List measures_; /** *
   * A list of one or more aggregate expressions along with an optional filter.
   * Required if there are no groupings.
   * 
* * repeated .substrait.AggregateRel.Measure measures = 4; */ @java.lang.Override public java.util.List getMeasuresList() { return measures_; } /** *
   * A list of one or more aggregate expressions along with an optional filter.
   * Required if there are no groupings.
   * 
* * repeated .substrait.AggregateRel.Measure measures = 4; */ @java.lang.Override public java.util.List getMeasuresOrBuilderList() { return measures_; } /** *
   * A list of one or more aggregate expressions along with an optional filter.
   * Required if there are no groupings.
   * 
* * repeated .substrait.AggregateRel.Measure measures = 4; */ @java.lang.Override public int getMeasuresCount() { return measures_.size(); } /** *
   * A list of one or more aggregate expressions along with an optional filter.
   * Required if there are no groupings.
   * 
* * repeated .substrait.AggregateRel.Measure measures = 4; */ @java.lang.Override public io.substrait.proto.AggregateRel.Measure getMeasures(int index) { return measures_.get(index); } /** *
   * A list of one or more aggregate expressions along with an optional filter.
   * Required if there are no groupings.
   * 
* * repeated .substrait.AggregateRel.Measure measures = 4; */ @java.lang.Override public io.substrait.proto.AggregateRel.MeasureOrBuilder getMeasuresOrBuilder( int index) { return measures_.get(index); } public static final int GROUPING_EXPRESSIONS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List groupingExpressions_; /** *
   * A list of zero or more grouping expressions that grouping sets (i.e.,
   * `Grouping` messages in the `groupings` field) can reference. Each
   * expression in this list must be referred to by at least one
   * `Grouping.expression_references`.
   * 
* * repeated .substrait.Expression grouping_expressions = 5; */ @java.lang.Override public java.util.List getGroupingExpressionsList() { return groupingExpressions_; } /** *
   * A list of zero or more grouping expressions that grouping sets (i.e.,
   * `Grouping` messages in the `groupings` field) can reference. Each
   * expression in this list must be referred to by at least one
   * `Grouping.expression_references`.
   * 
* * repeated .substrait.Expression grouping_expressions = 5; */ @java.lang.Override public java.util.List getGroupingExpressionsOrBuilderList() { return groupingExpressions_; } /** *
   * A list of zero or more grouping expressions that grouping sets (i.e.,
   * `Grouping` messages in the `groupings` field) can reference. Each
   * expression in this list must be referred to by at least one
   * `Grouping.expression_references`.
   * 
* * repeated .substrait.Expression grouping_expressions = 5; */ @java.lang.Override public int getGroupingExpressionsCount() { return groupingExpressions_.size(); } /** *
   * A list of zero or more grouping expressions that grouping sets (i.e.,
   * `Grouping` messages in the `groupings` field) can reference. Each
   * expression in this list must be referred to by at least one
   * `Grouping.expression_references`.
   * 
* * repeated .substrait.Expression grouping_expressions = 5; */ @java.lang.Override public io.substrait.proto.Expression getGroupingExpressions(int index) { return groupingExpressions_.get(index); } /** *
   * A list of zero or more grouping expressions that grouping sets (i.e.,
   * `Grouping` messages in the `groupings` field) can reference. Each
   * expression in this list must be referred to by at least one
   * `Grouping.expression_references`.
   * 
* * repeated .substrait.Expression grouping_expressions = 5; */ @java.lang.Override public io.substrait.proto.ExpressionOrBuilder getGroupingExpressionsOrBuilder( int index) { return groupingExpressions_.get(index); } public static final int ADVANCED_EXTENSION_FIELD_NUMBER = 10; private io.substrait.proto.AdvancedExtension advancedExtension_; /** * .substrait.extensions.AdvancedExtension advanced_extension = 10; * @return Whether the advancedExtension field is set. */ @java.lang.Override public boolean hasAdvancedExtension() { return ((bitField0_ & 0x00000004) != 0); } /** * .substrait.extensions.AdvancedExtension advanced_extension = 10; * @return The advancedExtension. */ @java.lang.Override public io.substrait.proto.AdvancedExtension getAdvancedExtension() { return advancedExtension_ == null ? io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtension_; } /** * .substrait.extensions.AdvancedExtension advanced_extension = 10; */ @java.lang.Override public io.substrait.proto.AdvancedExtensionOrBuilder getAdvancedExtensionOrBuilder() { return advancedExtension_ == null ? io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtension_; } 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, getCommon()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getInput()); } for (int i = 0; i < groupings_.size(); i++) { output.writeMessage(3, groupings_.get(i)); } for (int i = 0; i < measures_.size(); i++) { output.writeMessage(4, measures_.get(i)); } for (int i = 0; i < groupingExpressions_.size(); i++) { output.writeMessage(5, groupingExpressions_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(10, getAdvancedExtension()); } 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, getCommon()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getInput()); } for (int i = 0; i < groupings_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, groupings_.get(i)); } for (int i = 0; i < measures_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, measures_.get(i)); } for (int i = 0; i < groupingExpressions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, groupingExpressions_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getAdvancedExtension()); } 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.AggregateRel)) { return super.equals(obj); } io.substrait.proto.AggregateRel other = (io.substrait.proto.AggregateRel) obj; if (hasCommon() != other.hasCommon()) return false; if (hasCommon()) { if (!getCommon() .equals(other.getCommon())) return false; } if (hasInput() != other.hasInput()) return false; if (hasInput()) { if (!getInput() .equals(other.getInput())) return false; } if (!getGroupingsList() .equals(other.getGroupingsList())) return false; if (!getMeasuresList() .equals(other.getMeasuresList())) return false; if (!getGroupingExpressionsList() .equals(other.getGroupingExpressionsList())) return false; if (hasAdvancedExtension() != other.hasAdvancedExtension()) return false; if (hasAdvancedExtension()) { if (!getAdvancedExtension() .equals(other.getAdvancedExtension())) 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 (hasCommon()) { hash = (37 * hash) + COMMON_FIELD_NUMBER; hash = (53 * hash) + getCommon().hashCode(); } if (hasInput()) { hash = (37 * hash) + INPUT_FIELD_NUMBER; hash = (53 * hash) + getInput().hashCode(); } if (getGroupingsCount() > 0) { hash = (37 * hash) + GROUPINGS_FIELD_NUMBER; hash = (53 * hash) + getGroupingsList().hashCode(); } if (getMeasuresCount() > 0) { hash = (37 * hash) + MEASURES_FIELD_NUMBER; hash = (53 * hash) + getMeasuresList().hashCode(); } if (getGroupingExpressionsCount() > 0) { hash = (37 * hash) + GROUPING_EXPRESSIONS_FIELD_NUMBER; hash = (53 * hash) + getGroupingExpressionsList().hashCode(); } if (hasAdvancedExtension()) { hash = (37 * hash) + ADVANCED_EXTENSION_FIELD_NUMBER; hash = (53 * hash) + getAdvancedExtension().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.AggregateRel parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.AggregateRel 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.AggregateRel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.AggregateRel 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.AggregateRel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.AggregateRel parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.AggregateRel parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.AggregateRel 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.AggregateRel parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.AggregateRel 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.AggregateRel parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.AggregateRel 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.AggregateRel prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * The relational operator representing a GROUP BY Aggregate
   * 
* * Protobuf type {@code substrait.AggregateRel} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.AggregateRel) io.substrait.proto.AggregateRelOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_AggregateRel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_AggregateRel_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.AggregateRel.class, io.substrait.proto.AggregateRel.Builder.class); } // Construct using io.substrait.proto.AggregateRel.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCommonFieldBuilder(); getInputFieldBuilder(); getGroupingsFieldBuilder(); getMeasuresFieldBuilder(); getGroupingExpressionsFieldBuilder(); getAdvancedExtensionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; common_ = null; if (commonBuilder_ != null) { commonBuilder_.dispose(); commonBuilder_ = null; } input_ = null; if (inputBuilder_ != null) { inputBuilder_.dispose(); inputBuilder_ = null; } if (groupingsBuilder_ == null) { groupings_ = java.util.Collections.emptyList(); } else { groupings_ = null; groupingsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (measuresBuilder_ == null) { measures_ = java.util.Collections.emptyList(); } else { measures_ = null; measuresBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (groupingExpressionsBuilder_ == null) { groupingExpressions_ = java.util.Collections.emptyList(); } else { groupingExpressions_ = null; groupingExpressionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); advancedExtension_ = null; if (advancedExtensionBuilder_ != null) { advancedExtensionBuilder_.dispose(); advancedExtensionBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_AggregateRel_descriptor; } @java.lang.Override public io.substrait.proto.AggregateRel getDefaultInstanceForType() { return io.substrait.proto.AggregateRel.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.AggregateRel build() { io.substrait.proto.AggregateRel result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.AggregateRel buildPartial() { io.substrait.proto.AggregateRel result = new io.substrait.proto.AggregateRel(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.substrait.proto.AggregateRel result) { if (groupingsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { groupings_ = java.util.Collections.unmodifiableList(groupings_); bitField0_ = (bitField0_ & ~0x00000004); } result.groupings_ = groupings_; } else { result.groupings_ = groupingsBuilder_.build(); } if (measuresBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { measures_ = java.util.Collections.unmodifiableList(measures_); bitField0_ = (bitField0_ & ~0x00000008); } result.measures_ = measures_; } else { result.measures_ = measuresBuilder_.build(); } if (groupingExpressionsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { groupingExpressions_ = java.util.Collections.unmodifiableList(groupingExpressions_); bitField0_ = (bitField0_ & ~0x00000010); } result.groupingExpressions_ = groupingExpressions_; } else { result.groupingExpressions_ = groupingExpressionsBuilder_.build(); } } private void buildPartial0(io.substrait.proto.AggregateRel result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.common_ = commonBuilder_ == null ? common_ : commonBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.input_ = inputBuilder_ == null ? input_ : inputBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { result.advancedExtension_ = advancedExtensionBuilder_ == null ? advancedExtension_ : advancedExtensionBuilder_.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.AggregateRel) { return mergeFrom((io.substrait.proto.AggregateRel)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.AggregateRel other) { if (other == io.substrait.proto.AggregateRel.getDefaultInstance()) return this; if (other.hasCommon()) { mergeCommon(other.getCommon()); } if (other.hasInput()) { mergeInput(other.getInput()); } if (groupingsBuilder_ == null) { if (!other.groupings_.isEmpty()) { if (groupings_.isEmpty()) { groupings_ = other.groupings_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureGroupingsIsMutable(); groupings_.addAll(other.groupings_); } onChanged(); } } else { if (!other.groupings_.isEmpty()) { if (groupingsBuilder_.isEmpty()) { groupingsBuilder_.dispose(); groupingsBuilder_ = null; groupings_ = other.groupings_; bitField0_ = (bitField0_ & ~0x00000004); groupingsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getGroupingsFieldBuilder() : null; } else { groupingsBuilder_.addAllMessages(other.groupings_); } } } if (measuresBuilder_ == null) { if (!other.measures_.isEmpty()) { if (measures_.isEmpty()) { measures_ = other.measures_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureMeasuresIsMutable(); measures_.addAll(other.measures_); } onChanged(); } } else { if (!other.measures_.isEmpty()) { if (measuresBuilder_.isEmpty()) { measuresBuilder_.dispose(); measuresBuilder_ = null; measures_ = other.measures_; bitField0_ = (bitField0_ & ~0x00000008); measuresBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMeasuresFieldBuilder() : null; } else { measuresBuilder_.addAllMessages(other.measures_); } } } if (groupingExpressionsBuilder_ == null) { if (!other.groupingExpressions_.isEmpty()) { if (groupingExpressions_.isEmpty()) { groupingExpressions_ = other.groupingExpressions_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureGroupingExpressionsIsMutable(); groupingExpressions_.addAll(other.groupingExpressions_); } onChanged(); } } else { if (!other.groupingExpressions_.isEmpty()) { if (groupingExpressionsBuilder_.isEmpty()) { groupingExpressionsBuilder_.dispose(); groupingExpressionsBuilder_ = null; groupingExpressions_ = other.groupingExpressions_; bitField0_ = (bitField0_ & ~0x00000010); groupingExpressionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getGroupingExpressionsFieldBuilder() : null; } else { groupingExpressionsBuilder_.addAllMessages(other.groupingExpressions_); } } } if (other.hasAdvancedExtension()) { mergeAdvancedExtension(other.getAdvancedExtension()); } 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( getCommonFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getInputFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { io.substrait.proto.AggregateRel.Grouping m = input.readMessage( io.substrait.proto.AggregateRel.Grouping.parser(), extensionRegistry); if (groupingsBuilder_ == null) { ensureGroupingsIsMutable(); groupings_.add(m); } else { groupingsBuilder_.addMessage(m); } break; } // case 26 case 34: { io.substrait.proto.AggregateRel.Measure m = input.readMessage( io.substrait.proto.AggregateRel.Measure.parser(), extensionRegistry); if (measuresBuilder_ == null) { ensureMeasuresIsMutable(); measures_.add(m); } else { measuresBuilder_.addMessage(m); } break; } // case 34 case 42: { io.substrait.proto.Expression m = input.readMessage( io.substrait.proto.Expression.parser(), extensionRegistry); if (groupingExpressionsBuilder_ == null) { ensureGroupingExpressionsIsMutable(); groupingExpressions_.add(m); } else { groupingExpressionsBuilder_.addMessage(m); } break; } // case 42 case 82: { input.readMessage( getAdvancedExtensionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 82 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.RelCommon common_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.RelCommon, io.substrait.proto.RelCommon.Builder, io.substrait.proto.RelCommonOrBuilder> commonBuilder_; /** * .substrait.RelCommon common = 1; * @return Whether the common field is set. */ public boolean hasCommon() { return ((bitField0_ & 0x00000001) != 0); } /** * .substrait.RelCommon common = 1; * @return The common. */ public io.substrait.proto.RelCommon getCommon() { if (commonBuilder_ == null) { return common_ == null ? io.substrait.proto.RelCommon.getDefaultInstance() : common_; } else { return commonBuilder_.getMessage(); } } /** * .substrait.RelCommon common = 1; */ public Builder setCommon(io.substrait.proto.RelCommon value) { if (commonBuilder_ == null) { if (value == null) { throw new NullPointerException(); } common_ = value; } else { commonBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .substrait.RelCommon common = 1; */ public Builder setCommon( io.substrait.proto.RelCommon.Builder builderForValue) { if (commonBuilder_ == null) { common_ = builderForValue.build(); } else { commonBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .substrait.RelCommon common = 1; */ public Builder mergeCommon(io.substrait.proto.RelCommon value) { if (commonBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && common_ != null && common_ != io.substrait.proto.RelCommon.getDefaultInstance()) { getCommonBuilder().mergeFrom(value); } else { common_ = value; } } else { commonBuilder_.mergeFrom(value); } if (common_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .substrait.RelCommon common = 1; */ public Builder clearCommon() { bitField0_ = (bitField0_ & ~0x00000001); common_ = null; if (commonBuilder_ != null) { commonBuilder_.dispose(); commonBuilder_ = null; } onChanged(); return this; } /** * .substrait.RelCommon common = 1; */ public io.substrait.proto.RelCommon.Builder getCommonBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCommonFieldBuilder().getBuilder(); } /** * .substrait.RelCommon common = 1; */ public io.substrait.proto.RelCommonOrBuilder getCommonOrBuilder() { if (commonBuilder_ != null) { return commonBuilder_.getMessageOrBuilder(); } else { return common_ == null ? io.substrait.proto.RelCommon.getDefaultInstance() : common_; } } /** * .substrait.RelCommon common = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.RelCommon, io.substrait.proto.RelCommon.Builder, io.substrait.proto.RelCommonOrBuilder> getCommonFieldBuilder() { if (commonBuilder_ == null) { commonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.RelCommon, io.substrait.proto.RelCommon.Builder, io.substrait.proto.RelCommonOrBuilder>( getCommon(), getParentForChildren(), isClean()); common_ = null; } return commonBuilder_; } 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_; /** *
     * Input of the aggregation
     * 
* * .substrait.Rel input = 2; * @return Whether the input field is set. */ public boolean hasInput() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Input of the aggregation
     * 
* * .substrait.Rel input = 2; * @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(); } } /** *
     * Input of the aggregation
     * 
* * .substrait.Rel input = 2; */ public Builder setInput(io.substrait.proto.Rel value) { if (inputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } input_ = value; } else { inputBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Input of the aggregation
     * 
* * .substrait.Rel input = 2; */ public Builder setInput( io.substrait.proto.Rel.Builder builderForValue) { if (inputBuilder_ == null) { input_ = builderForValue.build(); } else { inputBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Input of the aggregation
     * 
* * .substrait.Rel input = 2; */ public Builder mergeInput(io.substrait.proto.Rel value) { if (inputBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && input_ != null && input_ != io.substrait.proto.Rel.getDefaultInstance()) { getInputBuilder().mergeFrom(value); } else { input_ = value; } } else { inputBuilder_.mergeFrom(value); } if (input_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     * Input of the aggregation
     * 
* * .substrait.Rel input = 2; */ public Builder clearInput() { bitField0_ = (bitField0_ & ~0x00000002); input_ = null; if (inputBuilder_ != null) { inputBuilder_.dispose(); inputBuilder_ = null; } onChanged(); return this; } /** *
     * Input of the aggregation
     * 
* * .substrait.Rel input = 2; */ public io.substrait.proto.Rel.Builder getInputBuilder() { bitField0_ |= 0x00000002; onChanged(); return getInputFieldBuilder().getBuilder(); } /** *
     * Input of the aggregation
     * 
* * .substrait.Rel input = 2; */ public io.substrait.proto.RelOrBuilder getInputOrBuilder() { if (inputBuilder_ != null) { return inputBuilder_.getMessageOrBuilder(); } else { return input_ == null ? io.substrait.proto.Rel.getDefaultInstance() : input_; } } /** *
     * Input of the aggregation
     * 
* * .substrait.Rel input = 2; */ 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_; } private java.util.List groupings_ = java.util.Collections.emptyList(); private void ensureGroupingsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { groupings_ = new java.util.ArrayList(groupings_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.AggregateRel.Grouping, io.substrait.proto.AggregateRel.Grouping.Builder, io.substrait.proto.AggregateRel.GroupingOrBuilder> groupingsBuilder_; /** *
     * A list of zero or more grouping sets that the aggregation measures should
     * be calculated for. There must be at least one grouping set if there are no
     * measures (but it can be the empty grouping set).
     * 
* * repeated .substrait.AggregateRel.Grouping groupings = 3; */ public java.util.List getGroupingsList() { if (groupingsBuilder_ == null) { return java.util.Collections.unmodifiableList(groupings_); } else { return groupingsBuilder_.getMessageList(); } } /** *
     * A list of zero or more grouping sets that the aggregation measures should
     * be calculated for. There must be at least one grouping set if there are no
     * measures (but it can be the empty grouping set).
     * 
* * repeated .substrait.AggregateRel.Grouping groupings = 3; */ public int getGroupingsCount() { if (groupingsBuilder_ == null) { return groupings_.size(); } else { return groupingsBuilder_.getCount(); } } /** *
     * A list of zero or more grouping sets that the aggregation measures should
     * be calculated for. There must be at least one grouping set if there are no
     * measures (but it can be the empty grouping set).
     * 
* * repeated .substrait.AggregateRel.Grouping groupings = 3; */ public io.substrait.proto.AggregateRel.Grouping getGroupings(int index) { if (groupingsBuilder_ == null) { return groupings_.get(index); } else { return groupingsBuilder_.getMessage(index); } } /** *
     * A list of zero or more grouping sets that the aggregation measures should
     * be calculated for. There must be at least one grouping set if there are no
     * measures (but it can be the empty grouping set).
     * 
* * repeated .substrait.AggregateRel.Grouping groupings = 3; */ public Builder setGroupings( int index, io.substrait.proto.AggregateRel.Grouping value) { if (groupingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupingsIsMutable(); groupings_.set(index, value); onChanged(); } else { groupingsBuilder_.setMessage(index, value); } return this; } /** *
     * A list of zero or more grouping sets that the aggregation measures should
     * be calculated for. There must be at least one grouping set if there are no
     * measures (but it can be the empty grouping set).
     * 
* * repeated .substrait.AggregateRel.Grouping groupings = 3; */ public Builder setGroupings( int index, io.substrait.proto.AggregateRel.Grouping.Builder builderForValue) { if (groupingsBuilder_ == null) { ensureGroupingsIsMutable(); groupings_.set(index, builderForValue.build()); onChanged(); } else { groupingsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * A list of zero or more grouping sets that the aggregation measures should
     * be calculated for. There must be at least one grouping set if there are no
     * measures (but it can be the empty grouping set).
     * 
* * repeated .substrait.AggregateRel.Grouping groupings = 3; */ public Builder addGroupings(io.substrait.proto.AggregateRel.Grouping value) { if (groupingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupingsIsMutable(); groupings_.add(value); onChanged(); } else { groupingsBuilder_.addMessage(value); } return this; } /** *
     * A list of zero or more grouping sets that the aggregation measures should
     * be calculated for. There must be at least one grouping set if there are no
     * measures (but it can be the empty grouping set).
     * 
* * repeated .substrait.AggregateRel.Grouping groupings = 3; */ public Builder addGroupings( int index, io.substrait.proto.AggregateRel.Grouping value) { if (groupingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupingsIsMutable(); groupings_.add(index, value); onChanged(); } else { groupingsBuilder_.addMessage(index, value); } return this; } /** *
     * A list of zero or more grouping sets that the aggregation measures should
     * be calculated for. There must be at least one grouping set if there are no
     * measures (but it can be the empty grouping set).
     * 
* * repeated .substrait.AggregateRel.Grouping groupings = 3; */ public Builder addGroupings( io.substrait.proto.AggregateRel.Grouping.Builder builderForValue) { if (groupingsBuilder_ == null) { ensureGroupingsIsMutable(); groupings_.add(builderForValue.build()); onChanged(); } else { groupingsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * A list of zero or more grouping sets that the aggregation measures should
     * be calculated for. There must be at least one grouping set if there are no
     * measures (but it can be the empty grouping set).
     * 
* * repeated .substrait.AggregateRel.Grouping groupings = 3; */ public Builder addGroupings( int index, io.substrait.proto.AggregateRel.Grouping.Builder builderForValue) { if (groupingsBuilder_ == null) { ensureGroupingsIsMutable(); groupings_.add(index, builderForValue.build()); onChanged(); } else { groupingsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * A list of zero or more grouping sets that the aggregation measures should
     * be calculated for. There must be at least one grouping set if there are no
     * measures (but it can be the empty grouping set).
     * 
* * repeated .substrait.AggregateRel.Grouping groupings = 3; */ public Builder addAllGroupings( java.lang.Iterable values) { if (groupingsBuilder_ == null) { ensureGroupingsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, groupings_); onChanged(); } else { groupingsBuilder_.addAllMessages(values); } return this; } /** *
     * A list of zero or more grouping sets that the aggregation measures should
     * be calculated for. There must be at least one grouping set if there are no
     * measures (but it can be the empty grouping set).
     * 
* * repeated .substrait.AggregateRel.Grouping groupings = 3; */ public Builder clearGroupings() { if (groupingsBuilder_ == null) { groupings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { groupingsBuilder_.clear(); } return this; } /** *
     * A list of zero or more grouping sets that the aggregation measures should
     * be calculated for. There must be at least one grouping set if there are no
     * measures (but it can be the empty grouping set).
     * 
* * repeated .substrait.AggregateRel.Grouping groupings = 3; */ public Builder removeGroupings(int index) { if (groupingsBuilder_ == null) { ensureGroupingsIsMutable(); groupings_.remove(index); onChanged(); } else { groupingsBuilder_.remove(index); } return this; } /** *
     * A list of zero or more grouping sets that the aggregation measures should
     * be calculated for. There must be at least one grouping set if there are no
     * measures (but it can be the empty grouping set).
     * 
* * repeated .substrait.AggregateRel.Grouping groupings = 3; */ public io.substrait.proto.AggregateRel.Grouping.Builder getGroupingsBuilder( int index) { return getGroupingsFieldBuilder().getBuilder(index); } /** *
     * A list of zero or more grouping sets that the aggregation measures should
     * be calculated for. There must be at least one grouping set if there are no
     * measures (but it can be the empty grouping set).
     * 
* * repeated .substrait.AggregateRel.Grouping groupings = 3; */ public io.substrait.proto.AggregateRel.GroupingOrBuilder getGroupingsOrBuilder( int index) { if (groupingsBuilder_ == null) { return groupings_.get(index); } else { return groupingsBuilder_.getMessageOrBuilder(index); } } /** *
     * A list of zero or more grouping sets that the aggregation measures should
     * be calculated for. There must be at least one grouping set if there are no
     * measures (but it can be the empty grouping set).
     * 
* * repeated .substrait.AggregateRel.Grouping groupings = 3; */ public java.util.List getGroupingsOrBuilderList() { if (groupingsBuilder_ != null) { return groupingsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(groupings_); } } /** *
     * A list of zero or more grouping sets that the aggregation measures should
     * be calculated for. There must be at least one grouping set if there are no
     * measures (but it can be the empty grouping set).
     * 
* * repeated .substrait.AggregateRel.Grouping groupings = 3; */ public io.substrait.proto.AggregateRel.Grouping.Builder addGroupingsBuilder() { return getGroupingsFieldBuilder().addBuilder( io.substrait.proto.AggregateRel.Grouping.getDefaultInstance()); } /** *
     * A list of zero or more grouping sets that the aggregation measures should
     * be calculated for. There must be at least one grouping set if there are no
     * measures (but it can be the empty grouping set).
     * 
* * repeated .substrait.AggregateRel.Grouping groupings = 3; */ public io.substrait.proto.AggregateRel.Grouping.Builder addGroupingsBuilder( int index) { return getGroupingsFieldBuilder().addBuilder( index, io.substrait.proto.AggregateRel.Grouping.getDefaultInstance()); } /** *
     * A list of zero or more grouping sets that the aggregation measures should
     * be calculated for. There must be at least one grouping set if there are no
     * measures (but it can be the empty grouping set).
     * 
* * repeated .substrait.AggregateRel.Grouping groupings = 3; */ public java.util.List getGroupingsBuilderList() { return getGroupingsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.AggregateRel.Grouping, io.substrait.proto.AggregateRel.Grouping.Builder, io.substrait.proto.AggregateRel.GroupingOrBuilder> getGroupingsFieldBuilder() { if (groupingsBuilder_ == null) { groupingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.AggregateRel.Grouping, io.substrait.proto.AggregateRel.Grouping.Builder, io.substrait.proto.AggregateRel.GroupingOrBuilder>( groupings_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); groupings_ = null; } return groupingsBuilder_; } private java.util.List measures_ = java.util.Collections.emptyList(); private void ensureMeasuresIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { measures_ = new java.util.ArrayList(measures_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.AggregateRel.Measure, io.substrait.proto.AggregateRel.Measure.Builder, io.substrait.proto.AggregateRel.MeasureOrBuilder> measuresBuilder_; /** *
     * A list of one or more aggregate expressions along with an optional filter.
     * Required if there are no groupings.
     * 
* * repeated .substrait.AggregateRel.Measure measures = 4; */ public java.util.List getMeasuresList() { if (measuresBuilder_ == null) { return java.util.Collections.unmodifiableList(measures_); } else { return measuresBuilder_.getMessageList(); } } /** *
     * A list of one or more aggregate expressions along with an optional filter.
     * Required if there are no groupings.
     * 
* * repeated .substrait.AggregateRel.Measure measures = 4; */ public int getMeasuresCount() { if (measuresBuilder_ == null) { return measures_.size(); } else { return measuresBuilder_.getCount(); } } /** *
     * A list of one or more aggregate expressions along with an optional filter.
     * Required if there are no groupings.
     * 
* * repeated .substrait.AggregateRel.Measure measures = 4; */ public io.substrait.proto.AggregateRel.Measure getMeasures(int index) { if (measuresBuilder_ == null) { return measures_.get(index); } else { return measuresBuilder_.getMessage(index); } } /** *
     * A list of one or more aggregate expressions along with an optional filter.
     * Required if there are no groupings.
     * 
* * repeated .substrait.AggregateRel.Measure measures = 4; */ public Builder setMeasures( int index, io.substrait.proto.AggregateRel.Measure value) { if (measuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMeasuresIsMutable(); measures_.set(index, value); onChanged(); } else { measuresBuilder_.setMessage(index, value); } return this; } /** *
     * A list of one or more aggregate expressions along with an optional filter.
     * Required if there are no groupings.
     * 
* * repeated .substrait.AggregateRel.Measure measures = 4; */ public Builder setMeasures( int index, io.substrait.proto.AggregateRel.Measure.Builder builderForValue) { if (measuresBuilder_ == null) { ensureMeasuresIsMutable(); measures_.set(index, builderForValue.build()); onChanged(); } else { measuresBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * A list of one or more aggregate expressions along with an optional filter.
     * Required if there are no groupings.
     * 
* * repeated .substrait.AggregateRel.Measure measures = 4; */ public Builder addMeasures(io.substrait.proto.AggregateRel.Measure value) { if (measuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMeasuresIsMutable(); measures_.add(value); onChanged(); } else { measuresBuilder_.addMessage(value); } return this; } /** *
     * A list of one or more aggregate expressions along with an optional filter.
     * Required if there are no groupings.
     * 
* * repeated .substrait.AggregateRel.Measure measures = 4; */ public Builder addMeasures( int index, io.substrait.proto.AggregateRel.Measure value) { if (measuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMeasuresIsMutable(); measures_.add(index, value); onChanged(); } else { measuresBuilder_.addMessage(index, value); } return this; } /** *
     * A list of one or more aggregate expressions along with an optional filter.
     * Required if there are no groupings.
     * 
* * repeated .substrait.AggregateRel.Measure measures = 4; */ public Builder addMeasures( io.substrait.proto.AggregateRel.Measure.Builder builderForValue) { if (measuresBuilder_ == null) { ensureMeasuresIsMutable(); measures_.add(builderForValue.build()); onChanged(); } else { measuresBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * A list of one or more aggregate expressions along with an optional filter.
     * Required if there are no groupings.
     * 
* * repeated .substrait.AggregateRel.Measure measures = 4; */ public Builder addMeasures( int index, io.substrait.proto.AggregateRel.Measure.Builder builderForValue) { if (measuresBuilder_ == null) { ensureMeasuresIsMutable(); measures_.add(index, builderForValue.build()); onChanged(); } else { measuresBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * A list of one or more aggregate expressions along with an optional filter.
     * Required if there are no groupings.
     * 
* * repeated .substrait.AggregateRel.Measure measures = 4; */ public Builder addAllMeasures( java.lang.Iterable values) { if (measuresBuilder_ == null) { ensureMeasuresIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, measures_); onChanged(); } else { measuresBuilder_.addAllMessages(values); } return this; } /** *
     * A list of one or more aggregate expressions along with an optional filter.
     * Required if there are no groupings.
     * 
* * repeated .substrait.AggregateRel.Measure measures = 4; */ public Builder clearMeasures() { if (measuresBuilder_ == null) { measures_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { measuresBuilder_.clear(); } return this; } /** *
     * A list of one or more aggregate expressions along with an optional filter.
     * Required if there are no groupings.
     * 
* * repeated .substrait.AggregateRel.Measure measures = 4; */ public Builder removeMeasures(int index) { if (measuresBuilder_ == null) { ensureMeasuresIsMutable(); measures_.remove(index); onChanged(); } else { measuresBuilder_.remove(index); } return this; } /** *
     * A list of one or more aggregate expressions along with an optional filter.
     * Required if there are no groupings.
     * 
* * repeated .substrait.AggregateRel.Measure measures = 4; */ public io.substrait.proto.AggregateRel.Measure.Builder getMeasuresBuilder( int index) { return getMeasuresFieldBuilder().getBuilder(index); } /** *
     * A list of one or more aggregate expressions along with an optional filter.
     * Required if there are no groupings.
     * 
* * repeated .substrait.AggregateRel.Measure measures = 4; */ public io.substrait.proto.AggregateRel.MeasureOrBuilder getMeasuresOrBuilder( int index) { if (measuresBuilder_ == null) { return measures_.get(index); } else { return measuresBuilder_.getMessageOrBuilder(index); } } /** *
     * A list of one or more aggregate expressions along with an optional filter.
     * Required if there are no groupings.
     * 
* * repeated .substrait.AggregateRel.Measure measures = 4; */ public java.util.List getMeasuresOrBuilderList() { if (measuresBuilder_ != null) { return measuresBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(measures_); } } /** *
     * A list of one or more aggregate expressions along with an optional filter.
     * Required if there are no groupings.
     * 
* * repeated .substrait.AggregateRel.Measure measures = 4; */ public io.substrait.proto.AggregateRel.Measure.Builder addMeasuresBuilder() { return getMeasuresFieldBuilder().addBuilder( io.substrait.proto.AggregateRel.Measure.getDefaultInstance()); } /** *
     * A list of one or more aggregate expressions along with an optional filter.
     * Required if there are no groupings.
     * 
* * repeated .substrait.AggregateRel.Measure measures = 4; */ public io.substrait.proto.AggregateRel.Measure.Builder addMeasuresBuilder( int index) { return getMeasuresFieldBuilder().addBuilder( index, io.substrait.proto.AggregateRel.Measure.getDefaultInstance()); } /** *
     * A list of one or more aggregate expressions along with an optional filter.
     * Required if there are no groupings.
     * 
* * repeated .substrait.AggregateRel.Measure measures = 4; */ public java.util.List getMeasuresBuilderList() { return getMeasuresFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.AggregateRel.Measure, io.substrait.proto.AggregateRel.Measure.Builder, io.substrait.proto.AggregateRel.MeasureOrBuilder> getMeasuresFieldBuilder() { if (measuresBuilder_ == null) { measuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.AggregateRel.Measure, io.substrait.proto.AggregateRel.Measure.Builder, io.substrait.proto.AggregateRel.MeasureOrBuilder>( measures_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); measures_ = null; } return measuresBuilder_; } private java.util.List groupingExpressions_ = java.util.Collections.emptyList(); private void ensureGroupingExpressionsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { groupingExpressions_ = new java.util.ArrayList(groupingExpressions_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> groupingExpressionsBuilder_; /** *
     * A list of zero or more grouping expressions that grouping sets (i.e.,
     * `Grouping` messages in the `groupings` field) can reference. Each
     * expression in this list must be referred to by at least one
     * `Grouping.expression_references`.
     * 
* * repeated .substrait.Expression grouping_expressions = 5; */ public java.util.List getGroupingExpressionsList() { if (groupingExpressionsBuilder_ == null) { return java.util.Collections.unmodifiableList(groupingExpressions_); } else { return groupingExpressionsBuilder_.getMessageList(); } } /** *
     * A list of zero or more grouping expressions that grouping sets (i.e.,
     * `Grouping` messages in the `groupings` field) can reference. Each
     * expression in this list must be referred to by at least one
     * `Grouping.expression_references`.
     * 
* * repeated .substrait.Expression grouping_expressions = 5; */ public int getGroupingExpressionsCount() { if (groupingExpressionsBuilder_ == null) { return groupingExpressions_.size(); } else { return groupingExpressionsBuilder_.getCount(); } } /** *
     * A list of zero or more grouping expressions that grouping sets (i.e.,
     * `Grouping` messages in the `groupings` field) can reference. Each
     * expression in this list must be referred to by at least one
     * `Grouping.expression_references`.
     * 
* * repeated .substrait.Expression grouping_expressions = 5; */ public io.substrait.proto.Expression getGroupingExpressions(int index) { if (groupingExpressionsBuilder_ == null) { return groupingExpressions_.get(index); } else { return groupingExpressionsBuilder_.getMessage(index); } } /** *
     * A list of zero or more grouping expressions that grouping sets (i.e.,
     * `Grouping` messages in the `groupings` field) can reference. Each
     * expression in this list must be referred to by at least one
     * `Grouping.expression_references`.
     * 
* * repeated .substrait.Expression grouping_expressions = 5; */ public Builder setGroupingExpressions( int index, io.substrait.proto.Expression value) { if (groupingExpressionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupingExpressionsIsMutable(); groupingExpressions_.set(index, value); onChanged(); } else { groupingExpressionsBuilder_.setMessage(index, value); } return this; } /** *
     * A list of zero or more grouping expressions that grouping sets (i.e.,
     * `Grouping` messages in the `groupings` field) can reference. Each
     * expression in this list must be referred to by at least one
     * `Grouping.expression_references`.
     * 
* * repeated .substrait.Expression grouping_expressions = 5; */ public Builder setGroupingExpressions( int index, io.substrait.proto.Expression.Builder builderForValue) { if (groupingExpressionsBuilder_ == null) { ensureGroupingExpressionsIsMutable(); groupingExpressions_.set(index, builderForValue.build()); onChanged(); } else { groupingExpressionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * A list of zero or more grouping expressions that grouping sets (i.e.,
     * `Grouping` messages in the `groupings` field) can reference. Each
     * expression in this list must be referred to by at least one
     * `Grouping.expression_references`.
     * 
* * repeated .substrait.Expression grouping_expressions = 5; */ public Builder addGroupingExpressions(io.substrait.proto.Expression value) { if (groupingExpressionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupingExpressionsIsMutable(); groupingExpressions_.add(value); onChanged(); } else { groupingExpressionsBuilder_.addMessage(value); } return this; } /** *
     * A list of zero or more grouping expressions that grouping sets (i.e.,
     * `Grouping` messages in the `groupings` field) can reference. Each
     * expression in this list must be referred to by at least one
     * `Grouping.expression_references`.
     * 
* * repeated .substrait.Expression grouping_expressions = 5; */ public Builder addGroupingExpressions( int index, io.substrait.proto.Expression value) { if (groupingExpressionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupingExpressionsIsMutable(); groupingExpressions_.add(index, value); onChanged(); } else { groupingExpressionsBuilder_.addMessage(index, value); } return this; } /** *
     * A list of zero or more grouping expressions that grouping sets (i.e.,
     * `Grouping` messages in the `groupings` field) can reference. Each
     * expression in this list must be referred to by at least one
     * `Grouping.expression_references`.
     * 
* * repeated .substrait.Expression grouping_expressions = 5; */ public Builder addGroupingExpressions( io.substrait.proto.Expression.Builder builderForValue) { if (groupingExpressionsBuilder_ == null) { ensureGroupingExpressionsIsMutable(); groupingExpressions_.add(builderForValue.build()); onChanged(); } else { groupingExpressionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * A list of zero or more grouping expressions that grouping sets (i.e.,
     * `Grouping` messages in the `groupings` field) can reference. Each
     * expression in this list must be referred to by at least one
     * `Grouping.expression_references`.
     * 
* * repeated .substrait.Expression grouping_expressions = 5; */ public Builder addGroupingExpressions( int index, io.substrait.proto.Expression.Builder builderForValue) { if (groupingExpressionsBuilder_ == null) { ensureGroupingExpressionsIsMutable(); groupingExpressions_.add(index, builderForValue.build()); onChanged(); } else { groupingExpressionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * A list of zero or more grouping expressions that grouping sets (i.e.,
     * `Grouping` messages in the `groupings` field) can reference. Each
     * expression in this list must be referred to by at least one
     * `Grouping.expression_references`.
     * 
* * repeated .substrait.Expression grouping_expressions = 5; */ public Builder addAllGroupingExpressions( java.lang.Iterable values) { if (groupingExpressionsBuilder_ == null) { ensureGroupingExpressionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, groupingExpressions_); onChanged(); } else { groupingExpressionsBuilder_.addAllMessages(values); } return this; } /** *
     * A list of zero or more grouping expressions that grouping sets (i.e.,
     * `Grouping` messages in the `groupings` field) can reference. Each
     * expression in this list must be referred to by at least one
     * `Grouping.expression_references`.
     * 
* * repeated .substrait.Expression grouping_expressions = 5; */ public Builder clearGroupingExpressions() { if (groupingExpressionsBuilder_ == null) { groupingExpressions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { groupingExpressionsBuilder_.clear(); } return this; } /** *
     * A list of zero or more grouping expressions that grouping sets (i.e.,
     * `Grouping` messages in the `groupings` field) can reference. Each
     * expression in this list must be referred to by at least one
     * `Grouping.expression_references`.
     * 
* * repeated .substrait.Expression grouping_expressions = 5; */ public Builder removeGroupingExpressions(int index) { if (groupingExpressionsBuilder_ == null) { ensureGroupingExpressionsIsMutable(); groupingExpressions_.remove(index); onChanged(); } else { groupingExpressionsBuilder_.remove(index); } return this; } /** *
     * A list of zero or more grouping expressions that grouping sets (i.e.,
     * `Grouping` messages in the `groupings` field) can reference. Each
     * expression in this list must be referred to by at least one
     * `Grouping.expression_references`.
     * 
* * repeated .substrait.Expression grouping_expressions = 5; */ public io.substrait.proto.Expression.Builder getGroupingExpressionsBuilder( int index) { return getGroupingExpressionsFieldBuilder().getBuilder(index); } /** *
     * A list of zero or more grouping expressions that grouping sets (i.e.,
     * `Grouping` messages in the `groupings` field) can reference. Each
     * expression in this list must be referred to by at least one
     * `Grouping.expression_references`.
     * 
* * repeated .substrait.Expression grouping_expressions = 5; */ public io.substrait.proto.ExpressionOrBuilder getGroupingExpressionsOrBuilder( int index) { if (groupingExpressionsBuilder_ == null) { return groupingExpressions_.get(index); } else { return groupingExpressionsBuilder_.getMessageOrBuilder(index); } } /** *
     * A list of zero or more grouping expressions that grouping sets (i.e.,
     * `Grouping` messages in the `groupings` field) can reference. Each
     * expression in this list must be referred to by at least one
     * `Grouping.expression_references`.
     * 
* * repeated .substrait.Expression grouping_expressions = 5; */ public java.util.List getGroupingExpressionsOrBuilderList() { if (groupingExpressionsBuilder_ != null) { return groupingExpressionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(groupingExpressions_); } } /** *
     * A list of zero or more grouping expressions that grouping sets (i.e.,
     * `Grouping` messages in the `groupings` field) can reference. Each
     * expression in this list must be referred to by at least one
     * `Grouping.expression_references`.
     * 
* * repeated .substrait.Expression grouping_expressions = 5; */ public io.substrait.proto.Expression.Builder addGroupingExpressionsBuilder() { return getGroupingExpressionsFieldBuilder().addBuilder( io.substrait.proto.Expression.getDefaultInstance()); } /** *
     * A list of zero or more grouping expressions that grouping sets (i.e.,
     * `Grouping` messages in the `groupings` field) can reference. Each
     * expression in this list must be referred to by at least one
     * `Grouping.expression_references`.
     * 
* * repeated .substrait.Expression grouping_expressions = 5; */ public io.substrait.proto.Expression.Builder addGroupingExpressionsBuilder( int index) { return getGroupingExpressionsFieldBuilder().addBuilder( index, io.substrait.proto.Expression.getDefaultInstance()); } /** *
     * A list of zero or more grouping expressions that grouping sets (i.e.,
     * `Grouping` messages in the `groupings` field) can reference. Each
     * expression in this list must be referred to by at least one
     * `Grouping.expression_references`.
     * 
* * repeated .substrait.Expression grouping_expressions = 5; */ public java.util.List getGroupingExpressionsBuilderList() { return getGroupingExpressionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> getGroupingExpressionsFieldBuilder() { if (groupingExpressionsBuilder_ == null) { groupingExpressionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>( groupingExpressions_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); groupingExpressions_ = null; } return groupingExpressionsBuilder_; } private io.substrait.proto.AdvancedExtension advancedExtension_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.AdvancedExtension, io.substrait.proto.AdvancedExtension.Builder, io.substrait.proto.AdvancedExtensionOrBuilder> advancedExtensionBuilder_; /** * .substrait.extensions.AdvancedExtension advanced_extension = 10; * @return Whether the advancedExtension field is set. */ public boolean hasAdvancedExtension() { return ((bitField0_ & 0x00000020) != 0); } /** * .substrait.extensions.AdvancedExtension advanced_extension = 10; * @return The advancedExtension. */ public io.substrait.proto.AdvancedExtension getAdvancedExtension() { if (advancedExtensionBuilder_ == null) { return advancedExtension_ == null ? io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtension_; } else { return advancedExtensionBuilder_.getMessage(); } } /** * .substrait.extensions.AdvancedExtension advanced_extension = 10; */ public Builder setAdvancedExtension(io.substrait.proto.AdvancedExtension value) { if (advancedExtensionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } advancedExtension_ = value; } else { advancedExtensionBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * .substrait.extensions.AdvancedExtension advanced_extension = 10; */ public Builder setAdvancedExtension( io.substrait.proto.AdvancedExtension.Builder builderForValue) { if (advancedExtensionBuilder_ == null) { advancedExtension_ = builderForValue.build(); } else { advancedExtensionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * .substrait.extensions.AdvancedExtension advanced_extension = 10; */ public Builder mergeAdvancedExtension(io.substrait.proto.AdvancedExtension value) { if (advancedExtensionBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && advancedExtension_ != null && advancedExtension_ != io.substrait.proto.AdvancedExtension.getDefaultInstance()) { getAdvancedExtensionBuilder().mergeFrom(value); } else { advancedExtension_ = value; } } else { advancedExtensionBuilder_.mergeFrom(value); } if (advancedExtension_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** * .substrait.extensions.AdvancedExtension advanced_extension = 10; */ public Builder clearAdvancedExtension() { bitField0_ = (bitField0_ & ~0x00000020); advancedExtension_ = null; if (advancedExtensionBuilder_ != null) { advancedExtensionBuilder_.dispose(); advancedExtensionBuilder_ = null; } onChanged(); return this; } /** * .substrait.extensions.AdvancedExtension advanced_extension = 10; */ public io.substrait.proto.AdvancedExtension.Builder getAdvancedExtensionBuilder() { bitField0_ |= 0x00000020; onChanged(); return getAdvancedExtensionFieldBuilder().getBuilder(); } /** * .substrait.extensions.AdvancedExtension advanced_extension = 10; */ public io.substrait.proto.AdvancedExtensionOrBuilder getAdvancedExtensionOrBuilder() { if (advancedExtensionBuilder_ != null) { return advancedExtensionBuilder_.getMessageOrBuilder(); } else { return advancedExtension_ == null ? io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtension_; } } /** * .substrait.extensions.AdvancedExtension advanced_extension = 10; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.AdvancedExtension, io.substrait.proto.AdvancedExtension.Builder, io.substrait.proto.AdvancedExtensionOrBuilder> getAdvancedExtensionFieldBuilder() { if (advancedExtensionBuilder_ == null) { advancedExtensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.AdvancedExtension, io.substrait.proto.AdvancedExtension.Builder, io.substrait.proto.AdvancedExtensionOrBuilder>( getAdvancedExtension(), getParentForChildren(), isClean()); advancedExtension_ = null; } return advancedExtensionBuilder_; } @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.AggregateRel) } // @@protoc_insertion_point(class_scope:substrait.AggregateRel) private static final io.substrait.proto.AggregateRel DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.AggregateRel(); } public static io.substrait.proto.AggregateRel getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AggregateRel 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.AggregateRel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy