cz.proto.Collation 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.Collation}
*/
public final class Collation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.Collation)
CollationOrBuilder {
private static final long serialVersionUID = 0L;
// Use Collation.newBuilder() to construct.
private Collation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Collation() {
orders_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Collation();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Collation(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
orders_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
orders_.add(
input.readMessage(cz.proto.Collation.Key.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_Collation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.OperatorProto.internal_static_cz_proto_Collation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.Collation.class, cz.proto.Collation.Builder.class);
}
public interface KeyOrBuilder extends
// @@protoc_insertion_point(interface_extends:cz.proto.Collation.Key)
com.google.protobuf.MessageOrBuilder {
/**
* uint64 field = 1;
* @return The field.
*/
long getField();
/**
* .cz.proto.Order order = 2;
* @return The enum numeric value on the wire for order.
*/
int getOrderValue();
/**
* .cz.proto.Order order = 2;
* @return The order.
*/
cz.proto.Order getOrder();
/**
* .cz.proto.NullOrder null_order = 3;
* @return The enum numeric value on the wire for nullOrder.
*/
int getNullOrderValue();
/**
* .cz.proto.NullOrder null_order = 3;
* @return The nullOrder.
*/
cz.proto.NullOrder getNullOrder();
}
/**
* Protobuf type {@code cz.proto.Collation.Key}
*/
public static final class Key extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.Collation.Key)
KeyOrBuilder {
private static final long serialVersionUID = 0L;
// Use Key.newBuilder() to construct.
private Key(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Key() {
order_ = 0;
nullOrder_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Key();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Key(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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 8: {
field_ = input.readUInt64();
break;
}
case 16: {
int rawValue = input.readEnum();
order_ = rawValue;
break;
}
case 24: {
int rawValue = input.readEnum();
nullOrder_ = rawValue;
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.OperatorProto.internal_static_cz_proto_Collation_Key_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.OperatorProto.internal_static_cz_proto_Collation_Key_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.Collation.Key.class, cz.proto.Collation.Key.Builder.class);
}
public static final int FIELD_FIELD_NUMBER = 1;
private long field_;
/**
* uint64 field = 1;
* @return The field.
*/
@java.lang.Override
public long getField() {
return field_;
}
public static final int ORDER_FIELD_NUMBER = 2;
private int order_;
/**
* .cz.proto.Order order = 2;
* @return The enum numeric value on the wire for order.
*/
@java.lang.Override public int getOrderValue() {
return order_;
}
/**
* .cz.proto.Order order = 2;
* @return The order.
*/
@java.lang.Override public cz.proto.Order getOrder() {
@SuppressWarnings("deprecation")
cz.proto.Order result = cz.proto.Order.valueOf(order_);
return result == null ? cz.proto.Order.UNRECOGNIZED : result;
}
public static final int NULL_ORDER_FIELD_NUMBER = 3;
private int nullOrder_;
/**
* .cz.proto.NullOrder null_order = 3;
* @return The enum numeric value on the wire for nullOrder.
*/
@java.lang.Override public int getNullOrderValue() {
return nullOrder_;
}
/**
* .cz.proto.NullOrder null_order = 3;
* @return The nullOrder.
*/
@java.lang.Override public cz.proto.NullOrder getNullOrder() {
@SuppressWarnings("deprecation")
cz.proto.NullOrder result = cz.proto.NullOrder.valueOf(nullOrder_);
return result == null ? cz.proto.NullOrder.UNRECOGNIZED : result;
}
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 (field_ != 0L) {
output.writeUInt64(1, field_);
}
if (order_ != cz.proto.Order.ASC.getNumber()) {
output.writeEnum(2, order_);
}
if (nullOrder_ != cz.proto.NullOrder.LOW.getNumber()) {
output.writeEnum(3, nullOrder_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (field_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, field_);
}
if (order_ != cz.proto.Order.ASC.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, order_);
}
if (nullOrder_ != cz.proto.NullOrder.LOW.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, nullOrder_);
}
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.Collation.Key)) {
return super.equals(obj);
}
cz.proto.Collation.Key other = (cz.proto.Collation.Key) obj;
if (getField()
!= other.getField()) return false;
if (order_ != other.order_) return false;
if (nullOrder_ != other.nullOrder_) 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();
hash = (37 * hash) + FIELD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getField());
hash = (37 * hash) + ORDER_FIELD_NUMBER;
hash = (53 * hash) + order_;
hash = (37 * hash) + NULL_ORDER_FIELD_NUMBER;
hash = (53 * hash) + nullOrder_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.Collation.Key parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.Collation.Key parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.Collation.Key parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.Collation.Key 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.Collation.Key parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.Collation.Key parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.Collation.Key parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.Collation.Key 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.Collation.Key parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.Collation.Key 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.Collation.Key parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.Collation.Key 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.Collation.Key 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.Collation.Key}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.Collation.Key)
cz.proto.Collation.KeyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.OperatorProto.internal_static_cz_proto_Collation_Key_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.OperatorProto.internal_static_cz_proto_Collation_Key_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.Collation.Key.class, cz.proto.Collation.Key.Builder.class);
}
// Construct using cz.proto.Collation.Key.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
field_ = 0L;
order_ = 0;
nullOrder_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.OperatorProto.internal_static_cz_proto_Collation_Key_descriptor;
}
@java.lang.Override
public cz.proto.Collation.Key getDefaultInstanceForType() {
return cz.proto.Collation.Key.getDefaultInstance();
}
@java.lang.Override
public cz.proto.Collation.Key build() {
cz.proto.Collation.Key result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.Collation.Key buildPartial() {
cz.proto.Collation.Key result = new cz.proto.Collation.Key(this);
result.field_ = field_;
result.order_ = order_;
result.nullOrder_ = nullOrder_;
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.Collation.Key) {
return mergeFrom((cz.proto.Collation.Key)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.Collation.Key other) {
if (other == cz.proto.Collation.Key.getDefaultInstance()) return this;
if (other.getField() != 0L) {
setField(other.getField());
}
if (other.order_ != 0) {
setOrderValue(other.getOrderValue());
}
if (other.nullOrder_ != 0) {
setNullOrderValue(other.getNullOrderValue());
}
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.Collation.Key parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.Collation.Key) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long field_ ;
/**
* uint64 field = 1;
* @return The field.
*/
@java.lang.Override
public long getField() {
return field_;
}
/**
* uint64 field = 1;
* @param value The field to set.
* @return This builder for chaining.
*/
public Builder setField(long value) {
field_ = value;
onChanged();
return this;
}
/**
* uint64 field = 1;
* @return This builder for chaining.
*/
public Builder clearField() {
field_ = 0L;
onChanged();
return this;
}
private int order_ = 0;
/**
* .cz.proto.Order order = 2;
* @return The enum numeric value on the wire for order.
*/
@java.lang.Override public int getOrderValue() {
return order_;
}
/**
* .cz.proto.Order order = 2;
* @param value The enum numeric value on the wire for order to set.
* @return This builder for chaining.
*/
public Builder setOrderValue(int value) {
order_ = value;
onChanged();
return this;
}
/**
* .cz.proto.Order order = 2;
* @return The order.
*/
@java.lang.Override
public cz.proto.Order getOrder() {
@SuppressWarnings("deprecation")
cz.proto.Order result = cz.proto.Order.valueOf(order_);
return result == null ? cz.proto.Order.UNRECOGNIZED : result;
}
/**
* .cz.proto.Order order = 2;
* @param value The order to set.
* @return This builder for chaining.
*/
public Builder setOrder(cz.proto.Order value) {
if (value == null) {
throw new NullPointerException();
}
order_ = value.getNumber();
onChanged();
return this;
}
/**
* .cz.proto.Order order = 2;
* @return This builder for chaining.
*/
public Builder clearOrder() {
order_ = 0;
onChanged();
return this;
}
private int nullOrder_ = 0;
/**
* .cz.proto.NullOrder null_order = 3;
* @return The enum numeric value on the wire for nullOrder.
*/
@java.lang.Override public int getNullOrderValue() {
return nullOrder_;
}
/**
* .cz.proto.NullOrder null_order = 3;
* @param value The enum numeric value on the wire for nullOrder to set.
* @return This builder for chaining.
*/
public Builder setNullOrderValue(int value) {
nullOrder_ = value;
onChanged();
return this;
}
/**
* .cz.proto.NullOrder null_order = 3;
* @return The nullOrder.
*/
@java.lang.Override
public cz.proto.NullOrder getNullOrder() {
@SuppressWarnings("deprecation")
cz.proto.NullOrder result = cz.proto.NullOrder.valueOf(nullOrder_);
return result == null ? cz.proto.NullOrder.UNRECOGNIZED : result;
}
/**
* .cz.proto.NullOrder null_order = 3;
* @param value The nullOrder to set.
* @return This builder for chaining.
*/
public Builder setNullOrder(cz.proto.NullOrder value) {
if (value == null) {
throw new NullPointerException();
}
nullOrder_ = value.getNumber();
onChanged();
return this;
}
/**
* .cz.proto.NullOrder null_order = 3;
* @return This builder for chaining.
*/
public Builder clearNullOrder() {
nullOrder_ = 0;
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:cz.proto.Collation.Key)
}
// @@protoc_insertion_point(class_scope:cz.proto.Collation.Key)
private static final cz.proto.Collation.Key DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.Collation.Key();
}
public static cz.proto.Collation.Key getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Key parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Key(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.Collation.Key getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int ORDERS_FIELD_NUMBER = 1;
private java.util.List orders_;
/**
* repeated .cz.proto.Collation.Key orders = 1;
*/
@java.lang.Override
public java.util.List getOrdersList() {
return orders_;
}
/**
* repeated .cz.proto.Collation.Key orders = 1;
*/
@java.lang.Override
public java.util.List extends cz.proto.Collation.KeyOrBuilder>
getOrdersOrBuilderList() {
return orders_;
}
/**
* repeated .cz.proto.Collation.Key orders = 1;
*/
@java.lang.Override
public int getOrdersCount() {
return orders_.size();
}
/**
* repeated .cz.proto.Collation.Key orders = 1;
*/
@java.lang.Override
public cz.proto.Collation.Key getOrders(int index) {
return orders_.get(index);
}
/**
* repeated .cz.proto.Collation.Key orders = 1;
*/
@java.lang.Override
public cz.proto.Collation.KeyOrBuilder 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 {
for (int i = 0; i < orders_.size(); i++) {
output.writeMessage(1, orders_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < orders_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, 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.Collation)) {
return super.equals(obj);
}
cz.proto.Collation other = (cz.proto.Collation) obj;
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 (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.Collation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.Collation parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.Collation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.Collation 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.Collation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.Collation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.Collation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.Collation 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.Collation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.Collation 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.Collation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.Collation 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.Collation 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.Collation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.Collation)
cz.proto.CollationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.OperatorProto.internal_static_cz_proto_Collation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.OperatorProto.internal_static_cz_proto_Collation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.Collation.class, cz.proto.Collation.Builder.class);
}
// Construct using cz.proto.Collation.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 (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_Collation_descriptor;
}
@java.lang.Override
public cz.proto.Collation getDefaultInstanceForType() {
return cz.proto.Collation.getDefaultInstance();
}
@java.lang.Override
public cz.proto.Collation build() {
cz.proto.Collation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.Collation buildPartial() {
cz.proto.Collation result = new cz.proto.Collation(this);
int from_bitField0_ = bitField0_;
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.Collation) {
return mergeFrom((cz.proto.Collation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.Collation other) {
if (other == cz.proto.Collation.getDefaultInstance()) return this;
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.Collation parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.Collation) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
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.Collation.Key, cz.proto.Collation.Key.Builder, cz.proto.Collation.KeyOrBuilder> ordersBuilder_;
/**
* repeated .cz.proto.Collation.Key orders = 1;
*/
public java.util.List getOrdersList() {
if (ordersBuilder_ == null) {
return java.util.Collections.unmodifiableList(orders_);
} else {
return ordersBuilder_.getMessageList();
}
}
/**
* repeated .cz.proto.Collation.Key orders = 1;
*/
public int getOrdersCount() {
if (ordersBuilder_ == null) {
return orders_.size();
} else {
return ordersBuilder_.getCount();
}
}
/**
* repeated .cz.proto.Collation.Key orders = 1;
*/
public cz.proto.Collation.Key getOrders(int index) {
if (ordersBuilder_ == null) {
return orders_.get(index);
} else {
return ordersBuilder_.getMessage(index);
}
}
/**
* repeated .cz.proto.Collation.Key orders = 1;
*/
public Builder setOrders(
int index, cz.proto.Collation.Key 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.Collation.Key orders = 1;
*/
public Builder setOrders(
int index, cz.proto.Collation.Key.Builder builderForValue) {
if (ordersBuilder_ == null) {
ensureOrdersIsMutable();
orders_.set(index, builderForValue.build());
onChanged();
} else {
ordersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.Collation.Key orders = 1;
*/
public Builder addOrders(cz.proto.Collation.Key value) {
if (ordersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOrdersIsMutable();
orders_.add(value);
onChanged();
} else {
ordersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cz.proto.Collation.Key orders = 1;
*/
public Builder addOrders(
int index, cz.proto.Collation.Key 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.Collation.Key orders = 1;
*/
public Builder addOrders(
cz.proto.Collation.Key.Builder builderForValue) {
if (ordersBuilder_ == null) {
ensureOrdersIsMutable();
orders_.add(builderForValue.build());
onChanged();
} else {
ordersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.Collation.Key orders = 1;
*/
public Builder addOrders(
int index, cz.proto.Collation.Key.Builder builderForValue) {
if (ordersBuilder_ == null) {
ensureOrdersIsMutable();
orders_.add(index, builderForValue.build());
onChanged();
} else {
ordersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.Collation.Key orders = 1;
*/
public Builder addAllOrders(
java.lang.Iterable extends cz.proto.Collation.Key> values) {
if (ordersBuilder_ == null) {
ensureOrdersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, orders_);
onChanged();
} else {
ordersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cz.proto.Collation.Key orders = 1;
*/
public Builder clearOrders() {
if (ordersBuilder_ == null) {
orders_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
ordersBuilder_.clear();
}
return this;
}
/**
* repeated .cz.proto.Collation.Key orders = 1;
*/
public Builder removeOrders(int index) {
if (ordersBuilder_ == null) {
ensureOrdersIsMutable();
orders_.remove(index);
onChanged();
} else {
ordersBuilder_.remove(index);
}
return this;
}
/**
* repeated .cz.proto.Collation.Key orders = 1;
*/
public cz.proto.Collation.Key.Builder getOrdersBuilder(
int index) {
return getOrdersFieldBuilder().getBuilder(index);
}
/**
* repeated .cz.proto.Collation.Key orders = 1;
*/
public cz.proto.Collation.KeyOrBuilder getOrdersOrBuilder(
int index) {
if (ordersBuilder_ == null) {
return orders_.get(index); } else {
return ordersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cz.proto.Collation.Key orders = 1;
*/
public java.util.List extends cz.proto.Collation.KeyOrBuilder>
getOrdersOrBuilderList() {
if (ordersBuilder_ != null) {
return ordersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(orders_);
}
}
/**
* repeated .cz.proto.Collation.Key orders = 1;
*/
public cz.proto.Collation.Key.Builder addOrdersBuilder() {
return getOrdersFieldBuilder().addBuilder(
cz.proto.Collation.Key.getDefaultInstance());
}
/**
* repeated .cz.proto.Collation.Key orders = 1;
*/
public cz.proto.Collation.Key.Builder addOrdersBuilder(
int index) {
return getOrdersFieldBuilder().addBuilder(
index, cz.proto.Collation.Key.getDefaultInstance());
}
/**
* repeated .cz.proto.Collation.Key orders = 1;
*/
public java.util.List
getOrdersBuilderList() {
return getOrdersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.Collation.Key, cz.proto.Collation.Key.Builder, cz.proto.Collation.KeyOrBuilder>
getOrdersFieldBuilder() {
if (ordersBuilder_ == null) {
ordersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.Collation.Key, cz.proto.Collation.Key.Builder, cz.proto.Collation.KeyOrBuilder>(
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.Collation)
}
// @@protoc_insertion_point(class_scope:cz.proto.Collation)
private static final cz.proto.Collation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.Collation();
}
public static cz.proto.Collation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Collation parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Collation(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.Collation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy