cz.proto.SortedAggregate 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.SortedAggregate}
*/
public final class SortedAggregate extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.SortedAggregate)
SortedAggregateOrBuilder {
private static final long serialVersionUID = 0L;
// Use SortedAggregate.newBuilder() to construct.
private SortedAggregate(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SortedAggregate() {
stage_ = 0;
orders_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SortedAggregate();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SortedAggregate(
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.LogicalAggregate.Builder subBuilder = null;
if (aggregate_ != null) {
subBuilder = aggregate_.toBuilder();
}
aggregate_ = input.readMessage(cz.proto.LogicalAggregate.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(aggregate_);
aggregate_ = subBuilder.buildPartial();
}
break;
}
case 16: {
int rawValue = input.readEnum();
stage_ = rawValue;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
orders_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
orders_.add(
input.readMessage(cz.proto.OrderByDesc.parser(), extensionRegistry));
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_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.OperatorProto.internal_static_cz_proto_SortedAggregate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.OperatorProto.internal_static_cz_proto_SortedAggregate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.SortedAggregate.class, cz.proto.SortedAggregate.Builder.class);
}
public static final int AGGREGATE_FIELD_NUMBER = 1;
private cz.proto.LogicalAggregate aggregate_;
/**
* .cz.proto.LogicalAggregate aggregate = 1;
* @return Whether the aggregate field is set.
*/
@java.lang.Override
public boolean hasAggregate() {
return aggregate_ != null;
}
/**
* .cz.proto.LogicalAggregate aggregate = 1;
* @return The aggregate.
*/
@java.lang.Override
public cz.proto.LogicalAggregate getAggregate() {
return aggregate_ == null ? cz.proto.LogicalAggregate.getDefaultInstance() : aggregate_;
}
/**
* .cz.proto.LogicalAggregate aggregate = 1;
*/
@java.lang.Override
public cz.proto.LogicalAggregateOrBuilder getAggregateOrBuilder() {
return getAggregate();
}
public static final int STAGE_FIELD_NUMBER = 2;
private int stage_;
/**
* .cz.proto.AggStage stage = 2;
* @return The enum numeric value on the wire for stage.
*/
@java.lang.Override public int getStageValue() {
return stage_;
}
/**
* .cz.proto.AggStage stage = 2;
* @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 = 3;
private java.util.List orders_;
/**
* repeated .cz.proto.OrderByDesc orders = 3;
*/
@java.lang.Override
public java.util.List getOrdersList() {
return orders_;
}
/**
* repeated .cz.proto.OrderByDesc orders = 3;
*/
@java.lang.Override
public java.util.List extends cz.proto.OrderByDescOrBuilder>
getOrdersOrBuilderList() {
return orders_;
}
/**
* repeated .cz.proto.OrderByDesc orders = 3;
*/
@java.lang.Override
public int getOrdersCount() {
return orders_.size();
}
/**
* repeated .cz.proto.OrderByDesc orders = 3;
*/
@java.lang.Override
public cz.proto.OrderByDesc getOrders(int index) {
return orders_.get(index);
}
/**
* repeated .cz.proto.OrderByDesc orders = 3;
*/
@java.lang.Override
public cz.proto.OrderByDescOrBuilder getOrdersOrBuilder(
int index) {
return orders_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (aggregate_ != null) {
output.writeMessage(1, getAggregate());
}
if (stage_ != cz.proto.AggStage.DUPLICATE.getNumber()) {
output.writeEnum(2, stage_);
}
for (int i = 0; i < orders_.size(); i++) {
output.writeMessage(3, orders_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (aggregate_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAggregate());
}
if (stage_ != cz.proto.AggStage.DUPLICATE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, stage_);
}
for (int i = 0; i < orders_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, orders_.get(i));
}
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.SortedAggregate)) {
return super.equals(obj);
}
cz.proto.SortedAggregate other = (cz.proto.SortedAggregate) obj;
if (hasAggregate() != other.hasAggregate()) return false;
if (hasAggregate()) {
if (!getAggregate()
.equals(other.getAggregate())) return false;
}
if (stage_ != other.stage_) return false;
if (!getOrdersList()
.equals(other.getOrdersList())) 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 (hasAggregate()) {
hash = (37 * hash) + AGGREGATE_FIELD_NUMBER;
hash = (53 * hash) + getAggregate().hashCode();
}
hash = (37 * hash) + STAGE_FIELD_NUMBER;
hash = (53 * hash) + stage_;
if (getOrdersCount() > 0) {
hash = (37 * hash) + ORDERS_FIELD_NUMBER;
hash = (53 * hash) + getOrdersList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.SortedAggregate parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.SortedAggregate parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.SortedAggregate parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.SortedAggregate 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.SortedAggregate parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.SortedAggregate parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.SortedAggregate parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.SortedAggregate 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.SortedAggregate parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.SortedAggregate 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.SortedAggregate parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.SortedAggregate 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.SortedAggregate 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.SortedAggregate}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.SortedAggregate)
cz.proto.SortedAggregateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.OperatorProto.internal_static_cz_proto_SortedAggregate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.OperatorProto.internal_static_cz_proto_SortedAggregate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.SortedAggregate.class, cz.proto.SortedAggregate.Builder.class);
}
// Construct using cz.proto.SortedAggregate.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 (aggregateBuilder_ == null) {
aggregate_ = null;
} else {
aggregate_ = null;
aggregateBuilder_ = null;
}
stage_ = 0;
if (ordersBuilder_ == null) {
orders_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ordersBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.OperatorProto.internal_static_cz_proto_SortedAggregate_descriptor;
}
@java.lang.Override
public cz.proto.SortedAggregate getDefaultInstanceForType() {
return cz.proto.SortedAggregate.getDefaultInstance();
}
@java.lang.Override
public cz.proto.SortedAggregate build() {
cz.proto.SortedAggregate result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.SortedAggregate buildPartial() {
cz.proto.SortedAggregate result = new cz.proto.SortedAggregate(this);
int from_bitField0_ = bitField0_;
if (aggregateBuilder_ == null) {
result.aggregate_ = aggregate_;
} else {
result.aggregate_ = aggregateBuilder_.build();
}
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();
}
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.SortedAggregate) {
return mergeFrom((cz.proto.SortedAggregate)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.SortedAggregate other) {
if (other == cz.proto.SortedAggregate.getDefaultInstance()) return this;
if (other.hasAggregate()) {
mergeAggregate(other.getAggregate());
}
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_);
}
}
}
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.SortedAggregate parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.SortedAggregate) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private cz.proto.LogicalAggregate aggregate_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.LogicalAggregate, cz.proto.LogicalAggregate.Builder, cz.proto.LogicalAggregateOrBuilder> aggregateBuilder_;
/**
* .cz.proto.LogicalAggregate aggregate = 1;
* @return Whether the aggregate field is set.
*/
public boolean hasAggregate() {
return aggregateBuilder_ != null || aggregate_ != null;
}
/**
* .cz.proto.LogicalAggregate aggregate = 1;
* @return The aggregate.
*/
public cz.proto.LogicalAggregate getAggregate() {
if (aggregateBuilder_ == null) {
return aggregate_ == null ? cz.proto.LogicalAggregate.getDefaultInstance() : aggregate_;
} else {
return aggregateBuilder_.getMessage();
}
}
/**
* .cz.proto.LogicalAggregate aggregate = 1;
*/
public Builder setAggregate(cz.proto.LogicalAggregate value) {
if (aggregateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
aggregate_ = value;
onChanged();
} else {
aggregateBuilder_.setMessage(value);
}
return this;
}
/**
* .cz.proto.LogicalAggregate aggregate = 1;
*/
public Builder setAggregate(
cz.proto.LogicalAggregate.Builder builderForValue) {
if (aggregateBuilder_ == null) {
aggregate_ = builderForValue.build();
onChanged();
} else {
aggregateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cz.proto.LogicalAggregate aggregate = 1;
*/
public Builder mergeAggregate(cz.proto.LogicalAggregate value) {
if (aggregateBuilder_ == null) {
if (aggregate_ != null) {
aggregate_ =
cz.proto.LogicalAggregate.newBuilder(aggregate_).mergeFrom(value).buildPartial();
} else {
aggregate_ = value;
}
onChanged();
} else {
aggregateBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cz.proto.LogicalAggregate aggregate = 1;
*/
public Builder clearAggregate() {
if (aggregateBuilder_ == null) {
aggregate_ = null;
onChanged();
} else {
aggregate_ = null;
aggregateBuilder_ = null;
}
return this;
}
/**
* .cz.proto.LogicalAggregate aggregate = 1;
*/
public cz.proto.LogicalAggregate.Builder getAggregateBuilder() {
onChanged();
return getAggregateFieldBuilder().getBuilder();
}
/**
* .cz.proto.LogicalAggregate aggregate = 1;
*/
public cz.proto.LogicalAggregateOrBuilder getAggregateOrBuilder() {
if (aggregateBuilder_ != null) {
return aggregateBuilder_.getMessageOrBuilder();
} else {
return aggregate_ == null ?
cz.proto.LogicalAggregate.getDefaultInstance() : aggregate_;
}
}
/**
* .cz.proto.LogicalAggregate aggregate = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.LogicalAggregate, cz.proto.LogicalAggregate.Builder, cz.proto.LogicalAggregateOrBuilder>
getAggregateFieldBuilder() {
if (aggregateBuilder_ == null) {
aggregateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.LogicalAggregate, cz.proto.LogicalAggregate.Builder, cz.proto.LogicalAggregateOrBuilder>(
getAggregate(),
getParentForChildren(),
isClean());
aggregate_ = null;
}
return aggregateBuilder_;
}
private int stage_ = 0;
/**
* .cz.proto.AggStage stage = 2;
* @return The enum numeric value on the wire for stage.
*/
@java.lang.Override public int getStageValue() {
return stage_;
}
/**
* .cz.proto.AggStage stage = 2;
* @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 = 2;
* @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 = 2;
* @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 = 2;
* @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 = 3;
*/
public java.util.List getOrdersList() {
if (ordersBuilder_ == null) {
return java.util.Collections.unmodifiableList(orders_);
} else {
return ordersBuilder_.getMessageList();
}
}
/**
* repeated .cz.proto.OrderByDesc orders = 3;
*/
public int getOrdersCount() {
if (ordersBuilder_ == null) {
return orders_.size();
} else {
return ordersBuilder_.getCount();
}
}
/**
* repeated .cz.proto.OrderByDesc orders = 3;
*/
public cz.proto.OrderByDesc getOrders(int index) {
if (ordersBuilder_ == null) {
return orders_.get(index);
} else {
return ordersBuilder_.getMessage(index);
}
}
/**
* repeated .cz.proto.OrderByDesc orders = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
public Builder removeOrders(int index) {
if (ordersBuilder_ == null) {
ensureOrdersIsMutable();
orders_.remove(index);
onChanged();
} else {
ordersBuilder_.remove(index);
}
return this;
}
/**
* repeated .cz.proto.OrderByDesc orders = 3;
*/
public cz.proto.OrderByDesc.Builder getOrdersBuilder(
int index) {
return getOrdersFieldBuilder().getBuilder(index);
}
/**
* repeated .cz.proto.OrderByDesc orders = 3;
*/
public cz.proto.OrderByDescOrBuilder getOrdersOrBuilder(
int index) {
if (ordersBuilder_ == null) {
return orders_.get(index); } else {
return ordersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cz.proto.OrderByDesc orders = 3;
*/
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 = 3;
*/
public cz.proto.OrderByDesc.Builder addOrdersBuilder() {
return getOrdersFieldBuilder().addBuilder(
cz.proto.OrderByDesc.getDefaultInstance());
}
/**
* repeated .cz.proto.OrderByDesc orders = 3;
*/
public cz.proto.OrderByDesc.Builder addOrdersBuilder(
int index) {
return getOrdersFieldBuilder().addBuilder(
index, cz.proto.OrderByDesc.getDefaultInstance());
}
/**
* repeated .cz.proto.OrderByDesc orders = 3;
*/
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_;
}
@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.SortedAggregate)
}
// @@protoc_insertion_point(class_scope:cz.proto.SortedAggregate)
private static final cz.proto.SortedAggregate DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.SortedAggregate();
}
public static cz.proto.SortedAggregate getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SortedAggregate parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SortedAggregate(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.SortedAggregate getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy