cz.proto.AggregateCall Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clickzetta-java Show documentation
Show all versions of clickzetta-java Show documentation
The java SDK for clickzetta's Lakehouse
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: operator.proto
package cz.proto;
/**
* Protobuf type {@code cz.proto.AggregateCall}
*/
public final class AggregateCall extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.AggregateCall)
AggregateCallOrBuilder {
private static final long serialVersionUID = 0L;
// Use AggregateCall.newBuilder() to construct.
private AggregateCall(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AggregateCall() {
stage_ = 0;
orders_ = java.util.Collections.emptyList();
outputFields_ = emptyLongList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AggregateCall();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AggregateCall(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
cz.proto.Expression.ScalarExpression.Builder subBuilder = null;
if (function_ != null) {
subBuilder = function_.toBuilder();
}
function_ = input.readMessage(cz.proto.Expression.ScalarExpression.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(function_);
function_ = subBuilder.buildPartial();
}
break;
}
case 16: {
distinct_ = input.readBool();
break;
}
case 24: {
int rawValue = input.readEnum();
stage_ = rawValue;
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
orders_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
orders_.add(
input.readMessage(cz.proto.OrderByDesc.parser(), extensionRegistry));
break;
}
case 42: {
cz.proto.Expression.Reference.Builder subBuilder = null;
if (filter_ != null) {
subBuilder = filter_.toBuilder();
}
filter_ = input.readMessage(cz.proto.Expression.Reference.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(filter_);
filter_ = subBuilder.buildPartial();
}
break;
}
case 48: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
outputFields_ = newLongList();
mutable_bitField0_ |= 0x00000002;
}
outputFields_.addLong(input.readUInt64());
break;
}
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
outputFields_ = newLongList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
outputFields_.addLong(input.readUInt64());
}
input.popLimit(limit);
break;
}
case 82: {
cz.proto.DataType.Builder subBuilder = null;
if (initialType_ != null) {
subBuilder = initialType_.toBuilder();
}
initialType_ = input.readMessage(cz.proto.DataType.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(initialType_);
initialType_ = subBuilder.buildPartial();
}
break;
}
case 90: {
cz.proto.DataType.Builder subBuilder = null;
if (partialType_ != null) {
subBuilder = partialType_.toBuilder();
}
partialType_ = input.readMessage(cz.proto.DataType.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(partialType_);
partialType_ = subBuilder.buildPartial();
}
break;
}
case 98: {
cz.proto.DataType.Builder subBuilder = null;
if (outputType_ != null) {
subBuilder = outputType_.toBuilder();
}
outputType_ = input.readMessage(cz.proto.DataType.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(outputType_);
outputType_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
orders_ = java.util.Collections.unmodifiableList(orders_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
outputFields_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.OperatorProto.internal_static_cz_proto_AggregateCall_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.OperatorProto.internal_static_cz_proto_AggregateCall_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.AggregateCall.class, cz.proto.AggregateCall.Builder.class);
}
public static final int FUNCTION_FIELD_NUMBER = 1;
private cz.proto.Expression.ScalarExpression function_;
/**
* .cz.proto.ScalarExpression function = 1;
* @return Whether the function field is set.
*/
@java.lang.Override
public boolean hasFunction() {
return function_ != null;
}
/**
* .cz.proto.ScalarExpression function = 1;
* @return The function.
*/
@java.lang.Override
public cz.proto.Expression.ScalarExpression getFunction() {
return function_ == null ? cz.proto.Expression.ScalarExpression.getDefaultInstance() : function_;
}
/**
* .cz.proto.ScalarExpression function = 1;
*/
@java.lang.Override
public cz.proto.Expression.ScalarExpressionOrBuilder getFunctionOrBuilder() {
return getFunction();
}
public static final int DISTINCT_FIELD_NUMBER = 2;
private boolean distinct_;
/**
* bool distinct = 2;
* @return The distinct.
*/
@java.lang.Override
public boolean getDistinct() {
return distinct_;
}
public static final int STAGE_FIELD_NUMBER = 3;
private int stage_;
/**
* .cz.proto.AggStage stage = 3;
* @return The enum numeric value on the wire for stage.
*/
@java.lang.Override public int getStageValue() {
return stage_;
}
/**
* .cz.proto.AggStage stage = 3;
* @return The stage.
*/
@java.lang.Override public cz.proto.AggStage getStage() {
@SuppressWarnings("deprecation")
cz.proto.AggStage result = cz.proto.AggStage.valueOf(stage_);
return result == null ? cz.proto.AggStage.UNRECOGNIZED : result;
}
public static final int ORDERS_FIELD_NUMBER = 4;
private java.util.List orders_;
/**
* repeated .cz.proto.OrderByDesc orders = 4;
*/
@java.lang.Override
public java.util.List getOrdersList() {
return orders_;
}
/**
* repeated .cz.proto.OrderByDesc orders = 4;
*/
@java.lang.Override
public java.util.List extends cz.proto.OrderByDescOrBuilder>
getOrdersOrBuilderList() {
return orders_;
}
/**
* repeated .cz.proto.OrderByDesc orders = 4;
*/
@java.lang.Override
public int getOrdersCount() {
return orders_.size();
}
/**
* repeated .cz.proto.OrderByDesc orders = 4;
*/
@java.lang.Override
public cz.proto.OrderByDesc getOrders(int index) {
return orders_.get(index);
}
/**
* repeated .cz.proto.OrderByDesc orders = 4;
*/
@java.lang.Override
public cz.proto.OrderByDescOrBuilder getOrdersOrBuilder(
int index) {
return orders_.get(index);
}
public static final int FILTER_FIELD_NUMBER = 5;
private cz.proto.Expression.Reference filter_;
/**
* .cz.proto.Reference filter = 5;
* @return Whether the filter field is set.
*/
@java.lang.Override
public boolean hasFilter() {
return filter_ != null;
}
/**
* .cz.proto.Reference filter = 5;
* @return The filter.
*/
@java.lang.Override
public cz.proto.Expression.Reference getFilter() {
return filter_ == null ? cz.proto.Expression.Reference.getDefaultInstance() : filter_;
}
/**
* .cz.proto.Reference filter = 5;
*/
@java.lang.Override
public cz.proto.Expression.ReferenceOrBuilder getFilterOrBuilder() {
return getFilter();
}
public static final int OUTPUT_FIELDS_FIELD_NUMBER = 6;
private com.google.protobuf.Internal.LongList outputFields_;
/**
* repeated uint64 output_fields = 6;
* @return A list containing the outputFields.
*/
@java.lang.Override
public java.util.List
getOutputFieldsList() {
return outputFields_;
}
/**
* repeated uint64 output_fields = 6;
* @return The count of outputFields.
*/
public int getOutputFieldsCount() {
return outputFields_.size();
}
/**
* repeated uint64 output_fields = 6;
* @param index The index of the element to return.
* @return The outputFields at the given index.
*/
public long getOutputFields(int index) {
return outputFields_.getLong(index);
}
private int outputFieldsMemoizedSerializedSize = -1;
public static final int INITIAL_TYPE_FIELD_NUMBER = 10;
private cz.proto.DataType initialType_;
/**
*
* The initial data type of an aggregate function
*
*
* .cz.proto.DataType initial_Type = 10;
* @return Whether the initialType field is set.
*/
@java.lang.Override
public boolean hasInitialType() {
return initialType_ != null;
}
/**
*
* The initial data type of an aggregate function
*
*
* .cz.proto.DataType initial_Type = 10;
* @return The initialType.
*/
@java.lang.Override
public cz.proto.DataType getInitialType() {
return initialType_ == null ? cz.proto.DataType.getDefaultInstance() : initialType_;
}
/**
*
* The initial data type of an aggregate function
*
*
* .cz.proto.DataType initial_Type = 10;
*/
@java.lang.Override
public cz.proto.DataTypeOrBuilder getInitialTypeOrBuilder() {
return getInitialType();
}
public static final int PARTIAL_TYPE_FIELD_NUMBER = 11;
private cz.proto.DataType partialType_;
/**
*
* The partial data type of an aggregate function
*
*
* .cz.proto.DataType partial_Type = 11;
* @return Whether the partialType field is set.
*/
@java.lang.Override
public boolean hasPartialType() {
return partialType_ != null;
}
/**
*
* The partial data type of an aggregate function
*
*
* .cz.proto.DataType partial_Type = 11;
* @return The partialType.
*/
@java.lang.Override
public cz.proto.DataType getPartialType() {
return partialType_ == null ? cz.proto.DataType.getDefaultInstance() : partialType_;
}
/**
*
* The partial data type of an aggregate function
*
*
* .cz.proto.DataType partial_Type = 11;
*/
@java.lang.Override
public cz.proto.DataTypeOrBuilder getPartialTypeOrBuilder() {
return getPartialType();
}
public static final int OUTPUT_TYPE_FIELD_NUMBER = 12;
private cz.proto.DataType outputType_;
/**
*
* The output data type of an aggregate function
*
*
* .cz.proto.DataType output_Type = 12;
* @return Whether the outputType field is set.
*/
@java.lang.Override
public boolean hasOutputType() {
return outputType_ != null;
}
/**
*
* The output data type of an aggregate function
*
*
* .cz.proto.DataType output_Type = 12;
* @return The outputType.
*/
@java.lang.Override
public cz.proto.DataType getOutputType() {
return outputType_ == null ? cz.proto.DataType.getDefaultInstance() : outputType_;
}
/**
*
* The output data type of an aggregate function
*
*
* .cz.proto.DataType output_Type = 12;
*/
@java.lang.Override
public cz.proto.DataTypeOrBuilder getOutputTypeOrBuilder() {
return getOutputType();
}
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 (function_ != null) {
output.writeMessage(1, getFunction());
}
if (distinct_ != false) {
output.writeBool(2, distinct_);
}
if (stage_ != cz.proto.AggStage.DUPLICATE.getNumber()) {
output.writeEnum(3, stage_);
}
for (int i = 0; i < orders_.size(); i++) {
output.writeMessage(4, orders_.get(i));
}
if (filter_ != null) {
output.writeMessage(5, getFilter());
}
if (getOutputFieldsList().size() > 0) {
output.writeUInt32NoTag(50);
output.writeUInt32NoTag(outputFieldsMemoizedSerializedSize);
}
for (int i = 0; i < outputFields_.size(); i++) {
output.writeUInt64NoTag(outputFields_.getLong(i));
}
if (initialType_ != null) {
output.writeMessage(10, getInitialType());
}
if (partialType_ != null) {
output.writeMessage(11, getPartialType());
}
if (outputType_ != null) {
output.writeMessage(12, getOutputType());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (function_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getFunction());
}
if (distinct_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, distinct_);
}
if (stage_ != cz.proto.AggStage.DUPLICATE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, stage_);
}
for (int i = 0; i < orders_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, orders_.get(i));
}
if (filter_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getFilter());
}
{
int dataSize = 0;
for (int i = 0; i < outputFields_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt64SizeNoTag(outputFields_.getLong(i));
}
size += dataSize;
if (!getOutputFieldsList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
outputFieldsMemoizedSerializedSize = dataSize;
}
if (initialType_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getInitialType());
}
if (partialType_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getPartialType());
}
if (outputType_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getOutputType());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cz.proto.AggregateCall)) {
return super.equals(obj);
}
cz.proto.AggregateCall other = (cz.proto.AggregateCall) obj;
if (hasFunction() != other.hasFunction()) return false;
if (hasFunction()) {
if (!getFunction()
.equals(other.getFunction())) return false;
}
if (getDistinct()
!= other.getDistinct()) return false;
if (stage_ != other.stage_) return false;
if (!getOrdersList()
.equals(other.getOrdersList())) return false;
if (hasFilter() != other.hasFilter()) return false;
if (hasFilter()) {
if (!getFilter()
.equals(other.getFilter())) return false;
}
if (!getOutputFieldsList()
.equals(other.getOutputFieldsList())) return false;
if (hasInitialType() != other.hasInitialType()) return false;
if (hasInitialType()) {
if (!getInitialType()
.equals(other.getInitialType())) return false;
}
if (hasPartialType() != other.hasPartialType()) return false;
if (hasPartialType()) {
if (!getPartialType()
.equals(other.getPartialType())) return false;
}
if (hasOutputType() != other.hasOutputType()) return false;
if (hasOutputType()) {
if (!getOutputType()
.equals(other.getOutputType())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasFunction()) {
hash = (37 * hash) + FUNCTION_FIELD_NUMBER;
hash = (53 * hash) + getFunction().hashCode();
}
hash = (37 * hash) + DISTINCT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDistinct());
hash = (37 * hash) + STAGE_FIELD_NUMBER;
hash = (53 * hash) + stage_;
if (getOrdersCount() > 0) {
hash = (37 * hash) + ORDERS_FIELD_NUMBER;
hash = (53 * hash) + getOrdersList().hashCode();
}
if (hasFilter()) {
hash = (37 * hash) + FILTER_FIELD_NUMBER;
hash = (53 * hash) + getFilter().hashCode();
}
if (getOutputFieldsCount() > 0) {
hash = (37 * hash) + OUTPUT_FIELDS_FIELD_NUMBER;
hash = (53 * hash) + getOutputFieldsList().hashCode();
}
if (hasInitialType()) {
hash = (37 * hash) + INITIAL_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getInitialType().hashCode();
}
if (hasPartialType()) {
hash = (37 * hash) + PARTIAL_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getPartialType().hashCode();
}
if (hasOutputType()) {
hash = (37 * hash) + OUTPUT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getOutputType().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.AggregateCall parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.AggregateCall parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.AggregateCall parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.AggregateCall parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.AggregateCall parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.AggregateCall parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.AggregateCall parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.AggregateCall 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 cz.proto.AggregateCall parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.AggregateCall 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 cz.proto.AggregateCall parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.AggregateCall 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(cz.proto.AggregateCall 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 cz.proto.AggregateCall}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.AggregateCall)
cz.proto.AggregateCallOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.OperatorProto.internal_static_cz_proto_AggregateCall_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.OperatorProto.internal_static_cz_proto_AggregateCall_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.AggregateCall.class, cz.proto.AggregateCall.Builder.class);
}
// Construct using cz.proto.AggregateCall.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getOrdersFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (functionBuilder_ == null) {
function_ = null;
} else {
function_ = null;
functionBuilder_ = null;
}
distinct_ = false;
stage_ = 0;
if (ordersBuilder_ == null) {
orders_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ordersBuilder_.clear();
}
if (filterBuilder_ == null) {
filter_ = null;
} else {
filter_ = null;
filterBuilder_ = null;
}
outputFields_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000002);
if (initialTypeBuilder_ == null) {
initialType_ = null;
} else {
initialType_ = null;
initialTypeBuilder_ = null;
}
if (partialTypeBuilder_ == null) {
partialType_ = null;
} else {
partialType_ = null;
partialTypeBuilder_ = null;
}
if (outputTypeBuilder_ == null) {
outputType_ = null;
} else {
outputType_ = null;
outputTypeBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.OperatorProto.internal_static_cz_proto_AggregateCall_descriptor;
}
@java.lang.Override
public cz.proto.AggregateCall getDefaultInstanceForType() {
return cz.proto.AggregateCall.getDefaultInstance();
}
@java.lang.Override
public cz.proto.AggregateCall build() {
cz.proto.AggregateCall result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.AggregateCall buildPartial() {
cz.proto.AggregateCall result = new cz.proto.AggregateCall(this);
int from_bitField0_ = bitField0_;
if (functionBuilder_ == null) {
result.function_ = function_;
} else {
result.function_ = functionBuilder_.build();
}
result.distinct_ = distinct_;
result.stage_ = stage_;
if (ordersBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
orders_ = java.util.Collections.unmodifiableList(orders_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.orders_ = orders_;
} else {
result.orders_ = ordersBuilder_.build();
}
if (filterBuilder_ == null) {
result.filter_ = filter_;
} else {
result.filter_ = filterBuilder_.build();
}
if (((bitField0_ & 0x00000002) != 0)) {
outputFields_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.outputFields_ = outputFields_;
if (initialTypeBuilder_ == null) {
result.initialType_ = initialType_;
} else {
result.initialType_ = initialTypeBuilder_.build();
}
if (partialTypeBuilder_ == null) {
result.partialType_ = partialType_;
} else {
result.partialType_ = partialTypeBuilder_.build();
}
if (outputTypeBuilder_ == null) {
result.outputType_ = outputType_;
} else {
result.outputType_ = outputTypeBuilder_.build();
}
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 cz.proto.AggregateCall) {
return mergeFrom((cz.proto.AggregateCall)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.AggregateCall other) {
if (other == cz.proto.AggregateCall.getDefaultInstance()) return this;
if (other.hasFunction()) {
mergeFunction(other.getFunction());
}
if (other.getDistinct() != false) {
setDistinct(other.getDistinct());
}
if (other.stage_ != 0) {
setStageValue(other.getStageValue());
}
if (ordersBuilder_ == null) {
if (!other.orders_.isEmpty()) {
if (orders_.isEmpty()) {
orders_ = other.orders_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureOrdersIsMutable();
orders_.addAll(other.orders_);
}
onChanged();
}
} else {
if (!other.orders_.isEmpty()) {
if (ordersBuilder_.isEmpty()) {
ordersBuilder_.dispose();
ordersBuilder_ = null;
orders_ = other.orders_;
bitField0_ = (bitField0_ & ~0x00000001);
ordersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOrdersFieldBuilder() : null;
} else {
ordersBuilder_.addAllMessages(other.orders_);
}
}
}
if (other.hasFilter()) {
mergeFilter(other.getFilter());
}
if (!other.outputFields_.isEmpty()) {
if (outputFields_.isEmpty()) {
outputFields_ = other.outputFields_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureOutputFieldsIsMutable();
outputFields_.addAll(other.outputFields_);
}
onChanged();
}
if (other.hasInitialType()) {
mergeInitialType(other.getInitialType());
}
if (other.hasPartialType()) {
mergePartialType(other.getPartialType());
}
if (other.hasOutputType()) {
mergeOutputType(other.getOutputType());
}
this.mergeUnknownFields(other.unknownFields);
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 {
cz.proto.AggregateCall parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.AggregateCall) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private cz.proto.Expression.ScalarExpression function_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.Expression.ScalarExpression, cz.proto.Expression.ScalarExpression.Builder, cz.proto.Expression.ScalarExpressionOrBuilder> functionBuilder_;
/**
* .cz.proto.ScalarExpression function = 1;
* @return Whether the function field is set.
*/
public boolean hasFunction() {
return functionBuilder_ != null || function_ != null;
}
/**
* .cz.proto.ScalarExpression function = 1;
* @return The function.
*/
public cz.proto.Expression.ScalarExpression getFunction() {
if (functionBuilder_ == null) {
return function_ == null ? cz.proto.Expression.ScalarExpression.getDefaultInstance() : function_;
} else {
return functionBuilder_.getMessage();
}
}
/**
* .cz.proto.ScalarExpression function = 1;
*/
public Builder setFunction(cz.proto.Expression.ScalarExpression value) {
if (functionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
function_ = value;
onChanged();
} else {
functionBuilder_.setMessage(value);
}
return this;
}
/**
* .cz.proto.ScalarExpression function = 1;
*/
public Builder setFunction(
cz.proto.Expression.ScalarExpression.Builder builderForValue) {
if (functionBuilder_ == null) {
function_ = builderForValue.build();
onChanged();
} else {
functionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cz.proto.ScalarExpression function = 1;
*/
public Builder mergeFunction(cz.proto.Expression.ScalarExpression value) {
if (functionBuilder_ == null) {
if (function_ != null) {
function_ =
cz.proto.Expression.ScalarExpression.newBuilder(function_).mergeFrom(value).buildPartial();
} else {
function_ = value;
}
onChanged();
} else {
functionBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cz.proto.ScalarExpression function = 1;
*/
public Builder clearFunction() {
if (functionBuilder_ == null) {
function_ = null;
onChanged();
} else {
function_ = null;
functionBuilder_ = null;
}
return this;
}
/**
* .cz.proto.ScalarExpression function = 1;
*/
public cz.proto.Expression.ScalarExpression.Builder getFunctionBuilder() {
onChanged();
return getFunctionFieldBuilder().getBuilder();
}
/**
* .cz.proto.ScalarExpression function = 1;
*/
public cz.proto.Expression.ScalarExpressionOrBuilder getFunctionOrBuilder() {
if (functionBuilder_ != null) {
return functionBuilder_.getMessageOrBuilder();
} else {
return function_ == null ?
cz.proto.Expression.ScalarExpression.getDefaultInstance() : function_;
}
}
/**
* .cz.proto.ScalarExpression function = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.Expression.ScalarExpression, cz.proto.Expression.ScalarExpression.Builder, cz.proto.Expression.ScalarExpressionOrBuilder>
getFunctionFieldBuilder() {
if (functionBuilder_ == null) {
functionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.Expression.ScalarExpression, cz.proto.Expression.ScalarExpression.Builder, cz.proto.Expression.ScalarExpressionOrBuilder>(
getFunction(),
getParentForChildren(),
isClean());
function_ = null;
}
return functionBuilder_;
}
private boolean distinct_ ;
/**
* bool distinct = 2;
* @return The distinct.
*/
@java.lang.Override
public boolean getDistinct() {
return distinct_;
}
/**
* bool distinct = 2;
* @param value The distinct to set.
* @return This builder for chaining.
*/
public Builder setDistinct(boolean value) {
distinct_ = value;
onChanged();
return this;
}
/**
* bool distinct = 2;
* @return This builder for chaining.
*/
public Builder clearDistinct() {
distinct_ = false;
onChanged();
return this;
}
private int stage_ = 0;
/**
* .cz.proto.AggStage stage = 3;
* @return The enum numeric value on the wire for stage.
*/
@java.lang.Override public int getStageValue() {
return stage_;
}
/**
* .cz.proto.AggStage stage = 3;
* @param value The enum numeric value on the wire for stage to set.
* @return This builder for chaining.
*/
public Builder setStageValue(int value) {
stage_ = value;
onChanged();
return this;
}
/**
* .cz.proto.AggStage stage = 3;
* @return The stage.
*/
@java.lang.Override
public cz.proto.AggStage getStage() {
@SuppressWarnings("deprecation")
cz.proto.AggStage result = cz.proto.AggStage.valueOf(stage_);
return result == null ? cz.proto.AggStage.UNRECOGNIZED : result;
}
/**
* .cz.proto.AggStage stage = 3;
* @param value The stage to set.
* @return This builder for chaining.
*/
public Builder setStage(cz.proto.AggStage value) {
if (value == null) {
throw new NullPointerException();
}
stage_ = value.getNumber();
onChanged();
return this;
}
/**
* .cz.proto.AggStage stage = 3;
* @return This builder for chaining.
*/
public Builder clearStage() {
stage_ = 0;
onChanged();
return this;
}
private java.util.List orders_ =
java.util.Collections.emptyList();
private void ensureOrdersIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
orders_ = new java.util.ArrayList(orders_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.OrderByDesc, cz.proto.OrderByDesc.Builder, cz.proto.OrderByDescOrBuilder> ordersBuilder_;
/**
* repeated .cz.proto.OrderByDesc orders = 4;
*/
public java.util.List getOrdersList() {
if (ordersBuilder_ == null) {
return java.util.Collections.unmodifiableList(orders_);
} else {
return ordersBuilder_.getMessageList();
}
}
/**
* repeated .cz.proto.OrderByDesc orders = 4;
*/
public int getOrdersCount() {
if (ordersBuilder_ == null) {
return orders_.size();
} else {
return ordersBuilder_.getCount();
}
}
/**
* repeated .cz.proto.OrderByDesc orders = 4;
*/
public cz.proto.OrderByDesc getOrders(int index) {
if (ordersBuilder_ == null) {
return orders_.get(index);
} else {
return ordersBuilder_.getMessage(index);
}
}
/**
* repeated .cz.proto.OrderByDesc orders = 4;
*/
public Builder setOrders(
int index, cz.proto.OrderByDesc value) {
if (ordersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOrdersIsMutable();
orders_.set(index, value);
onChanged();
} else {
ordersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cz.proto.OrderByDesc orders = 4;
*/
public Builder setOrders(
int index, cz.proto.OrderByDesc.Builder builderForValue) {
if (ordersBuilder_ == null) {
ensureOrdersIsMutable();
orders_.set(index, builderForValue.build());
onChanged();
} else {
ordersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.OrderByDesc orders = 4;
*/
public Builder addOrders(cz.proto.OrderByDesc value) {
if (ordersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOrdersIsMutable();
orders_.add(value);
onChanged();
} else {
ordersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cz.proto.OrderByDesc orders = 4;
*/
public Builder addOrders(
int index, cz.proto.OrderByDesc value) {
if (ordersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOrdersIsMutable();
orders_.add(index, value);
onChanged();
} else {
ordersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cz.proto.OrderByDesc orders = 4;
*/
public Builder addOrders(
cz.proto.OrderByDesc.Builder builderForValue) {
if (ordersBuilder_ == null) {
ensureOrdersIsMutable();
orders_.add(builderForValue.build());
onChanged();
} else {
ordersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.OrderByDesc orders = 4;
*/
public Builder addOrders(
int index, cz.proto.OrderByDesc.Builder builderForValue) {
if (ordersBuilder_ == null) {
ensureOrdersIsMutable();
orders_.add(index, builderForValue.build());
onChanged();
} else {
ordersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.OrderByDesc orders = 4;
*/
public Builder addAllOrders(
java.lang.Iterable extends cz.proto.OrderByDesc> values) {
if (ordersBuilder_ == null) {
ensureOrdersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, orders_);
onChanged();
} else {
ordersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cz.proto.OrderByDesc orders = 4;
*/
public Builder clearOrders() {
if (ordersBuilder_ == null) {
orders_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
ordersBuilder_.clear();
}
return this;
}
/**
* repeated .cz.proto.OrderByDesc orders = 4;
*/
public Builder removeOrders(int index) {
if (ordersBuilder_ == null) {
ensureOrdersIsMutable();
orders_.remove(index);
onChanged();
} else {
ordersBuilder_.remove(index);
}
return this;
}
/**
* repeated .cz.proto.OrderByDesc orders = 4;
*/
public cz.proto.OrderByDesc.Builder getOrdersBuilder(
int index) {
return getOrdersFieldBuilder().getBuilder(index);
}
/**
* repeated .cz.proto.OrderByDesc orders = 4;
*/
public cz.proto.OrderByDescOrBuilder getOrdersOrBuilder(
int index) {
if (ordersBuilder_ == null) {
return orders_.get(index); } else {
return ordersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cz.proto.OrderByDesc orders = 4;
*/
public java.util.List extends cz.proto.OrderByDescOrBuilder>
getOrdersOrBuilderList() {
if (ordersBuilder_ != null) {
return ordersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(orders_);
}
}
/**
* repeated .cz.proto.OrderByDesc orders = 4;
*/
public cz.proto.OrderByDesc.Builder addOrdersBuilder() {
return getOrdersFieldBuilder().addBuilder(
cz.proto.OrderByDesc.getDefaultInstance());
}
/**
* repeated .cz.proto.OrderByDesc orders = 4;
*/
public cz.proto.OrderByDesc.Builder addOrdersBuilder(
int index) {
return getOrdersFieldBuilder().addBuilder(
index, cz.proto.OrderByDesc.getDefaultInstance());
}
/**
* repeated .cz.proto.OrderByDesc orders = 4;
*/
public java.util.List
getOrdersBuilderList() {
return getOrdersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.OrderByDesc, cz.proto.OrderByDesc.Builder, cz.proto.OrderByDescOrBuilder>
getOrdersFieldBuilder() {
if (ordersBuilder_ == null) {
ordersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.OrderByDesc, cz.proto.OrderByDesc.Builder, cz.proto.OrderByDescOrBuilder>(
orders_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
orders_ = null;
}
return ordersBuilder_;
}
private cz.proto.Expression.Reference filter_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.Expression.Reference, cz.proto.Expression.Reference.Builder, cz.proto.Expression.ReferenceOrBuilder> filterBuilder_;
/**
* .cz.proto.Reference filter = 5;
* @return Whether the filter field is set.
*/
public boolean hasFilter() {
return filterBuilder_ != null || filter_ != null;
}
/**
* .cz.proto.Reference filter = 5;
* @return The filter.
*/
public cz.proto.Expression.Reference getFilter() {
if (filterBuilder_ == null) {
return filter_ == null ? cz.proto.Expression.Reference.getDefaultInstance() : filter_;
} else {
return filterBuilder_.getMessage();
}
}
/**
* .cz.proto.Reference filter = 5;
*/
public Builder setFilter(cz.proto.Expression.Reference value) {
if (filterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
filter_ = value;
onChanged();
} else {
filterBuilder_.setMessage(value);
}
return this;
}
/**
* .cz.proto.Reference filter = 5;
*/
public Builder setFilter(
cz.proto.Expression.Reference.Builder builderForValue) {
if (filterBuilder_ == null) {
filter_ = builderForValue.build();
onChanged();
} else {
filterBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cz.proto.Reference filter = 5;
*/
public Builder mergeFilter(cz.proto.Expression.Reference value) {
if (filterBuilder_ == null) {
if (filter_ != null) {
filter_ =
cz.proto.Expression.Reference.newBuilder(filter_).mergeFrom(value).buildPartial();
} else {
filter_ = value;
}
onChanged();
} else {
filterBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cz.proto.Reference filter = 5;
*/
public Builder clearFilter() {
if (filterBuilder_ == null) {
filter_ = null;
onChanged();
} else {
filter_ = null;
filterBuilder_ = null;
}
return this;
}
/**
* .cz.proto.Reference filter = 5;
*/
public cz.proto.Expression.Reference.Builder getFilterBuilder() {
onChanged();
return getFilterFieldBuilder().getBuilder();
}
/**
* .cz.proto.Reference filter = 5;
*/
public cz.proto.Expression.ReferenceOrBuilder getFilterOrBuilder() {
if (filterBuilder_ != null) {
return filterBuilder_.getMessageOrBuilder();
} else {
return filter_ == null ?
cz.proto.Expression.Reference.getDefaultInstance() : filter_;
}
}
/**
* .cz.proto.Reference filter = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.Expression.Reference, cz.proto.Expression.Reference.Builder, cz.proto.Expression.ReferenceOrBuilder>
getFilterFieldBuilder() {
if (filterBuilder_ == null) {
filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.Expression.Reference, cz.proto.Expression.Reference.Builder, cz.proto.Expression.ReferenceOrBuilder>(
getFilter(),
getParentForChildren(),
isClean());
filter_ = null;
}
return filterBuilder_;
}
private com.google.protobuf.Internal.LongList outputFields_ = emptyLongList();
private void ensureOutputFieldsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
outputFields_ = mutableCopy(outputFields_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated uint64 output_fields = 6;
* @return A list containing the outputFields.
*/
public java.util.List
getOutputFieldsList() {
return ((bitField0_ & 0x00000002) != 0) ?
java.util.Collections.unmodifiableList(outputFields_) : outputFields_;
}
/**
* repeated uint64 output_fields = 6;
* @return The count of outputFields.
*/
public int getOutputFieldsCount() {
return outputFields_.size();
}
/**
* repeated uint64 output_fields = 6;
* @param index The index of the element to return.
* @return The outputFields at the given index.
*/
public long getOutputFields(int index) {
return outputFields_.getLong(index);
}
/**
* repeated uint64 output_fields = 6;
* @param index The index to set the value at.
* @param value The outputFields to set.
* @return This builder for chaining.
*/
public Builder setOutputFields(
int index, long value) {
ensureOutputFieldsIsMutable();
outputFields_.setLong(index, value);
onChanged();
return this;
}
/**
* repeated uint64 output_fields = 6;
* @param value The outputFields to add.
* @return This builder for chaining.
*/
public Builder addOutputFields(long value) {
ensureOutputFieldsIsMutable();
outputFields_.addLong(value);
onChanged();
return this;
}
/**
* repeated uint64 output_fields = 6;
* @param values The outputFields to add.
* @return This builder for chaining.
*/
public Builder addAllOutputFields(
java.lang.Iterable extends java.lang.Long> values) {
ensureOutputFieldsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, outputFields_);
onChanged();
return this;
}
/**
* repeated uint64 output_fields = 6;
* @return This builder for chaining.
*/
public Builder clearOutputFields() {
outputFields_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private cz.proto.DataType initialType_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.DataType, cz.proto.DataType.Builder, cz.proto.DataTypeOrBuilder> initialTypeBuilder_;
/**
*
* The initial data type of an aggregate function
*
*
* .cz.proto.DataType initial_Type = 10;
* @return Whether the initialType field is set.
*/
public boolean hasInitialType() {
return initialTypeBuilder_ != null || initialType_ != null;
}
/**
*
* The initial data type of an aggregate function
*
*
* .cz.proto.DataType initial_Type = 10;
* @return The initialType.
*/
public cz.proto.DataType getInitialType() {
if (initialTypeBuilder_ == null) {
return initialType_ == null ? cz.proto.DataType.getDefaultInstance() : initialType_;
} else {
return initialTypeBuilder_.getMessage();
}
}
/**
*
* The initial data type of an aggregate function
*
*
* .cz.proto.DataType initial_Type = 10;
*/
public Builder setInitialType(cz.proto.DataType value) {
if (initialTypeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
initialType_ = value;
onChanged();
} else {
initialTypeBuilder_.setMessage(value);
}
return this;
}
/**
*
* The initial data type of an aggregate function
*
*
* .cz.proto.DataType initial_Type = 10;
*/
public Builder setInitialType(
cz.proto.DataType.Builder builderForValue) {
if (initialTypeBuilder_ == null) {
initialType_ = builderForValue.build();
onChanged();
} else {
initialTypeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The initial data type of an aggregate function
*
*
* .cz.proto.DataType initial_Type = 10;
*/
public Builder mergeInitialType(cz.proto.DataType value) {
if (initialTypeBuilder_ == null) {
if (initialType_ != null) {
initialType_ =
cz.proto.DataType.newBuilder(initialType_).mergeFrom(value).buildPartial();
} else {
initialType_ = value;
}
onChanged();
} else {
initialTypeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The initial data type of an aggregate function
*
*
* .cz.proto.DataType initial_Type = 10;
*/
public Builder clearInitialType() {
if (initialTypeBuilder_ == null) {
initialType_ = null;
onChanged();
} else {
initialType_ = null;
initialTypeBuilder_ = null;
}
return this;
}
/**
*
* The initial data type of an aggregate function
*
*
* .cz.proto.DataType initial_Type = 10;
*/
public cz.proto.DataType.Builder getInitialTypeBuilder() {
onChanged();
return getInitialTypeFieldBuilder().getBuilder();
}
/**
*
* The initial data type of an aggregate function
*
*
* .cz.proto.DataType initial_Type = 10;
*/
public cz.proto.DataTypeOrBuilder getInitialTypeOrBuilder() {
if (initialTypeBuilder_ != null) {
return initialTypeBuilder_.getMessageOrBuilder();
} else {
return initialType_ == null ?
cz.proto.DataType.getDefaultInstance() : initialType_;
}
}
/**
*
* The initial data type of an aggregate function
*
*
* .cz.proto.DataType initial_Type = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.DataType, cz.proto.DataType.Builder, cz.proto.DataTypeOrBuilder>
getInitialTypeFieldBuilder() {
if (initialTypeBuilder_ == null) {
initialTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.DataType, cz.proto.DataType.Builder, cz.proto.DataTypeOrBuilder>(
getInitialType(),
getParentForChildren(),
isClean());
initialType_ = null;
}
return initialTypeBuilder_;
}
private cz.proto.DataType partialType_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.DataType, cz.proto.DataType.Builder, cz.proto.DataTypeOrBuilder> partialTypeBuilder_;
/**
*
* The partial data type of an aggregate function
*
*
* .cz.proto.DataType partial_Type = 11;
* @return Whether the partialType field is set.
*/
public boolean hasPartialType() {
return partialTypeBuilder_ != null || partialType_ != null;
}
/**
*
* The partial data type of an aggregate function
*
*
* .cz.proto.DataType partial_Type = 11;
* @return The partialType.
*/
public cz.proto.DataType getPartialType() {
if (partialTypeBuilder_ == null) {
return partialType_ == null ? cz.proto.DataType.getDefaultInstance() : partialType_;
} else {
return partialTypeBuilder_.getMessage();
}
}
/**
*
* The partial data type of an aggregate function
*
*
* .cz.proto.DataType partial_Type = 11;
*/
public Builder setPartialType(cz.proto.DataType value) {
if (partialTypeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
partialType_ = value;
onChanged();
} else {
partialTypeBuilder_.setMessage(value);
}
return this;
}
/**
*
* The partial data type of an aggregate function
*
*
* .cz.proto.DataType partial_Type = 11;
*/
public Builder setPartialType(
cz.proto.DataType.Builder builderForValue) {
if (partialTypeBuilder_ == null) {
partialType_ = builderForValue.build();
onChanged();
} else {
partialTypeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The partial data type of an aggregate function
*
*
* .cz.proto.DataType partial_Type = 11;
*/
public Builder mergePartialType(cz.proto.DataType value) {
if (partialTypeBuilder_ == null) {
if (partialType_ != null) {
partialType_ =
cz.proto.DataType.newBuilder(partialType_).mergeFrom(value).buildPartial();
} else {
partialType_ = value;
}
onChanged();
} else {
partialTypeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The partial data type of an aggregate function
*
*
* .cz.proto.DataType partial_Type = 11;
*/
public Builder clearPartialType() {
if (partialTypeBuilder_ == null) {
partialType_ = null;
onChanged();
} else {
partialType_ = null;
partialTypeBuilder_ = null;
}
return this;
}
/**
*
* The partial data type of an aggregate function
*
*
* .cz.proto.DataType partial_Type = 11;
*/
public cz.proto.DataType.Builder getPartialTypeBuilder() {
onChanged();
return getPartialTypeFieldBuilder().getBuilder();
}
/**
*
* The partial data type of an aggregate function
*
*
* .cz.proto.DataType partial_Type = 11;
*/
public cz.proto.DataTypeOrBuilder getPartialTypeOrBuilder() {
if (partialTypeBuilder_ != null) {
return partialTypeBuilder_.getMessageOrBuilder();
} else {
return partialType_ == null ?
cz.proto.DataType.getDefaultInstance() : partialType_;
}
}
/**
*
* The partial data type of an aggregate function
*
*
* .cz.proto.DataType partial_Type = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.DataType, cz.proto.DataType.Builder, cz.proto.DataTypeOrBuilder>
getPartialTypeFieldBuilder() {
if (partialTypeBuilder_ == null) {
partialTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.DataType, cz.proto.DataType.Builder, cz.proto.DataTypeOrBuilder>(
getPartialType(),
getParentForChildren(),
isClean());
partialType_ = null;
}
return partialTypeBuilder_;
}
private cz.proto.DataType outputType_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.DataType, cz.proto.DataType.Builder, cz.proto.DataTypeOrBuilder> outputTypeBuilder_;
/**
*
* The output data type of an aggregate function
*
*
* .cz.proto.DataType output_Type = 12;
* @return Whether the outputType field is set.
*/
public boolean hasOutputType() {
return outputTypeBuilder_ != null || outputType_ != null;
}
/**
*
* The output data type of an aggregate function
*
*
* .cz.proto.DataType output_Type = 12;
* @return The outputType.
*/
public cz.proto.DataType getOutputType() {
if (outputTypeBuilder_ == null) {
return outputType_ == null ? cz.proto.DataType.getDefaultInstance() : outputType_;
} else {
return outputTypeBuilder_.getMessage();
}
}
/**
*
* The output data type of an aggregate function
*
*
* .cz.proto.DataType output_Type = 12;
*/
public Builder setOutputType(cz.proto.DataType value) {
if (outputTypeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
outputType_ = value;
onChanged();
} else {
outputTypeBuilder_.setMessage(value);
}
return this;
}
/**
*
* The output data type of an aggregate function
*
*
* .cz.proto.DataType output_Type = 12;
*/
public Builder setOutputType(
cz.proto.DataType.Builder builderForValue) {
if (outputTypeBuilder_ == null) {
outputType_ = builderForValue.build();
onChanged();
} else {
outputTypeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The output data type of an aggregate function
*
*
* .cz.proto.DataType output_Type = 12;
*/
public Builder mergeOutputType(cz.proto.DataType value) {
if (outputTypeBuilder_ == null) {
if (outputType_ != null) {
outputType_ =
cz.proto.DataType.newBuilder(outputType_).mergeFrom(value).buildPartial();
} else {
outputType_ = value;
}
onChanged();
} else {
outputTypeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The output data type of an aggregate function
*
*
* .cz.proto.DataType output_Type = 12;
*/
public Builder clearOutputType() {
if (outputTypeBuilder_ == null) {
outputType_ = null;
onChanged();
} else {
outputType_ = null;
outputTypeBuilder_ = null;
}
return this;
}
/**
*
* The output data type of an aggregate function
*
*
* .cz.proto.DataType output_Type = 12;
*/
public cz.proto.DataType.Builder getOutputTypeBuilder() {
onChanged();
return getOutputTypeFieldBuilder().getBuilder();
}
/**
*
* The output data type of an aggregate function
*
*
* .cz.proto.DataType output_Type = 12;
*/
public cz.proto.DataTypeOrBuilder getOutputTypeOrBuilder() {
if (outputTypeBuilder_ != null) {
return outputTypeBuilder_.getMessageOrBuilder();
} else {
return outputType_ == null ?
cz.proto.DataType.getDefaultInstance() : outputType_;
}
}
/**
*
* The output data type of an aggregate function
*
*
* .cz.proto.DataType output_Type = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.DataType, cz.proto.DataType.Builder, cz.proto.DataTypeOrBuilder>
getOutputTypeFieldBuilder() {
if (outputTypeBuilder_ == null) {
outputTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.DataType, cz.proto.DataType.Builder, cz.proto.DataTypeOrBuilder>(
getOutputType(),
getParentForChildren(),
isClean());
outputType_ = null;
}
return outputTypeBuilder_;
}
@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:cz.proto.AggregateCall)
}
// @@protoc_insertion_point(class_scope:cz.proto.AggregateCall)
private static final cz.proto.AggregateCall DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.AggregateCall();
}
public static cz.proto.AggregateCall getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AggregateCall parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AggregateCall(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cz.proto.AggregateCall getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy