apsara.odps.OrderProtos Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: common/order.proto
package apsara.odps;
public final class OrderProtos {
private OrderProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface OrderOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required .apsara.odps.Reference Column = 1;
boolean hasColumn();
apsara.odps.ExpressionProtos.Reference getColumn();
apsara.odps.ExpressionProtos.ReferenceOrBuilder getColumnOrBuilder();
// optional bool Asc = 2 [default = true];
boolean hasAsc();
boolean getAsc();
}
public static final class Order extends
com.google.protobuf.GeneratedMessage
implements OrderOrBuilder {
// Use Order.newBuilder() to construct.
private Order(Builder builder) {
super(builder);
}
private Order(boolean noInit) {}
private static final Order defaultInstance;
public static Order getDefaultInstance() {
return defaultInstance;
}
public Order getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return apsara.odps.OrderProtos.internal_static_apsara_odps_Order_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return apsara.odps.OrderProtos.internal_static_apsara_odps_Order_fieldAccessorTable;
}
private int bitField0_;
// required .apsara.odps.Reference Column = 1;
public static final int COLUMN_FIELD_NUMBER = 1;
private apsara.odps.ExpressionProtos.Reference column_;
public boolean hasColumn() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public apsara.odps.ExpressionProtos.Reference getColumn() {
return column_;
}
public apsara.odps.ExpressionProtos.ReferenceOrBuilder getColumnOrBuilder() {
return column_;
}
// optional bool Asc = 2 [default = true];
public static final int ASC_FIELD_NUMBER = 2;
private boolean asc_;
public boolean hasAsc() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public boolean getAsc() {
return asc_;
}
private void initFields() {
column_ = apsara.odps.ExpressionProtos.Reference.getDefaultInstance();
asc_ = true;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasColumn()) {
memoizedIsInitialized = 0;
return false;
}
if (!getColumn().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, column_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBool(2, asc_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, column_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, asc_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static apsara.odps.OrderProtos.Order parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static apsara.odps.OrderProtos.Order parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static apsara.odps.OrderProtos.Order parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static apsara.odps.OrderProtos.Order parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static apsara.odps.OrderProtos.Order parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static apsara.odps.OrderProtos.Order parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static apsara.odps.OrderProtos.Order parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static apsara.odps.OrderProtos.Order parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static apsara.odps.OrderProtos.Order parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static apsara.odps.OrderProtos.Order parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(apsara.odps.OrderProtos.Order prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements apsara.odps.OrderProtos.OrderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return apsara.odps.OrderProtos.internal_static_apsara_odps_Order_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return apsara.odps.OrderProtos.internal_static_apsara_odps_Order_fieldAccessorTable;
}
// Construct using apsara.odps.OrderProtos.Order.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getColumnFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (columnBuilder_ == null) {
column_ = apsara.odps.ExpressionProtos.Reference.getDefaultInstance();
} else {
columnBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
asc_ = true;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return apsara.odps.OrderProtos.Order.getDescriptor();
}
public apsara.odps.OrderProtos.Order getDefaultInstanceForType() {
return apsara.odps.OrderProtos.Order.getDefaultInstance();
}
public apsara.odps.OrderProtos.Order build() {
apsara.odps.OrderProtos.Order result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private apsara.odps.OrderProtos.Order buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
apsara.odps.OrderProtos.Order result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return result;
}
public apsara.odps.OrderProtos.Order buildPartial() {
apsara.odps.OrderProtos.Order result = new apsara.odps.OrderProtos.Order(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (columnBuilder_ == null) {
result.column_ = column_;
} else {
result.column_ = columnBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.asc_ = asc_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof apsara.odps.OrderProtos.Order) {
return mergeFrom((apsara.odps.OrderProtos.Order)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(apsara.odps.OrderProtos.Order other) {
if (other == apsara.odps.OrderProtos.Order.getDefaultInstance()) return this;
if (other.hasColumn()) {
mergeColumn(other.getColumn());
}
if (other.hasAsc()) {
setAsc(other.getAsc());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasColumn()) {
return false;
}
if (!getColumn().isInitialized()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder(
this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
apsara.odps.ExpressionProtos.Reference.Builder subBuilder = apsara.odps.ExpressionProtos.Reference.newBuilder();
if (hasColumn()) {
subBuilder.mergeFrom(getColumn());
}
input.readMessage(subBuilder, extensionRegistry);
setColumn(subBuilder.buildPartial());
break;
}
case 16: {
bitField0_ |= 0x00000002;
asc_ = input.readBool();
break;
}
}
}
}
private int bitField0_;
// required .apsara.odps.Reference Column = 1;
private apsara.odps.ExpressionProtos.Reference column_ = apsara.odps.ExpressionProtos.Reference.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
apsara.odps.ExpressionProtos.Reference, apsara.odps.ExpressionProtos.Reference.Builder, apsara.odps.ExpressionProtos.ReferenceOrBuilder> columnBuilder_;
public boolean hasColumn() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public apsara.odps.ExpressionProtos.Reference getColumn() {
if (columnBuilder_ == null) {
return column_;
} else {
return columnBuilder_.getMessage();
}
}
public Builder setColumn(apsara.odps.ExpressionProtos.Reference value) {
if (columnBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
column_ = value;
onChanged();
} else {
columnBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
public Builder setColumn(
apsara.odps.ExpressionProtos.Reference.Builder builderForValue) {
if (columnBuilder_ == null) {
column_ = builderForValue.build();
onChanged();
} else {
columnBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
public Builder mergeColumn(apsara.odps.ExpressionProtos.Reference value) {
if (columnBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
column_ != apsara.odps.ExpressionProtos.Reference.getDefaultInstance()) {
column_ =
apsara.odps.ExpressionProtos.Reference.newBuilder(column_).mergeFrom(value).buildPartial();
} else {
column_ = value;
}
onChanged();
} else {
columnBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
public Builder clearColumn() {
if (columnBuilder_ == null) {
column_ = apsara.odps.ExpressionProtos.Reference.getDefaultInstance();
onChanged();
} else {
columnBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public apsara.odps.ExpressionProtos.Reference.Builder getColumnBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getColumnFieldBuilder().getBuilder();
}
public apsara.odps.ExpressionProtos.ReferenceOrBuilder getColumnOrBuilder() {
if (columnBuilder_ != null) {
return columnBuilder_.getMessageOrBuilder();
} else {
return column_;
}
}
private com.google.protobuf.SingleFieldBuilder<
apsara.odps.ExpressionProtos.Reference, apsara.odps.ExpressionProtos.Reference.Builder, apsara.odps.ExpressionProtos.ReferenceOrBuilder>
getColumnFieldBuilder() {
if (columnBuilder_ == null) {
columnBuilder_ = new com.google.protobuf.SingleFieldBuilder<
apsara.odps.ExpressionProtos.Reference, apsara.odps.ExpressionProtos.Reference.Builder, apsara.odps.ExpressionProtos.ReferenceOrBuilder>(
column_,
getParentForChildren(),
isClean());
column_ = null;
}
return columnBuilder_;
}
// optional bool Asc = 2 [default = true];
private boolean asc_ = true;
public boolean hasAsc() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public boolean getAsc() {
return asc_;
}
public Builder setAsc(boolean value) {
bitField0_ |= 0x00000002;
asc_ = value;
onChanged();
return this;
}
public Builder clearAsc() {
bitField0_ = (bitField0_ & ~0x00000002);
asc_ = true;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:apsara.odps.Order)
}
static {
defaultInstance = new Order(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:apsara.odps.Order)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_apsara_odps_Order_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_apsara_odps_Order_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\022common/order.proto\022\013apsara.odps\032\027commo" +
"n/expression.proto\"B\n\005Order\022&\n\006Column\030\001 " +
"\002(\0132\026.apsara.odps.Reference\022\021\n\003Asc\030\002 \001(\010" +
":\004trueB\rB\013OrderProtos"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
internal_static_apsara_odps_Order_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_apsara_odps_Order_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_apsara_odps_Order_descriptor,
new java.lang.String[] { "Column", "Asc", },
apsara.odps.OrderProtos.Order.class,
apsara.odps.OrderProtos.Order.Builder.class);
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
apsara.odps.ExpressionProtos.getDescriptor(),
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy