io.substrait.proto.ExchangeRel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Create a well-defined, cross-language specification for data compute operations
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: substrait/algebra.proto
// Protobuf Java Version: 3.25.5
package io.substrait.proto;
/**
*
* A redistribution operation
*
*
* Protobuf type {@code substrait.ExchangeRel}
*/
public final class ExchangeRel extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.ExchangeRel)
ExchangeRelOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExchangeRel.newBuilder() to construct.
private ExchangeRel(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExchangeRel() {
targets_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExchangeRel();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ExchangeRel.class, io.substrait.proto.ExchangeRel.Builder.class);
}
public interface ScatterFieldsOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.ExchangeRel.ScatterFields)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .substrait.Expression.FieldReference fields = 1;
*/
java.util.List
getFieldsList();
/**
* repeated .substrait.Expression.FieldReference fields = 1;
*/
io.substrait.proto.Expression.FieldReference getFields(int index);
/**
* repeated .substrait.Expression.FieldReference fields = 1;
*/
int getFieldsCount();
/**
* repeated .substrait.Expression.FieldReference fields = 1;
*/
java.util.List extends io.substrait.proto.Expression.FieldReferenceOrBuilder>
getFieldsOrBuilderList();
/**
* repeated .substrait.Expression.FieldReference fields = 1;
*/
io.substrait.proto.Expression.FieldReferenceOrBuilder getFieldsOrBuilder(
int index);
}
/**
* Protobuf type {@code substrait.ExchangeRel.ScatterFields}
*/
public static final class ScatterFields extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.ExchangeRel.ScatterFields)
ScatterFieldsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ScatterFields.newBuilder() to construct.
private ScatterFields(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ScatterFields() {
fields_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ScatterFields();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_ScatterFields_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_ScatterFields_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ExchangeRel.ScatterFields.class, io.substrait.proto.ExchangeRel.ScatterFields.Builder.class);
}
public static final int FIELDS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List fields_;
/**
* repeated .substrait.Expression.FieldReference fields = 1;
*/
@java.lang.Override
public java.util.List getFieldsList() {
return fields_;
}
/**
* repeated .substrait.Expression.FieldReference fields = 1;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.Expression.FieldReferenceOrBuilder>
getFieldsOrBuilderList() {
return fields_;
}
/**
* repeated .substrait.Expression.FieldReference fields = 1;
*/
@java.lang.Override
public int getFieldsCount() {
return fields_.size();
}
/**
* repeated .substrait.Expression.FieldReference fields = 1;
*/
@java.lang.Override
public io.substrait.proto.Expression.FieldReference getFields(int index) {
return fields_.get(index);
}
/**
* repeated .substrait.Expression.FieldReference fields = 1;
*/
@java.lang.Override
public io.substrait.proto.Expression.FieldReferenceOrBuilder getFieldsOrBuilder(
int index) {
return fields_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < fields_.size(); i++) {
output.writeMessage(1, fields_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < fields_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, fields_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.substrait.proto.ExchangeRel.ScatterFields)) {
return super.equals(obj);
}
io.substrait.proto.ExchangeRel.ScatterFields other = (io.substrait.proto.ExchangeRel.ScatterFields) obj;
if (!getFieldsList()
.equals(other.getFieldsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getFieldsCount() > 0) {
hash = (37 * hash) + FIELDS_FIELD_NUMBER;
hash = (53 * hash) + getFieldsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.ExchangeRel.ScatterFields parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExchangeRel.ScatterFields 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.ExchangeRel.ScatterFields parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExchangeRel.ScatterFields 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.ExchangeRel.ScatterFields parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExchangeRel.ScatterFields parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ExchangeRel.ScatterFields parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ExchangeRel.ScatterFields 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.ExchangeRel.ScatterFields parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.ExchangeRel.ScatterFields 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.ExchangeRel.ScatterFields parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ExchangeRel.ScatterFields 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.ExchangeRel.ScatterFields 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.ExchangeRel.ScatterFields}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.ExchangeRel.ScatterFields)
io.substrait.proto.ExchangeRel.ScatterFieldsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_ScatterFields_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_ScatterFields_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ExchangeRel.ScatterFields.class, io.substrait.proto.ExchangeRel.ScatterFields.Builder.class);
}
// Construct using io.substrait.proto.ExchangeRel.ScatterFields.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (fieldsBuilder_ == null) {
fields_ = java.util.Collections.emptyList();
} else {
fields_ = null;
fieldsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_ScatterFields_descriptor;
}
@java.lang.Override
public io.substrait.proto.ExchangeRel.ScatterFields getDefaultInstanceForType() {
return io.substrait.proto.ExchangeRel.ScatterFields.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.ExchangeRel.ScatterFields build() {
io.substrait.proto.ExchangeRel.ScatterFields result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.ExchangeRel.ScatterFields buildPartial() {
io.substrait.proto.ExchangeRel.ScatterFields result = new io.substrait.proto.ExchangeRel.ScatterFields(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.substrait.proto.ExchangeRel.ScatterFields result) {
if (fieldsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
fields_ = java.util.Collections.unmodifiableList(fields_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.fields_ = fields_;
} else {
result.fields_ = fieldsBuilder_.build();
}
}
private void buildPartial0(io.substrait.proto.ExchangeRel.ScatterFields result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.substrait.proto.ExchangeRel.ScatterFields) {
return mergeFrom((io.substrait.proto.ExchangeRel.ScatterFields)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.ExchangeRel.ScatterFields other) {
if (other == io.substrait.proto.ExchangeRel.ScatterFields.getDefaultInstance()) return this;
if (fieldsBuilder_ == null) {
if (!other.fields_.isEmpty()) {
if (fields_.isEmpty()) {
fields_ = other.fields_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureFieldsIsMutable();
fields_.addAll(other.fields_);
}
onChanged();
}
} else {
if (!other.fields_.isEmpty()) {
if (fieldsBuilder_.isEmpty()) {
fieldsBuilder_.dispose();
fieldsBuilder_ = null;
fields_ = other.fields_;
bitField0_ = (bitField0_ & ~0x00000001);
fieldsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFieldsFieldBuilder() : null;
} else {
fieldsBuilder_.addAllMessages(other.fields_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.substrait.proto.Expression.FieldReference m =
input.readMessage(
io.substrait.proto.Expression.FieldReference.parser(),
extensionRegistry);
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(m);
} else {
fieldsBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List fields_ =
java.util.Collections.emptyList();
private void ensureFieldsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
fields_ = new java.util.ArrayList(fields_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression.FieldReference, io.substrait.proto.Expression.FieldReference.Builder, io.substrait.proto.Expression.FieldReferenceOrBuilder> fieldsBuilder_;
/**
* repeated .substrait.Expression.FieldReference fields = 1;
*/
public java.util.List getFieldsList() {
if (fieldsBuilder_ == null) {
return java.util.Collections.unmodifiableList(fields_);
} else {
return fieldsBuilder_.getMessageList();
}
}
/**
* repeated .substrait.Expression.FieldReference fields = 1;
*/
public int getFieldsCount() {
if (fieldsBuilder_ == null) {
return fields_.size();
} else {
return fieldsBuilder_.getCount();
}
}
/**
* repeated .substrait.Expression.FieldReference fields = 1;
*/
public io.substrait.proto.Expression.FieldReference getFields(int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index);
} else {
return fieldsBuilder_.getMessage(index);
}
}
/**
* repeated .substrait.Expression.FieldReference fields = 1;
*/
public Builder setFields(
int index, io.substrait.proto.Expression.FieldReference value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.set(index, value);
onChanged();
} else {
fieldsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .substrait.Expression.FieldReference fields = 1;
*/
public Builder setFields(
int index, io.substrait.proto.Expression.FieldReference.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.set(index, builderForValue.build());
onChanged();
} else {
fieldsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .substrait.Expression.FieldReference fields = 1;
*/
public Builder addFields(io.substrait.proto.Expression.FieldReference value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.add(value);
onChanged();
} else {
fieldsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .substrait.Expression.FieldReference fields = 1;
*/
public Builder addFields(
int index, io.substrait.proto.Expression.FieldReference value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.add(index, value);
onChanged();
} else {
fieldsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .substrait.Expression.FieldReference fields = 1;
*/
public Builder addFields(
io.substrait.proto.Expression.FieldReference.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(builderForValue.build());
onChanged();
} else {
fieldsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .substrait.Expression.FieldReference fields = 1;
*/
public Builder addFields(
int index, io.substrait.proto.Expression.FieldReference.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(index, builderForValue.build());
onChanged();
} else {
fieldsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .substrait.Expression.FieldReference fields = 1;
*/
public Builder addAllFields(
java.lang.Iterable extends io.substrait.proto.Expression.FieldReference> values) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fields_);
onChanged();
} else {
fieldsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .substrait.Expression.FieldReference fields = 1;
*/
public Builder clearFields() {
if (fieldsBuilder_ == null) {
fields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
fieldsBuilder_.clear();
}
return this;
}
/**
* repeated .substrait.Expression.FieldReference fields = 1;
*/
public Builder removeFields(int index) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.remove(index);
onChanged();
} else {
fieldsBuilder_.remove(index);
}
return this;
}
/**
* repeated .substrait.Expression.FieldReference fields = 1;
*/
public io.substrait.proto.Expression.FieldReference.Builder getFieldsBuilder(
int index) {
return getFieldsFieldBuilder().getBuilder(index);
}
/**
* repeated .substrait.Expression.FieldReference fields = 1;
*/
public io.substrait.proto.Expression.FieldReferenceOrBuilder getFieldsOrBuilder(
int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index); } else {
return fieldsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .substrait.Expression.FieldReference fields = 1;
*/
public java.util.List extends io.substrait.proto.Expression.FieldReferenceOrBuilder>
getFieldsOrBuilderList() {
if (fieldsBuilder_ != null) {
return fieldsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(fields_);
}
}
/**
* repeated .substrait.Expression.FieldReference fields = 1;
*/
public io.substrait.proto.Expression.FieldReference.Builder addFieldsBuilder() {
return getFieldsFieldBuilder().addBuilder(
io.substrait.proto.Expression.FieldReference.getDefaultInstance());
}
/**
* repeated .substrait.Expression.FieldReference fields = 1;
*/
public io.substrait.proto.Expression.FieldReference.Builder addFieldsBuilder(
int index) {
return getFieldsFieldBuilder().addBuilder(
index, io.substrait.proto.Expression.FieldReference.getDefaultInstance());
}
/**
* repeated .substrait.Expression.FieldReference fields = 1;
*/
public java.util.List
getFieldsBuilderList() {
return getFieldsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression.FieldReference, io.substrait.proto.Expression.FieldReference.Builder, io.substrait.proto.Expression.FieldReferenceOrBuilder>
getFieldsFieldBuilder() {
if (fieldsBuilder_ == null) {
fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression.FieldReference, io.substrait.proto.Expression.FieldReference.Builder, io.substrait.proto.Expression.FieldReferenceOrBuilder>(
fields_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
fields_ = null;
}
return fieldsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:substrait.ExchangeRel.ScatterFields)
}
// @@protoc_insertion_point(class_scope:substrait.ExchangeRel.ScatterFields)
private static final io.substrait.proto.ExchangeRel.ScatterFields DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.ExchangeRel.ScatterFields();
}
public static io.substrait.proto.ExchangeRel.ScatterFields getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ScatterFields 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.ExchangeRel.ScatterFields getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SingleBucketExpressionOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.ExchangeRel.SingleBucketExpression)
com.google.protobuf.MessageOrBuilder {
/**
* .substrait.Expression expression = 1;
* @return Whether the expression field is set.
*/
boolean hasExpression();
/**
* .substrait.Expression expression = 1;
* @return The expression.
*/
io.substrait.proto.Expression getExpression();
/**
* .substrait.Expression expression = 1;
*/
io.substrait.proto.ExpressionOrBuilder getExpressionOrBuilder();
}
/**
*
* Returns a single bucket number per record.
*
*
* Protobuf type {@code substrait.ExchangeRel.SingleBucketExpression}
*/
public static final class SingleBucketExpression extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.ExchangeRel.SingleBucketExpression)
SingleBucketExpressionOrBuilder {
private static final long serialVersionUID = 0L;
// Use SingleBucketExpression.newBuilder() to construct.
private SingleBucketExpression(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SingleBucketExpression() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SingleBucketExpression();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_SingleBucketExpression_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_SingleBucketExpression_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ExchangeRel.SingleBucketExpression.class, io.substrait.proto.ExchangeRel.SingleBucketExpression.Builder.class);
}
private int bitField0_;
public static final int EXPRESSION_FIELD_NUMBER = 1;
private io.substrait.proto.Expression expression_;
/**
* .substrait.Expression expression = 1;
* @return Whether the expression field is set.
*/
@java.lang.Override
public boolean hasExpression() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .substrait.Expression expression = 1;
* @return The expression.
*/
@java.lang.Override
public io.substrait.proto.Expression getExpression() {
return expression_ == null ? io.substrait.proto.Expression.getDefaultInstance() : expression_;
}
/**
* .substrait.Expression expression = 1;
*/
@java.lang.Override
public io.substrait.proto.ExpressionOrBuilder getExpressionOrBuilder() {
return expression_ == null ? io.substrait.proto.Expression.getDefaultInstance() : expression_;
}
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, getExpression());
}
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, getExpression());
}
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.ExchangeRel.SingleBucketExpression)) {
return super.equals(obj);
}
io.substrait.proto.ExchangeRel.SingleBucketExpression other = (io.substrait.proto.ExchangeRel.SingleBucketExpression) obj;
if (hasExpression() != other.hasExpression()) return false;
if (hasExpression()) {
if (!getExpression()
.equals(other.getExpression())) 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 (hasExpression()) {
hash = (37 * hash) + EXPRESSION_FIELD_NUMBER;
hash = (53 * hash) + getExpression().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.ExchangeRel.SingleBucketExpression parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExchangeRel.SingleBucketExpression 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.ExchangeRel.SingleBucketExpression parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExchangeRel.SingleBucketExpression 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.ExchangeRel.SingleBucketExpression parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExchangeRel.SingleBucketExpression parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ExchangeRel.SingleBucketExpression parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ExchangeRel.SingleBucketExpression 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.ExchangeRel.SingleBucketExpression parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.ExchangeRel.SingleBucketExpression 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.ExchangeRel.SingleBucketExpression parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ExchangeRel.SingleBucketExpression 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.ExchangeRel.SingleBucketExpression 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;
}
/**
*
* Returns a single bucket number per record.
*
*
* Protobuf type {@code substrait.ExchangeRel.SingleBucketExpression}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.ExchangeRel.SingleBucketExpression)
io.substrait.proto.ExchangeRel.SingleBucketExpressionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_SingleBucketExpression_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_SingleBucketExpression_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ExchangeRel.SingleBucketExpression.class, io.substrait.proto.ExchangeRel.SingleBucketExpression.Builder.class);
}
// Construct using io.substrait.proto.ExchangeRel.SingleBucketExpression.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getExpressionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
expression_ = null;
if (expressionBuilder_ != null) {
expressionBuilder_.dispose();
expressionBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_SingleBucketExpression_descriptor;
}
@java.lang.Override
public io.substrait.proto.ExchangeRel.SingleBucketExpression getDefaultInstanceForType() {
return io.substrait.proto.ExchangeRel.SingleBucketExpression.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.ExchangeRel.SingleBucketExpression build() {
io.substrait.proto.ExchangeRel.SingleBucketExpression result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.ExchangeRel.SingleBucketExpression buildPartial() {
io.substrait.proto.ExchangeRel.SingleBucketExpression result = new io.substrait.proto.ExchangeRel.SingleBucketExpression(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.ExchangeRel.SingleBucketExpression result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.expression_ = expressionBuilder_ == null
? expression_
: expressionBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.substrait.proto.ExchangeRel.SingleBucketExpression) {
return mergeFrom((io.substrait.proto.ExchangeRel.SingleBucketExpression)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.ExchangeRel.SingleBucketExpression other) {
if (other == io.substrait.proto.ExchangeRel.SingleBucketExpression.getDefaultInstance()) return this;
if (other.hasExpression()) {
mergeExpression(other.getExpression());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getExpressionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private io.substrait.proto.Expression expression_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> expressionBuilder_;
/**
* .substrait.Expression expression = 1;
* @return Whether the expression field is set.
*/
public boolean hasExpression() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .substrait.Expression expression = 1;
* @return The expression.
*/
public io.substrait.proto.Expression getExpression() {
if (expressionBuilder_ == null) {
return expression_ == null ? io.substrait.proto.Expression.getDefaultInstance() : expression_;
} else {
return expressionBuilder_.getMessage();
}
}
/**
* .substrait.Expression expression = 1;
*/
public Builder setExpression(io.substrait.proto.Expression value) {
if (expressionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
expression_ = value;
} else {
expressionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .substrait.Expression expression = 1;
*/
public Builder setExpression(
io.substrait.proto.Expression.Builder builderForValue) {
if (expressionBuilder_ == null) {
expression_ = builderForValue.build();
} else {
expressionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .substrait.Expression expression = 1;
*/
public Builder mergeExpression(io.substrait.proto.Expression value) {
if (expressionBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
expression_ != null &&
expression_ != io.substrait.proto.Expression.getDefaultInstance()) {
getExpressionBuilder().mergeFrom(value);
} else {
expression_ = value;
}
} else {
expressionBuilder_.mergeFrom(value);
}
if (expression_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .substrait.Expression expression = 1;
*/
public Builder clearExpression() {
bitField0_ = (bitField0_ & ~0x00000001);
expression_ = null;
if (expressionBuilder_ != null) {
expressionBuilder_.dispose();
expressionBuilder_ = null;
}
onChanged();
return this;
}
/**
* .substrait.Expression expression = 1;
*/
public io.substrait.proto.Expression.Builder getExpressionBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getExpressionFieldBuilder().getBuilder();
}
/**
* .substrait.Expression expression = 1;
*/
public io.substrait.proto.ExpressionOrBuilder getExpressionOrBuilder() {
if (expressionBuilder_ != null) {
return expressionBuilder_.getMessageOrBuilder();
} else {
return expression_ == null ?
io.substrait.proto.Expression.getDefaultInstance() : expression_;
}
}
/**
* .substrait.Expression expression = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>
getExpressionFieldBuilder() {
if (expressionBuilder_ == null) {
expressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>(
getExpression(),
getParentForChildren(),
isClean());
expression_ = null;
}
return expressionBuilder_;
}
@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.ExchangeRel.SingleBucketExpression)
}
// @@protoc_insertion_point(class_scope:substrait.ExchangeRel.SingleBucketExpression)
private static final io.substrait.proto.ExchangeRel.SingleBucketExpression DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.ExchangeRel.SingleBucketExpression();
}
public static io.substrait.proto.ExchangeRel.SingleBucketExpression getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SingleBucketExpression 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.ExchangeRel.SingleBucketExpression getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MultiBucketExpressionOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.ExchangeRel.MultiBucketExpression)
com.google.protobuf.MessageOrBuilder {
/**
* .substrait.Expression expression = 1;
* @return Whether the expression field is set.
*/
boolean hasExpression();
/**
* .substrait.Expression expression = 1;
* @return The expression.
*/
io.substrait.proto.Expression getExpression();
/**
* .substrait.Expression expression = 1;
*/
io.substrait.proto.ExpressionOrBuilder getExpressionOrBuilder();
/**
* bool constrained_to_count = 2;
* @return The constrainedToCount.
*/
boolean getConstrainedToCount();
}
/**
*
* Returns zero or more bucket numbers per record
*
*
* Protobuf type {@code substrait.ExchangeRel.MultiBucketExpression}
*/
public static final class MultiBucketExpression extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.ExchangeRel.MultiBucketExpression)
MultiBucketExpressionOrBuilder {
private static final long serialVersionUID = 0L;
// Use MultiBucketExpression.newBuilder() to construct.
private MultiBucketExpression(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MultiBucketExpression() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MultiBucketExpression();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_MultiBucketExpression_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_MultiBucketExpression_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ExchangeRel.MultiBucketExpression.class, io.substrait.proto.ExchangeRel.MultiBucketExpression.Builder.class);
}
private int bitField0_;
public static final int EXPRESSION_FIELD_NUMBER = 1;
private io.substrait.proto.Expression expression_;
/**
* .substrait.Expression expression = 1;
* @return Whether the expression field is set.
*/
@java.lang.Override
public boolean hasExpression() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .substrait.Expression expression = 1;
* @return The expression.
*/
@java.lang.Override
public io.substrait.proto.Expression getExpression() {
return expression_ == null ? io.substrait.proto.Expression.getDefaultInstance() : expression_;
}
/**
* .substrait.Expression expression = 1;
*/
@java.lang.Override
public io.substrait.proto.ExpressionOrBuilder getExpressionOrBuilder() {
return expression_ == null ? io.substrait.proto.Expression.getDefaultInstance() : expression_;
}
public static final int CONSTRAINED_TO_COUNT_FIELD_NUMBER = 2;
private boolean constrainedToCount_ = false;
/**
* bool constrained_to_count = 2;
* @return The constrainedToCount.
*/
@java.lang.Override
public boolean getConstrainedToCount() {
return constrainedToCount_;
}
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, getExpression());
}
if (constrainedToCount_ != false) {
output.writeBool(2, constrainedToCount_);
}
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, getExpression());
}
if (constrainedToCount_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, constrainedToCount_);
}
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.ExchangeRel.MultiBucketExpression)) {
return super.equals(obj);
}
io.substrait.proto.ExchangeRel.MultiBucketExpression other = (io.substrait.proto.ExchangeRel.MultiBucketExpression) obj;
if (hasExpression() != other.hasExpression()) return false;
if (hasExpression()) {
if (!getExpression()
.equals(other.getExpression())) return false;
}
if (getConstrainedToCount()
!= other.getConstrainedToCount()) 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 (hasExpression()) {
hash = (37 * hash) + EXPRESSION_FIELD_NUMBER;
hash = (53 * hash) + getExpression().hashCode();
}
hash = (37 * hash) + CONSTRAINED_TO_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getConstrainedToCount());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.ExchangeRel.MultiBucketExpression parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExchangeRel.MultiBucketExpression 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.ExchangeRel.MultiBucketExpression parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExchangeRel.MultiBucketExpression 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.ExchangeRel.MultiBucketExpression parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExchangeRel.MultiBucketExpression parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ExchangeRel.MultiBucketExpression parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ExchangeRel.MultiBucketExpression 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.ExchangeRel.MultiBucketExpression parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.ExchangeRel.MultiBucketExpression 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.ExchangeRel.MultiBucketExpression parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ExchangeRel.MultiBucketExpression 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.ExchangeRel.MultiBucketExpression 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;
}
/**
*
* Returns zero or more bucket numbers per record
*
*
* Protobuf type {@code substrait.ExchangeRel.MultiBucketExpression}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.ExchangeRel.MultiBucketExpression)
io.substrait.proto.ExchangeRel.MultiBucketExpressionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_MultiBucketExpression_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_MultiBucketExpression_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ExchangeRel.MultiBucketExpression.class, io.substrait.proto.ExchangeRel.MultiBucketExpression.Builder.class);
}
// Construct using io.substrait.proto.ExchangeRel.MultiBucketExpression.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getExpressionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
expression_ = null;
if (expressionBuilder_ != null) {
expressionBuilder_.dispose();
expressionBuilder_ = null;
}
constrainedToCount_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_MultiBucketExpression_descriptor;
}
@java.lang.Override
public io.substrait.proto.ExchangeRel.MultiBucketExpression getDefaultInstanceForType() {
return io.substrait.proto.ExchangeRel.MultiBucketExpression.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.ExchangeRel.MultiBucketExpression build() {
io.substrait.proto.ExchangeRel.MultiBucketExpression result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.ExchangeRel.MultiBucketExpression buildPartial() {
io.substrait.proto.ExchangeRel.MultiBucketExpression result = new io.substrait.proto.ExchangeRel.MultiBucketExpression(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.ExchangeRel.MultiBucketExpression result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.expression_ = expressionBuilder_ == null
? expression_
: expressionBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.constrainedToCount_ = constrainedToCount_;
}
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.ExchangeRel.MultiBucketExpression) {
return mergeFrom((io.substrait.proto.ExchangeRel.MultiBucketExpression)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.ExchangeRel.MultiBucketExpression other) {
if (other == io.substrait.proto.ExchangeRel.MultiBucketExpression.getDefaultInstance()) return this;
if (other.hasExpression()) {
mergeExpression(other.getExpression());
}
if (other.getConstrainedToCount() != false) {
setConstrainedToCount(other.getConstrainedToCount());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getExpressionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
constrainedToCount_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private io.substrait.proto.Expression expression_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> expressionBuilder_;
/**
* .substrait.Expression expression = 1;
* @return Whether the expression field is set.
*/
public boolean hasExpression() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .substrait.Expression expression = 1;
* @return The expression.
*/
public io.substrait.proto.Expression getExpression() {
if (expressionBuilder_ == null) {
return expression_ == null ? io.substrait.proto.Expression.getDefaultInstance() : expression_;
} else {
return expressionBuilder_.getMessage();
}
}
/**
* .substrait.Expression expression = 1;
*/
public Builder setExpression(io.substrait.proto.Expression value) {
if (expressionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
expression_ = value;
} else {
expressionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .substrait.Expression expression = 1;
*/
public Builder setExpression(
io.substrait.proto.Expression.Builder builderForValue) {
if (expressionBuilder_ == null) {
expression_ = builderForValue.build();
} else {
expressionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .substrait.Expression expression = 1;
*/
public Builder mergeExpression(io.substrait.proto.Expression value) {
if (expressionBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
expression_ != null &&
expression_ != io.substrait.proto.Expression.getDefaultInstance()) {
getExpressionBuilder().mergeFrom(value);
} else {
expression_ = value;
}
} else {
expressionBuilder_.mergeFrom(value);
}
if (expression_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .substrait.Expression expression = 1;
*/
public Builder clearExpression() {
bitField0_ = (bitField0_ & ~0x00000001);
expression_ = null;
if (expressionBuilder_ != null) {
expressionBuilder_.dispose();
expressionBuilder_ = null;
}
onChanged();
return this;
}
/**
* .substrait.Expression expression = 1;
*/
public io.substrait.proto.Expression.Builder getExpressionBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getExpressionFieldBuilder().getBuilder();
}
/**
* .substrait.Expression expression = 1;
*/
public io.substrait.proto.ExpressionOrBuilder getExpressionOrBuilder() {
if (expressionBuilder_ != null) {
return expressionBuilder_.getMessageOrBuilder();
} else {
return expression_ == null ?
io.substrait.proto.Expression.getDefaultInstance() : expression_;
}
}
/**
* .substrait.Expression expression = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>
getExpressionFieldBuilder() {
if (expressionBuilder_ == null) {
expressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>(
getExpression(),
getParentForChildren(),
isClean());
expression_ = null;
}
return expressionBuilder_;
}
private boolean constrainedToCount_ ;
/**
* bool constrained_to_count = 2;
* @return The constrainedToCount.
*/
@java.lang.Override
public boolean getConstrainedToCount() {
return constrainedToCount_;
}
/**
* bool constrained_to_count = 2;
* @param value The constrainedToCount to set.
* @return This builder for chaining.
*/
public Builder setConstrainedToCount(boolean value) {
constrainedToCount_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* bool constrained_to_count = 2;
* @return This builder for chaining.
*/
public Builder clearConstrainedToCount() {
bitField0_ = (bitField0_ & ~0x00000002);
constrainedToCount_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:substrait.ExchangeRel.MultiBucketExpression)
}
// @@protoc_insertion_point(class_scope:substrait.ExchangeRel.MultiBucketExpression)
private static final io.substrait.proto.ExchangeRel.MultiBucketExpression DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.ExchangeRel.MultiBucketExpression();
}
public static io.substrait.proto.ExchangeRel.MultiBucketExpression getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MultiBucketExpression 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.ExchangeRel.MultiBucketExpression getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BroadcastOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.ExchangeRel.Broadcast)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* Send all data to every target.
*
*
* Protobuf type {@code substrait.ExchangeRel.Broadcast}
*/
public static final class Broadcast extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.ExchangeRel.Broadcast)
BroadcastOrBuilder {
private static final long serialVersionUID = 0L;
// Use Broadcast.newBuilder() to construct.
private Broadcast(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Broadcast() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Broadcast();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_Broadcast_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_Broadcast_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ExchangeRel.Broadcast.class, io.substrait.proto.ExchangeRel.Broadcast.Builder.class);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.substrait.proto.ExchangeRel.Broadcast)) {
return super.equals(obj);
}
io.substrait.proto.ExchangeRel.Broadcast other = (io.substrait.proto.ExchangeRel.Broadcast) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.ExchangeRel.Broadcast parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExchangeRel.Broadcast 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.ExchangeRel.Broadcast parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExchangeRel.Broadcast 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.ExchangeRel.Broadcast parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExchangeRel.Broadcast parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ExchangeRel.Broadcast parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ExchangeRel.Broadcast 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.ExchangeRel.Broadcast parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.ExchangeRel.Broadcast 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.ExchangeRel.Broadcast parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ExchangeRel.Broadcast 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.ExchangeRel.Broadcast 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;
}
/**
*
* Send all data to every target.
*
*
* Protobuf type {@code substrait.ExchangeRel.Broadcast}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.ExchangeRel.Broadcast)
io.substrait.proto.ExchangeRel.BroadcastOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_Broadcast_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_Broadcast_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ExchangeRel.Broadcast.class, io.substrait.proto.ExchangeRel.Broadcast.Builder.class);
}
// Construct using io.substrait.proto.ExchangeRel.Broadcast.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_Broadcast_descriptor;
}
@java.lang.Override
public io.substrait.proto.ExchangeRel.Broadcast getDefaultInstanceForType() {
return io.substrait.proto.ExchangeRel.Broadcast.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.ExchangeRel.Broadcast build() {
io.substrait.proto.ExchangeRel.Broadcast result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.ExchangeRel.Broadcast buildPartial() {
io.substrait.proto.ExchangeRel.Broadcast result = new io.substrait.proto.ExchangeRel.Broadcast(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.substrait.proto.ExchangeRel.Broadcast) {
return mergeFrom((io.substrait.proto.ExchangeRel.Broadcast)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.ExchangeRel.Broadcast other) {
if (other == io.substrait.proto.ExchangeRel.Broadcast.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:substrait.ExchangeRel.Broadcast)
}
// @@protoc_insertion_point(class_scope:substrait.ExchangeRel.Broadcast)
private static final io.substrait.proto.ExchangeRel.Broadcast DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.ExchangeRel.Broadcast();
}
public static io.substrait.proto.ExchangeRel.Broadcast getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Broadcast 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.ExchangeRel.Broadcast getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RoundRobinOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.ExchangeRel.RoundRobin)
com.google.protobuf.MessageOrBuilder {
/**
*
* whether the round robin behavior is required to exact (per record) or
* approximate. Defaults to approximate.
*
*
* bool exact = 1;
* @return The exact.
*/
boolean getExact();
}
/**
*
* Route approximately
*
*
* Protobuf type {@code substrait.ExchangeRel.RoundRobin}
*/
public static final class RoundRobin extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.ExchangeRel.RoundRobin)
RoundRobinOrBuilder {
private static final long serialVersionUID = 0L;
// Use RoundRobin.newBuilder() to construct.
private RoundRobin(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RoundRobin() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RoundRobin();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_RoundRobin_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_RoundRobin_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ExchangeRel.RoundRobin.class, io.substrait.proto.ExchangeRel.RoundRobin.Builder.class);
}
public static final int EXACT_FIELD_NUMBER = 1;
private boolean exact_ = false;
/**
*
* whether the round robin behavior is required to exact (per record) or
* approximate. Defaults to approximate.
*
*
* bool exact = 1;
* @return The exact.
*/
@java.lang.Override
public boolean getExact() {
return exact_;
}
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 (exact_ != false) {
output.writeBool(1, exact_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (exact_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, exact_);
}
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.ExchangeRel.RoundRobin)) {
return super.equals(obj);
}
io.substrait.proto.ExchangeRel.RoundRobin other = (io.substrait.proto.ExchangeRel.RoundRobin) obj;
if (getExact()
!= other.getExact()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + EXACT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getExact());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.ExchangeRel.RoundRobin parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExchangeRel.RoundRobin 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.ExchangeRel.RoundRobin parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExchangeRel.RoundRobin 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.ExchangeRel.RoundRobin parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExchangeRel.RoundRobin parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ExchangeRel.RoundRobin parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ExchangeRel.RoundRobin 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.ExchangeRel.RoundRobin parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.ExchangeRel.RoundRobin 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.ExchangeRel.RoundRobin parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ExchangeRel.RoundRobin 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.ExchangeRel.RoundRobin 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;
}
/**
*
* Route approximately
*
*
* Protobuf type {@code substrait.ExchangeRel.RoundRobin}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.ExchangeRel.RoundRobin)
io.substrait.proto.ExchangeRel.RoundRobinOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_RoundRobin_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_RoundRobin_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ExchangeRel.RoundRobin.class, io.substrait.proto.ExchangeRel.RoundRobin.Builder.class);
}
// Construct using io.substrait.proto.ExchangeRel.RoundRobin.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
exact_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_RoundRobin_descriptor;
}
@java.lang.Override
public io.substrait.proto.ExchangeRel.RoundRobin getDefaultInstanceForType() {
return io.substrait.proto.ExchangeRel.RoundRobin.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.ExchangeRel.RoundRobin build() {
io.substrait.proto.ExchangeRel.RoundRobin result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.ExchangeRel.RoundRobin buildPartial() {
io.substrait.proto.ExchangeRel.RoundRobin result = new io.substrait.proto.ExchangeRel.RoundRobin(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.ExchangeRel.RoundRobin result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.exact_ = exact_;
}
}
@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.ExchangeRel.RoundRobin) {
return mergeFrom((io.substrait.proto.ExchangeRel.RoundRobin)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.ExchangeRel.RoundRobin other) {
if (other == io.substrait.proto.ExchangeRel.RoundRobin.getDefaultInstance()) return this;
if (other.getExact() != false) {
setExact(other.getExact());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
exact_ = input.readBool();
bitField0_ |= 0x00000001;
break;
} // case 8
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private boolean exact_ ;
/**
*
* whether the round robin behavior is required to exact (per record) or
* approximate. Defaults to approximate.
*
*
* bool exact = 1;
* @return The exact.
*/
@java.lang.Override
public boolean getExact() {
return exact_;
}
/**
*
* whether the round robin behavior is required to exact (per record) or
* approximate. Defaults to approximate.
*
*
* bool exact = 1;
* @param value The exact to set.
* @return This builder for chaining.
*/
public Builder setExact(boolean value) {
exact_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* whether the round robin behavior is required to exact (per record) or
* approximate. Defaults to approximate.
*
*
* bool exact = 1;
* @return This builder for chaining.
*/
public Builder clearExact() {
bitField0_ = (bitField0_ & ~0x00000001);
exact_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:substrait.ExchangeRel.RoundRobin)
}
// @@protoc_insertion_point(class_scope:substrait.ExchangeRel.RoundRobin)
private static final io.substrait.proto.ExchangeRel.RoundRobin DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.ExchangeRel.RoundRobin();
}
public static io.substrait.proto.ExchangeRel.RoundRobin getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RoundRobin 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.ExchangeRel.RoundRobin getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExchangeTargetOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.ExchangeRel.ExchangeTarget)
com.google.protobuf.MessageOrBuilder {
/**
*
* Describes the partition id(s) to send. If this is empty, all data is sent
* to this target.
*
*
* repeated int32 partition_id = 1;
* @return A list containing the partitionId.
*/
java.util.List getPartitionIdList();
/**
*
* Describes the partition id(s) to send. If this is empty, all data is sent
* to this target.
*
*
* repeated int32 partition_id = 1;
* @return The count of partitionId.
*/
int getPartitionIdCount();
/**
*
* Describes the partition id(s) to send. If this is empty, all data is sent
* to this target.
*
*
* repeated int32 partition_id = 1;
* @param index The index of the element to return.
* @return The partitionId at the given index.
*/
int getPartitionId(int index);
/**
* string uri = 2;
* @return Whether the uri field is set.
*/
boolean hasUri();
/**
* string uri = 2;
* @return The uri.
*/
java.lang.String getUri();
/**
* string uri = 2;
* @return The bytes for uri.
*/
com.google.protobuf.ByteString
getUriBytes();
/**
* .google.protobuf.Any extended = 3;
* @return Whether the extended field is set.
*/
boolean hasExtended();
/**
* .google.protobuf.Any extended = 3;
* @return The extended.
*/
com.google.protobuf.Any getExtended();
/**
* .google.protobuf.Any extended = 3;
*/
com.google.protobuf.AnyOrBuilder getExtendedOrBuilder();
io.substrait.proto.ExchangeRel.ExchangeTarget.TargetTypeCase getTargetTypeCase();
}
/**
*
* The message to describe partition targets of an exchange
*
*
* Protobuf type {@code substrait.ExchangeRel.ExchangeTarget}
*/
public static final class ExchangeTarget extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.ExchangeRel.ExchangeTarget)
ExchangeTargetOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExchangeTarget.newBuilder() to construct.
private ExchangeTarget(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExchangeTarget() {
partitionId_ = emptyIntList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExchangeTarget();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_ExchangeTarget_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_ExchangeTarget_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ExchangeRel.ExchangeTarget.class, io.substrait.proto.ExchangeRel.ExchangeTarget.Builder.class);
}
private int targetTypeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object targetType_;
public enum TargetTypeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
URI(2),
EXTENDED(3),
TARGETTYPE_NOT_SET(0);
private final int value;
private TargetTypeCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static TargetTypeCase valueOf(int value) {
return forNumber(value);
}
public static TargetTypeCase forNumber(int value) {
switch (value) {
case 2: return URI;
case 3: return EXTENDED;
case 0: return TARGETTYPE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public TargetTypeCase
getTargetTypeCase() {
return TargetTypeCase.forNumber(
targetTypeCase_);
}
public static final int PARTITION_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.IntList partitionId_ =
emptyIntList();
/**
*
* Describes the partition id(s) to send. If this is empty, all data is sent
* to this target.
*
*
* repeated int32 partition_id = 1;
* @return A list containing the partitionId.
*/
@java.lang.Override
public java.util.List
getPartitionIdList() {
return partitionId_;
}
/**
*
* Describes the partition id(s) to send. If this is empty, all data is sent
* to this target.
*
*
* repeated int32 partition_id = 1;
* @return The count of partitionId.
*/
public int getPartitionIdCount() {
return partitionId_.size();
}
/**
*
* Describes the partition id(s) to send. If this is empty, all data is sent
* to this target.
*
*
* repeated int32 partition_id = 1;
* @param index The index of the element to return.
* @return The partitionId at the given index.
*/
public int getPartitionId(int index) {
return partitionId_.getInt(index);
}
private int partitionIdMemoizedSerializedSize = -1;
public static final int URI_FIELD_NUMBER = 2;
/**
* string uri = 2;
* @return Whether the uri field is set.
*/
public boolean hasUri() {
return targetTypeCase_ == 2;
}
/**
* string uri = 2;
* @return The uri.
*/
public java.lang.String getUri() {
java.lang.Object ref = "";
if (targetTypeCase_ == 2) {
ref = targetType_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (targetTypeCase_ == 2) {
targetType_ = s;
}
return s;
}
}
/**
* string uri = 2;
* @return The bytes for uri.
*/
public com.google.protobuf.ByteString
getUriBytes() {
java.lang.Object ref = "";
if (targetTypeCase_ == 2) {
ref = targetType_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (targetTypeCase_ == 2) {
targetType_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXTENDED_FIELD_NUMBER = 3;
/**
* .google.protobuf.Any extended = 3;
* @return Whether the extended field is set.
*/
@java.lang.Override
public boolean hasExtended() {
return targetTypeCase_ == 3;
}
/**
* .google.protobuf.Any extended = 3;
* @return The extended.
*/
@java.lang.Override
public com.google.protobuf.Any getExtended() {
if (targetTypeCase_ == 3) {
return (com.google.protobuf.Any) targetType_;
}
return com.google.protobuf.Any.getDefaultInstance();
}
/**
* .google.protobuf.Any extended = 3;
*/
@java.lang.Override
public com.google.protobuf.AnyOrBuilder getExtendedOrBuilder() {
if (targetTypeCase_ == 3) {
return (com.google.protobuf.Any) targetType_;
}
return com.google.protobuf.Any.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (getPartitionIdList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(partitionIdMemoizedSerializedSize);
}
for (int i = 0; i < partitionId_.size(); i++) {
output.writeInt32NoTag(partitionId_.getInt(i));
}
if (targetTypeCase_ == 2) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, targetType_);
}
if (targetTypeCase_ == 3) {
output.writeMessage(3, (com.google.protobuf.Any) targetType_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < partitionId_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(partitionId_.getInt(i));
}
size += dataSize;
if (!getPartitionIdList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
partitionIdMemoizedSerializedSize = dataSize;
}
if (targetTypeCase_ == 2) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, targetType_);
}
if (targetTypeCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (com.google.protobuf.Any) targetType_);
}
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.ExchangeRel.ExchangeTarget)) {
return super.equals(obj);
}
io.substrait.proto.ExchangeRel.ExchangeTarget other = (io.substrait.proto.ExchangeRel.ExchangeTarget) obj;
if (!getPartitionIdList()
.equals(other.getPartitionIdList())) return false;
if (!getTargetTypeCase().equals(other.getTargetTypeCase())) return false;
switch (targetTypeCase_) {
case 2:
if (!getUri()
.equals(other.getUri())) return false;
break;
case 3:
if (!getExtended()
.equals(other.getExtended())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getPartitionIdCount() > 0) {
hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER;
hash = (53 * hash) + getPartitionIdList().hashCode();
}
switch (targetTypeCase_) {
case 2:
hash = (37 * hash) + URI_FIELD_NUMBER;
hash = (53 * hash) + getUri().hashCode();
break;
case 3:
hash = (37 * hash) + EXTENDED_FIELD_NUMBER;
hash = (53 * hash) + getExtended().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.ExchangeRel.ExchangeTarget parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExchangeRel.ExchangeTarget 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.ExchangeRel.ExchangeTarget parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExchangeRel.ExchangeTarget 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.ExchangeRel.ExchangeTarget parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExchangeRel.ExchangeTarget parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ExchangeRel.ExchangeTarget parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ExchangeRel.ExchangeTarget 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.ExchangeRel.ExchangeTarget parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.ExchangeRel.ExchangeTarget 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.ExchangeRel.ExchangeTarget parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ExchangeRel.ExchangeTarget 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.ExchangeRel.ExchangeTarget 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 message to describe partition targets of an exchange
*
*
* Protobuf type {@code substrait.ExchangeRel.ExchangeTarget}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.ExchangeRel.ExchangeTarget)
io.substrait.proto.ExchangeRel.ExchangeTargetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_ExchangeTarget_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_ExchangeTarget_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ExchangeRel.ExchangeTarget.class, io.substrait.proto.ExchangeRel.ExchangeTarget.Builder.class);
}
// Construct using io.substrait.proto.ExchangeRel.ExchangeTarget.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
partitionId_ = emptyIntList();
if (extendedBuilder_ != null) {
extendedBuilder_.clear();
}
targetTypeCase_ = 0;
targetType_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_ExchangeTarget_descriptor;
}
@java.lang.Override
public io.substrait.proto.ExchangeRel.ExchangeTarget getDefaultInstanceForType() {
return io.substrait.proto.ExchangeRel.ExchangeTarget.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.ExchangeRel.ExchangeTarget build() {
io.substrait.proto.ExchangeRel.ExchangeTarget result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.ExchangeRel.ExchangeTarget buildPartial() {
io.substrait.proto.ExchangeRel.ExchangeTarget result = new io.substrait.proto.ExchangeRel.ExchangeTarget(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.ExchangeRel.ExchangeTarget result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
partitionId_.makeImmutable();
result.partitionId_ = partitionId_;
}
}
private void buildPartialOneofs(io.substrait.proto.ExchangeRel.ExchangeTarget result) {
result.targetTypeCase_ = targetTypeCase_;
result.targetType_ = this.targetType_;
if (targetTypeCase_ == 3 &&
extendedBuilder_ != null) {
result.targetType_ = extendedBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.substrait.proto.ExchangeRel.ExchangeTarget) {
return mergeFrom((io.substrait.proto.ExchangeRel.ExchangeTarget)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.ExchangeRel.ExchangeTarget other) {
if (other == io.substrait.proto.ExchangeRel.ExchangeTarget.getDefaultInstance()) return this;
if (!other.partitionId_.isEmpty()) {
if (partitionId_.isEmpty()) {
partitionId_ = other.partitionId_;
partitionId_.makeImmutable();
bitField0_ |= 0x00000001;
} else {
ensurePartitionIdIsMutable();
partitionId_.addAll(other.partitionId_);
}
onChanged();
}
switch (other.getTargetTypeCase()) {
case URI: {
targetTypeCase_ = 2;
targetType_ = other.targetType_;
onChanged();
break;
}
case EXTENDED: {
mergeExtended(other.getExtended());
break;
}
case TARGETTYPE_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int v = input.readInt32();
ensurePartitionIdIsMutable();
partitionId_.addInt(v);
break;
} // case 8
case 10: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensurePartitionIdIsMutable();
while (input.getBytesUntilLimit() > 0) {
partitionId_.addInt(input.readInt32());
}
input.popLimit(limit);
break;
} // case 10
case 18: {
java.lang.String s = input.readStringRequireUtf8();
targetTypeCase_ = 2;
targetType_ = s;
break;
} // case 18
case 26: {
input.readMessage(
getExtendedFieldBuilder().getBuilder(),
extensionRegistry);
targetTypeCase_ = 3;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int targetTypeCase_ = 0;
private java.lang.Object targetType_;
public TargetTypeCase
getTargetTypeCase() {
return TargetTypeCase.forNumber(
targetTypeCase_);
}
public Builder clearTargetType() {
targetTypeCase_ = 0;
targetType_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.Internal.IntList partitionId_ = emptyIntList();
private void ensurePartitionIdIsMutable() {
if (!partitionId_.isModifiable()) {
partitionId_ = makeMutableCopy(partitionId_);
}
bitField0_ |= 0x00000001;
}
/**
*
* Describes the partition id(s) to send. If this is empty, all data is sent
* to this target.
*
*
* repeated int32 partition_id = 1;
* @return A list containing the partitionId.
*/
public java.util.List
getPartitionIdList() {
partitionId_.makeImmutable();
return partitionId_;
}
/**
*
* Describes the partition id(s) to send. If this is empty, all data is sent
* to this target.
*
*
* repeated int32 partition_id = 1;
* @return The count of partitionId.
*/
public int getPartitionIdCount() {
return partitionId_.size();
}
/**
*
* Describes the partition id(s) to send. If this is empty, all data is sent
* to this target.
*
*
* repeated int32 partition_id = 1;
* @param index The index of the element to return.
* @return The partitionId at the given index.
*/
public int getPartitionId(int index) {
return partitionId_.getInt(index);
}
/**
*
* Describes the partition id(s) to send. If this is empty, all data is sent
* to this target.
*
*
* repeated int32 partition_id = 1;
* @param index The index to set the value at.
* @param value The partitionId to set.
* @return This builder for chaining.
*/
public Builder setPartitionId(
int index, int value) {
ensurePartitionIdIsMutable();
partitionId_.setInt(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Describes the partition id(s) to send. If this is empty, all data is sent
* to this target.
*
*
* repeated int32 partition_id = 1;
* @param value The partitionId to add.
* @return This builder for chaining.
*/
public Builder addPartitionId(int value) {
ensurePartitionIdIsMutable();
partitionId_.addInt(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Describes the partition id(s) to send. If this is empty, all data is sent
* to this target.
*
*
* repeated int32 partition_id = 1;
* @param values The partitionId to add.
* @return This builder for chaining.
*/
public Builder addAllPartitionId(
java.lang.Iterable extends java.lang.Integer> values) {
ensurePartitionIdIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, partitionId_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Describes the partition id(s) to send. If this is empty, all data is sent
* to this target.
*
*
* repeated int32 partition_id = 1;
* @return This builder for chaining.
*/
public Builder clearPartitionId() {
partitionId_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string uri = 2;
* @return Whether the uri field is set.
*/
@java.lang.Override
public boolean hasUri() {
return targetTypeCase_ == 2;
}
/**
* string uri = 2;
* @return The uri.
*/
@java.lang.Override
public java.lang.String getUri() {
java.lang.Object ref = "";
if (targetTypeCase_ == 2) {
ref = targetType_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (targetTypeCase_ == 2) {
targetType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string uri = 2;
* @return The bytes for uri.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUriBytes() {
java.lang.Object ref = "";
if (targetTypeCase_ == 2) {
ref = targetType_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (targetTypeCase_ == 2) {
targetType_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string uri = 2;
* @param value The uri to set.
* @return This builder for chaining.
*/
public Builder setUri(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
targetTypeCase_ = 2;
targetType_ = value;
onChanged();
return this;
}
/**
* string uri = 2;
* @return This builder for chaining.
*/
public Builder clearUri() {
if (targetTypeCase_ == 2) {
targetTypeCase_ = 0;
targetType_ = null;
onChanged();
}
return this;
}
/**
* string uri = 2;
* @param value The bytes for uri to set.
* @return This builder for chaining.
*/
public Builder setUriBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
targetTypeCase_ = 2;
targetType_ = value;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> extendedBuilder_;
/**
* .google.protobuf.Any extended = 3;
* @return Whether the extended field is set.
*/
@java.lang.Override
public boolean hasExtended() {
return targetTypeCase_ == 3;
}
/**
* .google.protobuf.Any extended = 3;
* @return The extended.
*/
@java.lang.Override
public com.google.protobuf.Any getExtended() {
if (extendedBuilder_ == null) {
if (targetTypeCase_ == 3) {
return (com.google.protobuf.Any) targetType_;
}
return com.google.protobuf.Any.getDefaultInstance();
} else {
if (targetTypeCase_ == 3) {
return extendedBuilder_.getMessage();
}
return com.google.protobuf.Any.getDefaultInstance();
}
}
/**
* .google.protobuf.Any extended = 3;
*/
public Builder setExtended(com.google.protobuf.Any value) {
if (extendedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
targetType_ = value;
onChanged();
} else {
extendedBuilder_.setMessage(value);
}
targetTypeCase_ = 3;
return this;
}
/**
* .google.protobuf.Any extended = 3;
*/
public Builder setExtended(
com.google.protobuf.Any.Builder builderForValue) {
if (extendedBuilder_ == null) {
targetType_ = builderForValue.build();
onChanged();
} else {
extendedBuilder_.setMessage(builderForValue.build());
}
targetTypeCase_ = 3;
return this;
}
/**
* .google.protobuf.Any extended = 3;
*/
public Builder mergeExtended(com.google.protobuf.Any value) {
if (extendedBuilder_ == null) {
if (targetTypeCase_ == 3 &&
targetType_ != com.google.protobuf.Any.getDefaultInstance()) {
targetType_ = com.google.protobuf.Any.newBuilder((com.google.protobuf.Any) targetType_)
.mergeFrom(value).buildPartial();
} else {
targetType_ = value;
}
onChanged();
} else {
if (targetTypeCase_ == 3) {
extendedBuilder_.mergeFrom(value);
} else {
extendedBuilder_.setMessage(value);
}
}
targetTypeCase_ = 3;
return this;
}
/**
* .google.protobuf.Any extended = 3;
*/
public Builder clearExtended() {
if (extendedBuilder_ == null) {
if (targetTypeCase_ == 3) {
targetTypeCase_ = 0;
targetType_ = null;
onChanged();
}
} else {
if (targetTypeCase_ == 3) {
targetTypeCase_ = 0;
targetType_ = null;
}
extendedBuilder_.clear();
}
return this;
}
/**
* .google.protobuf.Any extended = 3;
*/
public com.google.protobuf.Any.Builder getExtendedBuilder() {
return getExtendedFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Any extended = 3;
*/
@java.lang.Override
public com.google.protobuf.AnyOrBuilder getExtendedOrBuilder() {
if ((targetTypeCase_ == 3) && (extendedBuilder_ != null)) {
return extendedBuilder_.getMessageOrBuilder();
} else {
if (targetTypeCase_ == 3) {
return (com.google.protobuf.Any) targetType_;
}
return com.google.protobuf.Any.getDefaultInstance();
}
}
/**
* .google.protobuf.Any extended = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getExtendedFieldBuilder() {
if (extendedBuilder_ == null) {
if (!(targetTypeCase_ == 3)) {
targetType_ = com.google.protobuf.Any.getDefaultInstance();
}
extendedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
(com.google.protobuf.Any) targetType_,
getParentForChildren(),
isClean());
targetType_ = null;
}
targetTypeCase_ = 3;
onChanged();
return extendedBuilder_;
}
@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.ExchangeRel.ExchangeTarget)
}
// @@protoc_insertion_point(class_scope:substrait.ExchangeRel.ExchangeTarget)
private static final io.substrait.proto.ExchangeRel.ExchangeTarget DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.ExchangeRel.ExchangeTarget();
}
public static io.substrait.proto.ExchangeRel.ExchangeTarget getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExchangeTarget 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.ExchangeRel.ExchangeTarget getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
private int exchangeKindCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object exchangeKind_;
public enum ExchangeKindCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
SCATTER_BY_FIELDS(5),
SINGLE_TARGET(6),
MULTI_TARGET(7),
ROUND_ROBIN(8),
BROADCAST(9),
EXCHANGEKIND_NOT_SET(0);
private final int value;
private ExchangeKindCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ExchangeKindCase valueOf(int value) {
return forNumber(value);
}
public static ExchangeKindCase forNumber(int value) {
switch (value) {
case 5: return SCATTER_BY_FIELDS;
case 6: return SINGLE_TARGET;
case 7: return MULTI_TARGET;
case 8: return ROUND_ROBIN;
case 9: return BROADCAST;
case 0: return EXCHANGEKIND_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ExchangeKindCase
getExchangeKindCase() {
return ExchangeKindCase.forNumber(
exchangeKindCase_);
}
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_;
/**
* .substrait.Rel input = 2;
* @return Whether the input field is set.
*/
@java.lang.Override
public boolean hasInput() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .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_;
}
/**
* .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 PARTITION_COUNT_FIELD_NUMBER = 3;
private int partitionCount_ = 0;
/**
* int32 partition_count = 3;
* @return The partitionCount.
*/
@java.lang.Override
public int getPartitionCount() {
return partitionCount_;
}
public static final int TARGETS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List targets_;
/**
* repeated .substrait.ExchangeRel.ExchangeTarget targets = 4;
*/
@java.lang.Override
public java.util.List getTargetsList() {
return targets_;
}
/**
* repeated .substrait.ExchangeRel.ExchangeTarget targets = 4;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.ExchangeRel.ExchangeTargetOrBuilder>
getTargetsOrBuilderList() {
return targets_;
}
/**
* repeated .substrait.ExchangeRel.ExchangeTarget targets = 4;
*/
@java.lang.Override
public int getTargetsCount() {
return targets_.size();
}
/**
* repeated .substrait.ExchangeRel.ExchangeTarget targets = 4;
*/
@java.lang.Override
public io.substrait.proto.ExchangeRel.ExchangeTarget getTargets(int index) {
return targets_.get(index);
}
/**
* repeated .substrait.ExchangeRel.ExchangeTarget targets = 4;
*/
@java.lang.Override
public io.substrait.proto.ExchangeRel.ExchangeTargetOrBuilder getTargetsOrBuilder(
int index) {
return targets_.get(index);
}
public static final int SCATTER_BY_FIELDS_FIELD_NUMBER = 5;
/**
* .substrait.ExchangeRel.ScatterFields scatter_by_fields = 5;
* @return Whether the scatterByFields field is set.
*/
@java.lang.Override
public boolean hasScatterByFields() {
return exchangeKindCase_ == 5;
}
/**
* .substrait.ExchangeRel.ScatterFields scatter_by_fields = 5;
* @return The scatterByFields.
*/
@java.lang.Override
public io.substrait.proto.ExchangeRel.ScatterFields getScatterByFields() {
if (exchangeKindCase_ == 5) {
return (io.substrait.proto.ExchangeRel.ScatterFields) exchangeKind_;
}
return io.substrait.proto.ExchangeRel.ScatterFields.getDefaultInstance();
}
/**
* .substrait.ExchangeRel.ScatterFields scatter_by_fields = 5;
*/
@java.lang.Override
public io.substrait.proto.ExchangeRel.ScatterFieldsOrBuilder getScatterByFieldsOrBuilder() {
if (exchangeKindCase_ == 5) {
return (io.substrait.proto.ExchangeRel.ScatterFields) exchangeKind_;
}
return io.substrait.proto.ExchangeRel.ScatterFields.getDefaultInstance();
}
public static final int SINGLE_TARGET_FIELD_NUMBER = 6;
/**
* .substrait.ExchangeRel.SingleBucketExpression single_target = 6;
* @return Whether the singleTarget field is set.
*/
@java.lang.Override
public boolean hasSingleTarget() {
return exchangeKindCase_ == 6;
}
/**
* .substrait.ExchangeRel.SingleBucketExpression single_target = 6;
* @return The singleTarget.
*/
@java.lang.Override
public io.substrait.proto.ExchangeRel.SingleBucketExpression getSingleTarget() {
if (exchangeKindCase_ == 6) {
return (io.substrait.proto.ExchangeRel.SingleBucketExpression) exchangeKind_;
}
return io.substrait.proto.ExchangeRel.SingleBucketExpression.getDefaultInstance();
}
/**
* .substrait.ExchangeRel.SingleBucketExpression single_target = 6;
*/
@java.lang.Override
public io.substrait.proto.ExchangeRel.SingleBucketExpressionOrBuilder getSingleTargetOrBuilder() {
if (exchangeKindCase_ == 6) {
return (io.substrait.proto.ExchangeRel.SingleBucketExpression) exchangeKind_;
}
return io.substrait.proto.ExchangeRel.SingleBucketExpression.getDefaultInstance();
}
public static final int MULTI_TARGET_FIELD_NUMBER = 7;
/**
* .substrait.ExchangeRel.MultiBucketExpression multi_target = 7;
* @return Whether the multiTarget field is set.
*/
@java.lang.Override
public boolean hasMultiTarget() {
return exchangeKindCase_ == 7;
}
/**
* .substrait.ExchangeRel.MultiBucketExpression multi_target = 7;
* @return The multiTarget.
*/
@java.lang.Override
public io.substrait.proto.ExchangeRel.MultiBucketExpression getMultiTarget() {
if (exchangeKindCase_ == 7) {
return (io.substrait.proto.ExchangeRel.MultiBucketExpression) exchangeKind_;
}
return io.substrait.proto.ExchangeRel.MultiBucketExpression.getDefaultInstance();
}
/**
* .substrait.ExchangeRel.MultiBucketExpression multi_target = 7;
*/
@java.lang.Override
public io.substrait.proto.ExchangeRel.MultiBucketExpressionOrBuilder getMultiTargetOrBuilder() {
if (exchangeKindCase_ == 7) {
return (io.substrait.proto.ExchangeRel.MultiBucketExpression) exchangeKind_;
}
return io.substrait.proto.ExchangeRel.MultiBucketExpression.getDefaultInstance();
}
public static final int ROUND_ROBIN_FIELD_NUMBER = 8;
/**
* .substrait.ExchangeRel.RoundRobin round_robin = 8;
* @return Whether the roundRobin field is set.
*/
@java.lang.Override
public boolean hasRoundRobin() {
return exchangeKindCase_ == 8;
}
/**
* .substrait.ExchangeRel.RoundRobin round_robin = 8;
* @return The roundRobin.
*/
@java.lang.Override
public io.substrait.proto.ExchangeRel.RoundRobin getRoundRobin() {
if (exchangeKindCase_ == 8) {
return (io.substrait.proto.ExchangeRel.RoundRobin) exchangeKind_;
}
return io.substrait.proto.ExchangeRel.RoundRobin.getDefaultInstance();
}
/**
* .substrait.ExchangeRel.RoundRobin round_robin = 8;
*/
@java.lang.Override
public io.substrait.proto.ExchangeRel.RoundRobinOrBuilder getRoundRobinOrBuilder() {
if (exchangeKindCase_ == 8) {
return (io.substrait.proto.ExchangeRel.RoundRobin) exchangeKind_;
}
return io.substrait.proto.ExchangeRel.RoundRobin.getDefaultInstance();
}
public static final int BROADCAST_FIELD_NUMBER = 9;
/**
* .substrait.ExchangeRel.Broadcast broadcast = 9;
* @return Whether the broadcast field is set.
*/
@java.lang.Override
public boolean hasBroadcast() {
return exchangeKindCase_ == 9;
}
/**
* .substrait.ExchangeRel.Broadcast broadcast = 9;
* @return The broadcast.
*/
@java.lang.Override
public io.substrait.proto.ExchangeRel.Broadcast getBroadcast() {
if (exchangeKindCase_ == 9) {
return (io.substrait.proto.ExchangeRel.Broadcast) exchangeKind_;
}
return io.substrait.proto.ExchangeRel.Broadcast.getDefaultInstance();
}
/**
* .substrait.ExchangeRel.Broadcast broadcast = 9;
*/
@java.lang.Override
public io.substrait.proto.ExchangeRel.BroadcastOrBuilder getBroadcastOrBuilder() {
if (exchangeKindCase_ == 9) {
return (io.substrait.proto.ExchangeRel.Broadcast) exchangeKind_;
}
return io.substrait.proto.ExchangeRel.Broadcast.getDefaultInstance();
}
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());
}
if (partitionCount_ != 0) {
output.writeInt32(3, partitionCount_);
}
for (int i = 0; i < targets_.size(); i++) {
output.writeMessage(4, targets_.get(i));
}
if (exchangeKindCase_ == 5) {
output.writeMessage(5, (io.substrait.proto.ExchangeRel.ScatterFields) exchangeKind_);
}
if (exchangeKindCase_ == 6) {
output.writeMessage(6, (io.substrait.proto.ExchangeRel.SingleBucketExpression) exchangeKind_);
}
if (exchangeKindCase_ == 7) {
output.writeMessage(7, (io.substrait.proto.ExchangeRel.MultiBucketExpression) exchangeKind_);
}
if (exchangeKindCase_ == 8) {
output.writeMessage(8, (io.substrait.proto.ExchangeRel.RoundRobin) exchangeKind_);
}
if (exchangeKindCase_ == 9) {
output.writeMessage(9, (io.substrait.proto.ExchangeRel.Broadcast) exchangeKind_);
}
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());
}
if (partitionCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, partitionCount_);
}
for (int i = 0; i < targets_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, targets_.get(i));
}
if (exchangeKindCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (io.substrait.proto.ExchangeRel.ScatterFields) exchangeKind_);
}
if (exchangeKindCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (io.substrait.proto.ExchangeRel.SingleBucketExpression) exchangeKind_);
}
if (exchangeKindCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (io.substrait.proto.ExchangeRel.MultiBucketExpression) exchangeKind_);
}
if (exchangeKindCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (io.substrait.proto.ExchangeRel.RoundRobin) exchangeKind_);
}
if (exchangeKindCase_ == 9) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, (io.substrait.proto.ExchangeRel.Broadcast) exchangeKind_);
}
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.ExchangeRel)) {
return super.equals(obj);
}
io.substrait.proto.ExchangeRel other = (io.substrait.proto.ExchangeRel) 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 (getPartitionCount()
!= other.getPartitionCount()) return false;
if (!getTargetsList()
.equals(other.getTargetsList())) return false;
if (hasAdvancedExtension() != other.hasAdvancedExtension()) return false;
if (hasAdvancedExtension()) {
if (!getAdvancedExtension()
.equals(other.getAdvancedExtension())) return false;
}
if (!getExchangeKindCase().equals(other.getExchangeKindCase())) return false;
switch (exchangeKindCase_) {
case 5:
if (!getScatterByFields()
.equals(other.getScatterByFields())) return false;
break;
case 6:
if (!getSingleTarget()
.equals(other.getSingleTarget())) return false;
break;
case 7:
if (!getMultiTarget()
.equals(other.getMultiTarget())) return false;
break;
case 8:
if (!getRoundRobin()
.equals(other.getRoundRobin())) return false;
break;
case 9:
if (!getBroadcast()
.equals(other.getBroadcast())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (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();
}
hash = (37 * hash) + PARTITION_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getPartitionCount();
if (getTargetsCount() > 0) {
hash = (37 * hash) + TARGETS_FIELD_NUMBER;
hash = (53 * hash) + getTargetsList().hashCode();
}
if (hasAdvancedExtension()) {
hash = (37 * hash) + ADVANCED_EXTENSION_FIELD_NUMBER;
hash = (53 * hash) + getAdvancedExtension().hashCode();
}
switch (exchangeKindCase_) {
case 5:
hash = (37 * hash) + SCATTER_BY_FIELDS_FIELD_NUMBER;
hash = (53 * hash) + getScatterByFields().hashCode();
break;
case 6:
hash = (37 * hash) + SINGLE_TARGET_FIELD_NUMBER;
hash = (53 * hash) + getSingleTarget().hashCode();
break;
case 7:
hash = (37 * hash) + MULTI_TARGET_FIELD_NUMBER;
hash = (53 * hash) + getMultiTarget().hashCode();
break;
case 8:
hash = (37 * hash) + ROUND_ROBIN_FIELD_NUMBER;
hash = (53 * hash) + getRoundRobin().hashCode();
break;
case 9:
hash = (37 * hash) + BROADCAST_FIELD_NUMBER;
hash = (53 * hash) + getBroadcast().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.ExchangeRel parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExchangeRel 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.ExchangeRel parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExchangeRel 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.ExchangeRel parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExchangeRel parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ExchangeRel parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ExchangeRel 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.ExchangeRel parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.ExchangeRel 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.ExchangeRel parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ExchangeRel 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.ExchangeRel prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A redistribution operation
*
*
* Protobuf type {@code substrait.ExchangeRel}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.ExchangeRel)
io.substrait.proto.ExchangeRelOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ExchangeRel.class, io.substrait.proto.ExchangeRel.Builder.class);
}
// Construct using io.substrait.proto.ExchangeRel.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();
getTargetsFieldBuilder();
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;
}
partitionCount_ = 0;
if (targetsBuilder_ == null) {
targets_ = java.util.Collections.emptyList();
} else {
targets_ = null;
targetsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (scatterByFieldsBuilder_ != null) {
scatterByFieldsBuilder_.clear();
}
if (singleTargetBuilder_ != null) {
singleTargetBuilder_.clear();
}
if (multiTargetBuilder_ != null) {
multiTargetBuilder_.clear();
}
if (roundRobinBuilder_ != null) {
roundRobinBuilder_.clear();
}
if (broadcastBuilder_ != null) {
broadcastBuilder_.clear();
}
advancedExtension_ = null;
if (advancedExtensionBuilder_ != null) {
advancedExtensionBuilder_.dispose();
advancedExtensionBuilder_ = null;
}
exchangeKindCase_ = 0;
exchangeKind_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_ExchangeRel_descriptor;
}
@java.lang.Override
public io.substrait.proto.ExchangeRel getDefaultInstanceForType() {
return io.substrait.proto.ExchangeRel.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.ExchangeRel build() {
io.substrait.proto.ExchangeRel result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.ExchangeRel buildPartial() {
io.substrait.proto.ExchangeRel result = new io.substrait.proto.ExchangeRel(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.substrait.proto.ExchangeRel result) {
if (targetsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
targets_ = java.util.Collections.unmodifiableList(targets_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.targets_ = targets_;
} else {
result.targets_ = targetsBuilder_.build();
}
}
private void buildPartial0(io.substrait.proto.ExchangeRel 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_ & 0x00000004) != 0)) {
result.partitionCount_ = partitionCount_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.advancedExtension_ = advancedExtensionBuilder_ == null
? advancedExtension_
: advancedExtensionBuilder_.build();
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(io.substrait.proto.ExchangeRel result) {
result.exchangeKindCase_ = exchangeKindCase_;
result.exchangeKind_ = this.exchangeKind_;
if (exchangeKindCase_ == 5 &&
scatterByFieldsBuilder_ != null) {
result.exchangeKind_ = scatterByFieldsBuilder_.build();
}
if (exchangeKindCase_ == 6 &&
singleTargetBuilder_ != null) {
result.exchangeKind_ = singleTargetBuilder_.build();
}
if (exchangeKindCase_ == 7 &&
multiTargetBuilder_ != null) {
result.exchangeKind_ = multiTargetBuilder_.build();
}
if (exchangeKindCase_ == 8 &&
roundRobinBuilder_ != null) {
result.exchangeKind_ = roundRobinBuilder_.build();
}
if (exchangeKindCase_ == 9 &&
broadcastBuilder_ != null) {
result.exchangeKind_ = broadcastBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.substrait.proto.ExchangeRel) {
return mergeFrom((io.substrait.proto.ExchangeRel)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.ExchangeRel other) {
if (other == io.substrait.proto.ExchangeRel.getDefaultInstance()) return this;
if (other.hasCommon()) {
mergeCommon(other.getCommon());
}
if (other.hasInput()) {
mergeInput(other.getInput());
}
if (other.getPartitionCount() != 0) {
setPartitionCount(other.getPartitionCount());
}
if (targetsBuilder_ == null) {
if (!other.targets_.isEmpty()) {
if (targets_.isEmpty()) {
targets_ = other.targets_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureTargetsIsMutable();
targets_.addAll(other.targets_);
}
onChanged();
}
} else {
if (!other.targets_.isEmpty()) {
if (targetsBuilder_.isEmpty()) {
targetsBuilder_.dispose();
targetsBuilder_ = null;
targets_ = other.targets_;
bitField0_ = (bitField0_ & ~0x00000008);
targetsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTargetsFieldBuilder() : null;
} else {
targetsBuilder_.addAllMessages(other.targets_);
}
}
}
if (other.hasAdvancedExtension()) {
mergeAdvancedExtension(other.getAdvancedExtension());
}
switch (other.getExchangeKindCase()) {
case SCATTER_BY_FIELDS: {
mergeScatterByFields(other.getScatterByFields());
break;
}
case SINGLE_TARGET: {
mergeSingleTarget(other.getSingleTarget());
break;
}
case MULTI_TARGET: {
mergeMultiTarget(other.getMultiTarget());
break;
}
case ROUND_ROBIN: {
mergeRoundRobin(other.getRoundRobin());
break;
}
case BROADCAST: {
mergeBroadcast(other.getBroadcast());
break;
}
case EXCHANGEKIND_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getCommonFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getInputFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
partitionCount_ = input.readInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
io.substrait.proto.ExchangeRel.ExchangeTarget m =
input.readMessage(
io.substrait.proto.ExchangeRel.ExchangeTarget.parser(),
extensionRegistry);
if (targetsBuilder_ == null) {
ensureTargetsIsMutable();
targets_.add(m);
} else {
targetsBuilder_.addMessage(m);
}
break;
} // case 34
case 42: {
input.readMessage(
getScatterByFieldsFieldBuilder().getBuilder(),
extensionRegistry);
exchangeKindCase_ = 5;
break;
} // case 42
case 50: {
input.readMessage(
getSingleTargetFieldBuilder().getBuilder(),
extensionRegistry);
exchangeKindCase_ = 6;
break;
} // case 50
case 58: {
input.readMessage(
getMultiTargetFieldBuilder().getBuilder(),
extensionRegistry);
exchangeKindCase_ = 7;
break;
} // case 58
case 66: {
input.readMessage(
getRoundRobinFieldBuilder().getBuilder(),
extensionRegistry);
exchangeKindCase_ = 8;
break;
} // case 66
case 74: {
input.readMessage(
getBroadcastFieldBuilder().getBuilder(),
extensionRegistry);
exchangeKindCase_ = 9;
break;
} // case 74
case 82: {
input.readMessage(
getAdvancedExtensionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000200;
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 exchangeKindCase_ = 0;
private java.lang.Object exchangeKind_;
public ExchangeKindCase
getExchangeKindCase() {
return ExchangeKindCase.forNumber(
exchangeKindCase_);
}
public Builder clearExchangeKind() {
exchangeKindCase_ = 0;
exchangeKind_ = null;
onChanged();
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_;
/**
* .substrait.Rel input = 2;
* @return Whether the input field is set.
*/
public boolean hasInput() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .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();
}
}
/**
* .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;
}
/**
* .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;
}
/**
* .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;
}
/**
* .substrait.Rel input = 2;
*/
public Builder clearInput() {
bitField0_ = (bitField0_ & ~0x00000002);
input_ = null;
if (inputBuilder_ != null) {
inputBuilder_.dispose();
inputBuilder_ = null;
}
onChanged();
return this;
}
/**
* .substrait.Rel input = 2;
*/
public io.substrait.proto.Rel.Builder getInputBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getInputFieldBuilder().getBuilder();
}
/**
* .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_;
}
}
/**
* .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 int partitionCount_ ;
/**
* int32 partition_count = 3;
* @return The partitionCount.
*/
@java.lang.Override
public int getPartitionCount() {
return partitionCount_;
}
/**
* int32 partition_count = 3;
* @param value The partitionCount to set.
* @return This builder for chaining.
*/
public Builder setPartitionCount(int value) {
partitionCount_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* int32 partition_count = 3;
* @return This builder for chaining.
*/
public Builder clearPartitionCount() {
bitField0_ = (bitField0_ & ~0x00000004);
partitionCount_ = 0;
onChanged();
return this;
}
private java.util.List targets_ =
java.util.Collections.emptyList();
private void ensureTargetsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
targets_ = new java.util.ArrayList(targets_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.ExchangeRel.ExchangeTarget, io.substrait.proto.ExchangeRel.ExchangeTarget.Builder, io.substrait.proto.ExchangeRel.ExchangeTargetOrBuilder> targetsBuilder_;
/**
* repeated .substrait.ExchangeRel.ExchangeTarget targets = 4;
*/
public java.util.List getTargetsList() {
if (targetsBuilder_ == null) {
return java.util.Collections.unmodifiableList(targets_);
} else {
return targetsBuilder_.getMessageList();
}
}
/**
* repeated .substrait.ExchangeRel.ExchangeTarget targets = 4;
*/
public int getTargetsCount() {
if (targetsBuilder_ == null) {
return targets_.size();
} else {
return targetsBuilder_.getCount();
}
}
/**
* repeated .substrait.ExchangeRel.ExchangeTarget targets = 4;
*/
public io.substrait.proto.ExchangeRel.ExchangeTarget getTargets(int index) {
if (targetsBuilder_ == null) {
return targets_.get(index);
} else {
return targetsBuilder_.getMessage(index);
}
}
/**
* repeated .substrait.ExchangeRel.ExchangeTarget targets = 4;
*/
public Builder setTargets(
int index, io.substrait.proto.ExchangeRel.ExchangeTarget value) {
if (targetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTargetsIsMutable();
targets_.set(index, value);
onChanged();
} else {
targetsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .substrait.ExchangeRel.ExchangeTarget targets = 4;
*/
public Builder setTargets(
int index, io.substrait.proto.ExchangeRel.ExchangeTarget.Builder builderForValue) {
if (targetsBuilder_ == null) {
ensureTargetsIsMutable();
targets_.set(index, builderForValue.build());
onChanged();
} else {
targetsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .substrait.ExchangeRel.ExchangeTarget targets = 4;
*/
public Builder addTargets(io.substrait.proto.ExchangeRel.ExchangeTarget value) {
if (targetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTargetsIsMutable();
targets_.add(value);
onChanged();
} else {
targetsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .substrait.ExchangeRel.ExchangeTarget targets = 4;
*/
public Builder addTargets(
int index, io.substrait.proto.ExchangeRel.ExchangeTarget value) {
if (targetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTargetsIsMutable();
targets_.add(index, value);
onChanged();
} else {
targetsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .substrait.ExchangeRel.ExchangeTarget targets = 4;
*/
public Builder addTargets(
io.substrait.proto.ExchangeRel.ExchangeTarget.Builder builderForValue) {
if (targetsBuilder_ == null) {
ensureTargetsIsMutable();
targets_.add(builderForValue.build());
onChanged();
} else {
targetsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .substrait.ExchangeRel.ExchangeTarget targets = 4;
*/
public Builder addTargets(
int index, io.substrait.proto.ExchangeRel.ExchangeTarget.Builder builderForValue) {
if (targetsBuilder_ == null) {
ensureTargetsIsMutable();
targets_.add(index, builderForValue.build());
onChanged();
} else {
targetsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .substrait.ExchangeRel.ExchangeTarget targets = 4;
*/
public Builder addAllTargets(
java.lang.Iterable extends io.substrait.proto.ExchangeRel.ExchangeTarget> values) {
if (targetsBuilder_ == null) {
ensureTargetsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, targets_);
onChanged();
} else {
targetsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .substrait.ExchangeRel.ExchangeTarget targets = 4;
*/
public Builder clearTargets() {
if (targetsBuilder_ == null) {
targets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
targetsBuilder_.clear();
}
return this;
}
/**
* repeated .substrait.ExchangeRel.ExchangeTarget targets = 4;
*/
public Builder removeTargets(int index) {
if (targetsBuilder_ == null) {
ensureTargetsIsMutable();
targets_.remove(index);
onChanged();
} else {
targetsBuilder_.remove(index);
}
return this;
}
/**
* repeated .substrait.ExchangeRel.ExchangeTarget targets = 4;
*/
public io.substrait.proto.ExchangeRel.ExchangeTarget.Builder getTargetsBuilder(
int index) {
return getTargetsFieldBuilder().getBuilder(index);
}
/**
* repeated .substrait.ExchangeRel.ExchangeTarget targets = 4;
*/
public io.substrait.proto.ExchangeRel.ExchangeTargetOrBuilder getTargetsOrBuilder(
int index) {
if (targetsBuilder_ == null) {
return targets_.get(index); } else {
return targetsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .substrait.ExchangeRel.ExchangeTarget targets = 4;
*/
public java.util.List extends io.substrait.proto.ExchangeRel.ExchangeTargetOrBuilder>
getTargetsOrBuilderList() {
if (targetsBuilder_ != null) {
return targetsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(targets_);
}
}
/**
* repeated .substrait.ExchangeRel.ExchangeTarget targets = 4;
*/
public io.substrait.proto.ExchangeRel.ExchangeTarget.Builder addTargetsBuilder() {
return getTargetsFieldBuilder().addBuilder(
io.substrait.proto.ExchangeRel.ExchangeTarget.getDefaultInstance());
}
/**
* repeated .substrait.ExchangeRel.ExchangeTarget targets = 4;
*/
public io.substrait.proto.ExchangeRel.ExchangeTarget.Builder addTargetsBuilder(
int index) {
return getTargetsFieldBuilder().addBuilder(
index, io.substrait.proto.ExchangeRel.ExchangeTarget.getDefaultInstance());
}
/**
* repeated .substrait.ExchangeRel.ExchangeTarget targets = 4;
*/
public java.util.List
getTargetsBuilderList() {
return getTargetsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.ExchangeRel.ExchangeTarget, io.substrait.proto.ExchangeRel.ExchangeTarget.Builder, io.substrait.proto.ExchangeRel.ExchangeTargetOrBuilder>
getTargetsFieldBuilder() {
if (targetsBuilder_ == null) {
targetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.ExchangeRel.ExchangeTarget, io.substrait.proto.ExchangeRel.ExchangeTarget.Builder, io.substrait.proto.ExchangeRel.ExchangeTargetOrBuilder>(
targets_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
targets_ = null;
}
return targetsBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ExchangeRel.ScatterFields, io.substrait.proto.ExchangeRel.ScatterFields.Builder, io.substrait.proto.ExchangeRel.ScatterFieldsOrBuilder> scatterByFieldsBuilder_;
/**
* .substrait.ExchangeRel.ScatterFields scatter_by_fields = 5;
* @return Whether the scatterByFields field is set.
*/
@java.lang.Override
public boolean hasScatterByFields() {
return exchangeKindCase_ == 5;
}
/**
* .substrait.ExchangeRel.ScatterFields scatter_by_fields = 5;
* @return The scatterByFields.
*/
@java.lang.Override
public io.substrait.proto.ExchangeRel.ScatterFields getScatterByFields() {
if (scatterByFieldsBuilder_ == null) {
if (exchangeKindCase_ == 5) {
return (io.substrait.proto.ExchangeRel.ScatterFields) exchangeKind_;
}
return io.substrait.proto.ExchangeRel.ScatterFields.getDefaultInstance();
} else {
if (exchangeKindCase_ == 5) {
return scatterByFieldsBuilder_.getMessage();
}
return io.substrait.proto.ExchangeRel.ScatterFields.getDefaultInstance();
}
}
/**
* .substrait.ExchangeRel.ScatterFields scatter_by_fields = 5;
*/
public Builder setScatterByFields(io.substrait.proto.ExchangeRel.ScatterFields value) {
if (scatterByFieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
exchangeKind_ = value;
onChanged();
} else {
scatterByFieldsBuilder_.setMessage(value);
}
exchangeKindCase_ = 5;
return this;
}
/**
* .substrait.ExchangeRel.ScatterFields scatter_by_fields = 5;
*/
public Builder setScatterByFields(
io.substrait.proto.ExchangeRel.ScatterFields.Builder builderForValue) {
if (scatterByFieldsBuilder_ == null) {
exchangeKind_ = builderForValue.build();
onChanged();
} else {
scatterByFieldsBuilder_.setMessage(builderForValue.build());
}
exchangeKindCase_ = 5;
return this;
}
/**
* .substrait.ExchangeRel.ScatterFields scatter_by_fields = 5;
*/
public Builder mergeScatterByFields(io.substrait.proto.ExchangeRel.ScatterFields value) {
if (scatterByFieldsBuilder_ == null) {
if (exchangeKindCase_ == 5 &&
exchangeKind_ != io.substrait.proto.ExchangeRel.ScatterFields.getDefaultInstance()) {
exchangeKind_ = io.substrait.proto.ExchangeRel.ScatterFields.newBuilder((io.substrait.proto.ExchangeRel.ScatterFields) exchangeKind_)
.mergeFrom(value).buildPartial();
} else {
exchangeKind_ = value;
}
onChanged();
} else {
if (exchangeKindCase_ == 5) {
scatterByFieldsBuilder_.mergeFrom(value);
} else {
scatterByFieldsBuilder_.setMessage(value);
}
}
exchangeKindCase_ = 5;
return this;
}
/**
* .substrait.ExchangeRel.ScatterFields scatter_by_fields = 5;
*/
public Builder clearScatterByFields() {
if (scatterByFieldsBuilder_ == null) {
if (exchangeKindCase_ == 5) {
exchangeKindCase_ = 0;
exchangeKind_ = null;
onChanged();
}
} else {
if (exchangeKindCase_ == 5) {
exchangeKindCase_ = 0;
exchangeKind_ = null;
}
scatterByFieldsBuilder_.clear();
}
return this;
}
/**
* .substrait.ExchangeRel.ScatterFields scatter_by_fields = 5;
*/
public io.substrait.proto.ExchangeRel.ScatterFields.Builder getScatterByFieldsBuilder() {
return getScatterByFieldsFieldBuilder().getBuilder();
}
/**
* .substrait.ExchangeRel.ScatterFields scatter_by_fields = 5;
*/
@java.lang.Override
public io.substrait.proto.ExchangeRel.ScatterFieldsOrBuilder getScatterByFieldsOrBuilder() {
if ((exchangeKindCase_ == 5) && (scatterByFieldsBuilder_ != null)) {
return scatterByFieldsBuilder_.getMessageOrBuilder();
} else {
if (exchangeKindCase_ == 5) {
return (io.substrait.proto.ExchangeRel.ScatterFields) exchangeKind_;
}
return io.substrait.proto.ExchangeRel.ScatterFields.getDefaultInstance();
}
}
/**
* .substrait.ExchangeRel.ScatterFields scatter_by_fields = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ExchangeRel.ScatterFields, io.substrait.proto.ExchangeRel.ScatterFields.Builder, io.substrait.proto.ExchangeRel.ScatterFieldsOrBuilder>
getScatterByFieldsFieldBuilder() {
if (scatterByFieldsBuilder_ == null) {
if (!(exchangeKindCase_ == 5)) {
exchangeKind_ = io.substrait.proto.ExchangeRel.ScatterFields.getDefaultInstance();
}
scatterByFieldsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ExchangeRel.ScatterFields, io.substrait.proto.ExchangeRel.ScatterFields.Builder, io.substrait.proto.ExchangeRel.ScatterFieldsOrBuilder>(
(io.substrait.proto.ExchangeRel.ScatterFields) exchangeKind_,
getParentForChildren(),
isClean());
exchangeKind_ = null;
}
exchangeKindCase_ = 5;
onChanged();
return scatterByFieldsBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ExchangeRel.SingleBucketExpression, io.substrait.proto.ExchangeRel.SingleBucketExpression.Builder, io.substrait.proto.ExchangeRel.SingleBucketExpressionOrBuilder> singleTargetBuilder_;
/**
* .substrait.ExchangeRel.SingleBucketExpression single_target = 6;
* @return Whether the singleTarget field is set.
*/
@java.lang.Override
public boolean hasSingleTarget() {
return exchangeKindCase_ == 6;
}
/**
* .substrait.ExchangeRel.SingleBucketExpression single_target = 6;
* @return The singleTarget.
*/
@java.lang.Override
public io.substrait.proto.ExchangeRel.SingleBucketExpression getSingleTarget() {
if (singleTargetBuilder_ == null) {
if (exchangeKindCase_ == 6) {
return (io.substrait.proto.ExchangeRel.SingleBucketExpression) exchangeKind_;
}
return io.substrait.proto.ExchangeRel.SingleBucketExpression.getDefaultInstance();
} else {
if (exchangeKindCase_ == 6) {
return singleTargetBuilder_.getMessage();
}
return io.substrait.proto.ExchangeRel.SingleBucketExpression.getDefaultInstance();
}
}
/**
* .substrait.ExchangeRel.SingleBucketExpression single_target = 6;
*/
public Builder setSingleTarget(io.substrait.proto.ExchangeRel.SingleBucketExpression value) {
if (singleTargetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
exchangeKind_ = value;
onChanged();
} else {
singleTargetBuilder_.setMessage(value);
}
exchangeKindCase_ = 6;
return this;
}
/**
* .substrait.ExchangeRel.SingleBucketExpression single_target = 6;
*/
public Builder setSingleTarget(
io.substrait.proto.ExchangeRel.SingleBucketExpression.Builder builderForValue) {
if (singleTargetBuilder_ == null) {
exchangeKind_ = builderForValue.build();
onChanged();
} else {
singleTargetBuilder_.setMessage(builderForValue.build());
}
exchangeKindCase_ = 6;
return this;
}
/**
* .substrait.ExchangeRel.SingleBucketExpression single_target = 6;
*/
public Builder mergeSingleTarget(io.substrait.proto.ExchangeRel.SingleBucketExpression value) {
if (singleTargetBuilder_ == null) {
if (exchangeKindCase_ == 6 &&
exchangeKind_ != io.substrait.proto.ExchangeRel.SingleBucketExpression.getDefaultInstance()) {
exchangeKind_ = io.substrait.proto.ExchangeRel.SingleBucketExpression.newBuilder((io.substrait.proto.ExchangeRel.SingleBucketExpression) exchangeKind_)
.mergeFrom(value).buildPartial();
} else {
exchangeKind_ = value;
}
onChanged();
} else {
if (exchangeKindCase_ == 6) {
singleTargetBuilder_.mergeFrom(value);
} else {
singleTargetBuilder_.setMessage(value);
}
}
exchangeKindCase_ = 6;
return this;
}
/**
* .substrait.ExchangeRel.SingleBucketExpression single_target = 6;
*/
public Builder clearSingleTarget() {
if (singleTargetBuilder_ == null) {
if (exchangeKindCase_ == 6) {
exchangeKindCase_ = 0;
exchangeKind_ = null;
onChanged();
}
} else {
if (exchangeKindCase_ == 6) {
exchangeKindCase_ = 0;
exchangeKind_ = null;
}
singleTargetBuilder_.clear();
}
return this;
}
/**
* .substrait.ExchangeRel.SingleBucketExpression single_target = 6;
*/
public io.substrait.proto.ExchangeRel.SingleBucketExpression.Builder getSingleTargetBuilder() {
return getSingleTargetFieldBuilder().getBuilder();
}
/**
* .substrait.ExchangeRel.SingleBucketExpression single_target = 6;
*/
@java.lang.Override
public io.substrait.proto.ExchangeRel.SingleBucketExpressionOrBuilder getSingleTargetOrBuilder() {
if ((exchangeKindCase_ == 6) && (singleTargetBuilder_ != null)) {
return singleTargetBuilder_.getMessageOrBuilder();
} else {
if (exchangeKindCase_ == 6) {
return (io.substrait.proto.ExchangeRel.SingleBucketExpression) exchangeKind_;
}
return io.substrait.proto.ExchangeRel.SingleBucketExpression.getDefaultInstance();
}
}
/**
* .substrait.ExchangeRel.SingleBucketExpression single_target = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ExchangeRel.SingleBucketExpression, io.substrait.proto.ExchangeRel.SingleBucketExpression.Builder, io.substrait.proto.ExchangeRel.SingleBucketExpressionOrBuilder>
getSingleTargetFieldBuilder() {
if (singleTargetBuilder_ == null) {
if (!(exchangeKindCase_ == 6)) {
exchangeKind_ = io.substrait.proto.ExchangeRel.SingleBucketExpression.getDefaultInstance();
}
singleTargetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ExchangeRel.SingleBucketExpression, io.substrait.proto.ExchangeRel.SingleBucketExpression.Builder, io.substrait.proto.ExchangeRel.SingleBucketExpressionOrBuilder>(
(io.substrait.proto.ExchangeRel.SingleBucketExpression) exchangeKind_,
getParentForChildren(),
isClean());
exchangeKind_ = null;
}
exchangeKindCase_ = 6;
onChanged();
return singleTargetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ExchangeRel.MultiBucketExpression, io.substrait.proto.ExchangeRel.MultiBucketExpression.Builder, io.substrait.proto.ExchangeRel.MultiBucketExpressionOrBuilder> multiTargetBuilder_;
/**
* .substrait.ExchangeRel.MultiBucketExpression multi_target = 7;
* @return Whether the multiTarget field is set.
*/
@java.lang.Override
public boolean hasMultiTarget() {
return exchangeKindCase_ == 7;
}
/**
* .substrait.ExchangeRel.MultiBucketExpression multi_target = 7;
* @return The multiTarget.
*/
@java.lang.Override
public io.substrait.proto.ExchangeRel.MultiBucketExpression getMultiTarget() {
if (multiTargetBuilder_ == null) {
if (exchangeKindCase_ == 7) {
return (io.substrait.proto.ExchangeRel.MultiBucketExpression) exchangeKind_;
}
return io.substrait.proto.ExchangeRel.MultiBucketExpression.getDefaultInstance();
} else {
if (exchangeKindCase_ == 7) {
return multiTargetBuilder_.getMessage();
}
return io.substrait.proto.ExchangeRel.MultiBucketExpression.getDefaultInstance();
}
}
/**
* .substrait.ExchangeRel.MultiBucketExpression multi_target = 7;
*/
public Builder setMultiTarget(io.substrait.proto.ExchangeRel.MultiBucketExpression value) {
if (multiTargetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
exchangeKind_ = value;
onChanged();
} else {
multiTargetBuilder_.setMessage(value);
}
exchangeKindCase_ = 7;
return this;
}
/**
* .substrait.ExchangeRel.MultiBucketExpression multi_target = 7;
*/
public Builder setMultiTarget(
io.substrait.proto.ExchangeRel.MultiBucketExpression.Builder builderForValue) {
if (multiTargetBuilder_ == null) {
exchangeKind_ = builderForValue.build();
onChanged();
} else {
multiTargetBuilder_.setMessage(builderForValue.build());
}
exchangeKindCase_ = 7;
return this;
}
/**
* .substrait.ExchangeRel.MultiBucketExpression multi_target = 7;
*/
public Builder mergeMultiTarget(io.substrait.proto.ExchangeRel.MultiBucketExpression value) {
if (multiTargetBuilder_ == null) {
if (exchangeKindCase_ == 7 &&
exchangeKind_ != io.substrait.proto.ExchangeRel.MultiBucketExpression.getDefaultInstance()) {
exchangeKind_ = io.substrait.proto.ExchangeRel.MultiBucketExpression.newBuilder((io.substrait.proto.ExchangeRel.MultiBucketExpression) exchangeKind_)
.mergeFrom(value).buildPartial();
} else {
exchangeKind_ = value;
}
onChanged();
} else {
if (exchangeKindCase_ == 7) {
multiTargetBuilder_.mergeFrom(value);
} else {
multiTargetBuilder_.setMessage(value);
}
}
exchangeKindCase_ = 7;
return this;
}
/**
* .substrait.ExchangeRel.MultiBucketExpression multi_target = 7;
*/
public Builder clearMultiTarget() {
if (multiTargetBuilder_ == null) {
if (exchangeKindCase_ == 7) {
exchangeKindCase_ = 0;
exchangeKind_ = null;
onChanged();
}
} else {
if (exchangeKindCase_ == 7) {
exchangeKindCase_ = 0;
exchangeKind_ = null;
}
multiTargetBuilder_.clear();
}
return this;
}
/**
* .substrait.ExchangeRel.MultiBucketExpression multi_target = 7;
*/
public io.substrait.proto.ExchangeRel.MultiBucketExpression.Builder getMultiTargetBuilder() {
return getMultiTargetFieldBuilder().getBuilder();
}
/**
* .substrait.ExchangeRel.MultiBucketExpression multi_target = 7;
*/
@java.lang.Override
public io.substrait.proto.ExchangeRel.MultiBucketExpressionOrBuilder getMultiTargetOrBuilder() {
if ((exchangeKindCase_ == 7) && (multiTargetBuilder_ != null)) {
return multiTargetBuilder_.getMessageOrBuilder();
} else {
if (exchangeKindCase_ == 7) {
return (io.substrait.proto.ExchangeRel.MultiBucketExpression) exchangeKind_;
}
return io.substrait.proto.ExchangeRel.MultiBucketExpression.getDefaultInstance();
}
}
/**
* .substrait.ExchangeRel.MultiBucketExpression multi_target = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ExchangeRel.MultiBucketExpression, io.substrait.proto.ExchangeRel.MultiBucketExpression.Builder, io.substrait.proto.ExchangeRel.MultiBucketExpressionOrBuilder>
getMultiTargetFieldBuilder() {
if (multiTargetBuilder_ == null) {
if (!(exchangeKindCase_ == 7)) {
exchangeKind_ = io.substrait.proto.ExchangeRel.MultiBucketExpression.getDefaultInstance();
}
multiTargetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ExchangeRel.MultiBucketExpression, io.substrait.proto.ExchangeRel.MultiBucketExpression.Builder, io.substrait.proto.ExchangeRel.MultiBucketExpressionOrBuilder>(
(io.substrait.proto.ExchangeRel.MultiBucketExpression) exchangeKind_,
getParentForChildren(),
isClean());
exchangeKind_ = null;
}
exchangeKindCase_ = 7;
onChanged();
return multiTargetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ExchangeRel.RoundRobin, io.substrait.proto.ExchangeRel.RoundRobin.Builder, io.substrait.proto.ExchangeRel.RoundRobinOrBuilder> roundRobinBuilder_;
/**
* .substrait.ExchangeRel.RoundRobin round_robin = 8;
* @return Whether the roundRobin field is set.
*/
@java.lang.Override
public boolean hasRoundRobin() {
return exchangeKindCase_ == 8;
}
/**
* .substrait.ExchangeRel.RoundRobin round_robin = 8;
* @return The roundRobin.
*/
@java.lang.Override
public io.substrait.proto.ExchangeRel.RoundRobin getRoundRobin() {
if (roundRobinBuilder_ == null) {
if (exchangeKindCase_ == 8) {
return (io.substrait.proto.ExchangeRel.RoundRobin) exchangeKind_;
}
return io.substrait.proto.ExchangeRel.RoundRobin.getDefaultInstance();
} else {
if (exchangeKindCase_ == 8) {
return roundRobinBuilder_.getMessage();
}
return io.substrait.proto.ExchangeRel.RoundRobin.getDefaultInstance();
}
}
/**
* .substrait.ExchangeRel.RoundRobin round_robin = 8;
*/
public Builder setRoundRobin(io.substrait.proto.ExchangeRel.RoundRobin value) {
if (roundRobinBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
exchangeKind_ = value;
onChanged();
} else {
roundRobinBuilder_.setMessage(value);
}
exchangeKindCase_ = 8;
return this;
}
/**
* .substrait.ExchangeRel.RoundRobin round_robin = 8;
*/
public Builder setRoundRobin(
io.substrait.proto.ExchangeRel.RoundRobin.Builder builderForValue) {
if (roundRobinBuilder_ == null) {
exchangeKind_ = builderForValue.build();
onChanged();
} else {
roundRobinBuilder_.setMessage(builderForValue.build());
}
exchangeKindCase_ = 8;
return this;
}
/**
* .substrait.ExchangeRel.RoundRobin round_robin = 8;
*/
public Builder mergeRoundRobin(io.substrait.proto.ExchangeRel.RoundRobin value) {
if (roundRobinBuilder_ == null) {
if (exchangeKindCase_ == 8 &&
exchangeKind_ != io.substrait.proto.ExchangeRel.RoundRobin.getDefaultInstance()) {
exchangeKind_ = io.substrait.proto.ExchangeRel.RoundRobin.newBuilder((io.substrait.proto.ExchangeRel.RoundRobin) exchangeKind_)
.mergeFrom(value).buildPartial();
} else {
exchangeKind_ = value;
}
onChanged();
} else {
if (exchangeKindCase_ == 8) {
roundRobinBuilder_.mergeFrom(value);
} else {
roundRobinBuilder_.setMessage(value);
}
}
exchangeKindCase_ = 8;
return this;
}
/**
* .substrait.ExchangeRel.RoundRobin round_robin = 8;
*/
public Builder clearRoundRobin() {
if (roundRobinBuilder_ == null) {
if (exchangeKindCase_ == 8) {
exchangeKindCase_ = 0;
exchangeKind_ = null;
onChanged();
}
} else {
if (exchangeKindCase_ == 8) {
exchangeKindCase_ = 0;
exchangeKind_ = null;
}
roundRobinBuilder_.clear();
}
return this;
}
/**
* .substrait.ExchangeRel.RoundRobin round_robin = 8;
*/
public io.substrait.proto.ExchangeRel.RoundRobin.Builder getRoundRobinBuilder() {
return getRoundRobinFieldBuilder().getBuilder();
}
/**
* .substrait.ExchangeRel.RoundRobin round_robin = 8;
*/
@java.lang.Override
public io.substrait.proto.ExchangeRel.RoundRobinOrBuilder getRoundRobinOrBuilder() {
if ((exchangeKindCase_ == 8) && (roundRobinBuilder_ != null)) {
return roundRobinBuilder_.getMessageOrBuilder();
} else {
if (exchangeKindCase_ == 8) {
return (io.substrait.proto.ExchangeRel.RoundRobin) exchangeKind_;
}
return io.substrait.proto.ExchangeRel.RoundRobin.getDefaultInstance();
}
}
/**
* .substrait.ExchangeRel.RoundRobin round_robin = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ExchangeRel.RoundRobin, io.substrait.proto.ExchangeRel.RoundRobin.Builder, io.substrait.proto.ExchangeRel.RoundRobinOrBuilder>
getRoundRobinFieldBuilder() {
if (roundRobinBuilder_ == null) {
if (!(exchangeKindCase_ == 8)) {
exchangeKind_ = io.substrait.proto.ExchangeRel.RoundRobin.getDefaultInstance();
}
roundRobinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ExchangeRel.RoundRobin, io.substrait.proto.ExchangeRel.RoundRobin.Builder, io.substrait.proto.ExchangeRel.RoundRobinOrBuilder>(
(io.substrait.proto.ExchangeRel.RoundRobin) exchangeKind_,
getParentForChildren(),
isClean());
exchangeKind_ = null;
}
exchangeKindCase_ = 8;
onChanged();
return roundRobinBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ExchangeRel.Broadcast, io.substrait.proto.ExchangeRel.Broadcast.Builder, io.substrait.proto.ExchangeRel.BroadcastOrBuilder> broadcastBuilder_;
/**
* .substrait.ExchangeRel.Broadcast broadcast = 9;
* @return Whether the broadcast field is set.
*/
@java.lang.Override
public boolean hasBroadcast() {
return exchangeKindCase_ == 9;
}
/**
* .substrait.ExchangeRel.Broadcast broadcast = 9;
* @return The broadcast.
*/
@java.lang.Override
public io.substrait.proto.ExchangeRel.Broadcast getBroadcast() {
if (broadcastBuilder_ == null) {
if (exchangeKindCase_ == 9) {
return (io.substrait.proto.ExchangeRel.Broadcast) exchangeKind_;
}
return io.substrait.proto.ExchangeRel.Broadcast.getDefaultInstance();
} else {
if (exchangeKindCase_ == 9) {
return broadcastBuilder_.getMessage();
}
return io.substrait.proto.ExchangeRel.Broadcast.getDefaultInstance();
}
}
/**
* .substrait.ExchangeRel.Broadcast broadcast = 9;
*/
public Builder setBroadcast(io.substrait.proto.ExchangeRel.Broadcast value) {
if (broadcastBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
exchangeKind_ = value;
onChanged();
} else {
broadcastBuilder_.setMessage(value);
}
exchangeKindCase_ = 9;
return this;
}
/**
* .substrait.ExchangeRel.Broadcast broadcast = 9;
*/
public Builder setBroadcast(
io.substrait.proto.ExchangeRel.Broadcast.Builder builderForValue) {
if (broadcastBuilder_ == null) {
exchangeKind_ = builderForValue.build();
onChanged();
} else {
broadcastBuilder_.setMessage(builderForValue.build());
}
exchangeKindCase_ = 9;
return this;
}
/**
* .substrait.ExchangeRel.Broadcast broadcast = 9;
*/
public Builder mergeBroadcast(io.substrait.proto.ExchangeRel.Broadcast value) {
if (broadcastBuilder_ == null) {
if (exchangeKindCase_ == 9 &&
exchangeKind_ != io.substrait.proto.ExchangeRel.Broadcast.getDefaultInstance()) {
exchangeKind_ = io.substrait.proto.ExchangeRel.Broadcast.newBuilder((io.substrait.proto.ExchangeRel.Broadcast) exchangeKind_)
.mergeFrom(value).buildPartial();
} else {
exchangeKind_ = value;
}
onChanged();
} else {
if (exchangeKindCase_ == 9) {
broadcastBuilder_.mergeFrom(value);
} else {
broadcastBuilder_.setMessage(value);
}
}
exchangeKindCase_ = 9;
return this;
}
/**
* .substrait.ExchangeRel.Broadcast broadcast = 9;
*/
public Builder clearBroadcast() {
if (broadcastBuilder_ == null) {
if (exchangeKindCase_ == 9) {
exchangeKindCase_ = 0;
exchangeKind_ = null;
onChanged();
}
} else {
if (exchangeKindCase_ == 9) {
exchangeKindCase_ = 0;
exchangeKind_ = null;
}
broadcastBuilder_.clear();
}
return this;
}
/**
* .substrait.ExchangeRel.Broadcast broadcast = 9;
*/
public io.substrait.proto.ExchangeRel.Broadcast.Builder getBroadcastBuilder() {
return getBroadcastFieldBuilder().getBuilder();
}
/**
* .substrait.ExchangeRel.Broadcast broadcast = 9;
*/
@java.lang.Override
public io.substrait.proto.ExchangeRel.BroadcastOrBuilder getBroadcastOrBuilder() {
if ((exchangeKindCase_ == 9) && (broadcastBuilder_ != null)) {
return broadcastBuilder_.getMessageOrBuilder();
} else {
if (exchangeKindCase_ == 9) {
return (io.substrait.proto.ExchangeRel.Broadcast) exchangeKind_;
}
return io.substrait.proto.ExchangeRel.Broadcast.getDefaultInstance();
}
}
/**
* .substrait.ExchangeRel.Broadcast broadcast = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ExchangeRel.Broadcast, io.substrait.proto.ExchangeRel.Broadcast.Builder, io.substrait.proto.ExchangeRel.BroadcastOrBuilder>
getBroadcastFieldBuilder() {
if (broadcastBuilder_ == null) {
if (!(exchangeKindCase_ == 9)) {
exchangeKind_ = io.substrait.proto.ExchangeRel.Broadcast.getDefaultInstance();
}
broadcastBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ExchangeRel.Broadcast, io.substrait.proto.ExchangeRel.Broadcast.Builder, io.substrait.proto.ExchangeRel.BroadcastOrBuilder>(
(io.substrait.proto.ExchangeRel.Broadcast) exchangeKind_,
getParentForChildren(),
isClean());
exchangeKind_ = null;
}
exchangeKindCase_ = 9;
onChanged();
return broadcastBuilder_;
}
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_ & 0x00000200) != 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_ |= 0x00000200;
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_ |= 0x00000200;
onChanged();
return this;
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public Builder mergeAdvancedExtension(io.substrait.proto.AdvancedExtension value) {
if (advancedExtensionBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 0) &&
advancedExtension_ != null &&
advancedExtension_ != io.substrait.proto.AdvancedExtension.getDefaultInstance()) {
getAdvancedExtensionBuilder().mergeFrom(value);
} else {
advancedExtension_ = value;
}
} else {
advancedExtensionBuilder_.mergeFrom(value);
}
if (advancedExtension_ != null) {
bitField0_ |= 0x00000200;
onChanged();
}
return this;
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public Builder clearAdvancedExtension() {
bitField0_ = (bitField0_ & ~0x00000200);
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_ |= 0x00000200;
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.ExchangeRel)
}
// @@protoc_insertion_point(class_scope:substrait.ExchangeRel)
private static final io.substrait.proto.ExchangeRel DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.ExchangeRel();
}
public static io.substrait.proto.ExchangeRel getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExchangeRel 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.ExchangeRel getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy