com.pingcap.tidb.tipb.ByItem Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: expression.proto
package com.pingcap.tidb.tipb;
/**
*
* ByItem type for group by and order by.
*
*
* Protobuf type {@code tipb.ByItem}
*/
public final class ByItem extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tipb.ByItem)
ByItemOrBuilder {
private static final long serialVersionUID = 0L;
// Use ByItem.newBuilder() to construct.
private ByItem(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ByItem() {
desc_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ByItem(
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;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.pingcap.tidb.tipb.Expr.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = expr_.toBuilder();
}
expr_ = input.readMessage(com.pingcap.tidb.tipb.Expr.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(expr_);
expr_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 16: {
bitField0_ |= 0x00000004;
desc_ = input.readBool();
break;
}
case 26: {
com.pingcap.tidb.tipb.RpnExpr.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = rpnExpr_.toBuilder();
}
rpnExpr_ = input.readMessage(com.pingcap.tidb.tipb.RpnExpr.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(rpnExpr_);
rpnExpr_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
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 com.pingcap.tidb.tipb.Expression.internal_static_tipb_ByItem_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.pingcap.tidb.tipb.Expression.internal_static_tipb_ByItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.pingcap.tidb.tipb.ByItem.class, com.pingcap.tidb.tipb.ByItem.Builder.class);
}
private int bitField0_;
public static final int EXPR_FIELD_NUMBER = 1;
private com.pingcap.tidb.tipb.Expr expr_;
/**
* optional .tipb.Expr expr = 1;
*/
public boolean hasExpr() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .tipb.Expr expr = 1;
*/
public com.pingcap.tidb.tipb.Expr getExpr() {
return expr_ == null ? com.pingcap.tidb.tipb.Expr.getDefaultInstance() : expr_;
}
/**
* optional .tipb.Expr expr = 1;
*/
public com.pingcap.tidb.tipb.ExprOrBuilder getExprOrBuilder() {
return expr_ == null ? com.pingcap.tidb.tipb.Expr.getDefaultInstance() : expr_;
}
public static final int RPN_EXPR_FIELD_NUMBER = 3;
private com.pingcap.tidb.tipb.RpnExpr rpnExpr_;
/**
* optional .tipb.RpnExpr rpn_expr = 3;
*/
public boolean hasRpnExpr() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .tipb.RpnExpr rpn_expr = 3;
*/
public com.pingcap.tidb.tipb.RpnExpr getRpnExpr() {
return rpnExpr_ == null ? com.pingcap.tidb.tipb.RpnExpr.getDefaultInstance() : rpnExpr_;
}
/**
* optional .tipb.RpnExpr rpn_expr = 3;
*/
public com.pingcap.tidb.tipb.RpnExprOrBuilder getRpnExprOrBuilder() {
return rpnExpr_ == null ? com.pingcap.tidb.tipb.RpnExpr.getDefaultInstance() : rpnExpr_;
}
public static final int DESC_FIELD_NUMBER = 2;
private boolean desc_;
/**
* optional bool desc = 2 [(.gogoproto.nullable) = false];
*/
public boolean hasDesc() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional bool desc = 2 [(.gogoproto.nullable) = false];
*/
public boolean getDesc() {
return desc_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getExpr());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(2, desc_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(3, getRpnExpr());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getExpr());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, desc_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getRpnExpr());
}
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 com.pingcap.tidb.tipb.ByItem)) {
return super.equals(obj);
}
com.pingcap.tidb.tipb.ByItem other = (com.pingcap.tidb.tipb.ByItem) obj;
boolean result = true;
result = result && (hasExpr() == other.hasExpr());
if (hasExpr()) {
result = result && getExpr()
.equals(other.getExpr());
}
result = result && (hasRpnExpr() == other.hasRpnExpr());
if (hasRpnExpr()) {
result = result && getRpnExpr()
.equals(other.getRpnExpr());
}
result = result && (hasDesc() == other.hasDesc());
if (hasDesc()) {
result = result && (getDesc()
== other.getDesc());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasExpr()) {
hash = (37 * hash) + EXPR_FIELD_NUMBER;
hash = (53 * hash) + getExpr().hashCode();
}
if (hasRpnExpr()) {
hash = (37 * hash) + RPN_EXPR_FIELD_NUMBER;
hash = (53 * hash) + getRpnExpr().hashCode();
}
if (hasDesc()) {
hash = (37 * hash) + DESC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDesc());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.pingcap.tidb.tipb.ByItem parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.pingcap.tidb.tipb.ByItem parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.pingcap.tidb.tipb.ByItem parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.pingcap.tidb.tipb.ByItem parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.pingcap.tidb.tipb.ByItem parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.pingcap.tidb.tipb.ByItem parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.pingcap.tidb.tipb.ByItem parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.pingcap.tidb.tipb.ByItem 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 com.pingcap.tidb.tipb.ByItem parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.pingcap.tidb.tipb.ByItem 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 com.pingcap.tidb.tipb.ByItem parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.pingcap.tidb.tipb.ByItem parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.pingcap.tidb.tipb.ByItem prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* ByItem type for group by and order by.
*
*
* Protobuf type {@code tipb.ByItem}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tipb.ByItem)
com.pingcap.tidb.tipb.ByItemOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.pingcap.tidb.tipb.Expression.internal_static_tipb_ByItem_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.pingcap.tidb.tipb.Expression.internal_static_tipb_ByItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.pingcap.tidb.tipb.ByItem.class, com.pingcap.tidb.tipb.ByItem.Builder.class);
}
// Construct using com.pingcap.tidb.tipb.ByItem.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getExprFieldBuilder();
getRpnExprFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (exprBuilder_ == null) {
expr_ = null;
} else {
exprBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (rpnExprBuilder_ == null) {
rpnExpr_ = null;
} else {
rpnExprBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
desc_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.pingcap.tidb.tipb.Expression.internal_static_tipb_ByItem_descriptor;
}
public com.pingcap.tidb.tipb.ByItem getDefaultInstanceForType() {
return com.pingcap.tidb.tipb.ByItem.getDefaultInstance();
}
public com.pingcap.tidb.tipb.ByItem build() {
com.pingcap.tidb.tipb.ByItem result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.pingcap.tidb.tipb.ByItem buildPartial() {
com.pingcap.tidb.tipb.ByItem result = new com.pingcap.tidb.tipb.ByItem(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (exprBuilder_ == null) {
result.expr_ = expr_;
} else {
result.expr_ = exprBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (rpnExprBuilder_ == null) {
result.rpnExpr_ = rpnExpr_;
} else {
result.rpnExpr_ = rpnExprBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.desc_ = desc_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.pingcap.tidb.tipb.ByItem) {
return mergeFrom((com.pingcap.tidb.tipb.ByItem)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.pingcap.tidb.tipb.ByItem other) {
if (other == com.pingcap.tidb.tipb.ByItem.getDefaultInstance()) return this;
if (other.hasExpr()) {
mergeExpr(other.getExpr());
}
if (other.hasRpnExpr()) {
mergeRpnExpr(other.getRpnExpr());
}
if (other.hasDesc()) {
setDesc(other.getDesc());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.pingcap.tidb.tipb.ByItem parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.pingcap.tidb.tipb.ByItem) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.pingcap.tidb.tipb.Expr expr_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.pingcap.tidb.tipb.Expr, com.pingcap.tidb.tipb.Expr.Builder, com.pingcap.tidb.tipb.ExprOrBuilder> exprBuilder_;
/**
* optional .tipb.Expr expr = 1;
*/
public boolean hasExpr() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .tipb.Expr expr = 1;
*/
public com.pingcap.tidb.tipb.Expr getExpr() {
if (exprBuilder_ == null) {
return expr_ == null ? com.pingcap.tidb.tipb.Expr.getDefaultInstance() : expr_;
} else {
return exprBuilder_.getMessage();
}
}
/**
* optional .tipb.Expr expr = 1;
*/
public Builder setExpr(com.pingcap.tidb.tipb.Expr value) {
if (exprBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
expr_ = value;
onChanged();
} else {
exprBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .tipb.Expr expr = 1;
*/
public Builder setExpr(
com.pingcap.tidb.tipb.Expr.Builder builderForValue) {
if (exprBuilder_ == null) {
expr_ = builderForValue.build();
onChanged();
} else {
exprBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .tipb.Expr expr = 1;
*/
public Builder mergeExpr(com.pingcap.tidb.tipb.Expr value) {
if (exprBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
expr_ != null &&
expr_ != com.pingcap.tidb.tipb.Expr.getDefaultInstance()) {
expr_ =
com.pingcap.tidb.tipb.Expr.newBuilder(expr_).mergeFrom(value).buildPartial();
} else {
expr_ = value;
}
onChanged();
} else {
exprBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .tipb.Expr expr = 1;
*/
public Builder clearExpr() {
if (exprBuilder_ == null) {
expr_ = null;
onChanged();
} else {
exprBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .tipb.Expr expr = 1;
*/
public com.pingcap.tidb.tipb.Expr.Builder getExprBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getExprFieldBuilder().getBuilder();
}
/**
* optional .tipb.Expr expr = 1;
*/
public com.pingcap.tidb.tipb.ExprOrBuilder getExprOrBuilder() {
if (exprBuilder_ != null) {
return exprBuilder_.getMessageOrBuilder();
} else {
return expr_ == null ?
com.pingcap.tidb.tipb.Expr.getDefaultInstance() : expr_;
}
}
/**
* optional .tipb.Expr expr = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.pingcap.tidb.tipb.Expr, com.pingcap.tidb.tipb.Expr.Builder, com.pingcap.tidb.tipb.ExprOrBuilder>
getExprFieldBuilder() {
if (exprBuilder_ == null) {
exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.pingcap.tidb.tipb.Expr, com.pingcap.tidb.tipb.Expr.Builder, com.pingcap.tidb.tipb.ExprOrBuilder>(
getExpr(),
getParentForChildren(),
isClean());
expr_ = null;
}
return exprBuilder_;
}
private com.pingcap.tidb.tipb.RpnExpr rpnExpr_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.pingcap.tidb.tipb.RpnExpr, com.pingcap.tidb.tipb.RpnExpr.Builder, com.pingcap.tidb.tipb.RpnExprOrBuilder> rpnExprBuilder_;
/**
* optional .tipb.RpnExpr rpn_expr = 3;
*/
public boolean hasRpnExpr() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .tipb.RpnExpr rpn_expr = 3;
*/
public com.pingcap.tidb.tipb.RpnExpr getRpnExpr() {
if (rpnExprBuilder_ == null) {
return rpnExpr_ == null ? com.pingcap.tidb.tipb.RpnExpr.getDefaultInstance() : rpnExpr_;
} else {
return rpnExprBuilder_.getMessage();
}
}
/**
* optional .tipb.RpnExpr rpn_expr = 3;
*/
public Builder setRpnExpr(com.pingcap.tidb.tipb.RpnExpr value) {
if (rpnExprBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rpnExpr_ = value;
onChanged();
} else {
rpnExprBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .tipb.RpnExpr rpn_expr = 3;
*/
public Builder setRpnExpr(
com.pingcap.tidb.tipb.RpnExpr.Builder builderForValue) {
if (rpnExprBuilder_ == null) {
rpnExpr_ = builderForValue.build();
onChanged();
} else {
rpnExprBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .tipb.RpnExpr rpn_expr = 3;
*/
public Builder mergeRpnExpr(com.pingcap.tidb.tipb.RpnExpr value) {
if (rpnExprBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
rpnExpr_ != null &&
rpnExpr_ != com.pingcap.tidb.tipb.RpnExpr.getDefaultInstance()) {
rpnExpr_ =
com.pingcap.tidb.tipb.RpnExpr.newBuilder(rpnExpr_).mergeFrom(value).buildPartial();
} else {
rpnExpr_ = value;
}
onChanged();
} else {
rpnExprBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .tipb.RpnExpr rpn_expr = 3;
*/
public Builder clearRpnExpr() {
if (rpnExprBuilder_ == null) {
rpnExpr_ = null;
onChanged();
} else {
rpnExprBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .tipb.RpnExpr rpn_expr = 3;
*/
public com.pingcap.tidb.tipb.RpnExpr.Builder getRpnExprBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getRpnExprFieldBuilder().getBuilder();
}
/**
* optional .tipb.RpnExpr rpn_expr = 3;
*/
public com.pingcap.tidb.tipb.RpnExprOrBuilder getRpnExprOrBuilder() {
if (rpnExprBuilder_ != null) {
return rpnExprBuilder_.getMessageOrBuilder();
} else {
return rpnExpr_ == null ?
com.pingcap.tidb.tipb.RpnExpr.getDefaultInstance() : rpnExpr_;
}
}
/**
* optional .tipb.RpnExpr rpn_expr = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.pingcap.tidb.tipb.RpnExpr, com.pingcap.tidb.tipb.RpnExpr.Builder, com.pingcap.tidb.tipb.RpnExprOrBuilder>
getRpnExprFieldBuilder() {
if (rpnExprBuilder_ == null) {
rpnExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.pingcap.tidb.tipb.RpnExpr, com.pingcap.tidb.tipb.RpnExpr.Builder, com.pingcap.tidb.tipb.RpnExprOrBuilder>(
getRpnExpr(),
getParentForChildren(),
isClean());
rpnExpr_ = null;
}
return rpnExprBuilder_;
}
private boolean desc_ ;
/**
* optional bool desc = 2 [(.gogoproto.nullable) = false];
*/
public boolean hasDesc() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional bool desc = 2 [(.gogoproto.nullable) = false];
*/
public boolean getDesc() {
return desc_;
}
/**
* optional bool desc = 2 [(.gogoproto.nullable) = false];
*/
public Builder setDesc(boolean value) {
bitField0_ |= 0x00000004;
desc_ = value;
onChanged();
return this;
}
/**
* optional bool desc = 2 [(.gogoproto.nullable) = false];
*/
public Builder clearDesc() {
bitField0_ = (bitField0_ & ~0x00000004);
desc_ = false;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tipb.ByItem)
}
// @@protoc_insertion_point(class_scope:tipb.ByItem)
private static final com.pingcap.tidb.tipb.ByItem DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.pingcap.tidb.tipb.ByItem();
}
public static com.pingcap.tidb.tipb.ByItem getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ByItem parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ByItem(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.pingcap.tidb.tipb.ByItem getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy